The SCardGetProviderId function returns the identifier (GUID) of the primary service provider for a given card.
The caller supplies the name of a smart card (previously introduced to the system) and receives the registered identifier of the primary service provider GUID, if one exists.
LONG SCardGetProviderId(
IN SCARDCONTEXT hContext,
IN LPCTSTR szCard,
OUT LPGUID pguidProviderId
);
If the function… | The return value is… |
---|---|
Succeeds | SCARD_S_SUCCESS. |
Fails | An error code (see Error Codes for a list of all error codes). |
SCardGetProviderId is a database query function. For a description of other database query functions, see Smart Card Database Query Functions.
Windows NT: Use version 4.0 SP3 and later.
Windows: Use Windows 95 OSR2.1.
Windows CE: Unsupported.
Header: Declared in winscard.h.
Import Library: Link with winscard.lib.
SCardEstablishContext, SCardListCards, SCardListInterfaces, SCardListReaderGroups, SCardListReaders