IRemoteDebugApplicationThread::GetStateIRemoteDebugApplicationThread::GetState

Obtient l’état de ce thread.Gets the state of this thread.

SyntaxeSyntax

HRESULT GetState(  
   DWORD*  pState  
);  

ParamètresParameters

pState
[out] Combinaison des indicateurs d’état de thread suivants :[out] Combination of the following thread state flags:

ConstanteConstant ValeurValue DescriptionDescription
THREAD_STATE_RUNNINGTHREAD_STATE_RUNNING 0x000000010x00000001 Le thread est en cours d’exécution.The thread is running.
THREAD_STATE_SUSPENDEDTHREAD_STATE_SUSPENDED 0x000000020x00000002 Le thread est suspendu.The thread is suspended.
THREAD_BLOCKEDTHREAD_BLOCKED 0x000000040x00000004 Le thread est bloqué.The thread is blocked.
THREAD_OUT_OF_CONTEXTTHREAD_OUT_OF_CONTEXT 0x000000080x00000008 Le thread est hors de contenu.The thread is out of content.

Valeur de retourReturn Value

La méthode retourne HRESULT.The method returns an HRESULT. Les valeurs possibles sont notamment celles figurant dans le tableau suivant.Possible values include, but are not limited to, those in the following table.

ValeurValue DescriptionDescription
S_OK La méthode a réussi.The method succeeded.

RemarquesRemarks

Cette méthode obtient l’état de ce thread.This method gets the state of this thread.

Voir aussiSee Also

Interface IRemoteDebugApplicationThreadIRemoteDebugApplicationThread Interface