Share via


Metodo IDebugSystemObjects4::GetNumberThreads (dbgeng.h)

Il metodo GetNumberThreads restituisce il numero di thread nel processo corrente.

Sintassi

HRESULT GetNumberThreads(
  [out] PULONG Number
);

Parametri

[out] Number

Riceve il numero di thread nel processo corrente.

Valore restituito

Questo metodo può anche restituire valori di errore. Per altre informazioni, vedere Valori restituiti .

Codice restituito Descrizione
S_OK
Il metodo è stato eseguito correttamente.

Commenti

Nel debug in modalità kernel è presente un thread virtuale che rappresenta ogni processore.

Nel debug in modalità utente il numero di thread cambia con gli eventi IDebugEventCallbacks::CreateThread e IDebugEventCallbacks::ExitThread .

Per altre informazioni sui thread, vedere Thread e processi.

Requisiti

Requisito Valore
Piattaforma di destinazione Desktop
Intestazione dbgeng.h (includere Dbgeng.h)