SevenWow
SevenWow

Reputation: 315

The implementation of SCardGetReaderDeviceInstanceId

Microsoft implements SCardGetReaderDeviceInstanceId in winscard.dll on Windows8 and later version. I really want to know the implementation of this function. I tried to decompile it but am not good at decompilation, I got nothing. I am asking because I have a requirement to correlate smartcard reader Name with DeviceInstanceId, so I think I may able to implement it on Windows7 or even older version based on its implementation on Windows8. So folks, anyhelp?

LONG WINAPI SCardGetReaderDeviceInstanceId(
  _In_      SCARDCONTEXT hContext,
  _In_      LPCTSTR      szReaderName,
  _Out_opt_ LPTSTR       szDeviceInstanceId,
  _Inout_   LPDWORD      cchDeviceInstanceId
);

Upvotes: 1

Views: 346

Answers (1)

Enniswen
Enniswen

Reputation: 26

Have a look here. It seems that your requirement isn't possible to finish on Windows7 and older version.

Upvotes: 1

Related Questions