Share via


IDebugProgram2::GetMemoryBytes

擷取程式所佔用的記憶體位元組。

語法

int GetMemoryBytes( 
   out IDebugMemoryBytes2 ppMemoryBytes
);

參數

ppMemoryBytes
[out]會傳 回代表程式記憶體位元組的IDebugMemoryBytes2 物件。

傳回值

如果成功,則會傳回 S_OK;否則,會傳回錯誤碼。

備註

IDebugMemoryBytes2 物件所代表的記憶體位元組是針對程式記憶體中的映像,而不是在執行程式時配置的任何記憶體。

另請參閱