get smart card reader name

Hello,
Please clarify for me.
How can I get smart card reader name in my upper smart card class filter driver .
My driver performs monitoring smart card reader IOCTLs.
Regards
Mark

Which name? The one in the UI? The symlink name?

d

dent from a phpne with no keynoard

-----Original Message-----
From: Mark Shnaider
Sent: November 07, 2010 6:25 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] get smart card reader name

Hello,
Please clarify for me.
How can I get smart card reader name in my upper smart card class filter driver .
My driver performs monitoring smart card reader IOCTLs.
Regards
Mark


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Hello,
I want get UI or SymbolicLinkName. (created by SmartCardCreateLink function )
I need name in order to recognize vendor name of reader .
(for example: Precise Biometrics Precise 200 MC").
The IoGetDeviceProperty that I use for this purpose return status STATUS_NOT_SUPPORTED
Regards
MarkI

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Sunday, November 07, 2010 4:49 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Which name? The one in the UI? The symlink name?

d

dent from a phpne with no keynoard

-----Original Message-----
From: Mark Shnaider
Sent: November 07, 2010 6:25 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] get smart card reader name

Hello,
Please clarify for me.
How can I get smart card reader name in my upper smart card class filter driver .
My driver performs monitoring smart card reader IOCTLs.
Regards
Mark


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Please do not parse strings in a driver fir this purpose. The UI name can be MUI’ed and thus localized for each user. The symbolic link name itself will not have the mfg name in it. Why do you need the mfg name in the filter? Purely for logging or will you change behavior based on the value?

d

dent from a phpne with no keynoard

-----Original Message-----
From: Mark Shnaider
Sent: November 08, 2010 4:45 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Hello,
I want get UI or SymbolicLinkName. (created by SmartCardCreateLink function )
I need name in order to recognize vendor name of reader .
(for example: Precise Biometrics Precise 200 MC").
The IoGetDeviceProperty that I use for this purpose return status STATUS_NOT_SUPPORTED
Regards
MarkI

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Sunday, November 07, 2010 4:49 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Which name? The one in the UI? The symlink name?

d

dent from a phpne with no keynoard

-----Original Message-----
From: Mark Shnaider
Sent: November 07, 2010 6:25 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] get smart card reader name

Hello,
Please clarify for me.
How can I get smart card reader name in my upper smart card class filter driver .
My driver performs monitoring smart card reader IOCTLs.
Regards
Mark


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Hello Doron,
Yes, I need change behavior on the value.
For example :
The our old smart cards do not support baud rate 115200 Kbytes for clock 5Mhz (only for 4 Mhz).
and work with baud rate 76800 Kbytes and clock 5Mhz. The Precise readers used clock 5Mhz.
I can change returned ART for this purpose inthe filter driver using IoSetComletionRoutine for
IOCTL_SMARCARD_POWER . But I do not know how recognize reader name .
Regards
Mark

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Monday, November 08, 2010 5:39 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Please do not parse strings in a driver fir this purpose. The UI name can be MUI’ed and thus localized for each user. The symbolic link name itself will not have the mfg name in it. Why do you need the mfg name in the filter? Purely for logging or will you change behavior based on the value?

d

dent from a phpne with no keynoard

-----Original Message-----
From: Mark Shnaider
Sent: November 08, 2010 4:45 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Hello,
I want get UI or SymbolicLinkName. (created by SmartCardCreateLink function )
I need name in order to recognize vendor name of reader .
(for example: Precise Biometrics Precise 200 MC").
The IoGetDeviceProperty that I use for this purpose return status STATUS_NOT_SUPPORTED
Regards
MarkI

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Sunday, November 07, 2010 4:49 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Which name? The one in the UI? The symlink name?

d

dent from a phpne with no keynoard

-----Original Message-----
From: Mark Shnaider
Sent: November 07, 2010 6:25 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] get smart card reader name

Hello,
Please clarify for me.
How can I get smart card reader name in my upper smart card class filter driver .
My driver performs monitoring smart card reader IOCTLs.
Regards
Mark


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

