
ACM1252U-Y3
– Reference Manual
Version 1.03
www.acs.com.hk
Page 16 of 92
www.acs.com
.hk
#define
SCARD_SCOPE_USER 0
SCARDCONTEXT
hContext;
// Resource manager context
SCARDHANDLE
hCard;
// Card context handle
unsigned long
dwActProtocol;
// Established active protocol
int
retCode;
void main ()
{
…
// Connection successful
…
retCode = SCardDisconnect(hCard,SCARD_RESET_CARD);
if
(retCode != SCARD_S_SUCCESS)
{
// Disconnection failed
}
else
{
// Disconnection successful
}
}
}
5.1.6.
SCardDisconnect
The
SCardDisconnect
function terminates a connection previously opened between the calling
application and a smart card in the target reader.
Refer to:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa379475%28v=vs.85%29.aspx
This function ends the PCSC Operation.
Example: