Поделиться через


PFN_FreeHeapMem (Compact 2013)

10/16/2014

This function is a custom deallocator function for heaps.

Syntax

typedef BOOL (*PFN_FreeHeapMem)(
  LPVOID pAddr,
  DWORD cbSize, 
  DWORD fdwAction, 
  DWORD dwUserData
);

Parameters

  • pAddr
    [in] Memory address to be freed; always page-aligned.
  • cbSize
    [in] Size to be freed or 0 if MEM_RELEASE is specified.
  • fdwAction
    Value that specifies the action.

    The following table shows values for this parameter.

    Value

    Description

    MEM_DECOMMIT

    Decommit memory of size cbSize from pAddr.

    MEM_RELEASE

    Release the whole memory reservation. cbSize will be 0.

  • dwUserData
    [in] A DWORD associated with the memory reservation.

Return Value

A nonzero value indicates success. Zero indicates failure.

Requirements

Header

Developer Implemented

Library

coredll.lib

See Also

Reference

Kernel Functions Available to the OAL
PFN_AllocHeapMem