Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.2 KB

File metadata and controls

57 lines (39 loc) · 1.2 KB

Home

Function name : SCardGetProviderId

Group: Authentication - Library: winscard


Returns the identifier (GUID) of the primary service provider for a given card.


Code examples:

Smart Card Database Query Functions

Declaration:

LONG SCardGetProviderId(
  __in   SCARDCONTEXT hContext,
  __in   LPCTSTR szCard,
  __out  LPGUID pguidProviderId
);  

FoxPro declaration:

DECLARE LONG SCardGetProviderId IN Winscard;
	INTEGER hContext,;
	STRING szCard,;
	STRING @pguidProviderId  

Parameters:

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

szCard [in] Name of the card defined to the system.

pguidProviderId [out] Identifier (GUID) of the primary service provider. This provider may be activated using COM, and will supply access to other services in the card.


Return value:

Returns SCARD_S_SUCCESS (0) or error code.


Comments:

The SCardGetProviderId function is a database query function.