नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
Retrieves a reference to the interface of the debug module.
Syntax
Parameters
ppModule
[out] Reference to the debug module interface.
Return Value
If successful, returns S_OK; otherwise, returns an error code.
Example
The following example shows how to implement this method for a CDebugCodeContext object that exposes the IDebugBeforeSymbolSearchEvent2 interface.
HRESULT CDebugCodeContext::GetModule(IDebugModule2** ppModule)
{
HRESULT hr = S_OK;
CComPtr<CModule> pModule;
IfFalseGo( ppModule, E_INVALIDARG );
*ppModule = NULL;
IfFailGo( this->GetModule(&pModule) );
IfFailGo( pModule->QueryInterface(IID_IDebugModule2, (void**) ppModule) );
Error:
return hr;
}