PFN_FreeHeapMem (Windows Embedded CE 6.0)

1/5/2010

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
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

Other OAL Functions
PFN_AllocHeapMem

Other Resources

CeHeapCreate