Skip to content

Latest commit

 

History

History
50 lines (43 loc) · 1.34 KB

idebugprogram2-getmemorybytes.md

File metadata and controls

50 lines (43 loc) · 1.34 KB
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
IDebugProgram2::GetMemoryBytes
IDebugProgram2::GetMemoryBytes
maiak
maiak
mijacobs
debug-diagnostics
CPP
CSharp

IDebugProgram2::GetMemoryBytes

Retrieves the memory bytes occupied by the program.

Syntax

int GetMemoryBytes( 
   out IDebugMemoryBytes2 ppMemoryBytes
);
HRESULT GetMemoryBytes( 
   IDebugMemoryBytes2** ppMemoryBytes
);

Parameters

ppMemoryBytes
[out] Returns an IDebugMemoryBytes2 object that represents the memory bytes of the program.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

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.

See also