description | title | ms.date | ms.topic | f1_keywords | helpviewer_keywords | author | ms.author | manager | ms.subservice | dev_langs | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the memory bytes occupied by the program. |
IDebugProgram2::GetMemoryBytes |
11/04/2016 |
reference |
|
|
maiak |
maiak |
mijacobs |
debug-diagnostics |
|
Retrieves the memory bytes occupied by the program.
int GetMemoryBytes(
out IDebugMemoryBytes2 ppMemoryBytes
);
HRESULT GetMemoryBytes(
IDebugMemoryBytes2** ppMemoryBytes
);
ppMemoryBytes
[out] Returns an IDebugMemoryBytes2 object that represents the memory bytes of the program.
If successful, returns S_OK
; otherwise, returns an error code.
The memory bytes as represented by the IDebugMemoryBytes2 object is for the program's image in memory and not any memory that was allocated when the program was executed.