 |
SCardReleaseContext ..msdn Add comment W32 Constants Translate this page |
 |
 |
Closes an established resource manager context, freeing any resources allocated under that context, including SCARDHANDLE objects and memory allocated using the SCARD_AUTOALLOCATE length designator.
|
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
LONG SCardReleaseContext(
__in SCARDCONTEXT hContext
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE LONG SCardReleaseContext IN Winscard;
INTEGER hContext
|
 |
 |
 |
| Parameters: |
 |
hContext [in]
Handle that identifies the resource manager context.
|
 |
 |
| Return value: |
 |
| If the function succeeds, the function returns SCARD_S_SUCCESS (0). |
 |
 |
| Usage: |
 |
#DEFINE SCARD_SCOPE_USER 0
#DEFINE SCARD_SCOPE_SYSTEM 2
#DEFINE SCARD_S_SUCCESS 0
LOCAL hContext
hContext=0
IF SCardEstablishContext(SCARD_SCOPE_USER, 0, 0,;
@hContext) <> SCARD_S_SUCCESS
RETURN
ENDIF
...
= SCardReleaseContext(m.hContext)
|
 |
 |
| My comment: |
 |
| The resource manager context is set by a previous call to SCardEstablishContext. |
 |
 |
| Word Index links for the SCardReleaseContext : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2008-10-08 15:13:13 | | Modified: | 2008-10-08 15:16:57 | Visited in last 7 days: 15 |