PFN_CSP_ALLOC function pointer

This topic is not current. For the most current information about the Smart Card API, see Smart Card Minidriver Specification.

The PFN_CSP_ALLOC function pointer points to a function that allocates a block of memory.

Syntax

typedef LPVOID ( WINAPI *PFN_CSP_ALLOC)(
  _In_ SIZE_T Size
);

Parameters

Size [in]

The size, in bytes, of the memory block to be allocated.

Return value

If the function succeeds, the function returns a pointer to the allocated block of memory.

If the function fails, it returns NULL.

Remarks

This function pointer is passed to a card module in a CARD_DATA structure when the Microsoft Base Smart Card Cryptographic Service Provider calls the CardAcquireContext function.

Requirements

Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Cardmod.h

See also

CARD_DATA

CardAcquireContext

PFN_CSP_FREE

PFN_CSP_REALLOC