89 DWORD dwValue = dwDefaultValue;
92 Status = RegReadUserSetting(
L"Keyboard Layout\\Toggle", pszType,
REG_SZ, szBuff,
sizeof(szBuff));
96 dwValue =
_wtoi(szBuff);
99 TRACE(
"%ls: %lu\n", pszType, dwValue);
116 L"\\Registry\\Machine\\System\\CurrentControlSet\\Control\\Nls\\Language");
148 TRACE(
"Language ID = %x\n",Ret);
162 if (!pwndParent) pwndParent = pwnd;
197 HBRUSH hBrush =
NULL;
222 HBRUSH hBrush =
NULL;
246 TRACE(
"Enter NtUserGetThreadState\n");
283 TRACE(
"THREADSTATE_INSENDMESSAGE\n");
292 if (
Message->CompletionCallback)
293 ret = ISMEX_CALLBACK;
353 TRACE(
"Leave NtUserGetThreadState, ret=%lu\n",
ret);
392 TRACE(
"Enter NtUserGetDoubleClickTime\n");
398 TRACE(
"Leave NtUserGetDoubleClickTime, ret=%u\n",
Result);
417 TRACE(
"Enter NtUserGetGUIThreadInfo\n");
459 MsgQueue =
Desktop->ActiveMessageQueue;
528 TRACE(
"Leave NtUserGetGUIThreadInfo, ret=%i\n", Ret);
545 TRACE(
"Enter NtUserGetGuiResources\n");
573 Ret = (
DWORD)W32Process->GDIHandleCount;
578 Ret = (
DWORD)W32Process->UserHandleCount;
591 TRACE(
"Leave NtUserGetGuiResources, ret=%lu\n", Ret);
602 TRACE(
"SWS %x\n",bit);
623 TRACE(
"CWS %x\n",bit);
660 if(Dest->
Length > 0 && Src)
706 if(Dest->
Length > 0 && Src)
#define UlongToHandle(ul)
#define DBG_DEFAULT_CHANNEL(ch)
PEPROCESS __stdcall PsGetThreadProcess(_In_ PETHREAD Thread)
#define NT_SUCCESS(StatCode)
#define ERROR_INVALID_PARAMETER
#define ERROR_ACCESS_DENIED
static const WCHAR Message[]
#define EngGetTickCount32()
#define ExAllocatePoolWithTag(hernya, size, tag)
#define PsGetCurrentThread()
#define ExGetPreviousMode
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
HWND FASTCALL IntGetThreadFocusWindow(VOID)
PUSER_MESSAGE_QUEUE gpqForeground
HWND APIENTRY IntGetCapture(VOID)
HWND FASTCALL UserGetActiveWindow(VOID)
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
#define EXCEPTION_EXECUTE_HANDLER
_Check_return_ _CRTIMP int __cdecl _vscwprintf(_In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
_Check_return_ _CRTIMP int __cdecl _wtoi(_In_z_ const wchar_t *_Str)
#define PROCESS_QUERY_INFORMATION
#define UserHMGetHandle(obj)
#define TIF_GUITHREADINITIALIZED
@ THREADSTATE_DEFAULTIMEWINDOW
@ THREADSTATE_DEFAULTINPUTCONTEXT
@ THREADSTATE_CHECKCONIME
@ THREADSTATE_INSENDMESSAGE
@ THREADSTATE_GETTHREADINFO
@ THREADSTATE_CAPTUREWINDOW
@ THREADSTATE_TASKMANWINDOW
@ THREADSTATE_UNKNOWN_0x10
@ THREADSTATE_FOREGROUNDTHREAD
@ THREADSTATE_OLDKEYBOARDLAYOUT
@ THREADSTATE_GETINPUTSTATE
@ THREADSTATE_PROGMANWINDOW
@ THREADSTATE_ACTIVEWINDOW
@ THREADSTATE_GETMESSAGETIME
@ THREADSTATE_FOCUSWINDOW
@ THREADSTATE_GETMESSAGEEXTRAINFO
@ THREADSTATE_UPTIMELASTREAD
@ THREADSTATE_IMECOMPATFLAGS
#define GetWin32ClientInfo()
#define OBJ_KERNEL_HANDLE
#define OBJ_CASE_INSENSITIVE
enum _SECURITY_IMPERSONATION_LEVEL SECURITY_IMPERSONATION_LEVEL
_In_ BOOL _In_ HANDLE hProcess
#define MmCopyToCaller(x, y, z)
#define ExFreePoolWithTag(_P, _T)
#define InitializeObjectAttributes(p, n, a, r, s)
LPARAM FASTCALL MsqGetMessageExtraInfo(VOID)
#define QF_FMENUSTATUSBREAK
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
_Must_inspect_result_ _Out_ PNDIS_STATUS _In_ NDIS_HANDLE _In_ ULONG _Out_ PNDIS_STRING _Out_ PNDIS_HANDLE KeyHandle
NTSYSAPI NTSTATUS NTAPI ZwClose(_In_ HANDLE Handle)
_In_ ACCESS_MASK _In_opt_ POBJECT_ATTRIBUTES _In_ BOOLEAN EffectiveOnly
@ KeyValuePartialInformation
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
NTSYSAPI NTSTATUS NTAPI RtlUnicodeStringToInteger(PUNICODE_STRING String, ULONG Base, PULONG Value)
struct _KEY_VALUE_PARTIAL_INFORMATION KEY_VALUE_PARTIAL_INFORMATION
POBJECT_TYPE PsProcessType
PVOID NTAPI PsGetCurrentProcessWin32Process(VOID)
HANDLE NTAPI PsGetCurrentProcessId(VOID)
PACCESS_TOKEN NTAPI PsReferencePrimaryToken(PEPROCESS Process)
PACCESS_TOKEN NTAPI PsReferenceImpersonationToken(IN PETHREAD Thread, OUT PBOOLEAN CopyOnOpen, OUT PBOOLEAN EffectiveOnly, OUT PSECURITY_IMPERSONATION_LEVEL ImpersonationLevel)
HANDLE NTAPI PsGetThreadId(IN PETHREAD Thread)
NTSTATUS NTAPI PsLookupThreadByThreadId(IN HANDLE ThreadId, OUT PETHREAD *Thread)
PVOID NTAPI PsGetThreadWin32Thread(IN PETHREAD Thread)
PVOID NTAPI PsGetCurrentThreadWin32Thread(VOID)
BOOLEAN NTAPI PsIsThreadTerminating(IN PETHREAD Thread)
NTSTATUS NTAPI SeQueryAuthenticationIdToken(_In_ PACCESS_TOKEN Token, _Out_ PLUID LogonId)
Queries the authentication ID of an access token.
LRESULT FASTCALL IntDefWindowProc(PWND Wnd, UINT Msg, WPARAM wParam, LPARAM lParam, BOOL Ansi)
VOID FASTCALL UserLeave(VOID)
VOID FASTCALL UserEnterShared(VOID)
VOID FASTCALL UserEnterExclusive(VOID)
struct _THREADINFO * PTHREADINFO
struct _PROCESSINFO * PPROCESSINFO
NTSTATUS NTAPI ObReferenceObjectByHandle(IN HANDLE Handle, IN ACCESS_MASK DesiredAccess, IN POBJECT_TYPE ObjectType, IN KPROCESSOR_MODE AccessMode, OUT PVOID *Object, OUT POBJECT_HANDLE_INFORMATION HandleInformation OPTIONAL)
#define _SEH2_EXCEPT(...)
PULONG MinorVersion OPTIONAL
PCLIENTTHREADINFO pClientThreadInfo
struct _PROCESSINFO * ppi
struct _DESKTOPINFO * pDeskInfo
struct _CLIENTINFO * pClientInfo
struct tagIMC * spDefaultImc
struct tagKL * KeyboardLayout
struct _CLIENTTHREADINFO * pcti
struct _WND * spwndDefaultIme
struct _USER_MESSAGE_QUEUE * MessageQueue
#define STATUS_INVALID_PARAMETER
#define STATUS_UNSUCCESSFUL
PWND FASTCALL UserGetWindowObject(HWND hWnd)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
VOID FASTCALL SetLastNtError(_In_ NTSTATUS Status)
BOOL NTAPI GreIsHandleValid(HGDIOBJ hobj)
PUSER_MESSAGE_QUEUE FASTCALL IntGetFocusMessageQueue(VOID)
static __inline ULONG_PTR DesktopHeapGetUserDelta(VOID)
DWORD APIENTRY IntGetQueueStatus(DWORD Changes)
LRESULT FASTCALL co_IntSendMessage(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
NTSTATUS GetProcessLuid(IN PETHREAD Thread OPTIONAL, IN PEPROCESS Process OPTIONAL, OUT PLUID Luid)
PPROCESSINFO GetW32ProcessInfo(VOID)
PTHREADINFO GetW32ThreadInfo(VOID)
DWORD APIENTRY NtUserSetThreadState(DWORD Set, DWORD Flags)
DWORD_PTR APIENTRY NtUserGetThreadState(DWORD Routine)
UINT APIENTRY NtUserGetDoubleClickTime(VOID)
USHORT FASTCALL UserGetLanguageID(VOID)
NTSTATUS FASTCALL IntSafeCopyUnicodeString(PUNICODE_STRING Dest, PUNICODE_STRING Source)
DWORD APIENTRY NtUserGetGuiResources(HANDLE hProcess, DWORD uiFlags)
void UserDbgAssertThreadInfo(BOOL showCaller)
VOID FASTCALL IntClearWindowState(PWND pWnd, UINT Flag)
int __cdecl _scwprintf(const wchar_t *format,...)
VOID FASTCALL IntSetWindowState(PWND pWnd, UINT Flag)
BOOL APIENTRY NtUserGetGUIThreadInfo(DWORD idThread, LPGUITHREADINFO lpgui)
HBRUSH FASTCALL GetControlColor(PWND pwndParent, PWND pwnd, HDC hdc, UINT CtlMsg)
void NTAPI UserDbgPreServiceHook(ULONG ulSyscallId, PULONG_PTR pulArguments)
HBRUSH FASTCALL GetControlBrush(PWND pwnd, HDC hdc, UINT ctlType)
NTSTATUS FASTCALL IntSafeCopyUnicodeStringTerminateNULL(PUNICODE_STRING Dest, PUNICODE_STRING Source)
DWORD FASTCALL UserGetLanguageToggle(_In_ PCWSTR pszType, _In_ DWORD dwDefaultValue)
ULONG_PTR NTAPI UserDbgPostServiceHook(ULONG ulSyscallId, ULONG_PTR ulResult)
HBRUSH APIENTRY NtUserGetControlBrush(HWND hwnd, HDC hdc, UINT ctlType)
HBRUSH APIENTRY NtUserGetControlColor(HWND hwndParent, HWND hwnd, HDC hdc, UINT CtlMsg)
PTHREADINFO FASTCALL IntTID2PTI(HANDLE id)
PWND FASTCALL IntGetParent(PWND Wnd)
#define GUI_CARETBLINKING
ENGAPI VOID APIENTRY EngSetLastError(_In_ ULONG iError)
#define WM_CTLCOLORMSGBOX
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
_Must_inspect_result_ _In_ ULONG Flags
#define ObDereferenceObject
_Out_ PBOOLEAN CopyOnOpen
_Out_ PBOOLEAN _Out_ PBOOLEAN _Out_ PSECURITY_IMPERSONATION_LEVEL ImpersonationLevel