SCardGetProviderId function Null safety winscard

int SCardGetProviderId(
  1. int hContext,
  2. Pointer<Utf16> szCard,
  3. Pointer<GUID> pguidProviderId
)

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 SCardGetProviderIdW(
  SCARDCONTEXT hContext,
  LPCWSTR      szCard,
  LPGUID       pguidProviderId
);

Implementation

int SCardGetProviderId(
        int hContext, Pointer<Utf16> szCard, Pointer<GUID> pguidProviderId) =>
    _SCardGetProviderId(hContext, szCard, pguidProviderId);