Debugging Tools for Windows |
The LoadModule callback method is called by the engine when a module-load debugging event occurs in the target.
HRESULT
IDebugEventCallbacks::LoadModule(
IN ULONG64 ImageFileHandle,
IN ULONG64 BaseOffset,
IN ULONG ModuleSize,
IN PCSTR ModuleName,
IN PCSTR ImageName,
IN ULONG CheckSum,
IN ULONG TimeDateStamp
);
HRESULT
IDebugEventCallbacksWide::LoadModule(
IN ULONG64 ImageFileHandle,
IN ULONG64 BaseOffset,
IN ULONG ModuleSize,
IN PCWSTR ModuleName,
IN PCWSTR ImageName,
IN ULONG CheckSum,
IN ULONG TimeDateStamp
);
#ifdef UNICODE
#define IDebugEventCallbacksT IDebugEventCallbacksWide
#else
#define IDebugEventCallbacksT IDebugEventCallbacks
#endif
This method returns a DEBUG_STATUS_XXX value, which indicates how the execution of the target should proceed after the engine processes this event. For details on how the engine treats this value, see Monitoring Events.
This method is only called by the engine if the DEBUG_EVENT_LOAD_MODULE flag is set in the mask returned by IDebugEventCallbacks::GetInterestMask.
After calling this method, the engine will call IDebugEventCallbacks::ChangeSymbolState, with the Flags parameter containing the bit flag DEBUG_CSS_LOADS.
For more information about handling events, see Monitoring Events.
Headers: Defined in dbgeng.h. Include dbgeng.h.