Using Win32 functions in Visual FoxPro Image Gallery
Authentication
SCardConnect
SCardControl
SCardDisconnect
SCardEstablishContext
SCardGetAttrib
SCardGetProviderId
SCardIsValidContext
SCardListCards
SCardListInterfaces
SCardListReaderGroups
SCardListReaders
SCardReleaseContext
SCardStatus
SCardTransmit
Code examples:
Smart Card Database Query Functions
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:
Smart Card Database Query Functions
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2008-10-08 15:13:13
Modified: 2008-10-08 15:16:57
Visited in last 7 days: 6
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.158.212.93)
7 sec.Function: 'FindCloseUrlCache'
16 sec.Function: 'AVIStreamGetFrame'
27 sec.Function: 'DuplicateHandle'
39 sec.Function: 'SetVolumeMountPoint'
50 sec.Function: 'WNetGetLastError'
59 sec.Function: 'GetTcpStatistics'
1.17 min.Example: 'Locking mouse and keyboard input for the VFP application'
1.37 min.Function: 'GdipGetPropertyItemSize'
1.55 min.Function: 'midiOutGetDevCaps'
1.75 min.Function: 'IsNetworkAlive'
Google
Advertise here!