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
SCardListCards
..msdn    Add comment     W32 Constants      Translate this page
Searches the smart card database and provides a list of named cards previously introduced to the system by the user.
Code examples:
Smart Card Database Query Functions
Declaration:
LONG SCardListCards(
  __in     SCARDCONTEXT hContext,
  __in     LPCBYTE pbAtr,
  __in     LPCGUID rgguidInterfaces,
  __in     DWORD cguidInterfaceCount,
  __out    LPTSTR mszCards,
  __inout  LPDWORD pcchCards
);
FoxPro declaration:
DECLARE LONG SCardListCards IN Winscard;
    INTEGER hContext,;
    INTEGER pbAtr,;
    INTEGER rgguidInterfaces,;
    LONG cguidInterfaceCount,;
    STRING @mszCards,;
    LONG @pcchCards

Parameters:
hContext [in]
Handle that identifies the resource manager context for the query

pbAtr [in]
Address of an ATR string to compare to known cards, or NULL if no ATR matching is to be performed.

rgguidInterfaces [in]
Array of identifiers (GUIDs), or NULL if no interface matching is to be performed.

cguidInterfaceCount [in]
Number of entries in the rgguidInterfaces array. If rgguidInterfaces is NULL, then this value is ignored.

mszCards [out]
Multi-string that lists the smart cards found.

pcchCards [in, out]
Length of the mszCards buffer in characters. Receives the actual length of the multi-string structure, including all trailing null characters.
Return value:
Returns SCARD_S_SUCCESS (0) or error code.
Usage:
LOCAL cBuffer, nBufsize, nResult
nBufsize=256
cBuffer=REPLICATE(CHR(0), nBufsize)

nResult = SCardListCards(hContext,;
    0, 0, 0, @cBuffer, @nBufsize)
My comment:
The SCardListCards function is a database query function.
Word Index links for the SCardListCards :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2008-10-22 19:42:59
Modified: 2008-10-22 19:46:34
Visited in last 7 days: 13
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.167.250.64)
4 sec.Function: 'EnumDeviceDrivers'
9 sec.Function: 'mixerSetControlDetails'
12 sec.Function: 'CeRegDeleteKey'
16 sec.Function: 'ReportEvent'
20 sec.Function: 'ws_select'
24 sec.Function: 'FindWindow'
29 sec.Function: 'LoadResource'
33 sec.Function: 'CryptBinaryToString'
37 sec.Function: 'GetDlgItem'
44 sec.Function: 'ReleaseSemaphore'
Google
Advertise here!