authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-06-04 10:08:55-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-06-04 10:08:55-04:00
log199bbb6292896330ced71dec2e5c58a49af5907e
treebe04fdb4932b340dfadbf207ed05970c63f61054
parente5b90651ba118cb0d3293c83bdfbc62c40f4c266

progress toward hello world without libc in windows


11 files changed, 2730 insertions(+), 137 deletions(-)

.gitignore+1
......@@ -1,6 +1,7 @@
11zig-cache/
22build/
33build-release/
4build-windows/
45/.cproject
56/.project
67/.settings/
CMakeLists.txt+2-1
......@@ -233,7 +233,8 @@ install(FILES "${CMAKE_SOURCE_DIR}/std/os/linux.zig" DESTINATION "${ZIG_STD_DEST
233233install(FILES "${CMAKE_SOURCE_DIR}/std/os/linux_i386.zig" DESTINATION "${ZIG_STD_DEST}/os")
234234install(FILES "${CMAKE_SOURCE_DIR}/std/os/linux_x86_64.zig" DESTINATION "${ZIG_STD_DEST}/os")
235235install(FILES "${CMAKE_SOURCE_DIR}/std/os/path.zig" DESTINATION "${ZIG_STD_DEST}/os")
236install(FILES "${CMAKE_SOURCE_DIR}/std/os/windows.zig" DESTINATION "${ZIG_STD_DEST}/os")
236install(FILES "${CMAKE_SOURCE_DIR}/std/os/windows/index.zig" DESTINATION "${ZIG_STD_DEST}/os/windows")
237install(FILES "${CMAKE_SOURCE_DIR}/std/os/windows/error.zig" DESTINATION "${ZIG_STD_DEST}/os/windows")
237238install(FILES "${CMAKE_SOURCE_DIR}/std/rand.zig" DESTINATION "${ZIG_STD_DEST}")
238239install(FILES "${CMAKE_SOURCE_DIR}/std/sort.zig" DESTINATION "${ZIG_STD_DEST}")
239240install(FILES "${CMAKE_SOURCE_DIR}/std/special/bootstrap.zig" DESTINATION "${ZIG_STD_DEST}/special")
src/link.cpp+49-53
......@@ -332,75 +332,71 @@ static void construct_linker_job_coff(LinkJob *lj) {
332332 find_libc_lib_path(g);
333333 }
334334
335 lj->args.append("-NOLOGO");
336
335337 if (g->zig_target.arch.arch == ZigLLVM_x86) {
336 lj->args.append("-m");
337 lj->args.append("i386pe");
338 lj->args.append("-MACHINE:X86");
338339 } else if (g->zig_target.arch.arch == ZigLLVM_x86_64) {
339 lj->args.append("-m");
340 lj->args.append("i386pep");
340 lj->args.append("-MACHINE:X64");
341341 } else if (g->zig_target.arch.arch == ZigLLVM_arm) {
342 lj->args.append("-m");
343 lj->args.append("thumb2pe");
342 lj->args.append("-MACHINE:ARM");
344343 }
345344
346345 if (g->windows_subsystem_windows) {
347 lj->args.append("--subsystem");
348 lj->args.append("windows");
346 lj->args.append("/SUBSYSTEM:windows");
349347 } else if (g->windows_subsystem_console) {
350 lj->args.append("--subsystem");
351 lj->args.append("console");
352 }
353
354 bool dll = g->out_type == OutTypeLib;
355 bool shared = !g->is_static && dll;
356 if (g->is_static) {
357 lj->args.append("-Bstatic");
358 } else {
359 if (dll) {
360 lj->args.append("--dll");
361 } else if (shared) {
362 lj->args.append("--shared");
363 }
364 lj->args.append("-Bdynamic");
365 if (dll || shared) {
366 lj->args.append("-e");
367 if (g->zig_target.arch.arch == ZigLLVM_x86) {
368 lj->args.append("_DllMainCRTStartup@12");
369 } else {
370 lj->args.append("DllMainCRTStartup");
371 }
372 lj->args.append("--enable-auto-image-base");
373 }
374 }
375
376 lj->args.append("-o");
377 lj->args.append(buf_ptr(&lj->out_file));
348 lj->args.append("/SUBSYSTEM:console");
349 }
350
351 //bool dll = g->out_type == OutTypeLib;
352 //bool shared = !g->is_static && dll;
353 //if (g->is_static) {
354 // lj->args.append("-Bstatic");
355 //} else {
356 // if (dll) {
357 // lj->args.append("--dll");
358 // } else if (shared) {
359 // lj->args.append("--shared");
360 // }
361 // lj->args.append("-Bdynamic");
362 // if (dll || shared) {
363 // lj->args.append("-e");
364 // if (g->zig_target.arch.arch == ZigLLVM_x86) {
365 // lj->args.append("_DllMainCRTStartup@12");
366 // } else {
367 // lj->args.append("DllMainCRTStartup");
368 // }
369 // lj->args.append("--enable-auto-image-base");
370 // }
371 //}
372
373 lj->args.append(buf_ptr(buf_sprintf("-OUT:%s", buf_ptr(&lj->out_file))));
378374
379375 if (lj->link_in_crt) {
380 if (shared || dll) {
381 lj->args.append(get_libc_file(g, "dllcrt2.o"));
382 } else {
383 if (g->windows_linker_unicode) {
384 lj->args.append(get_libc_file(g, "crt2u.o"));
385 } else {
386 lj->args.append(get_libc_file(g, "crt2.o"));
387 }
388 }
389 lj->args.append(get_libc_static_file(g, "crtbegin.o"));
376 zig_panic("TODO link in c runtime");
377 //if (shared || dll) {
378 // lj->args.append(get_libc_file(g, "dllcrt2.o"));
379 //} else {
380 // if (g->windows_linker_unicode) {
381 // lj->args.append(get_libc_file(g, "crt2u.o"));
382 // } else {
383 // lj->args.append(get_libc_file(g, "crt2.o"));
384 // }
385 //}
386 //lj->args.append(get_libc_static_file(g, "crtbegin.o"));
387 } else {
388 lj->args.append("-NODEFAULTLIB");
389 lj->args.append("-ENTRY:_start");
390390 }
391391
392392 for (size_t i = 0; i < g->lib_dirs.length; i += 1) {
393393 const char *lib_dir = g->lib_dirs.at(i);
394 lj->args.append("-L");
395 lj->args.append(lib_dir);
394 lj->args.append(buf_ptr(buf_sprintf("-LIBPATH:%s", lib_dir)));
396395 }
397396
398397 if (g->link_libc) {
399 lj->args.append("-L");
400 lj->args.append(buf_ptr(g->libc_lib_dir));
401
402 lj->args.append("-L");
403 lj->args.append(buf_ptr(g->libc_static_lib_dir));
398 lj->args.append(buf_ptr(buf_sprintf("-LIBPATH:%s", buf_ptr(g->libc_lib_dir))));
399 lj->args.append(buf_ptr(buf_sprintf("-LIBPATH:%s", buf_ptr(g->libc_static_lib_dir))));
404400 }
405401
406402 for (size_t i = 0; i < g->link_objects.length; i += 1) {
std/debug.zig+5-2
......@@ -30,14 +30,14 @@ pub coldcc fn panic(comptime format: []const u8, args: ...) -> noreturn {
3030 }
3131
3232 %%io.stderr.printf(format ++ "\n", args);
33 %%writeStackTrace(&io.stderr, &global_allocator, io.stderr.isTty(), 1);
33 %%writeStackTrace(&io.stderr, &global_allocator, io.stderr.isTty() %% false, 1);
3434 %%io.stderr.flush();
3535
3636 os.abort();
3737}
3838
3939pub fn printStackTrace() -> %void {
40 %return writeStackTrace(&io.stderr, &global_allocator, io.stderr.isTty(), 1);
40 %return writeStackTrace(&io.stderr, &global_allocator, io.stderr.isTty() %% false, 1);
4141 %return io.stderr.flush();
4242}
4343
......@@ -48,6 +48,9 @@ const RESET = "\x1b[0m";
4848
4949pub var user_main_fn: ?fn() -> %void = null;
5050
51error PathNotFound;
52error InvalidDebugInfo;
53
5154pub fn writeStackTrace(out_stream: &io.OutStream, allocator: &mem.Allocator, tty_color: bool,
5255 ignore_frame_count: usize) -> %void
5356{
std/io.zig+132-59
......@@ -3,6 +3,7 @@ const Os = builtin.Os;
33const system = switch(builtin.os) {
44 Os.linux => @import("os/linux.zig"),
55 Os.darwin => @import("os/darwin.zig"),
6 Os.windows => @import("os/windows/index.zig"),
67 else => @compileError("Unsupported OS"),
78};
89
......@@ -15,18 +16,27 @@ const mem = @import("mem.zig");
1516const Buffer = @import("buffer.zig").Buffer;
1617const fmt = @import("fmt.zig");
1718
19const is_posix = builtin.os != builtin.Os.windows;
20const is_windows = builtin.os == builtin.Os.windows;
21
1822pub var stdin = InStream {
19 .fd = system.STDIN_FILENO,
23 .fd = if (is_posix) system.STDIN_FILENO else {},
24 .handle_id = if (is_windows) system.STD_INPUT_HANDLE else {},
25 .handle = if (is_windows) null else {},
2026};
2127
2228pub var stdout = OutStream {
23 .fd = system.STDOUT_FILENO,
29 .fd = if (is_posix) system.STDOUT_FILENO else {},
30 .handle_id = if (is_windows) system.STD_OUTPUT_HANDLE else {},
31 .handle = if (is_windows) null else {},
2432 .buffer = undefined,
2533 .index = 0,
2634};
2735
2836pub var stderr = OutStream {
29 .fd = system.STDERR_FILENO,
37 .fd = if (is_posix) system.STDERR_FILENO else {},
38 .handle_id = if (is_windows) system.STD_ERROR_HANDLE else {},
39 .handle = if (is_windows) null else {},
3040 .buffer = undefined,
3141 .index = 0,
3242};
......@@ -58,6 +68,7 @@ error PathNotFound;
5868error NoMem;
5969error Unseekable;
6070error EndOfFile;
71error NoStdHandles;
6172
6273pub const OpenRead = 0b0001;
6374pub const OpenWrite = 0b0010;
......@@ -65,7 +76,9 @@ pub const OpenCreate = 0b0100;
6576pub const OpenTruncate = 0b1000;
6677
6778pub const OutStream = struct {
68 fd: i32,
79 fd: if (is_posix) i32 else void,
80 handle_id: if (is_windows) system.DWORD else void,
81 handle: if (is_windows) ?system.HANDLE else void,
6982 buffer: [os.page_size]u8,
7083 index: usize,
7184
......@@ -81,17 +94,20 @@ pub const OutStream = struct {
8194 /// otherwise if the fixed size buffer is too small, allocator is used to obtain the needed memory.
8295 /// Call close to clean up.
8396 pub fn openMode(path: []const u8, mode: usize, allocator: ?&mem.Allocator) -> %OutStream {
84 switch (builtin.os) {
85 Os.linux, Os.darwin, Os.macosx, Os.ios => {
86 const flags = system.O_LARGEFILE|system.O_WRONLY|system.O_CREAT|system.O_CLOEXEC|system.O_TRUNC;
87 const fd = %return os.posixOpen(path, flags, mode, allocator);
88 return OutStream {
89 .fd = fd,
90 .index = 0,
91 .buffer = undefined,
92 };
93 },
94 else => @compileError("Unsupported OS"),
97 if (is_posix) {
98 const flags = system.O_LARGEFILE|system.O_WRONLY|system.O_CREAT|system.O_CLOEXEC|system.O_TRUNC;
99 const fd = %return os.posixOpen(path, flags, mode, allocator);
100 return OutStream {
101 .fd = fd,
102 .handle = {},
103 .handle_id = {},
104 .index = 0,
105 .buffer = undefined,
106 };
107 } else if (is_windows) {
108 @compileError("TODO: windows OutStream.openMode");
109 } else {
110 @compileError("Unsupported OS");
95111 }
96112
97113 }
......@@ -105,7 +121,7 @@ pub const OutStream = struct {
105121 pub fn write(self: &OutStream, bytes: []const u8) -> %void {
106122 if (bytes.len >= self.buffer.len) {
107123 %return self.flush();
108 return os.posixWrite(self.fd, bytes);
124 return self.unbufferedWrite(bytes);
109125 }
110126
111127 var src_index: usize = 0;
......@@ -151,10 +167,10 @@ pub const OutStream = struct {
151167 }
152168
153169 pub fn flush(self: &OutStream) -> %void {
154 if (self.index != 0) {
155 %return os.posixWrite(self.fd, self.buffer[0..self.index]);
156 self.index = 0;
157 }
170 if (self.index == 0)
171 return;
172
173 return self.unbufferedWrite(self.buffer[0..self.index]);
158174 }
159175
160176 pub fn close(self: &OutStream) {
......@@ -162,15 +178,50 @@ pub const OutStream = struct {
162178 os.posixClose(self.fd);
163179 }
164180
165 pub fn isTty(self: &const OutStream) -> bool {
166 return os.posix.isatty(self.fd);
181 pub fn isTty(self: &OutStream) -> %bool {
182 if (is_posix) {
183 return system.isatty(self.fd);
184 } else if (is_windows) {
185 return os.windowsIsTty(%return self.getHandle());
186 } else {
187 @compileError("Unsupported OS");
188 }
189 }
190
191 fn getHandle(self: &OutStream) -> %system.HANDLE {
192 if (self.handle) |handle| return handle;
193 if (system.GetStdHandle(self.handle_id)) |handle| {
194 if (handle == system.INVALID_HANDLE_VALUE) {
195 return error.Unexpected;
196 }
197 self.handle = handle;
198 return handle;
199 } else {
200 return error.NoStdHandles;
201 }
202 }
203
204 fn unbufferedWrite(self: &OutStream, bytes: []const u8) -> %void {
205 if (is_posix) {
206 %return os.posixWrite(self.fd, self.buffer[0..self.index]);
207 self.index = 0;
208 } else if (is_windows) {
209 const handle = %return self.getHandle();
210 %return os.windowsWrite(handle, self.buffer[0..self.index]);
211 self.index = 0;
212 } else {
213 @compileError("Unsupported OS");
214 }
167215 }
216
168217};
169218
170219// TODO created a BufferedInStream struct and move some of this code there
171220// BufferedInStream API goes on top of minimal InStream API.
172221pub const InStream = struct {
173 fd: i32,
222 fd: if (is_posix) i32 else void,
223 handle_id: if (is_windows) system.DWORD else void,
224 handle: if (is_windows) ?system.HANDLE else void,
174225
175226 /// `path` may need to be copied in memory to add a null terminating byte. In this case
176227 /// a fixed size buffer of size std.os.max_noalloc_path_len is an attempted solution. If the fixed
......@@ -178,54 +229,57 @@ pub const InStream = struct {
178229 /// otherwise if the fixed size buffer is too small, allocator is used to obtain the needed memory.
179230 /// Call close to clean up.
180231 pub fn open(path: []const u8, allocator: ?&mem.Allocator) -> %InStream {
181 switch (builtin.os) {
182 Os.linux, Os.darwin, Os.macosx, Os.ios => {
183 const flags = system.O_LARGEFILE|system.O_RDONLY;
184 const fd = %return os.posixOpen(path, flags, 0, allocator);
185 return InStream {
186 .fd = fd,
187 };
188 },
189 else => @compileError("Unsupported OS"),
232 if (is_posix) {
233 const flags = system.O_LARGEFILE|system.O_RDONLY;
234 const fd = %return os.posixOpen(path, flags, 0, allocator);
235 return InStream {
236 .fd = fd,
237 .handle_id = {},
238 .handle = {},
239 };
240 } else if (is_windows) {
241 @compileError("TODO windows InStream.open");
242 } else {
243 @compileError("Unsupported OS");
190244 }
191245 }
192246
193247 /// Upon success, the stream is in an uninitialized state. To continue using it,
194248 /// you must use the open() function.
195249 pub fn close(self: &InStream) {
196 switch (builtin.os) {
197 Os.linux, Os.darwin, Os.macosx, Os.ios => {
198 os.posixClose(self.fd);
199 },
200 else => @compileError("Unsupported OS"),
250 if (is_posix) {
251 os.posixClose(self.fd);
252 } else {
253 @compileError("Unsupported OS");
201254 }
202255 }
203256
204257 /// Returns the number of bytes read. If the number read is smaller than buf.len, then
205258 /// the stream reached End Of File.
206259 pub fn read(is: &InStream, buf: []u8) -> %usize {
207 switch (builtin.os) {
208 Os.linux, Os.darwin => {
209 var index: usize = 0;
210 while (index < buf.len) {
211 const amt_read = system.read(is.fd, &buf[index], buf.len - index);
212 const read_err = system.getErrno(amt_read);
213 if (read_err > 0) {
214 switch (read_err) {
215 errno.EINTR => continue,
216 errno.EINVAL => unreachable,
217 errno.EFAULT => unreachable,
218 errno.EBADF => return error.BadFd,
219 errno.EIO => return error.Io,
220 else => return error.Unexpected,
221 }
260 if (is_posix) {
261 var index: usize = 0;
262 while (index < buf.len) {
263 const amt_read = system.read(is.fd, &buf[index], buf.len - index);
264 const read_err = system.getErrno(amt_read);
265 if (read_err > 0) {
266 switch (read_err) {
267 errno.EINTR => continue,
268 errno.EINVAL => unreachable,
269 errno.EFAULT => unreachable,
270 errno.EBADF => return error.BadFd,
271 errno.EIO => return error.Io,
272 else => return error.Unexpected,
222273 }
223 if (amt_read == 0) return index;
224 index += amt_read;
225274 }
226 return index;
227 },
228 else => @compileError("Unsupported OS"),
275 if (amt_read == 0) return index;
276 index += amt_read;
277 }
278 return index;
279 } else if (is_windows) {
280 @compileError("TODO windows read impl");
281 } else {
282 @compileError("Unsupported OS");
229283 }
230284 }
231285
......@@ -361,8 +415,27 @@ pub const InStream = struct {
361415 }
362416 }
363417
364 pub fn isTty(self: &const InStream) -> bool {
365 return os.posix.isatty(self.fd);
418 pub fn isTty(self: &InStream) -> %bool {
419 if (is_posix) {
420 return system.isatty(self.fd);
421 } else if (is_windows) {
422 return os.windowsIsTty(%return self.getHandle());
423 } else {
424 @compileError("Unsupported OS");
425 }
426 }
427
428 fn getHandle(self: &InStream) -> %system.HANDLE {
429 if (self.handle) |handle| return handle;
430 if (system.GetStdHandle(self.handle_id)) |handle| {
431 if (handle == system.INVALID_HANDLE_VALUE) {
432 return error.Unexpected;
433 }
434 self.handle = handle;
435 return handle;
436 } else {
437 return error.NoStdHandles;
438 }
366439 }
367440};
368441
std/os/child_process.zig+6
......@@ -165,6 +165,8 @@ pub const ChildProcess = struct {
165165 .stdin = if (stdin == StdIo.Pipe) {
166166 io.OutStream {
167167 .fd = stdin_pipe[1],
168 .handle = {},
169 .handle_id = {},
168170 .buffer = undefined,
169171 .index = 0,
170172 }
......@@ -174,6 +176,8 @@ pub const ChildProcess = struct {
174176 .stdout = if (stdout == StdIo.Pipe) {
175177 io.InStream {
176178 .fd = stdout_pipe[0],
179 .handle = {},
180 .handle_id = {},
177181 }
178182 } else {
179183 null
......@@ -181,6 +185,8 @@ pub const ChildProcess = struct {
181185 .stderr = if (stderr == StdIo.Pipe) {
182186 io.InStream {
183187 .fd = stderr_pipe[0],
188 .handle = {},
189 .handle_id = {},
184190 }
185191 } else {
186192 null
std/os/index.zig+53-3
......@@ -1,12 +1,11 @@
11const builtin = @import("builtin");
22const Os = builtin.Os;
3pub const windows = @import("windows.zig");
3pub const windows = @import("windows/index.zig");
44pub const darwin = @import("darwin.zig");
55pub const linux = @import("linux.zig");
66pub const posix = switch(builtin.os) {
77 Os.linux => linux,
88 Os.darwin, Os.macosx, Os.ios => darwin,
9 Os.windows => windows,
109 else => @compileError("Unsupported OS"),
1110};
1211
......@@ -113,6 +112,9 @@ pub coldcc fn abort() -> noreturn {
113112 _ = posix.raise(posix.SIGKILL);
114113 while (true) {}
115114 },
115 Os.windows => {
116 windows.ExitProcess(1);
117 },
116118 else => @compileError("Unsupported OS"),
117119 }
118120}
......@@ -132,7 +134,12 @@ pub fn posixClose(fd: i32) {
132134error WouldBlock;
133135error FileClosed;
134136error DestinationAddressRequired;
137error DiskQuota;
138error FileTooBig;
135139error FileSystem;
140error NoSpaceLeft;
141error BrokenPipe;
142error Unexpected;
136143
137144/// Calls POSIX write, and keeps trying if it gets interrupted.
138145pub fn posixWrite(fd: i32, bytes: []const u8) -> %void {
......@@ -151,7 +158,7 @@ pub fn posixWrite(fd: i32, bytes: []const u8) -> %void {
151158 errno.EIO => error.FileSystem,
152159 errno.ENOSPC => error.NoSpaceLeft,
153160 errno.EPERM => error.AccessDenied,
154 errno.EPIPE => error.PipeFail,
161 errno.EPIPE => error.BrokenPipe,
155162 else => error.Unexpected,
156163 }
157164 }
......@@ -159,6 +166,49 @@ pub fn posixWrite(fd: i32, bytes: []const u8) -> %void {
159166 }
160167}
161168
169error SystemResources;
170error OperationAborted;
171error IoPending;
172error BrokenPipe;
173
174pub fn windowsWrite(handle: windows.HANDLE, bytes: []const u8) -> %void {
175 if (!windows.WriteFile(handle, @ptrCast(&const c_void, bytes.ptr), u32(bytes.len), null, null)) {
176 return switch (windows.GetLastError()) {
177 windows.ERROR.INVALID_USER_BUFFER => error.SystemResources,
178 windows.ERROR.NOT_ENOUGH_MEMORY => error.SystemResources,
179 windows.ERROR.OPERATION_ABORTED => error.OperationAborted,
180 windows.ERROR.NOT_ENOUGH_QUOTA => error.SystemResources,
181 windows.ERROR.IO_PENDING => error.IoPending,
182 windows.ERROR.BROKEN_PIPE => error.BrokenPipe,
183 else => error.Unexpected,
184 };
185 }
186}
187
188pub fn windowsIsTty(handle: windows.HANDLE) -> bool {
189 if (windowsIsCygwinPty(handle))
190 return true;
191
192 var out: windows.DWORD = undefined;
193 return windows.GetConsoleMode(handle, &out);
194}
195
196pub fn windowsIsCygwinPty(handle: windows.HANDLE) -> bool {
197 const size = @sizeOf(windows.FILE_NAME_INFO);
198 var name_info_bytes = []u8{0} ** (size + windows.MAX_PATH);
199
200 if (!windows.GetFileInformationByHandleEx(handle, windows.FileNameInfo,
201 @ptrCast(&c_void, &name_info_bytes[0]), u32(name_info_bytes.len)))
202 {
203 return true;
204 }
205
206 const name_info = @ptrCast(&const windows.FILE_NAME_INFO, &name_info_bytes[0]);
207 const name_bytes = name_info_bytes[size..size + usize(name_info.FileNameLength)];
208 const name_wide = ([]u16)(name_bytes);
209 return mem.indexOf(u16, name_wide, []u16{'m','s','y','s','-'}) != null or
210 mem.indexOf(u16, name_wide, []u16{'-','p','t','y'}) != null;
211}
162212
163213/// ::file_path may need to be copied in memory to add a null terminating byte. In this case
164214/// a fixed size buffer of size ::max_noalloc_path_len is an attempted solution. If the fixed
std/os/windows.zig deleted-17
......@@ -1,17 +0,0 @@
1pub extern fn CryptAcquireContext(phProv: &HCRYPTPROV, pszContainer: LPCTSTR,
2 pszProvider: LPCTSTR, dwProvType: DWORD, dwFlags: DWORD) -> bool;
3
4pub extern fn CryptReleaseContext(hProv: HCRYPTPROV, dwFlags: DWORD) -> bool;
5
6pub extern fn CryptGenRandom(hProv: HCRYPTPROV, dwLen: DWORD, pbBuffer: &BYTE) -> bool;
7
8pub const PROV_RSA_FULL = 1;
9
10
11pub const BYTE = u8;
12pub const DWORD = u32;
13// TODO something about unicode WCHAR vs char
14pub const TCHAR = u8;
15pub const LPCTSTR = ?&const TCHAR;
16pub const ULONG_PTR = usize;
17pub const HCRYPTPROV = ULONG_PTR;
std/os/windows/error.zig created+2379
......@@ -0,0 +1,2379 @@
1/// The operation completed successfully.
2pub const SUCCESS = 0;
3/// Incorrect function.
4pub const INVALID_FUNCTION = 1;
5/// The system cannot find the file specified.
6pub const FILE_NOT_FOUND = 2;
7/// The system cannot find the path specified.
8pub const PATH_NOT_FOUND = 3;
9/// The system cannot open the file.
10pub const TOO_MANY_OPEN_FILES = 4;
11/// Access is denied.
12pub const ACCESS_DENIED = 5;
13/// The handle is invalid.
14pub const INVALID_HANDLE = 6;
15/// The storage control blocks were destroyed.
16pub const ARENA_TRASHED = 7;
17/// Not enough storage is available to process this command.
18pub const NOT_ENOUGH_MEMORY = 8;
19/// The storage control block address is invalid.
20pub const INVALID_BLOCK = 9;
21/// The environment is incorrect.
22pub const BAD_ENVIRONMENT = 10;
23/// An attempt was made to load a program with an incorrect format.
24pub const BAD_FORMAT = 11;
25/// The access code is invalid.
26pub const INVALID_ACCESS = 12;
27/// The data is invalid.
28pub const INVALID_DATA = 13;
29/// Not enough storage is available to complete this operation.
30pub const OUTOFMEMORY = 14;
31/// The system cannot find the drive specified.
32pub const INVALID_DRIVE = 15;
33/// The directory cannot be removed.
34pub const CURRENT_DIRECTORY = 16;
35/// The system cannot move the file to a different disk drive.
36pub const NOT_SAME_DEVICE = 17;
37/// There are no more files.
38pub const NO_MORE_FILES = 18;
39/// The media is write protected.
40pub const WRITE_PROTECT = 19;
41/// The system cannot find the device specified.
42pub const BAD_UNIT = 20;
43/// The device is not ready.
44pub const NOT_READY = 21;
45/// The device does not recognize the command.
46pub const BAD_COMMAND = 22;
47/// Data error (cyclic redundancy check).
48pub const CRC = 23;
49/// The program issued a command but the command length is incorrect.
50pub const BAD_LENGTH = 24;
51/// The drive cannot locate a specific area or track on the disk.
52pub const SEEK = 25;
53/// The specified disk or diskette cannot be accessed.
54pub const NOT_DOS_DISK = 26;
55/// The drive cannot find the sector requested.
56pub const SECTOR_NOT_FOUND = 27;
57/// The printer is out of paper.
58pub const OUT_OF_PAPER = 28;
59/// The system cannot write to the specified device.
60pub const WRITE_FAULT = 29;
61/// The system cannot read from the specified device.
62pub const READ_FAULT = 30;
63/// A device attached to the system is not functioning.
64pub const GEN_FAILURE = 31;
65/// The process cannot access the file because it is being used by another process.
66pub const SHARING_VIOLATION = 32;
67/// The process cannot access the file because another process has locked a portion of the file.
68pub const LOCK_VIOLATION = 33;
69/// The wrong diskette is in the drive. Insert %2 (Volume Serial Number: %3) into drive %1.
70pub const WRONG_DISK = 34;
71/// Too many files opened for sharing.
72pub const SHARING_BUFFER_EXCEEDED = 36;
73/// Reached the end of the file.
74pub const HANDLE_EOF = 38;
75/// The disk is full.
76pub const HANDLE_DISK_FULL = 39;
77/// The request is not supported.
78pub const NOT_SUPPORTED = 50;
79/// 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.
80pub const REM_NOT_LIST = 51;
81/// 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.
82pub const DUP_NAME = 52;
83/// The network path was not found.
84pub const BAD_NETPATH = 53;
85/// The network is busy.
86pub const NETWORK_BUSY = 54;
87/// The specified network resource or device is no longer available.
88pub const DEV_NOT_EXIST = 55;
89/// The network BIOS command limit has been reached.
90pub const TOO_MANY_CMDS = 56;
91/// A network adapter hardware error occurred.
92pub const ADAP_HDW_ERR = 57;
93/// The specified server cannot perform the requested operation.
94pub const BAD_NET_RESP = 58;
95/// An unexpected network error occurred.
96pub const UNEXP_NET_ERR = 59;
97/// The remote adapter is not compatible.
98pub const BAD_REM_ADAP = 60;
99/// The printer queue is full.
100pub const PRINTQ_FULL = 61;
101/// Space to store the file waiting to be printed is not available on the server.
102pub const NO_SPOOL_SPACE = 62;
103/// Your file waiting to be printed was deleted.
104pub const PRINT_CANCELLED = 63;
105/// The specified network name is no longer available.
106pub const NETNAME_DELETED = 64;
107/// Network access is denied.
108pub const NETWORK_ACCESS_DENIED = 65;
109/// The network resource type is not correct.
110pub const BAD_DEV_TYPE = 66;
111/// The network name cannot be found.
112pub const BAD_NET_NAME = 67;
113/// The name limit for the local computer network adapter card was exceeded.
114pub const TOO_MANY_NAMES = 68;
115/// The network BIOS session limit was exceeded.
116pub const TOO_MANY_SESS = 69;
117/// The remote server has been paused or is in the process of being started.
118pub const SHARING_PAUSED = 70;
119/// 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.
120pub const REQ_NOT_ACCEP = 71;
121/// The specified printer or disk device has been paused.
122pub const REDIR_PAUSED = 72;
123/// The file exists.
124pub const FILE_EXISTS = 80;
125/// The directory or file cannot be created.
126pub const CANNOT_MAKE = 82;
127/// Fail on INT 24.
128pub const FAIL_I24 = 83;
129/// Storage to process this request is not available.
130pub const OUT_OF_STRUCTURES = 84;
131/// The local device name is already in use.
132pub const ALREADY_ASSIGNED = 85;
133/// The specified network password is not correct.
134pub const INVALID_PASSWORD = 86;
135/// The parameter is incorrect.
136pub const INVALID_PARAMETER = 87;
137/// A write fault occurred on the network.
138pub const NET_WRITE_FAULT = 88;
139/// The system cannot start another process at this time.
140pub const NO_PROC_SLOTS = 89;
141/// Cannot create another system semaphore.
142pub const TOO_MANY_SEMAPHORES = 100;
143/// The exclusive semaphore is owned by another process.
144pub const EXCL_SEM_ALREADY_OWNED = 101;
145/// The semaphore is set and cannot be closed.
146pub const SEM_IS_SET = 102;
147/// The semaphore cannot be set again.
148pub const TOO_MANY_SEM_REQUESTS = 103;
149/// Cannot request exclusive semaphores at interrupt time.
150pub const INVALID_AT_INTERRUPT_TIME = 104;
151/// The previous ownership of this semaphore has ended.
152pub const SEM_OWNER_DIED = 105;
153/// Insert the diskette for drive %1.
154pub const SEM_USER_LIMIT = 106;
155/// The program stopped because an alternate diskette was not inserted.
156pub const DISK_CHANGE = 107;
157/// The disk is in use or locked by another process.
158pub const DRIVE_LOCKED = 108;
159/// The pipe has been ended.
160pub const BROKEN_PIPE = 109;
161/// The system cannot open the device or file specified.
162pub const OPEN_FAILED = 110;
163/// The file name is too long.
164pub const BUFFER_OVERFLOW = 111;
165/// There is not enough space on the disk.
166pub const DISK_FULL = 112;
167/// No more internal file identifiers available.
168pub const NO_MORE_SEARCH_HANDLES = 113;
169/// The target internal file identifier is incorrect.
170pub const INVALID_TARGET_HANDLE = 114;
171/// The IOCTL call made by the application program is not correct.
172pub const INVALID_CATEGORY = 117;
173/// The verify-on-write switch parameter value is not correct.
174pub const INVALID_VERIFY_SWITCH = 118;
175/// The system does not support the command requested.
176pub const BAD_DRIVER_LEVEL = 119;
177/// This function is not supported on this system.
178pub const CALL_NOT_IMPLEMENTED = 120;
179/// The semaphore timeout period has expired.
180pub const SEM_TIMEOUT = 121;
181/// The data area passed to a system call is too small.
182pub const INSUFFICIENT_BUFFER = 122;
183/// The filename, directory name, or volume label syntax is incorrect.
184pub const INVALID_NAME = 123;
185/// The system call level is not correct.
186pub const INVALID_LEVEL = 124;
187/// The disk has no volume label.
188pub const NO_VOLUME_LABEL = 125;
189/// The specified module could not be found.
190pub const MOD_NOT_FOUND = 126;
191/// The specified procedure could not be found.
192pub const PROC_NOT_FOUND = 127;
193/// There are no child processes to wait for.
194pub const WAIT_NO_CHILDREN = 128;
195/// The %1 application cannot be run in Win32 mode.
196pub const CHILD_NOT_COMPLETE = 129;
197/// Attempt to use a file handle to an open disk partition for an operation other than raw disk I/O.
198pub const DIRECT_ACCESS_HANDLE = 130;
199/// An attempt was made to move the file pointer before the beginning of the file.
200pub const NEGATIVE_SEEK = 131;
201/// The file pointer cannot be set on the specified device or file.
202pub const SEEK_ON_DEVICE = 132;
203/// A JOIN or SUBST command cannot be used for a drive that contains previously joined drives.
204pub const IS_JOIN_TARGET = 133;
205/// An attempt was made to use a JOIN or SUBST command on a drive that has already been joined.
206pub const IS_JOINED = 134;
207/// An attempt was made to use a JOIN or SUBST command on a drive that has already been substituted.
208pub const IS_SUBSTED = 135;
209/// The system tried to delete the JOIN of a drive that is not joined.
210pub const NOT_JOINED = 136;
211/// The system tried to delete the substitution of a drive that is not substituted.
212pub const NOT_SUBSTED = 137;
213/// The system tried to join a drive to a directory on a joined drive.
214pub const JOIN_TO_JOIN = 138;
215/// The system tried to substitute a drive to a directory on a substituted drive.
216pub const SUBST_TO_SUBST = 139;
217/// The system tried to join a drive to a directory on a substituted drive.
218pub const JOIN_TO_SUBST = 140;
219/// The system tried to SUBST a drive to a directory on a joined drive.
220pub const SUBST_TO_JOIN = 141;
221/// The system cannot perform a JOIN or SUBST at this time.
222pub const BUSY_DRIVE = 142;
223/// The system cannot join or substitute a drive to or for a directory on the same drive.
224pub const SAME_DRIVE = 143;
225/// The directory is not a subdirectory of the root directory.
226pub const DIR_NOT_ROOT = 144;
227/// The directory is not empty.
228pub const DIR_NOT_EMPTY = 145;
229/// The path specified is being used in a substitute.
230pub const IS_SUBST_PATH = 146;
231/// Not enough resources are available to process this command.
232pub const IS_JOIN_PATH = 147;
233/// The path specified cannot be used at this time.
234pub const PATH_BUSY = 148;
235/// An attempt was made to join or substitute a drive for which a directory on the drive is the target of a previous substitute.
236pub const IS_SUBST_TARGET = 149;
237/// System trace information was not specified in your CONFIG.SYS file, or tracing is disallowed.
238pub const SYSTEM_TRACE = 150;
239/// The number of specified semaphore events for DosMuxSemWait is not correct.
240pub const INVALID_EVENT_COUNT = 151;
241/// DosMuxSemWait did not execute; too many semaphores are already set.
242pub const TOO_MANY_MUXWAITERS = 152;
243/// The DosMuxSemWait list is not correct.
244pub const INVALID_LIST_FORMAT = 153;
245/// The volume label you entered exceeds the label character limit of the target file system.
246pub const LABEL_TOO_LONG = 154;
247/// Cannot create another thread.
248pub const TOO_MANY_TCBS = 155;
249/// The recipient process has refused the signal.
250pub const SIGNAL_REFUSED = 156;
251/// The segment is already discarded and cannot be locked.
252pub const DISCARDED = 157;
253/// The segment is already unlocked.
254pub const NOT_LOCKED = 158;
255/// The address for the thread ID is not correct.
256pub const BAD_THREADID_ADDR = 159;
257/// One or more arguments are not correct.
258pub const BAD_ARGUMENTS = 160;
259/// The specified path is invalid.
260pub const BAD_PATHNAME = 161;
261/// A signal is already pending.
262pub const SIGNAL_PENDING = 162;
263/// No more threads can be created in the system.
264pub const MAX_THRDS_REACHED = 164;
265/// Unable to lock a region of a file.
266pub const LOCK_FAILED = 167;
267/// The requested resource is in use.
268pub const BUSY = 170;
269/// Device's command support detection is in progress.
270pub const DEVICE_SUPPORT_IN_PROGRESS = 171;
271/// A lock request was not outstanding for the supplied cancel region.
272pub const CANCEL_VIOLATION = 173;
273/// The file system does not support atomic changes to the lock type.
274pub const ATOMIC_LOCKS_NOT_SUPPORTED = 174;
275/// The system detected a segment number that was not correct.
276pub const INVALID_SEGMENT_NUMBER = 180;
277/// The operating system cannot run %1.
278pub const INVALID_ORDINAL = 182;
279/// Cannot create a file when that file already exists.
280pub const ALREADY_EXISTS = 183;
281/// The flag passed is not correct.
282pub const INVALID_FLAG_NUMBER = 186;
283/// The specified system semaphore name was not found.
284pub const SEM_NOT_FOUND = 187;
285/// The operating system cannot run %1.
286pub const INVALID_STARTING_CODESEG = 188;
287/// The operating system cannot run %1.
288pub const INVALID_STACKSEG = 189;
289/// The operating system cannot run %1.
290pub const INVALID_MODULETYPE = 190;
291/// Cannot run %1 in Win32 mode.
292pub const INVALID_EXE_SIGNATURE = 191;
293/// The operating system cannot run %1.
294pub const EXE_MARKED_INVALID = 192;
295/// %1 is not a valid Win32 application.
296pub const BAD_EXE_FORMAT = 193;
297/// The operating system cannot run %1.
298pub const ITERATED_DATA_EXCEEDS_64k = 194;
299/// The operating system cannot run %1.
300pub const INVALID_MINALLOCSIZE = 195;
301/// The operating system cannot run this application program.
302pub const DYNLINK_FROM_INVALID_RING = 196;
303/// The operating system is not presently configured to run this application.
304pub const IOPL_NOT_ENABLED = 197;
305/// The operating system cannot run %1.
306pub const INVALID_SEGDPL = 198;
307/// The operating system cannot run this application program.
308pub const AUTODATASEG_EXCEEDS_64k = 199;
309/// The code segment cannot be greater than or equal to 64K.
310pub const RING2SEG_MUST_BE_MOVABLE = 200;
311/// The operating system cannot run %1.
312pub const RELOC_CHAIN_XEEDS_SEGLIM = 201;
313/// The operating system cannot run %1.
314pub const INFLOOP_IN_RELOC_CHAIN = 202;
315/// The system could not find the environment option that was entered.
316pub const ENVVAR_NOT_FOUND = 203;
317/// No process in the command subtree has a signal handler.
318pub const NO_SIGNAL_SENT = 205;
319/// The filename or extension is too long.
320pub const FILENAME_EXCED_RANGE = 206;
321/// The ring 2 stack is in use.
322pub const RING2_STACK_IN_USE = 207;
323/// The global filename characters, * or ?, are entered incorrectly or too many global filename characters are specified.
324pub const META_EXPANSION_TOO_LONG = 208;
325/// The signal being posted is not correct.
326pub const INVALID_SIGNAL_NUMBER = 209;
327/// The signal handler cannot be set.
328pub const THREAD_1_INACTIVE = 210;
329/// The segment is locked and cannot be reallocated.
330pub const LOCKED = 212;
331/// Too many dynamic-link modules are attached to this program or dynamic-link module.
332pub const TOO_MANY_MODULES = 214;
333/// Cannot nest calls to LoadModule.
334pub const NESTING_NOT_ALLOWED = 215;
335/// 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.
336pub const EXE_MACHINE_TYPE_MISMATCH = 216;
337/// The image file %1 is signed, unable to modify.
338pub const EXE_CANNOT_MODIFY_SIGNED_BINARY = 217;
339/// The image file %1 is strong signed, unable to modify.
340pub const EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY = 218;
341/// This file is checked out or locked for editing by another user.
342pub const FILE_CHECKED_OUT = 220;
343/// The file must be checked out before saving changes.
344pub const CHECKOUT_REQUIRED = 221;
345/// The file type being saved or retrieved has been blocked.
346pub const BAD_FILE_TYPE = 222;
347/// The file size exceeds the limit allowed and cannot be saved.
348pub const FILE_TOO_LARGE = 223;
349/// 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.
350pub const FORMS_AUTH_REQUIRED = 224;
351/// Operation did not complete successfully because the file contains a virus or potentially unwanted software.
352pub const VIRUS_INFECTED = 225;
353/// 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.
354pub const VIRUS_DELETED = 226;
355/// The pipe is local.
356pub const PIPE_LOCAL = 229;
357/// The pipe state is invalid.
358pub const BAD_PIPE = 230;
359/// All pipe instances are busy.
360pub const PIPE_BUSY = 231;
361/// The pipe is being closed.
362pub const NO_DATA = 232;
363/// No process is on the other end of the pipe.
364pub const PIPE_NOT_CONNECTED = 233;
365/// More data is available.
366pub const MORE_DATA = 234;
367/// The session was canceled.
368pub const VC_DISCONNECTED = 240;
369/// The specified extended attribute name was invalid.
370pub const INVALID_EA_NAME = 254;
371/// The extended attributes are inconsistent.
372pub const EA_LIST_INCONSISTENT = 255;
373/// The wait operation timed out.
374pub const IMEOUT = 258;
375/// No more data is available.
376pub const NO_MORE_ITEMS = 259;
377/// The copy functions cannot be used.
378pub const CANNOT_COPY = 266;
379/// The directory name is invalid.
380pub const DIRECTORY = 267;
381/// The extended attributes did not fit in the buffer.
382pub const EAS_DIDNT_FIT = 275;
383/// The extended attribute file on the mounted file system is corrupt.
384pub const EA_FILE_CORRUPT = 276;
385/// The extended attribute table file is full.
386pub const EA_TABLE_FULL = 277;
387/// The specified extended attribute handle is invalid.
388pub const INVALID_EA_HANDLE = 278;
389/// The mounted file system does not support extended attributes.
390pub const EAS_NOT_SUPPORTED = 282;
391/// Attempt to release mutex not owned by caller.
392pub const NOT_OWNER = 288;
393/// Too many posts were made to a semaphore.
394pub const TOO_MANY_POSTS = 298;
395/// Only part of a ReadProcessMemory or WriteProcessMemory request was completed.
396pub const PARTIAL_COPY = 299;
397/// The oplock request is denied.
398pub const OPLOCK_NOT_GRANTED = 300;
399/// An invalid oplock acknowledgment was received by the system.
400pub const INVALID_OPLOCK_PROTOCOL = 301;
401/// The volume is too fragmented to complete this operation.
402pub const DISK_TOO_FRAGMENTED = 302;
403/// The file cannot be opened because it is in the process of being deleted.
404pub const DELETE_PENDING = 303;
405/// Short name settings may not be changed on this volume due to the global registry setting.
406pub const INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING = 304;
407/// Short names are not enabled on this volume.
408pub const SHORT_NAMES_NOT_ENABLED_ON_VOLUME = 305;
409/// The security stream for the given volume is in an inconsistent state. Please run CHKDSK on the volume.
410pub const SECURITY_STREAM_IS_INCONSISTENT = 306;
411/// A requested file lock operation cannot be processed due to an invalid byte range.
412pub const INVALID_LOCK_RANGE = 307;
413/// The subsystem needed to support the image type is not present.
414pub const IMAGE_SUBSYSTEM_NOT_PRESENT = 308;
415/// The specified file already has a notification GUID associated with it.
416pub const NOTIFICATION_GUID_ALREADY_DEFINED = 309;
417/// An invalid exception handler routine has been detected.
418pub const INVALID_EXCEPTION_HANDLER = 310;
419/// Duplicate privileges were specified for the token.
420pub const DUPLICATE_PRIVILEGES = 311;
421/// No ranges for the specified operation were able to be processed.
422pub const NO_RANGES_PROCESSED = 312;
423/// Operation is not allowed on a file system internal file.
424pub const NOT_ALLOWED_ON_SYSTEM_FILE = 313;
425/// The physical resources of this disk have been exhausted.
426pub const DISK_RESOURCES_EXHAUSTED = 314;
427/// The token representing the data is invalid.
428pub const INVALID_TOKEN = 315;
429/// The device does not support the command feature.
430pub const DEVICE_FEATURE_NOT_SUPPORTED = 316;
431/// The system cannot find message text for message number 0x%1 in the message file for %2.
432pub const MR_MID_NOT_FOUND = 317;
433/// The scope specified was not found.
434pub const SCOPE_NOT_FOUND = 318;
435/// The Central Access Policy specified is not defined on the target machine.
436pub const UNDEFINED_SCOPE = 319;
437/// The Central Access Policy obtained from Active Directory is invalid.
438pub const INVALID_CAP = 320;
439/// The device is unreachable.
440pub const DEVICE_UNREACHABLE = 321;
441/// The target device has insufficient resources to complete the operation.
442pub const DEVICE_NO_RESOURCES = 322;
443/// A data integrity checksum error occurred. Data in the file stream is corrupt.
444pub const DATA_CHECKSUM_ERROR = 323;
445/// An attempt was made to modify both a KERNEL and normal Extended Attribute (EA) in the same operation.
446pub const INTERMIXED_KERNEL_EA_OPERATION = 324;
447/// Device does not support file-level TRIM.
448pub const FILE_LEVEL_TRIM_NOT_SUPPORTED = 326;
449/// The command specified a data offset that does not align to the device's granularity/alignment.
450pub const OFFSET_ALIGNMENT_VIOLATION = 327;
451/// The command specified an invalid field in its parameter list.
452pub const INVALID_FIELD_IN_PARAMETER_LIST = 328;
453/// An operation is currently in progress with the device.
454pub const OPERATION_IN_PROGRESS = 329;
455/// An attempt was made to send down the command via an invalid path to the target device.
456pub const BAD_DEVICE_PATH = 330;
457/// The command specified a number of descriptors that exceeded the maximum supported by the device.
458pub const TOO_MANY_DESCRIPTORS = 331;
459/// Scrub is disabled on the specified file.
460pub const SCRUB_DATA_DISABLED = 332;
461/// The storage device does not provide redundancy.
462pub const NOT_REDUNDANT_STORAGE = 333;
463/// An operation is not supported on a resident file.
464pub const RESIDENT_FILE_NOT_SUPPORTED = 334;
465/// An operation is not supported on a compressed file.
466pub const COMPRESSED_FILE_NOT_SUPPORTED = 335;
467/// An operation is not supported on a directory.
468pub const DIRECTORY_NOT_SUPPORTED = 336;
469/// The specified copy of the requested data could not be read.
470pub const NOT_READ_FROM_COPY = 337;
471/// No action was taken as a system reboot is required.
472pub const FAIL_NOACTION_REBOOT = 350;
473/// The shutdown operation failed.
474pub const FAIL_SHUTDOWN = 351;
475/// The restart operation failed.
476pub const FAIL_RESTART = 352;
477/// The maximum number of sessions has been reached.
478pub const MAX_SESSIONS_REACHED = 353;
479/// The thread is already in background processing mode.
480pub const THREAD_MODE_ALREADY_BACKGROUND = 400;
481/// The thread is not in background processing mode.
482pub const THREAD_MODE_NOT_BACKGROUND = 401;
483/// The process is already in background processing mode.
484pub const PROCESS_MODE_ALREADY_BACKGROUND = 402;
485/// The process is not in background processing mode.
486pub const PROCESS_MODE_NOT_BACKGROUND = 403;
487/// Attempt to access invalid address.
488pub const INVALID_ADDRESS = 487;
489/// User profile cannot be loaded.
490pub const USER_PROFILE_LOAD = 500;
491/// Arithmetic result exceeded 32 bits.
492pub const ARITHMETIC_OVERFLOW = 534;
493/// There is a process on other end of the pipe.
494pub const PIPE_CONNECTED = 535;
495/// Waiting for a process to open the other end of the pipe.
496pub const PIPE_LISTENING = 536;
497/// Application verifier has found an error in the current process.
498pub const VERIFIER_STOP = 537;
499/// An error occurred in the ABIOS subsystem.
500pub const ABIOS_ERROR = 538;
501/// A warning occurred in the WX86 subsystem.
502pub const WX86_WARNING = 539;
503/// An error occurred in the WX86 subsystem.
504pub const WX86_ERROR = 540;
505/// 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.
506pub const TIMER_NOT_CANCELED = 541;
507/// Unwind exception code.
508pub const UNWIND = 542;
509/// An invalid or unaligned stack was encountered during an unwind operation.
510pub const BAD_STACK = 543;
511/// An invalid unwind target was encountered during an unwind operation.
512pub const INVALID_UNWIND_TARGET = 544;
513/// Invalid Object Attributes specified to NtCreatePort or invalid Port Attributes specified to NtConnectPort
514pub const INVALID_PORT_ATTRIBUTES = 545;
515/// Length of message passed to NtRequestPort or NtRequestWaitReplyPort was longer than the maximum message allowed by the port.
516pub const PORT_MESSAGE_TOO_LONG = 546;
517/// An attempt was made to lower a quota limit below the current usage.
518pub const INVALID_QUOTA_LOWER = 547;
519/// An attempt was made to attach to a device that was already attached to another device.
520pub const DEVICE_ALREADY_ATTACHED = 548;
521/// An attempt was made to execute an instruction at an unaligned address and the host system does not support unaligned instruction references.
522pub const INSTRUCTION_MISALIGNMENT = 549;
523/// Profiling not started.
524pub const PROFILING_NOT_STARTED = 550;
525/// Profiling not stopped.
526pub const PROFILING_NOT_STOPPED = 551;
527/// The passed ACL did not contain the minimum required information.
528pub const COULD_NOT_INTERPRET = 552;
529/// The number of active profiling objects is at the maximum and no more may be started.
530pub const PROFILING_AT_LIMIT = 553;
531/// Used to indicate that an operation cannot continue without blocking for I/O.
532pub const CANT_WAIT = 554;
533/// Indicates that a thread attempted to terminate itself by default (called NtTerminateThread with NULL) and it was the last thread in the current process.
534pub const CANT_TERMINATE_SELF = 555;
535/// 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.
536pub const UNEXPECTED_MM_CREATE_ERR = 556;
537/// 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.
538pub const UNEXPECTED_MM_MAP_ERROR = 557;
539/// 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.
540pub const UNEXPECTED_MM_EXTEND_ERR = 558;
541/// A malformed function table was encountered during an unwind operation.
542pub const BAD_FUNCTION_TABLE = 559;
543/// 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.
544pub const NO_GUID_TRANSLATION = 560;
545/// 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.
546pub const INVALID_LDT_SIZE = 561;
547/// Indicates that the starting value for the LDT information was not an integral multiple of the selector size.
548pub const INVALID_LDT_OFFSET = 563;
549/// Indicates that the user supplied an invalid descriptor when trying to set up Ldt descriptors.
550pub const INVALID_LDT_DESCRIPTOR = 564;
551/// 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.
552pub const TOO_MANY_THREADS = 565;
553/// An attempt was made to operate on a thread within a specific process, but the thread specified is not in the process specified.
554pub const THREAD_NOT_IN_PROCESS = 566;
555/// Page file quota was exceeded.
556pub const PAGEFILE_QUOTA_EXCEEDED = 567;
557/// The Netlogon service cannot start because another Netlogon service running in the domain conflicts with the specified role.
558pub const LOGON_SERVER_CONFLICT = 568;
559/// The SAM database on a Windows Server is significantly out of synchronization with the copy on the Domain Controller. A complete synchronization is required.
560pub const SYNCHRONIZATION_REQUIRED = 569;
561/// 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.
562pub const NET_OPEN_FAILED = 570;
563/// {Privilege Failed} The I/O permissions for the process could not be changed.
564pub const IO_PRIVILEGE_FAILED = 571;
565/// {Application Exit by CTRL+C} The application terminated as a result of a CTRL+C.
566pub const CONTROL_C_EXIT = 572;
567/// {Missing System File} The required system file %hs is bad or missing.
568pub const MISSING_SYSTEMFILE = 573;
569/// {Application Error} The exception %s (0x%08lx) occurred in the application at location 0x%08lx.
570pub const UNHANDLED_EXCEPTION = 574;
571/// {Application Error} The application was unable to start correctly (0x%lx). Click OK to close the application.
572pub const APP_INIT_FAILURE = 575;
573/// {Unable to Create Paging File} The creation of the paging file %hs failed (%lx). The requested size was %ld.
574pub const PAGEFILE_CREATE_FAILED = 576;
575/// 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.
576pub const INVALID_IMAGE_HASH = 577;
577/// {No Paging File Specified} No paging file was specified in the system configuration.
578pub const NO_PAGEFILE = 578;
579/// {EXCEPTION} A real-mode application issued a floating-point instruction and floating-point hardware is not present.
580pub const ILLEGAL_FLOAT_CONTEXT = 579;
581/// 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.
582pub const NO_EVENT_PAIR = 580;
583/// A Windows Server has an incorrect configuration.
584pub const DOMAIN_CTRLR_CONFIG_ERROR = 581;
585/// 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.
586pub const ILLEGAL_CHARACTER = 582;
587/// The Unicode character is not defined in the Unicode character set installed on the system.
588pub const UNDEFINED_CHARACTER = 583;
589/// The paging file cannot be created on a floppy diskette.
590pub const FLOPPY_VOLUME = 584;
591/// The system BIOS failed to connect a system interrupt to the device or bus for which the device is connected.
592pub const BIOS_FAILED_TO_CONNECT_INTERRUPT = 585;
593/// This operation is only allowed for the Primary Domain Controller of the domain.
594pub const BACKUP_CONTROLLER = 586;
595/// An attempt was made to acquire a mutant such that its maximum count would have been exceeded.
596pub const MUTANT_LIMIT_EXCEEDED = 587;
597/// A volume has been accessed for which a file system driver is required that has not yet been loaded.
598pub const FS_DRIVER_REQUIRED = 588;
599/// {Registry File Failure} The registry cannot load the hive (file): %hs or its log or alternate. It is corrupt, absent, or not writable.
600pub const CANNOT_LOAD_REGISTRY_FILE = 589;
601/// {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.
602pub const DEBUG_ATTACH_FAILED = 590;
603/// {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.
604pub const SYSTEM_PROCESS_TERMINATED = 591;
605/// {Data Not Accepted} The TDI client could not handle the data received during an indication.
606pub const DATA_NOT_ACCEPTED = 592;
607/// NTVDM encountered a hard error.
608pub const VDM_HARD_ERROR = 593;
609/// {Cancel Timeout} The driver %hs failed to complete a cancelled I/O request in the allotted time.
610pub const DRIVER_CANCEL_TIMEOUT = 594;
611/// {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.
612pub const REPLY_MESSAGE_MISMATCH = 595;
613/// {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.
614pub const LOST_WRITEBEHIND_DATA = 596;
615/// 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.
616pub const CLIENT_SERVER_PARAMETERS_INVALID = 597;
617/// The stream is not a tiny stream.
618pub const NOT_TINY_STREAM = 598;
619/// The request must be handled by the stack overflow code.
620pub const STACK_OVERFLOW_READ = 599;
621/// 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.
622pub const CONVERT_TO_LARGE = 600;
623/// 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.
624pub const FOUND_OUT_OF_SCOPE = 601;
625/// The bucket array must be grown. Retry transaction after doing so.
626pub const ALLOCATE_BUCKET = 602;
627/// The user/kernel marshalling buffer has overflowed.
628pub const MARSHALL_OVERFLOW = 603;
629/// The supplied variant structure contains invalid data.
630pub const INVALID_VARIANT = 604;
631/// The specified buffer contains ill-formed data.
632pub const BAD_COMPRESSION_BUFFER = 605;
633/// {Audit Failed} An attempt to generate a security audit failed.
634pub const AUDIT_FAILED = 606;
635/// The timer resolution was not previously set by the current process.
636pub const TIMER_RESOLUTION_NOT_SET = 607;
637/// There is insufficient account information to log you on.
638pub const INSUFFICIENT_LOGON_INFO = 608;
639/// {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.
640pub const BAD_DLL_ENTRYPOINT = 609;
641/// {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.
642pub const BAD_SERVICE_ENTRYPOINT = 610;
643/// There is an IP address conflict with another system on the network.
644pub const IP_ADDRESS_CONFLICT1 = 611;
645/// There is an IP address conflict with another system on the network.
646pub const IP_ADDRESS_CONFLICT2 = 612;
647/// {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.
648pub const REGISTRY_QUOTA_LIMIT = 613;
649/// A callback return system service cannot be executed when no callback is active.
650pub const NO_CALLBACK_ACTIVE = 614;
651/// The password provided is too short to meet the policy of your user account. Please choose a longer password.
652pub const PWD_TOO_SHORT = 615;
653/// 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.
654pub const PWD_TOO_RECENT = 616;
655/// 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.
656pub const PWD_HISTORY_CONFLICT = 617;
657/// The specified compression format is unsupported.
658pub const UNSUPPORTED_COMPRESSION = 618;
659/// The specified hardware profile configuration is invalid.
660pub const INVALID_HW_PROFILE = 619;
661/// The specified Plug and Play registry device path is invalid.
662pub const INVALID_PLUGPLAY_DEVICE_PATH = 620;
663/// The specified quota list is internally inconsistent with its descriptor.
664pub const QUOTA_LIST_INCONSISTENT = 621;
665/// {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.
666pub const EVALUATION_EXPIRATION = 622;
667/// {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.
668pub const ILLEGAL_DLL_RELOCATION = 623;
669/// {DLL Initialization Failed} The application failed to initialize because the window station is shutting down.
670pub const DLL_INIT_FAILED_LOGOFF = 624;
671/// The validation process needs to continue on to the next step.
672pub const VALIDATE_CONTINUE = 625;
673/// There are no more matches for the current index enumeration.
674pub const NO_MORE_MATCHES = 626;
675/// The range could not be added to the range list because of a conflict.
676pub const RANGE_LIST_CONFLICT = 627;
677/// The server process is running under a SID different than that required by client.
678pub const SERVER_SID_MISMATCH = 628;
679/// A group marked use for deny only cannot be enabled.
680pub const CANT_ENABLE_DENY_ONLY = 629;
681/// {EXCEPTION} Multiple floating point faults.
682pub const FLOAT_MULTIPLE_FAULTS = 630;
683/// {EXCEPTION} Multiple floating point traps.
684pub const FLOAT_MULTIPLE_TRAPS = 631;
685/// The requested interface is not supported.
686pub const NOINTERFACE = 632;
687/// {System Standby Failed} The driver %hs does not support standby mode. Updating this driver may allow the system to go to standby mode.
688pub const DRIVER_FAILED_SLEEP = 633;
689/// The system file %1 has become corrupt and has been replaced.
690pub const CORRUPT_SYSTEM_FILE = 634;
691/// {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.
692pub const COMMITMENT_MINIMUM = 635;
693/// A device was removed so enumeration must be restarted.
694pub const PNP_RESTART_ENUMERATION = 636;
695/// {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.
696pub const SYSTEM_IMAGE_BAD_SIGNATURE = 637;
697/// Device will not start without a reboot.
698pub const PNP_REBOOT_REQUIRED = 638;
699/// There is not enough power to complete the requested operation.
700pub const INSUFFICIENT_POWER = 639;
701/// ERROR_MULTIPLE_FAULT_VIOLATION
702pub const MULTIPLE_FAULT_VIOLATION = 640;
703/// The system is in the process of shutting down.
704pub const SYSTEM_SHUTDOWN = 641;
705/// An attempt to remove a processes DebugPort was made, but a port was not already associated with the process.
706pub const PORT_NOT_SET = 642;
707/// This version of Windows is not compatible with the behavior version of directory forest, domain or domain controller.
708pub const DS_VERSION_CHECK_FAILURE = 643;
709/// The specified range could not be found in the range list.
710pub const RANGE_NOT_FOUND = 644;
711/// The driver was not loaded because the system is booting into safe mode.
712pub const NOT_SAFE_MODE_DRIVER = 646;
713/// The driver was not loaded because it failed its initialization call.
714pub const FAILED_DRIVER_ENTRY = 647;
715/// 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.
716pub const DEVICE_ENUMERATION_ERROR = 648;
717/// 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.
718pub const MOUNT_POINT_NOT_RESOLVED = 649;
719/// The device object parameter is either not a valid device object or is not attached to the volume specified by the file name.
720pub const INVALID_DEVICE_OBJECT_PARAMETER = 650;
721/// A Machine Check Error has occurred. Please check the system eventlog for additional information.
722pub const MCA_OCCURED = 651;
723/// There was error [%2] processing the driver database.
724pub const DRIVER_DATABASE_ERROR = 652;
725/// System hive size has exceeded its limit.
726pub const SYSTEM_HIVE_TOO_LARGE = 653;
727/// The driver could not be loaded because a previous version of the driver is still in memory.
728pub const DRIVER_FAILED_PRIOR_UNLOAD = 654;
729/// {Volume Shadow Copy Service} Please wait while the Volume Shadow Copy Service prepares volume %hs for hibernation.
730pub const VOLSNAP_PREPARE_HIBERNATE = 655;
731/// The system has failed to hibernate (The error code is %hs). Hibernation will be disabled until the system is restarted.
732pub const HIBERNATION_FAILURE = 656;
733/// The password provided is too long to meet the policy of your user account. Please choose a shorter password.
734pub const PWD_TOO_LONG = 657;
735/// The requested operation could not be completed due to a file system limitation.
736pub const FILE_SYSTEM_LIMITATION = 665;
737/// An assertion failure has occurred.
738pub const ASSERTION_FAILURE = 668;
739/// An error occurred in the ACPI subsystem.
740pub const ACPI_ERROR = 669;
741/// WOW Assertion Error.
742pub const WOW_ASSERTION = 670;
743/// 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.
744pub const PNP_BAD_MPS_TABLE = 671;
745/// A translator failed to translate resources.
746pub const PNP_TRANSLATION_FAILED = 672;
747/// A IRQ translator failed to translate resources.
748pub const PNP_IRQ_TRANSLATION_FAILED = 673;
749/// Driver %2 returned invalid ID for a child device (%3).
750pub const PNP_INVALID_ID = 674;
751/// {Kernel Debugger Awakened} the system debugger was awakened by an interrupt.
752pub const WAKE_SYSTEM_DEBUGGER = 675;
753/// {Handles Closed} Handles to objects have been automatically closed as a result of the requested operation.
754pub const HANDLES_CLOSED = 676;
755/// {Too Much Information} The specified access control list (ACL) contained more information than was expected.
756pub const EXTRANEOUS_INFORMATION = 677;
757/// 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).
758pub const RXACT_COMMIT_NECESSARY = 678;
759/// {Media Changed} The media may have changed.
760pub const MEDIA_CHECK = 679;
761/// {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.
762pub const GUID_SUBSTITUTION_MADE = 680;
763/// The create operation stopped after reaching a symbolic link.
764pub const STOPPED_ON_SYMLINK = 681;
765/// A long jump has been executed.
766pub const LONGJUMP = 682;
767/// The Plug and Play query operation was not successful.
768pub const PLUGPLAY_QUERY_VETOED = 683;
769/// A frame consolidation has been executed.
770pub const UNWIND_CONSOLIDATE = 684;
771/// {Registry Hive Recovered} Registry hive (file): %hs was corrupted and it has been recovered. Some data might have been lost.
772pub const REGISTRY_HIVE_RECOVERED = 685;
773/// 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?
774pub const DLL_MIGHT_BE_INSECURE = 686;
775/// 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?
776pub const DLL_MIGHT_BE_INCOMPATIBLE = 687;
777/// Debugger did not handle the exception.
778pub const DBG_EXCEPTION_NOT_HANDLED = 688;
779/// Debugger will reply later.
780pub const DBG_REPLY_LATER = 689;
781/// Debugger cannot provide handle.
782pub const DBG_UNABLE_TO_PROVIDE_HANDLE = 690;
783/// Debugger terminated thread.
784pub const DBG_TERMINATE_THREAD = 691;
785/// Debugger terminated process.
786pub const DBG_TERMINATE_PROCESS = 692;
787/// Debugger got control C.
788pub const DBG_CONTROL_C = 693;
789/// Debugger printed exception on control C.
790pub const DBG_PRINTEXCEPTION_C = 694;
791/// Debugger received RIP exception.
792pub const DBG_RIPEXCEPTION = 695;
793/// Debugger received control break.
794pub const DBG_CONTROL_BREAK = 696;
795/// Debugger command communication exception.
796pub const DBG_COMMAND_EXCEPTION = 697;
797/// {Object Exists} An attempt was made to create an object and the object name already existed.
798pub const OBJECT_NAME_EXISTS = 698;
799/// {Thread Suspended} A thread termination occurred while the thread was suspended. The thread was resumed, and termination proceeded.
800pub const THREAD_WAS_SUSPENDED = 699;
801/// {Image Relocated} An image file could not be mapped at the address specified in the image file. Local fixups must be performed on this image.
802pub const IMAGE_NOT_AT_BASE = 700;
803/// This informational level status indicates that a specified registry sub-tree transaction state did not yet exist and had to be created.
804pub const RXACT_STATE_CREATED = 701;
805/// {Segment Load} A virtual DOS machine (VDM) is loading, unloading, or moving an MS-DOS or Win16 program segment image. An exception is raised so a debugger can load, unload or track symbols and breakpoints within these 16-bit segments.
806pub const SEGMENT_NOTIFICATION = 702;
807/// {Invalid Current Directory} The process cannot switch to the startup current directory %hs. Select OK to set current directory to %hs, or select CANCEL to exit.
808pub const BAD_CURRENT_DIRECTORY = 703;
809/// {Redundant Read} To satisfy a read request, the NT fault-tolerant file system successfully read the requested data from a redundant copy. This was done because the file system encountered a failure on a member of the fault-tolerant volume, but was unable to reassign the failing area of the device.
810pub const FT_READ_RECOVERY_FROM_BACKUP = 704;
811/// {Redundant Write} To satisfy a write request, the NT fault-tolerant file system successfully wrote a redundant copy of the information. This was done because the file system encountered a failure on a member of the fault-tolerant volume, but was not able to reassign the failing area of the device.
812pub const FT_WRITE_RECOVERY = 705;
813/// {Machine Type Mismatch} The image file %hs is valid, but is for a machine type other than the current machine. Select OK to continue, or CANCEL to fail the DLL load.
814pub const IMAGE_MACHINE_TYPE_MISMATCH = 706;
815/// {Partial Data Received} The network transport returned partial data to its client. The remaining data will be sent later.
816pub const RECEIVE_PARTIAL = 707;
817/// {Expedited Data Received} The network transport returned data to its client that was marked as expedited by the remote system.
818pub const RECEIVE_EXPEDITED = 708;
819/// {Partial Expedited Data Received} The network transport returned partial data to its client and this data was marked as expedited by the remote system. The remaining data will be sent later.
820pub const RECEIVE_PARTIAL_EXPEDITED = 709;
821/// {TDI Event Done} The TDI indication has completed successfully.
822pub const EVENT_DONE = 710;
823/// {TDI Event Pending} The TDI indication has entered the pending state.
824pub const EVENT_PENDING = 711;
825/// Checking file system on %wZ.
826pub const CHECKING_FILE_SYSTEM = 712;
827/// {Fatal Application Exit} %hs.
828pub const FATAL_APP_EXIT = 713;
829/// The specified registry key is referenced by a predefined handle.
830pub const PREDEFINED_HANDLE = 714;
831/// {Page Unlocked} The page protection of a locked page was changed to 'No Access' and the page was unlocked from memory and from the process.
832pub const WAS_UNLOCKED = 715;
833/// %hs
834pub const SERVICE_NOTIFICATION = 716;
835/// {Page Locked} One of the pages to lock was already locked.
836pub const WAS_LOCKED = 717;
837/// Application popup: %1 : %2
838pub const LOG_HARD_ERROR = 718;
839/// ERROR_ALREADY_WIN32
840pub const ALREADY_WIN32 = 719;
841/// {Machine Type Mismatch} The image file %hs is valid, but is for a machine type other than the current machine.
842pub const IMAGE_MACHINE_TYPE_MISMATCH_EXE = 720;
843/// A yield execution was performed and no thread was available to run.
844pub const NO_YIELD_PERFORMED = 721;
845/// The resumable flag to a timer API was ignored.
846pub const TIMER_RESUME_IGNORED = 722;
847/// The arbiter has deferred arbitration of these resources to its parent.
848pub const ARBITRATION_UNHANDLED = 723;
849/// The inserted CardBus device cannot be started because of a configuration error on "%hs".
850pub const CARDBUS_NOT_SUPPORTED = 724;
851/// The CPUs in this multiprocessor system are not all the same revision level. To use all processors the operating system restricts itself to the features of the least capable processor in the system. Should problems occur with this system, contact the CPU manufacturer to see if this mix of processors is supported.
852pub const MP_PROCESSOR_MISMATCH = 725;
853/// The system was put into hibernation.
854pub const HIBERNATED = 726;
855/// The system was resumed from hibernation.
856pub const RESUME_HIBERNATION = 727;
857/// Windows has detected that the system firmware (BIOS) was updated [previous firmware date = %2, current firmware date %3].
858pub const FIRMWARE_UPDATED = 728;
859/// A device driver is leaking locked I/O pages causing system degradation. The system has automatically enabled tracking code in order to try and catch the culprit.
860pub const DRIVERS_LEAKING_LOCKED_PAGES = 729;
861/// The system has awoken.
862pub const WAKE_SYSTEM = 730;
863/// ERROR_WAIT_1
864pub const WAIT_1 = 731;
865/// ERROR_WAIT_2
866pub const WAIT_2 = 732;
867/// ERROR_WAIT_3
868pub const WAIT_3 = 733;
869/// ERROR_WAIT_63
870pub const WAIT_63 = 734;
871/// ERROR_ABANDONED_WAIT_0
872pub const ABANDONED_WAIT_0 = 735;
873/// ERROR_ABANDONED_WAIT_63
874pub const ABANDONED_WAIT_63 = 736;
875/// ERROR_USER_APC
876pub const USER_APC = 737;
877/// ERROR_KERNEL_APC
878pub const KERNEL_APC = 738;
879/// ERROR_ALERTED
880pub const ALERTED = 739;
881/// The requested operation requires elevation.
882pub const ELEVATION_REQUIRED = 740;
883/// A reparse should be performed by the Object Manager since the name of the file resulted in a symbolic link.
884pub const REPARSE = 741;
885/// An open/create operation completed while an oplock break is underway.
886pub const OPLOCK_BREAK_IN_PROGRESS = 742;
887/// A new volume has been mounted by a file system.
888pub const VOLUME_MOUNTED = 743;
889/// This success 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 now been completed.
890pub const RXACT_COMMITTED = 744;
891/// This indicates that a notify change request has been completed due to closing the handle which made the notify change request.
892pub const NOTIFY_CLEANUP = 745;
893/// {Connect Failure on Primary Transport} An attempt was made to connect to the remote server %hs on the primary transport, but the connection failed. The computer WAS able to connect on a secondary transport.
894pub const PRIMARY_TRANSPORT_CONNECT_FAILED = 746;
895/// Page fault was a transition fault.
896pub const PAGE_FAULT_TRANSITION = 747;
897/// Page fault was a demand zero fault.
898pub const PAGE_FAULT_DEMAND_ZERO = 748;
899/// Page fault was a demand zero fault.
900pub const PAGE_FAULT_COPY_ON_WRITE = 749;
901/// Page fault was a demand zero fault.
902pub const PAGE_FAULT_GUARD_PAGE = 750;
903/// Page fault was satisfied by reading from a secondary storage device.
904pub const PAGE_FAULT_PAGING_FILE = 751;
905/// Cached page was locked during operation.
906pub const CACHE_PAGE_LOCKED = 752;
907/// Crash dump exists in paging file.
908pub const CRASH_DUMP = 753;
909/// Specified buffer contains all zeros.
910pub const BUFFER_ALL_ZEROS = 754;
911/// A reparse should be performed by the Object Manager since the name of the file resulted in a symbolic link.
912pub const REPARSE_OBJECT = 755;
913/// The device has succeeded a query-stop and its resource requirements have changed.
914pub const RESOURCE_REQUIREMENTS_CHANGED = 756;
915/// The translator has translated these resources into the global space and no further translations should be performed.
916pub const TRANSLATION_COMPLETE = 757;
917/// A process being terminated has no threads to terminate.
918pub const NOTHING_TO_TERMINATE = 758;
919/// The specified process is not part of a job.
920pub const PROCESS_NOT_IN_JOB = 759;
921/// The specified process is part of a job.
922pub const PROCESS_IN_JOB = 760;
923/// {Volume Shadow Copy Service} The system is now ready for hibernation.
924pub const VOLSNAP_HIBERNATE_READY = 761;
925/// A file system or file system filter driver has successfully completed an FsFilter operation.
926pub const FSFILTER_OP_COMPLETED_SUCCESSFULLY = 762;
927/// The specified interrupt vector was already connected.
928pub const INTERRUPT_VECTOR_ALREADY_CONNECTED = 763;
929/// The specified interrupt vector is still connected.
930pub const INTERRUPT_STILL_CONNECTED = 764;
931/// An operation is blocked waiting for an oplock.
932pub const WAIT_FOR_OPLOCK = 765;
933/// Debugger handled exception.
934pub const DBG_EXCEPTION_HANDLED = 766;
935/// Debugger continued.
936pub const DBG_CONTINUE = 767;
937/// An exception occurred in a user mode callback and the kernel callback frame should be removed.
938pub const CALLBACK_POP_STACK = 768;
939/// Compression is disabled for this volume.
940pub const COMPRESSION_DISABLED = 769;
941/// The data provider cannot fetch backwards through a result set.
942pub const CANTFETCHBACKWARDS = 770;
943/// The data provider cannot scroll backwards through a result set.
944pub const CANTSCROLLBACKWARDS = 771;
945/// The data provider requires that previously fetched data is released before asking for more data.
946pub const ROWSNOTRELEASED = 772;
947/// The data provider was not able to interpret the flags set for a column binding in an accessor.
948pub const BAD_ACCESSOR_FLAGS = 773;
949/// One or more errors occurred while processing the request.
950pub const ERRORS_ENCOUNTERED = 774;
951/// The implementation is not capable of performing the request.
952pub const NOT_CAPABLE = 775;
953/// The client of a component requested an operation which is not valid given the state of the component instance.
954pub const REQUEST_OUT_OF_SEQUENCE = 776;
955/// A version number could not be parsed.
956pub const VERSION_PARSE_ERROR = 777;
957/// The iterator's start position is invalid.
958pub const BADSTARTPOSITION = 778;
959/// The hardware has reported an uncorrectable memory error.
960pub const MEMORY_HARDWARE = 779;
961/// The attempted operation required self healing to be enabled.
962pub const DISK_REPAIR_DISABLED = 780;
963/// The Desktop heap encountered an error while allocating session memory. There is more information in the system event log.
964pub const INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE = 781;
965/// The system power state is transitioning from %2 to %3.
966pub const SYSTEM_POWERSTATE_TRANSITION = 782;
967/// The system power state is transitioning from %2 to %3 but could enter %4.
968pub const SYSTEM_POWERSTATE_COMPLEX_TRANSITION = 783;
969/// A thread is getting dispatched with MCA EXCEPTION because of MCA.
970pub const MCA_EXCEPTION = 784;
971/// Access to %1 is monitored by policy rule %2.
972pub const ACCESS_AUDIT_BY_POLICY = 785;
973/// Access to %1 has been restricted by your Administrator by policy rule %2.
974pub const ACCESS_DISABLED_NO_SAFER_UI_BY_POLICY = 786;
975/// A valid hibernation file has been invalidated and should be abandoned.
976pub const ABANDON_HIBERFILE = 787;
977/// {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 network connectivity issues. Please try to save this file elsewhere.
978pub const LOST_WRITEBEHIND_DATA_NETWORK_DISCONNECTED = 788;
979/// {Delayed Write Failed} Windows was unable to save all the data for the file %hs; the data has been lost. This error was returned by the server on which the file exists. Please try to save this file elsewhere.
980pub const LOST_WRITEBEHIND_DATA_NETWORK_SERVER_ERROR = 789;
981/// {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 if the device has been removed or the media is write-protected.
982pub const LOST_WRITEBEHIND_DATA_LOCAL_DISK_ERROR = 790;
983/// The resources required for this device conflict with the MCFG table.
984pub const BAD_MCFG_TABLE = 791;
985/// The volume repair could not be performed while it is online. Please schedule to take the volume offline so that it can be repaired.
986pub const DISK_REPAIR_REDIRECTED = 792;
987/// The volume repair was not successful.
988pub const DISK_REPAIR_UNSUCCESSFUL = 793;
989/// One of the volume corruption logs is full. Further corruptions that may be detected won't be logged.
990pub const CORRUPT_LOG_OVERFULL = 794;
991/// One of the volume corruption logs is internally corrupted and needs to be recreated. The volume may contain undetected corruptions and must be scanned.
992pub const CORRUPT_LOG_CORRUPTED = 795;
993/// One of the volume corruption logs is unavailable for being operated on.
994pub const CORRUPT_LOG_UNAVAILABLE = 796;
995/// One of the volume corruption logs was deleted while still having corruption records in them. The volume contains detected corruptions and must be scanned.
996pub const CORRUPT_LOG_DELETED_FULL = 797;
997/// One of the volume corruption logs was cleared by chkdsk and no longer contains real corruptions.
998pub const CORRUPT_LOG_CLEARED = 798;
999/// Orphaned files exist on the volume but could not be recovered because no more new names could be created in the recovery directory. Files must be moved from the recovery directory.
1000pub const ORPHAN_NAME_EXHAUSTED = 799;
1001/// The oplock that was associated with this handle is now associated with a different handle.
1002pub const OPLOCK_SWITCHED_TO_NEW_HANDLE = 800;
1003/// An oplock of the requested level cannot be granted. An oplock of a lower level may be available.
1004pub const CANNOT_GRANT_REQUESTED_OPLOCK = 801;
1005/// The operation did not complete successfully because it would cause an oplock to be broken. The caller has requested that existing oplocks not be broken.
1006pub const CANNOT_BREAK_OPLOCK = 802;
1007/// The handle with which this oplock was associated has been closed. The oplock is now broken.
1008pub const OPLOCK_HANDLE_CLOSED = 803;
1009/// The specified access control entry (ACE) does not contain a condition.
1010pub const NO_ACE_CONDITION = 804;
1011/// The specified access control entry (ACE) contains an invalid condition.
1012pub const INVALID_ACE_CONDITION = 805;
1013/// Access to the specified file handle has been revoked.
1014pub const FILE_HANDLE_REVOKED = 806;
1015/// An image file was mapped at a different address from the one specified in the image file but fixups will still be automatically performed on the image.
1016pub const IMAGE_AT_DIFFERENT_BASE = 807;
1017/// Access to the extended attribute was denied.
1018pub const EA_ACCESS_DENIED = 994;
1019/// The I/O operation has been aborted because of either a thread exit or an application request.
1020pub const OPERATION_ABORTED = 995;
1021/// Overlapped I/O event is not in a signaled state.
1022pub const IO_INCOMPLETE = 996;
1023/// Overlapped I/O operation is in progress.
1024pub const IO_PENDING = 997;
1025/// Invalid access to memory location.
1026pub const NOACCESS = 998;
1027/// Error performing inpage operation.
1028pub const SWAPERROR = 999;
1029/// Recursion too deep; the stack overflowed.
1030pub const STACK_OVERFLOW = 1001;
1031/// The window cannot act on the sent message.
1032pub const INVALID_MESSAGE = 1002;
1033/// Cannot complete this function.
1034pub const CAN_NOT_COMPLETE = 1003;
1035/// Invalid flags.
1036pub const INVALID_FLAGS = 1004;
1037/// The volume does not contain a recognized file system. Please make sure that all required file system drivers are loaded and that the volume is not corrupted.
1038pub const UNRECOGNIZED_VOLUME = 1005;
1039/// The volume for a file has been externally altered so that the opened file is no longer valid.
1040pub const FILE_INVALID = 1006;
1041/// The requested operation cannot be performed in full-screen mode.
1042pub const FULLSCREEN_MODE = 1007;
1043/// An attempt was made to reference a token that does not exist.
1044pub const NO_TOKEN = 1008;
1045/// The configuration registry database is corrupt.
1046pub const BADDB = 1009;
1047/// The configuration registry key is invalid.
1048pub const BADKEY = 1010;
1049/// The configuration registry key could not be opened.
1050pub const CANTOPEN = 1011;
1051/// The configuration registry key could not be read.
1052pub const CANTREAD = 1012;
1053/// The configuration registry key could not be written.
1054pub const CANTWRITE = 1013;
1055/// One of the files in the registry database had to be recovered by use of a log or alternate copy. The recovery was successful.
1056pub const REGISTRY_RECOVERED = 1014;
1057/// The registry is corrupted. The structure of one of the files containing registry data is corrupted, or the system's memory image of the file is corrupted, or the file could not be recovered because the alternate copy or log was absent or corrupted.
1058pub const REGISTRY_CORRUPT = 1015;
1059/// An I/O operation initiated by the registry failed unrecoverably. The registry could not read in, or write out, or flush, one of the files that contain the system's image of the registry.
1060pub const REGISTRY_IO_FAILED = 1016;
1061/// The system has attempted to load or restore a file into the registry, but the specified file is not in a registry file format.
1062pub const NOT_REGISTRY_FILE = 1017;
1063/// Illegal operation attempted on a registry key that has been marked for deletion.
1064pub const KEY_DELETED = 1018;
1065/// System could not allocate the required space in a registry log.
1066pub const NO_LOG_SPACE = 1019;
1067/// Cannot create a symbolic link in a registry key that already has subkeys or values.
1068pub const KEY_HAS_CHILDREN = 1020;
1069/// Cannot create a stable subkey under a volatile parent key.
1070pub const CHILD_MUST_BE_VOLATILE = 1021;
1071/// A notify change request is being completed and the information is not being returned in the caller's buffer. The caller now needs to enumerate the files to find the changes.
1072pub const NOTIFY_ENUM_DIR = 1022;
1073/// A stop control has been sent to a service that other running services are dependent on.
1074pub const DEPENDENT_SERVICES_RUNNING = 1051;
1075/// The requested control is not valid for this service.
1076pub const INVALID_SERVICE_CONTROL = 1052;
1077/// The service did not respond to the start or control request in a timely fashion.
1078pub const SERVICE_REQUEST_TIMEOUT = 1053;
1079/// A thread could not be created for the service.
1080pub const SERVICE_NO_THREAD = 1054;
1081/// The service database is locked.
1082pub const SERVICE_DATABASE_LOCKED = 1055;
1083/// An instance of the service is already running.
1084pub const SERVICE_ALREADY_RUNNING = 1056;
1085/// The account name is invalid or does not exist, or the password is invalid for the account name specified.
1086pub const INVALID_SERVICE_ACCOUNT = 1057;
1087/// The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
1088pub const SERVICE_DISABLED = 1058;
1089/// Circular service dependency was specified.
1090pub const CIRCULAR_DEPENDENCY = 1059;
1091/// The specified service does not exist as an installed service.
1092pub const SERVICE_DOES_NOT_EXIST = 1060;
1093/// The service cannot accept control messages at this time.
1094pub const SERVICE_CANNOT_ACCEPT_CTRL = 1061;
1095/// The service has not been started.
1096pub const SERVICE_NOT_ACTIVE = 1062;
1097/// The service process could not connect to the service controller.
1098pub const FAILED_SERVICE_CONTROLLER_CONNECT = 1063;
1099/// An exception occurred in the service when handling the control request.
1100pub const EXCEPTION_IN_SERVICE = 1064;
1101/// The database specified does not exist.
1102pub const DATABASE_DOES_NOT_EXIST = 1065;
1103/// The service has returned a service-specific error code.
1104pub const SERVICE_SPECIFIC_ERROR = 1066;
1105/// The process terminated unexpectedly.
1106pub const PROCESS_ABORTED = 1067;
1107/// The dependency service or group failed to start.
1108pub const SERVICE_DEPENDENCY_FAIL = 1068;
1109/// The service did not start due to a logon failure.
1110pub const SERVICE_LOGON_FAILED = 1069;
1111/// After starting, the service hung in a start-pending state.
1112pub const SERVICE_START_HANG = 1070;
1113/// The specified service database lock is invalid.
1114pub const INVALID_SERVICE_LOCK = 1071;
1115/// The specified service has been marked for deletion.
1116pub const SERVICE_MARKED_FOR_DELETE = 1072;
1117/// The specified service already exists.
1118pub const SERVICE_EXISTS = 1073;
1119/// The system is currently running with the last-known-good configuration.
1120pub const ALREADY_RUNNING_LKG = 1074;
1121/// The dependency service does not exist or has been marked for deletion.
1122pub const SERVICE_DEPENDENCY_DELETED = 1075;
1123/// The current boot has already been accepted for use as the last-known-good control set.
1124pub const BOOT_ALREADY_ACCEPTED = 1076;
1125/// No attempts to start the service have been made since the last boot.
1126pub const SERVICE_NEVER_STARTED = 1077;
1127/// The name is already in use as either a service name or a service display name.
1128pub const DUPLICATE_SERVICE_NAME = 1078;
1129/// The account specified for this service is different from the account specified for other services running in the same process.
1130pub const DIFFERENT_SERVICE_ACCOUNT = 1079;
1131/// Failure actions can only be set for Win32 services, not for drivers.
1132pub const CANNOT_DETECT_DRIVER_FAILURE = 1080;
1133/// This service runs in the same process as the service control manager. Therefore, the service control manager cannot take action if this service's process terminates unexpectedly.
1134pub const CANNOT_DETECT_PROCESS_ABORT = 1081;
1135/// No recovery program has been configured for this service.
1136pub const NO_RECOVERY_PROGRAM = 1082;
1137/// The executable program that this service is configured to run in does not implement the service.
1138pub const SERVICE_NOT_IN_EXE = 1083;
1139/// This service cannot be started in Safe Mode.
1140pub const NOT_SAFEBOOT_SERVICE = 1084;
1141/// The physical end of the tape has been reached.
1142pub const END_OF_MEDIA = 1100;
1143/// A tape access reached a filemark.
1144pub const FILEMARK_DETECTED = 1101;
1145/// The beginning of the tape or a partition was encountered.
1146pub const BEGINNING_OF_MEDIA = 1102;
1147/// A tape access reached the end of a set of files.
1148pub const SETMARK_DETECTED = 1103;
1149/// No more data is on the tape.
1150pub const NO_DATA_DETECTED = 1104;
1151/// Tape could not be partitioned.
1152pub const PARTITION_FAILURE = 1105;
1153/// When accessing a new tape of a multivolume partition, the current block size is incorrect.
1154pub const INVALID_BLOCK_LENGTH = 1106;
1155/// Tape partition information could not be found when loading a tape.
1156pub const DEVICE_NOT_PARTITIONED = 1107;
1157/// Unable to lock the media eject mechanism.
1158pub const UNABLE_TO_LOCK_MEDIA = 1108;
1159/// Unable to unload the media.
1160pub const UNABLE_TO_UNLOAD_MEDIA = 1109;
1161/// The media in the drive may have changed.
1162pub const MEDIA_CHANGED = 1110;
1163/// The I/O bus was reset.
1164pub const BUS_RESET = 1111;
1165/// No media in drive.
1166pub const NO_MEDIA_IN_DRIVE = 1112;
1167/// No mapping for the Unicode character exists in the target multi-byte code page.
1168pub const NO_UNICODE_TRANSLATION = 1113;
1169/// A dynamic link library (DLL) initialization routine failed.
1170pub const DLL_INIT_FAILED = 1114;
1171/// A system shutdown is in progress.
1172pub const SHUTDOWN_IN_PROGRESS = 1115;
1173/// Unable to abort the system shutdown because no shutdown was in progress.
1174pub const NO_SHUTDOWN_IN_PROGRESS = 1116;
1175/// The request could not be performed because of an I/O device error.
1176pub const IO_DEVICE = 1117;
1177/// No serial device was successfully initialized. The serial driver will unload.
1178pub const SERIAL_NO_DEVICE = 1118;
1179/// Unable to open a device that was sharing an interrupt request (IRQ) with other devices. At least one other device that uses that IRQ was already opened.
1180pub const IRQ_BUSY = 1119;
1181/// A serial I/O operation was completed by another write to the serial port. The IOCTL_SERIAL_XOFF_COUNTER reached zero.)
1182pub const MORE_WRITES = 1120;
1183/// A serial I/O operation completed because the timeout period expired. The IOCTL_SERIAL_XOFF_COUNTER did not reach zero.)
1184pub const COUNTER_TIMEOUT = 1121;
1185/// No ID address mark was found on the floppy disk.
1186pub const FLOPPY_ID_MARK_NOT_FOUND = 1122;
1187/// Mismatch between the floppy disk sector ID field and the floppy disk controller track address.
1188pub const FLOPPY_WRONG_CYLINDER = 1123;
1189/// The floppy disk controller reported an error that is not recognized by the floppy disk driver.
1190pub const FLOPPY_UNKNOWN_ERROR = 1124;
1191/// The floppy disk controller returned inconsistent results in its registers.
1192pub const FLOPPY_BAD_REGISTERS = 1125;
1193/// While accessing the hard disk, a recalibrate operation failed, even after retries.
1194pub const DISK_RECALIBRATE_FAILED = 1126;
1195/// While accessing the hard disk, a disk operation failed even after retries.
1196pub const DISK_OPERATION_FAILED = 1127;
1197/// While accessing the hard disk, a disk controller reset was needed, but even that failed.
1198pub const DISK_RESET_FAILED = 1128;
1199/// Physical end of tape encountered.
1200pub const EOM_OVERFLOW = 1129;
1201/// Not enough server storage is available to process this command.
1202pub const NOT_ENOUGH_SERVER_MEMORY = 1130;
1203/// A potential deadlock condition has been detected.
1204pub const POSSIBLE_DEADLOCK = 1131;
1205/// The base address or the file offset specified does not have the proper alignment.
1206pub const MAPPED_ALIGNMENT = 1132;
1207/// An attempt to change the system power state was vetoed by another application or driver.
1208pub const SET_POWER_STATE_VETOED = 1140;
1209/// The system BIOS failed an attempt to change the system power state.
1210pub const SET_POWER_STATE_FAILED = 1141;
1211/// An attempt was made to create more links on a file than the file system supports.
1212pub const TOO_MANY_LINKS = 1142;
1213/// The specified program requires a newer version of Windows.
1214pub const OLD_WIN_VERSION = 1150;
1215/// The specified program is not a Windows or MS-DOS program.
1216pub const APP_WRONG_OS = 1151;
1217/// Cannot start more than one instance of the specified program.
1218pub const SINGLE_INSTANCE_APP = 1152;
1219/// The specified program was written for an earlier version of Windows.
1220pub const RMODE_APP = 1153;
1221/// One of the library files needed to run this application is damaged.
1222pub const INVALID_DLL = 1154;
1223/// No application is associated with the specified file for this operation.
1224pub const NO_ASSOCIATION = 1155;
1225/// An error occurred in sending the command to the application.
1226pub const DDE_FAIL = 1156;
1227/// One of the library files needed to run this application cannot be found.
1228pub const DLL_NOT_FOUND = 1157;
1229/// The current process has used all of its system allowance of handles for Window Manager objects.
1230pub const NO_MORE_USER_HANDLES = 1158;
1231/// The message can be used only with synchronous operations.
1232pub const MESSAGE_SYNC_ONLY = 1159;
1233/// The indicated source element has no media.
1234pub const SOURCE_ELEMENT_EMPTY = 1160;
1235/// The indicated destination element already contains media.
1236pub const DESTINATION_ELEMENT_FULL = 1161;
1237/// The indicated element does not exist.
1238pub const ILLEGAL_ELEMENT_ADDRESS = 1162;
1239/// The indicated element is part of a magazine that is not present.
1240pub const MAGAZINE_NOT_PRESENT = 1163;
1241/// The indicated device requires reinitialization due to hardware errors.
1242pub const DEVICE_REINITIALIZATION_NEEDED = 1164;
1243/// The device has indicated that cleaning is required before further operations are attempted.
1244pub const DEVICE_REQUIRES_CLEANING = 1165;
1245/// The device has indicated that its door is open.
1246pub const DEVICE_DOOR_OPEN = 1166;
1247/// The device is not connected.
1248pub const DEVICE_NOT_CONNECTED = 1167;
1249/// Element not found.
1250pub const NOT_FOUND = 1168;
1251/// There was no match for the specified key in the index.
1252pub const NO_MATCH = 1169;
1253/// The property set specified does not exist on the object.
1254pub const SET_NOT_FOUND = 1170;
1255/// The point passed to GetMouseMovePoints is not in the buffer.
1256pub const POINT_NOT_FOUND = 1171;
1257/// The tracking (workstation) service is not running.
1258pub const NO_TRACKING_SERVICE = 1172;
1259/// The Volume ID could not be found.
1260pub const NO_VOLUME_ID = 1173;
1261/// Unable to remove the file to be replaced.
1262pub const UNABLE_TO_REMOVE_REPLACED = 1175;
1263/// Unable to move the replacement file to the file to be replaced. The file to be replaced has retained its original name.
1264pub const UNABLE_TO_MOVE_REPLACEMENT = 1176;
1265/// Unable to move the replacement file to the file to be replaced. The file to be replaced has been renamed using the backup name.
1266pub const UNABLE_TO_MOVE_REPLACEMENT_2 = 1177;
1267/// The volume change journal is being deleted.
1268pub const JOURNAL_DELETE_IN_PROGRESS = 1178;
1269/// The volume change journal is not active.
1270pub const JOURNAL_NOT_ACTIVE = 1179;
1271/// A file was found, but it may not be the correct file.
1272pub const POTENTIAL_FILE_FOUND = 1180;
1273/// The journal entry has been deleted from the journal.
1274pub const JOURNAL_ENTRY_DELETED = 1181;
1275/// A system shutdown has already been scheduled.
1276pub const SHUTDOWN_IS_SCHEDULED = 1190;
1277/// The system shutdown cannot be initiated because there are other users logged on to the computer.
1278pub const SHUTDOWN_USERS_LOGGED_ON = 1191;
1279/// The specified device name is invalid.
1280pub const BAD_DEVICE = 1200;
1281/// The device is not currently connected but it is a remembered connection.
1282pub const CONNECTION_UNAVAIL = 1201;
1283/// The local device name has a remembered connection to another network resource.
1284pub const DEVICE_ALREADY_REMEMBERED = 1202;
1285/// The network path was either typed incorrectly, does not exist, or the network provider is not currently available. Please try retyping the path or contact your network administrator.
1286pub const NO_NET_OR_BAD_PATH = 1203;
1287/// The specified network provider name is invalid.
1288pub const BAD_PROVIDER = 1204;
1289/// Unable to open the network connection profile.
1290pub const CANNOT_OPEN_PROFILE = 1205;
1291/// The network connection profile is corrupted.
1292pub const BAD_PROFILE = 1206;
1293/// Cannot enumerate a noncontainer.
1294pub const NOT_CONTAINER = 1207;
1295/// An extended error has occurred.
1296pub const EXTENDED_ERROR = 1208;
1297/// The format of the specified group name is invalid.
1298pub const INVALID_GROUPNAME = 1209;
1299/// The format of the specified computer name is invalid.
1300pub const INVALID_COMPUTERNAME = 1210;
1301/// The format of the specified event name is invalid.
1302pub const INVALID_EVENTNAME = 1211;
1303/// The format of the specified domain name is invalid.
1304pub const INVALID_DOMAINNAME = 1212;
1305/// The format of the specified service name is invalid.
1306pub const INVALID_SERVICENAME = 1213;
1307/// The format of the specified network name is invalid.
1308pub const INVALID_NETNAME = 1214;
1309/// The format of the specified share name is invalid.
1310pub const INVALID_SHARENAME = 1215;
1311/// The format of the specified password is invalid.
1312pub const INVALID_PASSWORDNAME = 1216;
1313/// The format of the specified message name is invalid.
1314pub const INVALID_MESSAGENAME = 1217;
1315/// The format of the specified message destination is invalid.
1316pub const INVALID_MESSAGEDEST = 1218;
1317/// Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again.
1318pub const SESSION_CREDENTIAL_CONFLICT = 1219;
1319/// An attempt was made to establish a session to a network server, but there are already too many sessions established to that server.
1320pub const REMOTE_SESSION_LIMIT_EXCEEDED = 1220;
1321/// The workgroup or domain name is already in use by another computer on the network.
1322pub const DUP_DOMAINNAME = 1221;
1323/// The network is not present or not started.
1324pub const NO_NETWORK = 1222;
1325/// The operation was canceled by the user.
1326pub const CANCELLED = 1223;
1327/// The requested operation cannot be performed on a file with a user-mapped section open.
1328pub const USER_MAPPED_FILE = 1224;
1329/// The remote computer refused the network connection.
1330pub const CONNECTION_REFUSED = 1225;
1331/// The network connection was gracefully closed.
1332pub const GRACEFUL_DISCONNECT = 1226;
1333/// The network transport endpoint already has an address associated with it.
1334pub const ADDRESS_ALREADY_ASSOCIATED = 1227;
1335/// An address has not yet been associated with the network endpoint.
1336pub const ADDRESS_NOT_ASSOCIATED = 1228;
1337/// An operation was attempted on a nonexistent network connection.
1338pub const CONNECTION_INVALID = 1229;
1339/// An invalid operation was attempted on an active network connection.
1340pub const CONNECTION_ACTIVE = 1230;
1341/// The network location cannot be reached. For information about network troubleshooting, see Windows Help.
1342pub const NETWORK_UNREACHABLE = 1231;
1343/// The network location cannot be reached. For information about network troubleshooting, see Windows Help.
1344pub const HOST_UNREACHABLE = 1232;
1345/// The network location cannot be reached. For information about network troubleshooting, see Windows Help.
1346pub const PROTOCOL_UNREACHABLE = 1233;
1347/// No service is operating at the destination network endpoint on the remote system.
1348pub const PORT_UNREACHABLE = 1234;
1349/// The request was aborted.
1350pub const REQUEST_ABORTED = 1235;
1351/// The network connection was aborted by the local system.
1352pub const CONNECTION_ABORTED = 1236;
1353/// The operation could not be completed. A retry should be performed.
1354pub const RETRY = 1237;
1355/// A connection to the server could not be made because the limit on the number of concurrent connections for this account has been reached.
1356pub const CONNECTION_COUNT_LIMIT = 1238;
1357/// Attempting to log in during an unauthorized time of day for this account.
1358pub const LOGIN_TIME_RESTRICTION = 1239;
1359/// The account is not authorized to log in from this station.
1360pub const LOGIN_WKSTA_RESTRICTION = 1240;
1361/// The network address could not be used for the operation requested.
1362pub const INCORRECT_ADDRESS = 1241;
1363/// The service is already registered.
1364pub const ALREADY_REGISTERED = 1242;
1365/// The specified service does not exist.
1366pub const SERVICE_NOT_FOUND = 1243;
1367/// The operation being requested was not performed because the user has not been authenticated.
1368pub const NOT_AUTHENTICATED = 1244;
1369/// The operation being requested was not performed because the user has not logged on to the network. The specified service does not exist.
1370pub const NOT_LOGGED_ON = 1245;
1371/// Continue with work in progress.
1372pub const CONTINUE = 1246;
1373/// An attempt was made to perform an initialization operation when initialization has already been completed.
1374pub const ALREADY_INITIALIZED = 1247;
1375/// No more local devices.
1376pub const NO_MORE_DEVICES = 1248;
1377/// The specified site does not exist.
1378pub const NO_SUCH_SITE = 1249;
1379/// A domain controller with the specified name already exists.
1380pub const DOMAIN_CONTROLLER_EXISTS = 1250;
1381/// This operation is supported only when you are connected to the server.
1382pub const ONLY_IF_CONNECTED = 1251;
1383/// The group policy framework should call the extension even if there are no changes.
1384pub const OVERRIDE_NOCHANGES = 1252;
1385/// The specified user does not have a valid profile.
1386pub const BAD_USER_PROFILE = 1253;
1387/// This operation is not supported on a computer running Windows Server 2003 for Small Business Server.
1388pub const NOT_SUPPORTED_ON_SBS = 1254;
1389/// The server machine is shutting down.
1390pub const SERVER_SHUTDOWN_IN_PROGRESS = 1255;
1391/// The remote system is not available. For information about network troubleshooting, see Windows Help.
1392pub const HOST_DOWN = 1256;
1393/// The security identifier provided is not from an account domain.
1394pub const NON_ACCOUNT_SID = 1257;
1395/// The security identifier provided does not have a domain component.
1396pub const NON_DOMAIN_SID = 1258;
1397/// AppHelp dialog canceled thus preventing the application from starting.
1398pub const APPHELP_BLOCK = 1259;
1399/// This program is blocked by group policy. For more information, contact your system administrator.
1400pub const ACCESS_DISABLED_BY_POLICY = 1260;
1401/// A program attempt to use an invalid register value. Normally caused by an uninitialized register. This error is Itanium specific.
1402pub const REG_NAT_CONSUMPTION = 1261;
1403/// The share is currently offline or does not exist.
1404pub const CSCSHARE_OFFLINE = 1262;
1405/// The Kerberos protocol encountered an error while validating the KDC certificate during smartcard logon. There is more information in the system event log.
1406pub const PKINIT_FAILURE = 1263;
1407/// The Kerberos protocol encountered an error while attempting to utilize the smartcard subsystem.
1408pub const SMARTCARD_SUBSYSTEM_FAILURE = 1264;
1409/// The system cannot contact a domain controller to service the authentication request. Please try again later.
1410pub const DOWNGRADE_DETECTED = 1265;
1411/// The machine is locked and cannot be shut down without the force option.
1412pub const MACHINE_LOCKED = 1271;
1413/// An application-defined callback gave invalid data when called.
1414pub const CALLBACK_SUPPLIED_INVALID_DATA = 1273;
1415/// The group policy framework should call the extension in the synchronous foreground policy refresh.
1416pub const SYNC_FOREGROUND_REFRESH_REQUIRED = 1274;
1417/// This driver has been blocked from loading.
1418pub const DRIVER_BLOCKED = 1275;
1419/// A dynamic link library (DLL) referenced a module that was neither a DLL nor the process's executable image.
1420pub const INVALID_IMPORT_OF_NON_DLL = 1276;
1421/// Windows cannot open this program since it has been disabled.
1422pub const ACCESS_DISABLED_WEBBLADE = 1277;
1423/// Windows cannot open this program because the license enforcement system has been tampered with or become corrupted.
1424pub const ACCESS_DISABLED_WEBBLADE_TAMPER = 1278;
1425/// A transaction recover failed.
1426pub const RECOVERY_FAILURE = 1279;
1427/// The current thread has already been converted to a fiber.
1428pub const ALREADY_FIBER = 1280;
1429/// The current thread has already been converted from a fiber.
1430pub const ALREADY_THREAD = 1281;
1431/// The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application.
1432pub const STACK_BUFFER_OVERRUN = 1282;
1433/// Data present in one of the parameters is more than the function can operate on.
1434pub const PARAMETER_QUOTA_EXCEEDED = 1283;
1435/// An attempt to do an operation on a debug object failed because the object is in the process of being deleted.
1436pub const DEBUGGER_INACTIVE = 1284;
1437/// An attempt to delay-load a .dll or get a function address in a delay-loaded .dll failed.
1438pub const DELAY_LOAD_FAILED = 1285;
1439/// %1 is a 16-bit application. You do not have permissions to execute 16-bit applications. Check your permissions with your system administrator.
1440pub const VDM_DISALLOWED = 1286;
1441/// Insufficient information exists to identify the cause of failure.
1442pub const UNIDENTIFIED_ERROR = 1287;
1443/// The parameter passed to a C runtime function is incorrect.
1444pub const INVALID_CRUNTIME_PARAMETER = 1288;
1445/// The operation occurred beyond the valid data length of the file.
1446pub const BEYOND_VDL = 1289;
1447/// The service start failed since one or more services in the same process have an incompatible service SID type setting. A service with restricted service SID type can only coexist in the same process with other services with a restricted SID type. If the service SID type for this service was just configured, the hosting process must be restarted in order to start this service.
1448/// On Windows Server 2003 and Windows XP, an unrestricted service cannot coexist in the same process with other services. The service with the unrestricted service SID type must be moved to an owned process in order to start this service.
1449pub const INCOMPATIBLE_SERVICE_SID_TYPE = 1290;
1450/// The process hosting the driver for this device has been terminated.
1451pub const DRIVER_PROCESS_TERMINATED = 1291;
1452/// An operation attempted to exceed an implementation-defined limit.
1453pub const IMPLEMENTATION_LIMIT = 1292;
1454/// Either the target process, or the target thread's containing process, is a protected process.
1455pub const PROCESS_IS_PROTECTED = 1293;
1456/// The service notification client is lagging too far behind the current state of services in the machine.
1457pub const SERVICE_NOTIFY_CLIENT_LAGGING = 1294;
1458/// The requested file operation failed because the storage quota was exceeded. To free up disk space, move files to a different location or delete unnecessary files. For more information, contact your system administrator.
1459pub const DISK_QUOTA_EXCEEDED = 1295;
1460/// The requested file operation failed because the storage policy blocks that type of file. For more information, contact your system administrator.
1461pub const CONTENT_BLOCKED = 1296;
1462/// A privilege that the service requires to function properly does not exist in the service account configuration. You may use the Services Microsoft Management Console (MMC) snap-in (services.msc) and the Local Security Settings MMC snap-in (secpol.msc) to view the service configuration and the account configuration.
1463pub const INCOMPATIBLE_SERVICE_PRIVILEGE = 1297;
1464/// A thread involved in this operation appears to be unresponsive.
1465pub const APP_HANG = 1298;
1466/// Indicates a particular Security ID may not be assigned as the label of an object.
1467pub const INVALID_LABEL = 1299;
1468/// Not all privileges or groups referenced are assigned to the caller.
1469pub const NOT_ALL_ASSIGNED = 1300;
1470/// Some mapping between account names and security IDs was not done.
1471pub const SOME_NOT_MAPPED = 1301;
1472/// No system quota limits are specifically set for this account.
1473pub const NO_QUOTAS_FOR_ACCOUNT = 1302;
1474/// No encryption key is available. A well-known encryption key was returned.
1475pub const LOCAL_USER_SESSION_KEY = 1303;
1476/// The password is too complex to be converted to a LAN Manager password. The LAN Manager password returned is a NULL string.
1477pub const NULL_LM_PASSWORD = 1304;
1478/// The revision level is unknown.
1479pub const UNKNOWN_REVISION = 1305;
1480/// Indicates two revision levels are incompatible.
1481pub const REVISION_MISMATCH = 1306;
1482/// This security ID may not be assigned as the owner of this object.
1483pub const INVALID_OWNER = 1307;
1484/// This security ID may not be assigned as the primary group of an object.
1485pub const INVALID_PRIMARY_GROUP = 1308;
1486/// An attempt has been made to operate on an impersonation token by a thread that is not currently impersonating a client.
1487pub const NO_IMPERSONATION_TOKEN = 1309;
1488/// The group may not be disabled.
1489pub const CANT_DISABLE_MANDATORY = 1310;
1490/// There are currently no logon servers available to service the logon request.
1491pub const NO_LOGON_SERVERS = 1311;
1492/// A specified logon session does not exist. It may already have been terminated.
1493pub const NO_SUCH_LOGON_SESSION = 1312;
1494/// A specified privilege does not exist.
1495pub const NO_SUCH_PRIVILEGE = 1313;
1496/// A required privilege is not held by the client.
1497pub const PRIVILEGE_NOT_HELD = 1314;
1498/// The name provided is not a properly formed account name.
1499pub const INVALID_ACCOUNT_NAME = 1315;
1500/// The specified account already exists.
1501pub const USER_EXISTS = 1316;
1502/// The specified account does not exist.
1503pub const NO_SUCH_USER = 1317;
1504/// The specified group already exists.
1505pub const GROUP_EXISTS = 1318;
1506/// The specified group does not exist.
1507pub const NO_SUCH_GROUP = 1319;
1508/// Either the specified user account is already a member of the specified group, or the specified group cannot be deleted because it contains a member.
1509pub const MEMBER_IN_GROUP = 1320;
1510/// The specified user account is not a member of the specified group account.
1511pub const MEMBER_NOT_IN_GROUP = 1321;
1512/// This operation is disallowed as it could result in an administration account being disabled, deleted or unable to log on.
1513pub const LAST_ADMIN = 1322;
1514/// Unable to update the password. The value provided as the current password is incorrect.
1515pub const WRONG_PASSWORD = 1323;
1516/// Unable to update the password. The value provided for the new password contains values that are not allowed in passwords.
1517pub const ILL_FORMED_PASSWORD = 1324;
1518/// Unable to update the password. The value provided for the new password does not meet the length, complexity, or history requirements of the domain.
1519pub const PASSWORD_RESTRICTION = 1325;
1520/// The user name or password is incorrect.
1521pub const LOGON_FAILURE = 1326;
1522/// Account restrictions are preventing this user from signing in. For example: blank passwords aren't allowed, sign-in times are limited, or a policy restriction has been enforced.
1523pub const ACCOUNT_RESTRICTION = 1327;
1524/// Your account has time restrictions that keep you from signing in right now.
1525pub const INVALID_LOGON_HOURS = 1328;
1526/// This user isn't allowed to sign in to this computer.
1527pub const INVALID_WORKSTATION = 1329;
1528/// The password for this account has expired.
1529pub const PASSWORD_EXPIRED = 1330;
1530/// This user can't sign in because this account is currently disabled.
1531pub const ACCOUNT_DISABLED = 1331;
1532/// No mapping between account names and security IDs was done.
1533pub const NONE_MAPPED = 1332;
1534/// Too many local user identifiers (LUIDs) were requested at one time.
1535pub const TOO_MANY_LUIDS_REQUESTED = 1333;
1536/// No more local user identifiers (LUIDs) are available.
1537pub const LUIDS_EXHAUSTED = 1334;
1538/// The subauthority part of a security ID is invalid for this particular use.
1539pub const INVALID_SUB_AUTHORITY = 1335;
1540/// The access control list (ACL) structure is invalid.
1541pub const INVALID_ACL = 1336;
1542/// The security ID structure is invalid.
1543pub const INVALID_SID = 1337;
1544/// The security descriptor structure is invalid.
1545pub const INVALID_SECURITY_DESCR = 1338;
1546/// The inherited access control list (ACL) or access control entry (ACE) could not be built.
1547pub const BAD_INHERITANCE_ACL = 1340;
1548/// The server is currently disabled.
1549pub const SERVER_DISABLED = 1341;
1550/// The server is currently enabled.
1551pub const SERVER_NOT_DISABLED = 1342;
1552/// The value provided was an invalid value for an identifier authority.
1553pub const INVALID_ID_AUTHORITY = 1343;
1554/// No more memory is available for security information updates.
1555pub const ALLOTTED_SPACE_EXCEEDED = 1344;
1556/// The specified attributes are invalid, or incompatible with the attributes for the group as a whole.
1557pub const INVALID_GROUP_ATTRIBUTES = 1345;
1558/// Either a required impersonation level was not provided, or the provided impersonation level is invalid.
1559pub const BAD_IMPERSONATION_LEVEL = 1346;
1560/// Cannot open an anonymous level security token.
1561pub const CANT_OPEN_ANONYMOUS = 1347;
1562/// The validation information class requested was invalid.
1563pub const BAD_VALIDATION_CLASS = 1348;
1564/// The type of the token is inappropriate for its attempted use.
1565pub const BAD_TOKEN_TYPE = 1349;
1566/// Unable to perform a security operation on an object that has no associated security.
1567pub const NO_SECURITY_ON_OBJECT = 1350;
1568/// Configuration information could not be read from the domain controller, either because the machine is unavailable, or access has been denied.
1569pub const CANT_ACCESS_DOMAIN_INFO = 1351;
1570/// The security account manager (SAM) or local security authority (LSA) server was in the wrong state to perform the security operation.
1571pub const INVALID_SERVER_STATE = 1352;
1572/// The domain was in the wrong state to perform the security operation.
1573pub const INVALID_DOMAIN_STATE = 1353;
1574/// This operation is only allowed for the Primary Domain Controller of the domain.
1575pub const INVALID_DOMAIN_ROLE = 1354;
1576/// The specified domain either does not exist or could not be contacted.
1577pub const NO_SUCH_DOMAIN = 1355;
1578/// The specified domain already exists.
1579pub const DOMAIN_EXISTS = 1356;
1580/// An attempt was made to exceed the limit on the number of domains per server.
1581pub const DOMAIN_LIMIT_EXCEEDED = 1357;
1582/// Unable to complete the requested operation because of either a catastrophic media failure or a data structure corruption on the disk.
1583pub const INTERNAL_DB_CORRUPTION = 1358;
1584/// An internal error occurred.
1585pub const INTERNAL_ERROR = 1359;
1586/// Generic access types were contained in an access mask which should already be mapped to nongeneric types.
1587pub const GENERIC_NOT_MAPPED = 1360;
1588/// A security descriptor is not in the right format (absolute or self-relative).
1589pub const BAD_DESCRIPTOR_FORMAT = 1361;
1590/// The requested action is restricted for use by logon processes only. The calling process has not registered as a logon process.
1591pub const NOT_LOGON_PROCESS = 1362;
1592/// Cannot start a new logon session with an ID that is already in use.
1593pub const LOGON_SESSION_EXISTS = 1363;
1594/// A specified authentication package is unknown.
1595pub const NO_SUCH_PACKAGE = 1364;
1596/// The logon session is not in a state that is consistent with the requested operation.
1597pub const BAD_LOGON_SESSION_STATE = 1365;
1598/// The logon session ID is already in use.
1599pub const LOGON_SESSION_COLLISION = 1366;
1600/// A logon request contained an invalid logon type value.
1601pub const INVALID_LOGON_TYPE = 1367;
1602/// Unable to impersonate using a named pipe until data has been read from that pipe.
1603pub const CANNOT_IMPERSONATE = 1368;
1604/// The transaction state of a registry subtree is incompatible with the requested operation.
1605pub const RXACT_INVALID_STATE = 1369;
1606/// An internal security database corruption has been encountered.
1607pub const RXACT_COMMIT_FAILURE = 1370;
1608/// Cannot perform this operation on built-in accounts.
1609pub const SPECIAL_ACCOUNT = 1371;
1610/// Cannot perform this operation on this built-in special group.
1611pub const SPECIAL_GROUP = 1372;
1612/// Cannot perform this operation on this built-in special user.
1613pub const SPECIAL_USER = 1373;
1614/// The user cannot be removed from a group because the group is currently the user's primary group.
1615pub const MEMBERS_PRIMARY_GROUP = 1374;
1616/// The token is already in use as a primary token.
1617pub const TOKEN_ALREADY_IN_USE = 1375;
1618/// The specified local group does not exist.
1619pub const NO_SUCH_ALIAS = 1376;
1620/// The specified account name is not a member of the group.
1621pub const MEMBER_NOT_IN_ALIAS = 1377;
1622/// The specified account name is already a member of the group.
1623pub const MEMBER_IN_ALIAS = 1378;
1624/// The specified local group already exists.
1625pub const ALIAS_EXISTS = 1379;
1626/// Logon failure: the user has not been granted the requested logon type at this computer.
1627pub const LOGON_NOT_GRANTED = 1380;
1628/// The maximum number of secrets that may be stored in a single system has been exceeded.
1629pub const TOO_MANY_SECRETS = 1381;
1630/// The length of a secret exceeds the maximum length allowed.
1631pub const SECRET_TOO_LONG = 1382;
1632/// The local security authority database contains an internal inconsistency.
1633pub const INTERNAL_DB_ERROR = 1383;
1634/// During a logon attempt, the user's security context accumulated too many security IDs.
1635pub const TOO_MANY_CONTEXT_IDS = 1384;
1636/// Logon failure: the user has not been granted the requested logon type at this computer.
1637pub const LOGON_TYPE_NOT_GRANTED = 1385;
1638/// A cross-encrypted password is necessary to change a user password.
1639pub const NT_CROSS_ENCRYPTION_REQUIRED = 1386;
1640/// A member could not be added to or removed from the local group because the member does not exist.
1641pub const NO_SUCH_MEMBER = 1387;
1642/// A new member could not be added to a local group because the member has the wrong account type.
1643pub const INVALID_MEMBER = 1388;
1644/// Too many security IDs have been specified.
1645pub const TOO_MANY_SIDS = 1389;
1646/// A cross-encrypted password is necessary to change this user password.
1647pub const LM_CROSS_ENCRYPTION_REQUIRED = 1390;
1648/// Indicates an ACL contains no inheritable components.
1649pub const NO_INHERITANCE = 1391;
1650/// The file or directory is corrupted and unreadable.
1651pub const FILE_CORRUPT = 1392;
1652/// The disk structure is corrupted and unreadable.
1653pub const DISK_CORRUPT = 1393;
1654/// There is no user session key for the specified logon session.
1655pub const NO_USER_SESSION_KEY = 1394;
1656/// The service being accessed is licensed for a particular number of connections. No more connections can be made to the service at this time because there are already as many connections as the service can accept.
1657pub const LICENSE_QUOTA_EXCEEDED = 1395;
1658/// The target account name is incorrect.
1659pub const WRONG_TARGET_NAME = 1396;
1660/// Mutual Authentication failed. The server's password is out of date at the domain controller.
1661pub const MUTUAL_AUTH_FAILED = 1397;
1662/// There is a time and/or date difference between the client and server.
1663pub const TIME_SKEW = 1398;
1664/// This operation cannot be performed on the current domain.
1665pub const CURRENT_DOMAIN_NOT_ALLOWED = 1399;
1666/// Invalid window handle.
1667pub const INVALID_WINDOW_HANDLE = 1400;
1668/// Invalid menu handle.
1669pub const INVALID_MENU_HANDLE = 1401;
1670/// Invalid cursor handle.
1671pub const INVALID_CURSOR_HANDLE = 1402;
1672/// Invalid accelerator table handle.
1673pub const INVALID_ACCEL_HANDLE = 1403;
1674/// Invalid hook handle.
1675pub const INVALID_HOOK_HANDLE = 1404;
1676/// Invalid handle to a multiple-window position structure.
1677pub const INVALID_DWP_HANDLE = 1405;
1678/// Cannot create a top-level child window.
1679pub const TLW_WITH_WSCHILD = 1406;
1680/// Cannot find window class.
1681pub const CANNOT_FIND_WND_CLASS = 1407;
1682/// Invalid window; it belongs to other thread.
1683pub const WINDOW_OF_OTHER_THREAD = 1408;
1684/// Hot key is already registered.
1685pub const HOTKEY_ALREADY_REGISTERED = 1409;
1686/// Class already exists.
1687pub const CLASS_ALREADY_EXISTS = 1410;
1688/// Class does not exist.
1689pub const CLASS_DOES_NOT_EXIST = 1411;
1690/// Class still has open windows.
1691pub const CLASS_HAS_WINDOWS = 1412;
1692/// Invalid index.
1693pub const INVALID_INDEX = 1413;
1694/// Invalid icon handle.
1695pub const INVALID_ICON_HANDLE = 1414;
1696/// Using private DIALOG window words.
1697pub const PRIVATE_DIALOG_INDEX = 1415;
1698/// The list box identifier was not found.
1699pub const LISTBOX_ID_NOT_FOUND = 1416;
1700/// No wildcards were found.
1701pub const NO_WILDCARD_CHARACTERS = 1417;
1702/// Thread does not have a clipboard open.
1703pub const CLIPBOARD_NOT_OPEN = 1418;
1704/// Hot key is not registered.
1705pub const HOTKEY_NOT_REGISTERED = 1419;
1706/// The window is not a valid dialog window.
1707pub const WINDOW_NOT_DIALOG = 1420;
1708/// Control ID not found.
1709pub const CONTROL_ID_NOT_FOUND = 1421;
1710/// Invalid message for a combo box because it does not have an edit control.
1711pub const INVALID_COMBOBOX_MESSAGE = 1422;
1712/// The window is not a combo box.
1713pub const WINDOW_NOT_COMBOBOX = 1423;
1714/// Height must be less than 256.
1715pub const INVALID_EDIT_HEIGHT = 1424;
1716/// Invalid device context (DC) handle.
1717pub const DC_NOT_FOUND = 1425;
1718/// Invalid hook procedure type.
1719pub const INVALID_HOOK_FILTER = 1426;
1720/// Invalid hook procedure.
1721pub const INVALID_FILTER_PROC = 1427;
1722/// Cannot set nonlocal hook without a module handle.
1723pub const HOOK_NEEDS_HMOD = 1428;
1724/// This hook procedure can only be set globally.
1725pub const GLOBAL_ONLY_HOOK = 1429;
1726/// The journal hook procedure is already installed.
1727pub const JOURNAL_HOOK_SET = 1430;
1728/// The hook procedure is not installed.
1729pub const HOOK_NOT_INSTALLED = 1431;
1730/// Invalid message for single-selection list box.
1731pub const INVALID_LB_MESSAGE = 1432;
1732/// LB_SETCOUNT sent to non-lazy list box.
1733pub const SETCOUNT_ON_BAD_LB = 1433;
1734/// This list box does not support tab stops.
1735pub const LB_WITHOUT_TABSTOPS = 1434;
1736/// Cannot destroy object created by another thread.
1737pub const DESTROY_OBJECT_OF_OTHER_THREAD = 1435;
1738/// Child windows cannot have menus.
1739pub const CHILD_WINDOW_MENU = 1436;
1740/// The window does not have a system menu.
1741pub const NO_SYSTEM_MENU = 1437;
1742/// Invalid message box style.
1743pub const INVALID_MSGBOX_STYLE = 1438;
1744/// Invalid system-wide (SPI_*) parameter.
1745pub const INVALID_SPI_VALUE = 1439;
1746/// Screen already locked.
1747pub const SCREEN_ALREADY_LOCKED = 1440;
1748/// All handles to windows in a multiple-window position structure must have the same parent.
1749pub const HWNDS_HAVE_DIFF_PARENT = 1441;
1750/// The window is not a child window.
1751pub const NOT_CHILD_WINDOW = 1442;
1752/// Invalid GW_* command.
1753pub const INVALID_GW_COMMAND = 1443;
1754/// Invalid thread identifier.
1755pub const INVALID_THREAD_ID = 1444;
1756/// Cannot process a message from a window that is not a multiple document interface (MDI) window.
1757pub const NON_MDICHILD_WINDOW = 1445;
1758/// Popup menu already active.
1759pub const POPUP_ALREADY_ACTIVE = 1446;
1760/// The window does not have scroll bars.
1761pub const NO_SCROLLBARS = 1447;
1762/// Scroll bar range cannot be greater than MAXLONG.
1763pub const INVALID_SCROLLBAR_RANGE = 1448;
1764/// Cannot show or remove the window in the way specified.
1765pub const INVALID_SHOWWIN_COMMAND = 1449;
1766/// Insufficient system resources exist to complete the requested service.
1767pub const NO_SYSTEM_RESOURCES = 1450;
1768/// Insufficient system resources exist to complete the requested service.
1769pub const NONPAGED_SYSTEM_RESOURCES = 1451;
1770/// Insufficient system resources exist to complete the requested service.
1771pub const PAGED_SYSTEM_RESOURCES = 1452;
1772/// Insufficient quota to complete the requested service.
1773pub const WORKING_SET_QUOTA = 1453;
1774/// Insufficient quota to complete the requested service.
1775pub const PAGEFILE_QUOTA = 1454;
1776/// The paging file is too small for this operation to complete.
1777pub const COMMITMENT_LIMIT = 1455;
1778/// A menu item was not found.
1779pub const MENU_ITEM_NOT_FOUND = 1456;
1780/// Invalid keyboard layout handle.
1781pub const INVALID_KEYBOARD_HANDLE = 1457;
1782/// Hook type not allowed.
1783pub const HOOK_TYPE_NOT_ALLOWED = 1458;
1784/// This operation requires an interactive window station.
1785pub const REQUIRES_INTERACTIVE_WINDOWSTATION = 1459;
1786/// This operation returned because the timeout period expired.
1787pub const TIMEOUT = 1460;
1788/// Invalid monitor handle.
1789pub const INVALID_MONITOR_HANDLE = 1461;
1790/// Incorrect size argument.
1791pub const INCORRECT_SIZE = 1462;
1792/// The symbolic link cannot be followed because its type is disabled.
1793pub const SYMLINK_CLASS_DISABLED = 1463;
1794/// This application does not support the current operation on symbolic links.
1795pub const SYMLINK_NOT_SUPPORTED = 1464;
1796/// Windows was unable to parse the requested XML data.
1797pub const XML_PARSE_ERROR = 1465;
1798/// An error was encountered while processing an XML digital signature.
1799pub const XMLDSIG_ERROR = 1466;
1800/// This application must be restarted.
1801pub const RESTART_APPLICATION = 1467;
1802/// The caller made the connection request in the wrong routing compartment.
1803pub const WRONG_COMPARTMENT = 1468;
1804/// There was an AuthIP failure when attempting to connect to the remote host.
1805pub const AUTHIP_FAILURE = 1469;
1806/// Insufficient NVRAM resources exist to complete the requested service. A reboot might be required.
1807pub const NO_NVRAM_RESOURCES = 1470;
1808/// Unable to finish the requested operation because the specified process is not a GUI process.
1809pub const NOT_GUI_PROCESS = 1471;
1810/// The event log file is corrupted.
1811pub const EVENTLOG_FILE_CORRUPT = 1500;
1812/// No event log file could be opened, so the event logging service did not start.
1813pub const EVENTLOG_CANT_START = 1501;
1814/// The event log file is full.
1815pub const LOG_FILE_FULL = 1502;
1816/// The event log file has changed between read operations.
1817pub const EVENTLOG_FILE_CHANGED = 1503;
1818/// The specified task name is invalid.
1819pub const INVALID_TASK_NAME = 1550;
1820/// The specified task index is invalid.
1821pub const INVALID_TASK_INDEX = 1551;
1822/// The specified thread is already joining a task.
1823pub const THREAD_ALREADY_IN_TASK = 1552;
1824/// The Windows Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed. Contact your support personnel for assistance.
1825pub const INSTALL_SERVICE_FAILURE = 1601;
1826/// User cancelled installation.
1827pub const INSTALL_USEREXIT = 1602;
1828/// Fatal error during installation.
1829pub const INSTALL_FAILURE = 1603;
1830/// Installation suspended, incomplete.
1831pub const INSTALL_SUSPEND = 1604;
1832/// This action is only valid for products that are currently installed.
1833pub const UNKNOWN_PRODUCT = 1605;
1834/// Feature ID not registered.
1835pub const UNKNOWN_FEATURE = 1606;
1836/// Component ID not registered.
1837pub const UNKNOWN_COMPONENT = 1607;
1838/// Unknown property.
1839pub const UNKNOWN_PROPERTY = 1608;
1840/// Handle is in an invalid state.
1841pub const INVALID_HANDLE_STATE = 1609;
1842/// The configuration data for this product is corrupt. Contact your support personnel.
1843pub const BAD_CONFIGURATION = 1610;
1844/// Component qualifier not present.
1845pub const INDEX_ABSENT = 1611;
1846/// The installation source for this product is not available. Verify that the source exists and that you can access it.
1847pub const INSTALL_SOURCE_ABSENT = 1612;
1848/// This installation package cannot be installed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service.
1849pub const INSTALL_PACKAGE_VERSION = 1613;
1850/// Product is uninstalled.
1851pub const PRODUCT_UNINSTALLED = 1614;
1852/// SQL query syntax invalid or unsupported.
1853pub const BAD_QUERY_SYNTAX = 1615;
1854/// Record field does not exist.
1855pub const INVALID_FIELD = 1616;
1856/// The device has been removed.
1857pub const DEVICE_REMOVED = 1617;
1858/// Another installation is already in progress. Complete that installation before proceeding with this install.
1859pub const INSTALL_ALREADY_RUNNING = 1618;
1860/// This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package.
1861pub const INSTALL_PACKAGE_OPEN_FAILED = 1619;
1862/// This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package.
1863pub const INSTALL_PACKAGE_INVALID = 1620;
1864/// There was an error starting the Windows Installer service user interface. Contact your support personnel.
1865pub const INSTALL_UI_FAILURE = 1621;
1866/// Error opening installation log file. Verify that the specified log file location exists and that you can write to it.
1867pub const INSTALL_LOG_FAILURE = 1622;
1868/// The language of this installation package is not supported by your system.
1869pub const INSTALL_LANGUAGE_UNSUPPORTED = 1623;
1870/// Error applying transforms. Verify that the specified transform paths are valid.
1871pub const INSTALL_TRANSFORM_FAILURE = 1624;
1872/// This installation is forbidden by system policy. Contact your system administrator.
1873pub const INSTALL_PACKAGE_REJECTED = 1625;
1874/// Function could not be executed.
1875pub const FUNCTION_NOT_CALLED = 1626;
1876/// Function failed during execution.
1877pub const FUNCTION_FAILED = 1627;
1878/// Invalid or unknown table specified.
1879pub const INVALID_TABLE = 1628;
1880/// Data supplied is of wrong type.
1881pub const DATATYPE_MISMATCH = 1629;
1882/// Data of this type is not supported.
1883pub const UNSUPPORTED_TYPE = 1630;
1884/// The Windows Installer service failed to start. Contact your support personnel.
1885pub const CREATE_FAILED = 1631;
1886/// The Temp folder is on a drive that is full or is inaccessible. Free up space on the drive or verify that you have write permission on the Temp folder.
1887pub const INSTALL_TEMP_UNWRITABLE = 1632;
1888/// This installation package is not supported by this processor type. Contact your product vendor.
1889pub const INSTALL_PLATFORM_UNSUPPORTED = 1633;
1890/// Component not used on this computer.
1891pub const INSTALL_NOTUSED = 1634;
1892/// This update package could not be opened. Verify that the update package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer update package.
1893pub const PATCH_PACKAGE_OPEN_FAILED = 1635;
1894/// This update package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer update package.
1895pub const PATCH_PACKAGE_INVALID = 1636;
1896/// This update package cannot be processed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service.
1897pub const PATCH_PACKAGE_UNSUPPORTED = 1637;
1898/// Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.
1899pub const PRODUCT_VERSION = 1638;
1900/// Invalid command line argument. Consult the Windows Installer SDK for detailed command line help.
1901pub const INVALID_COMMAND_LINE = 1639;
1902/// Only administrators have permission to add, remove, or configure server software during a Terminal services remote session. If you want to install or configure software on the server, contact your network administrator.
1903pub const INSTALL_REMOTE_DISALLOWED = 1640;
1904/// The requested operation completed successfully. The system will be restarted so the changes can take effect.
1905pub const SUCCESS_REBOOT_INITIATED = 1641;
1906/// The upgrade cannot be installed by the Windows Installer service because the program to be upgraded may be missing, or the upgrade may update a different version of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade.
1907pub const PATCH_TARGET_NOT_FOUND = 1642;
1908/// The update package is not permitted by software restriction policy.
1909pub const PATCH_PACKAGE_REJECTED = 1643;
1910/// One or more customizations are not permitted by software restriction policy.
1911pub const INSTALL_TRANSFORM_REJECTED = 1644;
1912/// The Windows Installer does not permit installation from a Remote Desktop Connection.
1913pub const INSTALL_REMOTE_PROHIBITED = 1645;
1914/// Uninstallation of the update package is not supported.
1915pub const PATCH_REMOVAL_UNSUPPORTED = 1646;
1916/// The update is not applied to this product.
1917pub const UNKNOWN_PATCH = 1647;
1918/// No valid sequence could be found for the set of updates.
1919pub const PATCH_NO_SEQUENCE = 1648;
1920/// Update removal was disallowed by policy.
1921pub const PATCH_REMOVAL_DISALLOWED = 1649;
1922/// The XML update data is invalid.
1923pub const INVALID_PATCH_XML = 1650;
1924/// Windows Installer does not permit updating of managed advertised products. At least one feature of the product must be installed before applying the update.
1925pub const PATCH_MANAGED_ADVERTISED_PRODUCT = 1651;
1926/// The Windows Installer service is not accessible in Safe Mode. Please try again when your computer is not in Safe Mode or you can use System Restore to return your machine to a previous good state.
1927pub const INSTALL_SERVICE_SAFEBOOT = 1652;
1928/// A fail fast exception occurred. Exception handlers will not be invoked and the process will be terminated immediately.
1929pub const FAIL_FAST_EXCEPTION = 1653;
1930/// The app that you are trying to run is not supported on this version of Windows.
1931pub const INSTALL_REJECTED = 1654;
1932/// The string binding is invalid.
1933pub const RPC_S_INVALID_STRING_BINDING = 1700;
1934/// The binding handle is not the correct type.
1935pub const RPC_S_WRONG_KIND_OF_BINDING = 1701;
1936/// The binding handle is invalid.
1937pub const RPC_S_INVALID_BINDING = 1702;
1938/// The RPC protocol sequence is not supported.
1939pub const RPC_S_PROTSEQ_NOT_SUPPORTED = 1703;
1940/// The RPC protocol sequence is invalid.
1941pub const RPC_S_INVALID_RPC_PROTSEQ = 1704;
1942/// The string universal unique identifier (UUID) is invalid.
1943pub const RPC_S_INVALID_STRING_UUID = 1705;
1944/// The endpoint format is invalid.
1945pub const RPC_S_INVALID_ENDPOINT_FORMAT = 1706;
1946/// The network address is invalid.
1947pub const RPC_S_INVALID_NET_ADDR = 1707;
1948/// No endpoint was found.
1949pub const RPC_S_NO_ENDPOINT_FOUND = 1708;
1950/// The timeout value is invalid.
1951pub const RPC_S_INVALID_TIMEOUT = 1709;
1952/// The object universal unique identifier (UUID) was not found.
1953pub const RPC_S_OBJECT_NOT_FOUND = 1710;
1954/// The object universal unique identifier (UUID) has already been registered.
1955pub const RPC_S_ALREADY_REGISTERED = 1711;
1956/// The type universal unique identifier (UUID) has already been registered.
1957pub const RPC_S_TYPE_ALREADY_REGISTERED = 1712;
1958/// The RPC server is already listening.
1959pub const RPC_S_ALREADY_LISTENING = 1713;
1960/// No protocol sequences have been registered.
1961pub const RPC_S_NO_PROTSEQS_REGISTERED = 1714;
1962/// The RPC server is not listening.
1963pub const RPC_S_NOT_LISTENING = 1715;
1964/// The manager type is unknown.
1965pub const RPC_S_UNKNOWN_MGR_TYPE = 1716;
1966/// The interface is unknown.
1967pub const RPC_S_UNKNOWN_IF = 1717;
1968/// There are no bindings.
1969pub const RPC_S_NO_BINDINGS = 1718;
1970/// There are no protocol sequences.
1971pub const RPC_S_NO_PROTSEQS = 1719;
1972/// The endpoint cannot be created.
1973pub const RPC_S_CANT_CREATE_ENDPOINT = 1720;
1974/// Not enough resources are available to complete this operation.
1975pub const RPC_S_OUT_OF_RESOURCES = 1721;
1976/// The RPC server is unavailable.
1977pub const RPC_S_SERVER_UNAVAILABLE = 1722;
1978/// The RPC server is too busy to complete this operation.
1979pub const RPC_S_SERVER_TOO_BUSY = 1723;
1980/// The network options are invalid.
1981pub const RPC_S_INVALID_NETWORK_OPTIONS = 1724;
1982/// There are no remote procedure calls active on this thread.
1983pub const RPC_S_NO_CALL_ACTIVE = 1725;
1984/// The remote procedure call failed.
1985pub const RPC_S_CALL_FAILED = 1726;
1986/// The remote procedure call failed and did not execute.
1987pub const RPC_S_CALL_FAILED_DNE = 1727;
1988/// A remote procedure call (RPC) protocol error occurred.
1989pub const RPC_S_PROTOCOL_ERROR = 1728;
1990/// Access to the HTTP proxy is denied.
1991pub const RPC_S_PROXY_ACCESS_DENIED = 1729;
1992/// The transfer syntax is not supported by the RPC server.
1993pub const RPC_S_UNSUPPORTED_TRANS_SYN = 1730;
1994/// The universal unique identifier (UUID) type is not supported.
1995pub const RPC_S_UNSUPPORTED_TYPE = 1732;
1996/// The tag is invalid.
1997pub const RPC_S_INVALID_TAG = 1733;
1998/// The array bounds are invalid.
1999pub const RPC_S_INVALID_BOUND = 1734;
2000/// The binding does not contain an entry name.
2001pub const RPC_S_NO_ENTRY_NAME = 1735;
2002/// The name syntax is invalid.
2003pub const RPC_S_INVALID_NAME_SYNTAX = 1736;
2004/// The name syntax is not supported.
2005pub const RPC_S_UNSUPPORTED_NAME_SYNTAX = 1737;
2006/// No network address is available to use to construct a universal unique identifier (UUID).
2007pub const RPC_S_UUID_NO_ADDRESS = 1739;
2008/// The endpoint is a duplicate.
2009pub const RPC_S_DUPLICATE_ENDPOINT = 1740;
2010/// The authentication type is unknown.
2011pub const RPC_S_UNKNOWN_AUTHN_TYPE = 1741;
2012/// The maximum number of calls is too small.
2013pub const RPC_S_MAX_CALLS_TOO_SMALL = 1742;
2014/// The string is too long.
2015pub const RPC_S_STRING_TOO_LONG = 1743;
2016/// The RPC protocol sequence was not found.
2017pub const RPC_S_PROTSEQ_NOT_FOUND = 1744;
2018/// The procedure number is out of range.
2019pub const RPC_S_PROCNUM_OUT_OF_RANGE = 1745;
2020/// The binding does not contain any authentication information.
2021pub const RPC_S_BINDING_HAS_NO_AUTH = 1746;
2022/// The authentication service is unknown.
2023pub const RPC_S_UNKNOWN_AUTHN_SERVICE = 1747;
2024/// The authentication level is unknown.
2025pub const RPC_S_UNKNOWN_AUTHN_LEVEL = 1748;
2026/// The security context is invalid.
2027pub const RPC_S_INVALID_AUTH_IDENTITY = 1749;
2028/// The authorization service is unknown.
2029pub const RPC_S_UNKNOWN_AUTHZ_SERVICE = 1750;
2030/// The entry is invalid.
2031pub const EPT_S_INVALID_ENTRY = 1751;
2032/// The server endpoint cannot perform the operation.
2033pub const EPT_S_CANT_PERFORM_OP = 1752;
2034/// There are no more endpoints available from the endpoint mapper.
2035pub const EPT_S_NOT_REGISTERED = 1753;
2036/// No interfaces have been exported.
2037pub const RPC_S_NOTHING_TO_EXPORT = 1754;
2038/// The entry name is incomplete.
2039pub const RPC_S_INCOMPLETE_NAME = 1755;
2040/// The version option is invalid.
2041pub const RPC_S_INVALID_VERS_OPTION = 1756;
2042/// There are no more members.
2043pub const RPC_S_NO_MORE_MEMBERS = 1757;
2044/// There is nothing to unexport.
2045pub const RPC_S_NOT_ALL_OBJS_UNEXPORTED = 1758;
2046/// The interface was not found.
2047pub const RPC_S_INTERFACE_NOT_FOUND = 1759;
2048/// The entry already exists.
2049pub const RPC_S_ENTRY_ALREADY_EXISTS = 1760;
2050/// The entry is not found.
2051pub const RPC_S_ENTRY_NOT_FOUND = 1761;
2052/// The name service is unavailable.
2053pub const RPC_S_NAME_SERVICE_UNAVAILABLE = 1762;
2054/// The network address family is invalid.
2055pub const RPC_S_INVALID_NAF_ID = 1763;
2056/// The requested operation is not supported.
2057pub const RPC_S_CANNOT_SUPPORT = 1764;
2058/// No security context is available to allow impersonation.
2059pub const RPC_S_NO_CONTEXT_AVAILABLE = 1765;
2060/// An internal error occurred in a remote procedure call (RPC).
2061pub const RPC_S_INTERNAL_ERROR = 1766;
2062/// The RPC server attempted an integer division by zero.
2063pub const RPC_S_ZERO_DIVIDE = 1767;
2064/// An addressing error occurred in the RPC server.
2065pub const RPC_S_ADDRESS_ERROR = 1768;
2066/// A floating-point operation at the RPC server caused a division by zero.
2067pub const RPC_S_FP_DIV_ZERO = 1769;
2068/// A floating-point underflow occurred at the RPC server.
2069pub const RPC_S_FP_UNDERFLOW = 1770;
2070/// A floating-point overflow occurred at the RPC server.
2071pub const RPC_S_FP_OVERFLOW = 1771;
2072/// The list of RPC servers available for the binding of auto handles has been exhausted.
2073pub const RPC_X_NO_MORE_ENTRIES = 1772;
2074/// Unable to open the character translation table file.
2075pub const RPC_X_SS_CHAR_TRANS_OPEN_FAIL = 1773;
2076/// The file containing the character translation table has fewer than 512 bytes.
2077pub const RPC_X_SS_CHAR_TRANS_SHORT_FILE = 1774;
2078/// A null context handle was passed from the client to the host during a remote procedure call.
2079pub const RPC_X_SS_IN_NULL_CONTEXT = 1775;
2080/// The context handle changed during a remote procedure call.
2081pub const RPC_X_SS_CONTEXT_DAMAGED = 1777;
2082/// The binding handles passed to a remote procedure call do not match.
2083pub const RPC_X_SS_HANDLES_MISMATCH = 1778;
2084/// The stub is unable to get the remote procedure call handle.
2085pub const RPC_X_SS_CANNOT_GET_CALL_HANDLE = 1779;
2086/// A null reference pointer was passed to the stub.
2087pub const RPC_X_NULL_REF_POINTER = 1780;
2088/// The enumeration value is out of range.
2089pub const RPC_X_ENUM_VALUE_OUT_OF_RANGE = 1781;
2090/// The byte count is too small.
2091pub const RPC_X_BYTE_COUNT_TOO_SMALL = 1782;
2092/// The stub received bad data.
2093pub const RPC_X_BAD_STUB_DATA = 1783;
2094/// The supplied user buffer is not valid for the requested operation.
2095pub const INVALID_USER_BUFFER = 1784;
2096/// The disk media is not recognized. It may not be formatted.
2097pub const UNRECOGNIZED_MEDIA = 1785;
2098/// The workstation does not have a trust secret.
2099pub const NO_TRUST_LSA_SECRET = 1786;
2100/// The security database on the server does not have a computer account for this workstation trust relationship.
2101pub const NO_TRUST_SAM_ACCOUNT = 1787;
2102/// The trust relationship between the primary domain and the trusted domain failed.
2103pub const TRUSTED_DOMAIN_FAILURE = 1788;
2104/// The trust relationship between this workstation and the primary domain failed.
2105pub const TRUSTED_RELATIONSHIP_FAILURE = 1789;
2106/// The network logon failed.
2107pub const TRUST_FAILURE = 1790;
2108/// A remote procedure call is already in progress for this thread.
2109pub const RPC_S_CALL_IN_PROGRESS = 1791;
2110/// An attempt was made to logon, but the network logon service was not started.
2111pub const NETLOGON_NOT_STARTED = 1792;
2112/// The user's account has expired.
2113pub const ACCOUNT_EXPIRED = 1793;
2114/// The redirector is in use and cannot be unloaded.
2115pub const REDIRECTOR_HAS_OPEN_HANDLES = 1794;
2116/// The specified printer driver is already installed.
2117pub const PRINTER_DRIVER_ALREADY_INSTALLED = 1795;
2118/// The specified port is unknown.
2119pub const UNKNOWN_PORT = 1796;
2120/// The printer driver is unknown.
2121pub const UNKNOWN_PRINTER_DRIVER = 1797;
2122/// The print processor is unknown.
2123pub const UNKNOWN_PRINTPROCESSOR = 1798;
2124/// The specified separator file is invalid.
2125pub const INVALID_SEPARATOR_FILE = 1799;
2126/// The specified priority is invalid.
2127pub const INVALID_PRIORITY = 1800;
2128/// The printer name is invalid.
2129pub const INVALID_PRINTER_NAME = 1801;
2130/// The printer already exists.
2131pub const PRINTER_ALREADY_EXISTS = 1802;
2132/// The printer command is invalid.
2133pub const INVALID_PRINTER_COMMAND = 1803;
2134/// The specified datatype is invalid.
2135pub const INVALID_DATATYPE = 1804;
2136/// The environment specified is invalid.
2137pub const INVALID_ENVIRONMENT = 1805;
2138/// There are no more bindings.
2139pub const RPC_S_NO_MORE_BINDINGS = 1806;
2140/// The account used is an interdomain trust account. Use your global user account or local user account to access this server.
2141pub const NOLOGON_INTERDOMAIN_TRUST_ACCOUNT = 1807;
2142/// The account used is a computer account. Use your global user account or local user account to access this server.
2143pub const NOLOGON_WORKSTATION_TRUST_ACCOUNT = 1808;
2144/// The account used is a server trust account. Use your global user account or local user account to access this server.
2145pub const NOLOGON_SERVER_TRUST_ACCOUNT = 1809;
2146/// The name or security ID (SID) of the domain specified is inconsistent with the trust information for that domain.
2147pub const DOMAIN_TRUST_INCONSISTENT = 1810;
2148/// The server is in use and cannot be unloaded.
2149pub const SERVER_HAS_OPEN_HANDLES = 1811;
2150/// The specified image file did not contain a resource section.
2151pub const RESOURCE_DATA_NOT_FOUND = 1812;
2152/// The specified resource type cannot be found in the image file.
2153pub const RESOURCE_TYPE_NOT_FOUND = 1813;
2154/// The specified resource name cannot be found in the image file.
2155pub const RESOURCE_NAME_NOT_FOUND = 1814;
2156/// The specified resource language ID cannot be found in the image file.
2157pub const RESOURCE_LANG_NOT_FOUND = 1815;
2158/// Not enough quota is available to process this command.
2159pub const NOT_ENOUGH_QUOTA = 1816;
2160/// No interfaces have been registered.
2161pub const RPC_S_NO_INTERFACES = 1817;
2162/// The remote procedure call was cancelled.
2163pub const RPC_S_CALL_CANCELLED = 1818;
2164/// The binding handle does not contain all required information.
2165pub const RPC_S_BINDING_INCOMPLETE = 1819;
2166/// A communications failure occurred during a remote procedure call.
2167pub const RPC_S_COMM_FAILURE = 1820;
2168/// The requested authentication level is not supported.
2169pub const RPC_S_UNSUPPORTED_AUTHN_LEVEL = 1821;
2170/// No principal name registered.
2171pub const RPC_S_NO_PRINC_NAME = 1822;
2172/// The error specified is not a valid Windows RPC error code.
2173pub const RPC_S_NOT_RPC_ERROR = 1823;
2174/// A UUID that is valid only on this computer has been allocated.
2175pub const RPC_S_UUID_LOCAL_ONLY = 1824;
2176/// A security package specific error occurred.
2177pub const RPC_S_SEC_PKG_ERROR = 1825;
2178/// Thread is not canceled.
2179pub const RPC_S_NOT_CANCELLED = 1826;
2180/// Invalid operation on the encoding/decoding handle.
2181pub const RPC_X_INVALID_ES_ACTION = 1827;
2182/// Incompatible version of the serializing package.
2183pub const RPC_X_WRONG_ES_VERSION = 1828;
2184/// Incompatible version of the RPC stub.
2185pub const RPC_X_WRONG_STUB_VERSION = 1829;
2186/// The RPC pipe object is invalid or corrupted.
2187pub const RPC_X_INVALID_PIPE_OBJECT = 1830;
2188/// An invalid operation was attempted on an RPC pipe object.
2189pub const RPC_X_WRONG_PIPE_ORDER = 1831;
2190/// Unsupported RPC pipe version.
2191pub const RPC_X_WRONG_PIPE_VERSION = 1832;
2192/// HTTP proxy server rejected the connection because the cookie authentication failed.
2193pub const RPC_S_COOKIE_AUTH_FAILED = 1833;
2194/// The group member was not found.
2195pub const RPC_S_GROUP_MEMBER_NOT_FOUND = 1898;
2196/// The endpoint mapper database entry could not be created.
2197pub const EPT_S_CANT_CREATE = 1899;
2198/// The object universal unique identifier (UUID) is the nil UUID.
2199pub const RPC_S_INVALID_OBJECT = 1900;
2200/// The specified time is invalid.
2201pub const INVALID_TIME = 1901;
2202/// The specified form name is invalid.
2203pub const INVALID_FORM_NAME = 1902;
2204/// The specified form size is invalid.
2205pub const INVALID_FORM_SIZE = 1903;
2206/// The specified printer handle is already being waited on.
2207pub const ALREADY_WAITING = 1904;
2208/// The specified printer has been deleted.
2209pub const PRINTER_DELETED = 1905;
2210/// The state of the printer is invalid.
2211pub const INVALID_PRINTER_STATE = 1906;
2212/// The user's password must be changed before signing in.
2213pub const PASSWORD_MUST_CHANGE = 1907;
2214/// Could not find the domain controller for this domain.
2215pub const DOMAIN_CONTROLLER_NOT_FOUND = 1908;
2216/// The referenced account is currently locked out and may not be logged on to.
2217pub const ACCOUNT_LOCKED_OUT = 1909;
2218/// The object exporter specified was not found.
2219pub const OR_INVALID_OXID = 1910;
2220/// The object specified was not found.
2221pub const OR_INVALID_OID = 1911;
2222/// The object resolver set specified was not found.
2223pub const OR_INVALID_SET = 1912;
2224/// Some data remains to be sent in the request buffer.
2225pub const RPC_S_SEND_INCOMPLETE = 1913;
2226/// Invalid asynchronous remote procedure call handle.
2227pub const RPC_S_INVALID_ASYNC_HANDLE = 1914;
2228/// Invalid asynchronous RPC call handle for this operation.
2229pub const RPC_S_INVALID_ASYNC_CALL = 1915;
2230/// The RPC pipe object has already been closed.
2231pub const RPC_X_PIPE_CLOSED = 1916;
2232/// The RPC call completed before all pipes were processed.
2233pub const RPC_X_PIPE_DISCIPLINE_ERROR = 1917;
2234/// No more data is available from the RPC pipe.
2235pub const RPC_X_PIPE_EMPTY = 1918;
2236/// No site name is available for this machine.
2237pub const NO_SITENAME = 1919;
2238/// The file cannot be accessed by the system.
2239pub const CANT_ACCESS_FILE = 1920;
2240/// The name of the file cannot be resolved by the system.
2241pub const CANT_RESOLVE_FILENAME = 1921;
2242/// The entry is not of the expected type.
2243pub const RPC_S_ENTRY_TYPE_MISMATCH = 1922;
2244/// Not all object UUIDs could be exported to the specified entry.
2245pub const RPC_S_NOT_ALL_OBJS_EXPORTED = 1923;
2246/// Interface could not be exported to the specified entry.
2247pub const RPC_S_INTERFACE_NOT_EXPORTED = 1924;
2248/// The specified profile entry could not be added.
2249pub const RPC_S_PROFILE_NOT_ADDED = 1925;
2250/// The specified profile element could not be added.
2251pub const RPC_S_PRF_ELT_NOT_ADDED = 1926;
2252/// The specified profile element could not be removed.
2253pub const RPC_S_PRF_ELT_NOT_REMOVED = 1927;
2254/// The group element could not be added.
2255pub const RPC_S_GRP_ELT_NOT_ADDED = 1928;
2256/// The group element could not be removed.
2257pub const RPC_S_GRP_ELT_NOT_REMOVED = 1929;
2258/// The printer driver is not compatible with a policy enabled on your computer that blocks NT 4.0 drivers.
2259pub const KM_DRIVER_BLOCKED = 1930;
2260/// The context has expired and can no longer be used.
2261pub const CONTEXT_EXPIRED = 1931;
2262/// The current user's delegated trust creation quota has been exceeded.
2263pub const PER_USER_TRUST_QUOTA_EXCEEDED = 1932;
2264/// The total delegated trust creation quota has been exceeded.
2265pub const ALL_USER_TRUST_QUOTA_EXCEEDED = 1933;
2266/// The current user's delegated trust deletion quota has been exceeded.
2267pub const USER_DELETE_TRUST_QUOTA_EXCEEDED = 1934;
2268/// The computer you are signing into is protected by an authentication firewall. The specified account is not allowed to authenticate to the computer.
2269pub const AUTHENTICATION_FIREWALL_FAILED = 1935;
2270/// Remote connections to the Print Spooler are blocked by a policy set on your machine.
2271pub const REMOTE_PRINT_CONNECTIONS_BLOCKED = 1936;
2272/// Authentication failed because NTLM authentication has been disabled.
2273pub const NTLM_BLOCKED = 1937;
2274/// Logon Failure: EAS policy requires that the user change their password before this operation can be performed.
2275pub const PASSWORD_CHANGE_REQUIRED = 1938;
2276/// The pixel format is invalid.
2277pub const INVALID_PIXEL_FORMAT = 2000;
2278/// The specified driver is invalid.
2279pub const BAD_DRIVER = 2001;
2280/// The window style or class attribute is invalid for this operation.
2281pub const INVALID_WINDOW_STYLE = 2002;
2282/// The requested metafile operation is not supported.
2283pub const METAFILE_NOT_SUPPORTED = 2003;
2284/// The requested transformation operation is not supported.
2285pub const TRANSFORM_NOT_SUPPORTED = 2004;
2286/// The requested clipping operation is not supported.
2287pub const CLIPPING_NOT_SUPPORTED = 2005;
2288/// The specified color management module is invalid.
2289pub const INVALID_CMM = 2010;
2290/// The specified color profile is invalid.
2291pub const INVALID_PROFILE = 2011;
2292/// The specified tag was not found.
2293pub const TAG_NOT_FOUND = 2012;
2294/// A required tag is not present.
2295pub const TAG_NOT_PRESENT = 2013;
2296/// The specified tag is already present.
2297pub const DUPLICATE_TAG = 2014;
2298/// The specified color profile is not associated with the specified device.
2299pub const PROFILE_NOT_ASSOCIATED_WITH_DEVICE = 2015;
2300/// The specified color profile was not found.
2301pub const PROFILE_NOT_FOUND = 2016;
2302/// The specified color space is invalid.
2303pub const INVALID_COLORSPACE = 2017;
2304/// Image Color Management is not enabled.
2305pub const ICM_NOT_ENABLED = 2018;
2306/// There was an error while deleting the color transform.
2307pub const DELETING_ICM_XFORM = 2019;
2308/// The specified color transform is invalid.
2309pub const INVALID_TRANSFORM = 2020;
2310/// The specified transform does not match the bitmap's color space.
2311pub const COLORSPACE_MISMATCH = 2021;
2312/// The specified named color index is not present in the profile.
2313pub const INVALID_COLORINDEX = 2022;
2314/// The specified profile is intended for a device of a different type than the specified device.
2315pub const PROFILE_DOES_NOT_MATCH_DEVICE = 2023;
2316/// The network connection was made successfully, but the user had to be prompted for a password other than the one originally specified.
2317pub const CONNECTED_OTHER_PASSWORD = 2108;
2318/// The network connection was made successfully using default credentials.
2319pub const CONNECTED_OTHER_PASSWORD_DEFAULT = 2109;
2320/// The specified username is invalid.
2321pub const BAD_USERNAME = 2202;
2322/// This network connection does not exist.
2323pub const NOT_CONNECTED = 2250;
2324/// This network connection has files open or requests pending.
2325pub const OPEN_FILES = 2401;
2326/// Active connections still exist.
2327pub const ACTIVE_CONNECTIONS = 2402;
2328/// The device is in use by an active process and cannot be disconnected.
2329pub const DEVICE_IN_USE = 2404;
2330/// The specified print monitor is unknown.
2331pub const UNKNOWN_PRINT_MONITOR = 3000;
2332/// The specified printer driver is currently in use.
2333pub const PRINTER_DRIVER_IN_USE = 3001;
2334/// The spool file was not found.
2335pub const SPOOL_FILE_NOT_FOUND = 3002;
2336/// A StartDocPrinter call was not issued.
2337pub const SPL_NO_STARTDOC = 3003;
2338/// An AddJob call was not issued.
2339pub const SPL_NO_ADDJOB = 3004;
2340/// The specified print processor has already been installed.
2341pub const PRINT_PROCESSOR_ALREADY_INSTALLED = 3005;
2342/// The specified print monitor has already been installed.
2343pub const PRINT_MONITOR_ALREADY_INSTALLED = 3006;
2344/// The specified print monitor does not have the required functions.
2345pub const INVALID_PRINT_MONITOR = 3007;
2346/// The specified print monitor is currently in use.
2347pub const PRINT_MONITOR_IN_USE = 3008;
2348/// The requested operation is not allowed when there are jobs queued to the printer.
2349pub const PRINTER_HAS_JOBS_QUEUED = 3009;
2350/// The requested operation is successful. Changes will not be effective until the system is rebooted.
2351pub const SUCCESS_REBOOT_REQUIRED = 3010;
2352/// The requested operation is successful. Changes will not be effective until the service is restarted.
2353pub const SUCCESS_RESTART_REQUIRED = 3011;
2354/// No printers were found.
2355pub const PRINTER_NOT_FOUND = 3012;
2356/// The printer driver is known to be unreliable.
2357pub const PRINTER_DRIVER_WARNED = 3013;
2358/// The printer driver is known to harm the system.
2359pub const PRINTER_DRIVER_BLOCKED = 3014;
2360/// The specified printer driver package is currently in use.
2361pub const PRINTER_DRIVER_PACKAGE_IN_USE = 3015;
2362/// Unable to find a core driver package that is required by the printer driver package.
2363pub const CORE_DRIVER_PACKAGE_NOT_FOUND = 3016;
2364/// The requested operation failed. A system reboot is required to roll back changes made.
2365pub const FAIL_REBOOT_REQUIRED = 3017;
2366/// The requested operation failed. A system reboot has been initiated to roll back changes made.
2367pub const FAIL_REBOOT_INITIATED = 3018;
2368/// The specified printer driver was not found on the system and needs to be downloaded.
2369pub const PRINTER_DRIVER_DOWNLOAD_NEEDED = 3019;
2370/// The requested print job has failed to print. A print system update requires the job to be resubmitted.
2371pub const PRINT_JOB_RESTART_REQUIRED = 3020;
2372/// The printer driver does not contain a valid manifest, or contains too many manifests.
2373pub const INVALID_PRINTER_DRIVER_MANIFEST = 3021;
2374/// The specified printer cannot be shared.
2375pub const PRINTER_NOT_SHAREABLE = 3022;
2376/// The operation was paused.
2377pub const REQUEST_PAUSED = 3050;
2378/// Reissue the given operation as a cached IO operation.
2379pub const IO_REISSUE_AS_CACHED = 3950;
std/os/windows/index.zig created+102
......@@ -0,0 +1,102 @@
1pub const ERROR = @import("error.zig");
2
3pub extern fn CryptAcquireContext(phProv: &HCRYPTPROV, pszContainer: LPCTSTR,
4 pszProvider: LPCTSTR, dwProvType: DWORD, dwFlags: DWORD) -> bool;
5
6pub extern fn CryptReleaseContext(hProv: HCRYPTPROV, dwFlags: DWORD) -> bool;
7
8pub extern fn CryptGenRandom(hProv: HCRYPTPROV, dwLen: DWORD, pbBuffer: &BYTE) -> bool;
9
10pub extern fn ExitProcess(exit_code: UINT) -> noreturn;
11
12pub extern fn GetConsoleMode(in_hConsoleHandle: HANDLE, out_lpMode: &DWORD) -> bool;
13
14/// Retrieves the calling thread's last-error code value. The last-error code is maintained on a per-thread basis.
15/// Multiple threads do not overwrite each other's last-error code.
16pub extern fn GetLastError() -> DWORD;
17
18/// Retrieves file information for the specified file.
19pub extern fn GetFileInformationByHandleEx(in_hFile: HANDLE, in_FileInformationClass: FILE_INFO_BY_HANDLE_CLASS,
20 out_lpFileInformation: &c_void, in_dwBufferSize: DWORD) -> bool;
21
22/// Retrieves a handle to the specified standard device (standard input, standard output, or standard error).
23pub extern fn GetStdHandle(in_nStdHandle: DWORD) -> ?HANDLE;
24
25/// Reads data from the specified file or input/output (I/O) device. Reads occur at the position specified by the file pointer if supported by the device.
26/// This function is designed for both synchronous and asynchronous operations. For a similar function designed solely for asynchronous operation, see ReadFileEx.
27pub extern fn ReadFile(in_hFile: HANDLE, out_lpBuffer: LPVOID, in_nNumberOfBytesToRead: DWORD,
28 out_lpNumberOfBytesRead: &DWORD, in_out_lpOverlapped: ?&OVERLAPPED) -> BOOL;
29
30/// Writes data to the specified file or input/output (I/O) device.
31/// This function is designed for both synchronous and asynchronous operation. For a similar function designed solely for asynchronous operation, see WriteFileEx.
32pub extern fn WriteFile(in_hFile: HANDLE, in_lpBuffer: &const c_void, in_nNumberOfBytesToWrite: DWORD,
33 out_lpNumberOfBytesWritten: ?&DWORD, in_out_lpOverlapped: ?&OVERLAPPED) -> BOOL;
34
35pub const PROV_RSA_FULL = 1;
36
37
38pub const BOOL = bool;
39pub const BYTE = u8;
40pub const DWORD = u32;
41pub const FLOAT = f32;
42pub const HANDLE = &c_void;
43pub const HCRYPTPROV = ULONG_PTR;
44pub const LPCTSTR = &const TCHAR;
45pub const LPDWORD = &DWORD;
46pub const LPVOID = &c_void;
47pub const PVOID = &c_void;
48pub const TCHAR = u8; // TODO something about unicode WCHAR vs char
49pub const UINT = c_uint;
50pub const ULONG_PTR = usize;
51pub const WCHAR = u16;
52pub const LPCVOID = &const c_void;
53
54/// The standard input device. Initially, this is the console input buffer, CONIN$.
55pub const STD_INPUT_HANDLE = @maxValue(DWORD) - 10 + 1;
56
57/// The standard output device. Initially, this is the active console screen buffer, CONOUT$.
58pub const STD_OUTPUT_HANDLE = @maxValue(DWORD) - 11 + 1;
59
60/// The standard error device. Initially, this is the active console screen buffer, CONOUT$.
61pub const STD_ERROR_HANDLE = @maxValue(DWORD) - 12 + 1;
62
63pub const INVALID_HANDLE_VALUE = @intToPtr(HANDLE, 0xFFFFFFFFFFFFFFFF);
64
65pub const OVERLAPPED = extern struct {
66 Internal: ULONG_PTR,
67 InternalHigh: ULONG_PTR,
68 Pointer: PVOID,
69 hEvent: HANDLE,
70};
71pub const LPOVERLAPPED = &OVERLAPPED;
72
73pub const MAX_PATH = 260;
74
75// TODO issue #305
76pub const FILE_INFO_BY_HANDLE_CLASS = u32;
77pub const FileBasicInfo = 0;
78pub const FileStandardInfo = 1;
79pub const FileNameInfo = 2;
80pub const FileRenameInfo = 3;
81pub const FileDispositionInfo = 4;
82pub const FileAllocationInfo = 5;
83pub const FileEndOfFileInfo = 6;
84pub const FileStreamInfo = 7;
85pub const FileCompressionInfo = 8;
86pub const FileAttributeTagInfo = 9;
87pub const FileIdBothDirectoryInfo = 10;
88pub const FileIdBothDirectoryRestartInfo = 11;
89pub const FileIoPriorityHintInfo = 12;
90pub const FileRemoteProtocolInfo = 13;
91pub const FileFullDirectoryInfo = 14;
92pub const FileFullDirectoryRestartInfo = 15;
93pub const FileStorageInfo = 16;
94pub const FileAlignmentInfo = 17;
95pub const FileIdInfo = 18;
96pub const FileIdExtdDirectoryInfo = 19;
97pub const FileIdExtdDirectoryRestartInfo = 20;
98
99pub const FILE_NAME_INFO = extern struct {
100 FileNameLength: DWORD,
101 FileName: [1]WCHAR,
102};
std/special/bootstrap.zig+1-2
......@@ -9,7 +9,6 @@ const want_main_symbol = std.target.linking_libc;
99const want_start_symbol = !want_main_symbol;
1010
1111const posix_exit = std.os.posix.exit;
12extern fn ExitProcess(exit_code: c_uint) -> noreturn;
1312
1413var argc_ptr: &usize = undefined;
1514
......@@ -41,7 +40,7 @@ fn callMainAndExit() -> noreturn {
4140
4241fn exit(failure: bool) -> noreturn {
4342 if (builtin.os == builtin.Os.windows) {
44 ExitProcess(c_uint(failure));
43 std.os.windows.ExitProcess(c_uint(failure));
4544 } else {
4645 posix_exit(i32(failure));
4746 }