The correct way to do this is to match your logic of what do with different pieces of hardware to a registry value you read out of the device node. Basically, abstract the policy away from direct direction to a set of policy knobs the driver reads. Then, in the INF, you detect the manufacturer or model based on the hardware ID, where you have a specific install section based on that hardware ID. This specific install section writes out the correct policy knob value into the devnode that the driver subsequently reads.

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Mark Shnaider
Sent: Monday, November 08, 2010 8:37 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Hello Doron,
Yes, I need change behavior on the value.
For example :
The our old smart cards do not support baud rate 115200 Kbytes for clock 5Mhz (only for 4 Mhz).
and work with baud rate 76800 Kbytes and clock 5Mhz. The Precise readers used clock 5Mhz.
I can change returned ART for this purpose inthe filter driver using IoSetComletionRoutine for IOCTL_SMARCARD_POWER . But I do not know how recognize reader name .
Regards
Mark

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Monday, November 08, 2010 5:39 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Please do not parse strings in a driver fir this purpose. The UI name can be MUI’ed and thus localized for each user. The symbolic link name itself will not have the mfg name in it. Why do you need the mfg name in the filter? Purely for logging or will you change behavior based on the value?

d

dent from a phpne with no keynoard

-----Original Message-----
From: Mark Shnaider
Sent: November 08, 2010 4:45 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Hello,
I want get UI or SymbolicLinkName. (created by SmartCardCreateLink function ) I need name in order to recognize vendor name of reader .
(for example: Precise Biometrics Precise 200 MC").
The IoGetDeviceProperty that I use for this purpose return status STATUS_NOT_SUPPORTED Regards MarkI

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Sunday, November 07, 2010 4:49 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Which name? The one in the UI? The symlink name?

d

dent from a phpne with no keynoard

-----Original Message-----
From: Mark Shnaider
Sent: November 07, 2010 6:25 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] get smart card reader name

Hello,
Please clarify for me.
How can I get smart card reader name in my upper smart card class filter driver .
My driver performs monitoring smart card reader IOCTLs.
Regards
Mark


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Hello Doron,
Please clarify for me,
How I can read this information in the upper filter driver.
I did not found function for this purpose.
(How read registry value of the device node?)
Regards
Mark

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Monday, November 08, 2010 8:00 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

The correct way to do this is to match your logic of what do with different pieces of hardware to a registry value you read out of the device node. Basically, abstract the policy away from direct direction to a set of policy knobs the driver reads. Then, in the INF, you detect the manufacturer or model based on the hardware ID, where you have a specific install section based on that hardware ID. This specific install section writes out the correct policy knob value into the devnode that the driver subsequently reads.

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Mark Shnaider
Sent: Monday, November 08, 2010 8:37 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Hello Doron,
Yes, I need change behavior on the value.
For example :
The our old smart cards do not support baud rate 115200 Kbytes for clock 5Mhz (only for 4 Mhz).
and work with baud rate 76800 Kbytes and clock 5Mhz. The Precise readers used clock 5Mhz.
I can change returned ART for this purpose inthe filter driver using IoSetComletionRoutine for IOCTL_SMARCARD_POWER . But I do not know how recognize reader name .
Regards
Mark

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Monday, November 08, 2010 5:39 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Please do not parse strings in a driver fir this purpose. The UI name can be MUI’ed and thus localized for each user. The symbolic link name itself will not have the mfg name in it. Why do you need the mfg name in the filter? Purely for logging or will you change behavior based on the value?

d

dent from a phpne with no keynoard

-----Original Message-----
From: Mark Shnaider
Sent: November 08, 2010 4:45 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Hello,
I want get UI or SymbolicLinkName. (created by SmartCardCreateLink function ) I need name in order to recognize vendor name of reader .
(for example: Precise Biometrics Precise 200 MC").
The IoGetDeviceProperty that I use for this purpose return status STATUS_NOT_SUPPORTED Regards MarkI

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Sunday, November 07, 2010 4:49 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Which name? The one in the UI? The symlink name?

d

dent from a phpne with no keynoard

-----Original Message-----
From: Mark Shnaider
Sent: November 07, 2010 6:25 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] get smart card reader name

Hello,
Please clarify for me.
How can I get smart card reader name in my upper smart card class filter driver .
My driver performs monitoring smart card reader IOCTLs.
Regards
Mark


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

http://msdn.microsoft.com/en-us/library/ff549443(VS.85).aspx

IoOpenDeviceRegistryKey(PDO for your stack, PLUGPLAY_REGKEY_DEVICE, …)

There is a KMDF equivalent as well. In the inf you use the .HW section off of the install config section to write to it

