-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAPIConstants.au3
5244 lines (4708 loc) · 230 KB
/
APIConstants.au3
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
#Region Header
#cs
Title: API Constants UDF Library for AutoIt3
Filename: APIConstants.au3
Description: Constants that can be used with WinAPIEx UDF library
Author: Yashied
Version: 3.8 / 3.3.8.0
Requirements: AutoIt v3.3 +, Developed/Tested on Windows XP Pro Service Pack 2 and Windows Vista/7
Uses: BorderConstants.au3, Constants.au3, FileConstants.au3, FontConstants.au3, FrameConstants.au3, MemoryConstants.au3, MenuConstants.au3, ProcessConstants.au3, SecurityConstants.au3, WindowsConstants.au3
Note: -
#ce
#Include-once
#Include <BorderConstants.au3>
#Include <Constants.au3>
#Include <FileConstants.au3>
#Include <FontConstants.au3>
#Include <FrameConstants.au3>
#Include <MemoryConstants.au3>
#Include <MenuConstants.au3>
#Include <ProcessConstants.au3>
#Include <SecurityConstants.au3>
#Include <WindowsConstants.au3>
#EndRegion Header
#Region Global Variables and Constants
; ===============================================================================================================================
; Standard Access Rights
; ===============================================================================================================================
;Global Const $DELETE = 0x00010000
;Global Const $READ_CONTROL = 0x00020000
;Global Const $WRITE_DAC = 0x00040000
;Global Const $WRITE_OWNER = 0x00080000
;Global Const $SYNCHRONIZE = 0x00100000
Global Const $ACCESS_SYSTEM_SECURITY = 0x01000000
;Global Const $STANDARD_RIGHTS_ALL = BitOR($DELETE, $READ_CONTROL, $SYNCHRONIZE, $WRITE_DAC, $WRITE_OWNER)
;Global Const $STANDARD_RIGHTS_EXECUTE = $READ_CONTROL
;Global Const $STANDARD_RIGHTS_READ = $READ_CONTROL
;Global Const $STANDARD_RIGHTS_REQUIRED = BitOR($DELETE, $READ_CONTROL, $WRITE_DAC, $WRITE_OWNER)
;Global Const $STANDARD_RIGHTS_WRITE = $READ_CONTROL
; ===============================================================================================================================
; Window Classes
; ===============================================================================================================================
Global Const $WC_ANIMATE = 'SysAnimate32'
Global Const $WC_BUTTON = 'Button'
Global Const $WC_COMBOBOX = 'ComboBox'
Global Const $WC_COMBOBOXEX = 'ComboBoxEx32'
Global Const $WC_DATETIMEPICK = 'SysDateTimePick32'
Global Const $WC_EDIT = 'Edit'
Global Const $WC_HEADER = 'SysHeader32'
Global Const $WC_HOTKEY = 'msctls_hotkey32'
Global Const $WC_IPADDRESS = 'SysIPAddress32'
Global Const $WC_LINK = 'SysLink'
Global Const $WC_LISTBOX = 'ListBox'
Global Const $WC_LISTVIEW = 'SysListView32'
Global Const $WC_MONTHCAL = 'SysMonthCal32'
Global Const $WC_NATIVEFONTCTL = 'NativeFontCtl'
Global Const $WC_PAGESCROLLER = 'SysPager'
Global Const $WC_PROGRESS = 'msctls_progress32'
Global Const $WC_REBAR = 'ReBarWindow32'
Global Const $WC_SCROLLBAR = 'ScrollBar'
Global Const $WC_STATIC = 'Static'
Global Const $WC_STATUSBAR = 'msctls_statusbar32'
Global Const $WC_TABCONTROL = 'SysTabControl32'
Global Const $WC_TOOLBAR = 'ToolbarWindow32'
Global Const $WC_TOOLTIPS = 'tooltips_class32'
Global Const $WC_TRACKBAR = 'msctls_trackbar32'
Global Const $WC_TREEVIEW = 'SysTreeView32'
Global Const $WC_UPDOWN = 'msctls_updown32'
; ===============================================================================================================================
; Dialog Box Styles
; ===============================================================================================================================
Global Const $DS_3DLOOK = 0x0004
Global Const $DS_ABSALIGN = 0x0001
Global Const $DS_CENTER = 0x0800
Global Const $DS_CENTERMOUSE = 0x1000
;Global Const $DS_CONTEXTHELP = 0x2000
Global Const $DS_CONTROL = 0x0400
Global Const $DS_FIXEDSYS = 0x0008
Global Const $DS_LOCALEDIT = 0x0020
;Global Const $DS_MODALFRAME = 0x0080
Global Const $DS_NOFAILCREATE = 0x0010
Global Const $DS_NOIDLEMSG = 0x0100
Global Const $DS_SETFONT = 0x0040
;Global Const $DS_SETFOREGROUND = 0x0200
Global Const $DS_SHELLFONT = BitOR($DS_FIXEDSYS, $DS_SETFONT)
Global Const $DS_SYSMODAL = 0x0002
; ===============================================================================================================================
; Window Styles
; ===============================================================================================================================
;Global Const $WS_BORDER = 0x00800000
;Global Const $WS_CAPTION = 0x00C00000
;Global Const $WS_CHILD = 0x40000000
Global Const $WS_CHILDWINDOW = $WS_CHILD
;Global Const $WS_CLIPCHILDREN = 0x02000000
;Global Const $WS_CLIPSIBLINGS = 0x04000000
;Global Const $WS_DISABLED = 0x08000000
;Global Const $WS_DLGFRAME = 0x00400000
;Global Const $WS_GROUP = 0x00020000
;Global Const $WS_HSCROLL = 0x00100000
Global Const $WS_ICONIC = 0x20000000
;Global Const $WS_MAXIMIZE = 0x01000000
;Global Const $WS_MAXIMIZEBOX = 0x00010000
;Global Const $WS_MINIMIZE = $WS_ICONIC
;Global Const $WS_MINIMIZEBOX = 0x00020000
;Global Const $WS_OVERLAPPED = 0x00000000
;Global Const $WS_OVERLAPPEDWINDOW = BitOR($WS_CAPTION, $WS_MAXIMIZEBOX, $WS_MINIMIZEBOX, $WS_OVERLAPPED, $WS_SYSMENU, $WS_THICKFRAME)
;Global Const $WS_POPUP = 0x80000000
;Global Const $WS_POPUPWINDOW = BitOR($WS_BORDER, $WS_POPUP, $WS_SYSMENU)
;Global Const $WS_SIZEBOX = 0x00040000
;Global Const $WS_SYSMENU = 0x00080000
;Global Const $WS_TABSTOP = 0x00010000
;Global Const $WS_THICKFRAME = $WS_SIZEBOX
;Global Const $WS_TILED = $WS_OVERLAPPED
;Global Const $WS_TILEDWINDOW = $WS_OVERLAPPEDWINDOW
;Global Const $WS_VISIBLE = 0x10000000
;Global Const $WS_VSCROLL = 0x00200000
; ===============================================================================================================================
; Extended Window Styles
; ===============================================================================================================================
;Global Const $WS_EX_ACCEPTFILES = 0x00000010
;Global Const $WS_EX_APPWINDOW = 0x00040000
;Global Const $WS_EX_CLIENTEDGE = 0x00000200
;Global Const $WS_EX_COMPOSITED = 0x02000000
;Global Const $WS_EX_CONTEXTHELP = 0x00000400
;Global Const $WS_EX_CONTROLPARENT = 0x00010000
;Global Const $WS_EX_DLGMODALFRAME = 0x00000001
;Global Const $WS_EX_LAYERED = 0x00080000
;Global Const $WS_EX_LAYOUTRTL = 0x00400000
Global Const $WS_EX_LEFT = 0x00000000
;Global Const $WS_EX_LEFTSCROLLBAR = 0x00004000
Global Const $WS_EX_LTRREADING = 0x00000000
;Global Const $WS_EX_MDICHILD = 0x00000040
Global Const $WS_EX_NOACTIVATE = 0x08000000
Global Const $WS_EX_NOINHERITLAYOUT = 0x00100000
Global Const $WS_EX_NOPARENTNOTIFY = 0x00000004
;Global Const $WS_EX_OVERLAPPEDWINDOW = BitOR($WS_EX_CLIENTEDGE, $WS_EX_WINDOWEDGE)
Global Const $WS_EX_PALETTEWINDOW = BitOR($WS_EX_TOOLWINDOW, $WS_EX_TOPMOST, $WS_EX_WINDOWEDGE)
;Global Const $WS_EX_RIGHT = 0x00001000
Global Const $WS_EX_RIGHTSCROLLBAR = 0x00000000
;Global Const $WS_EX_RTLREADING = 0x00002000
;Global Const $WS_EX_STATICEDGE = 0x00020000
;Global Const $WS_EX_TOOLWINDOW = 0x00000080
;Global Const $WS_EX_TOPMOST = 0x00000008
;Global Const $WS_EX_TRANSPARENT = 0x00000020
;Global Const $WS_EX_WINDOWEDGE = 0x00000100
; ===============================================================================================================================
; Window Messages
; ===============================================================================================================================
Global Const $WM_NULL = 0x0000
;Global Const $WM_CREATE = 0x0001
;Global Const $WM_DESTROY = 0x0002
;Global Const $WM_MOVE = 0x0003
Global Const $WM_SIZEWAIT = 0x0004
;Global Const $WM_SIZE = 0x0005
;Global Const $WM_ACTIVATE = 0x0006
;Global Const $WM_SETFOCUS = 0x0007
;Global Const $WM_KILLFOCUS = 0x0008
Global Const $WM_SETVISIBLE = 0x0009
;Global Const $WM_ENABLE = 0x000A
;Global Const $WM_SETREDRAW = 0x000B
;Global Const $WM_SETTEXT = 0x000C
;Global Const $WM_GETTEXT = 0x000D
;Global Const $WM_GETTEXTLENGTH = 0x000E
;Global Const $WM_PAINT = 0x000F
;Global Const $WM_CLOSE = 0x0010
;Global Const $WM_QUERYENDSESSION = 0x0011
;Global Const $WM_QUIT = 0x0012
;Global Const $WM_QUERYOPEN = 0x0013
;Global Const $WM_ERASEBKGND = 0x0014
;Global Const $WM_SYSCOLORCHANGE = 0x0015
;Global Const $WM_ENDSESSION = 0x0016
Global Const $WM_SYSTEMERROR = 0x0017
;Global Const $WM_SHOWWINDOW = 0x0018
;Global Const $WM_CTLCOLOR = 0x0019
;Global Const $WM_SETTINGCHANGE = 0x001A
;Global Const $WM_DEVMODECHANGE = 0x001B
;Global Const $WM_ACTIVATEAPP = 0x001C
;Global Const $WM_FONTCHANGE = 0x001D
;Global Const $WM_TIMECHANGE = 0x001E
;Global Const $WM_CANCELMODE = 0x001F
;Global Const $WM_SETCURSOR = 0x0020
;Global Const $WM_MOUSEACTIVATE = 0x0021
;Global Const $WM_CHILDACTIVATE = 0x0022
;Global Const $WM_QUEUESYNC = 0x0023
;Global Const $WM_GETMINMAXINFO = 0x0024
Global Const $WM_LOGOFF = 0x0025
;Global Const $WM_PAINTICON = 0x0026
;Global Const $WM_ICONERASEBKGND = 0x0027
;Global Const $WM_NEXTDLGCTL = 0x0028
Global Const $WM_ALTTABACTIVE = 0x0029
;Global Const $WM_SPOOLERSTATUS = 0x002A
;Global Const $WM_DRAWITEM = 0x002B
;Global Const $WM_MEASUREITEM = 0x002C
;Global Const $WM_DELETEITEM = 0x002D
;Global Const $WM_VKEYTOITEM = 0x002E
;Global Const $WM_CHARTOITEM = 0x002F
;Global Const $WM_SETFONT = 0x0030
;Global Const $WM_GETFONT = 0x0031
;Global Const $WM_SETHOTKEY = 0x0032
;Global Const $WM_GETHOTKEY = 0x0033
Global Const $WM_FILESYSCHANGE = 0x0034
Global Const $WM_ISACTIVEICON = 0x0035
Global Const $WM_QUERYPARKICON = 0x0036
;Global Const $WM_QUERYDRAGICON = 0x0037
Global Const $WM_WINHELP = 0x0038
;Global Const $WM_COMPAREITEM = 0x0039
Global Const $WM_FULLSCREEN = 0x003A
Global Const $WM_CLIENTSHUTDOWN = 0x003B
Global Const $WM_DDEMLEVENT = 0x003C
;Global Const $WM_GETOBJECT = 0x003D
Global Const $WM_CALCSCROLL = 0x003F
Global Const $WM_TESTING = 0x0040
;Global Const $WM_COMPACTING = 0x0041
Global Const $WM_OTHERWINDOWCREATED = 0x0042
Global Const $WM_OTHERWINDOWDESTROYED = 0x0043
;Global Const $WM_COMMNOTIFY = 0x0044
Global Const $WM_MEDIASTATUSCHANGE = 0x0045
;Global Const $WM_WINDOWPOSCHANGING = 0x0046
;Global Const $WM_WINDOWPOSCHANGED = 0x0047
;Global Const $WM_POWER = 0x0048
Global Const $WM_COPYGLOBALDATA = 0x0049
;Global Const $WM_COPYDATA = 0x004A
;Global Const $WM_CANCELJOURNAL = 0x004B
Global Const $WM_LOGONNOTIFY = 0x004C
Global Const $WM_KEYF1 = 0x004D
;Global Const $WM_NOTIFY = 0x004E
Global Const $WM_ACCESS_WINDOW = 0x004F
;Global Const $WM_INPUTLANGCHANGEREQUEST = 0x0050
;Global Const $WM_INPUTLANGCHANGE = 0x0051
;Global Const $WM_TCARD = 0x0052
;Global Const $WM_HELP = 0x0053
;Global Const $WM_USERCHANGED = 0x0054
;Global Const $WM_NOTIFYFORMAT = 0x0055
Global Const $WM_QM_ACTIVATE = 0x0060
Global Const $WM_HOOK_DO_CALLBACK = 0x0061
Global Const $WM_SYSCOPYDATA = 0x0062
Global Const $WM_FINALDESTROY = 0x0070
Global Const $WM_MEASUREITEM_CLIENTDATA = 0x0071
;Global Const $WM_CONTEXTMENU = 0x007B
;Global Const $WM_STYLECHANGING = 0x007C
;Global Const $WM_STYLECHANGED = 0x007D
;Global Const $WM_DISPLAYCHANGE = 0x007E
;Global Const $WM_GETICON = 0x007F
;Global Const $WM_SETICON = 0x0080
;Global Const $WM_NCCREATE = 0x0081
;Global Const $WM_NCDESTROY = 0x0082
;Global Const $WM_NCCALCSIZE = 0x0083
;Global Const $WM_NCHITTEST = 0x0084
;Global Const $WM_NCPAINT = 0x0085
;Global Const $WM_NCACTIVATE = 0x0086
;Global Const $WM_GETDLGCODE = 0x0087
;Global Const $WM_SYNCPAINT = 0x0088
Global Const $WM_SYNCTASK = 0x0089
Global Const $WM_KLUDGEMINRECT = 0x008B
Global Const $WM_LPKDRAWSWITCHWND = 0x008C
Global Const $WM_UAHDESTROYWINDOW = 0x0090
Global Const $WM_UAHDRAWMENU = 0x0091
Global Const $WM_UAHDRAWMENUITEM = 0x0092
Global Const $WM_UAHINITMENU = 0x0093
Global Const $WM_UAHMEASUREMENUITEM = 0x0094
Global Const $WM_UAHNCPAINTMENUPOPUP = 0x0095
;Global Const $WM_NCMOUSEMOVE = 0x00A0
;Global Const $WM_NCLBUTTONDOWN = 0x00A1
;Global Const $WM_NCLBUTTONUP = 0x00A2
;Global Const $WM_NCLBUTTONDBLCLK = 0x00A3
;Global Const $WM_NCRBUTTONDOWN = 0x00A4
;Global Const $WM_NCRBUTTONUP = 0x00A5
;Global Const $WM_NCRBUTTONDBLCLK = 0x00A6
;Global Const $WM_NCMBUTTONDOWN = 0x00A7
;Global Const $WM_NCMBUTTONUP = 0x00A8
;Global Const $WM_NCMBUTTONDBLCLK = 0x00A9
;Global Const $WM_NCXBUTTONDOWN = 0x00AB
;Global Const $WM_NCXBUTTONUP = 0x00AC
;Global Const $WM_NCXBUTTONDBLCLK = 0x00AD
Global Const $WM_NCUAHDRAWCAPTION = 0x00AE
Global Const $WM_NCUAHDRAWFRAME = 0x00AF
Global Const $WM_INPUT_DEVICE_CHANGE = 0x00FE
Global Const $WM_INPUT = 0x00FF
;Global Const $WM_KEYDOWN = 0x0100
;Global Const $WM_KEYUP = 0x0101
;Global Const $WM_CHAR = 0x0102
;Global Const $WM_DEADCHAR = 0x0103
;Global Const $WM_SYSKEYDOWN = 0x0104
;Global Const $WM_SYSKEYUP = 0x0105
;Global Const $WM_SYSCHAR = 0x0106
;Global Const $WM_SYSDEADCHAR = 0x0107
Global Const $WM_YOMICHAR = 0x0108
;Global Const $WM_UNICHAR = 0x0109
Global Const $WM_CONVERTREQUEST = 0x010A
Global Const $WM_CONVERTRESULT = 0x010B
Global Const $WM_IM_INFO = 0x010C
;Global Const $WM_IME_STARTCOMPOSITION = 0x010D
;Global Const $WM_IME_ENDCOMPOSITION = 0x010E
;Global Const $WM_IME_COMPOSITION = 0x010F
;Global Const $WM_INITDIALOG = 0x0110
;Global Const $WM_COMMAND = 0x0111
;Global Const $WM_SYSCOMMAND = 0x0112
;Global Const $WM_TIMER = 0x0113
;Global Const $WM_HSCROLL = 0x0114
;Global Const $WM_VSCROLL = 0x0115
;Global Const $WM_INITMENU = 0x0116
;Global Const $WM_INITMENUPOPUP = 0x0117
Global Const $WM_SYSTIMER = 0x0118
Global Const $WM_GESTURE = 0x0119
Global Const $WM_GESTURENOTIFY = 0x011A
Global Const $WM_GESTUREINPUT = 0x011B
Global Const $WM_GESTURENOTIFIED = 0x011C
;Global Const $WM_MENUSELECT = 0x011F
;Global Const $WM_MENUCHAR = 0x0120
;Global Const $WM_ENTERIDLE = 0x0121
;Global Const $WM_MENURBUTTONUP = 0x0122
;Global Const $WM_MENUDRAG = 0x0123
;Global Const $WM_MENUGETOBJECT = 0x0124
;Global Const $WM_UNINITMENUPOPUP = 0x0125
;Global Const $WM_MENUCOMMAND = 0x0126
;Global Const $WM_CHANGEUISTATE = 0x0127
;Global Const $WM_UPDATEUISTATE = 0x0128
;Global Const $WM_QUERYUISTATE = 0x0129
Global Const $WM_LBTRACKPOINT = 0x0131
;Global Const $WM_CTLCOLORMSGBOX = 0x0132
;Global Const $WM_CTLCOLOREDIT = 0x0133
;Global Const $WM_CTLCOLORLISTBOX = 0x0134
;Global Const $WM_CTLCOLORBTN = 0x0135
;Global Const $WM_CTLCOLORDLG = 0x0136
;Global Const $WM_CTLCOLORSCROLLBAR = 0x0137
;Global Const $WM_CTLCOLORSTATIC = 0x0138
;Global Const $WM_MOUSEMOVE = 0x0200
;Global Const $WM_LBUTTONDOWN = 0x0201
;Global Const $WM_LBUTTONUP = 0x0202
;Global Const $WM_LBUTTONDBLCLK = 0x0203
;Global Const $WM_RBUTTONDOWN = 0x0204
;Global Const $WM_RBUTTONUP = 0x0205
;Global Const $WM_RBUTTONDBLCLK = 0x0206
;Global Const $WM_MBUTTONDOWN = 0x0207
;Global Const $WM_MBUTTONUP = 0x0208
;Global Const $WM_MBUTTONDBLCLK = 0x0209
;Global Const $WM_MOUSEWHEEL = 0x020A
;Global Const $WM_XBUTTONDOWN = 0x020B
;Global Const $WM_XBUTTONUP = 0x020C
;Global Const $WM_XBUTTONDBLCLK = 0x020D
;Global Const $WM_MOUSEHWHEEL = 0x020E
;Global Const $WM_PARENTNOTIFY = 0x0210
;Global Const $WM_ENTERMENULOOP = 0x0211
;Global Const $WM_EXITMENULOOP = 0x0212
;Global Const $WM_NEXTMENU = 0x0213
;Global Const $WM_SIZING = 0x0214
;Global Const $WM_CAPTURECHANGED = 0x0215
;Global Const $WM_MOVING = 0x0216
;Global Const $WM_POWERBROADCAST = 0x0218
;Global Const $WM_DEVICECHANGE = 0x0219
;Global Const $WM_MDICREATE = 0x0220
;Global Const $WM_MDIDESTROY = 0x0221
;Global Const $WM_MDIACTIVATE = 0x0222
;Global Const $WM_MDIRESTORE = 0x0223
;Global Const $WM_MDINEXT = 0x0224
;Global Const $WM_MDIMAXIMIZE = 0x0225
;Global Const $WM_MDITILE = 0x0226
;Global Const $WM_MDICASCADE = 0x0227
;Global Const $WM_MDIICONARRANGE = 0x0228
;Global Const $WM_MDIGETACTIVE = 0x0229
Global Const $WM_DROPOBJECT = 0x022A
Global Const $WM_QUERYDROPOBJECT = 0x022B
Global Const $WM_BEGINDRAG = 0x022C
Global Const $WM_DRAGLOOP = 0x022D
Global Const $WM_DRAGSELECT = 0x022E
Global Const $WM_DRAGMOVE = 0x022F
;Global Const $WM_MDISETMENU = 0x0230
;Global Const $WM_ENTERSIZEMOVE = 0x0231
;Global Const $WM_EXITSIZEMOVE = 0x0232
;Global Const $WM_DROPFILES = 0x0233
;Global Const $WM_MDIREFRESHMENU = 0x0234
Global Const $WM_TOUCH = 0x0240
;Global Const $WM_IME_SETCONTEXT = 0x0281
;Global Const $WM_IME_NOTIFY = 0x0282
;Global Const $WM_IME_CONTROL = 0x0283
;Global Const $WM_IME_COMPOSITIONFULL = 0x0284
;Global Const $WM_IME_SELECT = 0x0285
;Global Const $WM_IME_CHAR = 0x0286
Global Const $WM_IME_SYSTEM = 0x0287
;Global Const $WM_IME_REQUEST = 0x0288
;Global Const $WM_IME_KEYDOWN = 0x0290
;Global Const $WM_IME_KEYUP = 0x0291
;Global Const $WM_NCMOUSEHOVER = 0x02A0
;Global Const $WM_MOUSEHOVER = 0x02A1
;Global Const $WM_NCMOUSELEAVE = 0x02A2
;Global Const $WM_MOUSELEAVE = 0x02A3
;Global Const $WM_WTSSESSION_CHANGE = 0x02B1
;Global Const $WM_TABLET_FIRST = 0x02C0
;Global Const $WM_TABLET_LAST = 0x02DF
;Global Const $WM_CUT = 0x0300
;Global Const $WM_COPY = 0x0301
;Global Const $WM_PASTE = 0x0302
;Global Const $WM_CLEAR = 0x0303
;Global Const $WM_UNDO = 0x0304
;Global Const $WM_RENDERFORMAT = 0x0305
;Global Const $WM_RENDERALLFORMATS = 0x0306
;Global Const $WM_DESTROYCLIPBOARD = 0x0307
;Global Const $WM_DRAWCLIPBOARD = 0x0308
;Global Const $WM_PAINTCLIPBOARD = 0x0309
;Global Const $WM_VSCROLLCLIPBOARD = 0x030A
;Global Const $WM_SIZECLIPBOARD = 0x030B
;Global Const $WM_ASKCBFORMATNAME = 0x030C
;Global Const $WM_CHANGECBCHAIN = 0x030D
;Global Const $WM_HSCROLLCLIPBOARD = 0x030E
;Global Const $WM_QUERYNEWPALETTE = 0x030F
;Global Const $WM_PALETTEISCHANGING = 0x0310
;Global Const $WM_PALETTECHANGED = 0x0311
;Global Const $WM_HOTKEY = 0x0312
Global Const $WM_SYSMENU = 0x0313
Global Const $WM_HOOKMSG = 0x0314
Global Const $WM_EXITPROCESS = 0x0315
Global Const $WM_WAKETHREAD = 0x0316
;Global Const $WM_PRINT = 0x0317
;Global Const $WM_PRINTCLIENT = 0x0318
;Global Const $WM_APPCOMMAND = 0x0319
;Global Const $WM_THEMECHANGED = 0x031A
Global Const $WM_UAHINIT = 0x031B
Global Const $WM_DESKTOPNOTIFY = 0x031C
Global Const $WM_CLIPBOARDUPDATE = 0x031D
Global Const $WM_DWMCOMPOSITIONCHANGED = 0x031E
Global Const $WM_DWMNCRENDERINGCHANGED = 0x031F
Global Const $WM_DWMCOLORIZATIONCOLORCHANGED = 0x0320
Global Const $WM_DWMWINDOWMAXIMIZEDCHANGE = 0x0321
Global Const $WM_DWMEXILEFRAME = 0x0322
Global Const $WM_DWMSENDICONICTHUMBNAIL = 0x0323
Global Const $WM_MAGNIFICATION_STARTED = 0x0324
Global Const $WM_MAGNIFICATION_ENDED = 0x0325
Global Const $WM_DWMSENDICONICLIVEPREVIEWBITMAP = 0x0326
Global Const $WM_DWMTHUMBNAILSIZECHANGED = 0x0327
Global Const $WM_MAGNIFICATION_OUTPUT = 0x0328
Global Const $WM_MEASURECONTROL = 0x0330
Global Const $WM_GETACTIONTEXT = 0x0331
Global Const $WM_FORWARDKEYDOWN = 0x0333
Global Const $WM_FORWARDKEYUP = 0x0334
Global Const $WM_GETTITLEBARINFOEX = 0x033F
Global Const $WM_NOTIFYWOW = 0x0340
;Global Const $WM_HANDHELDFIRST = 0x0358
;Global Const $WM_HANDHELDLAST = 0x035F
;Global Const $WM_AFXFIRST = 0x0360
;Global Const $WM_AFXLAST = 0x037F
;Global Const $WM_PENWINFIRST = 0x0380
;Global Const $WM_PENWINLAST = 0x038F
Global Const $WM_DDE_INITIATE = 0x03E0
Global Const $WM_DDE_TERMINATE = 0x03E1
Global Const $WM_DDE_ADVISE = 0x03E2
Global Const $WM_DDE_UNADVISE = 0x03E3
Global Const $WM_DDE_ACK = 0x03E4
Global Const $WM_DDE_DATA = 0x03E5
Global Const $WM_DDE_REQUEST = 0x03E6
Global Const $WM_DDE_POKE = 0x03E7
Global Const $WM_DDE_EXECUTE = 0x03E8
Global Const $WM_DBNOTIFICATION = 0x03FD
Global Const $WM_NETCONNECT = 0x03FE
Global Const $WM_HIBERNATE = 0x03FF
;Global Const $WM_USER = 0x0400
; ===============================================================================================================================
; Common HRESULT errors
; ===============================================================================================================================
Global Const $S_OK = 0x00000000
Global Const $E_ABORT = 0x80004004
Global Const $E_ACCESSDENIED = 0x80070005
Global Const $E_FAIL = 0x80004005
Global Const $E_HANDLE = 0x80070006
;Global Const $E_INVALIDARG = 0x80070057
Global Const $E_NOINTERFACE = 0x80004002
Global Const $E_NOTIMPL = 0x80004001
Global Const $E_OUTOFMEMORY = 0x8007000E
Global Const $E_POINTER = 0x80004003
Global Const $E_UNEXPECTED = 0x8000FFFF
; ===============================================================================================================================
; DEVMODE structure
; ===============================================================================================================================
Global Const $DM_BITSPERPEL = 0x00040000
Global Const $DM_COLLATE = 0x0008000
Global Const $DM_COLOR = 0x00000800
Global Const $DM_COPIES = 0x00000100
Global Const $DM_DEFAULTSOURCE = 0x00000200
Global Const $DM_DISPLAYFIXEDOUTPUT = 0x20000000
Global Const $DM_DISPLAYFLAGS = 0x00200000
Global Const $DM_DISPLAYFREQUENCY = 0x00400000
Global Const $DM_DISPLAYORIENTATION = 0x00000080
Global Const $DM_DITHERTYPE = 0x04000000
Global Const $DM_DUPLEX = 0x0001000
Global Const $DM_FORMNAME = 0x00010000
Global Const $DM_ICMINTENT = 0x01000000
Global Const $DM_ICMMETHOD = 0x00800000
Global Const $DM_LOGPIXELS = 0x00020000
Global Const $DM_MEDIATYPE = 0x02000000
Global Const $DM_NUP = 0x00000040
Global Const $DM_ORIENTATION = 0x00000001
Global Const $DM_PANNINGHEIGHT = 0x10000000
Global Const $DM_PANNINGWIDTH = 0x08000000
Global Const $DM_PAPERLENGTH = 0x00000004
Global Const $DM_PAPERSIZE = 0x00000002
Global Const $DM_PAPERWIDTH = 0x00000008
Global Const $DM_PELSHEIGHT = 0x00100000
Global Const $DM_PELSWIDTH = 0x00080000
Global Const $DM_POSITION = 0x00000020
Global Const $DM_PRINTQUALITY = 0x00000400
Global Const $DM_SCALE = 0x00000010
Global Const $DM_TTOPTION = 0x0004000
Global Const $DM_YRESOLUTION = 0x0002000
Global Const $DMPAPER_LETTER = 1 ; US Letter 8 1/2 x 11 in
Global Const $DMPAPER_LETTERSMALL = 2 ; US Letter Small 8 1/2 x 11 in
Global Const $DMPAPER_TABLOID = 3 ; US Tabloid 11 x 17 in
Global Const $DMPAPER_LEDGER = 4 ; US Ledger 17 x 11 in
Global Const $DMPAPER_LEGAL = 5 ; US Legal 8 1/2 x 14 in
Global Const $DMPAPER_STATEMENT = 6 ; US Statement 5 1/2 x 8 1/2 in
Global Const $DMPAPER_EXECUTIVE = 7 ; US Executive 7 1/4 x 10 1/2 in
Global Const $DMPAPER_A3 = 8 ; A3 297 x 420 mm
Global Const $DMPAPER_A4 = 9 ; A4 210 x 297 mm
Global Const $DMPAPER_A4SMALL = 10 ; A4 Small 210 x 297 mm
Global Const $DMPAPER_A5 = 11 ; A5 148 x 210 mm
Global Const $DMPAPER_B4 = 12 ; B4 (JIS) 257 x 364 mm
Global Const $DMPAPER_B5 = 13 ; B5 (JIS) 182 x 257 mm
Global Const $DMPAPER_FOLIO = 14 ; Folio 8 1/2 x 13 in
Global Const $DMPAPER_QUARTO = 15 ; Quarto 215 x 275 mm
Global Const $DMPAPER_10X14 = 16 ; 10 x 14 in
Global Const $DMPAPER_11X17 = 17 ; 11 x 17 in
Global Const $DMPAPER_NOTE = 18 ; US Note 8 1/2 x 11 in
Global Const $DMPAPER_ENV_9 = 19 ; US Envelope #9 3 7/8 x 8 7/8
Global Const $DMPAPER_ENV_10 = 20 ; US Envelope #10 4 1/8 x 9 1/2
Global Const $DMPAPER_ENV_11 = 21 ; US Envelope #11 4 1/2 x 10 3/8
Global Const $DMPAPER_ENV_12 = 22 ; US Envelope #12 4 3/4 x 11 in
Global Const $DMPAPER_ENV_14 = 23 ; US Envelope #14 5 x 11 1/2
Global Const $DMPAPER_CSHEET = 24 ; C size sheet
Global Const $DMPAPER_DSHEET = 25 ; D size sheet
Global Const $DMPAPER_ESHEET = 26 ; E size sheet
Global Const $DMPAPER_ENV_DL = 27 ; Envelope DL 110 x 220mm
Global Const $DMPAPER_ENV_C5 = 28 ; Envelope C5 162 x 229 mm
Global Const $DMPAPER_ENV_C3 = 29 ; Envelope C3 324 x 458 mm
Global Const $DMPAPER_ENV_C4 = 30 ; Envelope C4 229 x 324 mm
Global Const $DMPAPER_ENV_C6 = 31 ; Envelope C6 114 x 162 mm
Global Const $DMPAPER_ENV_C65 = 32 ; Envelope C65 114 x 229 mm
Global Const $DMPAPER_ENV_B4 = 33 ; Envelope B4 250 x 353 mm
Global Const $DMPAPER_ENV_B5 = 34 ; Envelope B5 176 x 250 mm
Global Const $DMPAPER_ENV_B6 = 35 ; Envelope B6 176 x 125 mm
Global Const $DMPAPER_ENV_ITALY = 36 ; Envelope 110 x 230 mm
Global Const $DMPAPER_ENV_MONARCH = 37 ; US Envelope Monarch 3.875 x 7.5 in
Global Const $DMPAPER_ENV_PERSONAL = 38 ; 6 3/4 US Envelope 3 5/8 x 6 1/2 in
Global Const $DMPAPER_FANFOLD_US = 39 ; US Std Fanfold 14 7/8 x 11 in
Global Const $DMPAPER_FANFOLD_STD_GERMAN = 40 ; German Std Fanfold 8 1/2 x 12 in
Global Const $DMPAPER_FANFOLD_LGL_GERMAN = 41 ; German Legal Fanfold 8 1/2 x 13 in
Global Const $DMPAPER_ISO_B4 = 42 ; B4 (ISO) 250 x 353 mm
Global Const $DMPAPER_JAPANESE_POSTCARD = 43 ; Japanese Postcard 100 x 148 mm
Global Const $DMPAPER_9X11 = 44 ; 9 x 11 in
Global Const $DMPAPER_10X11 = 45 ; 10 x 11 in
Global Const $DMPAPER_15X11 = 46 ; 15 x 11 in
Global Const $DMPAPER_ENV_INVITE = 47 ; Envelope Invite 220 x 220 mm
Global Const $DMPAPER_RESERVED_48 = 48 ; Reserved
Global Const $DMPAPER_RESERVED_49 = 49 ; Reserved
Global Const $DMPAPER_LETTER_EXTRA = 50 ; US Letter Extra 9 1/2 x 12 in
Global Const $DMPAPER_LEGAL_EXTRA = 51 ; US Legal Extra 9 1/2 x 15 in
Global Const $DMPAPER_TABLOID_EXTRA = 52 ; US Tabloid Extra 11.69 x 18 in
Global Const $DMPAPER_A4_EXTRA = 53 ; A4 Extra 9.27 x 12.69 in
Global Const $DMPAPER_LETTER_TRANSVERSE = 54 ; Letter Transverse 8 1/2 x 11 in
Global Const $DMPAPER_A4_TRANSVERSE = 55 ; A4 Transverse 210 x 297 mm
Global Const $DMPAPER_LETTER_EXTRA_TRANSVERSE = 56 ; Letter Extra Transverse 9 1/2 x 12 in
Global Const $DMPAPER_A_PLUS = 57 ; SuperA/SuperA/A4 227 x 356 mm
Global Const $DMPAPER_B_PLUS = 58 ; SuperB/SuperB/A3 305 x 487 mm
Global Const $DMPAPER_LETTER_PLUS = 59 ; US Letter Plus 8.5 x 12.69 in
Global Const $DMPAPER_A4_PLUS = 60 ; A4 Plus 210 x 330 mm
Global Const $DMPAPER_A5_TRANSVERSE = 61 ; A5 Transverse 148 x 210 mm
Global Const $DMPAPER_B5_TRANSVERSE = 62 ; B5 (JIS) Transverse 182 x 257 mm
Global Const $DMPAPER_A3_EXTRA = 63 ; A3 Extra 322 x 445 mm
Global Const $DMPAPER_A5_EXTRA = 64 ; A5 Extra 174 x 235 mm
Global Const $DMPAPER_B5_EXTRA = 65 ; B5 (ISO) Extra 201 x 276 mm
Global Const $DMPAPER_A2 = 66 ; A2 420 x 594 mm
Global Const $DMPAPER_A3_TRANSVERSE = 67 ; A3 Transverse 297 x 420 mm
Global Const $DMPAPER_A3_EXTRA_TRANSVERSE = 68 ; A3 Extra Transverse 322 x 445 mm
Global Const $DMPAPER_DBL_JAPANESE_POSTCARD = 69 ; Japanese Double Postcard 200 x 148 mm
Global Const $DMPAPER_A6 = 70 ; A6 105 x 148 mm
Global Const $DMPAPER_JENV_KAKU2 = 71 ; Japanese Envelope Kaku #2
Global Const $DMPAPER_JENV_KAKU3 = 72 ; Japanese Envelope Kaku #3
Global Const $DMPAPER_JENV_CHOU3 = 73 ; Japanese Envelope Chou #3
Global Const $DMPAPER_JENV_CHOU4 = 74 ; Japanese Envelope Chou #4
Global Const $DMPAPER_LETTER_ROTATED = 75 ; Letter Rotated 11 x 8 1/2 11 in
Global Const $DMPAPER_A3_ROTATED = 76 ; A3 Rotated 420 x 297 mm
Global Const $DMPAPER_A4_ROTATED = 77 ; A4 Rotated 297 x 210 mm
Global Const $DMPAPER_A5_ROTATED = 78 ; A5 Rotated 210 x 148 mm
Global Const $DMPAPER_B4_JIS_ROTATED = 79 ; B4 (JIS) Rotated 364 x 257 mm
Global Const $DMPAPER_B5_JIS_ROTATED = 80 ; B5 (JIS) Rotated 257 x 182 mm
Global Const $DMPAPER_JAPANESE_POSTCARD_ROTATED = 81 ; Japanese Postcard Rotated 148 x 100 mm
Global Const $DMPAPER_DBL_JAPANESE_POSTCARD_ROTATED = 82 ; Double Japanese Postcard Rotated 148 x 200 mm
Global Const $DMPAPER_A6_ROTATED = 83 ; A6 Rotated 148 x 105 mm
Global Const $DMPAPER_JENV_KAKU2_ROTATED = 84 ; Japanese Envelope Kaku #2 Rotated
Global Const $DMPAPER_JENV_KAKU3_ROTATED = 85 ; Japanese Envelope Kaku #3 Rotated
Global Const $DMPAPER_JENV_CHOU3_ROTATED = 86 ; Japanese Envelope Chou #3 Rotated
Global Const $DMPAPER_JENV_CHOU4_ROTATED = 87 ; Japanese Envelope Chou #4 Rotated
Global Const $DMPAPER_B6_JIS = 88 ; B6 (JIS) 128 x 182 mm
Global Const $DMPAPER_B6_JIS_ROTATED = 89 ; B6 (JIS) Rotated 182 x 128 mm
Global Const $DMPAPER_12X11 = 90 ; 12 x 11 in
Global Const $DMPAPER_JENV_YOU4 = 91 ; Japanese Envelope You #4
Global Const $DMPAPER_JENV_YOU4_ROTATED = 92 ; Japanese Envelope You #4 Rotated
Global Const $DMPAPER_P16K = 93 ; PRC 16K 146 x 215 mm
Global Const $DMPAPER_P32K = 94 ; PRC 32K 97 x 151 mm
Global Const $DMPAPER_P32KBIG = 95 ; PRC 32K(Big) 97 x 151 mm
Global Const $DMPAPER_PENV_1 = 96 ; PRC Envelope #1 102 x 165 mm
Global Const $DMPAPER_PENV_2 = 97 ; PRC Envelope #2 102 x 176 mm
Global Const $DMPAPER_PENV_3 = 98 ; PRC Envelope #3 125 x 176 mm
Global Const $DMPAPER_PENV_4 = 99 ; PRC Envelope #4 110 x 208 mm
Global Const $DMPAPER_PENV_5 = 100 ; PRC Envelope #5 110 x 220 mm
Global Const $DMPAPER_PENV_6 = 101 ; PRC Envelope #6 120 x 230 mm
Global Const $DMPAPER_PENV_7 = 102 ; PRC Envelope #7 160 x 230 mm
Global Const $DMPAPER_PENV_8 = 103 ; PRC Envelope #8 120 x 309 mm
Global Const $DMPAPER_PENV_9 = 104 ; PRC Envelope #9 229 x 324 mm
Global Const $DMPAPER_PENV_10 = 105 ; PRC Envelope #10 324 x 458 mm
Global Const $DMPAPER_P16K_ROTATED = 106 ; PRC 16K Rotated
Global Const $DMPAPER_P32K_ROTATED = 107 ; PRC 32K Rotated
Global Const $DMPAPER_P32KBIG_ROTATED = 108 ; PRC 32K(Big) Rotated
Global Const $DMPAPER_PENV_1_ROTATED = 109 ; PRC Envelope #1 Rotated 165 x 102 mm
Global Const $DMPAPER_PENV_2_ROTATED = 110 ; PRC Envelope #2 Rotated 176 x 102 mm
Global Const $DMPAPER_PENV_3_ROTATED = 111 ; PRC Envelope #3 Rotated 176 x 125 mm
Global Const $DMPAPER_PENV_4_ROTATED = 112 ; PRC Envelope #4 Rotated 208 x 110 mm
Global Const $DMPAPER_PENV_5_ROTATED = 113 ; PRC Envelope #5 Rotated 220 x 110 mm
Global Const $DMPAPER_PENV_6_ROTATED = 114 ; PRC Envelope #6 Rotated 230 x 120 mm
Global Const $DMPAPER_PENV_7_ROTATED = 115 ; PRC Envelope #7 Rotated 230 x 160 mm
Global Const $DMPAPER_PENV_8_ROTATED = 116 ; PRC Envelope #8 Rotated 309 x 120 mm
Global Const $DMPAPER_PENV_9_ROTATED = 117 ; PRC Envelope #9 Rotated 324 x 229 mm
Global Const $DMPAPER_PENV_10_ROTATED = 118 ; PRC Envelope #10 Rotated 458 x 324 mm
Global Const $DMPAPER_USER = 256
Global Const $DMBIN_UPPER = 1
Global Const $DMBIN_LOWER = 2
Global Const $DMBIN_MIDDLE = 3
Global Const $DMBIN_MANUAL = 4
Global Const $DMBIN_ENVELOPE = 5
Global Const $DMBIN_ENVMANUAL = 6
Global Const $DMBIN_AUTO = 7
Global Const $DMBIN_TRACTOR = 8
Global Const $DMBIN_SMALLFMT = 9
Global Const $DMBIN_LARGEFMT = 10
Global Const $DMBIN_LARGECAPACITY = 11
Global Const $DMBIN_CASSETTE = 14
Global Const $DMBIN_FORMSOURCE = 15
Global Const $DMBIN_USER = 256
Global Const $DMRES_DRAFT = -1
Global Const $DMRES_LOW = -2
Global Const $DMRES_MEDIUM = -3
Global Const $DMRES_HIGH = -4
Global Const $DMDO_DEFAULT = 0
Global Const $DMDO_90 = 1
Global Const $DMDO_180 = 2
Global Const $DMDO_270 = 3
Global Const $DMDFO_DEFAULT = 0
Global Const $DMDFO_STRETCH = 1
Global Const $DMDFO_CENTER = 2
Global Const $DMCOLOR_MONOCHROME = 1
Global Const $DMCOLOR_COLOR = 2
Global Const $DMDUP_SIMPLEX = 1
Global Const $DMDUP_VERTICAL = 2
Global Const $DMDUP_HORIZONTAL = 3
Global Const $DMTT_BITMAP = 1
Global Const $DMTT_DOWNLOAD = 2
Global Const $DMTT_SUBDEV = 3
Global Const $DMTT_DOWNLOAD_OUTLINE = 4
Global Const $DMCOLLATE_FALSE = 0
Global Const $DMCOLLATE_TRUE = 1
Global Const $DM_GRAYSCALE = 1
Global Const $DM_INTERLACED = 2
Global Const $DMNUP_SYSTEM = 1
Global Const $DMNUP_ONEUP = 2
Global Const $DMICMMETHOD_NONE = 1
Global Const $DMICMMETHOD_SYSTEM = 2
Global Const $DMICMMETHOD_DRIVER = 3
Global Const $DMICMMETHOD_DEVICE = 4
Global Const $DMICMMETHOD_USER = 256
Global Const $DMICM_SATURATE = 1
Global Const $DMICM_CONTRAST = 2
Global Const $DMICM_COLORIMETRIC = 3
Global Const $DMICM_ABS_COLORIMETRIC = 4
Global Const $DMICM_USER = 256
Global Const $DMMEDIA_STANDARD = 1
Global Const $DMMEDIA_TRANSPARENCY = 2
Global Const $DMMEDIA_GLOSSY = 3
Global Const $DMMEDIA_USER = 256
Global Const $DMDITHER_NONE = 1
Global Const $DMDITHER_COARSE = 2
Global Const $DMDITHER_FINE = 3
Global Const $DMDITHER_LINEART = 4
Global Const $DMDITHER_ERRORDIFFUSION = 5
Global Const $DMDITHER_RESERVED6 = 6
Global Const $DMDITHER_RESERVED7 = 7
Global Const $DMDITHER_RESERVED8 = 8
Global Const $DMDITHER_RESERVED9 = 9
Global Const $DMDITHER_GRAYSCALE = 10
Global Const $DMDITHER_USER = 256
; ===============================================================================================================================
; _WinAPI_ActivateKeyboardLayout(), _WinAPI_LoadKeyboardLayout()
; ===============================================================================================================================
Global Const $KLF_ACTIVATE = 0x00000001
Global Const $KLF_NOTELLSHELL = 0x00000080
Global Const $KLF_REORDER = 0x00000008
Global Const $KLF_REPLACELANG = 0x00000010
Global Const $KLF_RESET = 0x40000000
Global Const $KLF_SETFORPROCESS = 0x00000100
Global Const $KLF_SHIFTLOCK = 0x00010000
Global Const $KLF_SUBSTITUTE_OK = 0x00000002
Global Const $HKL_NEXT = 1
Global Const $HKL_PREV = 0
; ===============================================================================================================================
; _WinAPI_AddFontResourceEx(), _WinAPI_RemoveFontResourceEx()
; ===============================================================================================================================
Global Const $FR_PRIVATE = 0x10
Global Const $FR_NOT_ENUM = 0x20
; ===============================================================================================================================
; _WinAPI_AdjustTokenPrivileges()
; ===============================================================================================================================
;Global Const $SE_ASSIGNPRIMARYTOKEN_NAME = 'SeAssignPrimaryTokenPrivilege'
;Global Const $SE_AUDIT_NAME = 'SeAuditPrivilege'
;Global Const $SE_BACKUP_NAME = 'SeBackupPrivilege'
;Global Const $SE_CHANGE_NOTIFY_NAME = 'SeChangeNotifyPrivilege'
;Global Const $SE_CREATE_GLOBAL_NAME = 'SeCreateGlobalPrivilege'
;Global Const $SE_CREATE_PAGEFILE_NAME = 'SeCreatePagefilePrivilege'
;Global Const $SE_CREATE_PERMANENT_NAME = 'SeCreatePermanentPrivilege'
Global Const $SE_CREATE_SYMBOLIC_LINK_NAME = 'SeCreateSymbolicLinkPrivilege'
;Global Const $SE_CREATE_TOKEN_NAME = 'SeCreateTokenPrivilege'
;Global Const $SE_DEBUG_NAME = 'SeDebugPrivilege'
;Global Const $SE_ENABLE_DELEGATION_NAME = 'SeEnableDelegationPrivilege'
;Global Const $SE_IMPERSONATE_NAME = 'SeImpersonatePrivilege'
;Global Const $SE_INC_BASE_PRIORITY_NAME = 'SeIncreaseBasePriorityPrivilege'
;Global Const $SE_INCREASE_QUOTA_NAME = 'SeIncreaseQuotaPrivilege'
Global Const $SE_INC_WORKING_SET_NAME = 'SeIncreaseWorkingSetPrivilege'
;Global Const $SE_LOAD_DRIVER_NAME = 'SeLoadDriverPrivilege'
;Global Const $SE_LOCK_MEMORY_NAME = 'SeLockMemoryPrivilege'
;Global Const $SE_MACHINE_ACCOUNT_NAME = 'SeMachineAccountPrivilege'
;Global Const $SE_MANAGE_VOLUME_NAME = 'SeManageVolumePrivilege'
;Global Const $SE_PROF_SINGLE_PROCESS_NAME = 'SeProfileSingleProcessPrivilege'
Global Const $SE_RELABEL_NAME = 'SeRelabelPrivilege'
;Global Const $SE_REMOTE_SHUTDOWN_NAME = 'SeRemoteShutdownPrivilege'
;Global Const $SE_RESTORE_NAME = 'SeRestorePrivilege'
;Global Const $SE_SECURITY_NAME = 'SeSecurityPrivilege'
;Global Const $SE_SHUTDOWN_NAME = 'SeShutdownPrivilege'
;Global Const $SE_SYNC_AGENT_NAME = 'SeSyncAgentPrivilege'
;Global Const $SE_SYSTEM_ENVIRONMENT_NAME = 'SeSystemEnvironmentPrivilege'
;Global Const $SE_SYSTEM_PROFILE_NAME = 'SeSystemProfilePrivilege'
;Global Const $SE_SYSTEMTIME_NAME = 'SeSystemtimePrivilege'
;Global Const $SE_TAKE_OWNERSHIP_NAME = 'SeTakeOwnershipPrivilege'
;Global Const $SE_TCB_NAME = 'SeTcbPrivilege'
Global Const $SE_TIME_ZONE_NAME = 'SeTimeZonePrivilege'
Global Const $SE_TRUSTED_CREDMAN_ACCESS_NAME = 'SeTrustedCredManAccessPrivilege'
;Global Const $SE_UNDOCK_NAME = 'SeUndockPrivilege'
;Global Const $SE_UNSOLICITED_INPUT_NAME = 'SeUnsolicitedInputPrivilege'
;Global Const $SE_PRIVILEGE_ENABLED = 0x00000002
;Global Const $SE_PRIVILEGE_ENABLED_BY_DEFAULT = 0x00000001
;Global Const $SE_PRIVILEGE_REMOVED = 0x00000004
;Global Const $SE_PRIVILEGE_USED_FOR_ACCESS = 0x80000000
; ===============================================================================================================================
; _WinAPI_AnimateWindow()
; ===============================================================================================================================
Global Const $AW_ACTIVATE = 0x00020000
Global Const $AW_BLEND = 0x00080000
Global Const $AW_CENTER = 0x00000010
Global Const $AW_HIDE = 0x00010000
Global Const $AW_HOR_NEGATIVE = 0x00000002
Global Const $AW_HOR_POSITIVE = 0x00000001
Global Const $AW_SLIDE = 0x00040000
Global Const $AW_VER_NEGATIVE = 0x00000008
Global Const $AW_VER_POSITIVE = 0x00000004
; ===============================================================================================================================
; _WinAPI_AssocGetPerceivedType()
; ===============================================================================================================================
Global Const $PERCEIVED_TYPE_CUSTOM = -3
Global Const $PERCEIVED_TYPE_UNSPECIFIED = -2
Global Const $PERCEIVED_TYPE_FOLDER = -1
Global Const $PERCEIVED_TYPE_UNKNOWN = 0
Global Const $PERCEIVED_TYPE_TEXT = 1
Global Const $PERCEIVED_TYPE_IMAGE = 2
Global Const $PERCEIVED_TYPE_AUDIO = 3
Global Const $PERCEIVED_TYPE_VIDEO = 4
Global Const $PERCEIVED_TYPE_COMPRESSED = 5
Global Const $PERCEIVED_TYPE_DOCUMENT = 6
Global Const $PERCEIVED_TYPE_SYSTEM = 7
Global Const $PERCEIVED_TYPE_APPLICATION = 8
Global Const $PERCEIVED_TYPE_GAMEMEDIA = 9
Global Const $PERCEIVED_TYPE_CONTACTS = 10
Global Const $PERCEIVEDFLAG_UNDEFINED = 0x0000
Global Const $PERCEIVEDFLAG_SOFTCODED = 0x0001
Global Const $PERCEIVEDFLAG_HARDCODED = 0x0002
Global Const $PERCEIVEDFLAG_NATIVESUPPORT = 0x0004
Global Const $PERCEIVEDFLAG_GDIPLUS = 0x0010
Global Const $PERCEIVEDFLAG_WMSDK = 0x0020
Global Const $PERCEIVEDFLAG_ZIPFOLDER = 0x0040
; ===============================================================================================================================
; _WinAPI_AssocQueryString()
; ===============================================================================================================================
Global Const $ASSOCSTR_COMMAND = 1
Global Const $ASSOCSTR_EXECUTABLE = 2
Global Const $ASSOCSTR_FRIENDLYDOCNAME = 3
Global Const $ASSOCSTR_FRIENDLYAPPNAME = 4
Global Const $ASSOCSTR_NOOPEN = 5
Global Const $ASSOCSTR_SHELLNEWVALUE = 6
Global Const $ASSOCSTR_DDECOMMAND = 7
Global Const $ASSOCSTR_DDEIFEXEC = 8
Global Const $ASSOCSTR_DDEAPPLICATION = 9
Global Const $ASSOCSTR_DDETOPIC = 10
Global Const $ASSOCSTR_INFOTIP = 11
Global Const $ASSOCSTR_QUICKTIP = 12
Global Const $ASSOCSTR_TILEINFO = 13
Global Const $ASSOCSTR_CONTENTTYPE = 14
Global Const $ASSOCSTR_DEFAULTICON = 15
Global Const $ASSOCSTR_SHELLEXTENSION = 16
Global Const $ASSOCF_INIT_NOREMAPCLSID = 0x00000001
Global Const $ASSOCF_INIT_BYEXENAME = 0x00000002
Global Const $ASSOCF_OPEN_BYEXENAME = 0x00000002
Global Const $ASSOCF_INIT_DEFAULTTOSTAR = 0x00000004
Global Const $ASSOCF_INIT_DEFAULTTOFOLDER = 0x00000008
Global Const $ASSOCF_NOUSERSETTINGS = 0x00000010
Global Const $ASSOCF_NOTRUNCATE = 0x00000020
Global Const $ASSOCF_VERIFY = 0x00000040
Global Const $ASSOCF_REMAPRUNDLL = 0x00000080
Global Const $ASSOCF_NOFIXUPS = 0x00000100
Global Const $ASSOCF_IGNOREBASECLASS = 0x00000200
Global Const $ASSOCF_INIT_IGNOREUNKNOWN = 0x00000400
; ===============================================================================================================================
; _WinAPI_BackupRead(), _WinAPI_BackupWrite()
; ===============================================================================================================================
Global Const $BACKUP_ALTERNATE_DATA = 0x00000004
Global Const $BACKUP_DATA = 0x00000001
Global Const $BACKUP_EA_DATA = 0x00000002
Global Const $BACKUP_LINK = 0x00000005
Global Const $BACKUP_OBJECT_ID = 0x00000007
Global Const $BACKUP_PROPERTY_DATA = 0x00000006
Global Const $BACKUP_REPARSE_DATA = 0x00000008
Global Const $BACKUP_SECURITY_DATA = 0x00000003
Global Const $BACKUP_SPARSE_BLOCK = 0x00000009
Global Const $BACKUP_TXFS_DATA = 0x0000000A
; ===============================================================================================================================
; _WinAPI_BeginBufferedPaint()
; ===============================================================================================================================
Global Const $BPBF_COMPATIBLEBITMAP = 0
Global Const $BPBF_DIB = 1
Global Const $BPBF_TOPDOWNDIB = 2
Global Const $BPBF_TOPDOWNMONODIB = 3
Global Const $BPPF_ERASE = 0x01
Global Const $BPPF_NOCLIP = 0x02
Global Const $BPPF_NONCLIENT = 0x04
; ===============================================================================================================================
; _WinAPI_BroadcastSystemMessage()
; ===============================================================================================================================
Global Const $BSF_ALLOWSFW = 0x0080
Global Const $BSF_FLUSHDISK = 0x0004
Global Const $BSF_FORCEIFHUNG = 0x0020
Global Const $BSF_IGNORECURRENTTASK = 0x0002
Global Const $BSF_NOHANG = 0x0008
Global Const $BSF_NOTIMEOUTIFNOTHUNG = 0x0040
Global Const $BSF_POSTMESSAGE = 0x0010
Global Const $BSF_QUERY = 0x0001
Global Const $BSF_SENDNOTIFYMESSAGE = 0x0100
Global Const $BSM_ALLCOMPONENTS = 0x00
Global Const $BSM_ALLDESKTOPS = 0x08
Global Const $BSM_APPLICATIONS = 0x10
Global Const $BSM_INSTALLABLEDRIVERS = 0x04
Global Const $BSM_NETDRIVER = 0x02
Global Const $BSM_VXDS = 0x01
; ===============================================================================================================================
; _WinAPI_BrowseForFolderDlg()
; ===============================================================================================================================
Global Const $BIF_BROWSEFILEJUNCTIONS = 0x00010000
Global Const $BIF_BROWSEFORCOMPUTER = 0x00001000
Global Const $BIF_BROWSEFORPRINTER = 0x00002000
Global Const $BIF_BROWSEINCLUDEFILES = 0x00004000
Global Const $BIF_BROWSEINCLUDEURLS = 0x00000080
Global Const $BIF_DONTGOBELOWDOMAIN = 0x00000002
Global Const $BIF_EDITBOX = 0x00000010
Global Const $BIF_NEWDIALOGSTYLE = 0x00000040
Global Const $BIF_NONEWFOLDERBUTTON = 0x00000200
Global Const $BIF_NOTRANSLATETARGETS = 0x00000400
Global Const $BIF_RETURNFSANCESTORS = 0x00000008
Global Const $BIF_RETURNONLYFSDIRS = 0x00000001
Global Const $BIF_SHAREABLE = 0x00008000
Global Const $BIF_STATUSTEXT = 0x00000004
Global Const $BIF_USENEWUI = BitOR($BIF_EDITBOX, $BIF_NEWDIALOGSTYLE)
Global Const $BIF_UAHINT = 0x00000100
Global Const $BIF_VALIDATE = 0x00000020
Global Const $BFFM_INITIALIZED = 1
Global Const $BFFM_IUNKNOWN = 5
Global Const $BFFM_SELCHANGED = 2
Global Const $BFFM_VALIDATEFAILED = 4
Global Const $BFFM_SETSTATUSTEXTA = $WM_USER + 100
Global Const $BFFM_ENABLEOK = $WM_USER + 101
Global Const $BFFM_SETSELECTIONA = $WM_USER + 102
Global Const $BFFM_SETSELECTIONW = $WM_USER + 103
Global Const $BFFM_SETSTATUSTEXTW = $WM_USER + 104
Global Const $BFFM_SETOKTEXT = $WM_USER + 105
Global Const $BFFM_SETEXPANDED = $WM_USER + 106
; ===============================================================================================================================
; _WinAPI_CalculatePopupWindowPosition()
; ===============================================================================================================================
;Global Const $TPM_CENTERALIGN = 0x00000004
;Global Const $TPM_LEFTALIGN = 0x00000000
;Global Const $TPM_RIGHTALIGN = 0x00000008
;Global Const $TPM_BOTTOMALIGN = 0x00000020
;Global Const $TPM_TOPALIGN = 0x00000000
;Global Const $TPM_VCENTERALIGN = 0x00000010
;Global Const $TPM_HORIZONTAL = 0x00000000
;Global Const $TPM_VERTICAL = 0x00000040
Global Const $TPM_WORKAREA = 0x00010000
; ===============================================================================================================================
; _WinAPI_CascadeWindows(), _WinAPI_TileWindows()
; ===============================================================================================================================
Global Const $MDITILE_HORIZONTAL = 0x01
Global Const $MDITILE_SKIPDISABLED = 0x02
Global Const $MDITILE_VERTICAL = 0x00
Global Const $MDITILE_ZORDER = 0x04
; ===============================================================================================================================
; _WinAPI_ChangeWindowMessageFilterEx()
; ===============================================================================================================================
Global Const $MSGFLT_ALLOW = 1
Global Const $MSGFLT_DISALLOW = 2
Global Const $MSGFLT_RESET = 0
Global Const $MSGFLTINFO_ALLOWED_HIGHER = 3
Global Const $MSGFLTINFO_ALREADYALLOWED_FORWND = 1
Global Const $MSGFLTINFO_ALREADYDISALLOWED_FORWND = 2
Global Const $MSGFLTINFO_NONE = 0
; ===============================================================================================================================
; _WinAPI_ChildWindowFromPointEx()
; ===============================================================================================================================
Global Const $CWP_ALL = 0x00
Global Const $CWP_SKIPINVISIBLE = 0x01
Global Const $CWP_SKIPDISABLED = 0x02
Global Const $CWP_SKIPTRANSPARENT = 0x04