question

PeterSkvarka-7035 avatar image
0 Votes"
PeterSkvarka-7035 asked FeiXue-MSFT edited

SCardGetStatusChange() returns unknown flag in SCARD_READERSTATE

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

FeiXue-MSFT avatar image
1 Vote"
FeiXue-MSFT answered FeiXue-MSFT edited

@PeterSkvarka-7035,

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





untitled.png (49.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.