3.1.4.2 SCARD_IOCTL_RELEASECONTEXT (IOCTL 0x00090018)

Release Context releases a previously established Smart Cards for Windows context as specified in section 3.1.4.1. The context MUST exist in rgSCardContextList.

Return Values: This method sets Long_Return.ReturnCode (for more information, see section 2.2.3.3) to SCARD_S_SUCCESS on success; otherwise, it sets one of the smart card-specific errors or one of the return codes from Winerror.h. No specialized error codes are associated with this method.

If the call is successful, Context_Call.Context (for more information, see section 2.2.2.2) is removed from rgSCardContextList.