d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Mark Shnaider
Sent: Tuesday, November 09, 2010 12:16 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Hello Doron,
Please clarify for me,
How I can read this information in the upper filter driver.
I did not found function for this purpose.
(How read registry value of the device node?) Regards Mark

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Monday, November 08, 2010 8:00 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

The correct way to do this is to match your logic of what do with different pieces of hardware to a registry value you read out of the device node. Basically, abstract the policy away from direct direction to a set of policy knobs the driver reads. Then, in the INF, you detect the manufacturer or model based on the hardware ID, where you have a specific install section based on that hardware ID. This specific install section writes out the correct policy knob value into the devnode that the driver subsequently reads.

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Mark Shnaider
Sent: Monday, November 08, 2010 8:37 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Hello Doron,
Yes, I need change behavior on the value.
For example :
The our old smart cards do not support baud rate 115200 Kbytes for clock 5Mhz (only for 4 Mhz).
and work with baud rate 76800 Kbytes and clock 5Mhz. The Precise readers used clock 5Mhz.
I can change returned ART for this purpose inthe filter driver using IoSetComletionRoutine for IOCTL_SMARCARD_POWER . But I do not know how recognize reader name .
Regards
Mark

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Monday, November 08, 2010 5:39 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Please do not parse strings in a driver fir this purpose. The UI name can be MUI’ed and thus localized for each user. The symbolic link name itself will not have the mfg name in it. Why do you need the mfg name in the filter? Purely for logging or will you change behavior based on the value?

d

dent from a phpne with no keynoard

-----Original Message-----
From: Mark Shnaider
Sent: November 08, 2010 4:45 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Hello,
I want get UI or SymbolicLinkName. (created by SmartCardCreateLink function ) I need name in order to recognize vendor name of reader .
(for example: Precise Biometrics Precise 200 MC").
The IoGetDeviceProperty that I use for this purpose return status STATUS_NOT_SUPPORTED Regards MarkI

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Sunday, November 07, 2010 4:49 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Which name? The one in the UI? The symlink name?

d

dent from a phpne with no keynoard

-----Original Message-----
From: Mark Shnaider
Sent: November 07, 2010 6:25 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] get smart card reader name

Hello,
Please clarify for me.
How can I get smart card reader name in my upper smart card class filter driver .
My driver performs monitoring smart card reader IOCTLs.
Regards
Mark


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Hello Doron,
I used this function,
but IoOpenDeviceRegistryKey(pDevObj,PLUGPLAY_REGKEY_DEVICE,
STANDARD_RIGHTS_READ,&hKey)
return status STATUS_INVALID_DEVICE_REQUEST,
The PDO(pDevObj) is right, I use it to pass IRPs to low level driver.
Regards
Mark

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Tuesday, November 09, 2010 10:22 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

http://msdn.microsoft.com/en-us/library/ff549443(VS.85).aspx

IoOpenDeviceRegistryKey(PDO for your stack, PLUGPLAY_REGKEY_DEVICE, …)

There is a KMDF equivalent as well. In the inf you use the .HW section off of the install config section to write to it

d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Mark Shnaider
Sent: Tuesday, November 09, 2010 12:16 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Hello Doron,
Please clarify for me,
How I can read this information in the upper filter driver.
I did not found function for this purpose.
(How read registry value of the device node?) Regards Mark

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Monday, November 08, 2010 8:00 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

The correct way to do this is to match your logic of what do with different pieces of hardware to a registry value you read out of the device node. Basically, abstract the policy away from direct direction to a set of policy knobs the driver reads. Then, in the INF, you detect the manufacturer or model based on the hardware ID, where you have a specific install section based on that hardware ID. This specific install section writes out the correct policy knob value into the devnode that the driver subsequently reads.

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Mark Shnaider
Sent: Monday, November 08, 2010 8:37 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Hello Doron,
Yes, I need change behavior on the value.
For example :
The our old smart cards do not support baud rate 115200 Kbytes for clock 5Mhz (only for 4 Mhz).
and work with baud rate 76800 Kbytes and clock 5Mhz. The Precise readers used clock 5Mhz.
I can change returned ART for this purpose inthe filter driver using IoSetComletionRoutine for IOCTL_SMARCARD_POWER . But I do not know how recognize reader name .
Regards
Mark

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Monday, November 08, 2010 5:39 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Please do not parse strings in a driver fir this purpose. The UI name can be MUI’ed and thus localized for each user. The symbolic link name itself will not have the mfg name in it. Why do you need the mfg name in the filter? Purely for logging or will you change behavior based on the value?

