User32IsGuiThread Method
Determines whether the calling thread is already a GUI thread.
It can also optionally convert the thread to a GUI thread.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", EntryPoint = "IsGUIThread", SetLastError = true)]
public static bool IsGuiThread(
bool convertToGuiThread
)
<DllImportAttribute("User32.dll", EntryPoint := "IsGUIThread", SetLastError := true>]
Public Shared Function IsGuiThread (
convertToGuiThread As Boolean
) As Boolean
Dim convertToGuiThread As Boolean
Dim returnValue As Boolean
returnValue = User32.IsGuiThread(convertToGuiThread)
public:
[DllImportAttribute(L"User32.dll", EntryPoint = L"IsGUIThread", SetLastError = true)]
static bool IsGuiThread(
bool convertToGuiThread
)
[<DllImportAttribute("User32.dll", EntryPoint = "IsGUIThread", SetLastError = true)>]
static member IsGuiThread :
convertToGuiThread : bool -> bool
No code example is currently available or this language may not be supported.
- convertToGuiThread Boolean
-
If this value is , and if the thread is not a GUI thread,
converts the thread to a GUI thread.
Boolean
The function returns
value in the following situations:
• If the calling thread is already a GUI thread.
• If convertToGuiThread is
and the function successfully converts the thread to a GUI thread.
Otherwise, the function returns
.