PC/SC Guide
Prox–DU & Prox–SU
www.gemalto.com
DOC119811A Public Use Page 67/129
The SCardControl function is a direct card access function. For more information on other
direct access functions, see Direct Card Access Functions.
Examples:
The following example issues a control code. The example assumes that hCardHandle is a
valid handle received from a previous call to SCardConnect and that dwControlCode is a
variable of type DWORD previously initialized to a valid control code. This particular control
code requires no input data and expects no output data.
lReturn = SCardControl( hCardHandle,
dwControlCode,
NULL,
0,
NULL,
0,
0 );
if ( SCARD_S_SUCCESS != lReturn )
printf("Failed SCardControl\n");