#include <winscard.h> LONG SCardReleaseContext(SCARDCONTEXT hContext);
| hContext | IN | Connection context to be closed |
This function destroys a communication context to the PC/SC Resource Manager. This must be the last function called in a PC/SC application.
SCARDCONTEXT hContext; LONG rv; rv = SCardEstablishContext(SCARD_SCOPE_SYSTEM, NULL, NULL, &hContext); rv = SCardReleaseContext(hContext);
| SCARD_S_SUCCESS | Successful |
| SCARD_E_INVALID_HANDLE | Invalid hContext handle |