calling thread:
ActivateKeyboardLayout
CeGetLastError
CreateDesktop
GdiFlush
GdiGetBatchLimit
GdiSetBatchLimit
GetActiveWindow
GetCurrentThread
GetCurrentThreadId
GetDiskFreeSpaceEx
GetFocus
GetLastError
GetQueueStatus
GetThreadLocale
GetUserNameEx
HeapLock
HeapUnlock
ImpersonateLoggedOnUser
InitiateShutdown
InitiateSystemShutdown
SetFocus
SetKeyboardState
SetLastError
SetThreadDesktop
UnregisterHotKey
Closing Windows
How to initiate System shutdown
Obtaining a handle to the desktop associated with the calling thread
Using the RestartDialog function -- restarting Windows