| Previous | Next |
| SCARD_E_NOT_READY | SCARD_E_SYSTEM_CANCELLED |
SCARD_E_INVALID_VALUE
SCARD_E_INVALID_VALUE One or more PC/SC parameter values could not be interpreted. The code identifies an invalid API invocation, so the right starting point is the exact function, flags, buffer lengths, and structure sizes passed by the caller.
Developer checks
- Log the exact API call and all non-secret parameters, including share mode, protocol mask, reader name, and input/output lengths.
- Use only documented flag combinations and initialize versioned structures to the size expected by the Windows API.
- Separate this condition from card rejection: validate the call locally before sending an APDU to the card.
Microsoft: Smart Card Functions
Microsoft: Smart Card return values
Looking for a different code? Search another status or error code.