Funzione IsGUIThread (winuser.h)

Determina se il thread chiamante è già un thread GUI. Può anche convertire il thread in un thread GUI.

Sintassi

BOOL IsGUIThread(
  [in] BOOL bConvert
);

Parametri

[in] bConvert

Tipo: BOOL

Se TRUE e il thread non è un thread GUI, convertire il thread in un thread GUI.

Valore restituito

Tipo: BOOL

La funzione restituisce un valore diverso da zero nelle situazioni seguenti:

  • Se il thread chiamante è già un thread GUI.
  • Se bConvert è TRUE e la funzione converte correttamente il thread in un thread GUI.
In caso contrario, la funzione restituisce zero.

Se bConvert è TRUE e la funzione non può convertire correttamente il thread in un thread GUI, IsGUIThread restituisce ERROR_NOT_ENOUGH_MEMORY.

Requisiti

Requisito Valore
Client minimo supportato Windows XP [solo app desktop]
Server minimo supportato Windows Server 2003 [solo app desktop]
Piattaforma di destinazione Windows
Intestazione winuser.h (include Windows.h)
Libreria User32.lib
DLL User32.dll

Vedi anche

Panoramica di Windows