-
Notifications
You must be signed in to change notification settings - Fork 2
/
ntuser.h
1311 lines (1175 loc) · 24.6 KB
/
ntuser.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Win32k NT User definitions.
*
* This file is part of System Informer.
*/
#ifndef _NTUSER_H
#define _NTUSER_H
typedef enum _WINDOWINFOCLASS
{
WindowProcess = 0, // q: ULONG (Process ID)
WindowRealProcess = 1, // q: ULONG (Process ID)
WindowThread = 2, // q: ULONG (Thread ID)
WindowActiveWindow = 3, // q: HWND
WindowFocusWindow = 4, // q: HWND
WindowIsHung = 5, // q: BOOLEAN
WindowClientBase = 6, // q: PVOID
WindowIsForegroundThread = 7, // q: BOOLEAN
WindowDefaultImeWindow = 8, // q: HWND
WindowDefaultInputContext = 9, // q: HIMC
} WINDOWINFOCLASS, *PWINDOWINFOCLASS;
NTSYSCALLAPI
ULONG_PTR
NTAPI
NtUserQueryWindow(
_In_ HWND WindowHandle,
_In_ WINDOWINFOCLASS WindowInfo
);
NTSYSCALLAPI
NTSTATUS
NTAPI
NtUserTestForInteractiveUser(
_In_ PLUID AuthenticationId
);
NTSYSCALLAPI
NTSTATUS
NTAPI
NtUserCheckAccessForIntegrityLevel(
_In_ ULONG ProcessIdFirst,
_In_ ULONG ProcessIdSecond,
_Out_ PBOOLEAN GrantedAccess
);
NTSYSCALLAPI
NTSTATUS
NTAPI
NtUserCheckProcessForClipboardAccess(
_In_ ULONG ProcessId,
_Out_ PULONG GrantedAccess
);
NTSYSCALLAPI
ULONG
NTAPI
NtUserInternalGetWindowText(
_In_ HWND WindowHandle,
_Out_writes_to_(cchMaxCount, return + 1) LPWSTR pString,
_In_ ULONG cchMaxCount
);
NTSYSCALLAPI
HICON
NTAPI
NtUserInternalGetWindowIcon(
_In_ HWND WindowHandle,
_In_ ULONG IconType
);
NTSYSCALLAPI
ULONG
NTAPI
NtUserGetClassName(
_In_ HWND WindowHandle,
_In_ LONGLONG Real,
_Out_ PUNICODE_STRING ClassName
);
typedef enum _CONSOLECONTROL
{
ConsoleSetVDMCursorBounds = 0, // RECT
ConsoleNotifyConsoleApplication = 1, // CONSOLE_PROCESS_INFO
ConsoleFullscreenSwitch = 2,
ConsoleSetCaretInfo = 3, // CONSOLE_CARET_INFO
ConsoleSetReserveKeys = 4,
ConsoleSetForeground = 5, // CONSOLESETFOREGROUND
ConsoleSetWindowOwner = 6, // CONSOLEWINDOWOWNER
ConsoleEndTask = 7, // CONSOLEENDTASK
} CONSOLECONTROL;
typedef struct _CONSOLE_PROCESS_INFO
{
ULONG ProcessID;
ULONG Flags;
} CONSOLE_PROCESS_INFO, *PCONSOLE_PROCESS_INFO;
typedef struct _CONSOLE_CARET_INFO
{
HWND WindowHandle;
RECT Rect;
} CONSOLE_CARET_INFO, *PCONSOLE_CARET_INFO;
typedef struct _CONSOLESETFOREGROUND
{
HANDLE ProcessHandle;
BOOL Foreground;
} CONSOLESETFOREGROUND, *PCONSOLESETFOREGROUND;
typedef struct _CONSOLEWINDOWOWNER
{
HWND WindowHandle;
ULONG ProcessId;
ULONG ThreadId;
} CONSOLEWINDOWOWNER, *PCONSOLEWINDOWOWNER;
typedef struct _CONSOLEENDTASK
{
HANDLE ProcessId;
HWND WindowHandle;
ULONG ConsoleEventCode;
ULONG ConsoleFlags;
} CONSOLEENDTASK, *PCONSOLEENDTASK;
/**
* Performs special kernel operations for console host applications. (win32u.dll)
*
* This includes reparenting the console window, allowing the console to pass foreground rights
* on to launched console subsystem applications and terminating attached processes.
*
* @param Command One of the CONSOLECONTROL values indicating which console control function should be executed.
* @param ConsoleInformation A pointer to one of the structures specifying additional data for the requested console control function.
* @param ConsoleInformationLength The size of the structure pointed to by the ConsoleInformation parameter.
* @return Successful or errant status.
*/
NTSYSCALLAPI
NTSTATUS
NTAPI
NtUserConsoleControl(
_In_ CONSOLECONTROL Command,
_In_reads_bytes_(ConsoleInformationLength) PVOID ConsoleInformation,
_In_ ULONG ConsoleInformationLength
);
/**
* Performs special kernel operations for console host applications. (user32.dll)
*
* This includes reparenting the console window, allowing the console to pass foreground rights
* on to launched console subsystem applications and terminating attached processes.
*
* @param Command One of the CONSOLECONTROL values indicating which console control function should be executed.
* @param ConsoleInformation A pointer to one of the structures specifying additional data for the requested console control function.
* @param ConsoleInformationLength The size of the structure pointed to by the ConsoleInformation parameter.
* @return Successful or errant status.
*/
NTSYSCALLAPI
NTSTATUS
NTAPI
ConsoleControl(
_In_ CONSOLECONTROL Command,
_In_reads_bytes_(ConsoleInformationLength) PVOID ConsoleInformation,
_In_ ULONG ConsoleInformationLength
);
/**
* Opens the specified window station.
*
* @param ObjectAttributes The name of the window station to be opened. Window station names are case-insensitive. This window station must belong to the current session.
* @param DesiredAccess The access to the window station.
* @return Successful or errant status.
*/
NTSYSCALLAPI
HWINSTA
NTAPI
NtUserOpenWindowStation(
_In_ OBJECT_ATTRIBUTES ObjectAttributes,
_In_ ACCESS_MASK DesiredAccess
);
NTSYSCALLAPI
HWINSTA
NTAPI
NtUserCreateWindowStation(
_In_ OBJECT_ATTRIBUTES ObjectAttributes,
_In_ ACCESS_MASK DesiredAccess,
_In_opt_ HANDLE KeyboardLayoutHandle,
_In_opt_ PVOID KeyboardLayoutOffset,
_In_opt_ PVOID NlsTableOffset,
_In_opt_ PVOID KeyboardDescriptor,
_In_opt_ UNICODE_STRING LanguageIdString,
_In_opt_ ULONG KeyboardLocale
);
NTSYSCALLAPI
NTSTATUS
NTAPI
NtUserBuildHwndList(
_In_opt_ HANDLE DesktopHandle,
_In_opt_ HWND StartWindowHandle,
_In_opt_ LOGICAL IncludeChildren,
_In_opt_ LOGICAL ExcludeImmersive,
_In_opt_ ULONG ThreadId,
_In_ ULONG HwndListInformationLength,
_Out_writes_bytes_(HwndListInformationLength) PVOID HwndListInformation,
_Out_ PULONG ReturnLength
);
NTSYSCALLAPI
NTSTATUS
NTAPI
NtUserBuildNameList(
_In_ HWINSTA WindowStationHandle, // GetProcessWindowStation
_In_ ULONG NameListInformationLength,
_Out_writes_bytes_(NameListInformationLength) PVOID NameListInformation,
_Out_opt_ PULONG ReturnLength
);
NTSYSCALLAPI
NTSTATUS
NTAPI
NtUserBuildPropList(
_In_ HWINSTA WindowStationHandle,
_In_ ULONG PropListInformationLength,
_Out_writes_bytes_(PropListInformationLength) PVOID PropListInformation,
_Out_opt_ PULONG ReturnLength
);
NTSYSCALLAPI
HWND
NTAPI
NtUserGetProcessWindowStation(
VOID
);
NTSYSCALLAPI
LOGICAL
NTAPI
NtUserCloseWindowStation(
_In_ HWINSTA WindowStationHandle
);
NTSYSCALLAPI
LOGICAL
NTAPI
NtUserSetProcessWindowStation(
_In_ HWINSTA WindowStationHandle
);
NTSYSAPI
LOGICAL
NTAPI
SetWindowStationUser(
_In_ HWINSTA WindowStationHandle,
_In_ PLUID UserLogonId,
_In_ PSID UserSid,
_In_ ULONG UserSidLength
);
NTSYSCALLAPI
LOGICAL
NTAPI
NtUserSetWindowStationUser(
_In_ HWINSTA WindowStationHandle,
_In_ PLUID UserLogonId,
_In_ PSID UserSid,
_In_ ULONG UserSidLength
);
NTSYSCALLAPI
HANDLE
NTAPI
NtUserOpenDesktop(
_In_ PCOBJECT_ATTRIBUTES ObjectAttributes,
_In_ ULONG Flags,
_In_ ACCESS_MASK DesiredAccess
);
NTSYSCALLAPI
LOGICAL
NTAPI
NtUserSetThreadDesktop(
_In_ HDESK DesktopHandle
);
NTSYSCALLAPI
LOGICAL
NTAPI
NtUserSwitchDesktop(
_In_ HDESK DesktopHandle,
_In_opt_ ULONG Flags,
_In_opt_ ULONG FadeTime
);
NTSYSCALLAPI
LOGICAL
NTAPI
NtUserGetIconInfo(
_In_ HICON IconOrCursorHandle,
_Out_ PICONINFO Iconinfo,
_Inout_opt_ PUNICODE_STRING Name,
_Inout_opt_ PUNICODE_STRING ResourceId,
_Out_opt_ PULONG ColorBits,
_In_ LOGICAL IsCursorHandle
);
NTSYSCALLAPI
LOGICAL
NTAPI
NtUserGetIconSize(
_In_ HGDIOBJ IconOrCursorHandle,
_In_ LOGICAL IsCursorHandle,
_Out_ PULONG XX,
_Out_ PULONG YY
);
NTSYSCALLAPI
HWND
NTAPI
NtUserGetForegroundWindow(
VOID
);
NTSYSCALLAPI
HWND
NTAPI
NtUserSetActiveWindow(
_In_ HWND WindowHandle
);
NTSYSCALLAPI
HWND
NTAPI
NtUserSetFocus(
_In_ HWND WindowHandle
);
NTSYSCALLAPI
ULONG_PTR
NTAPI
NtUserGetThreadState(
_In_ ULONG UserThreadState
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserSetWindowPlacement(
_In_ HWND WindowHandle,
_Inout_ const WINDOWPLACEMENT* lpwndpl
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserAttachThreadInput(
_In_ ULONG IdAttach,
_In_ ULONG IdAttachTo,
_In_ BOOL Attach
);
NTSYSCALLAPI
HDC
NTAPI
NtUserBeginPaint(
_In_ HWND WindowHandle,
_Inout_ LPPAINTSTRUCT lpPaint
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserBlockInput(
_In_ BOOL BlockInput
);
NTSYSCALLAPI
BOOL
NTAPI
tUserCalculatePopupWindowPosition(
_In_ const POINT* anchorPoint,
_In_ const SIZE* windowSize,
_In_ ULONG flags,
_Inout_ RECT* excludeRect,
_Inout_ RECT* popupWindowPosition
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserChangeWindowMessageFilterEx(
_In_ HWND WindowHandle,
_In_ ULONG message,
_In_ ULONG action,
_Inout_ PCHANGEFILTERSTRUCT pChangeFilterStruct
);
NTSYSCALLAPI
HWND
NTAPI
NtUserChildWindowFromPointEx(
_In_ HWND WindowHandle,
_In_ POINT pt,
_In_ ULONG flags
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserClipCursor(
_In_ const RECT* lpRect
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserCloseDesktop(
_In_ HDESK hDesktop
);
NTSYSCALLAPI
LONG
NTAPI
NtUserCopyAcceleratorTable(
_In_ HACCEL hAccelSrc,
_In_ LPACCEL lpAccelDst,
_In_ LONG cAccelEntries
);
NTSYSCALLAPI
HACCEL
NTAPI
NtUserCreateAcceleratorTable(
_In_ LPACCEL paccel,
_In_ LONG cAccel
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserDeleteMenu(
_In_ HMENU hMenu,
_In_ ULONG uPosition,
_In_ ULONG uFlags
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserDestroyMenu(
_In_ HMENU hMenu
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserDestroyWindow(
_In_ HWND WindowHandle
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserDragDetect(
_In_ HWND WindowHandle,
_In_ POINT pt
);
NTSYSCALLAPI
ULONG
NTAPI
NtUserDragObject(
_In_ HWND WindowHandleParent,
_In_ HWND WindowHandleFrom,
_In_ ULONG fmt,
_In_ ULONG_PTR data,
_In_ HCURSOR hcur
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserDrawAnimatedRects(
_In_ HWND WindowHandle,
_In_ int idAni,
_In_ const RECT* lprcFrom,
_In_ const RECT* lprcTo
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserEndMenu(
VOID
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserEndPaint(
_In_ HWND WindowHandle,
_Inout_ const PAINTSTRUCT* lpPaint
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserEnumDisplayMonitors(
_In_ HDC hdc,
_In_ LPCRECT lprcClip,
_In_ MONITORENUMPROC lpfnEnum,
_In_ LPARAM dwData
);
NTSYSCALLAPI
HRGN
NTAPI
NtUserExcludeUpdateRgn(
_In_ HDC hDC,
_In_ HWND WindowHandle
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserFlashWindowEx(
_In_ PFLASHWINFO pfwi
);
NTSYSCALLAPI
HWND
NTAPI
NtUserGetAncestor(
_In_ HWND WindowHandle,
_In_ ULONG gaFlags
);
NTSYSCALLAPI
ULONG
NTAPI
NtUserGetCaretBlinkTime(
VOID
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserGetCaretPos(
_In_ LPPOINT lpPoint
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserGetClipCursor(
_In_ LPRECT lpRect
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserGetComboBoxInfo(
_In_ HWND WindowHandleCombo,
_Inout_ PCOMBOBOXINFO pcbi
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserGetCurrentInputMessageSource(
_Inout_ INPUT_MESSAGE_SOURCE* InputMessageSource
);
NTSYSCALLAPI
HCURSOR
NTAPI
NtUserGetCursor();
NTSYSCALLAPI
BOOL
NTAPI
NtUserGetCursorInfo(
_In_ PCURSORINFO pci
);
NTSYSCALLAPI
HDC
NTAPI
NtUserGetDCEx(
_In_ HWND WindowHandle,
_In_ HRGN hrgnClip,
_In_ ULONG flags
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserGetDisplayAutoRotationPreferences(
_In_ ORIENTATION_PREFERENCE* pOrientation
);
NTSYSCALLAPI
ULONG
NTAPI
NtUserGetDoubleClickTime();
NTSYSCALLAPI
BOOL
NTAPI
NtUserGetGUIThreadInfo(
_In_ ULONG idThread,
_In_ PGUITHREADINFO pgui
);
#ifndef GR_GDIOBJECTS
#define GR_GDIOBJECTS 0
#endif
#ifndef GR_USEROBJECTS
#define GR_USEROBJECTS 1
#endif
#ifndef GR_GDIOBJECTS_PEAK
#define GR_GDIOBJECTS_PEAK 2
#endif
#ifndef GR_USEROBJECTS_PEAK
#define GR_USEROBJECTS_PEAK 4
#endif
NTSYSCALLAPI
ULONG
NTAPI
NtUserGetGuiResources(
_In_ HANDLE ProcessHandle,
_In_ ULONG uiFlags
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserGetLayeredWindowAttributes(
_In_ HWND WindowHandle,
_In_ COLORREF* pcrKey,
_In_ BYTE* pbAlpha,
_In_ ULONG pdwFlags
);
NTSYSCALLAPI
ULONG
NTAPI
NtUserGetListBoxInfo(
_In_ HWND WindowHandle
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserGetMenuBarInfo(
_In_ HWND WindowHandle,
_In_ LONG idObject,
_In_ LONG idItem,
_In_ PMENUBARINFO pmbi
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserGetMenuItemRect(
_In_ HWND WindowHandle,
_In_ HMENU hMenu,
_In_ ULONG uItem,
_In_ LPRECT lprcItem
);
NTSYSCALLAPI
LONG
NTAPI
NtUserGetMouseMovePointsEx(
_In_ ULONG cbSize,
_In_ LPMOUSEMOVEPOINT lppt,
_In_ LPMOUSEMOVEPOINT lpptBuf,
_In_ LONG nBufPoints,
_In_ ULONG resolution
);
NTSYSCALLAPI
ULONG
NTAPI
NtUserGetRawInputData(
_In_ HRAWINPUT hRawInput,
_In_ ULONG uiCommand,
_In_ LPVOID pData,
_In_ PULONG pcbSize,
_In_ ULONG cbSizeHeader
);
NTSYSCALLAPI
ULONG
NTAPI
NtUserGetRawInputDeviceList(
_In_ PRAWINPUTDEVICELIST pRawInputDeviceList,
_In_ PULONG puiNumDevices,
_In_ ULONG cbSize
);
NTSYSCALLAPI
ULONG
NTAPI
NtUserGetRegisteredRawInputDevices(
_In_ PRAWINPUTDEVICE pRawInputDevices,
_In_ PULONG puiNumDevices,
_In_ ULONG cbSize
);
NTSYSCALLAPI
HMENU
NTAPI
NtUserGetSystemMenu(
_In_ HWND WindowHandle,
_In_ BOOL bRevert
);
NTSYSCALLAPI
HDESK
NTAPI
NtUserGetThreadDesktop(
_In_ ULONG ThreadId
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserGetTitleBarInfo(
_In_ HWND WindowHandle,
_In_ PTITLEBARINFO pti
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserGetObjectInformation(
_In_ HANDLE hObj,
_In_ LONG Index,
_In_ PVOID vInfo,
_In_ ULONG Length,
_In_ PULONG LengthNeeded
);
NTSYSCALLAPI
HDC
NTAPI
NtUserGetWindowDC(
_In_ HWND WindowHandle
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserGetWindowPlacement(
_In_ HWND WindowHandle,
_In_opt_ WINDOWPLACEMENT* lpwndpl
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserHiliteMenuItem(
_In_ HWND WindowHandle,
_In_ HMENU Menu,
_In_ ULONG IDHiliteItem,
_In_ ULONG Hilite
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserInvalidateRect(
_In_ HWND WindowHandle,
_In_ const RECT* Rect,
_In_ BOOL Erase
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserInvalidateRgn(
_In_ HWND WindowHandle,
_In_ HRGN hRgn,
_In_ BOOL Erase
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserIsTouchWindow(
_In_ HWND WindowHandle,
_In_ PULONG Flags
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserKillTimer(
_In_ HWND WindowHandle,
_In_ ULONG_PTR IDEvent
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserLockWorkStation(
VOID
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserLogicalToPhysicalPoint(
_In_ HWND WindowHandle,
_In_ LPPOINT lpPoint
);
NTSYSCALLAPI
LONG
NTAPI
NtUserMenuItemFromPoint(
_In_ HWND WindowHandle,
_In_ HMENU hMenu,
_In_ POINT ptScreen
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserMoveWindow(
_In_ HWND WindowHandle,
_In_ LONG X,
_In_ LONG Y,
_In_ LONG nWidth,
_In_ LONG nHeight,
_In_ BOOL bRepaint
);
NTSYSCALLAPI
HDESK
NTAPI
NtUserOpenInputDesktop(
_In_ ULONG Flags,
_In_ BOOL Inherit,
_In_ ACCESS_MASK DesiredAccess
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserPhysicalToLogicalPoint(
_In_ HWND WindowHandle,
_In_ LPPOINT lpPoint
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserPrintWindow(
_In_ HWND WindowHandle,
_In_ HDC hdcBlt,
_In_ ULONG nFlags
);
typedef enum _USERTHREADINFOCLASS USERTHREADINFOCLASS;
NTSYSCALLAPI
NTSTATUS
NTAPI
NtUserQueryInformationThread(
_In_ HANDLE ThreadHandle,
_In_ USERTHREADINFOCLASS ThreadInformationClass,
_Out_writes_bytes_(ThreadInformationLength) PVOID ThreadInformation,
_In_ ULONG ThreadInformationLength,
_Out_opt_ PULONG ReturnLength
);
NTSYSCALLAPI
NTSTATUS
NTAPI
NtUserSetInformationThread(
_In_ HANDLE ThreadHandle,
_In_ USERTHREADINFOCLASS ThreadInformationClass,
_In_reads_bytes_(ThreadInformationLength) PVOID ThreadInformation,
_In_ ULONG ThreadInformationLength
);
NTSYSCALLAPI
BOOL
NTAPI
QuerySendMessage(
_Inout_ MSG* pMsg
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserRedrawWindow(
_In_ HWND WindowHandle,
_In_ const PRECT lprcUpdate,
_In_ HRGN hrgnUpdate,
_In_ ULONG flags
);
NTSYSCALLAPI
HWND
NTAPI
NtUserRealChildWindowFromPoint(
_In_ HWND WindowHandleParent,
_In_ POINT ptParentClientCoords
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserRegisterHotKey(
_In_ HWND WindowHandle,
_In_ LONG id,
_In_ ULONG fsModifiers,
_In_ ULONG vk
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserRemoveMenu(
_In_ HMENU hMenu,
_In_ ULONG uPosition,
_In_ ULONG uFlags
);
NTSYSCALLAPI
ULONG
NTAPI
NtUserSendInput(
_In_ ULONG cInputs,
_In_ LPINPUT pInputs,
_In_ LONG cbSize
);
NTSYSCALLAPI
HWND
NTAPI
NtUserSetActiveWindow(
_In_ HWND WindowHandle
);
NTSYSCALLAPI
HWND
NTAPI
NtUserSetCapture(
_In_ HWND WindowHandle
);
NTSYSCALLAPI
ULONG_PTR
NTAPI
NtUserSetTimer(
_In_ HWND WindowHandle,
_In_ ULONG_PTR nIDEvent,
_In_ ULONG uElapse,
_In_ TIMERPROC lpTimerFunc,
_In_ ULONG uToleranceDelay
);
NTSYSCALLAPI
WORD
NTAPI
NtUserSetClassWord(
_In_ HWND WindowHandle,
_In_ LONG nIndex,
_In_ WORD wNewWord
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserSetCursorPos(
_In_ LONG X,
_In_ LONG Y
);
NTSYSCALLAPI
HWND
NTAPI
NtUserSetFocus(
_In_ HWND WindowHandle
);
NTSYSCALLAPI
BOOL
NTAPI
NtUserSetLayeredWindowAttributes(
_In_ HWND WindowHandle,
_In_ COLORREF crKey,
_In_ BYTE bAlpha,