Share via


CEL_HEAP_ALLOC (Compact 2013)

3/28/2014

This structure identifies a heap allocation made by a thread with HeapAlloc.

Syntax

typedef struct __CEL_HEAP_ALLOC {
  HANDLE hHeap;
  DWORD dwFlags;
  DWORD dwBytes;
  DWORD lpMem;
  DWORD dwTID;
  DWORD dwPID;
  DWORD dwCallerPID;
  DWORD adwStackTrace[0];
} CEL_HEAP_ALLOC, *PCEL_HEAP_ALLOC; 

Members

  • hHeap
    Handle of the heap used in the allocation. This corresponds to the hHeap parameter of HeapAlloc.
  • dwFlags
    Flags used to allocate the memory. This corresponds to the dwFlags parameter of HeapAlloc.
  • dwBytes
    Number of bytes allocated. This corresponds to the dwBytes parameter of HeapAlloc.
  • lpMem
    Corresponds to the pointer returned from HeapAlloc.
  • dwTID
    Identifier of the thread that allocated the memory.
  • dwPID
    Process that owns the thread that allocated the memory.
  • dwCallerPID
    Process inside which the thread that allocated the memory is currently running.
  • adwStackTrace
    Optional array of addresses of functions on the stack at the point when the memory was allocated. The length of the stack trace can be inferred from the length given in the CEL_HEADER event header.

Requirements

Header

celog.h

See Also

Reference

CeLog Event Tracking Structures
HeapAlloc
CEL_HEADER