Compartilhar via


PFN_FreeHeapMem (Windows CE 5.0)

Send Feedback

This function is a custom deallocator function for heaps.

typedef BOOL (*PFN_FreeHeapMem)(LPVOIDpAddr,DWORDcbSize,DWORDfdwAction,DWORDdwUserData);

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

OS Versions: Windows CE 5.0 and later.
Header: Developer-defined.
Link Library: Coredll.lib.

See Also

PFN_AllocHeapMem | CeHeapCreate

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.