다음을 통해 공유


IDebugHostModuleSignature::IsMatch 메서드(dbgmodel.h)

IsMatch 메서드는 특정 모듈( IDebugHostModule 기호로 제공됨)을 서명과 비교하여 모듈 이름과 버전을 서명에 표시된 이름 및 버전 범위와 비교합니다. 지정된 모듈 기호가 서명과 일치하는지 여부를 나타내는 표시가 반환됩니다.

구문

HRESULT IsMatch(
  IDebugHostModule *pModule,
  bool             *isMatch
);

매개 변수

pModule

모듈 서명과 비교할 모듈 기호입니다.

isMatch

지정된 모듈 기호가 모듈 서명과 일치하는지 여부를 나타내는 표시가 여기에 반환됩니다.

반환 값

이 메서드는 성공 또는 실패를 나타내는 HRESULT를 반환합니다.

설명

예제 코드

ComPtr<IDebugHostSymbols> spSym;   /* get the host's symbols interface */
ComPtr<IDebugHostModule> spModule; /* find a module */

ComPtr<IDebugHostModuleSignature> spModuleSignature;
if (SUCCEEDED(spSym->CreateModuleSignature(
    L"Windows.UI.Xaml.dll", 
    L"6.3", 
    nullptr, 
    &spModuleSignature)))
{
    bool isMatch;
    if (SUCCEEDED(spModuleSignature->IsMatch(spModule.Get(), &isMatch)))
    {
        // isMatch indicates whether the module is a match for the signature.  
        // In this case, that means the module is named Windows.UI.Xaml.dll 
        // and the version is at least 6.3(.0.0).
    }
}

요구 사항

요구 사항
헤더 dbgmodel.h

추가 정보

IDebugHostModuleSignature 인터페이스