d

dent from a phpne with no keynoard

-----Original Message-----
From: Mark Shnaider
Sent: November 08, 2010 4:45 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Hello,
I want get UI or SymbolicLinkName. (created by SmartCardCreateLink function ) I need name in order to recognize vendor name of reader .
(for example: Precise Biometrics Precise 200 MC").
The IoGetDeviceProperty that I use for this purpose return status STATUS_NOT_SUPPORTED Regards MarkI

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Sunday, November 07, 2010 4:49 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Which name? The one in the UI? The symlink name?

d

dent from a phpne with no keynoard

-----Original Message-----
From: Mark Shnaider
Sent: November 07, 2010 6:25 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] get smart card reader name

Hello,
Please clarify for me.
How can I get smart card reader name in my upper smart card class filter driver .
My driver performs monitoring smart card reader IOCTLs.
Regards
Mark


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

The first parameter is the physical device object, not the one you are attached to.

d

dent from a phpne with no keynoard

-----Original Message-----
From: Mark Shnaider
Sent: November 09, 2010 2:46 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Hello Doron,
I used this function,
but IoOpenDeviceRegistryKey(pDevObj,PLUGPLAY_REGKEY_DEVICE,
STANDARD_RIGHTS_READ,&hKey)
return status STATUS_INVALID_DEVICE_REQUEST,
The PDO(pDevObj) is right, I use it to pass IRPs to low level driver.
Regards
Mark

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Tuesday, November 09, 2010 10:22 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

http://msdn.microsoft.com/en-us/library/ff549443(VS.85).aspx

IoOpenDeviceRegistryKey(PDO for your stack, PLUGPLAY_REGKEY_DEVICE, …)

There is a KMDF equivalent as well. In the inf you use the .HW section off of the install config section to write to it

d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Mark Shnaider
Sent: Tuesday, November 09, 2010 12:16 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Hello Doron,
Please clarify for me,
How I can read this information in the upper filter driver.
I did not found function for this purpose.
(How read registry value of the device node?) Regards Mark

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Monday, November 08, 2010 8:00 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

The correct way to do this is to match your logic of what do with different pieces of hardware to a registry value you read out of the device node. Basically, abstract the policy away from direct direction to a set of policy knobs the driver reads. Then, in the INF, you detect the manufacturer or model based on the hardware ID, where you have a specific install section based on that hardware ID. This specific install section writes out the correct policy knob value into the devnode that the driver subsequently reads.

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Mark Shnaider
Sent: Monday, November 08, 2010 8:37 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Hello Doron,
Yes, I need change behavior on the value.
For example :
The our old smart cards do not support baud rate 115200 Kbytes for clock 5Mhz (only for 4 Mhz).
and work with baud rate 76800 Kbytes and clock 5Mhz. The Precise readers used clock 5Mhz.
I can change returned ART for this purpose inthe filter driver using IoSetComletionRoutine for IOCTL_SMARCARD_POWER . But I do not know how recognize reader name .
Regards
Mark

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Monday, November 08, 2010 5:39 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Please do not parse strings in a driver fir this purpose. The UI name can be MUI’ed and thus localized for each user. The symbolic link name itself will not have the mfg name in it. Why do you need the mfg name in the filter? Purely for logging or will you change behavior based on the value?

d

dent from a phpne with no keynoard

-----Original Message-----
From: Mark Shnaider
Sent: November 08, 2010 4:45 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Hello,
I want get UI or SymbolicLinkName. (created by SmartCardCreateLink function ) I need name in order to recognize vendor name of reader .
(for example: Precise Biometrics Precise 200 MC").
The IoGetDeviceProperty that I use for this purpose return status STATUS_NOT_SUPPORTED Regards MarkI

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Sunday, November 07, 2010 4:49 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Which name? The one in the UI? The symlink name?

d

dent from a phpne with no keynoard

-----Original Message-----
From: Mark Shnaider
Sent: November 07, 2010 6:25 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] get smart card reader name

Hello,
Please clarify for me.
How can I get smart card reader name in my upper smart card class filter driver .
My driver performs monitoring smart card reader IOCTLs.
Regards
Mark


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Hello,
I used this function for physical device object and for attached PDO and get the same results:

