Problem in updating SmartcardExtension->IoRequest.Information.

Posted: 10-19-2006, 08:38 AM
Hi,

I'm writing a smart card reader driver on WXP using ddk 3790. As per the
ddk vendor specific IOCTLS can be handled by providing a call back for
RDF_IOCTL_VENDOR. Indeed it works. The ddk mentions, in the call back
handler, SmartcardExtension->MajorIoControlCode,
SmartcardExtension->IoRequest.RequestBuffer,
SmartcardExtension->IoRequest.ReplyBuffer and lengths from
smartcardExtension should be used instead of the actual IRP from the
IrpStack. Everything works except the
SmartcardExtension->IoRequest.Information. This is declared as a PULONG.
Hence, if i just update the info line
*(SmartcardExtension->IoRequest.Information) = info, the machine
crashes. If i use SmartcardExtension->IoRequest.Information = &info, the
application gets the values as 0 in DeviceIoControl(). Finally extracted
the IRP from SmartcardExtension->OsData->CurrentIrp and updated the info
in Irp->IoStatus.Information = info. If i do this then the application
is getting the proper value in the ReturnedBytes. Returning the status
works properly as described in the DDK. Is there any issue with the
Information updation in SmartcardExtension->IoRequest.Information ?

Regards
Esha
Reply With Quote

Responses to "Problem in updating SmartcardExtension->IoRequest.Information."

Eliyas Yakub [MSFT]
Guest
Posts: n/a
 
Re: Problem in updating SmartcardExtension->IoRequest.Information.
Posted: 10-22-2006, 03:23 PM
I don't think there is any issue. I see several drivers in the source tree
using it.

BTW, you can write your smartcard driver in KMDF. I ported the PSCR sample
from the WDK to KMDF last week and got it to work. If you are interested,
please send me an email.

--
-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.
http://www.microsoft.com/whdc/driver/tips/default.mspx

Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating WMI SR Windows XP WMI 0 01-31-2006 06:10 PM
Frustrating Problem: Can't Access System Information ljz Windows XP WMI 0 07-08-2004 05:09 AM
Problem with System Information Jake Windows XP Device Drivers 5 05-07-2004 11:26 PM
Updating my XPE Mark R. Holbrook Windows XP Embedded 1 11-14-2003 08:15 PM
XP updating David Bilek Windows XP Basics 5 07-19-2003 10:30 PM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90