Share via


IDebugModuleLoadEvent2::GetModule

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Gets the module that is being loaded or unloaded.

Syntax

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