SCardGetStatusChange() returns unknown flag in SCARD_READERSTATE

Peter Skvarka 21 Reputation points
2021-05-17T11:50:38.173+00:00

Hello,
ScardGetStatusChange() returns unknown flags in dwEventState member of SCARD_READERSTATE.
0x10000 or 0x20000.
No of them is documented. The highest documented value is 0x400.

Does anybody known what is meaning of these flags ?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,427 questions
0 comments No comments
{count} votes

Accepted answer
  1. Fei Xue - MSFT 1,111 Reputation points
    2021-06-09T01:38:44.983+00:00

    @Peter Skvarka ,

    For 0x400(SCARD_STATE_UNPOWERED), this implies that the card in the reader has not been powered up. You can refer this from winscard.h of latest Windows 10 SDK (10.0.19041.0). For 0x10000 or 0x2000, can you help confirm which scenario you will get these values?

    Thanks for feedback on this document issue, I will also trying to contact corresponding document teams to help update the docs. And if you have any other document issues, can you also submit the feedback directly through the Is this page helpful? section on that document page.

    Update
    The reader state(4 bytes) contains count(2 bytes) and state(2 bytes) as table below. So the values about 0x10000 and 0x20000 when bitwise AND with SCARD_STATE_UNAWARE is 0x0000. The Reader State is therefore 0x0000. You can refer to more details about reader state from link below:

    Reader State

    106165-untitled.png

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful