IDebugModuleLoadEvent2::GetModule

Gets the module that is being loaded or unloaded.

HRESULT GetModule( 
   IDebugModule2** pModule,
   BSTR*           pbstrDebugMessage,
   BOOL*           pbLoad
);
int GetModule( 
   out IDebugModule2 pModule,
   ref string        pbstrDebugMessage,
   ref int           pbLoad
);

Parameters

  • pModule
    [out] Returns an IDebugModule2 object that represents the module which is loading or unloading.

  • pbstrDebugMessage
    [in, out] Returns an optional message describing this event. If this parameter is a null value, no message is requested.

  • pbLoad
    [in, out] Nonzero (TRUE) if the module is loading and zero (FALSE) if the module is unloading. If this parameter is a null value, no status is requested.

Return Value

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

See Also

Reference

IDebugModuleLoadEvent2

IDebugModule2