Subsections

SCardReleaseContext

Synopsis:

#include <winscard.h>

LONG SCardReleaseContext(SCARDCONTEXT hContext);

Parameters:

hContext IN Connection context to be closed

Description:

This function destroys a communication context to the PC/SC Resource Manager. This must be the last function called in a PC/SC application.

Example:

SCARDCONTEXT hContext;
LONG rv;

rv = SCardEstablishContext(SCARD_SCOPE_SYSTEM, NULL, NULL, &hContext);
rv = SCardReleaseContext(hContext);

Returns:

SCARD_S_SUCCESS Successful
SCARD_E_INVALID_HANDLE Invalid hContext handle



2007-06-17