Metodo ICLRDebugManager::IsDebuggerAttached
Ottiene un valore che indica se un debugger è collegato al processo.
HRESULT IsDebuggerAttached (
[out] BOOL *pbAttached
);
Parametri
- pbAttached
[out] true se un debugger è connesso al processo; in caso contrario, false.
Valore restituito
HRESULT |
Oggetto di descrizione |
---|---|
S_OK |
IsDebuggerAttached ha restituito correttamente un valore. |
HOST_E_CLRNOTAVAILABLE |
Common Language Runtime non è stato caricato in un processo oppure si trova in uno stato in cui non è possibile eseguire codice gestito né elaborare correttamente la chiamata. |
HOST_E_TIMEOUT |
Timeout della chiamata. |
HOST_E_NOT_OWNER |
Il chiamante non è il proprietario del blocco. |
HOST_E_ABANDONED |
Un evento è stato annullato mentre un thread o un fiber bloccato era in attesa di tale evento. |
E_FAIL |
Si è verificato un errore irreversibile sconosciuto. Se un metodo restituisce E_FAIL, CLR non sarà più utilizzabile all'interno del processo. Le successive chiamate ai metodi di hosting restituiranno HOST_E_CLRNOTAVAILABLE. |
Note
IsDebuggerAttached consente all'host di eseguire una query su Common Language Runtime per determinare se al processo è connesso un debugger.
Requisiti
Piattaforme: vedere Requisiti di sistema di .NET Framework.
Intestazione: MSCorEE.h
Libreria: inclusa come risorsa in MSCorEE.dll
Versioni di .NET Framework: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0