NTSTATUS ArScFilterDispatchDeviceControl(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp )
{


case IOCTL_SMART_CARD_POWER:
status = IoOpenDeviceRegistryKey(
((PDEVICE_EXTENSION)DeviceObject->DeviceExtension)->TopOfStack,
PLUGPLAY_REGKEY_DEVICE, STANDARD_RIGHTS_READ, &DevInstRegKey);
Printf ((DEBUG_MSG_TRACE,“ARScFlter: IoOpenDeviceRegistryKey 1 return status=0x%x\n”,status));

status = IoOpenDeviceRegistryKey(
DeviceObject,
PLUGPLAY_REGKEY_DEVICE, STANDARD_RIGHTS_READ, &DevInstRegKey);
Printf ((DEBUG_MSG_TRACE,“ARScFlter: IoOpenDeviceRegistryKey 2 return status=0x%x\n”,status));

Regards
Mark

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Tuesday, November 09, 2010 5:05 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

The first parameter is the physical device object, not the one you are attached to.

d

dent from a phpne with no keynoard

-----Original Message-----
From: Mark Shnaider
Sent: November 09, 2010 2:46 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Hello Doron,
I used this function,
but IoOpenDeviceRegistryKey(pDevObj,PLUGPLAY_REGKEY_DEVICE,
STANDARD_RIGHTS_READ,&hKey)
return status STATUS_INVALID_DEVICE_REQUEST,
The PDO(pDevObj) is right, I use it to pass IRPs to low level driver.
Regards
Mark

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Tuesday, November 09, 2010 10:22 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

http://msdn.microsoft.com/en-us/library/ff549443(VS.85).aspx

IoOpenDeviceRegistryKey(PDO for your stack, PLUGPLAY_REGKEY_DEVICE, …)

There is a KMDF equivalent as well. In the inf you use the .HW section off of the install config section to write to it

d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Mark Shnaider
Sent: Tuesday, November 09, 2010 12:16 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Hello Doron,
Please clarify for me,
How I can read this information in the upper filter driver.
I did not found function for this purpose.
(How read registry value of the device node?) Regards Mark

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Monday, November 08, 2010 8:00 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

The correct way to do this is to match your logic of what do with different pieces of hardware to a registry value you read out of the device node. Basically, abstract the policy away from direct direction to a set of policy knobs the driver reads. Then, in the INF, you detect the manufacturer or model based on the hardware ID, where you have a specific install section based on that hardware ID. This specific install section writes out the correct policy knob value into the devnode that the driver subsequently reads.

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Mark Shnaider
Sent: Monday, November 08, 2010 8:37 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Hello Doron,
Yes, I need change behavior on the value.
For example :
The our old smart cards do not support baud rate 115200 Kbytes for clock 5Mhz (only for 4 Mhz).
and work with baud rate 76800 Kbytes and clock 5Mhz. The Precise readers used clock 5Mhz.
I can change returned ART for this purpose inthe filter driver using IoSetComletionRoutine for IOCTL_SMARCARD_POWER . But I do not know how recognize reader name .
Regards
Mark

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Monday, November 08, 2010 5:39 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Please do not parse strings in a driver fir this purpose. The UI name can be MUI’ed and thus localized for each user. The symbolic link name itself will not have the mfg name in it. Why do you need the mfg name in the filter? Purely for logging or will you change behavior based on the value?

d

dent from a phpne with no keynoard

-----Original Message-----
From: Mark Shnaider
Sent: November 08, 2010 4:45 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Hello,
I want get UI or SymbolicLinkName. (created by SmartCardCreateLink function ) I need name in order to recognize vendor name of reader .
(for example: Precise Biometrics Precise 200 MC").
The IoGetDeviceProperty that I use for this purpose return status STATUS_NOT_SUPPORTED Regards MarkI

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Sunday, November 07, 2010 4:49 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] get smart card reader name

Which name? The one in the UI? The symlink name?

d

dent from a phpne with no keynoard

-----Original Message-----
From: Mark Shnaider
Sent: November 07, 2010 6:25 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] get smart card reader name

Hello,
Please clarify for me.
How can I get smart card reader name in my upper smart card class filter driver .
My driver performs monitoring smart card reader IOCTLs.
Regards
Mark


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer