Tom's Hardware > Forum > Windows XP > Device Driver > Windows WDM Smartcard IFD handler for Server 2003: RDF_IOC..

Windows WDM Smartcard IFD handler for Server 2003: RDF_IOC..

Forum Windows XP : Device Driver - Windows WDM Smartcard IFD handler for Server 2003: RDF_IOC..

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: comp.os.ms-windows.programmer.nt.kernel-mode,microsoft.public.windowsxp.device_driver.dev (More info?)

 

I originally posted this in the smartcards forum, but the issue is important
and I need
someone to look at it that might have experience with it.

I have encountered a problem when attempting to define an IOCTL to be used
in the aforementioned callback to my IFD handler.

The callback is entered and a special APDU (GET_CHALLENGE) is sent to the
device and a good response is received. Since the IOCTL is defined as
METHOD_BUFFERED, the request and response buffer are the same. I set the
response buffer length in *IoRequest->Information and
SmartcardReply->BufferLength and then exit the callback function. The
problem arises when the IRP is completed by SMCLIB in the kernel. I get a
BAD_POOL_HEADER (19) and BSOD. The documentation refers to using an
OVERLAPPED structure in the DeviceIoControl, but the application developer
is using SCardControl, which has no provision for a pointer to the
OVERLAPPED structure.

If I take the documentation as literal I would tell the application
programmer to use CreateFile and DeviceIoControl for this IOCTL. Is this
correct? Barring that, how is a vendor IOCTL sent down to the driver?

Gary.

Sponsored Links
Register or log in to remove.
Tom's Hardware > Forum > Windows XP > Device Driver > Windows WDM Smartcard IFD handler for Server 2003: RDF_IOC..
Go to:

There are 1170 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them