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 165 of file winscard.c.

References rxSharedSegment::data, release_struct::hContext, psContextMap, release_struct::rv, SCardCheckDaemonAvailability(), SCardGetContextIndice(), SCardLockThread(), SCardRemoveContext(), SCardUnlockThread(), SHMClientRead(), SYS_MutexLock(), SYS_MutexUnLock(), and WrapSHMWrite().

Referenced by MSGFunctionDemarshall().

{
      /*
       * Nothing to do here RPC layer will handle this
       */

      Log2(PCSC_LOG_DEBUG, "Releasing Context: %d", hContext);

      return SCARD_S_SUCCESS;
}


Generated by  Doxygen 1.6.0   Back to index