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

static LONG SCardRemoveContext ( SCARDCONTEXT  hContext ) [static]

Removes an Application Context from a control vector.

Parameters:
[in]hContextApplication Context to be removed.
Returns:
Error code.
Return values:
SCARD_S_SUCCESSSuccess (SCARD_S_SUCCESS)
SCARD_E_INVALID_HANDLEThe context hContext was not found (SCARD_E_INVALID_HANDLE)

Definition at line 3485 of file winscard_clnt.c.

References SCARD_E_INVALID_HANDLE, and SCardGetContextTH().

Referenced by SCardReleaseContext().

{
      SCONTEXTMAP * currentContextMap;
      currentContextMap = SCardGetContextTH(hContext);

      if (NULL == currentContextMap)
            return SCARD_E_INVALID_HANDLE;
      else
            return SCardCleanContext(currentContextMap);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index