SCardGetReaderDeviceInstanceId 的实现

Posted

技术标签:

【中文标题】SCardGetReaderDeviceInstanceId 的实现【英文标题】:The implementation of SCardGetReaderDeviceInstanceId 【发布时间】:2015-12-08 04:52:12 【问题描述】:

微软在 Windows8 及更高版本的 winscard.dll 中实现了SCardGetReaderDeviceInstanceId。我真的很想知道这个功能的实现。我试图反编译它,但不擅长反编译,我什么也没得到。我之所以问,是因为我需要将智能卡读卡器名称与 DeviceInstanceId 相关联,所以我认为我可以根据它在 Windows8 上的实现在 Windows7 甚至更早的版本上实现它。那么各位,有什么帮助吗?

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

【问题讨论】:

这是一个与我的要求类似的问题。 link 【参考方案1】:

看看here。看来您的要求在 Windows7 及旧版本上无法完成。

【讨论】:

好的...但是,SCardGetReaderDeviceInstanceId 的实现怎么样,有什么想法吗?

以上是关于SCardGetReaderDeviceInstanceId 的实现的主要内容,如果未能解决你的问题,请参考以下文章