SCardWriteCache function Null safety winscard

int SCardWriteCache(
  1. int hContext,
  2. Pointer<GUID> CardIdentifier,
  3. int FreshnessCounter,
  4. Pointer<Utf16> LookupName,
  5. Pointer<Uint8> Data,
  6. int DataLen
)

The SCardWriteCache function writes a name-value pair from a smart card to the global cache maintained by the Smart Card Resource Manager.

LONG SCardWriteCacheW(
  SCARDCONTEXT hContext,
  UUID         *CardIdentifier,
  DWORD        FreshnessCounter,
  LPWSTR       LookupName,
  PBYTE        Data,
  DWORD        DataLen
);

Implementation

int SCardWriteCache(
        int hContext,
        Pointer<GUID> CardIdentifier,
        int FreshnessCounter,
        Pointer<Utf16> LookupName,
        Pointer<Uint8> Data,
        int DataLen) =>
    _SCardWriteCache(
        hContext, CardIdentifier, FreshnessCounter, LookupName, Data, DataLen);