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

static SCONTEXTMAP * SCardGetContext ( SCARDCONTEXT  hContext ) [static]

Get the index from the Application Context vector _psContextMap for the passed context.

This function is a thread-safe wrapper to the function SCardGetContextTH().

Parameters:
[in]hContextApplication Context whose index will be find.
Returns:
Index corresponding to the Application Context or -1 if it is not found.

Definition at line 3448 of file winscard_clnt.c.

References SCardGetContextTH(), SCardLockThread(), and SCardUnlockThread().

Referenced by SCardCancel(), SCardConnect(), SCardFreeMemory(), SCardGetStatusChange(), SCardIsValidContext(), SCardListReaderGroups(), SCardListReaders(), and SCardReleaseContext().

{
      SCONTEXTMAP * currentContextMap;

      (void)SCardLockThread();
      currentContextMap = SCardGetContextTH(hContext);
      (void)SCardUnlockThread();

      return 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