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: 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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
2 sec.Function: 'CeDeleteFile'
Function group: 'Remote Application Programming (RAPI)'
4 sec.Function: 'waveOutUnprepareHeader'
Function group: 'Windows Multimedia'
6 sec.Example: 'How to make application automatically close all documents it opened'
9 sec.Example: 'Using WM_COPYDATA for interprocess communication (VFP9)'
12 sec.Function: 'CreateHardLink'
Function group: 'File Management'
15 sec.Function: 'accept'
Function group: 'Windows Sockets 2 (Winsock)'
25 sec.Function: 'GdipTranslateWorldTransform'
Function group: 'GDI+ Graphics'
30 sec.Function: 'FtpGetCurrentDirectory'
37 sec.Function: 'MAPISendDocuments'
3 day(s)Example: 'Using File Mapping for enumerating files opened by Visual FoxPro'
Advertise here!