Aracılığıyla paylaş


IDebugComPlusSymbolProvider::GetEntryPoint

Uygulama giriş noktasını alır.

Sözdizimi

int GetEntryPoint(
    uint              ulAppDomainID,
    Guid              guidModule,
    out IDebugAddress ppAddress
);

Parametreler

ulAppDomainID
[in] Uygulama etki alanının tanımlayıcısı.

guidModule
[in] Modülün benzersiz tanımlayıcısı.

ppAddress
[out] IDebugAddress arabirimi tarafından temsil edilen giriş noktasını döndürür.

İade Değeri

Başarılı olursa döndürür S_OK; aksi takdirde bir hata kodu döndürür.

Örnek

Aşağıdaki örnek, IDebugComPlusSymbolProvider arabirimini kullanıma sunan bir CDebugSymbolProvider nesnesi için bu yöntemin nasıl uygulandığını gösterir.

HRESULT CDebugSymbolProvider::GetEntryPoint(
    ULONG32 ulAppDomainID,
    GUID guidModule,
    IDebugAddress **ppAddress
)
{
    HRESULT hr = S_OK;
    CComPtr<CModule> pModule;
    Module_ID idModule(ulAppDomainID, guidModule);

    ASSERT(IsValidObjectPtr(this, CDebugSymbolProvider));
    ASSERT(IsValidWritePtr(ppAddress, IDebugAddress *));

    METHOD_ENTRY( CDebugSymbolProvider::GetEntryPoint );

    IfFalseGo( ppAddress, E_INVALIDARG );

    *ppAddress = NULL;

    IfFailGo( GetModule( idModule, &pModule) );

    IfFailGo( pModule->GetEntryPoint( ppAddress ) );

Error:

    METHOD_EXIT( CDebugSymbolProvider::GetEntryPoint, hr );

    return hr;
}

Ayrıca bkz.