디버그 모듈의 인터페이스에 대한 참조를 검색합니다.
구문
매개 변수
ppModule
[out] 디버그 모듈 인터페이스에 대한 참조입니다.
Return Value
성공하면 S_OK를 반환하고, 실패하면 오류 코드를 반환합니다.
예시
다음 예제에서는 IDebugBeforeSymbolSearchEvent2 인터페이스를 노출하는 CDebugCodeContext 개체에 대해 이 메서드를 구현하는 방법을 보여 줍니다.
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;
}