Debugging Tools for Windows |
The AddSyntheticModule and AddSyntheticModuleWide methods add a synthetic module to the module list the debugger maintains for the current process.
HRESULT
IDebugSymbols3::AddSyntheticModule(
IN ULONG64 Base,
IN ULONG Size,
IN PCSTR ImagePath,
IN PCSTR ModuleName,
IN ULONG Flags
);
HRESULT
IDebugSymbols3::AddSyntheticModuleWide(
IN ULONG64 Base,
IN ULONG Size,
IN PCWSTR ImagePath,
IN PCWSTR ModuleName,
IN ULONG Flags
);
#ifdef UNICODE
#define AddSyntheticModuleT AddSyntheticModuleWide
#else
#define AddSyntheticModuleT AddSyntheticModule
#endif
This method may also return error values. See Return Values for more details.
AddSyntheticModule and AddSyntheticModuleWide are available in IDebugSymbols3 and later versions.
The memory region of the synthetic module, described by the Base and Size parameters, must not overlap the memory region of any other module.
If all the modules are reloaded ‑ for example, by calling Reload with the Module parameter set to an empty string ‑ all synthetic modules will be discarded.
For more information about synthetic modules, see Synthetic Modules.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.