| Previous | Next |
| SCARD_W_CHV_BLOCKED | SCARD_W_CANCELLED_BY_USER |
SCARD_W_EOF
An end-of-object condition
SCARD_W_EOF reports that a smart-card file operation reached the end of the selected object. It can be a normal boundary condition when an application reads a card file in chunks, but it can also reveal an incorrect expected length, record count, or offset. It is not a PC file-system EOF and does not imply that the reader lost the card.
The relevant object model depends on the card profile and middleware. Some cards expose elementary files or record-oriented data, while others use application-specific applets and do not support arbitrary file semantics. A caller should therefore use the card provider's object metadata rather than assuming host-file behavior.
What to check
- Log the selected application, object identifier, offset, requested length, and bytes received.
- Treat EOF as a successful end-of-data only when the API contract permits a partial final read.
- Recheck the selection and object type after a reset or card change before resuming a chunked read.
References
Looking for a different code? Search another status or error code.