Share via


PFN_CSP_CACHE_LOOKUP_FILE function pointer

The PFN_CSP_CACHE_LOOKUP_FILE function is called through a pointer in the CARD_DATA structure when the card minidriver wants to read the contents of a file from the cache.

Syntax

typedef DWORD ( WINAPI *PFN_CSP_CACHE_LOOKUP_FILE)(
  _In_  PVOID  pvCacheContext,
  _In_  LPWSTR wsaTag,
  _In_  DWORD  dwFlags,
  _Out_ PBYTE  ppbData,
  _In_  DWORD  cbData
);

Parameters

  • pvCacheContext [in]
    The cache context value that is supplied by the Base CSP/KSP.

  • wsaTag [in]
    The name of the file to read.

  • dwFlags [in]
    Reserved. Set to zero.

  • ppbData [out]
    Address of a byte pointer that receives the address of the returned data buffer. The data buffer is freed by the card minidriver. The value of this pointer is not examined or used before it is overwritten by the returned buffer address.

  • cbData [in]
    Address of a DWORD that receives the byte count of the data pointed to by ppbData.

Return value

Zero on success; otherwise, nonzero.

Requirements

Target platform

Desktop

Header

Cardmod.h (include Cardmod.h)

 

 

Send comments about this topic to Microsoft