Compartir a través de


IDebugProgram2::GetMemoryBytes

Retrieves the memory bytes occupied by the program.

HRESULT GetMemoryBytes( 
   IDebugMemoryBytes2** ppMemoryBytes
);
int GetMemoryBytes( 
   out 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

Reference

IDebugProgram2

IDebugMemoryBytes2