News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

process heap information

Started by pavellus, August 23, 2006, 03:21:46 PM

Previous topic - Next topic

pavellus

I need PROCESS_HEAP_ENTRY struct definition in asm file
or asm source of program which show process information.

Tedd

Quotetypedef struct _PROCESS_HEAP_ENTRY {
    PVOID lpData;
    DWORD cbData;
    BYTE cbOverhead;
    BYTE iRegionIndex;
    WORD wFlags;
    union {
        struct {
            HANDLE hMem;
            DWORD dwReserved[ 3 ];
        } Block;
        struct {
            DWORD dwCommittedSize;
            DWORD dwUnCommittedSize;
            LPVOID lpFirstBlock;
            LPVOID lpLastBlock;
        } Region;
    };
} PROCESS_HEAP_ENTRY;


Untested..
PHE_BLOCK struct
    hMem                HANDLE  ?
    dwReserved          DWORD 3 dup (?)
PHE_BLOCK ends

PHE_REGION struct
    dwCommittedSize     DWORD   ?
    dwUnCommittedSize   DWORD   ?
    lpFirstBlock        LPVOID  ?
    lpLastBlock         LPVOID  ?
PHE_REGION ends

PROCESS_HEAP_ENTRY struct
    lpData              DWORD   ?
    cbData              DWORD   ?
    cbOverhead          BYTE    ?
    iRegionIndex        BYTE    ?
    wFlags              WORD    ?
    union
        Block           PHE_BLOCK  <>
        Region          PHE_REGION <>
    ends
PROCESS_HEAP_ENTRY ends
No snowflake in an avalanche feels responsible.