PFN_CSP_ALLOC Function Pointer

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, Windows 2000 Professional with SP4
Minimum supported server Windows Server 2003, Windows 2000 Server with SP4
Header Cardmod.h

See Also

CARD_DATA

CardAcquireContext

PFN_CSP_FREE

PFN_CSP_REALLOC

Send comments about this topic to Microsoft

Build date: 3/5/2009