Share via


PFN_CSP_ALLOC function pointer

The PFN_CSP_ALLOC function is called through a pointer in the CARD_DATA structure when the card minidriver wants to allocate a block of memory. The returned memory is aligned and size-adjusted according to the requirements of the platform.

Syntax

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

Parameters

  • Size [in]
    Size, in bytes, of the memory block to be created by this operation.

Return value

Nonzero on a successful allocation; otherwise, NULL.

Remarks

A return of NULL implies an out-of-memory condition and should be treated as if a call to HeapAlloc failed. Subsequently, the card minidriver should return ERROR_NOT_ENOUGH_MEMORY.

Requirements

Target platform

Desktop

Header

Cardmod.h (include Cardmod.h)

 

 

Send comments about this topic to Microsoft