Logo Search packages:      
Sourcecode: pcsc-lite version File versions  Download package

LONG SCardReleaseContext ( SCARDCONTEXT  hContext  ) 

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

Parameters:
[in] hContext Connection context to be closed.
Returns:
Connection status.
Return values:
SCARD_S_SUCCESS Successful.
Test:
 SCARDCONTEXT hContext;
 LONG rv;
 ...
 rv = SCardEstablishContext(SCARD_SCOPE_SYSTEM, NULL, NULL, &hContext);
 rv = SCardReleaseContext(hContext); 

Definition at line 189 of file winscard_scf.c.

References SCardLockThread(), and SCardUnlockThread().

Referenced by MSGFunctionDemarshall().

{
      long rv;

      SCardLockThread();
      rv = SCardReleaseContextTH(hContext);
      SCardUnlockThread();

      return rv;
}


Generated by  Doxygen 1.6.0   Back to index