Catatan
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba masuk atau mengubah direktori.
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba mengubah direktori.
Mengambil titik masuk aplikasi.
Sintaks
Parameter
ulAppDomainID
[di] Pengidentifikasi untuk domain aplikasi.
guidModule
[di] Pengidentifikasi unik untuk modul.
ppAddress
[out] Mengembalikan titik masuk yang diwakili oleh antarmuka IDebugAddress .
Tampilkan Nilai
Jika berhasil, mengembalikan S_OK; jika tidak, mengembalikan kode galat.
Contoh
Contoh berikut menunjukkan cara menerapkan metode ini untuk objek CDebugSymbolProvider yang mengekspos antarmuka 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;
}