forked from oven-sh/bun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwindows.zig
3625 lines (3429 loc) · 180 KB
/
windows.zig
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
const bun = @import("root").bun;
const windows = std.os.windows;
const win32 = windows;
pub const PATH_MAX_WIDE = windows.PATH_MAX_WIDE;
pub const MAX_PATH = windows.MAX_PATH;
pub const WORD = windows.WORD;
pub const DWORD = windows.DWORD;
pub const CHAR = windows.CHAR;
pub const BOOL = windows.BOOL;
pub const LPVOID = windows.LPVOID;
pub const LPCVOID = windows.LPCVOID;
pub const LPWSTR = windows.LPWSTR;
pub const LPCWSTR = windows.LPCWSTR;
pub const LPSTR = windows.LPSTR;
pub const WCHAR = windows.WCHAR;
pub const LPCSTR = windows.LPCSTR;
pub const PWSTR = windows.PWSTR;
pub const FALSE = windows.FALSE;
pub const TRUE = windows.TRUE;
pub const COORD = windows.COORD;
pub const INVALID_HANDLE_VALUE = windows.INVALID_HANDLE_VALUE;
pub const FILE_BEGIN = windows.FILE_BEGIN;
pub const FILE_END = windows.FILE_END;
pub const FILE_CURRENT = windows.FILE_CURRENT;
pub const ULONG = windows.ULONG;
pub const ULONGLONG = windows.ULONGLONG;
pub const UINT = windows.UINT;
pub const LARGE_INTEGER = windows.LARGE_INTEGER;
pub const UNICODE_STRING = windows.UNICODE_STRING;
pub const NTSTATUS = windows.NTSTATUS;
pub const NT_SUCCESS = windows.NT_SUCCESS;
pub const STATUS_SUCCESS = windows.STATUS_SUCCESS;
pub const MOVEFILE_COPY_ALLOWED = 0x2;
pub const MOVEFILE_REPLACE_EXISTING = 0x1;
pub const MOVEFILE_WRITE_THROUGH = 0x8;
pub const DUPLICATE_SAME_ACCESS = windows.DUPLICATE_SAME_ACCESS;
pub const OBJECT_ATTRIBUTES = windows.OBJECT_ATTRIBUTES;
pub const kernel32 = windows.kernel32;
pub const IO_STATUS_BLOCK = windows.IO_STATUS_BLOCK;
pub const FILE_INFO_BY_HANDLE_CLASS = windows.FILE_INFO_BY_HANDLE_CLASS;
pub const FILE_SHARE_READ = windows.FILE_SHARE_READ;
pub const FILE_SHARE_WRITE = windows.FILE_SHARE_WRITE;
pub const FILE_SHARE_DELETE = windows.FILE_SHARE_DELETE;
pub const FILE_ATTRIBUTE_NORMAL = windows.FILE_ATTRIBUTE_NORMAL;
pub const FILE_ATTRIBUTE_READONLY = windows.FILE_ATTRIBUTE_READONLY;
pub const FILE_ATTRIBUTE_HIDDEN = windows.FILE_ATTRIBUTE_HIDDEN;
pub const FILE_ATTRIBUTE_SYSTEM = windows.FILE_ATTRIBUTE_SYSTEM;
pub const FILE_ATTRIBUTE_DIRECTORY = windows.FILE_ATTRIBUTE_DIRECTORY;
pub const FILE_ATTRIBUTE_ARCHIVE = windows.FILE_ATTRIBUTE_ARCHIVE;
pub const FILE_ATTRIBUTE_DEVICE = windows.FILE_ATTRIBUTE_DEVICE;
pub const FILE_ATTRIBUTE_TEMPORARY = windows.FILE_ATTRIBUTE_TEMPORARY;
pub const FILE_ATTRIBUTE_SPARSE_FILE = windows.FILE_ATTRIBUTE_SPARSE_FILE;
pub const FILE_ATTRIBUTE_REPARSE_POINT = windows.FILE_ATTRIBUTE_REPARSE_POINT;
pub const FILE_ATTRIBUTE_COMPRESSED = windows.FILE_ATTRIBUTE_COMPRESSED;
pub const FILE_ATTRIBUTE_OFFLINE = windows.FILE_ATTRIBUTE_OFFLINE;
pub const FILE_ATTRIBUTE_NOT_CONTENT_INDEXED = windows.FILE_ATTRIBUTE_NOT_CONTENT_INDEXED;
pub const FILE_DIRECTORY_FILE = windows.FILE_DIRECTORY_FILE;
pub const FILE_WRITE_THROUGH = windows.FILE_WRITE_THROUGH;
pub const FILE_SEQUENTIAL_ONLY = windows.FILE_SEQUENTIAL_ONLY;
pub const FILE_SYNCHRONOUS_IO_NONALERT = windows.FILE_SYNCHRONOUS_IO_NONALERT;
pub const FILE_OPEN_REPARSE_POINT = windows.FILE_OPEN_REPARSE_POINT;
pub usingnamespace kernel32;
pub const ntdll = windows.ntdll;
pub usingnamespace ntdll;
pub const user32 = windows.user32;
pub const advapi32 = windows.advapi32;
pub const INVALID_FILE_ATTRIBUTES: u32 = std.math.maxInt(u32);
pub const nt_object_prefix = [4]u16{ '\\', '?', '?', '\\' };
pub const nt_unc_object_prefix = [8]u16{ '\\', '?', '?', '\\', 'U', 'N', 'C', '\\' };
pub const nt_maxpath_prefix = [4]u16{ '\\', '\\', '?', '\\' };
const std = @import("std");
const Environment = bun.Environment;
pub const PathBuffer = if (Environment.isWindows) bun.PathBuffer else void;
pub const WPathBuffer = if (Environment.isWindows) bun.WPathBuffer else void;
pub const HANDLE = win32.HANDLE;
pub const HMODULE = win32.HMODULE;
/// https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfileinformationbyhandle
pub extern "kernel32" fn GetFileInformationByHandle(
hFile: HANDLE,
lpFileInformation: *windows.BY_HANDLE_FILE_INFORMATION,
) callconv(windows.WINAPI) BOOL;
/// https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-setfilevaliddata
pub extern "kernel32" fn SetFileValidData(
hFile: win32.HANDLE,
validDataLength: c_longlong,
) callconv(windows.WINAPI) win32.BOOL;
pub extern "kernel32" fn CommandLineToArgvW(
lpCmdLine: win32.LPCWSTR,
pNumArgs: *c_int,
) callconv(windows.WINAPI) ?[*]win32.LPWSTR;
pub fn GetFileType(hFile: win32.HANDLE) win32.DWORD {
const function = struct {
pub extern fn GetFileType(
hFile: win32.HANDLE,
) callconv(windows.WINAPI) win32.DWORD;
}.GetFileType;
const rc = function(hFile);
if (comptime Environment.enable_logs)
bun.sys.syslog("GetFileType({}) = {d}", .{ bun.toFD(hFile), rc });
return rc;
}
/// https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfiletype#return-value
pub const FILE_TYPE_UNKNOWN = 0x0000;
pub const FILE_TYPE_DISK = 0x0001;
pub const FILE_TYPE_CHAR = 0x0002;
pub const FILE_TYPE_PIPE = 0x0003;
pub const FILE_TYPE_REMOTE = 0x8000;
pub const LPDWORD = *win32.DWORD;
pub extern "kernel32" fn GetBinaryTypeW(
lpApplicationName: win32.LPCWSTR,
lpBinaryType: LPDWORD,
) callconv(windows.WINAPI) win32.BOOL;
/// A 32-bit Windows-based application
pub const SCS_32BIT_BINARY = 0;
/// A 64-bit Windows-based application.
pub const SCS_64BIT_BINARY = 6;
/// An MS-DOS – based application
pub const SCS_DOS_BINARY = 1;
/// A 16-bit OS/2-based application
pub const SCS_OS216_BINARY = 5;
/// A PIF file that executes an MS-DOS – based application
pub const SCS_PIF_BINARY = 3;
/// A POSIX – based application
pub const SCS_POSIX_BINARY = 4;
/// Each process has a single current directory made up of two parts:
///
/// - A disk designator that is either a drive letter followed by a colon, or a server name and share name (\\servername\sharename)
/// - A directory on the disk designator
///
/// The current directory is shared by all threads of the process: If one thread changes the current directory, it affects all threads in the process. Multithreaded applications and shared library code should avoid calling the SetCurrentDirectory function due to the risk of affecting relative path calculations being performed by other threads. Conversely, multithreaded applications and shared library code should avoid using relative paths so that they are unaffected by changes to the current directory performed by other threads.
///
/// Note that the current directory for a process is locked while the process is executing. This will prevent the directory from being deleted, moved, or renamed.
pub extern "kernel32" fn SetCurrentDirectoryW(
lpPathName: win32.LPCWSTR,
) callconv(windows.WINAPI) win32.BOOL;
pub const SetCurrentDirectory = SetCurrentDirectoryW;
pub extern "ntdll" fn RtlNtStatusToDosError(win32.NTSTATUS) callconv(windows.WINAPI) Win32Error;
const SystemErrno = bun.C.SystemErrno;
// This was originally copied from Zig's standard library
/// Codes are from https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-erref/18d8fbe8-a967-4f1c-ae50-99ca8e491d2d
pub const Win32Error = enum(u16) {
/// The operation completed successfully.
SUCCESS = 0,
/// Incorrect function.
INVALID_FUNCTION = 1,
/// The system cannot find the file specified.
FILE_NOT_FOUND = 2,
/// The system cannot find the path specified.
PATH_NOT_FOUND = 3,
/// The system cannot open the file.
TOO_MANY_OPEN_FILES = 4,
/// Access is denied.
ACCESS_DENIED = 5,
/// The handle is invalid.
INVALID_HANDLE = 6,
/// The storage control blocks were destroyed.
ARENA_TRASHED = 7,
/// Not enough storage is available to process this command.
NOT_ENOUGH_MEMORY = 8,
/// The storage control block address is invalid.
INVALID_BLOCK = 9,
/// The environment is incorrect.
BAD_ENVIRONMENT = 10,
/// An attempt was made to load a program with an incorrect format.
BAD_FORMAT = 11,
/// The access code is invalid.
INVALID_ACCESS = 12,
/// The data is invalid.
INVALID_DATA = 13,
/// Not enough storage is available to complete this operation.
OUTOFMEMORY = 14,
/// The system cannot find the drive specified.
INVALID_DRIVE = 15,
/// The directory cannot be removed.
CURRENT_DIRECTORY = 16,
/// The system cannot move the file to a different disk drive.
NOT_SAME_DEVICE = 17,
/// There are no more files.
NO_MORE_FILES = 18,
/// The media is write protected.
WRITE_PROTECT = 19,
/// The system cannot find the device specified.
BAD_UNIT = 20,
/// The device is not ready.
NOT_READY = 21,
/// The device does not recognize the command.
BAD_COMMAND = 22,
/// Data error (cyclic redundancy check).
CRC = 23,
/// The program issued a command but the command length is incorrect.
BAD_LENGTH = 24,
/// The drive cannot locate a specific area or track on the disk.
SEEK = 25,
/// The specified disk or diskette cannot be accessed.
NOT_DOS_DISK = 26,
/// The drive cannot find the sector requested.
SECTOR_NOT_FOUND = 27,
/// The printer is out of paper.
OUT_OF_PAPER = 28,
/// The system cannot write to the specified device.
WRITE_FAULT = 29,
/// The system cannot read from the specified device.
READ_FAULT = 30,
/// A device attached to the system is not functioning.
GEN_FAILURE = 31,
/// The process cannot access the file because it is being used by another process.
SHARING_VIOLATION = 32,
/// The process cannot access the file because another process has locked a portion of the file.
LOCK_VIOLATION = 33,
/// The wrong diskette is in the drive.
/// Insert %2 (Volume Serial Number: %3) into drive %1.
WRONG_DISK = 34,
/// Too many files opened for sharing.
SHARING_BUFFER_EXCEEDED = 36,
/// Reached the end of the file.
HANDLE_EOF = 38,
/// The disk is full.
HANDLE_DISK_FULL = 39,
/// The request is not supported.
NOT_SUPPORTED = 50,
/// Windows cannot find the network path.
/// Verify that the network path is correct and the destination computer is not busy or turned off.
/// If Windows still cannot find the network path, contact your network administrator.
REM_NOT_LIST = 51,
/// You were not connected because a duplicate name exists on the network.
/// If joining a domain, go to System in Control Panel to change the computer name and try again.
/// If joining a workgroup, choose another workgroup name.
DUP_NAME = 52,
/// The network path was not found.
BAD_NETPATH = 53,
/// The network is busy.
NETWORK_BUSY = 54,
/// The specified network resource or device is no longer available.
DEV_NOT_EXIST = 55,
/// The network BIOS command limit has been reached.
TOO_MANY_CMDS = 56,
/// A network adapter hardware error occurred.
ADAP_HDW_ERR = 57,
/// The specified server cannot perform the requested operation.
BAD_NET_RESP = 58,
/// An unexpected network error occurred.
UNEXP_NET_ERR = 59,
/// The remote adapter is not compatible.
BAD_REM_ADAP = 60,
/// The printer queue is full.
PRINTQ_FULL = 61,
/// Space to store the file waiting to be printed is not available on the server.
NO_SPOOL_SPACE = 62,
/// Your file waiting to be printed was deleted.
PRINT_CANCELLED = 63,
/// The specified network name is no longer available.
NETNAME_DELETED = 64,
/// Network access is denied.
NETWORK_ACCESS_DENIED = 65,
/// The network resource type is not correct.
BAD_DEV_TYPE = 66,
/// The network name cannot be found.
BAD_NET_NAME = 67,
/// The name limit for the local computer network adapter card was exceeded.
TOO_MANY_NAMES = 68,
/// The network BIOS session limit was exceeded.
TOO_MANY_SESS = 69,
/// The remote server has been paused or is in the process of being started.
SHARING_PAUSED = 70,
/// No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept.
REQ_NOT_ACCEP = 71,
/// The specified printer or disk device has been paused.
REDIR_PAUSED = 72,
/// The file exists.
FILE_EXISTS = 80,
/// The directory or file cannot be created.
CANNOT_MAKE = 82,
/// Fail on INT 24.
FAIL_I24 = 83,
/// Storage to process this request is not available.
OUT_OF_STRUCTURES = 84,
/// The local device name is already in use.
ALREADY_ASSIGNED = 85,
/// The specified network password is not correct.
INVALID_PASSWORD = 86,
/// The parameter is incorrect.
INVALID_PARAMETER = 87,
/// A write fault occurred on the network.
NET_WRITE_FAULT = 88,
/// The system cannot start another process at this time.
NO_PROC_SLOTS = 89,
/// Cannot create another system semaphore.
TOO_MANY_SEMAPHORES = 100,
/// The exclusive semaphore is owned by another process.
EXCL_SEM_ALREADY_OWNED = 101,
/// The semaphore is set and cannot be closed.
SEM_IS_SET = 102,
/// The semaphore cannot be set again.
TOO_MANY_SEM_REQUESTS = 103,
/// Cannot request exclusive semaphores at interrupt time.
INVALID_AT_INTERRUPT_TIME = 104,
/// The previous ownership of this semaphore has ended.
SEM_OWNER_DIED = 105,
/// Insert the diskette for drive %1.
SEM_USER_LIMIT = 106,
/// The program stopped because an alternate diskette was not inserted.
DISK_CHANGE = 107,
/// The disk is in use or locked by another process.
DRIVE_LOCKED = 108,
/// The pipe has been ended.
BROKEN_PIPE = 109,
/// The system cannot open the device or file specified.
OPEN_FAILED = 110,
/// The file name is too long.
BUFFER_OVERFLOW = 111,
/// There is not enough space on the disk.
DISK_FULL = 112,
/// No more internal file identifiers available.
NO_MORE_SEARCH_HANDLES = 113,
/// The target internal file identifier is incorrect.
INVALID_TARGET_HANDLE = 114,
/// The IOCTL call made by the application program is not correct.
INVALID_CATEGORY = 117,
/// The verify-on-write switch parameter value is not correct.
INVALID_VERIFY_SWITCH = 118,
/// The system does not support the command requested.
BAD_DRIVER_LEVEL = 119,
/// This function is not supported on this system.
CALL_NOT_IMPLEMENTED = 120,
/// The semaphore timeout period has expired.
SEM_TIMEOUT = 121,
/// The data area passed to a system call is too small.
INSUFFICIENT_BUFFER = 122,
/// The filename, directory name, or volume label syntax is incorrect.
INVALID_NAME = 123,
/// The system call level is not correct.
INVALID_LEVEL = 124,
/// The disk has no volume label.
NO_VOLUME_LABEL = 125,
/// The specified module could not be found.
MOD_NOT_FOUND = 126,
/// The specified procedure could not be found.
PROC_NOT_FOUND = 127,
/// There are no child processes to wait for.
WAIT_NO_CHILDREN = 128,
/// The %1 application cannot be run in Win32 mode.
CHILD_NOT_COMPLETE = 129,
/// Attempt to use a file handle to an open disk partition for an operation other than raw disk I/O.
DIRECT_ACCESS_HANDLE = 130,
/// An attempt was made to move the file pointer before the beginning of the file.
NEGATIVE_SEEK = 131,
/// The file pointer cannot be set on the specified device or file.
SEEK_ON_DEVICE = 132,
/// A JOIN or SUBST command cannot be used for a drive that contains previously joined drives.
IS_JOIN_TARGET = 133,
/// An attempt was made to use a JOIN or SUBST command on a drive that has already been joined.
IS_JOINED = 134,
/// An attempt was made to use a JOIN or SUBST command on a drive that has already been substituted.
IS_SUBSTED = 135,
/// The system tried to delete the JOIN of a drive that is not joined.
NOT_JOINED = 136,
/// The system tried to delete the substitution of a drive that is not substituted.
NOT_SUBSTED = 137,
/// The system tried to join a drive to a directory on a joined drive.
JOIN_TO_JOIN = 138,
/// The system tried to substitute a drive to a directory on a substituted drive.
SUBST_TO_SUBST = 139,
/// The system tried to join a drive to a directory on a substituted drive.
JOIN_TO_SUBST = 140,
/// The system tried to SUBST a drive to a directory on a joined drive.
SUBST_TO_JOIN = 141,
/// The system cannot perform a JOIN or SUBST at this time.
BUSY_DRIVE = 142,
/// The system cannot join or substitute a drive to or for a directory on the same drive.
SAME_DRIVE = 143,
/// The directory is not a subdirectory of the root directory.
DIR_NOT_ROOT = 144,
/// The directory is not empty.
DIR_NOT_EMPTY = 145,
/// The path specified is being used in a substitute.
IS_SUBST_PATH = 146,
/// Not enough resources are available to process this command.
IS_JOIN_PATH = 147,
/// The path specified cannot be used at this time.
PATH_BUSY = 148,
/// An attempt was made to join or substitute a drive for which a directory on the drive is the target of a previous substitute.
IS_SUBST_TARGET = 149,
/// System trace information was not specified in your CONFIG.SYS file, or tracing is disallowed.
SYSTEM_TRACE = 150,
/// The number of specified semaphore events for DosMuxSemWait is not correct.
INVALID_EVENT_COUNT = 151,
/// DosMuxSemWait did not execute; too many semaphores are already set.
TOO_MANY_MUXWAITERS = 152,
/// The DosMuxSemWait list is not correct.
INVALID_LIST_FORMAT = 153,
/// The volume label you entered exceeds the label character limit of the target file system.
LABEL_TOO_LONG = 154,
/// Cannot create another thread.
TOO_MANY_TCBS = 155,
/// The recipient process has refused the signal.
SIGNAL_REFUSED = 156,
/// The segment is already discarded and cannot be locked.
DISCARDED = 157,
/// The segment is already unlocked.
NOT_LOCKED = 158,
/// The address for the thread ID is not correct.
BAD_THREADID_ADDR = 159,
/// One or more arguments are not correct.
BAD_ARGUMENTS = 160,
/// The specified path is invalid.
BAD_PATHNAME = 161,
/// A signal is already pending.
SIGNAL_PENDING = 162,
/// No more threads can be created in the system.
MAX_THRDS_REACHED = 164,
/// Unable to lock a region of a file.
LOCK_FAILED = 167,
/// The requested resource is in use.
BUSY = 170,
/// Device's command support detection is in progress.
DEVICE_SUPPORT_IN_PROGRESS = 171,
/// A lock request was not outstanding for the supplied cancel region.
CANCEL_VIOLATION = 173,
/// The file system does not support atomic changes to the lock type.
ATOMIC_LOCKS_NOT_SUPPORTED = 174,
/// The system detected a segment number that was not correct.
INVALID_SEGMENT_NUMBER = 180,
/// The operating system cannot run %1.
INVALID_ORDINAL = 182,
/// Cannot create a file when that file already exists.
ALREADY_EXISTS = 183,
/// The flag passed is not correct.
INVALID_FLAG_NUMBER = 186,
/// The specified system semaphore name was not found.
SEM_NOT_FOUND = 187,
/// The operating system cannot run %1.
INVALID_STARTING_CODESEG = 188,
/// The operating system cannot run %1.
INVALID_STACKSEG = 189,
/// The operating system cannot run %1.
INVALID_MODULETYPE = 190,
/// Cannot run %1 in Win32 mode.
INVALID_EXE_SIGNATURE = 191,
/// The operating system cannot run %1.
EXE_MARKED_INVALID = 192,
/// %1 is not a valid Win32 application.
BAD_EXE_FORMAT = 193,
/// The operating system cannot run %1.
ITERATED_DATA_EXCEEDS_64k = 194,
/// The operating system cannot run %1.
INVALID_MINALLOCSIZE = 195,
/// The operating system cannot run this application program.
DYNLINK_FROM_INVALID_RING = 196,
/// The operating system is not presently configured to run this application.
IOPL_NOT_ENABLED = 197,
/// The operating system cannot run %1.
INVALID_SEGDPL = 198,
/// The operating system cannot run this application program.
AUTODATASEG_EXCEEDS_64k = 199,
/// The code segment cannot be greater than or equal to 64K.
RING2SEG_MUST_BE_MOVABLE = 200,
/// The operating system cannot run %1.
RELOC_CHAIN_XEEDS_SEGLIM = 201,
/// The operating system cannot run %1.
INFLOOP_IN_RELOC_CHAIN = 202,
/// The system could not find the environment option that was entered.
ENVVAR_NOT_FOUND = 203,
/// No process in the command subtree has a signal handler.
NO_SIGNAL_SENT = 205,
/// The filename or extension is too long.
FILENAME_EXCED_RANGE = 206,
/// The ring 2 stack is in use.
RING2_STACK_IN_USE = 207,
/// The global filename characters, * or ?, are entered incorrectly or too many global filename characters are specified.
META_EXPANSION_TOO_LONG = 208,
/// The signal being posted is not correct.
INVALID_SIGNAL_NUMBER = 209,
/// The signal handler cannot be set.
THREAD_1_INACTIVE = 210,
/// The segment is locked and cannot be reallocated.
LOCKED = 212,
/// Too many dynamic-link modules are attached to this program or dynamic-link module.
TOO_MANY_MODULES = 214,
/// Cannot nest calls to LoadModule.
NESTING_NOT_ALLOWED = 215,
/// This version of %1 is not compatible with the version of Windows you're running.
/// Check your computer's system information and then contact the software publisher.
EXE_MACHINE_TYPE_MISMATCH = 216,
/// The image file %1 is signed, unable to modify.
EXE_CANNOT_MODIFY_SIGNED_BINARY = 217,
/// The image file %1 is strong signed, unable to modify.
EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY = 218,
/// This file is checked out or locked for editing by another user.
FILE_CHECKED_OUT = 220,
/// The file must be checked out before saving changes.
CHECKOUT_REQUIRED = 221,
/// The file type being saved or retrieved has been blocked.
BAD_FILE_TYPE = 222,
/// The file size exceeds the limit allowed and cannot be saved.
FILE_TOO_LARGE = 223,
/// Access Denied. Before opening files in this location, you must first add the web site to your trusted sites list, browse to the web site, and select the option to login automatically.
FORMS_AUTH_REQUIRED = 224,
/// Operation did not complete successfully because the file contains a virus or potentially unwanted software.
VIRUS_INFECTED = 225,
/// This file contains a virus or potentially unwanted software and cannot be opened.
/// Due to the nature of this virus or potentially unwanted software, the file has been removed from this location.
VIRUS_DELETED = 226,
/// The pipe is local.
PIPE_LOCAL = 229,
/// The pipe state is invalid.
BAD_PIPE = 230,
/// All pipe instances are busy.
PIPE_BUSY = 231,
/// The pipe is being closed.
NO_DATA = 232,
/// No process is on the other end of the pipe.
PIPE_NOT_CONNECTED = 233,
/// More data is available.
MORE_DATA = 234,
/// The session was canceled.
VC_DISCONNECTED = 240,
/// The specified extended attribute name was invalid.
INVALID_EA_NAME = 254,
/// The extended attributes are inconsistent.
EA_LIST_INCONSISTENT = 255,
/// The wait operation timed out.
IMEOUT = 258,
/// No more data is available.
NO_MORE_ITEMS = 259,
/// The copy functions cannot be used.
CANNOT_COPY = 266,
/// The directory name is invalid.
DIRECTORY = 267,
/// The extended attributes did not fit in the buffer.
EAS_DIDNT_FIT = 275,
/// The extended attribute file on the mounted file system is corrupt.
EA_FILE_CORRUPT = 276,
/// The extended attribute table file is full.
EA_TABLE_FULL = 277,
/// The specified extended attribute handle is invalid.
INVALID_EA_HANDLE = 278,
/// The mounted file system does not support extended attributes.
EAS_NOT_SUPPORTED = 282,
/// Attempt to release mutex not owned by caller.
NOT_OWNER = 288,
/// Too many posts were made to a semaphore.
TOO_MANY_POSTS = 298,
/// Only part of a ReadProcessMemory or WriteProcessMemory request was completed.
PARTIAL_COPY = 299,
/// The oplock request is denied.
OPLOCK_NOT_GRANTED = 300,
/// An invalid oplock acknowledgment was received by the system.
INVALID_OPLOCK_PROTOCOL = 301,
/// The volume is too fragmented to complete this operation.
DISK_TOO_FRAGMENTED = 302,
/// The file cannot be opened because it is in the process of being deleted.
DELETE_PENDING = 303,
/// Short name settings may not be changed on this volume due to the global registry setting.
INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING = 304,
/// Short names are not enabled on this volume.
SHORT_NAMES_NOT_ENABLED_ON_VOLUME = 305,
/// The security stream for the given volume is in an inconsistent state. Please run CHKDSK on the volume.
SECURITY_STREAM_IS_INCONSISTENT = 306,
/// A requested file lock operation cannot be processed due to an invalid byte range.
INVALID_LOCK_RANGE = 307,
/// The subsystem needed to support the image type is not present.
IMAGE_SUBSYSTEM_NOT_PRESENT = 308,
/// The specified file already has a notification GUID associated with it.
NOTIFICATION_GUID_ALREADY_DEFINED = 309,
/// An invalid exception handler routine has been detected.
INVALID_EXCEPTION_HANDLER = 310,
/// Duplicate privileges were specified for the token.
DUPLICATE_PRIVILEGES = 311,
/// No ranges for the specified operation were able to be processed.
NO_RANGES_PROCESSED = 312,
/// Operation is not allowed on a file system internal file.
NOT_ALLOWED_ON_SYSTEM_FILE = 313,
/// The physical resources of this disk have been exhausted.
DISK_RESOURCES_EXHAUSTED = 314,
/// The token representing the data is invalid.
INVALID_TOKEN = 315,
/// The device does not support the command feature.
DEVICE_FEATURE_NOT_SUPPORTED = 316,
/// The system cannot find message text for message number 0x%1 in the message file for %2.
MR_MID_NOT_FOUND = 317,
/// The scope specified was not found.
SCOPE_NOT_FOUND = 318,
/// The Central Access Policy specified is not defined on the target machine.
UNDEFINED_SCOPE = 319,
/// The Central Access Policy obtained from Active Directory is invalid.
INVALID_CAP = 320,
/// The device is unreachable.
DEVICE_UNREACHABLE = 321,
/// The target device has insufficient resources to complete the operation.
DEVICE_NO_RESOURCES = 322,
/// A data integrity checksum error occurred. Data in the file stream is corrupt.
DATA_CHECKSUM_ERROR = 323,
/// An attempt was made to modify both a KERNEL and normal Extended Attribute (EA) in the same operation.
INTERMIXED_KERNEL_EA_OPERATION = 324,
/// Device does not support file-level TRIM.
FILE_LEVEL_TRIM_NOT_SUPPORTED = 326,
/// The command specified a data offset that does not align to the device's granularity/alignment.
OFFSET_ALIGNMENT_VIOLATION = 327,
/// The command specified an invalid field in its parameter list.
INVALID_FIELD_IN_PARAMETER_LIST = 328,
/// An operation is currently in progress with the device.
OPERATION_IN_PROGRESS = 329,
/// An attempt was made to send down the command via an invalid path to the target device.
BAD_DEVICE_PATH = 330,
/// The command specified a number of descriptors that exceeded the maximum supported by the device.
TOO_MANY_DESCRIPTORS = 331,
/// Scrub is disabled on the specified file.
SCRUB_DATA_DISABLED = 332,
/// The storage device does not provide redundancy.
NOT_REDUNDANT_STORAGE = 333,
/// An operation is not supported on a resident file.
RESIDENT_FILE_NOT_SUPPORTED = 334,
/// An operation is not supported on a compressed file.
COMPRESSED_FILE_NOT_SUPPORTED = 335,
/// An operation is not supported on a directory.
DIRECTORY_NOT_SUPPORTED = 336,
/// The specified copy of the requested data could not be read.
NOT_READ_FROM_COPY = 337,
/// No action was taken as a system reboot is required.
FAIL_NOACTION_REBOOT = 350,
/// The shutdown operation failed.
FAIL_SHUTDOWN = 351,
/// The restart operation failed.
FAIL_RESTART = 352,
/// The maximum number of sessions has been reached.
MAX_SESSIONS_REACHED = 353,
/// The thread is already in background processing mode.
THREAD_MODE_ALREADY_BACKGROUND = 400,
/// The thread is not in background processing mode.
THREAD_MODE_NOT_BACKGROUND = 401,
/// The process is already in background processing mode.
PROCESS_MODE_ALREADY_BACKGROUND = 402,
/// The process is not in background processing mode.
PROCESS_MODE_NOT_BACKGROUND = 403,
/// Attempt to access invalid address.
INVALID_ADDRESS = 487,
/// User profile cannot be loaded.
USER_PROFILE_LOAD = 500,
/// Arithmetic result exceeded 32 bits.
ARITHMETIC_OVERFLOW = 534,
/// There is a process on other end of the pipe.
PIPE_CONNECTED = 535,
/// Waiting for a process to open the other end of the pipe.
PIPE_LISTENING = 536,
/// Application verifier has found an error in the current process.
VERIFIER_STOP = 537,
/// An error occurred in the ABIOS subsystem.
ABIOS_ERROR = 538,
/// A warning occurred in the WX86 subsystem.
WX86_WARNING = 539,
/// An error occurred in the WX86 subsystem.
WX86_ERROR = 540,
/// An attempt was made to cancel or set a timer that has an associated APC and the subject thread is not the thread that originally set the timer with an associated APC routine.
TIMER_NOT_CANCELED = 541,
/// Unwind exception code.
UNWIND = 542,
/// An invalid or unaligned stack was encountered during an unwind operation.
BAD_STACK = 543,
/// An invalid unwind target was encountered during an unwind operation.
INVALID_UNWIND_TARGET = 544,
/// Invalid Object Attributes specified to NtCreatePort or invalid Port Attributes specified to NtConnectPort
INVALID_PORT_ATTRIBUTES = 545,
/// Length of message passed to NtRequestPort or NtRequestWaitReplyPort was longer than the maximum message allowed by the port.
PORT_MESSAGE_TOO_LONG = 546,
/// An attempt was made to lower a quota limit below the current usage.
INVALID_QUOTA_LOWER = 547,
/// An attempt was made to attach to a device that was already attached to another device.
DEVICE_ALREADY_ATTACHED = 548,
/// An attempt was made to execute an instruction at an unaligned address and the host system does not support unaligned instruction references.
INSTRUCTION_MISALIGNMENT = 549,
/// Profiling not started.
PROFILING_NOT_STARTED = 550,
/// Profiling not stopped.
PROFILING_NOT_STOPPED = 551,
/// The passed ACL did not contain the minimum required information.
COULD_NOT_INTERPRET = 552,
/// The number of active profiling objects is at the maximum and no more may be started.
PROFILING_AT_LIMIT = 553,
/// Used to indicate that an operation cannot continue without blocking for I/O.
CANT_WAIT = 554,
/// Indicates that a thread attempted to terminate itself by default (called NtTerminateThread with NULL) and it was the last thread in the current process.
CANT_TERMINATE_SELF = 555,
/// If an MM error is returned which is not defined in the standard FsRtl filter, it is converted to one of the following errors which is guaranteed to be in the filter.
/// In this case information is lost, however, the filter correctly handles the exception.
UNEXPECTED_MM_CREATE_ERR = 556,
/// If an MM error is returned which is not defined in the standard FsRtl filter, it is converted to one of the following errors which is guaranteed to be in the filter.
/// In this case information is lost, however, the filter correctly handles the exception.
UNEXPECTED_MM_MAP_ERROR = 557,
/// If an MM error is returned which is not defined in the standard FsRtl filter, it is converted to one of the following errors which is guaranteed to be in the filter.
/// In this case information is lost, however, the filter correctly handles the exception.
UNEXPECTED_MM_EXTEND_ERR = 558,
/// A malformed function table was encountered during an unwind operation.
BAD_FUNCTION_TABLE = 559,
/// Indicates that an attempt was made to assign protection to a file system file or directory and one of the SIDs in the security descriptor could not be translated into a GUID that could be stored by the file system.
/// This causes the protection attempt to fail, which may cause a file creation attempt to fail.
NO_GUID_TRANSLATION = 560,
/// Indicates that an attempt was made to grow an LDT by setting its size, or that the size was not an even number of selectors.
INVALID_LDT_SIZE = 561,
/// Indicates that the starting value for the LDT information was not an integral multiple of the selector size.
INVALID_LDT_OFFSET = 563,
/// Indicates that the user supplied an invalid descriptor when trying to set up Ldt descriptors.
INVALID_LDT_DESCRIPTOR = 564,
/// Indicates a process has too many threads to perform the requested action.
/// For example, assignment of a primary token may only be performed when a process has zero or one threads.
TOO_MANY_THREADS = 565,
/// An attempt was made to operate on a thread within a specific process, but the thread specified is not in the process specified.
THREAD_NOT_IN_PROCESS = 566,
/// Page file quota was exceeded.
PAGEFILE_QUOTA_EXCEEDED = 567,
/// The Netlogon service cannot start because another Netlogon service running in the domain conflicts with the specified role.
LOGON_SERVER_CONFLICT = 568,
/// The SAM database on a Windows Server is significantly out of synchronization with the copy on the Domain Controller. A complete synchronization is required.
SYNCHRONIZATION_REQUIRED = 569,
/// The NtCreateFile API failed. This error should never be returned to an application, it is a place holder for the Windows Lan Manager Redirector to use in its internal error mapping routines.
NET_OPEN_FAILED = 570,
/// {Privilege Failed} The I/O permissions for the process could not be changed.
IO_PRIVILEGE_FAILED = 571,
/// {Application Exit by CTRL+C} The application terminated as a result of a CTRL+C.
CONTROL_C_EXIT = 572,
/// {Missing System File} The required system file %hs is bad or missing.
MISSING_SYSTEMFILE = 573,
/// {Application Error} The exception %s (0x%08lx) occurred in the application at location 0x%08lx.
UNHANDLED_EXCEPTION = 574,
/// {Application Error} The application was unable to start correctly (0x%lx). Click OK to close the application.
APP_INIT_FAILURE = 575,
/// {Unable to Create Paging File} The creation of the paging file %hs failed (%lx). The requested size was %ld.
PAGEFILE_CREATE_FAILED = 576,
/// Windows cannot verify the digital signature for this file.
/// A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source.
INVALID_IMAGE_HASH = 577,
/// {No Paging File Specified} No paging file was specified in the system configuration.
NO_PAGEFILE = 578,
/// {EXCEPTION} A real-mode application issued a floating-point instruction and floating-point hardware is not present.
ILLEGAL_FLOAT_CONTEXT = 579,
/// An event pair synchronization operation was performed using the thread specific client/server event pair object, but no event pair object was associated with the thread.
NO_EVENT_PAIR = 580,
/// A Windows Server has an incorrect configuration.
DOMAIN_CTRLR_CONFIG_ERROR = 581,
/// An illegal character was encountered.
/// For a multi-byte character set this includes a lead byte without a succeeding trail byte.
/// For the Unicode character set this includes the characters 0xFFFF and 0xFFFE.
ILLEGAL_CHARACTER = 582,
/// The Unicode character is not defined in the Unicode character set installed on the system.
UNDEFINED_CHARACTER = 583,
/// The paging file cannot be created on a floppy diskette.
FLOPPY_VOLUME = 584,
/// The system BIOS failed to connect a system interrupt to the device or bus for which the device is connected.
BIOS_FAILED_TO_CONNECT_INTERRUPT = 585,
/// This operation is only allowed for the Primary Domain Controller of the domain.
BACKUP_CONTROLLER = 586,
/// An attempt was made to acquire a mutant such that its maximum count would have been exceeded.
MUTANT_LIMIT_EXCEEDED = 587,
/// A volume has been accessed for which a file system driver is required that has not yet been loaded.
FS_DRIVER_REQUIRED = 588,
/// {Registry File Failure} The registry cannot load the hive (file): %hs or its log or alternate. It is corrupt, absent, or not writable.
CANNOT_LOAD_REGISTRY_FILE = 589,
/// {Unexpected Failure in DebugActiveProcess} An unexpected failure occurred while processing a DebugActiveProcess API request.
/// You may choose OK to terminate the process, or Cancel to ignore the error.
DEBUG_ATTACH_FAILED = 590,
/// {Fatal System Error} The %hs system process terminated unexpectedly with a status of 0x%08x (0x%08x 0x%08x). The system has been shut down.
SYSTEM_PROCESS_TERMINATED = 591,
/// {Data Not Accepted} The TDI client could not handle the data received during an indication.
DATA_NOT_ACCEPTED = 592,
/// NTVDM encountered a hard error.
VDM_HARD_ERROR = 593,
/// {Cancel Timeout} The driver %hs failed to complete a cancelled I/O request in the allotted time.
DRIVER_CANCEL_TIMEOUT = 594,
/// {Reply Message Mismatch} An attempt was made to reply to an LPC message, but the thread specified by the client ID in the message was not waiting on that message.
REPLY_MESSAGE_MISMATCH = 595,
/// {Delayed Write Failed} Windows was unable to save all the data for the file %hs. The data has been lost.
/// This error may be caused by a failure of your computer hardware or network connection. Please try to save this file elsewhere.
LOST_WRITEBEHIND_DATA = 596,
/// The parameter(s) passed to the server in the client/server shared memory window were invalid.
/// Too much data may have been put in the shared memory window.
CLIENT_SERVER_PARAMETERS_INVALID = 597,
/// The stream is not a tiny stream.
NOT_TINY_STREAM = 598,
/// The request must be handled by the stack overflow code.
STACK_OVERFLOW_READ = 599,
/// Internal OFS status codes indicating how an allocation operation is handled.
/// Either it is retried after the containing onode is moved or the extent stream is converted to a large stream.
CONVERT_TO_LARGE = 600,
/// The attempt to find the object found an object matching by ID on the volume but it is out of the scope of the handle used for the operation.
FOUND_OUT_OF_SCOPE = 601,
/// The bucket array must be grown. Retry transaction after doing so.
ALLOCATE_BUCKET = 602,
/// The user/kernel marshalling buffer has overflowed.
MARSHALL_OVERFLOW = 603,
/// The supplied variant structure contains invalid data.
INVALID_VARIANT = 604,
/// The specified buffer contains ill-formed data.
BAD_COMPRESSION_BUFFER = 605,
/// {Audit Failed} An attempt to generate a security audit failed.
AUDIT_FAILED = 606,
/// The timer resolution was not previously set by the current process.
TIMER_RESOLUTION_NOT_SET = 607,
/// There is insufficient account information to log you on.
INSUFFICIENT_LOGON_INFO = 608,
/// {Invalid DLL Entrypoint} The dynamic link library %hs is not written correctly.
/// The stack pointer has been left in an inconsistent state.
/// The entrypoint should be declared as WINAPI or STDCALL.
/// Select YES to fail the DLL load. Select NO to continue execution.
/// Selecting NO may cause the application to operate incorrectly.
BAD_DLL_ENTRYPOINT = 609,
/// {Invalid Service Callback Entrypoint} The %hs service is not written correctly.
/// The stack pointer has been left in an inconsistent state.
/// The callback entrypoint should be declared as WINAPI or STDCALL.
/// Selecting OK will cause the service to continue operation.
/// However, the service process may operate incorrectly.
BAD_SERVICE_ENTRYPOINT = 610,
/// There is an IP address conflict with another system on the network.
IP_ADDRESS_CONFLICT1 = 611,
/// There is an IP address conflict with another system on the network.
IP_ADDRESS_CONFLICT2 = 612,
/// {Low On Registry Space} The system has reached the maximum size allowed for the system part of the registry. Additional storage requests will be ignored.
REGISTRY_QUOTA_LIMIT = 613,
/// A callback return system service cannot be executed when no callback is active.
NO_CALLBACK_ACTIVE = 614,
/// The password provided is too short to meet the policy of your user account. Please choose a longer password.
PWD_TOO_SHORT = 615,
/// The policy of your user account does not allow you to change passwords too frequently.
/// This is done to prevent users from changing back to a familiar, but potentially discovered, password.
/// If you feel your password has been compromised then please contact your administrator immediately to have a new one assigned.
PWD_TOO_RECENT = 616,
/// You have attempted to change your password to one that you have used in the past.
/// The policy of your user account does not allow this.
/// Please select a password that you have not previously used.
PWD_HISTORY_CONFLICT = 617,
/// The specified compression format is unsupported.
UNSUPPORTED_COMPRESSION = 618,
/// The specified hardware profile configuration is invalid.
INVALID_HW_PROFILE = 619,
/// The specified Plug and Play registry device path is invalid.
INVALID_PLUGPLAY_DEVICE_PATH = 620,
/// The specified quota list is internally inconsistent with its descriptor.
QUOTA_LIST_INCONSISTENT = 621,
/// {Windows Evaluation Notification} The evaluation period for this installation of Windows has expired. This system will shutdown in 1 hour.
/// To restore access to this installation of Windows, please upgrade this installation using a licensed distribution of this product.
EVALUATION_EXPIRATION = 622,
/// {Illegal System DLL Relocation} The system DLL %hs was relocated in memory. The application will not run properly.
/// The relocation occurred because the DLL %hs occupied an address range reserved for Windows system DLLs.
/// The vendor supplying the DLL should be contacted for a new DLL.
ILLEGAL_DLL_RELOCATION = 623,
/// {DLL Initialization Failed} The application failed to initialize because the window station is shutting down.
DLL_INIT_FAILED_LOGOFF = 624,
/// The validation process needs to continue on to the next step.
VALIDATE_CONTINUE = 625,
/// There are no more matches for the current index enumeration.
NO_MORE_MATCHES = 626,
/// The range could not be added to the range list because of a conflict.
RANGE_LIST_CONFLICT = 627,
/// The server process is running under a SID different than that required by client.
SERVER_SID_MISMATCH = 628,
/// A group marked use for deny only cannot be enabled.
CANT_ENABLE_DENY_ONLY = 629,
/// {EXCEPTION} Multiple floating point faults.
FLOAT_MULTIPLE_FAULTS = 630,
/// {EXCEPTION} Multiple floating point traps.
FLOAT_MULTIPLE_TRAPS = 631,
/// The requested interface is not supported.
NOINTERFACE = 632,
/// {System Standby Failed} The driver %hs does not support standby mode.
/// Updating this driver may allow the system to go to standby mode.
DRIVER_FAILED_SLEEP = 633,
/// The system file %1 has become corrupt and has been replaced.
CORRUPT_SYSTEM_FILE = 634,
/// {Virtual Memory Minimum Too Low} Your system is low on virtual memory.
/// Windows is increasing the size of your virtual memory paging file.
/// During this process, memory requests for some applications may be denied. For more information, see Help.
COMMITMENT_MINIMUM = 635,
/// A device was removed so enumeration must be restarted.
PNP_RESTART_ENUMERATION = 636,
/// {Fatal System Error} The system image %s is not properly signed.
/// The file has been replaced with the signed file. The system has been shut down.
SYSTEM_IMAGE_BAD_SIGNATURE = 637,
/// Device will not start without a reboot.
PNP_REBOOT_REQUIRED = 638,
/// There is not enough power to complete the requested operation.
INSUFFICIENT_POWER = 639,
/// ERROR_MULTIPLE_FAULT_VIOLATION
MULTIPLE_FAULT_VIOLATION = 640,
/// The system is in the process of shutting down.
SYSTEM_SHUTDOWN = 641,
/// An attempt to remove a processes DebugPort was made, but a port was not already associated with the process.
PORT_NOT_SET = 642,
/// This version of Windows is not compatible with the behavior version of directory forest, domain or domain controller.
DS_VERSION_CHECK_FAILURE = 643,
/// The specified range could not be found in the range list.
RANGE_NOT_FOUND = 644,
/// The driver was not loaded because the system is booting into safe mode.
NOT_SAFE_MODE_DRIVER = 646,
/// The driver was not loaded because it failed its initialization call.
FAILED_DRIVER_ENTRY = 647,
/// The "%hs" encountered an error while applying power or reading the device configuration.
/// This may be caused by a failure of your hardware or by a poor connection.
DEVICE_ENUMERATION_ERROR = 648,
/// The create operation failed because the name contained at least one mount point which resolves to a volume to which the specified device object is not attached.
MOUNT_POINT_NOT_RESOLVED = 649,
/// The device object parameter is either not a valid device object or is not attached to the volume specified by the file name.
INVALID_DEVICE_OBJECT_PARAMETER = 650,
/// A Machine Check Error has occurred.
/// Please check the system eventlog for additional information.
MCA_OCCURED = 651,
/// There was error [%2] processing the driver database.
DRIVER_DATABASE_ERROR = 652,
/// System hive size has exceeded its limit.
SYSTEM_HIVE_TOO_LARGE = 653,
/// The driver could not be loaded because a previous version of the driver is still in memory.
DRIVER_FAILED_PRIOR_UNLOAD = 654,
/// {Volume Shadow Copy Service} Please wait while the Volume Shadow Copy Service prepares volume %hs for hibernation.
VOLSNAP_PREPARE_HIBERNATE = 655,
/// The system has failed to hibernate (The error code is %hs).
/// Hibernation will be disabled until the system is restarted.
HIBERNATION_FAILURE = 656,
/// The password provided is too long to meet the policy of your user account. Please choose a shorter password.
PWD_TOO_LONG = 657,
/// The requested operation could not be completed due to a file system limitation.
FILE_SYSTEM_LIMITATION = 665,
/// An assertion failure has occurred.
ASSERTION_FAILURE = 668,
/// An error occurred in the ACPI subsystem.
ACPI_ERROR = 669,
/// WOW Assertion Error.
WOW_ASSERTION = 670,
/// A device is missing in the system BIOS MPS table. This device will not be used.
/// Please contact your system vendor for system BIOS update.
PNP_BAD_MPS_TABLE = 671,
/// A translator failed to translate resources.
PNP_TRANSLATION_FAILED = 672,
/// A IRQ translator failed to translate resources.
PNP_IRQ_TRANSLATION_FAILED = 673,
/// Driver %2 returned invalid ID for a child device (%3).
PNP_INVALID_ID = 674,
/// {Kernel Debugger Awakened} the system debugger was awakened by an interrupt.
WAKE_SYSTEM_DEBUGGER = 675,
/// {Handles Closed} Handles to objects have been automatically closed as a result of the requested operation.
HANDLES_CLOSED = 676,
/// {Too Much Information} The specified access control list (ACL) contained more information than was expected.
EXTRANEOUS_INFORMATION = 677,
/// This warning level status indicates that the transaction state already exists for the registry sub-tree, but that a transaction commit was previously aborted.
/// The commit has NOT been completed, but has not been rolled back either (so it may still be committed if desired).
RXACT_COMMIT_NECESSARY = 678,
/// {Media Changed} The media may have changed.
MEDIA_CHECK = 679,
/// {GUID Substitution} During the translation of a global identifier (GUID) to a Windows security ID (SID), no administratively-defined GUID prefix was found.
/// A substitute prefix was used, which will not compromise system security.
/// However, this may provide a more restrictive access than intended.
GUID_SUBSTITUTION_MADE = 680,
/// The create operation stopped after reaching a symbolic link.
STOPPED_ON_SYMLINK = 681,
/// A long jump has been executed.
LONGJUMP = 682,
/// The Plug and Play query operation was not successful.
PLUGPLAY_QUERY_VETOED = 683,
/// A frame consolidation has been executed.
UNWIND_CONSOLIDATE = 684,
/// {Registry Hive Recovered} Registry hive (file): %hs was corrupted and it has been recovered. Some data might have been lost.
REGISTRY_HIVE_RECOVERED = 685,
/// The application is attempting to run executable code from the module %hs. This may be insecure.
/// An alternative, %hs, is available. Should the application use the secure module %hs?
DLL_MIGHT_BE_INSECURE = 686,
/// The application is loading executable code from the module %hs.
/// This is secure, but may be incompatible with previous releases of the operating system.
/// An alternative, %hs, is available. Should the application use the secure module %hs?
DLL_MIGHT_BE_INCOMPATIBLE = 687,
/// Debugger did not handle the exception.
DBG_EXCEPTION_NOT_HANDLED = 688,
/// Debugger will reply later.
DBG_REPLY_LATER = 689,
/// Debugger cannot provide handle.
DBG_UNABLE_TO_PROVIDE_HANDLE = 690,
/// Debugger terminated thread.
DBG_TERMINATE_THREAD = 691,
/// Debugger terminated process.
DBG_TERMINATE_PROCESS = 692,
/// Debugger got control C.
DBG_CONTROL_C = 693,
/// Debugger printed exception on control C.
DBG_PRINTEXCEPTION_C = 694,
/// Debugger received RIP exception.
DBG_RIPEXCEPTION = 695,
/// Debugger received control break.