-
Notifications
You must be signed in to change notification settings - Fork 6
/
2023-02-20_URSA_AutoIt_Decompiled
7765 lines (7764 loc) · 384 KB
/
2023-02-20_URSA_AutoIt_Decompiled
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
Global Const $inet_localcache = 0x0
Global Const $inet_forcereload = 0x1
Global Const $inet_ignoressl = 0x2
Global Const $inet_asciitransfer = 0x4
Global Const $inet_binarytransfer = 0x8
Global Const $inet_forcebypass = 0x10
Global Const $inet_downloadwait = 0x0
Global Const $inet_downloadbackground = 0x1
Global Const $inet_downloadread = 0x0
Global Const $inet_downloadsize = 0x1
Global Const $inet_downloadcomplete = 0x2
Global Const $inet_downloadsuccess = 0x3
Global Const $inet_downloaderror = 0x4
Global Const $inet_downloadextended = 0x5
Global Const $mb_ok = 0x0
Global Const $mb_okcancel = 0x1
Global Const $mb_abortretryignore = 0x2
Global Const $mb_yesnocancel = 0x3
Global Const $mb_yesno = 0x4
Global Const $mb_retrycancel = 0x5
Global Const $mb_canceltrycontinue = 0x6
Global Const $mb_help = 0x4000
Global Const $mb_iconnone = 0x0
Global Const $mb_iconstop = 0x10
Global Const $mb_iconerror = 0x10
Global Const $mb_iconhand = 0x10
Global Const $mb_iconquestion = 0x20
Global Const $mb_iconexclamation = 0x30
Global Const $mb_iconwarning = 0x30
Global Const $mb_iconinformation = 0x40
Global Const $mb_iconasterisk = 0x40
Global Const $mb_usericon = 0x80
Global Const $mb_defbutton1 = 0x0
Global Const $mb_defbutton2 = 0x100
Global Const $mb_defbutton3 = 0x200
Global Const $mb_defbutton4 = 0x300
Global Const $mb_applmodal = 0x0
Global Const $mb_systemmodal = 0x1000
Global Const $mb_taskmodal = 0x2000
Global Const $mb_default_desktop_only = 0x20000
Global Const $mb_right = 0x80000
Global Const $mb_rtlreading = 0x100000
Global Const $mb_setforeground = 0x10000
Global Const $mb_topmost = 0x40000
Global Const $mb_service_notification = 0x200000
Global Const $mb_rightjustified = $mb_right
Global Const $idtimeout = +0xffffffff
Global Const $idok = 0x1
Global Const $idcancel = 0x2
Global Const $idabort = 0x3
Global Const $idretry = 0x4
Global Const $idignore = 0x5
Global Const $idyes = 0x6
Global Const $idno = 0x7
Global Const $idclose = 0x8
Global Const $idhelp = 0x9
Global Const $idtryagain = 0xa
Global Const $idcontinue = 0xb
Global Const $backup_alternate_data = 0x4
Global Const $backup_data = 0x1
Global Const $backup_ea_data = 0x2
Global Const $backup_link = 0x5
Global Const $backup_object_id = 0x7
Global Const $backup_property_data = 0x6
Global Const $backup_reparse_data = 0x8
Global Const $backup_security_data = 0x3
Global Const $backup_sparse_block = 0x9
Global Const $backup_txfs_data = 0xa
Global Const $copy_file_allow_decrypted_destination = 0x8
Global Const $copy_file_copy_symlink = 0x800
Global Const $copy_file_fail_if_exists = 0x1
Global Const $copy_file_no_buffering = 0x1000
Global Const $copy_file_open_source_for_write = 0x4
Global Const $copy_file_restartable = 0x2
Global Const $move_file_copy_allowed = 0x2
Global Const $move_file_create_hardlink = 0x10
Global Const $move_file_delay_until_reboot = 0x4
Global Const $move_file_fail_if_not_trackable = 0x20
Global Const $move_file_replace_existing = 0x1
Global Const $move_file_write_through = 0x8
Global Const $progress_continue = 0x0
Global Const $progress_cancel = 0x1
Global Const $progress_stop = 0x2
Global Const $progress_quiet = 0x3
Global Const $file_append_data = 0x4
Global Const $file_delete_child = 0x40
Global Const $file_execute = 0x20
Global Const $file_read_attributes = 0x80
Global Const $file_read_data = 0x1
Global Const $file_read_ea = 0x8
Global Const $file_write_attributes = 0x100
Global Const $file_write_data = 0x2
Global Const $file_write_ea = 0x10
Global Const $file_add_file = $file_write_data
Global Const $file_add_subdirectory = $file_append_data
Global Const $file_create_pipe_instance = $file_append_data
Global Const $file_list_directory = $file_read_data
Global Const $file_traverse = $file_execute
Global Const $file_all_access = 0x1f01ff
Global Const $file_flag_backup_semantics = 0x2000000
Global Const $file_flag_delete_on_close = 0x4000000
Global Const $file_flag_no_buffering = 0x20000000
Global Const $file_flag_open_no_recall = 0x100000
Global Const $file_flag_open_reparse_point = 0x200000
Global Const $file_flag_overlapped = 0x40000000
Global Const $file_flag_posix_semantics = 0x100000
Global Const $file_flag_random_access = 0x10000000
Global Const $file_flag_sequential_scan = 0x8000000
Global Const $file_flag_write_through = 0x80000000
Global Const $security_anonymous = 0x0
Global Const $security_context_tracking = 0x40000
Global Const $security_delegation = 0x30000
Global Const $security_effective_only = 0x80000
Global Const $security_identification = 0x10000
Global Const $security_impersonation = 0x20000
Global Const $sec_commit = 0x8000000
Global Const $sec_image = 0x1000000
Global Const $sec_large_pages = 0x80000000
Global Const $sec_nocache = 0x10000000
Global Const $sec_reserve = 0x4000000
Global Const $sec_writecombine = 0x40000000
Global Const $section_extend_size = 0x10
Global Const $section_map_execute = 0x8
Global Const $section_map_read = 0x4
Global Const $section_map_write = 0x2
Global Const $section_query = 0x1
Global Const $section_all_access = 0x1f001f
Global Const $file_map_copy = 0x1
Global Const $file_map_execute = 0x20
Global Const $file_map_read = 0x4
Global Const $file_map_write = 0x2
Global Const $file_map_all_access = $section_all_access
Global Const $ddd_exact_match_on_remove = 0x4
Global Const $ddd_no_broadcast_system = 0x8
Global Const $ddd_raw_target_path = 0x1
Global Const $ddd_remove_definition = 0x2
Global Const $fsctl_allow_extended_dasd_io = 0x90083
Global Const $fsctl_create_or_get_object_id = 0x900c0
Global Const $fsctl_create_usn_journal = 0x900e7
Global Const $fsctl_delete_object_id = 0x900a0
Global Const $fsctl_delete_reparse_point = 0x900ac
Global Const $fsctl_delete_usn_journal = 0x900f8
Global Const $fsctl_dismount_volume = 0x90020
Global Const $fsctl_dump_property_data = 0x90097
Global Const $fsctl_enable_upgrade = 0x980d0
Global Const $fsctl_encryption_fsctl_io = 0x900db
Global Const $fsctl_enum_usn_data = 0x900b3
Global Const $fsctl_extend_volume = 0x900f0
Global Const $fsctl_filesystem_get_statistics = 0x90060
Global Const $fsctl_find_files_by_sid = 0x9008f
Global Const $fsctl_get_compression = 0x9003c
Global Const $fsctl_get_ntfs_file_record = 0x90068
Global Const $fsctl_get_ntfs_volume_data = 0x90064
Global Const $fsctl_get_object_id = 0x9009c
Global Const $fsctl_get_reparse_point = 0x900a8
Global Const $fsctl_get_retrieval_pointers = 0x90073
Global Const $fsctl_get_volume_bitmap = 0x9006f
Global Const $fsctl_hsm_data = 0x9c113
Global Const $fsctl_hsm_msg = 0x9c108
Global Const $fsctl_invalidate_volumes = 0x90054
Global Const $fsctl_is_pathname_valid = 0x9002c
Global Const $fsctl_is_volume_dirty = 0x90078
Global Const $fsctl_is_volume_mounted = 0x90028
Global Const $fsctl_lock_volume = 0x90018
Global Const $fsctl_mark_as_system_hive = 0x9004f
Global Const $fsctl_mark_handle = 0x900fc
Global Const $fsctl_mark_volume_dirty = 0x90030
Global Const $fsctl_move_file = 0x90074
Global Const $fsctl_opbatch_ack_close_pending = 0x90010
Global Const $fsctl_oplock_break_ack_no_2 = 0x90050
Global Const $fsctl_oplock_break_acknowledge = 0x9000c
Global Const $fsctl_oplock_break_notify = 0x90014
Global Const $fsctl_query_allocated_ranges = 0x940cf
Global Const $fsctl_query_fat_bpb = 0x90058
Global Const $fsctl_query_retrieval_pointers = 0x9003b
Global Const $fsctl_query_usn_journal = 0x900f4
Global Const $fsctl_read_file_usn_data = 0x900eb
Global Const $fsctl_read_property_data = 0x90087
Global Const $fsctl_read_raw_encrypted = 0x900e3
Global Const $fsctl_read_usn_journal = 0x900bb
Global Const $fsctl_recall_file = 0x90117
Global Const $fsctl_request_batch_oplock = 0x90008
Global Const $fsctl_request_filter_oplock = 0x9005c
Global Const $fsctl_request_oplock_level_1 = 0x90000
Global Const $fsctl_request_oplock_level_2 = 0x90004
Global Const $fsctl_security_id_check = 0x940b7
Global Const $fsctl_set_compression = 0x9c040
Global Const $fsctl_set_encryption = 0x900d7
Global Const $fsctl_set_object_id = 0x90098
Global Const $fsctl_set_object_id_extended = 0x900bc
Global Const $fsctl_set_reparse_point = 0x900a4
Global Const $fsctl_set_sparse = 0x900c4
Global Const $fsctl_set_zero_data = 0x980c8
Global Const $fsctl_sis_copyfile = 0x90100
Global Const $fsctl_sis_link_files = 0x9c104
Global Const $fsctl_unlock_volume = 0x9001c
Global Const $fsctl_write_property_data = 0x9008b
Global Const $fsctl_write_raw_encrypted = 0x900df
Global Const $fsctl_write_usn_close_record = 0x900ef
Global Const $ioctl_aacs_end_session = 0x3350cc
Global Const $ioctl_aacs_generate_binding_nonce = 0x33d0f0
Global Const $ioctl_aacs_get_certificate = 0x3350d4
Global Const $ioctl_aacs_get_challenge_key = 0x3350d8
Global Const $ioctl_aacs_read_binding_nonce = 0x3350ec
Global Const $ioctl_aacs_read_media_id = 0x3350e8
Global Const $ioctl_aacs_read_media_key_block = 0x3350c4
Global Const $ioctl_aacs_read_media_key_block_size = 0x3350c0
Global Const $ioctl_aacs_read_serial_number = 0x3350e4
Global Const $ioctl_aacs_read_volume_id = 0x3350e0
Global Const $ioctl_aacs_send_certificate = 0x3350d0
Global Const $ioctl_aacs_send_challenge_key = 0x3350dc
Global Const $ioctl_aacs_start_session = 0x3350c8
Global Const $ioctl_ata_pass_through = 0x4d02c
Global Const $ioctl_ata_pass_through_direct = 0x4d030
Global Const $ioctl_cdrom_check_verify = 0x24800
Global Const $ioctl_cdrom_disk_type = 0x20040
Global Const $ioctl_cdrom_eject_media = 0x24808
Global Const $ioctl_cdrom_find_new_devices = 0x24818
Global Const $ioctl_cdrom_get_configuration = 0x24058
Global Const $ioctl_cdrom_get_control = 0x24034
Global Const $ioctl_cdrom_get_drive_geometry = 0x2404c
Global Const $ioctl_cdrom_get_drive_geometry_ex = 0x24050
Global Const $ioctl_cdrom_get_last_session = 0x24038
Global Const $ioctl_cdrom_get_volume = 0x24014
Global Const $ioctl_cdrom_load_media = 0x2480c
Global Const $ioctl_cdrom_media_removal = 0x24804
Global Const $ioctl_cdrom_pause_audio = 0x2400c
Global Const $ioctl_cdrom_play_audio_msf = 0x24018
Global Const $ioctl_cdrom_raw_read = 0x2403e
Global Const $ioctl_cdrom_read_q_channel = 0x2402c
Global Const $ioctl_cdrom_read_toc = 0x24000
Global Const $ioctl_cdrom_read_toc_ex = 0x24054
Global Const $ioctl_cdrom_release = 0x24814
Global Const $ioctl_cdrom_reserve = 0x24810
Global Const $ioctl_cdrom_resume_audio = 0x24010
Global Const $ioctl_cdrom_seek_audio_msf = 0x24004
Global Const $ioctl_cdrom_set_volume = 0x24028
Global Const $ioctl_cdrom_stop_audio = 0x24008
Global Const $ioctl_cdrom_unload_driver = 0x25008
Global Const $ioctl_disk_check_verify = 0x74800
Global Const $ioctl_disk_controller_number = 0x70044
Global Const $ioctl_disk_create_disk = 0x7c058
Global Const $ioctl_disk_delete_drive_layout = 0x7c100
Global Const $ioctl_disk_eject_media = 0x74808
Global Const $ioctl_disk_find_new_devices = 0x74818
Global Const $ioctl_disk_format_tracks = 0x7c018
Global Const $ioctl_disk_format_tracks_ex = 0x7c02c
Global Const $ioctl_disk_get_cache_information = 0x740d4
Global Const $ioctl_disk_get_drive_geometry = 0x70000
Global Const $ioctl_disk_get_drive_geometry_ex = 0x700a0
Global Const $ioctl_disk_get_drive_layout = 0x7400c
Global Const $ioctl_disk_get_drive_layout_ex = 0x70050
Global Const $ioctl_disk_get_length_info = 0x7405c
Global Const $ioctl_disk_get_media_types = 0x70c00
Global Const $ioctl_disk_get_partition_info = 0x74004
Global Const $ioctl_disk_get_partition_info_ex = 0x70048
Global Const $ioctl_disk_get_write_cache_state = 0x740dc
Global Const $ioctl_disk_grow_partition = 0x7c0d0
Global Const $ioctl_disk_histogram_data = 0x70034
Global Const $ioctl_disk_histogram_reset = 0x70038
Global Const $ioctl_disk_histogram_structure = 0x70030
Global Const $ioctl_disk_internal_clear_verify = 0x70407
Global Const $ioctl_disk_internal_set_notify = 0x70408
Global Const $ioctl_disk_internal_set_verify = 0x70403
Global Const $ioctl_disk_is_writable = 0x70024
Global Const $ioctl_disk_load_media = 0x7480c
Global Const $ioctl_disk_logging = 0x70028
Global Const $ioctl_disk_media_removal = 0x74804
Global Const $ioctl_disk_performance = 0x70020
Global Const $ioctl_disk_performance_off = 0x70060
Global Const $ioctl_disk_reassign_blocks = 0x7c01c
Global Const $ioctl_disk_release = 0x74814
Global Const $ioctl_disk_request_data = 0x70040
Global Const $ioctl_disk_request_structure = 0x7003c
Global Const $ioctl_disk_reserve = 0x74810
Global Const $ioctl_disk_set_cache_information = 0x7c0d8
Global Const $ioctl_disk_set_drive_layout = 0x7c010
Global Const $ioctl_disk_set_drive_layout_ex = 0x7c054
Global Const $ioctl_disk_set_partition_info = 0x7c008
Global Const $ioctl_disk_set_partition_info_ex = 0x7c04c
Global Const $ioctl_disk_update_drive_size = 0x7c0c8
Global Const $ioctl_disk_update_properties = 0x70140
Global Const $ioctl_disk_verify = 0x70014
Global Const $ioctl_dvd_end_session = 0x33500c
Global Const $ioctl_dvd_get_region = 0x335014
Global Const $ioctl_dvd_read_key = 0x335004
Global Const $ioctl_dvd_read_structure = 0x335140
Global Const $ioctl_dvd_send_key = 0x335008
Global Const $ioctl_dvd_send_key2 = 0x33d018
Global Const $ioctl_dvd_set_read_ahead = 0x335010
Global Const $ioctl_dvd_start_session = 0x335000
Global Const $ioctl_mountdev_link_created = 0x4d0010
Global Const $ioctl_mountdev_link_deleted = 0x4d0014
Global Const $ioctl_mountdev_query_stable_guid = 0x4d0018
Global Const $ioctl_mountdev_query_suggested_link_name = 0x4d000c
Global Const $ioctl_mountdev_query_unique_id = 0x4d0000
Global Const $ioctl_mountdev_unique_id_change_notify = 0x4d0004
Global Const $ioctl_mountmgr_auto_dl_assignments = 0x6dc014
Global Const $ioctl_mountmgr_change_notify = 0x6d4020
Global Const $ioctl_mountmgr_check_unprocessed_volumes = 0x6d4028
Global Const $ioctl_mountmgr_create_point = 0x6dc000
Global Const $ioctl_mountmgr_delete_points = 0x6dc004
Global Const $ioctl_mountmgr_delete_points_dbonly = 0x6dc00c
Global Const $ioctl_mountmgr_keep_links_when_offline = 0x6dc024
Global Const $ioctl_mountmgr_next_drive_letter = 0x6dc010
Global Const $ioctl_mountmgr_query_dos_volume_path = 0x6d0030
Global Const $ioctl_mountmgr_query_dos_volume_paths = 0x6d0034
Global Const $ioctl_mountmgr_query_points = 0x6d0008
Global Const $ioctl_mountmgr_volume_arrival_notification = 0x6d402c
Global Const $ioctl_mountmgr_volume_mount_point_created = 0x6dc018
Global Const $ioctl_mountmgr_volume_mount_point_deleted = 0x6dc01c
Global Const $ioctl_scsi_get_inquiry_data = 0x4100c
Global Const $ioctl_scsi_get_capabilities = 0x41010
Global Const $ioctl_scsi_get_address = 0x41018
Global Const $ioctl_scsi_miniport = 0x4d008
Global Const $ioctl_scsi_pass_through = 0x4d004
Global Const $ioctl_scsi_pass_through_direct = 0x4d014
Global Const $ioctl_scsi_rescan_bus = 0x4101c
Global Const $ioctl_storage_break_reservation = 0x2d5014
Global Const $ioctl_storage_check_verify = 0x2d4800
Global Const $ioctl_storage_check_verify2 = 0x2d0800
Global Const $ioctl_storage_eject_media = 0x2d4808
Global Const $ioctl_storage_ejection_control = 0x2d0940
Global Const $ioctl_storage_find_new_devices = 0x2d4818
Global Const $ioctl_storage_get_device_number = 0x2d1080
Global Const $ioctl_storage_get_hotplug_info = 0x2d0c14
Global Const $ioctl_storage_get_media_serial_number = 0x2d0c10
Global Const $ioctl_storage_get_media_types = 0x2d0c00
Global Const $ioctl_storage_get_media_types_ex = 0x2d0c04
Global Const $ioctl_storage_load_media = 0x2d480c
Global Const $ioctl_storage_load_media2 = 0x2d080c
Global Const $ioctl_storage_manage_data_set_attributes = 0x2d9404
Global Const $ioctl_storage_mcn_control = 0x2d0944
Global Const $ioctl_storage_media_removal = 0x2d4804
Global Const $ioctl_storage_persistent_reserve_in = 0x2d5018
Global Const $ioctl_storage_persistent_reserve_out = 0x2d501c
Global Const $ioctl_storage_predict_failure = 0x2d1100
Global Const $ioctl_storage_query_property = 0x2d1400
Global Const $ioctl_storage_release = 0x2d4814
Global Const $ioctl_storage_reserve = 0x2d4810
Global Const $ioctl_storage_reset_bus = 0x2d5000
Global Const $ioctl_storage_reset_device = 0x2d5004
Global Const $ioctl_storage_set_hotplug_info = 0x2dcc18
Global Const $ioctl_storage_set_read_ahead = 0x2d4400
Global Const $ioctl_volume_get_gpt_attributes = 0x560038
Global Const $ioctl_volume_get_volume_disk_extents = 0x560000
Global Const $ioctl_volume_is_clustered = 0x560030
Global Const $ioctl_volume_is_io_capable = 0x560014
Global Const $ioctl_volume_is_offline = 0x560010
Global Const $ioctl_volume_is_partition = 0x560028
Global Const $ioctl_volume_logical_to_physical = 0x560020
Global Const $ioctl_volume_offline = 0x56c00c
Global Const $ioctl_volume_online = 0x56c008
Global Const $ioctl_volume_physical_to_logical = 0x560024
Global Const $ioctl_volume_query_failover_set = 0x560018
Global Const $ioctl_volume_query_volume_number = 0x56001c
Global Const $ioctl_volume_read_plex = 0x56402e
Global Const $ioctl_volume_set_gpt_attributes = 0x560034
Global Const $ioctl_volume_supports_online_offline = 0x560004
Global Const $smart_get_version = 0x74080
Global Const $smart_rcv_drive_data = 0x7c088
Global Const $smart_send_drive_command = 0x7c084
Global Const $file_encryptable = 0x0
Global Const $file_is_encrypted = 0x1
Global Const $file_read_only = 0x8
Global Const $file_root_dir = 0x3
Global Const $file_system_attr = 0x2
Global Const $file_system_dir = 0x4
Global Const $file_system_not_support = 0x6
Global Const $file_unknown = 0x5
Global Const $file_user_disallowed = 0x7
Global Const $scs_32bit_binary = 0x0
Global Const $scs_64bit_binary = 0x6
Global Const $scs_dos_binary = 0x1
Global Const $scs_os216_binary = 0x5
Global Const $scs_pif_binary = 0x3
Global Const $scs_posix_binary = 0x4
Global Const $scs_wow_binary = 0x2
Global Const $drive_bus_type_unknown = 0x0
Global Const $drive_bus_type_scsi = 0x1
Global Const $drive_bus_type_atapi = 0x2
Global Const $drive_bus_type_ata = 0x3
Global Const $drive_bus_type_1394 = 0x4
Global Const $drive_bus_type_ssa = 0x5
Global Const $drive_bus_type_fibre = 0x6
Global Const $drive_bus_type_usb = 0x7
Global Const $drive_bus_type_raid = 0x8
Global Const $drive_bus_type_iscsi = 0x9
Global Const $drive_bus_type_sas = 0xa
Global Const $drive_bus_type_sata = 0xb
Global Const $drive_bus_type_sd = 0xc
Global Const $drive_bus_type_mmc = 0xd
Global Const $drive_unknown = 0x0
Global Const $drive_no_root_dir = 0x1
Global Const $drive_removable = 0x2
Global Const $drive_fixed = 0x3
Global Const $drive_remote = 0x4
Global Const $drive_cdrom = 0x5
Global Const $drive_ramdisk = 0x6
Global Const $file_type_char = 0x2
Global Const $file_type_disk = 0x1
Global Const $file_type_pipe = 0x3
Global Const $file_type_remote = 0x8000
Global Const $file_type_unknown = 0x0
Global Const $file_name_normalized = 0x0
Global Const $file_name_opened = 0x8
Global Const $volume_name_dos = 0x0
Global Const $volume_name_guid = 0x1
Global Const $volume_name_none = 0x4
Global Const $volume_name_nt = 0x2
Global Const $image_file_machine_unknown = 0x0
Global Const $image_file_machine_am33 = 0x1d3
Global Const $image_file_machine_amd64 = 0x8664
Global Const $image_file_machine_arm = 0x1c0
Global Const $image_file_machine_ebc = 0xebc
Global Const $image_file_machine_i386 = 0x14c
Global Const $image_file_machine_ia64 = 0x200
Global Const $image_file_machine_m32r = 0x9041
Global Const $image_file_machine_mips16 = 0x266
Global Const $image_file_machine_mipsfpu = 0x366
Global Const $image_file_machine_mipsfpu16 = 0x466
Global Const $image_file_machine_powerpc = 0x1f0
Global Const $image_file_machine_powerpcfp = 0x1f1
Global Const $image_file_machine_r4000 = 0x166
Global Const $image_file_machine_sh3 = 0x1a2
Global Const $image_file_machine_sh3dsp = 0x1a3
Global Const $image_file_machine_sh4 = 0x1a6
Global Const $image_file_machine_sh5 = 0x1a8
Global Const $image_file_machine_thumb = 0x1c2
Global Const $image_file_machine_wcemipsv2 = 0x169
Global Const $file_case_preserved_names = 0x2
Global Const $file_case_sensitive_search = 0x1
Global Const $file_file_compression = 0x10
Global Const $file_named_streams = 0x40000
Global Const $file_persistent_acls = 0x8
Global Const $file_read_only_volume = 0x80000
Global Const $file_sequential_write_once = 0x100000
Global Const $file_supports_encryption = 0x20000
Global Const $file_supports_extended_attributes = 0x800000
Global Const $file_supports_hard_links = 0x400000
Global Const $file_supports_object_ids = 0x10000
Global Const $file_supports_open_by_file_id = 0x1000000
Global Const $file_supports_reparse_points = 0x80
Global Const $file_supports_sparse_files = 0x40
Global Const $file_supports_transactions = 0x200000
Global Const $file_supports_usn_journal = 0x2000000
Global Const $file_unicode_on_disk = 0x4
Global Const $file_volume_is_compressed = 0x8000
Global Const $file_volume_quotas = 0x20
Global Const $file_device_8042_port = 0x27
Global Const $file_device_acpi = 0x32
Global Const $file_device_battery = 0x29
Global Const $file_device_beep = 0x1
Global Const $file_device_bus_extender = 0x2a
Global Const $file_device_cd_rom = 0x2
Global Const $file_device_cd_rom_file_system = 0x3
Global Const $file_device_changer = 0x30
Global Const $file_device_controller = 0x4
Global Const $file_device_datalink = 0x5
Global Const $file_device_dfs = 0x6
Global Const $file_device_dfs_file_system = 0x35
Global Const $file_device_dfs_volume = 0x36
Global Const $file_device_disk = 0x7
Global Const $file_device_disk_file_system = 0x8
Global Const $file_device_dvd = 0x33
Global Const $file_device_file_system = 0x9
Global Const $file_device_fips = 0x3a
Global Const $file_device_fullscreen_video = 0x34
Global Const $file_device_inport_port = 0xa
Global Const $file_device_keyboard = 0xb
Global Const $file_device_ks = 0x2f
Global Const $file_device_ksec = 0x39
Global Const $file_device_mailslot = 0xc
Global Const $file_device_mass_storage = 0x2d
Global Const $file_device_midi_in = 0xd
Global Const $file_device_midi_out = 0xe
Global Const $file_device_modem = 0x2b
Global Const $file_device_mouse = 0xf
Global Const $file_device_multi_unc_provider = 0x10
Global Const $file_device_named_pipe = 0x11
Global Const $file_device_network = 0x12
Global Const $file_device_network_browser = 0x13
Global Const $file_device_network_file_system = 0x14
Global Const $file_device_network_redirector = 0x28
Global Const $file_device_null = 0x15
Global Const $file_device_parallel_port = 0x16
Global Const $file_device_physical_netcard = 0x17
Global Const $file_device_printer = 0x18
Global Const $file_device_scanner = 0x19
Global Const $file_device_screen = 0x1c
Global Const $file_device_serenum = 0x37
Global Const $file_device_serial_mouse_port = 0x1a
Global Const $file_device_serial_port = 0x1b
Global Const $file_device_smartcard = 0x31
Global Const $file_device_smb = 0x2e
Global Const $file_device_sound = 0x1d
Global Const $file_device_streams = 0x1e
Global Const $file_device_tape = 0x1f
Global Const $file_device_tape_file_system = 0x20
Global Const $file_device_termsrv = 0x38
Global Const $file_device_transport = 0x21
Global Const $file_device_unknown = 0x22
Global Const $file_device_vdm = 0x2c
Global Const $file_device_video = 0x23
Global Const $file_device_virtual_disk = 0x24
Global Const $file_device_wave_in = 0x25
Global Const $file_device_wave_out = 0x26
Global Const $file_any_access = 0x0
Global Const $file_special_access = $file_any_access
Global Const $file_read_access = 0x1
Global Const $file_write_access = 0x2
Global Const $method_buffered = 0x0
Global Const $method_in_direct = 0x1
Global Const $method_out_direct = 0x2
Global Const $method_neither = 0x3
Global Const $file_notify_change_file_name = 0x1
Global Const $file_notify_change_dir_name = 0x2
Global Const $file_notify_change_attributes = 0x4
Global Const $file_notify_change_size = 0x8
Global Const $file_notify_change_last_write = 0x10
Global Const $file_notify_change_last_access = 0x20
Global Const $file_notify_change_creation = 0x40
Global Const $file_notify_change_security = 0x100
Global Const $file_action_added = 0x1
Global Const $file_action_removed = 0x2
Global Const $file_action_modified = 0x3
Global Const $file_action_renamed_old_name = 0x4
Global Const $file_action_renamed_new_name = 0x5
Global Const $replacefile_write_through = 0x1
Global Const $replacefile_ignore_merge_errors = 0x2
Global Const $replacefile_ignore_acl_errors = 0x4
Global Const $base_search_path_enable_safe_searchmode = 0x1
Global Const $base_search_path_disable_safe_searchmode = 0x10000
Global Const $base_search_path_permanent = 0x8000
Global Const $fc_nooverwrite = 0x0
Global Const $fc_overwrite = 0x1
Global Const $fc_createpath = 0x8
Global Const $ft_modified = 0x0
Global Const $ft_created = 0x1
Global Const $ft_accessed = 0x2
Global Const $ft_array = 0x0
Global Const $ft_string = 0x1
Global Const $ft_msec = 0x2
Global Const $ft_utc = 0x4
Global Const $fsf_createbutton = 0x1
Global Const $fsf_newdialog = 0x2
Global Const $fsf_editcontrol = 0x4
Global Const $ft_nonrecursive = 0x0
Global Const $ft_recursive = 0x1
Global Const $fo_read = 0x0
Global Const $fo_append = 0x1
Global Const $fo_overwrite = 0x2
Global Const $fo_createpath = 0x8
Global Const $fo_binary = 0x10
Global Const $fo_unicode = 0x20
Global Const $fo_utf16_le = 0x20
Global Const $fo_utf16_be = 0x40
Global Const $fo_utf8 = 0x80
Global Const $fo_utf8_nobom = 0x100
Global Const $fo_ansi = 0x200
Global Const $fo_utf16_le_nobom = 0x400
Global Const $fo_utf16_be_nobom = 0x800
Global Const $fo_utf8_full = 0x4000
Global Const $fo_fullfile_detect = 0x4000
Global Const $eof = +0xffffffff
Global Const $fd_filemustexist = 0x1
Global Const $fd_pathmustexist = 0x2
Global Const $fd_multiselect = 0x4
Global Const $fd_promptcreatenew = 0x8
Global Const $fd_promptoverwrite = 0x10
Global Const $create_new = 0x1
Global Const $create_always = 0x2
Global Const $open_existing = 0x3
Global Const $open_always = 0x4
Global Const $truncate_existing = 0x5
Global Const $invalid_set_file_pointer = +0xffffffff
Global Const $file_begin = 0x0
Global Const $file_current = 0x1
Global Const $file_end = 0x2
Global Const $file_attribute_readonly = 0x1
Global Const $file_attribute_hidden = 0x2
Global Const $file_attribute_system = 0x4
Global Const $file_attribute_directory = 0x10
Global Const $file_attribute_archive = 0x20
Global Const $file_attribute_device = 0x40
Global Const $file_attribute_normal = 0x80
Global Const $file_attribute_temporary = 0x100
Global Const $file_attribute_sparse_file = 0x200
Global Const $file_attribute_reparse_point = 0x400
Global Const $file_attribute_compressed = 0x800
Global Const $file_attribute_offline = 0x1000
Global Const $file_attribute_not_content_indexed = 0x2000
Global Const $file_attribute_encrypted = 0x4000
Global Const $file_share_read = 0x1
Global Const $file_share_write = 0x2
Global Const $file_share_delete = 0x4
Global Const $file_share_readwrite = BitOR($file_share_read, $file_share_write)
Global Const $file_share_any = BitOR($file_share_read, $file_share_write, $file_share_delete)
Global Const $generic_all = 0x10000000
Global Const $generic_execute = 0x20000000
Global Const $generic_write = 0x40000000
Global Const $generic_read = 0x80000000
Global Const $generic_readwrite = BitOR($generic_read, $generic_write)
Global Const $file_encoding_utf16le = 0x20
Global Const $fe_entire_utf8 = 0x1
Global Const $fe_partialfirst_utf8 = 0x2
Global Const $fn_fullpath = 0x0
Global Const $fn_relativepath = 0x1
Global Const $fv_comments = "Comments"
Global Const $fv_companyname = "CompanyName"
Global Const $fv_filedescription = "FileDescription"
Global Const $fv_fileversion = "FileVersion"
Global Const $fv_internalname = "InternalName"
Global Const $fv_legalcopyright = "LegalCopyright"
Global Const $fv_legaltrademarks = "LegalTrademarks"
Global Const $fv_originalfilename = "OriginalFilename"
Global Const $fv_productname = "ProductName"
Global Const $fv_productversion = "ProductVersion"
Global Const $fv_privatebuild = "PrivateBuild"
Global Const $fv_specialbuild = "SpecialBuild"
Global Const $frta_nocount = 0x0
Global Const $frta_count = 0x1
Global Const $frta_intarrays = 0x2
Global Const $frta_entiresplit = 0x4
Global Const $flta_filesfolders = 0x0
Global Const $flta_files = 0x1
Global Const $flta_folders = 0x2
Global Const $fltar_filesfolders = 0x0
Global Const $fltar_files = 0x1
Global Const $fltar_folders = 0x2
Global Const $fltar_nohidden = 0x4
Global Const $fltar_nosystem = 0x8
Global Const $fltar_nolink = 0x10
Global Const $fltar_norecur = 0x0
Global Const $fltar_recur = 0x1
Global Const $fltar_nosort = 0x0
Global Const $fltar_sort = 0x1
Global Const $fltar_fastsort = 0x2
Global Const $fltar_nopath = 0x0
Global Const $fltar_relpath = 0x1
Global Const $fltar_fullpath = 0x2
Global Const $path_original = 0x0
Global Const $path_drive = 0x1
Global Const $path_directory = 0x2
Global Const $path_filename = 0x3
Global Const $path_extension = 0x4
Global Const $gmem_fixed = 0x0
Global Const $gmem_moveable = 0x2
Global Const $gmem_nocompact = 0x10
Global Const $gmem_nodiscard = 0x20
Global Const $gmem_zeroinit = 0x40
Global Const $gmem_modify = 0x80
Global Const $gmem_discardable = 0x100
Global Const $gmem_not_banked = 0x1000
Global Const $gmem_share = 0x2000
Global Const $gmem_ddeshare = 0x2000
Global Const $gmem_notify = 0x4000
Global Const $gmem_lower = 0x1000
Global Const $gmem_valid_flags = 0x7f72
Global Const $gmem_invalid_handle = 0x8000
Global Const $gptr = BitOR($gmem_fixed, $gmem_zeroinit)
Global Const $ghnd = BitOR($gmem_moveable, $gmem_zeroinit)
Global Const $mem_commit = 0x1000
Global Const $mem_reserve = 0x2000
Global Const $mem_top_down = 0x100000
Global Const $mem_shared = 0x8000000
Global Const $page_noaccess = 0x1
Global Const $page_readonly = 0x2
Global Const $page_readwrite = 0x4
Global Const $page_execute = 0x10
Global Const $page_execute_read = 0x20
Global Const $page_execute_readwrite = 0x40
Global Const $page_execute_writecopy = 0x80
Global Const $page_guard = 0x100
Global Const $page_nocache = 0x200
Global Const $page_writecombine = 0x400
Global Const $page_writecopy = 0x8
Global Const $mem_decommit = 0x4000
Global Const $mem_release = 0x8000
Global Enum $mem_load, $mem_totalphysram, $mem_availphysram, $mem_totalpagefile, $mem_availpagefile, $mem_totalvirtual, $mem_availvirtual
Global Const $str_nocasesense = 0x0
Global Const $str_casesense = 0x1
Global Const $str_nocasesensebasic = 0x2
Global Const $str_stripleading = 0x1
Global Const $str_striptrailing = 0x2
Global Const $str_stripspaces = 0x4
Global Const $str_stripall = 0x8
Global Const $str_chrsplit = 0x0
Global Const $str_entiresplit = 0x1
Global Const $str_nocount = 0x2
Global Const $str_regexpmatch = 0x0
Global Const $str_regexparraymatch = 0x1
Global Const $str_regexparrayfullmatch = 0x2
Global Const $str_regexparrayglobalmatch = 0x3
Global Const $str_regexparrayglobalfullmatch = 0x4
Global Const $str_endisstart = 0x0
Global Const $str_endnotstart = 0x1
Global Const $sb_ansi = 0x1
Global Const $sb_utf16le = 0x2
Global Const $sb_utf16be = 0x3
Global Const $sb_utf8 = 0x4
Global Const $se_utf16 = 0x0
Global Const $se_ansi = 0x1
Global Const $se_utf8 = 0x2
Global Const $str_utf16 = 0x0
Global Const $str_ucs2 = 0x1
Global Const $tagpoint = "struct;long X;long Y;endstruct"
Global Const $tagrect = "struct;long Left;long Top;long Right;long Bottom;endstruct"
Global Const $tagsize = "struct;long X;long Y;endstruct"
Global Const $tagmargins = "int cxLeftWidth;int cxRightWidth;int cyTopHeight;int cyBottomHeight"
Global Const $tagfiletime = "struct;dword Lo;dword Hi;endstruct"
Global Const $tagsystemtime = "struct;word Year;word Month;word Dow;word Day;word Hour;word Minute;word Second;word MSeconds;endstruct"
Global Const $tagtime_zone_information = "struct;long Bias;wchar StdName[32];word StdDate[8];long StdBias;wchar DayName[32];word DayDate[8];long DayBias;endstruct"
Global Const $tagnmhdr = "struct;hwnd hWndFrom;uint_ptr IDFrom;INT Code;endstruct"
Global Const $tagcomboboxexitem = "uint Mask;int_ptr Item;ptr Text;int TextMax;int Image;int SelectedImage;int OverlayImage;" & "int Indent;lparam Param"
Global Const $tagnmcbedragbegin = $tagnmhdr & ";int ItemID;wchar szText[260]"
Global Const $tagnmcbeendedit = $tagnmhdr & ";bool fChanged;int NewSelection;wchar szText[260];int Why"
Global Const $tagnmcomboboxex = $tagnmhdr & ";uint Mask;int_ptr Item;ptr Text;int TextMax;int Image;" & "int SelectedImage;int OverlayImage;int Indent;lparam Param"
Global Const $tagdtprange = "word MinYear;word MinMonth;word MinDOW;word MinDay;word MinHour;word MinMinute;" & "word MinSecond;word MinMSecond;word MaxYear;word MaxMonth;word MaxDOW;word MaxDay;word MaxHour;" & "word MaxMinute;word MaxSecond;word MaxMSecond;bool MinValid;bool MaxValid"
Global Const $tagnmdatetimechange = $tagnmhdr & ";dword Flag;" & $tagsystemtime
Global Const $tagnmdatetimeformat = $tagnmhdr & ";ptr Format;" & $tagsystemtime & ";ptr pDisplay;wchar Display[64]"
Global Const $tagnmdatetimeformatquery = $tagnmhdr & ";ptr Format;struct;long SizeX;long SizeY;endstruct"
Global Const $tagnmdatetimekeydown = $tagnmhdr & ";int VirtKey;ptr Format;" & $tagsystemtime
Global Const $tagnmdatetimestring = $tagnmhdr & ";ptr UserString;" & $tagsystemtime & ";dword Flags"
Global Const $tageventlogrecord = "dword Length;dword Reserved;dword RecordNumber;dword TimeGenerated;dword TimeWritten;dword EventID;" & "word EventType;word NumStrings;word EventCategory;word ReservedFlags;dword ClosingRecordNumber;dword StringOffset;" & "dword UserSidLength;dword UserSidOffset;dword DataLength;dword DataOffset"
Global Const $taggdip_effectparams_blur = "float Radius; bool ExpandEdge"
Global Const $taggdip_effectparams_brightnesscontrast = "int BrightnessLevel; int ContrastLevel"
Global Const $taggdip_effectparams_colorbalance = "int CyanRed; int MagentaGreen; int YellowBlue"
Global Const $taggdip_effectparams_colorcurve = "int Adjustment; int Channel; int AdjustValue"
Global Const $taggdip_effectparams_colorlut = "byte LutB[256]; byte LutG[256]; byte LutR[256]; byte LutA[256]"
Global Const $taggdip_effectparams_huesaturationlightness = "int HueLevel; int SaturationLevel; int LightnessLevel"
Global Const $taggdip_effectparams_levels = "int Highlight; int Midtone; int Shadow"
Global Const $taggdip_effectparams_redeyecorrection = "uint NumberOfAreas; ptr Areas"
Global Const $taggdip_effectparams_sharpen = "float Radius; float Amount"
Global Const $taggdip_effectparams_tint = "int Hue; int Amount"
Global Const $taggdipbitmapdata = "uint Width;uint Height;int Stride;int Format;ptr Scan0;uint_ptr Reserved"
Global Const $taggdipcolormatrix = "float m[25]"
Global Const $taggdipencoderparam = "struct;byte GUID[16];ulong NumberOfValues;ulong Type;ptr Values;endstruct"
Global Const $taggdipencoderparams = "uint Count;" & $taggdipencoderparam
Global Const $taggdiprectf = "struct;float X;float Y;float Width;float Height;endstruct"
Global Const $taggdipstartupinput = "uint Version;ptr Callback;bool NoThread;bool NoCodecs"
Global Const $taggdipstartupoutput = "ptr HookProc;ptr UnhookProc"
Global Const $taggdipimagecodecinfo = "byte CLSID[16];byte FormatID[16];ptr CodecName;ptr DllName;ptr FormatDesc;ptr FileExt;" & "ptr MimeType;dword Flags;dword Version;dword SigCount;dword SigSize;ptr SigPattern;ptr SigMask"
Global Const $taggdippencoderparams = "uint Count;byte Params[1]"
Global Const $taghditem = "uint Mask;int XY;ptr Text;handle hBMP;int TextMax;int Fmt;lparam Param;int Image;int Order;uint Type;ptr pFilter;uint State"
Global Const $tagnmhddispinfo = $tagnmhdr & ";int Item;uint Mask;ptr Text;int TextMax;int Image;lparam lParam"
Global Const $tagnmhdfilterbtnclick = $tagnmhdr & ";int Item;" & $tagrect
Global Const $tagnmheader = $tagnmhdr & ";int Item;int Button;ptr pItem"
Global Const $taggetipaddress = "byte Field4;byte Field3;byte Field2;byte Field1"
Global Const $tagnmipaddress = $tagnmhdr & ";int Field;int Value"
Global Const $taglvfindinfo = "struct;uint Flags;ptr Text;lparam Param;" & $tagpoint & ";uint Direction;endstruct"
Global Const $taglvhittestinfo = $tagpoint & ";uint Flags;int Item;int SubItem;int iGroup"
Global Const $taglvitem = "struct;uint Mask;int Item;int SubItem;uint State;uint StateMask;ptr Text;int TextMax;int Image;lparam Param;" & "int Indent;int GroupID;uint Columns;ptr pColumns;ptr piColFmt;int iGroup;endstruct"
Global Const $tagnmlistview = $tagnmhdr & ";int Item;int SubItem;uint NewState;uint OldState;uint Changed;" & "struct;long ActionX;long ActionY;endstruct;lparam Param"
Global Const $tagnmlvcustomdraw = "struct;" & $tagnmhdr & ";dword dwDrawStage;handle hdc;" & $tagrect & ";dword_ptr dwItemSpec;uint uItemState;lparam lItemlParam;endstruct" & ";dword clrText;dword clrTextBk;int iSubItem;dword dwItemType;dword clrFace;int iIconEffect;" & "int iIconPhase;int iPartID;int iStateID;struct;long TextLeft;long TextTop;long TextRight;long TextBottom;endstruct;uint uAlign"
Global Const $tagnmlvdispinfo = $tagnmhdr & ";" & $taglvitem
Global Const $tagnmlvfinditem = $tagnmhdr & ";int Start;" & $taglvfindinfo
Global Const $tagnmlvgetinfotip = $tagnmhdr & ";dword Flags;ptr Text;int TextMax;int Item;int SubItem;lparam lParam"
Global Const $tagnmitemactivate = $tagnmhdr & ";int Index;int SubItem;uint NewState;uint OldState;uint Changed;" & $tagpoint & ";lparam lParam;uint KeyFlags"
Global Const $tagnmlvkeydown = $tagnmhdr & ";align 2;word VKey;uint Flags"
Global Const $tagnmlvscroll = $tagnmhdr & ";int DX;int DY"
Global Const $tagmchittestinfo = "uint Size;" & $tagpoint & ";uint Hit;" & $tagsystemtime & ";" & $tagrect & ";int iOffset;int iRow;int iCol"
Global Const $tagmcmonthrange = "word MinYear;word MinMonth;word MinDOW;word MinDay;word MinHour;word MinMinute;word MinSecond;" & "word MinMSeconds;word MaxYear;word MaxMonth;word MaxDOW;word MaxDay;word MaxHour;word MaxMinute;word MaxSecond;" & "word MaxMSeconds;short Span"
Global Const $tagmcrange = "word MinYear;word MinMonth;word MinDOW;word MinDay;word MinHour;word MinMinute;word MinSecond;" & "word MinMSeconds;word MaxYear;word MaxMonth;word MaxDOW;word MaxDay;word MaxHour;word MaxMinute;word MaxSecond;" & "word MaxMSeconds;short MinSet;short MaxSet"
Global Const $tagmcselrange = "word MinYear;word MinMonth;word MinDOW;word MinDay;word MinHour;word MinMinute;word MinSecond;" & "word MinMSeconds;word MaxYear;word MaxMonth;word MaxDOW;word MaxDay;word MaxHour;word MaxMinute;word MaxSecond;" & "word MaxMSeconds"
Global Const $tagnmdaystate = $tagnmhdr & ";" & $tagsystemtime & ";int DayState;ptr pDayState"
Global Const $tagnmselchange = $tagnmhdr & ";struct;word BegYear;word BegMonth;word BegDOW;word BegDay;word BegHour;word BegMinute;word BegSecond;word BegMSeconds;endstruct;" & "struct;word EndYear;word EndMonth;word EndDOW;word EndDay;word EndHour;word EndMinute;word EndSecond;word EndMSeconds;endstruct"
Global Const $tagnmobjectnotify = $tagnmhdr & ";int Item;ptr piid;ptr pObject;long Result;dword dwFlags"
Global Const $tagnmtckeydown = $tagnmhdr & ";align 2;word VKey;uint Flags"
Global Const $tagtvitem = "struct;uint Mask;handle hItem;uint State;uint StateMask;ptr Text;int TextMax;int Image;int SelectedImage;" & "int Children;lparam Param;endstruct"
Global Const $tagtvitemex = "struct;" & $tagtvitem & ";int Integral;uint uStateEx;hwnd hwnd;int iExpandedImage;int iReserved;endstruct"
Global Const $tagnmtreeview = $tagnmhdr & ";uint Action;" & "struct;uint OldMask;handle OldhItem;uint OldState;uint OldStateMask;" & "ptr OldText;int OldTextMax;int OldImage;int OldSelectedImage;int OldChildren;lparam OldParam;endstruct;" & "struct;uint NewMask;handle NewhItem;uint NewState;uint NewStateMask;" & "ptr NewText;int NewTextMax;int NewImage;int NewSelectedImage;int NewChildren;lparam NewParam;endstruct;" & "struct;long PointX;long PointY;endstruct"
Global Const $tagnmtvcustomdraw = "struct;" & $tagnmhdr & ";dword DrawStage;handle HDC;" & $tagrect & ";dword_ptr ItemSpec;uint ItemState;lparam ItemParam;endstruct" & ";dword ClrText;dword ClrTextBk;int Level"
Global Const $tagnmtvdispinfo = $tagnmhdr & ";" & $tagtvitem
Global Const $tagnmtvgetinfotip = $tagnmhdr & ";ptr Text;int TextMax;handle hItem;lparam lParam"
Global Const $tagnmtvitemchange = $tagnmhdr & ";uint Changed;handle hItem;uint StateNew;uint StateOld;lparam lParam;"
Global Const $tagtvhittestinfo = $tagpoint & ";uint Flags;handle Item"
Global Const $tagnmtvkeydown = $tagnmhdr & ";align 2;word VKey;uint Flags"
Global Const $tagnmmouse = $tagnmhdr & ";dword_ptr ItemSpec;dword_ptr ItemData;" & $tagpoint & ";lparam HitInfo"
Global Const $tagtoken_privileges = "dword Count;align 4;int64 LUID;dword Attributes"
Global Const $tagimageinfo = "handle hBitmap;handle hMask;int Unused1;int Unused2;" & $tagrect
Global Const $tagmenuinfo = "dword Size;INT Mask;dword Style;uint YMax;handle hBack;dword ContextHelpID;ulong_ptr MenuData"
Global Const $tagmenuiteminfo = "uint Size;uint Mask;uint Type;uint State;uint ID;handle SubMenu;handle BmpChecked;handle BmpUnchecked;" & "ulong_ptr ItemData;ptr TypeData;uint CCH;handle BmpItem"
Global Const $tagrebarbandinfo = "uint cbSize;uint fMask;uint fStyle;dword clrFore;dword clrBack;ptr lpText;uint cch;" & "int iImage;hwnd hwndChild;uint cxMinChild;uint cyMinChild;uint cx;handle hbmBack;uint wID;uint cyChild;uint cyMaxChild;" & "uint cyIntegral;uint cxIdeal;lparam lParam;uint cxHeader" & ((@OSVersion = "WIN_XP") ? "" : ";" & $tagrect & ";uint uChevronState")
Global Const $tagnmrebarautobreak = $tagnmhdr & ";uint uBand;uint wID;lparam lParam;uint uMsg;uint fStyleCurrent;bool fAutoBreak"
Global Const $tagnmrbautosize = $tagnmhdr & ";bool fChanged;" & "struct;long TargetLeft;long TargetTop;long TargetRight;long TargetBottom;endstruct;" & "struct;long ActualLeft;long ActualTop;long ActualRight;long ActualBottom;endstruct"
Global Const $tagnmrebar = $tagnmhdr & ";dword dwMask;uint uBand;uint fStyle;uint wID;lparam lParam"
Global Const $tagnmrebarchevron = $tagnmhdr & ";uint uBand;uint wID;lparam lParam;" & $tagrect & ";lparam lParamNM"
Global Const $tagnmrebarchildsize = $tagnmhdr & ";uint uBand;uint wID;" & "struct;long CLeft;long CTop;long CRight;long CBottom;endstruct;" & "struct;long BLeft;long BTop;long BRight;long BBottom;endstruct"
Global Const $tagcolorscheme = "dword Size;dword BtnHighlight;dword BtnShadow"
Global Const $tagnmtoolbar = $tagnmhdr & ";int iItem;" & "struct;int iBitmap;int idCommand;byte fsState;byte fsStyle;dword_ptr dwData;int_ptr iString;endstruct" & ";int cchText;ptr pszText;" & $tagrect
Global Const $tagnmtbhotitem = $tagnmhdr & ";int idOld;int idNew;dword dwFlags"
Global Const $tagtbbutton = "int Bitmap;int Command;byte State;byte Style;dword_ptr Param;int_ptr String"
Global Const $tagtbbuttoninfo = "uint Size;dword Mask;int Command;int Image;byte State;byte Style;word CX;dword_ptr Param;ptr Text;int TextMax"
Global Const $tagnetresource = "dword Scope;dword Type;dword DisplayType;dword Usage;ptr LocalName;ptr RemoteName;ptr Comment;ptr Provider"
Global Const $tagoverlapped = "ulong_ptr Internal;ulong_ptr InternalHigh;struct;dword Offset;dword OffsetHigh;endstruct;handle hEvent"
Global Const $tagopenfilename = "dword StructSize;hwnd hwndOwner;handle hInstance;ptr lpstrFilter;ptr lpstrCustomFilter;" & "dword nMaxCustFilter;dword nFilterIndex;ptr lpstrFile;dword nMaxFile;ptr lpstrFileTitle;dword nMaxFileTitle;" & "ptr lpstrInitialDir;ptr lpstrTitle;dword Flags;word nFileOffset;word nFileExtension;ptr lpstrDefExt;lparam lCustData;" & "ptr lpfnHook;ptr lpTemplateName;ptr pvReserved;dword dwReserved;dword FlagsEx"
Global Const $tagbitmapinfoheader = "struct;dword biSize;long biWidth;long biHeight;word biPlanes;word biBitCount;" & "dword biCompression;dword biSizeImage;long biXPelsPerMeter;long biYPelsPerMeter;dword biClrUsed;dword biClrImportant;endstruct"
Global Const $tagbitmapinfo = $tagbitmapinfoheader & ";dword biRGBQuad[1]"
Global Const $tagblendfunction = "byte Op;byte Flags;byte Alpha;byte Format"
Global Const $tagguid = "struct;ulong Data1;ushort Data2;ushort Data3;byte Data4[8];endstruct"
Global Const $tagwindowplacement = "uint length;uint flags;uint showCmd;long ptMinPosition[2];long ptMaxPosition[2];long rcNormalPosition[4]"
Global Const $tagwindowpos = "hwnd hWnd;hwnd InsertAfter;int X;int Y;int CX;int CY;uint Flags"
Global Const $tagscrollinfo = "uint cbSize;uint fMask;int nMin;int nMax;uint nPage;int nPos;int nTrackPos"
Global Const $tagscrollbarinfo = "dword cbSize;" & $tagrect & ";int dxyLineButton;int xyThumbTop;" & "int xyThumbBottom;int reserved;dword rgstate[6]"
Global Const $taglogfont = "struct;long Height;long Width;long Escapement;long Orientation;long Weight;byte Italic;byte Underline;" & "byte Strikeout;byte CharSet;byte OutPrecision;byte ClipPrecision;byte Quality;byte PitchAndFamily;wchar FaceName[32];endstruct"
Global Const $tagkbdllhookstruct = "dword vkCode;dword scanCode;dword flags;dword time;ulong_ptr dwExtraInfo"
Global Const $tagprocess_information = "handle hProcess;handle hThread;dword ProcessID;dword ThreadID"
Global Const $tagstartupinfo = "dword Size;ptr Reserved1;ptr Desktop;ptr Title;dword X;dword Y;dword XSize;dword YSize;dword XCountChars;" & "dword YCountChars;dword FillAttribute;dword Flags;word ShowWindow;word Reserved2;ptr Reserved3;handle StdInput;" & "handle StdOutput;handle StdError"
Global Const $tagsecurity_attributes = "dword Length;ptr Descriptor;bool InheritHandle"
Global Const $tagwin32_find_data = "dword dwFileAttributes;dword ftCreationTime[2];dword ftLastAccessTime[2];dword ftLastWriteTime[2];dword nFileSizeHigh;dword nFileSizeLow;dword dwReserved0;dword dwReserved1;wchar cFileName[260];wchar cAlternateFileName[14]"
Global Const $tagtextmetric = "long tmHeight;long tmAscent;long tmDescent;long tmInternalLeading;long tmExternalLeading;" & "long tmAveCharWidth;long tmMaxCharWidth;long tmWeight;long tmOverhang;long tmDigitizedAspectX;long tmDigitizedAspectY;" & "wchar tmFirstChar;wchar tmLastChar;wchar tmDefaultChar;wchar tmBreakChar;byte tmItalic;byte tmUnderlined;byte tmStruckOut;" & "byte tmPitchAndFamily;byte tmCharSet"
Global Const $opt_coordsrelative = 0x0
Global Const $opt_coordsabsolute = 0x1
Global Const $opt_coordsclient = 0x2
Global Const $opt_errorsilent = 0x0
Global Const $opt_errorfatal = 0x1
Global Const $opt_capsnostore = 0x0
Global Const $opt_capsstore = 0x1
Global Const $opt_matchstart = 0x1
Global Const $opt_matchany = 0x2
Global Const $opt_matchexact = 0x3
Global Const $opt_matchadvanced = 0x4
Global Const $ccs_top = 0x1
Global Const $ccs_nomovey = 0x2
Global Const $ccs_bottom = 0x3
Global Const $ccs_noresize = 0x4
Global Const $ccs_noparentalign = 0x8
Global Const $ccs_nohilite = 0x10
Global Const $ccs_adjustable = 0x20
Global Const $ccs_nodivider = 0x40
Global Const $ccs_vert = 0x80
Global Const $ccs_left = 0x81
Global Const $ccs_nomovex = 0x82
Global Const $ccs_right = 0x83
Global Const $dt_drivetype = 0x1
Global Const $dt_ssdstatus = 0x2
Global Const $dt_bustype = 0x3
Global Const $proxy_ie = 0x0
Global Const $proxy_none = 0x1
Global Const $proxy_specified = 0x2
Global Const $objid_window = 0x0
Global Const $objid_titlebar = 0xfffffffe
Global Const $objid_sizegrip = 0xfffffff9
Global Const $objid_caret = 0xfffffff8
Global Const $objid_cursor = 0xfffffff7
Global Const $objid_alert = 0xfffffff6
Global Const $objid_sound = 0xfffffff5
Global Const $dlg_centerontop = 0x0
Global Const $dlg_notitle = 0x1
Global Const $dlg_notontop = 0x2
Global Const $dlg_textleft = 0x4
Global Const $dlg_textright = 0x8
Global Const $dlg_moveable = 0x10
Global Const $dlg_textvcenter = 0x20
Global Const $mcid_unknown = +0xffffffff
Global Const $mcid_hand = 0x0
Global Const $mcid_appstarting = 0x1
Global Const $mcid_arrow = 0x2
Global Const $mcid_cross = 0x3
Global Const $mcid_help = 0x4
Global Const $mcid_ibeam = 0x5
Global Const $mcid_icon = 0x6
Global Const $mcid_no = 0x7
Global Const $mcid_size = 0x8
Global Const $mcid_sizeall = 0x9
Global Const $mcid_sizenesw = 0xa
Global Const $mcid_sizens = 0xb
Global Const $mcid_sizenwse = 0xc
Global Const $mcid_sizewe = 0xd
Global Const $mcid_uparrow = 0xe
Global Const $mcid_wait = 0xf
Global Const $mcid_none = 0x10
Global Const $sd_logoff = 0x0
Global Const $sd_shutdown = 0x1
Global Const $sd_reboot = 0x2
Global Const $sd_force = 0x4
Global Const $sd_powerdown = 0x8
Global Const $sd_forcehung = 0x10
Global Const $sd_standby = 0x20
Global Const $sd_hibernate = 0x40
Global Const $stdin_child = 0x1
Global Const $stdout_child = 0x2
Global Const $stderr_child = 0x4
Global Const $stderr_merged = 0x8
Global Const $stdio_inherit_parent = 0x10
Global Const $run_create_new_console = 0x10000
Global Const $ubound_dimensions = 0x0
Global Const $ubound_rows = 0x1
Global Const $ubound_columns = 0x2
Global Const $mouseeventf_absolute = 0x8000
Global Const $mouseeventf_move = 0x1
Global Const $mouseeventf_leftdown = 0x2
Global Const $mouseeventf_leftup = 0x4
Global Const $mouseeventf_rightdown = 0x8
Global Const $mouseeventf_rightup = 0x10
Global Const $mouseeventf_middledown = 0x20
Global Const $mouseeventf_middleup = 0x40
Global Const $mouseeventf_wheel = 0x800
Global Const $mouseeventf_xdown = 0x80
Global Const $mouseeventf_xup = 0x100
Global Const $reg_none = 0x0
Global Const $reg_sz = 0x1
Global Const $reg_expand_sz = 0x2
Global Const $reg_binary = 0x3
Global Const $reg_dword = 0x4
Global Const $reg_dword_little_endian = 0x4
Global Const $reg_dword_big_endian = 0x5
Global Const $reg_link = 0x6
Global Const $reg_multi_sz = 0x7
Global Const $reg_resource_list = 0x8
Global Const $reg_full_resource_descriptor = 0x9
Global Const $reg_resource_requirements_list = 0xa
Global Const $reg_qword = 0xb
Global Const $reg_qword_little_endian = 0xb
Global Const $hwnd_bottom = 0x1
Global Const $hwnd_notopmost = +0xfffffffe
Global Const $hwnd_top = 0x0
Global Const $hwnd_topmost = +0xffffffff
Global Const $swp_nosize = 0x1
Global Const $swp_nomove = 0x2
Global Const $swp_nozorder = 0x4
Global Const $swp_noredraw = 0x8
Global Const $swp_noactivate = 0x10
Global Const $swp_framechanged = 0x20
Global Const $swp_drawframe = 0x20
Global Const $swp_showwindow = 0x40
Global Const $swp_hidewindow = 0x80
Global Const $swp_nocopybits = 0x100
Global Const $swp_noownerzorder = 0x200
Global Const $swp_noreposition = 0x200
Global Const $swp_nosendchanging = 0x400
Global Const $swp_defererase = 0x2000
Global Const $swp_asyncwindowpos = 0x4000
Global Const $keyword_default = 0x1
Global Const $keyword_null = 0x2
Global Const $declared_local = +0xffffffff
Global Const $declared_unknown = 0x0
Global Const $declared_global = 0x1
Global Const $assign_create = 0x0
Global Const $assign_forcelocal = 0x1
Global Const $assign_forceglobal = 0x2
Global Const $assign_existfail = 0x4
Global Const $bi_enable = 0x0
Global Const $bi_disable = 0x1
Global Const $break_enable = 0x1
Global Const $break_disable = 0x0
Global Const $cdtray_open = "open"
Global Const $cdtray_closed = "closed"
Global Const $send_default = 0x0
Global Const $send_raw = 0x1
Global Const $dir_default = 0x0
Global Const $dir_extended = 0x1
Global Const $dir_norecurse = 0x2
Global Const $dir_remove = 0x1
Global Const $dt_all = "ALL"
Global Const $dt_cdrom = "CDROM"
Global Const $dt_removable = "REMOVABLE"
Global Const $dt_fixed = "FIXED"
Global Const $dt_network = "NETWORK"
Global Const $dt_ramdisk = "RAMDISK"
Global Const $dt_unknown = "UNKNOWN"
Global Const $dt_undefined = 0x1
Global Const $dt_fat = "FAT"
Global Const $dt_fat32 = "FAT32"
Global Const $dt_exfat = "exFAT"
Global Const $dt_ntfs = "NTFS"
Global Const $dt_nwfs = "NWFS"
Global Const $dt_cdfs = "CDFS"
Global Const $dt_udf = "UDF"
Global Const $dma_default = 0x0
Global Const $dma_persistent = 0x1
Global Const $dma_authentication = 0x8
Global Const $ds_unknown = "UNKNOWN"
Global Const $ds_ready = "READY"
Global Const $ds_notready = "NOTREADY"
Global Const $ds_invalid = "INVALID"
Global Const $mouse_click_left = "left"
Global Const $mouse_click_right = "right"
Global Const $mouse_click_middle = "middle"
Global Const $mouse_click_main = "main"
Global Const $mouse_click_menu = "menu"
Global Const $mouse_click_primary = "primary"
Global Const $mouse_click_secondary = "secondary"
Global Const $mouse_wheel_up = "up"
Global Const $mouse_wheel_down = "down"
Global Const $number_auto = 0x0
Global Const $number_32bit = 0x1
Global Const $number_64bit = 0x2
Global Const $number_double = 0x3
Global Const $obj_name = 0x1
Global Const $obj_string = 0x2
Global Const $obj_progid = 0x3
Global Const $obj_file = 0x4
Global Const $obj_module = 0x5
Global Const $obj_clsid = 0x6
Global Const $obj_iid = 0x7
Global Const $exitclose_normal = 0x0
Global Const $exitclose_byexit = 0x1