Home > Net >  Win10 64 - bit systems used in SCardEstablishContext x8010001d returns 0
Win10 64 - bit systems used in SCardEstablishContext x8010001d returns 0

Time:03-09

In Windows 7 64 - bit vs2019 development projects, including the enumeration PCSC reader and dynamic monitoring equipment the demand of the plug,
Using SCard the API function of the device enumeration on Windows 7 64 bit and 32 bit win10 are no problem,
When running on 64 - bit Win10 system program not enumerated PCSC reader,
Build the development environment and found SCardEstablishContext function returns 0 x8010001d, find error code that is smart card resource mananger didn't start
Right-click the compiled exe file as an administrator to run the same error,
To find a post:
https://docs.microsoft.com/zh-cn/archive/blogs/alejacma/scardestablishcontext-fails-with-scard_e_no_service-error
To analyze said:

SCardEstablishContext API is returning that error because it gets an Access Denied error when trying to open an event called "Global \ Microsoft Smart Card Resource Manager Started" with OpenEvent API. The default security for that event on Vista and Windows 7 specifies that only The SYSTEM, The LOCAL SERVICE and INTERACTIVE users have Access to it. The NETWORK SERVICE or non -interactive users won 't be able to Access The event.

Enabling "Allow service to interact with the desktop" won 't help.

According to the post the instructions on the AddAceToObjectsSecurityDescriptor also failed, prompt no right to think

Did anyone meet the same problem? How to solve?

  •  Tags:  
  • C#
  • Related