IDebugComPlusSymbolProvider::GetEntryPoint
Recupera il punto di ingresso dell'applicazione.
Sintassi
Parametri
ulAppDomainID
[in] Identificatore per il dominio applicazione.
guidModule
[in] Identificatore univoco per il modulo.
ppAddress
[out] Restituisce il punto di ingresso rappresentato da un'interfaccia IDebugAddress .
Valore restituito
Se ha esito positivo, restituisce S_OK
; in caso contrario, restituisce un codice di errore.
Esempio
Nell'esempio seguente viene illustrato come implementare questo metodo per un oggetto CDebugSymbolProvider che espone l'interfaccia IDebugComPlusSymbolProvider .
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;
}