From: Eliyas Yakub [eliyasy@microsoft.com] Sent: Tuesday, January 23, 2001 11:06 AM To: NT Developers Interest List Subject: RE: [ntdev] IoRegisterDeviceInterface -----Original Message----- From: Eliyas Yakub Sent: Fri 1/19/2001 10:52 AM To: 'NT Developers Interest List' Cc: 'paul@compelson.com' Subject: RE: [ntdev] IoRegisterDeviceInterface Roughly from what I understand from your description, here are couple of ways to solve your problem: 1) You can make your filter driver to pop a PDO (follow the toaster busenum driver sample) and do the enumeration of your smartcard driver. If you use one driver for all of these then that driver has to act as a filter (for the keyboard stack), a bus driver (to pop a pdo), and a function driver for the PDO. Complex but can be done. Toaster is there to help you. You can also separate the function driver from the filter. 2) You can root-enumerate the smartcard driver and have it interface with your keyboard filter at it's lower edge. You need to solve the dependency issues between two drivers using PnP notification mechanism. This is easy to do. Toastmon sample shows how to do this. I don't know how much you understand PnP concept and not sure all of these make sense to you. Your best option is a) try your questions at SmartCardDDK@DISCUSS.MICROSOFT.COM b) If you don't get help there, call MS tech support. -Eliyas -----Original Message----- From: Hrdina Pavel [mailto:paul@compelson.com] Sent: Wednesday, January 17, 2001 12:49 PM To: NT Developers Interest List Subject: [ntdev] IoRegisterDeviceInterface Importance: High Hello developers ! Now I write PC/SC driver for keyboard reader (W2K). So I have to filter i8042prt. This works well and my AddDevice routine successfully creates the device of type FILE_DEVICE_8042_PORT and attaches it to PDO. This is needed to filter PS/2 keyboard communication and this works well. But for smartcard manager I need another device of type FILE_DEVICE_SMARTCARD. This must not be in the device stack for i8042prt because of keyboard class and port driver interface. So I thought I must create separate device object. Now I create device with generating name and I treat this device object like PDO. But there is a problem when I want to create a symbolic link to this device using IoRegisterDeviceInterface. This function returns STATUS_INVALID_DEVICE_REQUEST. Reason is pointer at offset 14h of DeviceObjectExtension (undocumented so I don't know what is it) is NULL. So can some of you help me with creating device object for the reader and register it so symbolic link for SCM is created ? (I have all dispatch routines separated for keyboard filter device and for smartcard reader device) Thanks a lot for your patience Paul --- You are currently subscribed to ntdev as: eliyasy@microsoft.com To unsubscribe send a blank email to leave-ntdev-247T@lists.osr.com --- You are currently subscribed to ntdev as: GlennEverhart@FirstUSA.com To unsubscribe send a blank email to leave-ntdev-247T@lists.osr.com