IDebugHostModule2::GetBaseLocation method (dbgmodel.h)
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 |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for