共用方式為


IDebugMemoryBytes2::GetSize

Retrieves the size, in bytes, of the memory represented by this IDebugMemoryBytes2 object.

HRESULT GetSize( 
   UINT64* pqwSize
);
int GetSize(
   out ulong pqwSize
);

Parameters

  • pqwSize
    [out] Returns the size, in bytes of the memory space.

Return Value

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

See Also

Reference

IDebugMemoryBytes2