Share via


IOCTL_SMARTCARD_IS_PRESENT (Windows Embedded CE 6.0)

1/6/2010

This code is used to wait for card insertion. The operation either returns immediately with STATUS_SUCCESS, which indicates that a card is already in the reader, or it blocks until a card is inserted.

Parameters

  • dwCode
    [in] Specifies this code.
  • pBufIn
    Ignored.
  • dwLenIn
    Ignored.
  • pBufOut
    Ignored.
  • dwLenOut
    [out] Must be set to 0.
  • pdwActualOut
    [out] Must be set to 0.

Return Values

One of the following status values.

Status Description

STATUS_SUCCESS

There is a smart card in the card reader.

STATUS_CANCELLED

The card reader was closed or the IOCTL_SMARTCARD_CANCEL_BLOCKING code was issued.

STATUS_DEVICE_BUSY

Event tracking is already active.

STATUS_INVALID_DEVICE_STATE

The card reader cannot accept the request.

Remarks

Smart card reader drivers return Windows NT status values, rather than Win32 error values, as the return values from the driver's callback function.

Requirements

Header winsmcrd.h
Windows Embedded CE Windows CE 3.0 and later

See Also

Reference

Smart Card Driver IOCTLs
XXX_Open (Device Manager)