Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Smart Card Database Query Functions
..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
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

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.
LOCAL cBuffer, nBufsize, nResult
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 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: 20
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 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.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
22 sec.Updates
42 sec.Function: 'GdipSetPropertyItem'
Function group: 'GDI+ Image'
1.03 min.Example: 'How to retrieve network parameters for the local computer (including Host name, Domain name, and DNS Server)'
1.35 min.Function: 'GetStartupInfo'
Function group: 'Process and Thread'
1.7 min.Function: 'MoveFileTransacted'
Function group: 'File Management'
2 min.
Function group: 'ODBC API'
2.35 min.Function: 'DeleteUrlCacheEntry'
Function group: 'Internet Functions (WinInet)'
2.65 min.
3.05 min.Function: 'GetCurrentProcessId'
Function group: 'Process and Thread'
3.38 min.Function: 'UnhookWindowsHookEx'
Function group: 'Hook'
Advertise here!