Reference

GetThreadDesktop(3w)

GetThreadDesktop [USER32.295] Returns handle to desktop

NAME

GetThreadDesktop - GetThreadDesktop [USER32.295] Returns handle to desktop

SYNOPSIS

DWORD GetThreadDesktop(DWORD dwThreadId);

DESCRIPTION

GetThreadDesktop [USER32.295] Returns handle to desktop.

RETURNS

Success

Handle to desktop associated with specified thread.

Failure

NULL.

NOTES

Docs say the return value is HDESK.

PARAMS

DwThreadId [I] Thread identifier.

SEE ALSO

UTRegister(3w), UTUnRegister(3w), QueryPerformanceCounter(3w), QueryPerformanceFrequency(3w), FlushInstructionCache(3w), CreateNamedPipeA(3w), CreateNamedPipeW(3w), CreatePipe(3w), GetSystemPowerStatus(3w), SetSystemPowerState(3w), CreateMailslotA(3w), CreateMailslotW(3w), GetMailslotInfo(3w), GetCompressedFileSizeA(3w), GetCompressedFileSizeW(3w), GetProcessWindowStation(3w), SetDebugErrorLevel(3w), WaitForDebugEvent(3w), SetComputerNameA(3w), SetComputerNameW(3w), IsDebuggerPresent(3w), OpenDesktopA(3w)