Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The GetBaseLocation method returns the base load address of the module as a location structure. The returned location structure for a module will typically refer to a virtual address.
Syntax
HRESULT GetBaseLocation(
Location *moduleBaseLocation
);
Parameters
moduleBaseLocation
The loading address of the base of the module in memory is returned here as a location structure. Typically, this refers to a virtual address.
Return value
This method returns HRESULT which indicates success or failure.
Remarks
Sample Code
ComPtr<IDebugHostModule> spModule; /* get a module (see FindModuleByName) */
Location moduleBase;
if (SUCCEEDED(spModule->GetBaseLocation(&moduleBase)))
{
// moduleBase contains the base address of the module
}
Requirements
Requirement | Value |
---|---|
Header | dbgmodel.h |