aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/sys/windows
diff options
context:
space:
mode:
authorLibravatar Rutger Broekhoff2024-01-02 18:56:31 +0100
committerLibravatar Rutger Broekhoff2024-01-02 18:56:31 +0100
commit8db41da676ac8368ef7c2549d56239a5ff5eedde (patch)
tree09c427fd66de2ec1ebffc8342f5fdbb84b0701b5 /vendor/golang.org/x/sys/windows
parentd4f75fb6db22e57577867445a022227e70958931 (diff)
downloadgitolfs3-8db41da676ac8368ef7c2549d56239a5ff5eedde.tar.gz
gitolfs3-8db41da676ac8368ef7c2549d56239a5ff5eedde.zip
Delete vendor directory
Diffstat (limited to 'vendor/golang.org/x/sys/windows')
-rw-r--r--vendor/golang.org/x/sys/windows/aliases.go12
-rw-r--r--vendor/golang.org/x/sys/windows/dll_windows.go416
-rw-r--r--vendor/golang.org/x/sys/windows/empty.s8
-rw-r--r--vendor/golang.org/x/sys/windows/env_windows.go54
-rw-r--r--vendor/golang.org/x/sys/windows/eventlog.go20
-rw-r--r--vendor/golang.org/x/sys/windows/exec_windows.go248
-rw-r--r--vendor/golang.org/x/sys/windows/memory_windows.go48
-rw-r--r--vendor/golang.org/x/sys/windows/mkerrors.bash70
-rw-r--r--vendor/golang.org/x/sys/windows/mkknownfolderids.bash27
-rw-r--r--vendor/golang.org/x/sys/windows/mksyscall.go9
-rw-r--r--vendor/golang.org/x/sys/windows/race.go30
-rw-r--r--vendor/golang.org/x/sys/windows/race0.go25
-rw-r--r--vendor/golang.org/x/sys/windows/security_windows.go1435
-rw-r--r--vendor/golang.org/x/sys/windows/service.go257
-rw-r--r--vendor/golang.org/x/sys/windows/setupapi_windows.go1425
-rw-r--r--vendor/golang.org/x/sys/windows/str.go22
-rw-r--r--vendor/golang.org/x/sys/windows/syscall.go104
-rw-r--r--vendor/golang.org/x/sys/windows/syscall_windows.go1836
-rw-r--r--vendor/golang.org/x/sys/windows/types_windows.go3382
-rw-r--r--vendor/golang.org/x/sys/windows/types_windows_386.go35
-rw-r--r--vendor/golang.org/x/sys/windows/types_windows_amd64.go34
-rw-r--r--vendor/golang.org/x/sys/windows/types_windows_arm.go35
-rw-r--r--vendor/golang.org/x/sys/windows/types_windows_arm64.go34
-rw-r--r--vendor/golang.org/x/sys/windows/zerrors_windows.go9468
-rw-r--r--vendor/golang.org/x/sys/windows/zknownfolderids_windows.go149
-rw-r--r--vendor/golang.org/x/sys/windows/zsyscall_windows.go4409
26 files changed, 0 insertions, 23592 deletions
diff --git a/vendor/golang.org/x/sys/windows/aliases.go b/vendor/golang.org/x/sys/windows/aliases.go
deleted file mode 100644
index ce2d713..0000000
--- a/vendor/golang.org/x/sys/windows/aliases.go
+++ /dev/null
@@ -1,12 +0,0 @@
1// Copyright 2018 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//go:build windows && go1.9
6
7package windows
8
9import "syscall"
10
11type Errno = syscall.Errno
12type SysProcAttr = syscall.SysProcAttr
diff --git a/vendor/golang.org/x/sys/windows/dll_windows.go b/vendor/golang.org/x/sys/windows/dll_windows.go
deleted file mode 100644
index 115341f..0000000
--- a/vendor/golang.org/x/sys/windows/dll_windows.go
+++ /dev/null
@@ -1,416 +0,0 @@
1// Copyright 2011 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package windows
6
7import (
8 "sync"
9 "sync/atomic"
10 "syscall"
11 "unsafe"
12)
13
14// We need to use LoadLibrary and GetProcAddress from the Go runtime, because
15// the these symbols are loaded by the system linker and are required to
16// dynamically load additional symbols. Note that in the Go runtime, these
17// return syscall.Handle and syscall.Errno, but these are the same, in fact,
18// as windows.Handle and windows.Errno, and we intend to keep these the same.
19
20//go:linkname syscall_loadlibrary syscall.loadlibrary
21func syscall_loadlibrary(filename *uint16) (handle Handle, err Errno)
22
23//go:linkname syscall_getprocaddress syscall.getprocaddress
24func syscall_getprocaddress(handle Handle, procname *uint8) (proc uintptr, err Errno)
25
26// DLLError describes reasons for DLL load failures.
27type DLLError struct {
28 Err error
29 ObjName string
30 Msg string
31}
32
33func (e *DLLError) Error() string { return e.Msg }
34
35func (e *DLLError) Unwrap() error { return e.Err }
36
37// A DLL implements access to a single DLL.
38type DLL struct {
39 Name string
40 Handle Handle
41}
42
43// LoadDLL loads DLL file into memory.
44//
45// Warning: using LoadDLL without an absolute path name is subject to
46// DLL preloading attacks. To safely load a system DLL, use LazyDLL
47// with System set to true, or use LoadLibraryEx directly.
48func LoadDLL(name string) (dll *DLL, err error) {
49 namep, err := UTF16PtrFromString(name)
50 if err != nil {
51 return nil, err
52 }
53 h, e := syscall_loadlibrary(namep)
54 if e != 0 {
55 return nil, &DLLError{
56 Err: e,
57 ObjName: name,
58 Msg: "Failed to load " + name + ": " + e.Error(),
59 }
60 }
61 d := &DLL{
62 Name: name,
63 Handle: h,
64 }
65 return d, nil
66}
67
68// MustLoadDLL is like LoadDLL but panics if load operation failes.
69func MustLoadDLL(name string) *DLL {
70 d, e := LoadDLL(name)
71 if e != nil {
72 panic(e)
73 }
74 return d
75}
76
77// FindProc searches DLL d for procedure named name and returns *Proc
78// if found. It returns an error if search fails.
79func (d *DLL) FindProc(name string) (proc *Proc, err error) {
80 namep, err := BytePtrFromString(name)
81 if err != nil {
82 return nil, err
83 }
84 a, e := syscall_getprocaddress(d.Handle, namep)
85 if e != 0 {
86 return nil, &DLLError{
87 Err: e,
88 ObjName: name,
89 Msg: "Failed to find " + name + " procedure in " + d.Name + ": " + e.Error(),
90 }
91 }
92 p := &Proc{
93 Dll: d,
94 Name: name,
95 addr: a,
96 }
97 return p, nil
98}
99
100// MustFindProc is like FindProc but panics if search fails.
101func (d *DLL) MustFindProc(name string) *Proc {
102 p, e := d.FindProc(name)
103 if e != nil {
104 panic(e)
105 }
106 return p
107}
108
109// FindProcByOrdinal searches DLL d for procedure by ordinal and returns *Proc
110// if found. It returns an error if search fails.
111func (d *DLL) FindProcByOrdinal(ordinal uintptr) (proc *Proc, err error) {
112 a, e := GetProcAddressByOrdinal(d.Handle, ordinal)
113 name := "#" + itoa(int(ordinal))
114 if e != nil {
115 return nil, &DLLError{
116 Err: e,
117 ObjName: name,
118 Msg: "Failed to find " + name + " procedure in " + d.Name + ": " + e.Error(),
119 }
120 }
121 p := &Proc{
122 Dll: d,
123 Name: name,
124 addr: a,
125 }
126 return p, nil
127}
128
129// MustFindProcByOrdinal is like FindProcByOrdinal but panics if search fails.
130func (d *DLL) MustFindProcByOrdinal(ordinal uintptr) *Proc {
131 p, e := d.FindProcByOrdinal(ordinal)
132 if e != nil {
133 panic(e)
134 }
135 return p
136}
137
138// Release unloads DLL d from memory.
139func (d *DLL) Release() (err error) {
140 return FreeLibrary(d.Handle)
141}
142
143// A Proc implements access to a procedure inside a DLL.
144type Proc struct {
145 Dll *DLL
146 Name string
147 addr uintptr
148}
149
150// Addr returns the address of the procedure represented by p.
151// The return value can be passed to Syscall to run the procedure.
152func (p *Proc) Addr() uintptr {
153 return p.addr
154}
155
156//go:uintptrescapes
157
158// Call executes procedure p with arguments a. It will panic, if more than 15 arguments
159// are supplied.
160//
161// The returned error is always non-nil, constructed from the result of GetLastError.
162// Callers must inspect the primary return value to decide whether an error occurred
163// (according to the semantics of the specific function being called) before consulting
164// the error. The error will be guaranteed to contain windows.Errno.
165func (p *Proc) Call(a ...uintptr) (r1, r2 uintptr, lastErr error) {
166 switch len(a) {
167 case 0:
168 return syscall.Syscall(p.Addr(), uintptr(len(a)), 0, 0, 0)
169 case 1:
170 return syscall.Syscall(p.Addr(), uintptr(len(a)), a[0], 0, 0)
171 case 2:
172 return syscall.Syscall(p.Addr(), uintptr(len(a)), a[0], a[1], 0)
173 case 3:
174 return syscall.Syscall(p.Addr(), uintptr(len(a)), a[0], a[1], a[2])
175 case 4:
176 return syscall.Syscall6(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], 0, 0)
177 case 5:
178 return syscall.Syscall6(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], a[4], 0)
179 case 6:
180 return syscall.Syscall6(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], a[4], a[5])
181 case 7:
182 return syscall.Syscall9(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], a[4], a[5], a[6], 0, 0)
183 case 8:
184 return syscall.Syscall9(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], 0)
185 case 9:
186 return syscall.Syscall9(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8])
187 case 10:
188 return syscall.Syscall12(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], 0, 0)
189 case 11:
190 return syscall.Syscall12(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], 0)
191 case 12:
192 return syscall.Syscall12(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11])
193 case 13:
194 return syscall.Syscall15(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11], a[12], 0, 0)
195 case 14:
196 return syscall.Syscall15(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11], a[12], a[13], 0)
197 case 15:
198 return syscall.Syscall15(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11], a[12], a[13], a[14])
199 default:
200 panic("Call " + p.Name + " with too many arguments " + itoa(len(a)) + ".")
201 }
202}
203
204// A LazyDLL implements access to a single DLL.
205// It will delay the load of the DLL until the first
206// call to its Handle method or to one of its
207// LazyProc's Addr method.
208type LazyDLL struct {
209 Name string
210
211 // System determines whether the DLL must be loaded from the
212 // Windows System directory, bypassing the normal DLL search
213 // path.
214 System bool
215
216 mu sync.Mutex
217 dll *DLL // non nil once DLL is loaded
218}
219
220// Load loads DLL file d.Name into memory. It returns an error if fails.
221// Load will not try to load DLL, if it is already loaded into memory.
222func (d *LazyDLL) Load() error {
223 // Non-racy version of:
224 // if d.dll != nil {
225 if atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(&d.dll))) != nil {
226 return nil
227 }
228 d.mu.Lock()
229 defer d.mu.Unlock()
230 if d.dll != nil {
231 return nil
232 }
233
234 // kernel32.dll is special, since it's where LoadLibraryEx comes from.
235 // The kernel already special-cases its name, so it's always
236 // loaded from system32.
237 var dll *DLL
238 var err error
239 if d.Name == "kernel32.dll" {
240 dll, err = LoadDLL(d.Name)
241 } else {
242 dll, err = loadLibraryEx(d.Name, d.System)
243 }
244 if err != nil {
245 return err
246 }
247
248 // Non-racy version of:
249 // d.dll = dll
250 atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(&d.dll)), unsafe.Pointer(dll))
251 return nil
252}
253
254// mustLoad is like Load but panics if search fails.
255func (d *LazyDLL) mustLoad() {
256 e := d.Load()
257 if e != nil {
258 panic(e)
259 }
260}
261
262// Handle returns d's module handle.
263func (d *LazyDLL) Handle() uintptr {
264 d.mustLoad()
265 return uintptr(d.dll.Handle)
266}
267
268// NewProc returns a LazyProc for accessing the named procedure in the DLL d.
269func (d *LazyDLL) NewProc(name string) *LazyProc {
270 return &LazyProc{l: d, Name: name}
271}
272
273// NewLazyDLL creates new LazyDLL associated with DLL file.
274func NewLazyDLL(name string) *LazyDLL {
275 return &LazyDLL{Name: name}
276}
277
278// NewLazySystemDLL is like NewLazyDLL, but will only
279// search Windows System directory for the DLL if name is
280// a base name (like "advapi32.dll").
281func NewLazySystemDLL(name string) *LazyDLL {
282 return &LazyDLL{Name: name, System: true}
283}
284
285// A LazyProc implements access to a procedure inside a LazyDLL.
286// It delays the lookup until the Addr method is called.
287type LazyProc struct {
288 Name string
289
290 mu sync.Mutex
291 l *LazyDLL
292 proc *Proc
293}
294
295// Find searches DLL for procedure named p.Name. It returns
296// an error if search fails. Find will not search procedure,
297// if it is already found and loaded into memory.
298func (p *LazyProc) Find() error {
299 // Non-racy version of:
300 // if p.proc == nil {
301 if atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(&p.proc))) == nil {
302 p.mu.Lock()
303 defer p.mu.Unlock()
304 if p.proc == nil {
305 e := p.l.Load()
306 if e != nil {
307 return e
308 }
309 proc, e := p.l.dll.FindProc(p.Name)
310 if e != nil {
311 return e
312 }
313 // Non-racy version of:
314 // p.proc = proc
315 atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(&p.proc)), unsafe.Pointer(proc))
316 }
317 }
318 return nil
319}
320
321// mustFind is like Find but panics if search fails.
322func (p *LazyProc) mustFind() {
323 e := p.Find()
324 if e != nil {
325 panic(e)
326 }
327}
328
329// Addr returns the address of the procedure represented by p.
330// The return value can be passed to Syscall to run the procedure.
331// It will panic if the procedure cannot be found.
332func (p *LazyProc) Addr() uintptr {
333 p.mustFind()
334 return p.proc.Addr()
335}
336
337//go:uintptrescapes
338
339// Call executes procedure p with arguments a. It will panic, if more than 15 arguments
340// are supplied. It will also panic if the procedure cannot be found.
341//
342// The returned error is always non-nil, constructed from the result of GetLastError.
343// Callers must inspect the primary return value to decide whether an error occurred
344// (according to the semantics of the specific function being called) before consulting
345// the error. The error will be guaranteed to contain windows.Errno.
346func (p *LazyProc) Call(a ...uintptr) (r1, r2 uintptr, lastErr error) {
347 p.mustFind()
348 return p.proc.Call(a...)
349}
350
351var canDoSearchSystem32Once struct {
352 sync.Once
353 v bool
354}
355
356func initCanDoSearchSystem32() {
357 // https://msdn.microsoft.com/en-us/library/ms684179(v=vs.85).aspx says:
358 // "Windows 7, Windows Server 2008 R2, Windows Vista, and Windows
359 // Server 2008: The LOAD_LIBRARY_SEARCH_* flags are available on
360 // systems that have KB2533623 installed. To determine whether the
361 // flags are available, use GetProcAddress to get the address of the
362 // AddDllDirectory, RemoveDllDirectory, or SetDefaultDllDirectories
363 // function. If GetProcAddress succeeds, the LOAD_LIBRARY_SEARCH_*
364 // flags can be used with LoadLibraryEx."
365 canDoSearchSystem32Once.v = (modkernel32.NewProc("AddDllDirectory").Find() == nil)
366}
367
368func canDoSearchSystem32() bool {
369 canDoSearchSystem32Once.Do(initCanDoSearchSystem32)
370 return canDoSearchSystem32Once.v
371}
372
373func isBaseName(name string) bool {
374 for _, c := range name {
375 if c == ':' || c == '/' || c == '\\' {
376 return false
377 }
378 }
379 return true
380}
381
382// loadLibraryEx wraps the Windows LoadLibraryEx function.
383//
384// See https://msdn.microsoft.com/en-us/library/windows/desktop/ms684179(v=vs.85).aspx
385//
386// If name is not an absolute path, LoadLibraryEx searches for the DLL
387// in a variety of automatic locations unless constrained by flags.
388// See: https://msdn.microsoft.com/en-us/library/ff919712%28VS.85%29.aspx
389func loadLibraryEx(name string, system bool) (*DLL, error) {
390 loadDLL := name
391 var flags uintptr
392 if system {
393 if canDoSearchSystem32() {
394 flags = LOAD_LIBRARY_SEARCH_SYSTEM32
395 } else if isBaseName(name) {
396 // WindowsXP or unpatched Windows machine
397 // trying to load "foo.dll" out of the system
398 // folder, but LoadLibraryEx doesn't support
399 // that yet on their system, so emulate it.
400 systemdir, err := GetSystemDirectory()
401 if err != nil {
402 return nil, err
403 }
404 loadDLL = systemdir + "\\" + name
405 }
406 }
407 h, err := LoadLibraryEx(loadDLL, 0, flags)
408 if err != nil {
409 return nil, err
410 }
411 return &DLL{Name: name, Handle: h}, nil
412}
413
414type errString string
415
416func (s errString) Error() string { return string(s) }
diff --git a/vendor/golang.org/x/sys/windows/empty.s b/vendor/golang.org/x/sys/windows/empty.s
deleted file mode 100644
index ba64cac..0000000
--- a/vendor/golang.org/x/sys/windows/empty.s
+++ /dev/null
@@ -1,8 +0,0 @@
1// Copyright 2019 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//go:build !go1.12
6
7// This file is here to allow bodyless functions with go:linkname for Go 1.11
8// and earlier (see https://golang.org/issue/23311).
diff --git a/vendor/golang.org/x/sys/windows/env_windows.go b/vendor/golang.org/x/sys/windows/env_windows.go
deleted file mode 100644
index b8ad192..0000000
--- a/vendor/golang.org/x/sys/windows/env_windows.go
+++ /dev/null
@@ -1,54 +0,0 @@
1// Copyright 2010 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// Windows environment variables.
6
7package windows
8
9import (
10 "syscall"
11 "unsafe"
12)
13
14func Getenv(key string) (value string, found bool) {
15 return syscall.Getenv(key)
16}
17
18func Setenv(key, value string) error {
19 return syscall.Setenv(key, value)
20}
21
22func Clearenv() {
23 syscall.Clearenv()
24}
25
26func Environ() []string {
27 return syscall.Environ()
28}
29
30// Returns a default environment associated with the token, rather than the current
31// process. If inheritExisting is true, then this environment also inherits the
32// environment of the current process.
33func (token Token) Environ(inheritExisting bool) (env []string, err error) {
34 var block *uint16
35 err = CreateEnvironmentBlock(&block, token, inheritExisting)
36 if err != nil {
37 return nil, err
38 }
39 defer DestroyEnvironmentBlock(block)
40 blockp := unsafe.Pointer(block)
41 for {
42 entry := UTF16PtrToString((*uint16)(blockp))
43 if len(entry) == 0 {
44 break
45 }
46 env = append(env, entry)
47 blockp = unsafe.Add(blockp, 2*(len(entry)+1))
48 }
49 return env, nil
50}
51
52func Unsetenv(key string) error {
53 return syscall.Unsetenv(key)
54}
diff --git a/vendor/golang.org/x/sys/windows/eventlog.go b/vendor/golang.org/x/sys/windows/eventlog.go
deleted file mode 100644
index 6c36695..0000000
--- a/vendor/golang.org/x/sys/windows/eventlog.go
+++ /dev/null
@@ -1,20 +0,0 @@
1// Copyright 2012 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//go:build windows
6
7package windows
8
9const (
10 EVENTLOG_SUCCESS = 0
11 EVENTLOG_ERROR_TYPE = 1
12 EVENTLOG_WARNING_TYPE = 2
13 EVENTLOG_INFORMATION_TYPE = 4
14 EVENTLOG_AUDIT_SUCCESS = 8
15 EVENTLOG_AUDIT_FAILURE = 16
16)
17
18//sys RegisterEventSource(uncServerName *uint16, sourceName *uint16) (handle Handle, err error) [failretval==0] = advapi32.RegisterEventSourceW
19//sys DeregisterEventSource(handle Handle) (err error) = advapi32.DeregisterEventSource
20//sys ReportEvent(log Handle, etype uint16, category uint16, eventId uint32, usrSId uintptr, numStrings uint16, dataSize uint32, strings **uint16, rawData *byte) (err error) = advapi32.ReportEventW
diff --git a/vendor/golang.org/x/sys/windows/exec_windows.go b/vendor/golang.org/x/sys/windows/exec_windows.go
deleted file mode 100644
index 9cabbb6..0000000
--- a/vendor/golang.org/x/sys/windows/exec_windows.go
+++ /dev/null
@@ -1,248 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// Fork, exec, wait, etc.
6
7package windows
8
9import (
10 errorspkg "errors"
11 "unsafe"
12)
13
14// EscapeArg rewrites command line argument s as prescribed
15// in http://msdn.microsoft.com/en-us/library/ms880421.
16// This function returns "" (2 double quotes) if s is empty.
17// Alternatively, these transformations are done:
18// - every back slash (\) is doubled, but only if immediately
19// followed by double quote (");
20// - every double quote (") is escaped by back slash (\);
21// - finally, s is wrapped with double quotes (arg -> "arg"),
22// but only if there is space or tab inside s.
23func EscapeArg(s string) string {
24 if len(s) == 0 {
25 return `""`
26 }
27 n := len(s)
28 hasSpace := false
29 for i := 0; i < len(s); i++ {
30 switch s[i] {
31 case '"', '\\':
32 n++
33 case ' ', '\t':
34 hasSpace = true
35 }
36 }
37 if hasSpace {
38 n += 2 // Reserve space for quotes.
39 }
40 if n == len(s) {
41 return s
42 }
43
44 qs := make([]byte, n)
45 j := 0
46 if hasSpace {
47 qs[j] = '"'
48 j++
49 }
50 slashes := 0
51 for i := 0; i < len(s); i++ {
52 switch s[i] {
53 default:
54 slashes = 0
55 qs[j] = s[i]
56 case '\\':
57 slashes++
58 qs[j] = s[i]
59 case '"':
60 for ; slashes > 0; slashes-- {
61 qs[j] = '\\'
62 j++
63 }
64 qs[j] = '\\'
65 j++
66 qs[j] = s[i]
67 }
68 j++
69 }
70 if hasSpace {
71 for ; slashes > 0; slashes-- {
72 qs[j] = '\\'
73 j++
74 }
75 qs[j] = '"'
76 j++
77 }
78 return string(qs[:j])
79}
80
81// ComposeCommandLine escapes and joins the given arguments suitable for use as a Windows command line,
82// in CreateProcess's CommandLine argument, CreateService/ChangeServiceConfig's BinaryPathName argument,
83// or any program that uses CommandLineToArgv.
84func ComposeCommandLine(args []string) string {
85 if len(args) == 0 {
86 return ""
87 }
88
89 // Per https://learn.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-commandlinetoargvw:
90 // “This function accepts command lines that contain a program name; the
91 // program name can be enclosed in quotation marks or not.”
92 //
93 // Unfortunately, it provides no means of escaping interior quotation marks
94 // within that program name, and we have no way to report them here.
95 prog := args[0]
96 mustQuote := len(prog) == 0
97 for i := 0; i < len(prog); i++ {
98 c := prog[i]
99 if c <= ' ' || (c == '"' && i == 0) {
100 // Force quotes for not only the ASCII space and tab as described in the
101 // MSDN article, but also ASCII control characters.
102 // The documentation for CommandLineToArgvW doesn't say what happens when
103 // the first argument is not a valid program name, but it empirically
104 // seems to drop unquoted control characters.
105 mustQuote = true
106 break
107 }
108 }
109 var commandLine []byte
110 if mustQuote {
111 commandLine = make([]byte, 0, len(prog)+2)
112 commandLine = append(commandLine, '"')
113 for i := 0; i < len(prog); i++ {
114 c := prog[i]
115 if c == '"' {
116 // This quote would interfere with our surrounding quotes.
117 // We have no way to report an error, so just strip out
118 // the offending character instead.
119 continue
120 }
121 commandLine = append(commandLine, c)
122 }
123 commandLine = append(commandLine, '"')
124 } else {
125 if len(args) == 1 {
126 // args[0] is a valid command line representing itself.
127 // No need to allocate a new slice or string for it.
128 return prog
129 }
130 commandLine = []byte(prog)
131 }
132
133 for _, arg := range args[1:] {
134 commandLine = append(commandLine, ' ')
135 // TODO(bcmills): since we're already appending to a slice, it would be nice
136 // to avoid the intermediate allocations of EscapeArg.
137 // Perhaps we can factor out an appendEscapedArg function.
138 commandLine = append(commandLine, EscapeArg(arg)...)
139 }
140 return string(commandLine)
141}
142
143// DecomposeCommandLine breaks apart its argument command line into unescaped parts using CommandLineToArgv,
144// as gathered from GetCommandLine, QUERY_SERVICE_CONFIG's BinaryPathName argument, or elsewhere that
145// command lines are passed around.
146// DecomposeCommandLine returns an error if commandLine contains NUL.
147func DecomposeCommandLine(commandLine string) ([]string, error) {
148 if len(commandLine) == 0 {
149 return []string{}, nil
150 }
151 utf16CommandLine, err := UTF16FromString(commandLine)
152 if err != nil {
153 return nil, errorspkg.New("string with NUL passed to DecomposeCommandLine")
154 }
155 var argc int32
156 argv, err := commandLineToArgv(&utf16CommandLine[0], &argc)
157 if err != nil {
158 return nil, err
159 }
160 defer LocalFree(Handle(unsafe.Pointer(argv)))
161
162 var args []string
163 for _, p := range unsafe.Slice(argv, argc) {
164 args = append(args, UTF16PtrToString(p))
165 }
166 return args, nil
167}
168
169// CommandLineToArgv parses a Unicode command line string and sets
170// argc to the number of parsed arguments.
171//
172// The returned memory should be freed using a single call to LocalFree.
173//
174// Note that although the return type of CommandLineToArgv indicates 8192
175// entries of up to 8192 characters each, the actual count of parsed arguments
176// may exceed 8192, and the documentation for CommandLineToArgvW does not mention
177// any bound on the lengths of the individual argument strings.
178// (See https://go.dev/issue/63236.)
179func CommandLineToArgv(cmd *uint16, argc *int32) (argv *[8192]*[8192]uint16, err error) {
180 argp, err := commandLineToArgv(cmd, argc)
181 argv = (*[8192]*[8192]uint16)(unsafe.Pointer(argp))
182 return argv, err
183}
184
185func CloseOnExec(fd Handle) {
186 SetHandleInformation(Handle(fd), HANDLE_FLAG_INHERIT, 0)
187}
188
189// FullPath retrieves the full path of the specified file.
190func FullPath(name string) (path string, err error) {
191 p, err := UTF16PtrFromString(name)
192 if err != nil {
193 return "", err
194 }
195 n := uint32(100)
196 for {
197 buf := make([]uint16, n)
198 n, err = GetFullPathName(p, uint32(len(buf)), &buf[0], nil)
199 if err != nil {
200 return "", err
201 }
202 if n <= uint32(len(buf)) {
203 return UTF16ToString(buf[:n]), nil
204 }
205 }
206}
207
208// NewProcThreadAttributeList allocates a new ProcThreadAttributeListContainer, with the requested maximum number of attributes.
209func NewProcThreadAttributeList(maxAttrCount uint32) (*ProcThreadAttributeListContainer, error) {
210 var size uintptr
211 err := initializeProcThreadAttributeList(nil, maxAttrCount, 0, &size)
212 if err != ERROR_INSUFFICIENT_BUFFER {
213 if err == nil {
214 return nil, errorspkg.New("unable to query buffer size from InitializeProcThreadAttributeList")
215 }
216 return nil, err
217 }
218 alloc, err := LocalAlloc(LMEM_FIXED, uint32(size))
219 if err != nil {
220 return nil, err
221 }
222 // size is guaranteed to be ≥1 by InitializeProcThreadAttributeList.
223 al := &ProcThreadAttributeListContainer{data: (*ProcThreadAttributeList)(unsafe.Pointer(alloc))}
224 err = initializeProcThreadAttributeList(al.data, maxAttrCount, 0, &size)
225 if err != nil {
226 return nil, err
227 }
228 return al, err
229}
230
231// Update modifies the ProcThreadAttributeList using UpdateProcThreadAttribute.
232func (al *ProcThreadAttributeListContainer) Update(attribute uintptr, value unsafe.Pointer, size uintptr) error {
233 al.pointers = append(al.pointers, value)
234 return updateProcThreadAttribute(al.data, 0, attribute, value, size, nil, nil)
235}
236
237// Delete frees ProcThreadAttributeList's resources.
238func (al *ProcThreadAttributeListContainer) Delete() {
239 deleteProcThreadAttributeList(al.data)
240 LocalFree(Handle(unsafe.Pointer(al.data)))
241 al.data = nil
242 al.pointers = nil
243}
244
245// List returns the actual ProcThreadAttributeList to be passed to StartupInfoEx.
246func (al *ProcThreadAttributeListContainer) List() *ProcThreadAttributeList {
247 return al.data
248}
diff --git a/vendor/golang.org/x/sys/windows/memory_windows.go b/vendor/golang.org/x/sys/windows/memory_windows.go
deleted file mode 100644
index 6dc0920..0000000
--- a/vendor/golang.org/x/sys/windows/memory_windows.go
+++ /dev/null
@@ -1,48 +0,0 @@
1// Copyright 2017 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package windows
6
7const (
8 MEM_COMMIT = 0x00001000
9 MEM_RESERVE = 0x00002000
10 MEM_DECOMMIT = 0x00004000
11 MEM_RELEASE = 0x00008000
12 MEM_RESET = 0x00080000
13 MEM_TOP_DOWN = 0x00100000
14 MEM_WRITE_WATCH = 0x00200000
15 MEM_PHYSICAL = 0x00400000
16 MEM_RESET_UNDO = 0x01000000
17 MEM_LARGE_PAGES = 0x20000000
18
19 PAGE_NOACCESS = 0x00000001
20 PAGE_READONLY = 0x00000002
21 PAGE_READWRITE = 0x00000004
22 PAGE_WRITECOPY = 0x00000008
23 PAGE_EXECUTE = 0x00000010
24 PAGE_EXECUTE_READ = 0x00000020
25 PAGE_EXECUTE_READWRITE = 0x00000040
26 PAGE_EXECUTE_WRITECOPY = 0x00000080
27 PAGE_GUARD = 0x00000100
28 PAGE_NOCACHE = 0x00000200
29 PAGE_WRITECOMBINE = 0x00000400
30 PAGE_TARGETS_INVALID = 0x40000000
31 PAGE_TARGETS_NO_UPDATE = 0x40000000
32
33 QUOTA_LIMITS_HARDWS_MIN_DISABLE = 0x00000002
34 QUOTA_LIMITS_HARDWS_MIN_ENABLE = 0x00000001
35 QUOTA_LIMITS_HARDWS_MAX_DISABLE = 0x00000008
36 QUOTA_LIMITS_HARDWS_MAX_ENABLE = 0x00000004
37)
38
39type MemoryBasicInformation struct {
40 BaseAddress uintptr
41 AllocationBase uintptr
42 AllocationProtect uint32
43 PartitionId uint16
44 RegionSize uintptr
45 State uint32
46 Protect uint32
47 Type uint32
48}
diff --git a/vendor/golang.org/x/sys/windows/mkerrors.bash b/vendor/golang.org/x/sys/windows/mkerrors.bash
deleted file mode 100644
index 58e0188..0000000
--- a/vendor/golang.org/x/sys/windows/mkerrors.bash
+++ /dev/null
@@ -1,70 +0,0 @@
1#!/bin/bash
2
3# Copyright 2019 The Go Authors. All rights reserved.
4# Use of this source code is governed by a BSD-style
5# license that can be found in the LICENSE file.
6
7set -e
8shopt -s nullglob
9
10winerror="$(printf '%s\n' "/mnt/c/Program Files (x86)/Windows Kits/"/*/Include/*/shared/winerror.h | sort -Vr | head -n 1)"
11[[ -n $winerror ]] || { echo "Unable to find winerror.h" >&2; exit 1; }
12ntstatus="$(printf '%s\n' "/mnt/c/Program Files (x86)/Windows Kits/"/*/Include/*/shared/ntstatus.h | sort -Vr | head -n 1)"
13[[ -n $ntstatus ]] || { echo "Unable to find ntstatus.h" >&2; exit 1; }
14
15declare -A errors
16
17{
18 echo "// Code generated by 'mkerrors.bash'; DO NOT EDIT."
19 echo
20 echo "package windows"
21 echo "import \"syscall\""
22 echo "const ("
23
24 while read -r line; do
25 unset vtype
26 if [[ $line =~ ^#define\ +([A-Z0-9_]+k?)\ +([A-Z0-9_]+\()?([A-Z][A-Z0-9_]+k?)\)? ]]; then
27 key="${BASH_REMATCH[1]}"
28 value="${BASH_REMATCH[3]}"
29 elif [[ $line =~ ^#define\ +([A-Z0-9_]+k?)\ +([A-Z0-9_]+\()?((0x)?[0-9A-Fa-f]+)L?\)? ]]; then
30 key="${BASH_REMATCH[1]}"
31 value="${BASH_REMATCH[3]}"
32 vtype="${BASH_REMATCH[2]}"
33 elif [[ $line =~ ^#define\ +([A-Z0-9_]+k?)\ +\(\(([A-Z]+)\)((0x)?[0-9A-Fa-f]+)L?\) ]]; then
34 key="${BASH_REMATCH[1]}"
35 value="${BASH_REMATCH[3]}"
36 vtype="${BASH_REMATCH[2]}"
37 else
38 continue
39 fi
40 [[ -n $key && -n $value ]] || continue
41 [[ -z ${errors["$key"]} ]] || continue
42 errors["$key"]="$value"
43 if [[ -v vtype ]]; then
44 if [[ $key == FACILITY_* || $key == NO_ERROR ]]; then
45 vtype=""
46 elif [[ $vtype == *HANDLE* || $vtype == *HRESULT* ]]; then
47 vtype="Handle"
48 else
49 vtype="syscall.Errno"
50 fi
51 last_vtype="$vtype"
52 else
53 vtype=""
54 if [[ $last_vtype == Handle && $value == NO_ERROR ]]; then
55 value="S_OK"
56 elif [[ $last_vtype == syscall.Errno && $value == NO_ERROR ]]; then
57 value="ERROR_SUCCESS"
58 fi
59 fi
60
61 echo "$key $vtype = $value"
62 done < "$winerror"
63
64 while read -r line; do
65 [[ $line =~ ^#define\ (STATUS_[^\s]+)\ +\(\(NTSTATUS\)((0x)?[0-9a-fA-F]+)L?\) ]] || continue
66 echo "${BASH_REMATCH[1]} NTStatus = ${BASH_REMATCH[2]}"
67 done < "$ntstatus"
68
69 echo ")"
70} | gofmt > "zerrors_windows.go"
diff --git a/vendor/golang.org/x/sys/windows/mkknownfolderids.bash b/vendor/golang.org/x/sys/windows/mkknownfolderids.bash
deleted file mode 100644
index ab8924e..0000000
--- a/vendor/golang.org/x/sys/windows/mkknownfolderids.bash
+++ /dev/null
@@ -1,27 +0,0 @@
1#!/bin/bash
2
3# Copyright 2019 The Go Authors. All rights reserved.
4# Use of this source code is governed by a BSD-style
5# license that can be found in the LICENSE file.
6
7set -e
8shopt -s nullglob
9
10knownfolders="$(printf '%s\n' "/mnt/c/Program Files (x86)/Windows Kits/"/*/Include/*/um/KnownFolders.h | sort -Vr | head -n 1)"
11[[ -n $knownfolders ]] || { echo "Unable to find KnownFolders.h" >&2; exit 1; }
12
13{
14 echo "// Code generated by 'mkknownfolderids.bash'; DO NOT EDIT."
15 echo
16 echo "package windows"
17 echo "type KNOWNFOLDERID GUID"
18 echo "var ("
19 while read -r line; do
20 [[ $line =~ DEFINE_KNOWN_FOLDER\((FOLDERID_[^,]+),[\t\ ]*(0x[^,]+),[\t\ ]*(0x[^,]+),[\t\ ]*(0x[^,]+),[\t\ ]*(0x[^,]+),[\t\ ]*(0x[^,]+),[\t\ ]*(0x[^,]+),[\t\ ]*(0x[^,]+),[\t\ ]*(0x[^,]+),[\t\ ]*(0x[^,]+),[\t\ ]*(0x[^,]+),[\t\ ]*(0x[^,]+)\) ]] || continue
21 printf "%s = &KNOWNFOLDERID{0x%08x, 0x%04x, 0x%04x, [8]byte{0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x}}\n" \
22 "${BASH_REMATCH[1]}" $(( "${BASH_REMATCH[2]}" )) $(( "${BASH_REMATCH[3]}" )) $(( "${BASH_REMATCH[4]}" )) \
23 $(( "${BASH_REMATCH[5]}" )) $(( "${BASH_REMATCH[6]}" )) $(( "${BASH_REMATCH[7]}" )) $(( "${BASH_REMATCH[8]}" )) \
24 $(( "${BASH_REMATCH[9]}" )) $(( "${BASH_REMATCH[10]}" )) $(( "${BASH_REMATCH[11]}" )) $(( "${BASH_REMATCH[12]}" ))
25 done < "$knownfolders"
26 echo ")"
27} | gofmt > "zknownfolderids_windows.go"
diff --git a/vendor/golang.org/x/sys/windows/mksyscall.go b/vendor/golang.org/x/sys/windows/mksyscall.go
deleted file mode 100644
index dbcdb09..0000000
--- a/vendor/golang.org/x/sys/windows/mksyscall.go
+++ /dev/null
@@ -1,9 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//go:build generate
6
7package windows
8
9//go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go setupapi_windows.go
diff --git a/vendor/golang.org/x/sys/windows/race.go b/vendor/golang.org/x/sys/windows/race.go
deleted file mode 100644
index 0f1bdc3..0000000
--- a/vendor/golang.org/x/sys/windows/race.go
+++ /dev/null
@@ -1,30 +0,0 @@
1// Copyright 2012 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//go:build windows && race
6
7package windows
8
9import (
10 "runtime"
11 "unsafe"
12)
13
14const raceenabled = true
15
16func raceAcquire(addr unsafe.Pointer) {
17 runtime.RaceAcquire(addr)
18}
19
20func raceReleaseMerge(addr unsafe.Pointer) {
21 runtime.RaceReleaseMerge(addr)
22}
23
24func raceReadRange(addr unsafe.Pointer, len int) {
25 runtime.RaceReadRange(addr, len)
26}
27
28func raceWriteRange(addr unsafe.Pointer, len int) {
29 runtime.RaceWriteRange(addr, len)
30}
diff --git a/vendor/golang.org/x/sys/windows/race0.go b/vendor/golang.org/x/sys/windows/race0.go
deleted file mode 100644
index 0c78da7..0000000
--- a/vendor/golang.org/x/sys/windows/race0.go
+++ /dev/null
@@ -1,25 +0,0 @@
1// Copyright 2012 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//go:build windows && !race
6
7package windows
8
9import (
10 "unsafe"
11)
12
13const raceenabled = false
14
15func raceAcquire(addr unsafe.Pointer) {
16}
17
18func raceReleaseMerge(addr unsafe.Pointer) {
19}
20
21func raceReadRange(addr unsafe.Pointer, len int) {
22}
23
24func raceWriteRange(addr unsafe.Pointer, len int) {
25}
diff --git a/vendor/golang.org/x/sys/windows/security_windows.go b/vendor/golang.org/x/sys/windows/security_windows.go
deleted file mode 100644
index 26be94a..0000000
--- a/vendor/golang.org/x/sys/windows/security_windows.go
+++ /dev/null
@@ -1,1435 +0,0 @@
1// Copyright 2012 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package windows
6
7import (
8 "syscall"
9 "unsafe"
10)
11
12const (
13 NameUnknown = 0
14 NameFullyQualifiedDN = 1
15 NameSamCompatible = 2
16 NameDisplay = 3
17 NameUniqueId = 6
18 NameCanonical = 7
19 NameUserPrincipal = 8
20 NameCanonicalEx = 9
21 NameServicePrincipal = 10
22 NameDnsDomain = 12
23)
24
25// This function returns 1 byte BOOLEAN rather than the 4 byte BOOL.
26// http://blogs.msdn.com/b/drnick/archive/2007/12/19/windows-and-upn-format-credentials.aspx
27//sys TranslateName(accName *uint16, accNameFormat uint32, desiredNameFormat uint32, translatedName *uint16, nSize *uint32) (err error) [failretval&0xff==0] = secur32.TranslateNameW
28//sys GetUserNameEx(nameFormat uint32, nameBuffre *uint16, nSize *uint32) (err error) [failretval&0xff==0] = secur32.GetUserNameExW
29
30// TranslateAccountName converts a directory service
31// object name from one format to another.
32func TranslateAccountName(username string, from, to uint32, initSize int) (string, error) {
33 u, e := UTF16PtrFromString(username)
34 if e != nil {
35 return "", e
36 }
37 n := uint32(50)
38 for {
39 b := make([]uint16, n)
40 e = TranslateName(u, from, to, &b[0], &n)
41 if e == nil {
42 return UTF16ToString(b[:n]), nil
43 }
44 if e != ERROR_INSUFFICIENT_BUFFER {
45 return "", e
46 }
47 if n <= uint32(len(b)) {
48 return "", e
49 }
50 }
51}
52
53const (
54 // do not reorder
55 NetSetupUnknownStatus = iota
56 NetSetupUnjoined
57 NetSetupWorkgroupName
58 NetSetupDomainName
59)
60
61type UserInfo10 struct {
62 Name *uint16
63 Comment *uint16
64 UsrComment *uint16
65 FullName *uint16
66}
67
68//sys NetUserGetInfo(serverName *uint16, userName *uint16, level uint32, buf **byte) (neterr error) = netapi32.NetUserGetInfo
69//sys NetGetJoinInformation(server *uint16, name **uint16, bufType *uint32) (neterr error) = netapi32.NetGetJoinInformation
70//sys NetApiBufferFree(buf *byte) (neterr error) = netapi32.NetApiBufferFree
71
72const (
73 // do not reorder
74 SidTypeUser = 1 + iota
75 SidTypeGroup
76 SidTypeDomain
77 SidTypeAlias
78 SidTypeWellKnownGroup
79 SidTypeDeletedAccount
80 SidTypeInvalid
81 SidTypeUnknown
82 SidTypeComputer
83 SidTypeLabel
84)
85
86type SidIdentifierAuthority struct {
87 Value [6]byte
88}
89
90var (
91 SECURITY_NULL_SID_AUTHORITY = SidIdentifierAuthority{[6]byte{0, 0, 0, 0, 0, 0}}
92 SECURITY_WORLD_SID_AUTHORITY = SidIdentifierAuthority{[6]byte{0, 0, 0, 0, 0, 1}}
93 SECURITY_LOCAL_SID_AUTHORITY = SidIdentifierAuthority{[6]byte{0, 0, 0, 0, 0, 2}}
94 SECURITY_CREATOR_SID_AUTHORITY = SidIdentifierAuthority{[6]byte{0, 0, 0, 0, 0, 3}}
95 SECURITY_NON_UNIQUE_AUTHORITY = SidIdentifierAuthority{[6]byte{0, 0, 0, 0, 0, 4}}
96 SECURITY_NT_AUTHORITY = SidIdentifierAuthority{[6]byte{0, 0, 0, 0, 0, 5}}
97 SECURITY_MANDATORY_LABEL_AUTHORITY = SidIdentifierAuthority{[6]byte{0, 0, 0, 0, 0, 16}}
98)
99
100const (
101 SECURITY_NULL_RID = 0
102 SECURITY_WORLD_RID = 0
103 SECURITY_LOCAL_RID = 0
104 SECURITY_CREATOR_OWNER_RID = 0
105 SECURITY_CREATOR_GROUP_RID = 1
106 SECURITY_DIALUP_RID = 1
107 SECURITY_NETWORK_RID = 2
108 SECURITY_BATCH_RID = 3
109 SECURITY_INTERACTIVE_RID = 4
110 SECURITY_LOGON_IDS_RID = 5
111 SECURITY_SERVICE_RID = 6
112 SECURITY_LOCAL_SYSTEM_RID = 18
113 SECURITY_BUILTIN_DOMAIN_RID = 32
114 SECURITY_PRINCIPAL_SELF_RID = 10
115 SECURITY_CREATOR_OWNER_SERVER_RID = 0x2
116 SECURITY_CREATOR_GROUP_SERVER_RID = 0x3
117 SECURITY_LOGON_IDS_RID_COUNT = 0x3
118 SECURITY_ANONYMOUS_LOGON_RID = 0x7
119 SECURITY_PROXY_RID = 0x8
120 SECURITY_ENTERPRISE_CONTROLLERS_RID = 0x9
121 SECURITY_SERVER_LOGON_RID = SECURITY_ENTERPRISE_CONTROLLERS_RID
122 SECURITY_AUTHENTICATED_USER_RID = 0xb
123 SECURITY_RESTRICTED_CODE_RID = 0xc
124 SECURITY_NT_NON_UNIQUE_RID = 0x15
125)
126
127// Predefined domain-relative RIDs for local groups.
128// See https://msdn.microsoft.com/en-us/library/windows/desktop/aa379649(v=vs.85).aspx
129const (
130 DOMAIN_ALIAS_RID_ADMINS = 0x220
131 DOMAIN_ALIAS_RID_USERS = 0x221
132 DOMAIN_ALIAS_RID_GUESTS = 0x222
133 DOMAIN_ALIAS_RID_POWER_USERS = 0x223
134 DOMAIN_ALIAS_RID_ACCOUNT_OPS = 0x224
135 DOMAIN_ALIAS_RID_SYSTEM_OPS = 0x225
136 DOMAIN_ALIAS_RID_PRINT_OPS = 0x226
137 DOMAIN_ALIAS_RID_BACKUP_OPS = 0x227
138 DOMAIN_ALIAS_RID_REPLICATOR = 0x228
139 DOMAIN_ALIAS_RID_RAS_SERVERS = 0x229
140 DOMAIN_ALIAS_RID_PREW2KCOMPACCESS = 0x22a
141 DOMAIN_ALIAS_RID_REMOTE_DESKTOP_USERS = 0x22b
142 DOMAIN_ALIAS_RID_NETWORK_CONFIGURATION_OPS = 0x22c
143 DOMAIN_ALIAS_RID_INCOMING_FOREST_TRUST_BUILDERS = 0x22d
144 DOMAIN_ALIAS_RID_MONITORING_USERS = 0x22e
145 DOMAIN_ALIAS_RID_LOGGING_USERS = 0x22f
146 DOMAIN_ALIAS_RID_AUTHORIZATIONACCESS = 0x230
147 DOMAIN_ALIAS_RID_TS_LICENSE_SERVERS = 0x231
148 DOMAIN_ALIAS_RID_DCOM_USERS = 0x232
149 DOMAIN_ALIAS_RID_IUSERS = 0x238
150 DOMAIN_ALIAS_RID_CRYPTO_OPERATORS = 0x239
151 DOMAIN_ALIAS_RID_CACHEABLE_PRINCIPALS_GROUP = 0x23b
152 DOMAIN_ALIAS_RID_NON_CACHEABLE_PRINCIPALS_GROUP = 0x23c
153 DOMAIN_ALIAS_RID_EVENT_LOG_READERS_GROUP = 0x23d
154 DOMAIN_ALIAS_RID_CERTSVC_DCOM_ACCESS_GROUP = 0x23e
155)
156
157//sys LookupAccountSid(systemName *uint16, sid *SID, name *uint16, nameLen *uint32, refdDomainName *uint16, refdDomainNameLen *uint32, use *uint32) (err error) = advapi32.LookupAccountSidW
158//sys LookupAccountName(systemName *uint16, accountName *uint16, sid *SID, sidLen *uint32, refdDomainName *uint16, refdDomainNameLen *uint32, use *uint32) (err error) = advapi32.LookupAccountNameW
159//sys ConvertSidToStringSid(sid *SID, stringSid **uint16) (err error) = advapi32.ConvertSidToStringSidW
160//sys ConvertStringSidToSid(stringSid *uint16, sid **SID) (err error) = advapi32.ConvertStringSidToSidW
161//sys GetLengthSid(sid *SID) (len uint32) = advapi32.GetLengthSid
162//sys CopySid(destSidLen uint32, destSid *SID, srcSid *SID) (err error) = advapi32.CopySid
163//sys AllocateAndInitializeSid(identAuth *SidIdentifierAuthority, subAuth byte, subAuth0 uint32, subAuth1 uint32, subAuth2 uint32, subAuth3 uint32, subAuth4 uint32, subAuth5 uint32, subAuth6 uint32, subAuth7 uint32, sid **SID) (err error) = advapi32.AllocateAndInitializeSid
164//sys createWellKnownSid(sidType WELL_KNOWN_SID_TYPE, domainSid *SID, sid *SID, sizeSid *uint32) (err error) = advapi32.CreateWellKnownSid
165//sys isWellKnownSid(sid *SID, sidType WELL_KNOWN_SID_TYPE) (isWellKnown bool) = advapi32.IsWellKnownSid
166//sys FreeSid(sid *SID) (err error) [failretval!=0] = advapi32.FreeSid
167//sys EqualSid(sid1 *SID, sid2 *SID) (isEqual bool) = advapi32.EqualSid
168//sys getSidIdentifierAuthority(sid *SID) (authority *SidIdentifierAuthority) = advapi32.GetSidIdentifierAuthority
169//sys getSidSubAuthorityCount(sid *SID) (count *uint8) = advapi32.GetSidSubAuthorityCount
170//sys getSidSubAuthority(sid *SID, index uint32) (subAuthority *uint32) = advapi32.GetSidSubAuthority
171//sys isValidSid(sid *SID) (isValid bool) = advapi32.IsValidSid
172
173// The security identifier (SID) structure is a variable-length
174// structure used to uniquely identify users or groups.
175type SID struct{}
176
177// StringToSid converts a string-format security identifier
178// SID into a valid, functional SID.
179func StringToSid(s string) (*SID, error) {
180 var sid *SID
181 p, e := UTF16PtrFromString(s)
182 if e != nil {
183 return nil, e
184 }
185 e = ConvertStringSidToSid(p, &sid)
186 if e != nil {
187 return nil, e
188 }
189 defer LocalFree((Handle)(unsafe.Pointer(sid)))
190 return sid.Copy()
191}
192
193// LookupSID retrieves a security identifier SID for the account
194// and the name of the domain on which the account was found.
195// System specify target computer to search.
196func LookupSID(system, account string) (sid *SID, domain string, accType uint32, err error) {
197 if len(account) == 0 {
198 return nil, "", 0, syscall.EINVAL
199 }
200 acc, e := UTF16PtrFromString(account)
201 if e != nil {
202 return nil, "", 0, e
203 }
204 var sys *uint16
205 if len(system) > 0 {
206 sys, e = UTF16PtrFromString(system)
207 if e != nil {
208 return nil, "", 0, e
209 }
210 }
211 n := uint32(50)
212 dn := uint32(50)
213 for {
214 b := make([]byte, n)
215 db := make([]uint16, dn)
216 sid = (*SID)(unsafe.Pointer(&b[0]))
217 e = LookupAccountName(sys, acc, sid, &n, &db[0], &dn, &accType)
218 if e == nil {
219 return sid, UTF16ToString(db), accType, nil
220 }
221 if e != ERROR_INSUFFICIENT_BUFFER {
222 return nil, "", 0, e
223 }
224 if n <= uint32(len(b)) {
225 return nil, "", 0, e
226 }
227 }
228}
229
230// String converts SID to a string format suitable for display, storage, or transmission.
231func (sid *SID) String() string {
232 var s *uint16
233 e := ConvertSidToStringSid(sid, &s)
234 if e != nil {
235 return ""
236 }
237 defer LocalFree((Handle)(unsafe.Pointer(s)))
238 return UTF16ToString((*[256]uint16)(unsafe.Pointer(s))[:])
239}
240
241// Len returns the length, in bytes, of a valid security identifier SID.
242func (sid *SID) Len() int {
243 return int(GetLengthSid(sid))
244}
245
246// Copy creates a duplicate of security identifier SID.
247func (sid *SID) Copy() (*SID, error) {
248 b := make([]byte, sid.Len())
249 sid2 := (*SID)(unsafe.Pointer(&b[0]))
250 e := CopySid(uint32(len(b)), sid2, sid)
251 if e != nil {
252 return nil, e
253 }
254 return sid2, nil
255}
256
257// IdentifierAuthority returns the identifier authority of the SID.
258func (sid *SID) IdentifierAuthority() SidIdentifierAuthority {
259 return *getSidIdentifierAuthority(sid)
260}
261
262// SubAuthorityCount returns the number of sub-authorities in the SID.
263func (sid *SID) SubAuthorityCount() uint8 {
264 return *getSidSubAuthorityCount(sid)
265}
266
267// SubAuthority returns the sub-authority of the SID as specified by
268// the index, which must be less than sid.SubAuthorityCount().
269func (sid *SID) SubAuthority(idx uint32) uint32 {
270 if idx >= uint32(sid.SubAuthorityCount()) {
271 panic("sub-authority index out of range")
272 }
273 return *getSidSubAuthority(sid, idx)
274}
275
276// IsValid returns whether the SID has a valid revision and length.
277func (sid *SID) IsValid() bool {
278 return isValidSid(sid)
279}
280
281// Equals compares two SIDs for equality.
282func (sid *SID) Equals(sid2 *SID) bool {
283 return EqualSid(sid, sid2)
284}
285
286// IsWellKnown determines whether the SID matches the well-known sidType.
287func (sid *SID) IsWellKnown(sidType WELL_KNOWN_SID_TYPE) bool {
288 return isWellKnownSid(sid, sidType)
289}
290
291// LookupAccount retrieves the name of the account for this SID
292// and the name of the first domain on which this SID is found.
293// System specify target computer to search for.
294func (sid *SID) LookupAccount(system string) (account, domain string, accType uint32, err error) {
295 var sys *uint16
296 if len(system) > 0 {
297 sys, err = UTF16PtrFromString(system)
298 if err != nil {
299 return "", "", 0, err
300 }
301 }
302 n := uint32(50)
303 dn := uint32(50)
304 for {
305 b := make([]uint16, n)
306 db := make([]uint16, dn)
307 e := LookupAccountSid(sys, sid, &b[0], &n, &db[0], &dn, &accType)
308 if e == nil {
309 return UTF16ToString(b), UTF16ToString(db), accType, nil
310 }
311 if e != ERROR_INSUFFICIENT_BUFFER {
312 return "", "", 0, e
313 }
314 if n <= uint32(len(b)) {
315 return "", "", 0, e
316 }
317 }
318}
319
320// Various types of pre-specified SIDs that can be synthesized and compared at runtime.
321type WELL_KNOWN_SID_TYPE uint32
322
323const (
324 WinNullSid = 0
325 WinWorldSid = 1
326 WinLocalSid = 2
327 WinCreatorOwnerSid = 3
328 WinCreatorGroupSid = 4
329 WinCreatorOwnerServerSid = 5
330 WinCreatorGroupServerSid = 6
331 WinNtAuthoritySid = 7
332 WinDialupSid = 8
333 WinNetworkSid = 9
334 WinBatchSid = 10
335 WinInteractiveSid = 11
336 WinServiceSid = 12
337 WinAnonymousSid = 13
338 WinProxySid = 14
339 WinEnterpriseControllersSid = 15
340 WinSelfSid = 16
341 WinAuthenticatedUserSid = 17
342 WinRestrictedCodeSid = 18
343 WinTerminalServerSid = 19
344 WinRemoteLogonIdSid = 20
345 WinLogonIdsSid = 21
346 WinLocalSystemSid = 22
347 WinLocalServiceSid = 23
348 WinNetworkServiceSid = 24
349 WinBuiltinDomainSid = 25
350 WinBuiltinAdministratorsSid = 26
351 WinBuiltinUsersSid = 27
352 WinBuiltinGuestsSid = 28
353 WinBuiltinPowerUsersSid = 29
354 WinBuiltinAccountOperatorsSid = 30
355 WinBuiltinSystemOperatorsSid = 31
356 WinBuiltinPrintOperatorsSid = 32
357 WinBuiltinBackupOperatorsSid = 33
358 WinBuiltinReplicatorSid = 34
359 WinBuiltinPreWindows2000CompatibleAccessSid = 35
360 WinBuiltinRemoteDesktopUsersSid = 36
361 WinBuiltinNetworkConfigurationOperatorsSid = 37
362 WinAccountAdministratorSid = 38
363 WinAccountGuestSid = 39
364 WinAccountKrbtgtSid = 40
365 WinAccountDomainAdminsSid = 41
366 WinAccountDomainUsersSid = 42
367 WinAccountDomainGuestsSid = 43
368 WinAccountComputersSid = 44
369 WinAccountControllersSid = 45
370 WinAccountCertAdminsSid = 46
371 WinAccountSchemaAdminsSid = 47
372 WinAccountEnterpriseAdminsSid = 48
373 WinAccountPolicyAdminsSid = 49
374 WinAccountRasAndIasServersSid = 50
375 WinNTLMAuthenticationSid = 51
376 WinDigestAuthenticationSid = 52
377 WinSChannelAuthenticationSid = 53
378 WinThisOrganizationSid = 54
379 WinOtherOrganizationSid = 55
380 WinBuiltinIncomingForestTrustBuildersSid = 56
381 WinBuiltinPerfMonitoringUsersSid = 57
382 WinBuiltinPerfLoggingUsersSid = 58
383 WinBuiltinAuthorizationAccessSid = 59
384 WinBuiltinTerminalServerLicenseServersSid = 60
385 WinBuiltinDCOMUsersSid = 61
386 WinBuiltinIUsersSid = 62
387 WinIUserSid = 63
388 WinBuiltinCryptoOperatorsSid = 64
389 WinUntrustedLabelSid = 65
390 WinLowLabelSid = 66
391 WinMediumLabelSid = 67
392 WinHighLabelSid = 68
393 WinSystemLabelSid = 69
394 WinWriteRestrictedCodeSid = 70
395 WinCreatorOwnerRightsSid = 71
396 WinCacheablePrincipalsGroupSid = 72
397 WinNonCacheablePrincipalsGroupSid = 73
398 WinEnterpriseReadonlyControllersSid = 74
399 WinAccountReadonlyControllersSid = 75
400 WinBuiltinEventLogReadersGroup = 76
401 WinNewEnterpriseReadonlyControllersSid = 77
402 WinBuiltinCertSvcDComAccessGroup = 78
403 WinMediumPlusLabelSid = 79
404 WinLocalLogonSid = 80
405 WinConsoleLogonSid = 81
406 WinThisOrganizationCertificateSid = 82
407 WinApplicationPackageAuthoritySid = 83
408 WinBuiltinAnyPackageSid = 84
409 WinCapabilityInternetClientSid = 85
410 WinCapabilityInternetClientServerSid = 86
411 WinCapabilityPrivateNetworkClientServerSid = 87
412 WinCapabilityPicturesLibrarySid = 88
413 WinCapabilityVideosLibrarySid = 89
414 WinCapabilityMusicLibrarySid = 90
415 WinCapabilityDocumentsLibrarySid = 91
416 WinCapabilitySharedUserCertificatesSid = 92
417 WinCapabilityEnterpriseAuthenticationSid = 93
418 WinCapabilityRemovableStorageSid = 94
419 WinBuiltinRDSRemoteAccessServersSid = 95
420 WinBuiltinRDSEndpointServersSid = 96
421 WinBuiltinRDSManagementServersSid = 97
422 WinUserModeDriversSid = 98
423 WinBuiltinHyperVAdminsSid = 99
424 WinAccountCloneableControllersSid = 100
425 WinBuiltinAccessControlAssistanceOperatorsSid = 101
426 WinBuiltinRemoteManagementUsersSid = 102
427 WinAuthenticationAuthorityAssertedSid = 103
428 WinAuthenticationServiceAssertedSid = 104
429 WinLocalAccountSid = 105
430 WinLocalAccountAndAdministratorSid = 106
431 WinAccountProtectedUsersSid = 107
432 WinCapabilityAppointmentsSid = 108
433 WinCapabilityContactsSid = 109
434 WinAccountDefaultSystemManagedSid = 110
435 WinBuiltinDefaultSystemManagedGroupSid = 111
436 WinBuiltinStorageReplicaAdminsSid = 112
437 WinAccountKeyAdminsSid = 113
438 WinAccountEnterpriseKeyAdminsSid = 114
439 WinAuthenticationKeyTrustSid = 115
440 WinAuthenticationKeyPropertyMFASid = 116
441 WinAuthenticationKeyPropertyAttestationSid = 117
442 WinAuthenticationFreshKeyAuthSid = 118
443 WinBuiltinDeviceOwnersSid = 119
444)
445
446// Creates a SID for a well-known predefined alias, generally using the constants of the form
447// Win*Sid, for the local machine.
448func CreateWellKnownSid(sidType WELL_KNOWN_SID_TYPE) (*SID, error) {
449 return CreateWellKnownDomainSid(sidType, nil)
450}
451
452// Creates a SID for a well-known predefined alias, generally using the constants of the form
453// Win*Sid, for the domain specified by the domainSid parameter.
454func CreateWellKnownDomainSid(sidType WELL_KNOWN_SID_TYPE, domainSid *SID) (*SID, error) {
455 n := uint32(50)
456 for {
457 b := make([]byte, n)
458 sid := (*SID)(unsafe.Pointer(&b[0]))
459 err := createWellKnownSid(sidType, domainSid, sid, &n)
460 if err == nil {
461 return sid, nil
462 }
463 if err != ERROR_INSUFFICIENT_BUFFER {
464 return nil, err
465 }
466 if n <= uint32(len(b)) {
467 return nil, err
468 }
469 }
470}
471
472const (
473 // do not reorder
474 TOKEN_ASSIGN_PRIMARY = 1 << iota
475 TOKEN_DUPLICATE
476 TOKEN_IMPERSONATE
477 TOKEN_QUERY
478 TOKEN_QUERY_SOURCE
479 TOKEN_ADJUST_PRIVILEGES
480 TOKEN_ADJUST_GROUPS
481 TOKEN_ADJUST_DEFAULT
482 TOKEN_ADJUST_SESSIONID
483
484 TOKEN_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED |
485 TOKEN_ASSIGN_PRIMARY |
486 TOKEN_DUPLICATE |
487 TOKEN_IMPERSONATE |
488 TOKEN_QUERY |
489 TOKEN_QUERY_SOURCE |
490 TOKEN_ADJUST_PRIVILEGES |
491 TOKEN_ADJUST_GROUPS |
492 TOKEN_ADJUST_DEFAULT |
493 TOKEN_ADJUST_SESSIONID
494 TOKEN_READ = STANDARD_RIGHTS_READ | TOKEN_QUERY
495 TOKEN_WRITE = STANDARD_RIGHTS_WRITE |
496 TOKEN_ADJUST_PRIVILEGES |
497 TOKEN_ADJUST_GROUPS |
498 TOKEN_ADJUST_DEFAULT
499 TOKEN_EXECUTE = STANDARD_RIGHTS_EXECUTE
500)
501
502const (
503 // do not reorder
504 TokenUser = 1 + iota
505 TokenGroups
506 TokenPrivileges
507 TokenOwner
508 TokenPrimaryGroup
509 TokenDefaultDacl
510 TokenSource
511 TokenType
512 TokenImpersonationLevel
513 TokenStatistics
514 TokenRestrictedSids
515 TokenSessionId
516 TokenGroupsAndPrivileges
517 TokenSessionReference
518 TokenSandBoxInert
519 TokenAuditPolicy
520 TokenOrigin
521 TokenElevationType
522 TokenLinkedToken
523 TokenElevation
524 TokenHasRestrictions
525 TokenAccessInformation
526 TokenVirtualizationAllowed
527 TokenVirtualizationEnabled
528 TokenIntegrityLevel
529 TokenUIAccess
530 TokenMandatoryPolicy
531 TokenLogonSid
532 MaxTokenInfoClass
533)
534
535// Group attributes inside of Tokengroups.Groups[i].Attributes
536const (
537 SE_GROUP_MANDATORY = 0x00000001
538 SE_GROUP_ENABLED_BY_DEFAULT = 0x00000002
539 SE_GROUP_ENABLED = 0x00000004
540 SE_GROUP_OWNER = 0x00000008
541 SE_GROUP_USE_FOR_DENY_ONLY = 0x00000010
542 SE_GROUP_INTEGRITY = 0x00000020
543 SE_GROUP_INTEGRITY_ENABLED = 0x00000040
544 SE_GROUP_LOGON_ID = 0xC0000000
545 SE_GROUP_RESOURCE = 0x20000000
546 SE_GROUP_VALID_ATTRIBUTES = SE_GROUP_MANDATORY | SE_GROUP_ENABLED_BY_DEFAULT | SE_GROUP_ENABLED | SE_GROUP_OWNER | SE_GROUP_USE_FOR_DENY_ONLY | SE_GROUP_LOGON_ID | SE_GROUP_RESOURCE | SE_GROUP_INTEGRITY | SE_GROUP_INTEGRITY_ENABLED
547)
548
549// Privilege attributes
550const (
551 SE_PRIVILEGE_ENABLED_BY_DEFAULT = 0x00000001
552 SE_PRIVILEGE_ENABLED = 0x00000002
553 SE_PRIVILEGE_REMOVED = 0x00000004
554 SE_PRIVILEGE_USED_FOR_ACCESS = 0x80000000
555 SE_PRIVILEGE_VALID_ATTRIBUTES = SE_PRIVILEGE_ENABLED_BY_DEFAULT | SE_PRIVILEGE_ENABLED | SE_PRIVILEGE_REMOVED | SE_PRIVILEGE_USED_FOR_ACCESS
556)
557
558// Token types
559const (
560 TokenPrimary = 1
561 TokenImpersonation = 2
562)
563
564// Impersonation levels
565const (
566 SecurityAnonymous = 0
567 SecurityIdentification = 1
568 SecurityImpersonation = 2
569 SecurityDelegation = 3
570)
571
572type LUID struct {
573 LowPart uint32
574 HighPart int32
575}
576
577type LUIDAndAttributes struct {
578 Luid LUID
579 Attributes uint32
580}
581
582type SIDAndAttributes struct {
583 Sid *SID
584 Attributes uint32
585}
586
587type Tokenuser struct {
588 User SIDAndAttributes
589}
590
591type Tokenprimarygroup struct {
592 PrimaryGroup *SID
593}
594
595type Tokengroups struct {
596 GroupCount uint32
597 Groups [1]SIDAndAttributes // Use AllGroups() for iterating.
598}
599
600// AllGroups returns a slice that can be used to iterate over the groups in g.
601func (g *Tokengroups) AllGroups() []SIDAndAttributes {
602 return (*[(1 << 28) - 1]SIDAndAttributes)(unsafe.Pointer(&g.Groups[0]))[:g.GroupCount:g.GroupCount]
603}
604
605type Tokenprivileges struct {
606 PrivilegeCount uint32
607 Privileges [1]LUIDAndAttributes // Use AllPrivileges() for iterating.
608}
609
610// AllPrivileges returns a slice that can be used to iterate over the privileges in p.
611func (p *Tokenprivileges) AllPrivileges() []LUIDAndAttributes {
612 return (*[(1 << 27) - 1]LUIDAndAttributes)(unsafe.Pointer(&p.Privileges[0]))[:p.PrivilegeCount:p.PrivilegeCount]
613}
614
615type Tokenmandatorylabel struct {
616 Label SIDAndAttributes
617}
618
619func (tml *Tokenmandatorylabel) Size() uint32 {
620 return uint32(unsafe.Sizeof(Tokenmandatorylabel{})) + GetLengthSid(tml.Label.Sid)
621}
622
623// Authorization Functions
624//sys checkTokenMembership(tokenHandle Token, sidToCheck *SID, isMember *int32) (err error) = advapi32.CheckTokenMembership
625//sys isTokenRestricted(tokenHandle Token) (ret bool, err error) [!failretval] = advapi32.IsTokenRestricted
626//sys OpenProcessToken(process Handle, access uint32, token *Token) (err error) = advapi32.OpenProcessToken
627//sys OpenThreadToken(thread Handle, access uint32, openAsSelf bool, token *Token) (err error) = advapi32.OpenThreadToken
628//sys ImpersonateSelf(impersonationlevel uint32) (err error) = advapi32.ImpersonateSelf
629//sys RevertToSelf() (err error) = advapi32.RevertToSelf
630//sys SetThreadToken(thread *Handle, token Token) (err error) = advapi32.SetThreadToken
631//sys LookupPrivilegeValue(systemname *uint16, name *uint16, luid *LUID) (err error) = advapi32.LookupPrivilegeValueW
632//sys AdjustTokenPrivileges(token Token, disableAllPrivileges bool, newstate *Tokenprivileges, buflen uint32, prevstate *Tokenprivileges, returnlen *uint32) (err error) = advapi32.AdjustTokenPrivileges
633//sys AdjustTokenGroups(token Token, resetToDefault bool, newstate *Tokengroups, buflen uint32, prevstate *Tokengroups, returnlen *uint32) (err error) = advapi32.AdjustTokenGroups
634//sys GetTokenInformation(token Token, infoClass uint32, info *byte, infoLen uint32, returnedLen *uint32) (err error) = advapi32.GetTokenInformation
635//sys SetTokenInformation(token Token, infoClass uint32, info *byte, infoLen uint32) (err error) = advapi32.SetTokenInformation
636//sys DuplicateTokenEx(existingToken Token, desiredAccess uint32, tokenAttributes *SecurityAttributes, impersonationLevel uint32, tokenType uint32, newToken *Token) (err error) = advapi32.DuplicateTokenEx
637//sys GetUserProfileDirectory(t Token, dir *uint16, dirLen *uint32) (err error) = userenv.GetUserProfileDirectoryW
638//sys getSystemDirectory(dir *uint16, dirLen uint32) (len uint32, err error) = kernel32.GetSystemDirectoryW
639//sys getWindowsDirectory(dir *uint16, dirLen uint32) (len uint32, err error) = kernel32.GetWindowsDirectoryW
640//sys getSystemWindowsDirectory(dir *uint16, dirLen uint32) (len uint32, err error) = kernel32.GetSystemWindowsDirectoryW
641
642// An access token contains the security information for a logon session.
643// The system creates an access token when a user logs on, and every
644// process executed on behalf of the user has a copy of the token.
645// The token identifies the user, the user's groups, and the user's
646// privileges. The system uses the token to control access to securable
647// objects and to control the ability of the user to perform various
648// system-related operations on the local computer.
649type Token Handle
650
651// OpenCurrentProcessToken opens an access token associated with current
652// process with TOKEN_QUERY access. It is a real token that needs to be closed.
653//
654// Deprecated: Explicitly call OpenProcessToken(CurrentProcess(), ...)
655// with the desired access instead, or use GetCurrentProcessToken for a
656// TOKEN_QUERY token.
657func OpenCurrentProcessToken() (Token, error) {
658 var token Token
659 err := OpenProcessToken(CurrentProcess(), TOKEN_QUERY, &token)
660 return token, err
661}
662
663// GetCurrentProcessToken returns the access token associated with
664// the current process. It is a pseudo token that does not need
665// to be closed.
666func GetCurrentProcessToken() Token {
667 return Token(^uintptr(4 - 1))
668}
669
670// GetCurrentThreadToken return the access token associated with
671// the current thread. It is a pseudo token that does not need
672// to be closed.
673func GetCurrentThreadToken() Token {
674 return Token(^uintptr(5 - 1))
675}
676
677// GetCurrentThreadEffectiveToken returns the effective access token
678// associated with the current thread. It is a pseudo token that does
679// not need to be closed.
680func GetCurrentThreadEffectiveToken() Token {
681 return Token(^uintptr(6 - 1))
682}
683
684// Close releases access to access token.
685func (t Token) Close() error {
686 return CloseHandle(Handle(t))
687}
688
689// getInfo retrieves a specified type of information about an access token.
690func (t Token) getInfo(class uint32, initSize int) (unsafe.Pointer, error) {
691 n := uint32(initSize)
692 for {
693 b := make([]byte, n)
694 e := GetTokenInformation(t, class, &b[0], uint32(len(b)), &n)
695 if e == nil {
696 return unsafe.Pointer(&b[0]), nil
697 }
698 if e != ERROR_INSUFFICIENT_BUFFER {
699 return nil, e
700 }
701 if n <= uint32(len(b)) {
702 return nil, e
703 }
704 }
705}
706
707// GetTokenUser retrieves access token t user account information.
708func (t Token) GetTokenUser() (*Tokenuser, error) {
709 i, e := t.getInfo(TokenUser, 50)
710 if e != nil {
711 return nil, e
712 }
713 return (*Tokenuser)(i), nil
714}
715
716// GetTokenGroups retrieves group accounts associated with access token t.
717func (t Token) GetTokenGroups() (*Tokengroups, error) {
718 i, e := t.getInfo(TokenGroups, 50)
719 if e != nil {
720 return nil, e
721 }
722 return (*Tokengroups)(i), nil
723}
724
725// GetTokenPrimaryGroup retrieves access token t primary group information.
726// A pointer to a SID structure representing a group that will become
727// the primary group of any objects created by a process using this access token.
728func (t Token) GetTokenPrimaryGroup() (*Tokenprimarygroup, error) {
729 i, e := t.getInfo(TokenPrimaryGroup, 50)
730 if e != nil {
731 return nil, e
732 }
733 return (*Tokenprimarygroup)(i), nil
734}
735
736// GetUserProfileDirectory retrieves path to the
737// root directory of the access token t user's profile.
738func (t Token) GetUserProfileDirectory() (string, error) {
739 n := uint32(100)
740 for {
741 b := make([]uint16, n)
742 e := GetUserProfileDirectory(t, &b[0], &n)
743 if e == nil {
744 return UTF16ToString(b), nil
745 }
746 if e != ERROR_INSUFFICIENT_BUFFER {
747 return "", e
748 }
749 if n <= uint32(len(b)) {
750 return "", e
751 }
752 }
753}
754
755// IsElevated returns whether the current token is elevated from a UAC perspective.
756func (token Token) IsElevated() bool {
757 var isElevated uint32
758 var outLen uint32
759 err := GetTokenInformation(token, TokenElevation, (*byte)(unsafe.Pointer(&isElevated)), uint32(unsafe.Sizeof(isElevated)), &outLen)
760 if err != nil {
761 return false
762 }
763 return outLen == uint32(unsafe.Sizeof(isElevated)) && isElevated != 0
764}
765
766// GetLinkedToken returns the linked token, which may be an elevated UAC token.
767func (token Token) GetLinkedToken() (Token, error) {
768 var linkedToken Token
769 var outLen uint32
770 err := GetTokenInformation(token, TokenLinkedToken, (*byte)(unsafe.Pointer(&linkedToken)), uint32(unsafe.Sizeof(linkedToken)), &outLen)
771 if err != nil {
772 return Token(0), err
773 }
774 return linkedToken, nil
775}
776
777// GetSystemDirectory retrieves the path to current location of the system
778// directory, which is typically, though not always, `C:\Windows\System32`.
779func GetSystemDirectory() (string, error) {
780 n := uint32(MAX_PATH)
781 for {
782 b := make([]uint16, n)
783 l, e := getSystemDirectory(&b[0], n)
784 if e != nil {
785 return "", e
786 }
787 if l <= n {
788 return UTF16ToString(b[:l]), nil
789 }
790 n = l
791 }
792}
793
794// GetWindowsDirectory retrieves the path to current location of the Windows
795// directory, which is typically, though not always, `C:\Windows`. This may
796// be a private user directory in the case that the application is running
797// under a terminal server.
798func GetWindowsDirectory() (string, error) {
799 n := uint32(MAX_PATH)
800 for {
801 b := make([]uint16, n)
802 l, e := getWindowsDirectory(&b[0], n)
803 if e != nil {
804 return "", e
805 }
806 if l <= n {
807 return UTF16ToString(b[:l]), nil
808 }
809 n = l
810 }
811}
812
813// GetSystemWindowsDirectory retrieves the path to current location of the
814// Windows directory, which is typically, though not always, `C:\Windows`.
815func GetSystemWindowsDirectory() (string, error) {
816 n := uint32(MAX_PATH)
817 for {
818 b := make([]uint16, n)
819 l, e := getSystemWindowsDirectory(&b[0], n)
820 if e != nil {
821 return "", e
822 }
823 if l <= n {
824 return UTF16ToString(b[:l]), nil
825 }
826 n = l
827 }
828}
829
830// IsMember reports whether the access token t is a member of the provided SID.
831func (t Token) IsMember(sid *SID) (bool, error) {
832 var b int32
833 if e := checkTokenMembership(t, sid, &b); e != nil {
834 return false, e
835 }
836 return b != 0, nil
837}
838
839// IsRestricted reports whether the access token t is a restricted token.
840func (t Token) IsRestricted() (isRestricted bool, err error) {
841 isRestricted, err = isTokenRestricted(t)
842 if !isRestricted && err == syscall.EINVAL {
843 // If err is EINVAL, this returned ERROR_SUCCESS indicating a non-restricted token.
844 err = nil
845 }
846 return
847}
848
849const (
850 WTS_CONSOLE_CONNECT = 0x1
851 WTS_CONSOLE_DISCONNECT = 0x2
852 WTS_REMOTE_CONNECT = 0x3
853 WTS_REMOTE_DISCONNECT = 0x4
854 WTS_SESSION_LOGON = 0x5
855 WTS_SESSION_LOGOFF = 0x6
856 WTS_SESSION_LOCK = 0x7
857 WTS_SESSION_UNLOCK = 0x8
858 WTS_SESSION_REMOTE_CONTROL = 0x9
859 WTS_SESSION_CREATE = 0xa
860 WTS_SESSION_TERMINATE = 0xb
861)
862
863const (
864 WTSActive = 0
865 WTSConnected = 1
866 WTSConnectQuery = 2
867 WTSShadow = 3
868 WTSDisconnected = 4
869 WTSIdle = 5
870 WTSListen = 6
871 WTSReset = 7
872 WTSDown = 8
873 WTSInit = 9
874)
875
876type WTSSESSION_NOTIFICATION struct {
877 Size uint32
878 SessionID uint32
879}
880
881type WTS_SESSION_INFO struct {
882 SessionID uint32
883 WindowStationName *uint16
884 State uint32
885}
886
887//sys WTSQueryUserToken(session uint32, token *Token) (err error) = wtsapi32.WTSQueryUserToken
888//sys WTSEnumerateSessions(handle Handle, reserved uint32, version uint32, sessions **WTS_SESSION_INFO, count *uint32) (err error) = wtsapi32.WTSEnumerateSessionsW
889//sys WTSFreeMemory(ptr uintptr) = wtsapi32.WTSFreeMemory
890//sys WTSGetActiveConsoleSessionId() (sessionID uint32)
891
892type ACL struct {
893 aclRevision byte
894 sbz1 byte
895 aclSize uint16
896 aceCount uint16
897 sbz2 uint16
898}
899
900type SECURITY_DESCRIPTOR struct {
901 revision byte
902 sbz1 byte
903 control SECURITY_DESCRIPTOR_CONTROL
904 owner *SID
905 group *SID
906 sacl *ACL
907 dacl *ACL
908}
909
910type SECURITY_QUALITY_OF_SERVICE struct {
911 Length uint32
912 ImpersonationLevel uint32
913 ContextTrackingMode byte
914 EffectiveOnly byte
915}
916
917// Constants for the ContextTrackingMode field of SECURITY_QUALITY_OF_SERVICE.
918const (
919 SECURITY_STATIC_TRACKING = 0
920 SECURITY_DYNAMIC_TRACKING = 1
921)
922
923type SecurityAttributes struct {
924 Length uint32
925 SecurityDescriptor *SECURITY_DESCRIPTOR
926 InheritHandle uint32
927}
928
929type SE_OBJECT_TYPE uint32
930
931// Constants for type SE_OBJECT_TYPE
932const (
933 SE_UNKNOWN_OBJECT_TYPE = 0
934 SE_FILE_OBJECT = 1
935 SE_SERVICE = 2
936 SE_PRINTER = 3
937 SE_REGISTRY_KEY = 4
938 SE_LMSHARE = 5
939 SE_KERNEL_OBJECT = 6
940 SE_WINDOW_OBJECT = 7
941 SE_DS_OBJECT = 8
942 SE_DS_OBJECT_ALL = 9
943 SE_PROVIDER_DEFINED_OBJECT = 10
944 SE_WMIGUID_OBJECT = 11
945 SE_REGISTRY_WOW64_32KEY = 12
946 SE_REGISTRY_WOW64_64KEY = 13
947)
948
949type SECURITY_INFORMATION uint32
950
951// Constants for type SECURITY_INFORMATION
952const (
953 OWNER_SECURITY_INFORMATION = 0x00000001
954 GROUP_SECURITY_INFORMATION = 0x00000002
955 DACL_SECURITY_INFORMATION = 0x00000004
956 SACL_SECURITY_INFORMATION = 0x00000008
957 LABEL_SECURITY_INFORMATION = 0x00000010
958 ATTRIBUTE_SECURITY_INFORMATION = 0x00000020
959 SCOPE_SECURITY_INFORMATION = 0x00000040
960 BACKUP_SECURITY_INFORMATION = 0x00010000
961 PROTECTED_DACL_SECURITY_INFORMATION = 0x80000000
962 PROTECTED_SACL_SECURITY_INFORMATION = 0x40000000
963 UNPROTECTED_DACL_SECURITY_INFORMATION = 0x20000000
964 UNPROTECTED_SACL_SECURITY_INFORMATION = 0x10000000
965)
966
967type SECURITY_DESCRIPTOR_CONTROL uint16
968
969// Constants for type SECURITY_DESCRIPTOR_CONTROL
970const (
971 SE_OWNER_DEFAULTED = 0x0001
972 SE_GROUP_DEFAULTED = 0x0002
973 SE_DACL_PRESENT = 0x0004
974 SE_DACL_DEFAULTED = 0x0008
975 SE_SACL_PRESENT = 0x0010
976 SE_SACL_DEFAULTED = 0x0020
977 SE_DACL_AUTO_INHERIT_REQ = 0x0100
978 SE_SACL_AUTO_INHERIT_REQ = 0x0200
979 SE_DACL_AUTO_INHERITED = 0x0400
980 SE_SACL_AUTO_INHERITED = 0x0800
981 SE_DACL_PROTECTED = 0x1000
982 SE_SACL_PROTECTED = 0x2000
983 SE_RM_CONTROL_VALID = 0x4000
984 SE_SELF_RELATIVE = 0x8000
985)
986
987type ACCESS_MASK uint32
988
989// Constants for type ACCESS_MASK
990const (
991 DELETE = 0x00010000
992 READ_CONTROL = 0x00020000
993 WRITE_DAC = 0x00040000
994 WRITE_OWNER = 0x00080000
995 SYNCHRONIZE = 0x00100000
996 STANDARD_RIGHTS_REQUIRED = 0x000F0000
997 STANDARD_RIGHTS_READ = READ_CONTROL
998 STANDARD_RIGHTS_WRITE = READ_CONTROL
999 STANDARD_RIGHTS_EXECUTE = READ_CONTROL
1000 STANDARD_RIGHTS_ALL = 0x001F0000
1001 SPECIFIC_RIGHTS_ALL = 0x0000FFFF
1002 ACCESS_SYSTEM_SECURITY = 0x01000000
1003 MAXIMUM_ALLOWED = 0x02000000
1004 GENERIC_READ = 0x80000000
1005 GENERIC_WRITE = 0x40000000
1006 GENERIC_EXECUTE = 0x20000000
1007 GENERIC_ALL = 0x10000000
1008)
1009
1010type ACCESS_MODE uint32
1011
1012// Constants for type ACCESS_MODE
1013const (
1014 NOT_USED_ACCESS = 0
1015 GRANT_ACCESS = 1
1016 SET_ACCESS = 2
1017 DENY_ACCESS = 3
1018 REVOKE_ACCESS = 4
1019 SET_AUDIT_SUCCESS = 5
1020 SET_AUDIT_FAILURE = 6
1021)
1022
1023// Constants for AceFlags and Inheritance fields
1024const (
1025 NO_INHERITANCE = 0x0
1026 SUB_OBJECTS_ONLY_INHERIT = 0x1
1027 SUB_CONTAINERS_ONLY_INHERIT = 0x2
1028 SUB_CONTAINERS_AND_OBJECTS_INHERIT = 0x3
1029 INHERIT_NO_PROPAGATE = 0x4
1030 INHERIT_ONLY = 0x8
1031 INHERITED_ACCESS_ENTRY = 0x10
1032 INHERITED_PARENT = 0x10000000
1033 INHERITED_GRANDPARENT = 0x20000000
1034 OBJECT_INHERIT_ACE = 0x1
1035 CONTAINER_INHERIT_ACE = 0x2
1036 NO_PROPAGATE_INHERIT_ACE = 0x4
1037 INHERIT_ONLY_ACE = 0x8
1038 INHERITED_ACE = 0x10
1039 VALID_INHERIT_FLAGS = 0x1F
1040)
1041
1042type MULTIPLE_TRUSTEE_OPERATION uint32
1043
1044// Constants for MULTIPLE_TRUSTEE_OPERATION
1045const (
1046 NO_MULTIPLE_TRUSTEE = 0
1047 TRUSTEE_IS_IMPERSONATE = 1
1048)
1049
1050type TRUSTEE_FORM uint32
1051
1052// Constants for TRUSTEE_FORM
1053const (
1054 TRUSTEE_IS_SID = 0
1055 TRUSTEE_IS_NAME = 1
1056 TRUSTEE_BAD_FORM = 2
1057 TRUSTEE_IS_OBJECTS_AND_SID = 3
1058 TRUSTEE_IS_OBJECTS_AND_NAME = 4
1059)
1060
1061type TRUSTEE_TYPE uint32
1062
1063// Constants for TRUSTEE_TYPE
1064const (
1065 TRUSTEE_IS_UNKNOWN = 0
1066 TRUSTEE_IS_USER = 1
1067 TRUSTEE_IS_GROUP = 2
1068 TRUSTEE_IS_DOMAIN = 3
1069 TRUSTEE_IS_ALIAS = 4
1070 TRUSTEE_IS_WELL_KNOWN_GROUP = 5
1071 TRUSTEE_IS_DELETED = 6
1072 TRUSTEE_IS_INVALID = 7
1073 TRUSTEE_IS_COMPUTER = 8
1074)
1075
1076// Constants for ObjectsPresent field
1077const (
1078 ACE_OBJECT_TYPE_PRESENT = 0x1
1079 ACE_INHERITED_OBJECT_TYPE_PRESENT = 0x2
1080)
1081
1082type EXPLICIT_ACCESS struct {
1083 AccessPermissions ACCESS_MASK
1084 AccessMode ACCESS_MODE
1085 Inheritance uint32
1086 Trustee TRUSTEE
1087}
1088
1089// This type is the union inside of TRUSTEE and must be created using one of the TrusteeValueFrom* functions.
1090type TrusteeValue uintptr
1091
1092func TrusteeValueFromString(str string) TrusteeValue {
1093 return TrusteeValue(unsafe.Pointer(StringToUTF16Ptr(str)))
1094}
1095func TrusteeValueFromSID(sid *SID) TrusteeValue {
1096 return TrusteeValue(unsafe.Pointer(sid))
1097}
1098func TrusteeValueFromObjectsAndSid(objectsAndSid *OBJECTS_AND_SID) TrusteeValue {
1099 return TrusteeValue(unsafe.Pointer(objectsAndSid))
1100}
1101func TrusteeValueFromObjectsAndName(objectsAndName *OBJECTS_AND_NAME) TrusteeValue {
1102 return TrusteeValue(unsafe.Pointer(objectsAndName))
1103}
1104
1105type TRUSTEE struct {
1106 MultipleTrustee *TRUSTEE
1107 MultipleTrusteeOperation MULTIPLE_TRUSTEE_OPERATION
1108 TrusteeForm TRUSTEE_FORM
1109 TrusteeType TRUSTEE_TYPE
1110 TrusteeValue TrusteeValue
1111}
1112
1113type OBJECTS_AND_SID struct {
1114 ObjectsPresent uint32
1115 ObjectTypeGuid GUID
1116 InheritedObjectTypeGuid GUID
1117 Sid *SID
1118}
1119
1120type OBJECTS_AND_NAME struct {
1121 ObjectsPresent uint32
1122 ObjectType SE_OBJECT_TYPE
1123 ObjectTypeName *uint16
1124 InheritedObjectTypeName *uint16
1125 Name *uint16
1126}
1127
1128//sys getSecurityInfo(handle Handle, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION, owner **SID, group **SID, dacl **ACL, sacl **ACL, sd **SECURITY_DESCRIPTOR) (ret error) = advapi32.GetSecurityInfo
1129//sys SetSecurityInfo(handle Handle, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION, owner *SID, group *SID, dacl *ACL, sacl *ACL) (ret error) = advapi32.SetSecurityInfo
1130//sys getNamedSecurityInfo(objectName string, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION, owner **SID, group **SID, dacl **ACL, sacl **ACL, sd **SECURITY_DESCRIPTOR) (ret error) = advapi32.GetNamedSecurityInfoW
1131//sys SetNamedSecurityInfo(objectName string, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION, owner *SID, group *SID, dacl *ACL, sacl *ACL) (ret error) = advapi32.SetNamedSecurityInfoW
1132//sys SetKernelObjectSecurity(handle Handle, securityInformation SECURITY_INFORMATION, securityDescriptor *SECURITY_DESCRIPTOR) (err error) = advapi32.SetKernelObjectSecurity
1133
1134//sys buildSecurityDescriptor(owner *TRUSTEE, group *TRUSTEE, countAccessEntries uint32, accessEntries *EXPLICIT_ACCESS, countAuditEntries uint32, auditEntries *EXPLICIT_ACCESS, oldSecurityDescriptor *SECURITY_DESCRIPTOR, sizeNewSecurityDescriptor *uint32, newSecurityDescriptor **SECURITY_DESCRIPTOR) (ret error) = advapi32.BuildSecurityDescriptorW
1135//sys initializeSecurityDescriptor(absoluteSD *SECURITY_DESCRIPTOR, revision uint32) (err error) = advapi32.InitializeSecurityDescriptor
1136
1137//sys getSecurityDescriptorControl(sd *SECURITY_DESCRIPTOR, control *SECURITY_DESCRIPTOR_CONTROL, revision *uint32) (err error) = advapi32.GetSecurityDescriptorControl
1138//sys getSecurityDescriptorDacl(sd *SECURITY_DESCRIPTOR, daclPresent *bool, dacl **ACL, daclDefaulted *bool) (err error) = advapi32.GetSecurityDescriptorDacl
1139//sys getSecurityDescriptorSacl(sd *SECURITY_DESCRIPTOR, saclPresent *bool, sacl **ACL, saclDefaulted *bool) (err error) = advapi32.GetSecurityDescriptorSacl
1140//sys getSecurityDescriptorOwner(sd *SECURITY_DESCRIPTOR, owner **SID, ownerDefaulted *bool) (err error) = advapi32.GetSecurityDescriptorOwner
1141//sys getSecurityDescriptorGroup(sd *SECURITY_DESCRIPTOR, group **SID, groupDefaulted *bool) (err error) = advapi32.GetSecurityDescriptorGroup
1142//sys getSecurityDescriptorLength(sd *SECURITY_DESCRIPTOR) (len uint32) = advapi32.GetSecurityDescriptorLength
1143//sys getSecurityDescriptorRMControl(sd *SECURITY_DESCRIPTOR, rmControl *uint8) (ret error) [failretval!=0] = advapi32.GetSecurityDescriptorRMControl
1144//sys isValidSecurityDescriptor(sd *SECURITY_DESCRIPTOR) (isValid bool) = advapi32.IsValidSecurityDescriptor
1145
1146//sys setSecurityDescriptorControl(sd *SECURITY_DESCRIPTOR, controlBitsOfInterest SECURITY_DESCRIPTOR_CONTROL, controlBitsToSet SECURITY_DESCRIPTOR_CONTROL) (err error) = advapi32.SetSecurityDescriptorControl
1147//sys setSecurityDescriptorDacl(sd *SECURITY_DESCRIPTOR, daclPresent bool, dacl *ACL, daclDefaulted bool) (err error) = advapi32.SetSecurityDescriptorDacl
1148//sys setSecurityDescriptorSacl(sd *SECURITY_DESCRIPTOR, saclPresent bool, sacl *ACL, saclDefaulted bool) (err error) = advapi32.SetSecurityDescriptorSacl
1149//sys setSecurityDescriptorOwner(sd *SECURITY_DESCRIPTOR, owner *SID, ownerDefaulted bool) (err error) = advapi32.SetSecurityDescriptorOwner
1150//sys setSecurityDescriptorGroup(sd *SECURITY_DESCRIPTOR, group *SID, groupDefaulted bool) (err error) = advapi32.SetSecurityDescriptorGroup
1151//sys setSecurityDescriptorRMControl(sd *SECURITY_DESCRIPTOR, rmControl *uint8) = advapi32.SetSecurityDescriptorRMControl
1152
1153//sys convertStringSecurityDescriptorToSecurityDescriptor(str string, revision uint32, sd **SECURITY_DESCRIPTOR, size *uint32) (err error) = advapi32.ConvertStringSecurityDescriptorToSecurityDescriptorW
1154//sys convertSecurityDescriptorToStringSecurityDescriptor(sd *SECURITY_DESCRIPTOR, revision uint32, securityInformation SECURITY_INFORMATION, str **uint16, strLen *uint32) (err error) = advapi32.ConvertSecurityDescriptorToStringSecurityDescriptorW
1155
1156//sys makeAbsoluteSD(selfRelativeSD *SECURITY_DESCRIPTOR, absoluteSD *SECURITY_DESCRIPTOR, absoluteSDSize *uint32, dacl *ACL, daclSize *uint32, sacl *ACL, saclSize *uint32, owner *SID, ownerSize *uint32, group *SID, groupSize *uint32) (err error) = advapi32.MakeAbsoluteSD
1157//sys makeSelfRelativeSD(absoluteSD *SECURITY_DESCRIPTOR, selfRelativeSD *SECURITY_DESCRIPTOR, selfRelativeSDSize *uint32) (err error) = advapi32.MakeSelfRelativeSD
1158
1159//sys setEntriesInAcl(countExplicitEntries uint32, explicitEntries *EXPLICIT_ACCESS, oldACL *ACL, newACL **ACL) (ret error) = advapi32.SetEntriesInAclW
1160
1161// Control returns the security descriptor control bits.
1162func (sd *SECURITY_DESCRIPTOR) Control() (control SECURITY_DESCRIPTOR_CONTROL, revision uint32, err error) {
1163 err = getSecurityDescriptorControl(sd, &control, &revision)
1164 return
1165}
1166
1167// SetControl sets the security descriptor control bits.
1168func (sd *SECURITY_DESCRIPTOR) SetControl(controlBitsOfInterest SECURITY_DESCRIPTOR_CONTROL, controlBitsToSet SECURITY_DESCRIPTOR_CONTROL) error {
1169 return setSecurityDescriptorControl(sd, controlBitsOfInterest, controlBitsToSet)
1170}
1171
1172// RMControl returns the security descriptor resource manager control bits.
1173func (sd *SECURITY_DESCRIPTOR) RMControl() (control uint8, err error) {
1174 err = getSecurityDescriptorRMControl(sd, &control)
1175 return
1176}
1177
1178// SetRMControl sets the security descriptor resource manager control bits.
1179func (sd *SECURITY_DESCRIPTOR) SetRMControl(rmControl uint8) {
1180 setSecurityDescriptorRMControl(sd, &rmControl)
1181}
1182
1183// DACL returns the security descriptor DACL and whether it was defaulted. The dacl return value may be nil
1184// if a DACL exists but is an "empty DACL", meaning fully permissive. If the DACL does not exist, err returns
1185// ERROR_OBJECT_NOT_FOUND.
1186func (sd *SECURITY_DESCRIPTOR) DACL() (dacl *ACL, defaulted bool, err error) {
1187 var present bool
1188 err = getSecurityDescriptorDacl(sd, &present, &dacl, &defaulted)
1189 if !present {
1190 err = ERROR_OBJECT_NOT_FOUND
1191 }
1192 return
1193}
1194
1195// SetDACL sets the absolute security descriptor DACL.
1196func (absoluteSD *SECURITY_DESCRIPTOR) SetDACL(dacl *ACL, present, defaulted bool) error {
1197 return setSecurityDescriptorDacl(absoluteSD, present, dacl, defaulted)
1198}
1199
1200// SACL returns the security descriptor SACL and whether it was defaulted. The sacl return value may be nil
1201// if a SACL exists but is an "empty SACL", meaning fully permissive. If the SACL does not exist, err returns
1202// ERROR_OBJECT_NOT_FOUND.
1203func (sd *SECURITY_DESCRIPTOR) SACL() (sacl *ACL, defaulted bool, err error) {
1204 var present bool
1205 err = getSecurityDescriptorSacl(sd, &present, &sacl, &defaulted)
1206 if !present {
1207 err = ERROR_OBJECT_NOT_FOUND
1208 }
1209 return
1210}
1211
1212// SetSACL sets the absolute security descriptor SACL.
1213func (absoluteSD *SECURITY_DESCRIPTOR) SetSACL(sacl *ACL, present, defaulted bool) error {
1214 return setSecurityDescriptorSacl(absoluteSD, present, sacl, defaulted)
1215}
1216
1217// Owner returns the security descriptor owner and whether it was defaulted.
1218func (sd *SECURITY_DESCRIPTOR) Owner() (owner *SID, defaulted bool, err error) {
1219 err = getSecurityDescriptorOwner(sd, &owner, &defaulted)
1220 return
1221}
1222
1223// SetOwner sets the absolute security descriptor owner.
1224func (absoluteSD *SECURITY_DESCRIPTOR) SetOwner(owner *SID, defaulted bool) error {
1225 return setSecurityDescriptorOwner(absoluteSD, owner, defaulted)
1226}
1227
1228// Group returns the security descriptor group and whether it was defaulted.
1229func (sd *SECURITY_DESCRIPTOR) Group() (group *SID, defaulted bool, err error) {
1230 err = getSecurityDescriptorGroup(sd, &group, &defaulted)
1231 return
1232}
1233
1234// SetGroup sets the absolute security descriptor owner.
1235func (absoluteSD *SECURITY_DESCRIPTOR) SetGroup(group *SID, defaulted bool) error {
1236 return setSecurityDescriptorGroup(absoluteSD, group, defaulted)
1237}
1238
1239// Length returns the length of the security descriptor.
1240func (sd *SECURITY_DESCRIPTOR) Length() uint32 {
1241 return getSecurityDescriptorLength(sd)
1242}
1243
1244// IsValid returns whether the security descriptor is valid.
1245func (sd *SECURITY_DESCRIPTOR) IsValid() bool {
1246 return isValidSecurityDescriptor(sd)
1247}
1248
1249// String returns the SDDL form of the security descriptor, with a function signature that can be
1250// used with %v formatting directives.
1251func (sd *SECURITY_DESCRIPTOR) String() string {
1252 var sddl *uint16
1253 err := convertSecurityDescriptorToStringSecurityDescriptor(sd, 1, 0xff, &sddl, nil)
1254 if err != nil {
1255 return ""
1256 }
1257 defer LocalFree(Handle(unsafe.Pointer(sddl)))
1258 return UTF16PtrToString(sddl)
1259}
1260
1261// ToAbsolute converts a self-relative security descriptor into an absolute one.
1262func (selfRelativeSD *SECURITY_DESCRIPTOR) ToAbsolute() (absoluteSD *SECURITY_DESCRIPTOR, err error) {
1263 control, _, err := selfRelativeSD.Control()
1264 if err != nil {
1265 return
1266 }
1267 if control&SE_SELF_RELATIVE == 0 {
1268 err = ERROR_INVALID_PARAMETER
1269 return
1270 }
1271 var absoluteSDSize, daclSize, saclSize, ownerSize, groupSize uint32
1272 err = makeAbsoluteSD(selfRelativeSD, nil, &absoluteSDSize,
1273 nil, &daclSize, nil, &saclSize, nil, &ownerSize, nil, &groupSize)
1274 switch err {
1275 case ERROR_INSUFFICIENT_BUFFER:
1276 case nil:
1277 // makeAbsoluteSD is expected to fail, but it succeeds.
1278 return nil, ERROR_INTERNAL_ERROR
1279 default:
1280 return nil, err
1281 }
1282 if absoluteSDSize > 0 {
1283 absoluteSD = (*SECURITY_DESCRIPTOR)(unsafe.Pointer(&make([]byte, absoluteSDSize)[0]))
1284 }
1285 var (
1286 dacl *ACL
1287 sacl *ACL
1288 owner *SID
1289 group *SID
1290 )
1291 if daclSize > 0 {
1292 dacl = (*ACL)(unsafe.Pointer(&make([]byte, daclSize)[0]))
1293 }
1294 if saclSize > 0 {
1295 sacl = (*ACL)(unsafe.Pointer(&make([]byte, saclSize)[0]))
1296 }
1297 if ownerSize > 0 {
1298 owner = (*SID)(unsafe.Pointer(&make([]byte, ownerSize)[0]))
1299 }
1300 if groupSize > 0 {
1301 group = (*SID)(unsafe.Pointer(&make([]byte, groupSize)[0]))
1302 }
1303 err = makeAbsoluteSD(selfRelativeSD, absoluteSD, &absoluteSDSize,
1304 dacl, &daclSize, sacl, &saclSize, owner, &ownerSize, group, &groupSize)
1305 return
1306}
1307
1308// ToSelfRelative converts an absolute security descriptor into a self-relative one.
1309func (absoluteSD *SECURITY_DESCRIPTOR) ToSelfRelative() (selfRelativeSD *SECURITY_DESCRIPTOR, err error) {
1310 control, _, err := absoluteSD.Control()
1311 if err != nil {
1312 return
1313 }
1314 if control&SE_SELF_RELATIVE != 0 {
1315 err = ERROR_INVALID_PARAMETER
1316 return
1317 }
1318 var selfRelativeSDSize uint32
1319 err = makeSelfRelativeSD(absoluteSD, nil, &selfRelativeSDSize)
1320 switch err {
1321 case ERROR_INSUFFICIENT_BUFFER:
1322 case nil:
1323 // makeSelfRelativeSD is expected to fail, but it succeeds.
1324 return nil, ERROR_INTERNAL_ERROR
1325 default:
1326 return nil, err
1327 }
1328 if selfRelativeSDSize > 0 {
1329 selfRelativeSD = (*SECURITY_DESCRIPTOR)(unsafe.Pointer(&make([]byte, selfRelativeSDSize)[0]))
1330 }
1331 err = makeSelfRelativeSD(absoluteSD, selfRelativeSD, &selfRelativeSDSize)
1332 return
1333}
1334
1335func (selfRelativeSD *SECURITY_DESCRIPTOR) copySelfRelativeSecurityDescriptor() *SECURITY_DESCRIPTOR {
1336 sdLen := int(selfRelativeSD.Length())
1337 const min = int(unsafe.Sizeof(SECURITY_DESCRIPTOR{}))
1338 if sdLen < min {
1339 sdLen = min
1340 }
1341
1342 src := unsafe.Slice((*byte)(unsafe.Pointer(selfRelativeSD)), sdLen)
1343 // SECURITY_DESCRIPTOR has pointers in it, which means checkptr expects for it to
1344 // be aligned properly. When we're copying a Windows-allocated struct to a
1345 // Go-allocated one, make sure that the Go allocation is aligned to the
1346 // pointer size.
1347 const psize = int(unsafe.Sizeof(uintptr(0)))
1348 alloc := make([]uintptr, (sdLen+psize-1)/psize)
1349 dst := unsafe.Slice((*byte)(unsafe.Pointer(&alloc[0])), sdLen)
1350 copy(dst, src)
1351 return (*SECURITY_DESCRIPTOR)(unsafe.Pointer(&dst[0]))
1352}
1353
1354// SecurityDescriptorFromString converts an SDDL string describing a security descriptor into a
1355// self-relative security descriptor object allocated on the Go heap.
1356func SecurityDescriptorFromString(sddl string) (sd *SECURITY_DESCRIPTOR, err error) {
1357 var winHeapSD *SECURITY_DESCRIPTOR
1358 err = convertStringSecurityDescriptorToSecurityDescriptor(sddl, 1, &winHeapSD, nil)
1359 if err != nil {
1360 return
1361 }
1362 defer LocalFree(Handle(unsafe.Pointer(winHeapSD)))
1363 return winHeapSD.copySelfRelativeSecurityDescriptor(), nil
1364}
1365
1366// GetSecurityInfo queries the security information for a given handle and returns the self-relative security
1367// descriptor result on the Go heap.
1368func GetSecurityInfo(handle Handle, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION) (sd *SECURITY_DESCRIPTOR, err error) {
1369 var winHeapSD *SECURITY_DESCRIPTOR
1370 err = getSecurityInfo(handle, objectType, securityInformation, nil, nil, nil, nil, &winHeapSD)
1371 if err != nil {
1372 return
1373 }
1374 defer LocalFree(Handle(unsafe.Pointer(winHeapSD)))
1375 return winHeapSD.copySelfRelativeSecurityDescriptor(), nil
1376}
1377
1378// GetNamedSecurityInfo queries the security information for a given named object and returns the self-relative security
1379// descriptor result on the Go heap.
1380func GetNamedSecurityInfo(objectName string, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION) (sd *SECURITY_DESCRIPTOR, err error) {
1381 var winHeapSD *SECURITY_DESCRIPTOR
1382 err = getNamedSecurityInfo(objectName, objectType, securityInformation, nil, nil, nil, nil, &winHeapSD)
1383 if err != nil {
1384 return
1385 }
1386 defer LocalFree(Handle(unsafe.Pointer(winHeapSD)))
1387 return winHeapSD.copySelfRelativeSecurityDescriptor(), nil
1388}
1389
1390// BuildSecurityDescriptor makes a new security descriptor using the input trustees, explicit access lists, and
1391// prior security descriptor to be merged, any of which can be nil, returning the self-relative security descriptor
1392// result on the Go heap.
1393func BuildSecurityDescriptor(owner *TRUSTEE, group *TRUSTEE, accessEntries []EXPLICIT_ACCESS, auditEntries []EXPLICIT_ACCESS, mergedSecurityDescriptor *SECURITY_DESCRIPTOR) (sd *SECURITY_DESCRIPTOR, err error) {
1394 var winHeapSD *SECURITY_DESCRIPTOR
1395 var winHeapSDSize uint32
1396 var firstAccessEntry *EXPLICIT_ACCESS
1397 if len(accessEntries) > 0 {
1398 firstAccessEntry = &accessEntries[0]
1399 }
1400 var firstAuditEntry *EXPLICIT_ACCESS
1401 if len(auditEntries) > 0 {
1402 firstAuditEntry = &auditEntries[0]
1403 }
1404 err = buildSecurityDescriptor(owner, group, uint32(len(accessEntries)), firstAccessEntry, uint32(len(auditEntries)), firstAuditEntry, mergedSecurityDescriptor, &winHeapSDSize, &winHeapSD)
1405 if err != nil {
1406 return
1407 }
1408 defer LocalFree(Handle(unsafe.Pointer(winHeapSD)))
1409 return winHeapSD.copySelfRelativeSecurityDescriptor(), nil
1410}
1411
1412// NewSecurityDescriptor creates and initializes a new absolute security descriptor.
1413func NewSecurityDescriptor() (absoluteSD *SECURITY_DESCRIPTOR, err error) {
1414 absoluteSD = &SECURITY_DESCRIPTOR{}
1415 err = initializeSecurityDescriptor(absoluteSD, 1)
1416 return
1417}
1418
1419// ACLFromEntries returns a new ACL on the Go heap containing a list of explicit entries as well as those of another ACL.
1420// Both explicitEntries and mergedACL are optional and can be nil.
1421func ACLFromEntries(explicitEntries []EXPLICIT_ACCESS, mergedACL *ACL) (acl *ACL, err error) {
1422 var firstExplicitEntry *EXPLICIT_ACCESS
1423 if len(explicitEntries) > 0 {
1424 firstExplicitEntry = &explicitEntries[0]
1425 }
1426 var winHeapACL *ACL
1427 err = setEntriesInAcl(uint32(len(explicitEntries)), firstExplicitEntry, mergedACL, &winHeapACL)
1428 if err != nil {
1429 return
1430 }
1431 defer LocalFree(Handle(unsafe.Pointer(winHeapACL)))
1432 aclBytes := make([]byte, winHeapACL.aclSize)
1433 copy(aclBytes, (*[(1 << 31) - 1]byte)(unsafe.Pointer(winHeapACL))[:len(aclBytes):len(aclBytes)])
1434 return (*ACL)(unsafe.Pointer(&aclBytes[0])), nil
1435}
diff --git a/vendor/golang.org/x/sys/windows/service.go b/vendor/golang.org/x/sys/windows/service.go
deleted file mode 100644
index a9dc630..0000000
--- a/vendor/golang.org/x/sys/windows/service.go
+++ /dev/null
@@ -1,257 +0,0 @@
1// Copyright 2012 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//go:build windows
6
7package windows
8
9const (
10 SC_MANAGER_CONNECT = 1
11 SC_MANAGER_CREATE_SERVICE = 2
12 SC_MANAGER_ENUMERATE_SERVICE = 4
13 SC_MANAGER_LOCK = 8
14 SC_MANAGER_QUERY_LOCK_STATUS = 16
15 SC_MANAGER_MODIFY_BOOT_CONFIG = 32
16 SC_MANAGER_ALL_ACCESS = 0xf003f
17)
18
19const (
20 SERVICE_KERNEL_DRIVER = 1
21 SERVICE_FILE_SYSTEM_DRIVER = 2
22 SERVICE_ADAPTER = 4
23 SERVICE_RECOGNIZER_DRIVER = 8
24 SERVICE_WIN32_OWN_PROCESS = 16
25 SERVICE_WIN32_SHARE_PROCESS = 32
26 SERVICE_WIN32 = SERVICE_WIN32_OWN_PROCESS | SERVICE_WIN32_SHARE_PROCESS
27 SERVICE_INTERACTIVE_PROCESS = 256
28 SERVICE_DRIVER = SERVICE_KERNEL_DRIVER | SERVICE_FILE_SYSTEM_DRIVER | SERVICE_RECOGNIZER_DRIVER
29 SERVICE_TYPE_ALL = SERVICE_WIN32 | SERVICE_ADAPTER | SERVICE_DRIVER | SERVICE_INTERACTIVE_PROCESS
30
31 SERVICE_BOOT_START = 0
32 SERVICE_SYSTEM_START = 1
33 SERVICE_AUTO_START = 2
34 SERVICE_DEMAND_START = 3
35 SERVICE_DISABLED = 4
36
37 SERVICE_ERROR_IGNORE = 0
38 SERVICE_ERROR_NORMAL = 1
39 SERVICE_ERROR_SEVERE = 2
40 SERVICE_ERROR_CRITICAL = 3
41
42 SC_STATUS_PROCESS_INFO = 0
43
44 SC_ACTION_NONE = 0
45 SC_ACTION_RESTART = 1
46 SC_ACTION_REBOOT = 2
47 SC_ACTION_RUN_COMMAND = 3
48
49 SERVICE_STOPPED = 1
50 SERVICE_START_PENDING = 2
51 SERVICE_STOP_PENDING = 3
52 SERVICE_RUNNING = 4
53 SERVICE_CONTINUE_PENDING = 5
54 SERVICE_PAUSE_PENDING = 6
55 SERVICE_PAUSED = 7
56 SERVICE_NO_CHANGE = 0xffffffff
57
58 SERVICE_ACCEPT_STOP = 1
59 SERVICE_ACCEPT_PAUSE_CONTINUE = 2
60 SERVICE_ACCEPT_SHUTDOWN = 4
61 SERVICE_ACCEPT_PARAMCHANGE = 8
62 SERVICE_ACCEPT_NETBINDCHANGE = 16
63 SERVICE_ACCEPT_HARDWAREPROFILECHANGE = 32
64 SERVICE_ACCEPT_POWEREVENT = 64
65 SERVICE_ACCEPT_SESSIONCHANGE = 128
66 SERVICE_ACCEPT_PRESHUTDOWN = 256
67
68 SERVICE_CONTROL_STOP = 1
69 SERVICE_CONTROL_PAUSE = 2
70 SERVICE_CONTROL_CONTINUE = 3
71 SERVICE_CONTROL_INTERROGATE = 4
72 SERVICE_CONTROL_SHUTDOWN = 5
73 SERVICE_CONTROL_PARAMCHANGE = 6
74 SERVICE_CONTROL_NETBINDADD = 7
75 SERVICE_CONTROL_NETBINDREMOVE = 8
76 SERVICE_CONTROL_NETBINDENABLE = 9
77 SERVICE_CONTROL_NETBINDDISABLE = 10
78 SERVICE_CONTROL_DEVICEEVENT = 11
79 SERVICE_CONTROL_HARDWAREPROFILECHANGE = 12
80 SERVICE_CONTROL_POWEREVENT = 13
81 SERVICE_CONTROL_SESSIONCHANGE = 14
82 SERVICE_CONTROL_PRESHUTDOWN = 15
83
84 SERVICE_ACTIVE = 1
85 SERVICE_INACTIVE = 2
86 SERVICE_STATE_ALL = 3
87
88 SERVICE_QUERY_CONFIG = 1
89 SERVICE_CHANGE_CONFIG = 2
90 SERVICE_QUERY_STATUS = 4
91 SERVICE_ENUMERATE_DEPENDENTS = 8
92 SERVICE_START = 16
93 SERVICE_STOP = 32
94 SERVICE_PAUSE_CONTINUE = 64
95 SERVICE_INTERROGATE = 128
96 SERVICE_USER_DEFINED_CONTROL = 256
97 SERVICE_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | SERVICE_QUERY_CONFIG | SERVICE_CHANGE_CONFIG | SERVICE_QUERY_STATUS | SERVICE_ENUMERATE_DEPENDENTS | SERVICE_START | SERVICE_STOP | SERVICE_PAUSE_CONTINUE | SERVICE_INTERROGATE | SERVICE_USER_DEFINED_CONTROL
98
99 SERVICE_RUNS_IN_SYSTEM_PROCESS = 1
100
101 SERVICE_CONFIG_DESCRIPTION = 1
102 SERVICE_CONFIG_FAILURE_ACTIONS = 2
103 SERVICE_CONFIG_DELAYED_AUTO_START_INFO = 3
104 SERVICE_CONFIG_FAILURE_ACTIONS_FLAG = 4
105 SERVICE_CONFIG_SERVICE_SID_INFO = 5
106 SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO = 6
107 SERVICE_CONFIG_PRESHUTDOWN_INFO = 7
108 SERVICE_CONFIG_TRIGGER_INFO = 8
109 SERVICE_CONFIG_PREFERRED_NODE = 9
110 SERVICE_CONFIG_LAUNCH_PROTECTED = 12
111
112 SERVICE_SID_TYPE_NONE = 0
113 SERVICE_SID_TYPE_UNRESTRICTED = 1
114 SERVICE_SID_TYPE_RESTRICTED = 2 | SERVICE_SID_TYPE_UNRESTRICTED
115
116 SC_ENUM_PROCESS_INFO = 0
117
118 SERVICE_NOTIFY_STATUS_CHANGE = 2
119 SERVICE_NOTIFY_STOPPED = 0x00000001
120 SERVICE_NOTIFY_START_PENDING = 0x00000002
121 SERVICE_NOTIFY_STOP_PENDING = 0x00000004
122 SERVICE_NOTIFY_RUNNING = 0x00000008
123 SERVICE_NOTIFY_CONTINUE_PENDING = 0x00000010
124 SERVICE_NOTIFY_PAUSE_PENDING = 0x00000020
125 SERVICE_NOTIFY_PAUSED = 0x00000040
126 SERVICE_NOTIFY_CREATED = 0x00000080
127 SERVICE_NOTIFY_DELETED = 0x00000100
128 SERVICE_NOTIFY_DELETE_PENDING = 0x00000200
129
130 SC_EVENT_DATABASE_CHANGE = 0
131 SC_EVENT_PROPERTY_CHANGE = 1
132 SC_EVENT_STATUS_CHANGE = 2
133
134 SERVICE_START_REASON_DEMAND = 0x00000001
135 SERVICE_START_REASON_AUTO = 0x00000002
136 SERVICE_START_REASON_TRIGGER = 0x00000004
137 SERVICE_START_REASON_RESTART_ON_FAILURE = 0x00000008
138 SERVICE_START_REASON_DELAYEDAUTO = 0x00000010
139
140 SERVICE_DYNAMIC_INFORMATION_LEVEL_START_REASON = 1
141)
142
143type ENUM_SERVICE_STATUS struct {
144 ServiceName *uint16
145 DisplayName *uint16
146 ServiceStatus SERVICE_STATUS
147}
148
149type SERVICE_STATUS struct {
150 ServiceType uint32
151 CurrentState uint32
152 ControlsAccepted uint32
153 Win32ExitCode uint32
154 ServiceSpecificExitCode uint32
155 CheckPoint uint32
156 WaitHint uint32
157}
158
159type SERVICE_TABLE_ENTRY struct {
160 ServiceName *uint16
161 ServiceProc uintptr
162}
163
164type QUERY_SERVICE_CONFIG struct {
165 ServiceType uint32
166 StartType uint32
167 ErrorControl uint32
168 BinaryPathName *uint16
169 LoadOrderGroup *uint16
170 TagId uint32
171 Dependencies *uint16
172 ServiceStartName *uint16
173 DisplayName *uint16
174}
175
176type SERVICE_DESCRIPTION struct {
177 Description *uint16
178}
179
180type SERVICE_DELAYED_AUTO_START_INFO struct {
181 IsDelayedAutoStartUp uint32
182}
183
184type SERVICE_STATUS_PROCESS struct {
185 ServiceType uint32
186 CurrentState uint32
187 ControlsAccepted uint32
188 Win32ExitCode uint32
189 ServiceSpecificExitCode uint32
190 CheckPoint uint32
191 WaitHint uint32
192 ProcessId uint32
193 ServiceFlags uint32
194}
195
196type ENUM_SERVICE_STATUS_PROCESS struct {
197 ServiceName *uint16
198 DisplayName *uint16
199 ServiceStatusProcess SERVICE_STATUS_PROCESS
200}
201
202type SERVICE_NOTIFY struct {
203 Version uint32
204 NotifyCallback uintptr
205 Context uintptr
206 NotificationStatus uint32
207 ServiceStatus SERVICE_STATUS_PROCESS
208 NotificationTriggered uint32
209 ServiceNames *uint16
210}
211
212type SERVICE_FAILURE_ACTIONS struct {
213 ResetPeriod uint32
214 RebootMsg *uint16
215 Command *uint16
216 ActionsCount uint32
217 Actions *SC_ACTION
218}
219
220type SERVICE_FAILURE_ACTIONS_FLAG struct {
221 FailureActionsOnNonCrashFailures int32
222}
223
224type SC_ACTION struct {
225 Type uint32
226 Delay uint32
227}
228
229type QUERY_SERVICE_LOCK_STATUS struct {
230 IsLocked uint32
231 LockOwner *uint16
232 LockDuration uint32
233}
234
235//sys OpenSCManager(machineName *uint16, databaseName *uint16, access uint32) (handle Handle, err error) [failretval==0] = advapi32.OpenSCManagerW
236//sys CloseServiceHandle(handle Handle) (err error) = advapi32.CloseServiceHandle
237//sys CreateService(mgr Handle, serviceName *uint16, displayName *uint16, access uint32, srvType uint32, startType uint32, errCtl uint32, pathName *uint16, loadOrderGroup *uint16, tagId *uint32, dependencies *uint16, serviceStartName *uint16, password *uint16) (handle Handle, err error) [failretval==0] = advapi32.CreateServiceW
238//sys OpenService(mgr Handle, serviceName *uint16, access uint32) (handle Handle, err error) [failretval==0] = advapi32.OpenServiceW
239//sys DeleteService(service Handle) (err error) = advapi32.DeleteService
240//sys StartService(service Handle, numArgs uint32, argVectors **uint16) (err error) = advapi32.StartServiceW
241//sys QueryServiceStatus(service Handle, status *SERVICE_STATUS) (err error) = advapi32.QueryServiceStatus
242//sys QueryServiceLockStatus(mgr Handle, lockStatus *QUERY_SERVICE_LOCK_STATUS, bufSize uint32, bytesNeeded *uint32) (err error) = advapi32.QueryServiceLockStatusW
243//sys ControlService(service Handle, control uint32, status *SERVICE_STATUS) (err error) = advapi32.ControlService
244//sys StartServiceCtrlDispatcher(serviceTable *SERVICE_TABLE_ENTRY) (err error) = advapi32.StartServiceCtrlDispatcherW
245//sys SetServiceStatus(service Handle, serviceStatus *SERVICE_STATUS) (err error) = advapi32.SetServiceStatus
246//sys ChangeServiceConfig(service Handle, serviceType uint32, startType uint32, errorControl uint32, binaryPathName *uint16, loadOrderGroup *uint16, tagId *uint32, dependencies *uint16, serviceStartName *uint16, password *uint16, displayName *uint16) (err error) = advapi32.ChangeServiceConfigW
247//sys QueryServiceConfig(service Handle, serviceConfig *QUERY_SERVICE_CONFIG, bufSize uint32, bytesNeeded *uint32) (err error) = advapi32.QueryServiceConfigW
248//sys ChangeServiceConfig2(service Handle, infoLevel uint32, info *byte) (err error) = advapi32.ChangeServiceConfig2W
249//sys QueryServiceConfig2(service Handle, infoLevel uint32, buff *byte, buffSize uint32, bytesNeeded *uint32) (err error) = advapi32.QueryServiceConfig2W
250//sys EnumServicesStatusEx(mgr Handle, infoLevel uint32, serviceType uint32, serviceState uint32, services *byte, bufSize uint32, bytesNeeded *uint32, servicesReturned *uint32, resumeHandle *uint32, groupName *uint16) (err error) = advapi32.EnumServicesStatusExW
251//sys QueryServiceStatusEx(service Handle, infoLevel uint32, buff *byte, buffSize uint32, bytesNeeded *uint32) (err error) = advapi32.QueryServiceStatusEx
252//sys NotifyServiceStatusChange(service Handle, notifyMask uint32, notifier *SERVICE_NOTIFY) (ret error) = advapi32.NotifyServiceStatusChangeW
253//sys SubscribeServiceChangeNotifications(service Handle, eventType uint32, callback uintptr, callbackCtx uintptr, subscription *uintptr) (ret error) = sechost.SubscribeServiceChangeNotifications?
254//sys UnsubscribeServiceChangeNotifications(subscription uintptr) = sechost.UnsubscribeServiceChangeNotifications?
255//sys RegisterServiceCtrlHandlerEx(serviceName *uint16, handlerProc uintptr, context uintptr) (handle Handle, err error) = advapi32.RegisterServiceCtrlHandlerExW
256//sys QueryServiceDynamicInformation(service Handle, infoLevel uint32, dynamicInfo unsafe.Pointer) (err error) = advapi32.QueryServiceDynamicInformation?
257//sys EnumDependentServices(service Handle, activityState uint32, services *ENUM_SERVICE_STATUS, buffSize uint32, bytesNeeded *uint32, servicesReturned *uint32) (err error) = advapi32.EnumDependentServicesW
diff --git a/vendor/golang.org/x/sys/windows/setupapi_windows.go b/vendor/golang.org/x/sys/windows/setupapi_windows.go
deleted file mode 100644
index f812648..0000000
--- a/vendor/golang.org/x/sys/windows/setupapi_windows.go
+++ /dev/null
@@ -1,1425 +0,0 @@
1// Copyright 2021 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package windows
6
7import (
8 "encoding/binary"
9 "errors"
10 "fmt"
11 "runtime"
12 "strings"
13 "syscall"
14 "unsafe"
15)
16
17// This file contains functions that wrap SetupAPI.dll and CfgMgr32.dll,
18// core system functions for managing hardware devices, drivers, and the PnP tree.
19// Information about these APIs can be found at:
20// https://docs.microsoft.com/en-us/windows-hardware/drivers/install/setupapi
21// https://docs.microsoft.com/en-us/windows/win32/devinst/cfgmgr32-
22
23const (
24 ERROR_EXPECTED_SECTION_NAME Errno = 0x20000000 | 0xC0000000 | 0
25 ERROR_BAD_SECTION_NAME_LINE Errno = 0x20000000 | 0xC0000000 | 1
26 ERROR_SECTION_NAME_TOO_LONG Errno = 0x20000000 | 0xC0000000 | 2
27 ERROR_GENERAL_SYNTAX Errno = 0x20000000 | 0xC0000000 | 3
28 ERROR_WRONG_INF_STYLE Errno = 0x20000000 | 0xC0000000 | 0x100
29 ERROR_SECTION_NOT_FOUND Errno = 0x20000000 | 0xC0000000 | 0x101
30 ERROR_LINE_NOT_FOUND Errno = 0x20000000 | 0xC0000000 | 0x102
31 ERROR_NO_BACKUP Errno = 0x20000000 | 0xC0000000 | 0x103
32 ERROR_NO_ASSOCIATED_CLASS Errno = 0x20000000 | 0xC0000000 | 0x200
33 ERROR_CLASS_MISMATCH Errno = 0x20000000 | 0xC0000000 | 0x201
34 ERROR_DUPLICATE_FOUND Errno = 0x20000000 | 0xC0000000 | 0x202
35 ERROR_NO_DRIVER_SELECTED Errno = 0x20000000 | 0xC0000000 | 0x203
36 ERROR_KEY_DOES_NOT_EXIST Errno = 0x20000000 | 0xC0000000 | 0x204
37 ERROR_INVALID_DEVINST_NAME Errno = 0x20000000 | 0xC0000000 | 0x205
38 ERROR_INVALID_CLASS Errno = 0x20000000 | 0xC0000000 | 0x206
39 ERROR_DEVINST_ALREADY_EXISTS Errno = 0x20000000 | 0xC0000000 | 0x207
40 ERROR_DEVINFO_NOT_REGISTERED Errno = 0x20000000 | 0xC0000000 | 0x208
41 ERROR_INVALID_REG_PROPERTY Errno = 0x20000000 | 0xC0000000 | 0x209
42 ERROR_NO_INF Errno = 0x20000000 | 0xC0000000 | 0x20A
43 ERROR_NO_SUCH_DEVINST Errno = 0x20000000 | 0xC0000000 | 0x20B
44 ERROR_CANT_LOAD_CLASS_ICON Errno = 0x20000000 | 0xC0000000 | 0x20C
45 ERROR_INVALID_CLASS_INSTALLER Errno = 0x20000000 | 0xC0000000 | 0x20D
46 ERROR_DI_DO_DEFAULT Errno = 0x20000000 | 0xC0000000 | 0x20E
47 ERROR_DI_NOFILECOPY Errno = 0x20000000 | 0xC0000000 | 0x20F
48 ERROR_INVALID_HWPROFILE Errno = 0x20000000 | 0xC0000000 | 0x210
49 ERROR_NO_DEVICE_SELECTED Errno = 0x20000000 | 0xC0000000 | 0x211
50 ERROR_DEVINFO_LIST_LOCKED Errno = 0x20000000 | 0xC0000000 | 0x212
51 ERROR_DEVINFO_DATA_LOCKED Errno = 0x20000000 | 0xC0000000 | 0x213
52 ERROR_DI_BAD_PATH Errno = 0x20000000 | 0xC0000000 | 0x214
53 ERROR_NO_CLASSINSTALL_PARAMS Errno = 0x20000000 | 0xC0000000 | 0x215
54 ERROR_FILEQUEUE_LOCKED Errno = 0x20000000 | 0xC0000000 | 0x216
55 ERROR_BAD_SERVICE_INSTALLSECT Errno = 0x20000000 | 0xC0000000 | 0x217
56 ERROR_NO_CLASS_DRIVER_LIST Errno = 0x20000000 | 0xC0000000 | 0x218
57 ERROR_NO_ASSOCIATED_SERVICE Errno = 0x20000000 | 0xC0000000 | 0x219
58 ERROR_NO_DEFAULT_DEVICE_INTERFACE Errno = 0x20000000 | 0xC0000000 | 0x21A
59 ERROR_DEVICE_INTERFACE_ACTIVE Errno = 0x20000000 | 0xC0000000 | 0x21B
60 ERROR_DEVICE_INTERFACE_REMOVED Errno = 0x20000000 | 0xC0000000 | 0x21C
61 ERROR_BAD_INTERFACE_INSTALLSECT Errno = 0x20000000 | 0xC0000000 | 0x21D
62 ERROR_NO_SUCH_INTERFACE_CLASS Errno = 0x20000000 | 0xC0000000 | 0x21E
63 ERROR_INVALID_REFERENCE_STRING Errno = 0x20000000 | 0xC0000000 | 0x21F
64 ERROR_INVALID_MACHINENAME Errno = 0x20000000 | 0xC0000000 | 0x220
65 ERROR_REMOTE_COMM_FAILURE Errno = 0x20000000 | 0xC0000000 | 0x221
66 ERROR_MACHINE_UNAVAILABLE Errno = 0x20000000 | 0xC0000000 | 0x222
67 ERROR_NO_CONFIGMGR_SERVICES Errno = 0x20000000 | 0xC0000000 | 0x223
68 ERROR_INVALID_PROPPAGE_PROVIDER Errno = 0x20000000 | 0xC0000000 | 0x224
69 ERROR_NO_SUCH_DEVICE_INTERFACE Errno = 0x20000000 | 0xC0000000 | 0x225
70 ERROR_DI_POSTPROCESSING_REQUIRED Errno = 0x20000000 | 0xC0000000 | 0x226
71 ERROR_INVALID_COINSTALLER Errno = 0x20000000 | 0xC0000000 | 0x227
72 ERROR_NO_COMPAT_DRIVERS Errno = 0x20000000 | 0xC0000000 | 0x228
73 ERROR_NO_DEVICE_ICON Errno = 0x20000000 | 0xC0000000 | 0x229
74 ERROR_INVALID_INF_LOGCONFIG Errno = 0x20000000 | 0xC0000000 | 0x22A
75 ERROR_DI_DONT_INSTALL Errno = 0x20000000 | 0xC0000000 | 0x22B
76 ERROR_INVALID_FILTER_DRIVER Errno = 0x20000000 | 0xC0000000 | 0x22C
77 ERROR_NON_WINDOWS_NT_DRIVER Errno = 0x20000000 | 0xC0000000 | 0x22D
78 ERROR_NON_WINDOWS_DRIVER Errno = 0x20000000 | 0xC0000000 | 0x22E
79 ERROR_NO_CATALOG_FOR_OEM_INF Errno = 0x20000000 | 0xC0000000 | 0x22F
80 ERROR_DEVINSTALL_QUEUE_NONNATIVE Errno = 0x20000000 | 0xC0000000 | 0x230
81 ERROR_NOT_DISABLEABLE Errno = 0x20000000 | 0xC0000000 | 0x231
82 ERROR_CANT_REMOVE_DEVINST Errno = 0x20000000 | 0xC0000000 | 0x232
83 ERROR_INVALID_TARGET Errno = 0x20000000 | 0xC0000000 | 0x233
84 ERROR_DRIVER_NONNATIVE Errno = 0x20000000 | 0xC0000000 | 0x234
85 ERROR_IN_WOW64 Errno = 0x20000000 | 0xC0000000 | 0x235
86 ERROR_SET_SYSTEM_RESTORE_POINT Errno = 0x20000000 | 0xC0000000 | 0x236
87 ERROR_SCE_DISABLED Errno = 0x20000000 | 0xC0000000 | 0x238
88 ERROR_UNKNOWN_EXCEPTION Errno = 0x20000000 | 0xC0000000 | 0x239
89 ERROR_PNP_REGISTRY_ERROR Errno = 0x20000000 | 0xC0000000 | 0x23A
90 ERROR_REMOTE_REQUEST_UNSUPPORTED Errno = 0x20000000 | 0xC0000000 | 0x23B
91 ERROR_NOT_AN_INSTALLED_OEM_INF Errno = 0x20000000 | 0xC0000000 | 0x23C
92 ERROR_INF_IN_USE_BY_DEVICES Errno = 0x20000000 | 0xC0000000 | 0x23D
93 ERROR_DI_FUNCTION_OBSOLETE Errno = 0x20000000 | 0xC0000000 | 0x23E
94 ERROR_NO_AUTHENTICODE_CATALOG Errno = 0x20000000 | 0xC0000000 | 0x23F
95 ERROR_AUTHENTICODE_DISALLOWED Errno = 0x20000000 | 0xC0000000 | 0x240
96 ERROR_AUTHENTICODE_TRUSTED_PUBLISHER Errno = 0x20000000 | 0xC0000000 | 0x241
97 ERROR_AUTHENTICODE_TRUST_NOT_ESTABLISHED Errno = 0x20000000 | 0xC0000000 | 0x242
98 ERROR_AUTHENTICODE_PUBLISHER_NOT_TRUSTED Errno = 0x20000000 | 0xC0000000 | 0x243
99 ERROR_SIGNATURE_OSATTRIBUTE_MISMATCH Errno = 0x20000000 | 0xC0000000 | 0x244
100 ERROR_ONLY_VALIDATE_VIA_AUTHENTICODE Errno = 0x20000000 | 0xC0000000 | 0x245
101 ERROR_DEVICE_INSTALLER_NOT_READY Errno = 0x20000000 | 0xC0000000 | 0x246
102 ERROR_DRIVER_STORE_ADD_FAILED Errno = 0x20000000 | 0xC0000000 | 0x247
103 ERROR_DEVICE_INSTALL_BLOCKED Errno = 0x20000000 | 0xC0000000 | 0x248
104 ERROR_DRIVER_INSTALL_BLOCKED Errno = 0x20000000 | 0xC0000000 | 0x249
105 ERROR_WRONG_INF_TYPE Errno = 0x20000000 | 0xC0000000 | 0x24A
106 ERROR_FILE_HASH_NOT_IN_CATALOG Errno = 0x20000000 | 0xC0000000 | 0x24B
107 ERROR_DRIVER_STORE_DELETE_FAILED Errno = 0x20000000 | 0xC0000000 | 0x24C
108 ERROR_UNRECOVERABLE_STACK_OVERFLOW Errno = 0x20000000 | 0xC0000000 | 0x300
109 EXCEPTION_SPAPI_UNRECOVERABLE_STACK_OVERFLOW Errno = ERROR_UNRECOVERABLE_STACK_OVERFLOW
110 ERROR_NO_DEFAULT_INTERFACE_DEVICE Errno = ERROR_NO_DEFAULT_DEVICE_INTERFACE
111 ERROR_INTERFACE_DEVICE_ACTIVE Errno = ERROR_DEVICE_INTERFACE_ACTIVE
112 ERROR_INTERFACE_DEVICE_REMOVED Errno = ERROR_DEVICE_INTERFACE_REMOVED
113 ERROR_NO_SUCH_INTERFACE_DEVICE Errno = ERROR_NO_SUCH_DEVICE_INTERFACE
114)
115
116const (
117 MAX_DEVICE_ID_LEN = 200
118 MAX_DEVNODE_ID_LEN = MAX_DEVICE_ID_LEN
119 MAX_GUID_STRING_LEN = 39 // 38 chars + terminator null
120 MAX_CLASS_NAME_LEN = 32
121 MAX_PROFILE_LEN = 80
122 MAX_CONFIG_VALUE = 9999
123 MAX_INSTANCE_VALUE = 9999
124 CONFIGMG_VERSION = 0x0400
125)
126
127// Maximum string length constants
128const (
129 LINE_LEN = 256 // Windows 9x-compatible maximum for displayable strings coming from a device INF.
130 MAX_INF_STRING_LENGTH = 4096 // Actual maximum size of an INF string (including string substitutions).
131 MAX_INF_SECTION_NAME_LENGTH = 255 // For Windows 9x compatibility, INF section names should be constrained to 32 characters.
132 MAX_TITLE_LEN = 60
133 MAX_INSTRUCTION_LEN = 256
134 MAX_LABEL_LEN = 30
135 MAX_SERVICE_NAME_LEN = 256
136 MAX_SUBTITLE_LEN = 256
137)
138
139const (
140 // SP_MAX_MACHINENAME_LENGTH defines maximum length of a machine name in the format expected by ConfigMgr32 CM_Connect_Machine (i.e., "\\\\MachineName\0").
141 SP_MAX_MACHINENAME_LENGTH = MAX_PATH + 3
142)
143
144// HSPFILEQ is type for setup file queue
145type HSPFILEQ uintptr
146
147// DevInfo holds reference to device information set
148type DevInfo Handle
149
150// DEVINST is a handle usually recognized by cfgmgr32 APIs
151type DEVINST uint32
152
153// DevInfoData is a device information structure (references a device instance that is a member of a device information set)
154type DevInfoData struct {
155 size uint32
156 ClassGUID GUID
157 DevInst DEVINST
158 _ uintptr
159}
160
161// DevInfoListDetailData is a structure for detailed information on a device information set (used for SetupDiGetDeviceInfoListDetail which supersedes the functionality of SetupDiGetDeviceInfoListClass).
162type DevInfoListDetailData struct {
163 size uint32 // Use unsafeSizeOf method
164 ClassGUID GUID
165 RemoteMachineHandle Handle
166 remoteMachineName [SP_MAX_MACHINENAME_LENGTH]uint16
167}
168
169func (*DevInfoListDetailData) unsafeSizeOf() uint32 {
170 if unsafe.Sizeof(uintptr(0)) == 4 {
171 // Windows declares this with pshpack1.h
172 return uint32(unsafe.Offsetof(DevInfoListDetailData{}.remoteMachineName) + unsafe.Sizeof(DevInfoListDetailData{}.remoteMachineName))
173 }
174 return uint32(unsafe.Sizeof(DevInfoListDetailData{}))
175}
176
177func (data *DevInfoListDetailData) RemoteMachineName() string {
178 return UTF16ToString(data.remoteMachineName[:])
179}
180
181func (data *DevInfoListDetailData) SetRemoteMachineName(remoteMachineName string) error {
182 str, err := UTF16FromString(remoteMachineName)
183 if err != nil {
184 return err
185 }
186 copy(data.remoteMachineName[:], str)
187 return nil
188}
189
190// DI_FUNCTION is function type for device installer
191type DI_FUNCTION uint32
192
193const (
194 DIF_SELECTDEVICE DI_FUNCTION = 0x00000001
195 DIF_INSTALLDEVICE DI_FUNCTION = 0x00000002
196 DIF_ASSIGNRESOURCES DI_FUNCTION = 0x00000003
197 DIF_PROPERTIES DI_FUNCTION = 0x00000004
198 DIF_REMOVE DI_FUNCTION = 0x00000005
199 DIF_FIRSTTIMESETUP DI_FUNCTION = 0x00000006
200 DIF_FOUNDDEVICE DI_FUNCTION = 0x00000007
201 DIF_SELECTCLASSDRIVERS DI_FUNCTION = 0x00000008
202 DIF_VALIDATECLASSDRIVERS DI_FUNCTION = 0x00000009
203 DIF_INSTALLCLASSDRIVERS DI_FUNCTION = 0x0000000A
204 DIF_CALCDISKSPACE DI_FUNCTION = 0x0000000B
205 DIF_DESTROYPRIVATEDATA DI_FUNCTION = 0x0000000C
206 DIF_VALIDATEDRIVER DI_FUNCTION = 0x0000000D
207 DIF_DETECT DI_FUNCTION = 0x0000000F
208 DIF_INSTALLWIZARD DI_FUNCTION = 0x00000010
209 DIF_DESTROYWIZARDDATA DI_FUNCTION = 0x00000011
210 DIF_PROPERTYCHANGE DI_FUNCTION = 0x00000012
211 DIF_ENABLECLASS DI_FUNCTION = 0x00000013
212 DIF_DETECTVERIFY DI_FUNCTION = 0x00000014
213 DIF_INSTALLDEVICEFILES DI_FUNCTION = 0x00000015
214 DIF_UNREMOVE DI_FUNCTION = 0x00000016
215 DIF_SELECTBESTCOMPATDRV DI_FUNCTION = 0x00000017
216 DIF_ALLOW_INSTALL DI_FUNCTION = 0x00000018
217 DIF_REGISTERDEVICE DI_FUNCTION = 0x00000019
218 DIF_NEWDEVICEWIZARD_PRESELECT DI_FUNCTION = 0x0000001A
219 DIF_NEWDEVICEWIZARD_SELECT DI_FUNCTION = 0x0000001B
220 DIF_NEWDEVICEWIZARD_PREANALYZE DI_FUNCTION = 0x0000001C
221 DIF_NEWDEVICEWIZARD_POSTANALYZE DI_FUNCTION = 0x0000001D
222 DIF_NEWDEVICEWIZARD_FINISHINSTALL DI_FUNCTION = 0x0000001E
223 DIF_INSTALLINTERFACES DI_FUNCTION = 0x00000020
224 DIF_DETECTCANCEL DI_FUNCTION = 0x00000021
225 DIF_REGISTER_COINSTALLERS DI_FUNCTION = 0x00000022
226 DIF_ADDPROPERTYPAGE_ADVANCED DI_FUNCTION = 0x00000023
227 DIF_ADDPROPERTYPAGE_BASIC DI_FUNCTION = 0x00000024
228 DIF_TROUBLESHOOTER DI_FUNCTION = 0x00000026
229 DIF_POWERMESSAGEWAKE DI_FUNCTION = 0x00000027
230 DIF_ADDREMOTEPROPERTYPAGE_ADVANCED DI_FUNCTION = 0x00000028
231 DIF_UPDATEDRIVER_UI DI_FUNCTION = 0x00000029
232 DIF_FINISHINSTALL_ACTION DI_FUNCTION = 0x0000002A
233)
234
235// DevInstallParams is device installation parameters structure (associated with a particular device information element, or globally with a device information set)
236type DevInstallParams struct {
237 size uint32
238 Flags DI_FLAGS
239 FlagsEx DI_FLAGSEX
240 hwndParent uintptr
241 InstallMsgHandler uintptr
242 InstallMsgHandlerContext uintptr
243 FileQueue HSPFILEQ
244 _ uintptr
245 _ uint32
246 driverPath [MAX_PATH]uint16
247}
248
249func (params *DevInstallParams) DriverPath() string {
250 return UTF16ToString(params.driverPath[:])
251}
252
253func (params *DevInstallParams) SetDriverPath(driverPath string) error {
254 str, err := UTF16FromString(driverPath)
255 if err != nil {
256 return err
257 }
258 copy(params.driverPath[:], str)
259 return nil
260}
261
262// DI_FLAGS is SP_DEVINSTALL_PARAMS.Flags values
263type DI_FLAGS uint32
264
265const (
266 // Flags for choosing a device
267 DI_SHOWOEM DI_FLAGS = 0x00000001 // support Other... button
268 DI_SHOWCOMPAT DI_FLAGS = 0x00000002 // show compatibility list
269 DI_SHOWCLASS DI_FLAGS = 0x00000004 // show class list
270 DI_SHOWALL DI_FLAGS = 0x00000007 // both class & compat list shown
271 DI_NOVCP DI_FLAGS = 0x00000008 // don't create a new copy queue--use caller-supplied FileQueue
272 DI_DIDCOMPAT DI_FLAGS = 0x00000010 // Searched for compatible devices
273 DI_DIDCLASS DI_FLAGS = 0x00000020 // Searched for class devices
274 DI_AUTOASSIGNRES DI_FLAGS = 0x00000040 // No UI for resources if possible
275
276 // Flags returned by DiInstallDevice to indicate need to reboot/restart
277 DI_NEEDRESTART DI_FLAGS = 0x00000080 // Reboot required to take effect
278 DI_NEEDREBOOT DI_FLAGS = 0x00000100 // ""
279
280 // Flags for device installation
281 DI_NOBROWSE DI_FLAGS = 0x00000200 // no Browse... in InsertDisk
282
283 // Flags set by DiBuildDriverInfoList
284 DI_MULTMFGS DI_FLAGS = 0x00000400 // Set if multiple manufacturers in class driver list
285
286 // Flag indicates that device is disabled
287 DI_DISABLED DI_FLAGS = 0x00000800 // Set if device disabled
288
289 // Flags for Device/Class Properties
290 DI_GENERALPAGE_ADDED DI_FLAGS = 0x00001000
291 DI_RESOURCEPAGE_ADDED DI_FLAGS = 0x00002000
292
293 // Flag to indicate the setting properties for this Device (or class) caused a change so the Dev Mgr UI probably needs to be updated.
294 DI_PROPERTIES_CHANGE DI_FLAGS = 0x00004000
295
296 // Flag to indicate that the sorting from the INF file should be used.
297 DI_INF_IS_SORTED DI_FLAGS = 0x00008000
298
299 // Flag to indicate that only the INF specified by SP_DEVINSTALL_PARAMS.DriverPath should be searched.
300 DI_ENUMSINGLEINF DI_FLAGS = 0x00010000
301
302 // Flag that prevents ConfigMgr from removing/re-enumerating devices during device
303 // registration, installation, and deletion.
304 DI_DONOTCALLCONFIGMG DI_FLAGS = 0x00020000
305
306 // The following flag can be used to install a device disabled
307 DI_INSTALLDISABLED DI_FLAGS = 0x00040000
308
309 // Flag that causes SetupDiBuildDriverInfoList to build a device's compatible driver
310 // list from its existing class driver list, instead of the normal INF search.
311 DI_COMPAT_FROM_CLASS DI_FLAGS = 0x00080000
312
313 // This flag is set if the Class Install params should be used.
314 DI_CLASSINSTALLPARAMS DI_FLAGS = 0x00100000
315
316 // This flag is set if the caller of DiCallClassInstaller does NOT want the internal default action performed if the Class installer returns ERROR_DI_DO_DEFAULT.
317 DI_NODI_DEFAULTACTION DI_FLAGS = 0x00200000
318
319 // Flags for device installation
320 DI_QUIETINSTALL DI_FLAGS = 0x00800000 // don't confuse the user with questions or excess info
321 DI_NOFILECOPY DI_FLAGS = 0x01000000 // No file Copy necessary
322 DI_FORCECOPY DI_FLAGS = 0x02000000 // Force files to be copied from install path
323 DI_DRIVERPAGE_ADDED DI_FLAGS = 0x04000000 // Prop provider added Driver page.
324 DI_USECI_SELECTSTRINGS DI_FLAGS = 0x08000000 // Use Class Installer Provided strings in the Select Device Dlg
325 DI_OVERRIDE_INFFLAGS DI_FLAGS = 0x10000000 // Override INF flags
326 DI_PROPS_NOCHANGEUSAGE DI_FLAGS = 0x20000000 // No Enable/Disable in General Props
327
328 DI_NOSELECTICONS DI_FLAGS = 0x40000000 // No small icons in select device dialogs
329
330 DI_NOWRITE_IDS DI_FLAGS = 0x80000000 // Don't write HW & Compat IDs on install
331)
332
333// DI_FLAGSEX is SP_DEVINSTALL_PARAMS.FlagsEx values
334type DI_FLAGSEX uint32
335
336const (
337 DI_FLAGSEX_CI_FAILED DI_FLAGSEX = 0x00000004 // Failed to Load/Call class installer
338 DI_FLAGSEX_FINISHINSTALL_ACTION DI_FLAGSEX = 0x00000008 // Class/co-installer wants to get a DIF_FINISH_INSTALL action in client context.
339 DI_FLAGSEX_DIDINFOLIST DI_FLAGSEX = 0x00000010 // Did the Class Info List
340 DI_FLAGSEX_DIDCOMPATINFO DI_FLAGSEX = 0x00000020 // Did the Compat Info List
341 DI_FLAGSEX_FILTERCLASSES DI_FLAGSEX = 0x00000040
342 DI_FLAGSEX_SETFAILEDINSTALL DI_FLAGSEX = 0x00000080
343 DI_FLAGSEX_DEVICECHANGE DI_FLAGSEX = 0x00000100
344 DI_FLAGSEX_ALWAYSWRITEIDS DI_FLAGSEX = 0x00000200
345 DI_FLAGSEX_PROPCHANGE_PENDING DI_FLAGSEX = 0x00000400 // One or more device property sheets have had changes made to them, and need to have a DIF_PROPERTYCHANGE occur.
346 DI_FLAGSEX_ALLOWEXCLUDEDDRVS DI_FLAGSEX = 0x00000800
347 DI_FLAGSEX_NOUIONQUERYREMOVE DI_FLAGSEX = 0x00001000
348 DI_FLAGSEX_USECLASSFORCOMPAT DI_FLAGSEX = 0x00002000 // Use the device's class when building compat drv list. (Ignored if DI_COMPAT_FROM_CLASS flag is specified.)
349 DI_FLAGSEX_NO_DRVREG_MODIFY DI_FLAGSEX = 0x00008000 // Don't run AddReg and DelReg for device's software (driver) key.
350 DI_FLAGSEX_IN_SYSTEM_SETUP DI_FLAGSEX = 0x00010000 // Installation is occurring during initial system setup.
351 DI_FLAGSEX_INET_DRIVER DI_FLAGSEX = 0x00020000 // Driver came from Windows Update
352 DI_FLAGSEX_APPENDDRIVERLIST DI_FLAGSEX = 0x00040000 // Cause SetupDiBuildDriverInfoList to append a new driver list to an existing list.
353 DI_FLAGSEX_PREINSTALLBACKUP DI_FLAGSEX = 0x00080000 // not used
354 DI_FLAGSEX_BACKUPONREPLACE DI_FLAGSEX = 0x00100000 // not used
355 DI_FLAGSEX_DRIVERLIST_FROM_URL DI_FLAGSEX = 0x00200000 // build driver list from INF(s) retrieved from URL specified in SP_DEVINSTALL_PARAMS.DriverPath (empty string means Windows Update website)
356 DI_FLAGSEX_EXCLUDE_OLD_INET_DRIVERS DI_FLAGSEX = 0x00800000 // Don't include old Internet drivers when building a driver list. Ignored on Windows Vista and later.
357 DI_FLAGSEX_POWERPAGE_ADDED DI_FLAGSEX = 0x01000000 // class installer added their own power page
358 DI_FLAGSEX_FILTERSIMILARDRIVERS DI_FLAGSEX = 0x02000000 // only include similar drivers in class list
359 DI_FLAGSEX_INSTALLEDDRIVER DI_FLAGSEX = 0x04000000 // only add the installed driver to the class or compat driver list. Used in calls to SetupDiBuildDriverInfoList
360 DI_FLAGSEX_NO_CLASSLIST_NODE_MERGE DI_FLAGSEX = 0x08000000 // Don't remove identical driver nodes from the class list
361 DI_FLAGSEX_ALTPLATFORM_DRVSEARCH DI_FLAGSEX = 0x10000000 // Build driver list based on alternate platform information specified in associated file queue
362 DI_FLAGSEX_RESTART_DEVICE_ONLY DI_FLAGSEX = 0x20000000 // only restart the device drivers are being installed on as opposed to restarting all devices using those drivers.
363 DI_FLAGSEX_RECURSIVESEARCH DI_FLAGSEX = 0x40000000 // Tell SetupDiBuildDriverInfoList to do a recursive search
364 DI_FLAGSEX_SEARCH_PUBLISHED_INFS DI_FLAGSEX = 0x80000000 // Tell SetupDiBuildDriverInfoList to do a "published INF" search
365)
366
367// ClassInstallHeader is the first member of any class install parameters structure. It contains the device installation request code that defines the format of the rest of the install parameters structure.
368type ClassInstallHeader struct {
369 size uint32
370 InstallFunction DI_FUNCTION
371}
372
373func MakeClassInstallHeader(installFunction DI_FUNCTION) *ClassInstallHeader {
374 hdr := &ClassInstallHeader{InstallFunction: installFunction}
375 hdr.size = uint32(unsafe.Sizeof(*hdr))
376 return hdr
377}
378
379// DICS_STATE specifies values indicating a change in a device's state
380type DICS_STATE uint32
381
382const (
383 DICS_ENABLE DICS_STATE = 0x00000001 // The device is being enabled.
384 DICS_DISABLE DICS_STATE = 0x00000002 // The device is being disabled.
385 DICS_PROPCHANGE DICS_STATE = 0x00000003 // The properties of the device have changed.
386 DICS_START DICS_STATE = 0x00000004 // The device is being started (if the request is for the currently active hardware profile).
387 DICS_STOP DICS_STATE = 0x00000005 // The device is being stopped. The driver stack will be unloaded and the CSCONFIGFLAG_DO_NOT_START flag will be set for the device.
388)
389
390// DICS_FLAG specifies the scope of a device property change
391type DICS_FLAG uint32
392
393const (
394 DICS_FLAG_GLOBAL DICS_FLAG = 0x00000001 // make change in all hardware profiles
395 DICS_FLAG_CONFIGSPECIFIC DICS_FLAG = 0x00000002 // make change in specified profile only
396 DICS_FLAG_CONFIGGENERAL DICS_FLAG = 0x00000004 // 1 or more hardware profile-specific changes to follow (obsolete)
397)
398
399// PropChangeParams is a structure corresponding to a DIF_PROPERTYCHANGE install function.
400type PropChangeParams struct {
401 ClassInstallHeader ClassInstallHeader
402 StateChange DICS_STATE
403 Scope DICS_FLAG
404 HwProfile uint32
405}
406
407// DI_REMOVEDEVICE specifies the scope of the device removal
408type DI_REMOVEDEVICE uint32
409
410const (
411 DI_REMOVEDEVICE_GLOBAL DI_REMOVEDEVICE = 0x00000001 // Make this change in all hardware profiles. Remove information about the device from the registry.
412 DI_REMOVEDEVICE_CONFIGSPECIFIC DI_REMOVEDEVICE = 0x00000002 // Make this change to only the hardware profile specified by HwProfile. this flag only applies to root-enumerated devices. When Windows removes the device from the last hardware profile in which it was configured, Windows performs a global removal.
413)
414
415// RemoveDeviceParams is a structure corresponding to a DIF_REMOVE install function.
416type RemoveDeviceParams struct {
417 ClassInstallHeader ClassInstallHeader
418 Scope DI_REMOVEDEVICE
419 HwProfile uint32
420}
421
422// DrvInfoData is driver information structure (member of a driver info list that may be associated with a particular device instance, or (globally) with a device information set)
423type DrvInfoData struct {
424 size uint32
425 DriverType uint32
426 _ uintptr
427 description [LINE_LEN]uint16
428 mfgName [LINE_LEN]uint16
429 providerName [LINE_LEN]uint16
430 DriverDate Filetime
431 DriverVersion uint64
432}
433
434func (data *DrvInfoData) Description() string {
435 return UTF16ToString(data.description[:])
436}
437
438func (data *DrvInfoData) SetDescription(description string) error {
439 str, err := UTF16FromString(description)
440 if err != nil {
441 return err
442 }
443 copy(data.description[:], str)
444 return nil
445}
446
447func (data *DrvInfoData) MfgName() string {
448 return UTF16ToString(data.mfgName[:])
449}
450
451func (data *DrvInfoData) SetMfgName(mfgName string) error {
452 str, err := UTF16FromString(mfgName)
453 if err != nil {
454 return err
455 }
456 copy(data.mfgName[:], str)
457 return nil
458}
459
460func (data *DrvInfoData) ProviderName() string {
461 return UTF16ToString(data.providerName[:])
462}
463
464func (data *DrvInfoData) SetProviderName(providerName string) error {
465 str, err := UTF16FromString(providerName)
466 if err != nil {
467 return err
468 }
469 copy(data.providerName[:], str)
470 return nil
471}
472
473// IsNewer method returns true if DrvInfoData date and version is newer than supplied parameters.
474func (data *DrvInfoData) IsNewer(driverDate Filetime, driverVersion uint64) bool {
475 if data.DriverDate.HighDateTime > driverDate.HighDateTime {
476 return true
477 }
478 if data.DriverDate.HighDateTime < driverDate.HighDateTime {
479 return false
480 }
481
482 if data.DriverDate.LowDateTime > driverDate.LowDateTime {
483 return true
484 }
485 if data.DriverDate.LowDateTime < driverDate.LowDateTime {
486 return false
487 }
488
489 if data.DriverVersion > driverVersion {
490 return true
491 }
492 if data.DriverVersion < driverVersion {
493 return false
494 }
495
496 return false
497}
498
499// DrvInfoDetailData is driver information details structure (provides detailed information about a particular driver information structure)
500type DrvInfoDetailData struct {
501 size uint32 // Use unsafeSizeOf method
502 InfDate Filetime
503 compatIDsOffset uint32
504 compatIDsLength uint32
505 _ uintptr
506 sectionName [LINE_LEN]uint16
507 infFileName [MAX_PATH]uint16
508 drvDescription [LINE_LEN]uint16
509 hardwareID [1]uint16
510}
511
512func (*DrvInfoDetailData) unsafeSizeOf() uint32 {
513 if unsafe.Sizeof(uintptr(0)) == 4 {
514 // Windows declares this with pshpack1.h
515 return uint32(unsafe.Offsetof(DrvInfoDetailData{}.hardwareID) + unsafe.Sizeof(DrvInfoDetailData{}.hardwareID))
516 }
517 return uint32(unsafe.Sizeof(DrvInfoDetailData{}))
518}
519
520func (data *DrvInfoDetailData) SectionName() string {
521 return UTF16ToString(data.sectionName[:])
522}
523
524func (data *DrvInfoDetailData) InfFileName() string {
525 return UTF16ToString(data.infFileName[:])
526}
527
528func (data *DrvInfoDetailData) DrvDescription() string {
529 return UTF16ToString(data.drvDescription[:])
530}
531
532func (data *DrvInfoDetailData) HardwareID() string {
533 if data.compatIDsOffset > 1 {
534 bufW := data.getBuf()
535 return UTF16ToString(bufW[:wcslen(bufW)])
536 }
537
538 return ""
539}
540
541func (data *DrvInfoDetailData) CompatIDs() []string {
542 a := make([]string, 0)
543
544 if data.compatIDsLength > 0 {
545 bufW := data.getBuf()
546 bufW = bufW[data.compatIDsOffset : data.compatIDsOffset+data.compatIDsLength]
547 for i := 0; i < len(bufW); {
548 j := i + wcslen(bufW[i:])
549 if i < j {
550 a = append(a, UTF16ToString(bufW[i:j]))
551 }
552 i = j + 1
553 }
554 }
555
556 return a
557}
558
559func (data *DrvInfoDetailData) getBuf() []uint16 {
560 len := (data.size - uint32(unsafe.Offsetof(data.hardwareID))) / 2
561 sl := struct {
562 addr *uint16
563 len int
564 cap int
565 }{&data.hardwareID[0], int(len), int(len)}
566 return *(*[]uint16)(unsafe.Pointer(&sl))
567}
568
569// IsCompatible method tests if given hardware ID matches the driver or is listed on the compatible ID list.
570func (data *DrvInfoDetailData) IsCompatible(hwid string) bool {
571 hwidLC := strings.ToLower(hwid)
572 if strings.ToLower(data.HardwareID()) == hwidLC {
573 return true
574 }
575 a := data.CompatIDs()
576 for i := range a {
577 if strings.ToLower(a[i]) == hwidLC {
578 return true
579 }
580 }
581
582 return false
583}
584
585// DICD flags control SetupDiCreateDeviceInfo
586type DICD uint32
587
588const (
589 DICD_GENERATE_ID DICD = 0x00000001
590 DICD_INHERIT_CLASSDRVS DICD = 0x00000002
591)
592
593// SUOI flags control SetupUninstallOEMInf
594type SUOI uint32
595
596const (
597 SUOI_FORCEDELETE SUOI = 0x0001
598)
599
600// SPDIT flags to distinguish between class drivers and
601// device drivers. (Passed in 'DriverType' parameter of
602// driver information list APIs)
603type SPDIT uint32
604
605const (
606 SPDIT_NODRIVER SPDIT = 0x00000000
607 SPDIT_CLASSDRIVER SPDIT = 0x00000001
608 SPDIT_COMPATDRIVER SPDIT = 0x00000002
609)
610
611// DIGCF flags control what is included in the device information set built by SetupDiGetClassDevs
612type DIGCF uint32
613
614const (
615 DIGCF_DEFAULT DIGCF = 0x00000001 // only valid with DIGCF_DEVICEINTERFACE
616 DIGCF_PRESENT DIGCF = 0x00000002
617 DIGCF_ALLCLASSES DIGCF = 0x00000004
618 DIGCF_PROFILE DIGCF = 0x00000008
619 DIGCF_DEVICEINTERFACE DIGCF = 0x00000010
620)
621
622// DIREG specifies values for SetupDiCreateDevRegKey, SetupDiOpenDevRegKey, and SetupDiDeleteDevRegKey.
623type DIREG uint32
624
625const (
626 DIREG_DEV DIREG = 0x00000001 // Open/Create/Delete device key
627 DIREG_DRV DIREG = 0x00000002 // Open/Create/Delete driver key
628 DIREG_BOTH DIREG = 0x00000004 // Delete both driver and Device key
629)
630
631// SPDRP specifies device registry property codes
632// (Codes marked as read-only (R) may only be used for
633// SetupDiGetDeviceRegistryProperty)
634//
635// These values should cover the same set of registry properties
636// as defined by the CM_DRP codes in cfgmgr32.h.
637//
638// Note that SPDRP codes are zero based while CM_DRP codes are one based!
639type SPDRP uint32
640
641const (
642 SPDRP_DEVICEDESC SPDRP = 0x00000000 // DeviceDesc (R/W)
643 SPDRP_HARDWAREID SPDRP = 0x00000001 // HardwareID (R/W)
644 SPDRP_COMPATIBLEIDS SPDRP = 0x00000002 // CompatibleIDs (R/W)
645 SPDRP_SERVICE SPDRP = 0x00000004 // Service (R/W)
646 SPDRP_CLASS SPDRP = 0x00000007 // Class (R--tied to ClassGUID)
647 SPDRP_CLASSGUID SPDRP = 0x00000008 // ClassGUID (R/W)
648 SPDRP_DRIVER SPDRP = 0x00000009 // Driver (R/W)
649 SPDRP_CONFIGFLAGS SPDRP = 0x0000000A // ConfigFlags (R/W)
650 SPDRP_MFG SPDRP = 0x0000000B // Mfg (R/W)
651 SPDRP_FRIENDLYNAME SPDRP = 0x0000000C // FriendlyName (R/W)
652 SPDRP_LOCATION_INFORMATION SPDRP = 0x0000000D // LocationInformation (R/W)
653 SPDRP_PHYSICAL_DEVICE_OBJECT_NAME SPDRP = 0x0000000E // PhysicalDeviceObjectName (R)
654 SPDRP_CAPABILITIES SPDRP = 0x0000000F // Capabilities (R)
655 SPDRP_UI_NUMBER SPDRP = 0x00000010 // UiNumber (R)
656 SPDRP_UPPERFILTERS SPDRP = 0x00000011 // UpperFilters (R/W)
657 SPDRP_LOWERFILTERS SPDRP = 0x00000012 // LowerFilters (R/W)
658 SPDRP_BUSTYPEGUID SPDRP = 0x00000013 // BusTypeGUID (R)
659 SPDRP_LEGACYBUSTYPE SPDRP = 0x00000014 // LegacyBusType (R)
660 SPDRP_BUSNUMBER SPDRP = 0x00000015 // BusNumber (R)
661 SPDRP_ENUMERATOR_NAME SPDRP = 0x00000016 // Enumerator Name (R)
662 SPDRP_SECURITY SPDRP = 0x00000017 // Security (R/W, binary form)
663 SPDRP_SECURITY_SDS SPDRP = 0x00000018 // Security (W, SDS form)
664 SPDRP_DEVTYPE SPDRP = 0x00000019 // Device Type (R/W)
665 SPDRP_EXCLUSIVE SPDRP = 0x0000001A // Device is exclusive-access (R/W)
666 SPDRP_CHARACTERISTICS SPDRP = 0x0000001B // Device Characteristics (R/W)
667 SPDRP_ADDRESS SPDRP = 0x0000001C // Device Address (R)
668 SPDRP_UI_NUMBER_DESC_FORMAT SPDRP = 0x0000001D // UiNumberDescFormat (R/W)
669 SPDRP_DEVICE_POWER_DATA SPDRP = 0x0000001E // Device Power Data (R)
670 SPDRP_REMOVAL_POLICY SPDRP = 0x0000001F // Removal Policy (R)
671 SPDRP_REMOVAL_POLICY_HW_DEFAULT SPDRP = 0x00000020 // Hardware Removal Policy (R)
672 SPDRP_REMOVAL_POLICY_OVERRIDE SPDRP = 0x00000021 // Removal Policy Override (RW)
673 SPDRP_INSTALL_STATE SPDRP = 0x00000022 // Device Install State (R)
674 SPDRP_LOCATION_PATHS SPDRP = 0x00000023 // Device Location Paths (R)
675 SPDRP_BASE_CONTAINERID SPDRP = 0x00000024 // Base ContainerID (R)
676
677 SPDRP_MAXIMUM_PROPERTY SPDRP = 0x00000025 // Upper bound on ordinals
678)
679
680// DEVPROPTYPE represents the property-data-type identifier that specifies the
681// data type of a device property value in the unified device property model.
682type DEVPROPTYPE uint32
683
684const (
685 DEVPROP_TYPEMOD_ARRAY DEVPROPTYPE = 0x00001000
686 DEVPROP_TYPEMOD_LIST DEVPROPTYPE = 0x00002000
687
688 DEVPROP_TYPE_EMPTY DEVPROPTYPE = 0x00000000
689 DEVPROP_TYPE_NULL DEVPROPTYPE = 0x00000001
690 DEVPROP_TYPE_SBYTE DEVPROPTYPE = 0x00000002
691 DEVPROP_TYPE_BYTE DEVPROPTYPE = 0x00000003
692 DEVPROP_TYPE_INT16 DEVPROPTYPE = 0x00000004
693 DEVPROP_TYPE_UINT16 DEVPROPTYPE = 0x00000005
694 DEVPROP_TYPE_INT32 DEVPROPTYPE = 0x00000006
695 DEVPROP_TYPE_UINT32 DEVPROPTYPE = 0x00000007
696 DEVPROP_TYPE_INT64 DEVPROPTYPE = 0x00000008
697 DEVPROP_TYPE_UINT64 DEVPROPTYPE = 0x00000009
698 DEVPROP_TYPE_FLOAT DEVPROPTYPE = 0x0000000A
699 DEVPROP_TYPE_DOUBLE DEVPROPTYPE = 0x0000000B
700 DEVPROP_TYPE_DECIMAL DEVPROPTYPE = 0x0000000C
701 DEVPROP_TYPE_GUID DEVPROPTYPE = 0x0000000D
702 DEVPROP_TYPE_CURRENCY DEVPROPTYPE = 0x0000000E
703 DEVPROP_TYPE_DATE DEVPROPTYPE = 0x0000000F
704 DEVPROP_TYPE_FILETIME DEVPROPTYPE = 0x00000010
705 DEVPROP_TYPE_BOOLEAN DEVPROPTYPE = 0x00000011
706 DEVPROP_TYPE_STRING DEVPROPTYPE = 0x00000012
707 DEVPROP_TYPE_STRING_LIST DEVPROPTYPE = DEVPROP_TYPE_STRING | DEVPROP_TYPEMOD_LIST
708 DEVPROP_TYPE_SECURITY_DESCRIPTOR DEVPROPTYPE = 0x00000013
709 DEVPROP_TYPE_SECURITY_DESCRIPTOR_STRING DEVPROPTYPE = 0x00000014
710 DEVPROP_TYPE_DEVPROPKEY DEVPROPTYPE = 0x00000015
711 DEVPROP_TYPE_DEVPROPTYPE DEVPROPTYPE = 0x00000016
712 DEVPROP_TYPE_BINARY DEVPROPTYPE = DEVPROP_TYPE_BYTE | DEVPROP_TYPEMOD_ARRAY
713 DEVPROP_TYPE_ERROR DEVPROPTYPE = 0x00000017
714 DEVPROP_TYPE_NTSTATUS DEVPROPTYPE = 0x00000018
715 DEVPROP_TYPE_STRING_INDIRECT DEVPROPTYPE = 0x00000019
716
717 MAX_DEVPROP_TYPE DEVPROPTYPE = 0x00000019
718 MAX_DEVPROP_TYPEMOD DEVPROPTYPE = 0x00002000
719
720 DEVPROP_MASK_TYPE DEVPROPTYPE = 0x00000FFF
721 DEVPROP_MASK_TYPEMOD DEVPROPTYPE = 0x0000F000
722)
723
724// DEVPROPGUID specifies a property category.
725type DEVPROPGUID GUID
726
727// DEVPROPID uniquely identifies the property within the property category.
728type DEVPROPID uint32
729
730const DEVPROPID_FIRST_USABLE DEVPROPID = 2
731
732// DEVPROPKEY represents a device property key for a device property in the
733// unified device property model.
734type DEVPROPKEY struct {
735 FmtID DEVPROPGUID
736 PID DEVPROPID
737}
738
739// CONFIGRET is a return value or error code from cfgmgr32 APIs
740type CONFIGRET uint32
741
742func (ret CONFIGRET) Error() string {
743 if win32Error, ok := ret.Unwrap().(Errno); ok {
744 return fmt.Sprintf("%s (CfgMgr error: 0x%08x)", win32Error.Error(), uint32(ret))
745 }
746 return fmt.Sprintf("CfgMgr error: 0x%08x", uint32(ret))
747}
748
749func (ret CONFIGRET) Win32Error(defaultError Errno) Errno {
750 return cm_MapCrToWin32Err(ret, defaultError)
751}
752
753func (ret CONFIGRET) Unwrap() error {
754 const noMatch = Errno(^uintptr(0))
755 win32Error := ret.Win32Error(noMatch)
756 if win32Error == noMatch {
757 return nil
758 }
759 return win32Error
760}
761
762const (
763 CR_SUCCESS CONFIGRET = 0x00000000
764 CR_DEFAULT CONFIGRET = 0x00000001
765 CR_OUT_OF_MEMORY CONFIGRET = 0x00000002
766 CR_INVALID_POINTER CONFIGRET = 0x00000003
767 CR_INVALID_FLAG CONFIGRET = 0x00000004
768 CR_INVALID_DEVNODE CONFIGRET = 0x00000005
769 CR_INVALID_DEVINST = CR_INVALID_DEVNODE
770 CR_INVALID_RES_DES CONFIGRET = 0x00000006
771 CR_INVALID_LOG_CONF CONFIGRET = 0x00000007
772 CR_INVALID_ARBITRATOR CONFIGRET = 0x00000008
773 CR_INVALID_NODELIST CONFIGRET = 0x00000009
774 CR_DEVNODE_HAS_REQS CONFIGRET = 0x0000000A
775 CR_DEVINST_HAS_REQS = CR_DEVNODE_HAS_REQS
776 CR_INVALID_RESOURCEID CONFIGRET = 0x0000000B
777 CR_DLVXD_NOT_FOUND CONFIGRET = 0x0000000C
778 CR_NO_SUCH_DEVNODE CONFIGRET = 0x0000000D
779 CR_NO_SUCH_DEVINST = CR_NO_SUCH_DEVNODE
780 CR_NO_MORE_LOG_CONF CONFIGRET = 0x0000000E
781 CR_NO_MORE_RES_DES CONFIGRET = 0x0000000F
782 CR_ALREADY_SUCH_DEVNODE CONFIGRET = 0x00000010
783 CR_ALREADY_SUCH_DEVINST = CR_ALREADY_SUCH_DEVNODE
784 CR_INVALID_RANGE_LIST CONFIGRET = 0x00000011
785 CR_INVALID_RANGE CONFIGRET = 0x00000012
786 CR_FAILURE CONFIGRET = 0x00000013
787 CR_NO_SUCH_LOGICAL_DEV CONFIGRET = 0x00000014
788 CR_CREATE_BLOCKED CONFIGRET = 0x00000015
789 CR_NOT_SYSTEM_VM CONFIGRET = 0x00000016
790 CR_REMOVE_VETOED CONFIGRET = 0x00000017
791 CR_APM_VETOED CONFIGRET = 0x00000018
792 CR_INVALID_LOAD_TYPE CONFIGRET = 0x00000019
793 CR_BUFFER_SMALL CONFIGRET = 0x0000001A
794 CR_NO_ARBITRATOR CONFIGRET = 0x0000001B
795 CR_NO_REGISTRY_HANDLE CONFIGRET = 0x0000001C
796 CR_REGISTRY_ERROR CONFIGRET = 0x0000001D
797 CR_INVALID_DEVICE_ID CONFIGRET = 0x0000001E
798 CR_INVALID_DATA CONFIGRET = 0x0000001F
799 CR_INVALID_API CONFIGRET = 0x00000020
800 CR_DEVLOADER_NOT_READY CONFIGRET = 0x00000021
801 CR_NEED_RESTART CONFIGRET = 0x00000022
802 CR_NO_MORE_HW_PROFILES CONFIGRET = 0x00000023
803 CR_DEVICE_NOT_THERE CONFIGRET = 0x00000024
804 CR_NO_SUCH_VALUE CONFIGRET = 0x00000025
805 CR_WRONG_TYPE CONFIGRET = 0x00000026
806 CR_INVALID_PRIORITY CONFIGRET = 0x00000027
807 CR_NOT_DISABLEABLE CONFIGRET = 0x00000028
808 CR_FREE_RESOURCES CONFIGRET = 0x00000029
809 CR_QUERY_VETOED CONFIGRET = 0x0000002A
810 CR_CANT_SHARE_IRQ CONFIGRET = 0x0000002B
811 CR_NO_DEPENDENT CONFIGRET = 0x0000002C
812 CR_SAME_RESOURCES CONFIGRET = 0x0000002D
813 CR_NO_SUCH_REGISTRY_KEY CONFIGRET = 0x0000002E
814 CR_INVALID_MACHINENAME CONFIGRET = 0x0000002F
815 CR_REMOTE_COMM_FAILURE CONFIGRET = 0x00000030
816 CR_MACHINE_UNAVAILABLE CONFIGRET = 0x00000031
817 CR_NO_CM_SERVICES CONFIGRET = 0x00000032
818 CR_ACCESS_DENIED CONFIGRET = 0x00000033
819 CR_CALL_NOT_IMPLEMENTED CONFIGRET = 0x00000034
820 CR_INVALID_PROPERTY CONFIGRET = 0x00000035
821 CR_DEVICE_INTERFACE_ACTIVE CONFIGRET = 0x00000036
822 CR_NO_SUCH_DEVICE_INTERFACE CONFIGRET = 0x00000037
823 CR_INVALID_REFERENCE_STRING CONFIGRET = 0x00000038
824 CR_INVALID_CONFLICT_LIST CONFIGRET = 0x00000039
825 CR_INVALID_INDEX CONFIGRET = 0x0000003A
826 CR_INVALID_STRUCTURE_SIZE CONFIGRET = 0x0000003B
827 NUM_CR_RESULTS CONFIGRET = 0x0000003C
828)
829
830const (
831 CM_GET_DEVICE_INTERFACE_LIST_PRESENT = 0 // only currently 'live' device interfaces
832 CM_GET_DEVICE_INTERFACE_LIST_ALL_DEVICES = 1 // all registered device interfaces, live or not
833)
834
835const (
836 DN_ROOT_ENUMERATED = 0x00000001 // Was enumerated by ROOT
837 DN_DRIVER_LOADED = 0x00000002 // Has Register_Device_Driver
838 DN_ENUM_LOADED = 0x00000004 // Has Register_Enumerator
839 DN_STARTED = 0x00000008 // Is currently configured
840 DN_MANUAL = 0x00000010 // Manually installed
841 DN_NEED_TO_ENUM = 0x00000020 // May need reenumeration
842 DN_NOT_FIRST_TIME = 0x00000040 // Has received a config
843 DN_HARDWARE_ENUM = 0x00000080 // Enum generates hardware ID
844 DN_LIAR = 0x00000100 // Lied about can reconfig once
845 DN_HAS_MARK = 0x00000200 // Not CM_Create_DevInst lately
846 DN_HAS_PROBLEM = 0x00000400 // Need device installer
847 DN_FILTERED = 0x00000800 // Is filtered
848 DN_MOVED = 0x00001000 // Has been moved
849 DN_DISABLEABLE = 0x00002000 // Can be disabled
850 DN_REMOVABLE = 0x00004000 // Can be removed
851 DN_PRIVATE_PROBLEM = 0x00008000 // Has a private problem
852 DN_MF_PARENT = 0x00010000 // Multi function parent
853 DN_MF_CHILD = 0x00020000 // Multi function child
854 DN_WILL_BE_REMOVED = 0x00040000 // DevInst is being removed
855 DN_NOT_FIRST_TIMEE = 0x00080000 // Has received a config enumerate
856 DN_STOP_FREE_RES = 0x00100000 // When child is stopped, free resources
857 DN_REBAL_CANDIDATE = 0x00200000 // Don't skip during rebalance
858 DN_BAD_PARTIAL = 0x00400000 // This devnode's log_confs do not have same resources
859 DN_NT_ENUMERATOR = 0x00800000 // This devnode's is an NT enumerator
860 DN_NT_DRIVER = 0x01000000 // This devnode's is an NT driver
861 DN_NEEDS_LOCKING = 0x02000000 // Devnode need lock resume processing
862 DN_ARM_WAKEUP = 0x04000000 // Devnode can be the wakeup device
863 DN_APM_ENUMERATOR = 0x08000000 // APM aware enumerator
864 DN_APM_DRIVER = 0x10000000 // APM aware driver
865 DN_SILENT_INSTALL = 0x20000000 // Silent install
866 DN_NO_SHOW_IN_DM = 0x40000000 // No show in device manager
867 DN_BOOT_LOG_PROB = 0x80000000 // Had a problem during preassignment of boot log conf
868 DN_NEED_RESTART = DN_LIAR // System needs to be restarted for this Devnode to work properly
869 DN_DRIVER_BLOCKED = DN_NOT_FIRST_TIME // One or more drivers are blocked from loading for this Devnode
870 DN_LEGACY_DRIVER = DN_MOVED // This device is using a legacy driver
871 DN_CHILD_WITH_INVALID_ID = DN_HAS_MARK // One or more children have invalid IDs
872 DN_DEVICE_DISCONNECTED = DN_NEEDS_LOCKING // The function driver for a device reported that the device is not connected. Typically this means a wireless device is out of range.
873 DN_QUERY_REMOVE_PENDING = DN_MF_PARENT // Device is part of a set of related devices collectively pending query-removal
874 DN_QUERY_REMOVE_ACTIVE = DN_MF_CHILD // Device is actively engaged in a query-remove IRP
875 DN_CHANGEABLE_FLAGS = DN_NOT_FIRST_TIME | DN_HARDWARE_ENUM | DN_HAS_MARK | DN_DISABLEABLE | DN_REMOVABLE | DN_MF_CHILD | DN_MF_PARENT | DN_NOT_FIRST_TIMEE | DN_STOP_FREE_RES | DN_REBAL_CANDIDATE | DN_NT_ENUMERATOR | DN_NT_DRIVER | DN_SILENT_INSTALL | DN_NO_SHOW_IN_DM
876)
877
878//sys setupDiCreateDeviceInfoListEx(classGUID *GUID, hwndParent uintptr, machineName *uint16, reserved uintptr) (handle DevInfo, err error) [failretval==DevInfo(InvalidHandle)] = setupapi.SetupDiCreateDeviceInfoListExW
879
880// SetupDiCreateDeviceInfoListEx function creates an empty device information set on a remote or a local computer and optionally associates the set with a device setup class.
881func SetupDiCreateDeviceInfoListEx(classGUID *GUID, hwndParent uintptr, machineName string) (deviceInfoSet DevInfo, err error) {
882 var machineNameUTF16 *uint16
883 if machineName != "" {
884 machineNameUTF16, err = UTF16PtrFromString(machineName)
885 if err != nil {
886 return
887 }
888 }
889 return setupDiCreateDeviceInfoListEx(classGUID, hwndParent, machineNameUTF16, 0)
890}
891
892//sys setupDiGetDeviceInfoListDetail(deviceInfoSet DevInfo, deviceInfoSetDetailData *DevInfoListDetailData) (err error) = setupapi.SetupDiGetDeviceInfoListDetailW
893
894// SetupDiGetDeviceInfoListDetail function retrieves information associated with a device information set including the class GUID, remote computer handle, and remote computer name.
895func SetupDiGetDeviceInfoListDetail(deviceInfoSet DevInfo) (deviceInfoSetDetailData *DevInfoListDetailData, err error) {
896 data := &DevInfoListDetailData{}
897 data.size = data.unsafeSizeOf()
898
899 return data, setupDiGetDeviceInfoListDetail(deviceInfoSet, data)
900}
901
902// DeviceInfoListDetail method retrieves information associated with a device information set including the class GUID, remote computer handle, and remote computer name.
903func (deviceInfoSet DevInfo) DeviceInfoListDetail() (*DevInfoListDetailData, error) {
904 return SetupDiGetDeviceInfoListDetail(deviceInfoSet)
905}
906
907//sys setupDiCreateDeviceInfo(deviceInfoSet DevInfo, DeviceName *uint16, classGUID *GUID, DeviceDescription *uint16, hwndParent uintptr, CreationFlags DICD, deviceInfoData *DevInfoData) (err error) = setupapi.SetupDiCreateDeviceInfoW
908
909// SetupDiCreateDeviceInfo function creates a new device information element and adds it as a new member to the specified device information set.
910func SetupDiCreateDeviceInfo(deviceInfoSet DevInfo, deviceName string, classGUID *GUID, deviceDescription string, hwndParent uintptr, creationFlags DICD) (deviceInfoData *DevInfoData, err error) {
911 deviceNameUTF16, err := UTF16PtrFromString(deviceName)
912 if err != nil {
913 return
914 }
915
916 var deviceDescriptionUTF16 *uint16
917 if deviceDescription != "" {
918 deviceDescriptionUTF16, err = UTF16PtrFromString(deviceDescription)
919 if err != nil {
920 return
921 }
922 }
923
924 data := &DevInfoData{}
925 data.size = uint32(unsafe.Sizeof(*data))
926
927 return data, setupDiCreateDeviceInfo(deviceInfoSet, deviceNameUTF16, classGUID, deviceDescriptionUTF16, hwndParent, creationFlags, data)
928}
929
930// CreateDeviceInfo method creates a new device information element and adds it as a new member to the specified device information set.
931func (deviceInfoSet DevInfo) CreateDeviceInfo(deviceName string, classGUID *GUID, deviceDescription string, hwndParent uintptr, creationFlags DICD) (*DevInfoData, error) {
932 return SetupDiCreateDeviceInfo(deviceInfoSet, deviceName, classGUID, deviceDescription, hwndParent, creationFlags)
933}
934
935//sys setupDiEnumDeviceInfo(deviceInfoSet DevInfo, memberIndex uint32, deviceInfoData *DevInfoData) (err error) = setupapi.SetupDiEnumDeviceInfo
936
937// SetupDiEnumDeviceInfo function returns a DevInfoData structure that specifies a device information element in a device information set.
938func SetupDiEnumDeviceInfo(deviceInfoSet DevInfo, memberIndex int) (*DevInfoData, error) {
939 data := &DevInfoData{}
940 data.size = uint32(unsafe.Sizeof(*data))
941
942 return data, setupDiEnumDeviceInfo(deviceInfoSet, uint32(memberIndex), data)
943}
944
945// EnumDeviceInfo method returns a DevInfoData structure that specifies a device information element in a device information set.
946func (deviceInfoSet DevInfo) EnumDeviceInfo(memberIndex int) (*DevInfoData, error) {
947 return SetupDiEnumDeviceInfo(deviceInfoSet, memberIndex)
948}
949
950// SetupDiDestroyDeviceInfoList function deletes a device information set and frees all associated memory.
951//sys SetupDiDestroyDeviceInfoList(deviceInfoSet DevInfo) (err error) = setupapi.SetupDiDestroyDeviceInfoList
952
953// Close method deletes a device information set and frees all associated memory.
954func (deviceInfoSet DevInfo) Close() error {
955 return SetupDiDestroyDeviceInfoList(deviceInfoSet)
956}
957
958//sys SetupDiBuildDriverInfoList(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, driverType SPDIT) (err error) = setupapi.SetupDiBuildDriverInfoList
959
960// BuildDriverInfoList method builds a list of drivers that is associated with a specific device or with the global class driver list for a device information set.
961func (deviceInfoSet DevInfo) BuildDriverInfoList(deviceInfoData *DevInfoData, driverType SPDIT) error {
962 return SetupDiBuildDriverInfoList(deviceInfoSet, deviceInfoData, driverType)
963}
964
965//sys SetupDiCancelDriverInfoSearch(deviceInfoSet DevInfo) (err error) = setupapi.SetupDiCancelDriverInfoSearch
966
967// CancelDriverInfoSearch method cancels a driver list search that is currently in progress in a different thread.
968func (deviceInfoSet DevInfo) CancelDriverInfoSearch() error {
969 return SetupDiCancelDriverInfoSearch(deviceInfoSet)
970}
971
972//sys setupDiEnumDriverInfo(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, driverType SPDIT, memberIndex uint32, driverInfoData *DrvInfoData) (err error) = setupapi.SetupDiEnumDriverInfoW
973
974// SetupDiEnumDriverInfo function enumerates the members of a driver list.
975func SetupDiEnumDriverInfo(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, driverType SPDIT, memberIndex int) (*DrvInfoData, error) {
976 data := &DrvInfoData{}
977 data.size = uint32(unsafe.Sizeof(*data))
978
979 return data, setupDiEnumDriverInfo(deviceInfoSet, deviceInfoData, driverType, uint32(memberIndex), data)
980}
981
982// EnumDriverInfo method enumerates the members of a driver list.
983func (deviceInfoSet DevInfo) EnumDriverInfo(deviceInfoData *DevInfoData, driverType SPDIT, memberIndex int) (*DrvInfoData, error) {
984 return SetupDiEnumDriverInfo(deviceInfoSet, deviceInfoData, driverType, memberIndex)
985}
986
987//sys setupDiGetSelectedDriver(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, driverInfoData *DrvInfoData) (err error) = setupapi.SetupDiGetSelectedDriverW
988
989// SetupDiGetSelectedDriver function retrieves the selected driver for a device information set or a particular device information element.
990func SetupDiGetSelectedDriver(deviceInfoSet DevInfo, deviceInfoData *DevInfoData) (*DrvInfoData, error) {
991 data := &DrvInfoData{}
992 data.size = uint32(unsafe.Sizeof(*data))
993
994 return data, setupDiGetSelectedDriver(deviceInfoSet, deviceInfoData, data)
995}
996
997// SelectedDriver method retrieves the selected driver for a device information set or a particular device information element.
998func (deviceInfoSet DevInfo) SelectedDriver(deviceInfoData *DevInfoData) (*DrvInfoData, error) {
999 return SetupDiGetSelectedDriver(deviceInfoSet, deviceInfoData)
1000}
1001
1002//sys SetupDiSetSelectedDriver(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, driverInfoData *DrvInfoData) (err error) = setupapi.SetupDiSetSelectedDriverW
1003
1004// SetSelectedDriver method sets, or resets, the selected driver for a device information element or the selected class driver for a device information set.
1005func (deviceInfoSet DevInfo) SetSelectedDriver(deviceInfoData *DevInfoData, driverInfoData *DrvInfoData) error {
1006 return SetupDiSetSelectedDriver(deviceInfoSet, deviceInfoData, driverInfoData)
1007}
1008
1009//sys setupDiGetDriverInfoDetail(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, driverInfoData *DrvInfoData, driverInfoDetailData *DrvInfoDetailData, driverInfoDetailDataSize uint32, requiredSize *uint32) (err error) = setupapi.SetupDiGetDriverInfoDetailW
1010
1011// SetupDiGetDriverInfoDetail function retrieves driver information detail for a device information set or a particular device information element in the device information set.
1012func SetupDiGetDriverInfoDetail(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, driverInfoData *DrvInfoData) (*DrvInfoDetailData, error) {
1013 reqSize := uint32(2048)
1014 for {
1015 buf := make([]byte, reqSize)
1016 data := (*DrvInfoDetailData)(unsafe.Pointer(&buf[0]))
1017 data.size = data.unsafeSizeOf()
1018 err := setupDiGetDriverInfoDetail(deviceInfoSet, deviceInfoData, driverInfoData, data, uint32(len(buf)), &reqSize)
1019 if err == ERROR_INSUFFICIENT_BUFFER {
1020 continue
1021 }
1022 if err != nil {
1023 return nil, err
1024 }
1025 data.size = reqSize
1026 return data, nil
1027 }
1028}
1029
1030// DriverInfoDetail method retrieves driver information detail for a device information set or a particular device information element in the device information set.
1031func (deviceInfoSet DevInfo) DriverInfoDetail(deviceInfoData *DevInfoData, driverInfoData *DrvInfoData) (*DrvInfoDetailData, error) {
1032 return SetupDiGetDriverInfoDetail(deviceInfoSet, deviceInfoData, driverInfoData)
1033}
1034
1035//sys SetupDiDestroyDriverInfoList(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, driverType SPDIT) (err error) = setupapi.SetupDiDestroyDriverInfoList
1036
1037// DestroyDriverInfoList method deletes a driver list.
1038func (deviceInfoSet DevInfo) DestroyDriverInfoList(deviceInfoData *DevInfoData, driverType SPDIT) error {
1039 return SetupDiDestroyDriverInfoList(deviceInfoSet, deviceInfoData, driverType)
1040}
1041
1042//sys setupDiGetClassDevsEx(classGUID *GUID, Enumerator *uint16, hwndParent uintptr, Flags DIGCF, deviceInfoSet DevInfo, machineName *uint16, reserved uintptr) (handle DevInfo, err error) [failretval==DevInfo(InvalidHandle)] = setupapi.SetupDiGetClassDevsExW
1043
1044// SetupDiGetClassDevsEx function returns a handle to a device information set that contains requested device information elements for a local or a remote computer.
1045func SetupDiGetClassDevsEx(classGUID *GUID, enumerator string, hwndParent uintptr, flags DIGCF, deviceInfoSet DevInfo, machineName string) (handle DevInfo, err error) {
1046 var enumeratorUTF16 *uint16
1047 if enumerator != "" {
1048 enumeratorUTF16, err = UTF16PtrFromString(enumerator)
1049 if err != nil {
1050 return
1051 }
1052 }
1053 var machineNameUTF16 *uint16
1054 if machineName != "" {
1055 machineNameUTF16, err = UTF16PtrFromString(machineName)
1056 if err != nil {
1057 return
1058 }
1059 }
1060 return setupDiGetClassDevsEx(classGUID, enumeratorUTF16, hwndParent, flags, deviceInfoSet, machineNameUTF16, 0)
1061}
1062
1063// SetupDiCallClassInstaller function calls the appropriate class installer, and any registered co-installers, with the specified installation request (DIF code).
1064//sys SetupDiCallClassInstaller(installFunction DI_FUNCTION, deviceInfoSet DevInfo, deviceInfoData *DevInfoData) (err error) = setupapi.SetupDiCallClassInstaller
1065
1066// CallClassInstaller member calls the appropriate class installer, and any registered co-installers, with the specified installation request (DIF code).
1067func (deviceInfoSet DevInfo) CallClassInstaller(installFunction DI_FUNCTION, deviceInfoData *DevInfoData) error {
1068 return SetupDiCallClassInstaller(installFunction, deviceInfoSet, deviceInfoData)
1069}
1070
1071// SetupDiOpenDevRegKey function opens a registry key for device-specific configuration information.
1072//sys SetupDiOpenDevRegKey(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, Scope DICS_FLAG, HwProfile uint32, KeyType DIREG, samDesired uint32) (key Handle, err error) [failretval==InvalidHandle] = setupapi.SetupDiOpenDevRegKey
1073
1074// OpenDevRegKey method opens a registry key for device-specific configuration information.
1075func (deviceInfoSet DevInfo) OpenDevRegKey(DeviceInfoData *DevInfoData, Scope DICS_FLAG, HwProfile uint32, KeyType DIREG, samDesired uint32) (Handle, error) {
1076 return SetupDiOpenDevRegKey(deviceInfoSet, DeviceInfoData, Scope, HwProfile, KeyType, samDesired)
1077}
1078
1079//sys setupDiGetDeviceProperty(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, propertyKey *DEVPROPKEY, propertyType *DEVPROPTYPE, propertyBuffer *byte, propertyBufferSize uint32, requiredSize *uint32, flags uint32) (err error) = setupapi.SetupDiGetDevicePropertyW
1080
1081// SetupDiGetDeviceProperty function retrieves a specified device instance property.
1082func SetupDiGetDeviceProperty(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, propertyKey *DEVPROPKEY) (value interface{}, err error) {
1083 reqSize := uint32(256)
1084 for {
1085 var dataType DEVPROPTYPE
1086 buf := make([]byte, reqSize)
1087 err = setupDiGetDeviceProperty(deviceInfoSet, deviceInfoData, propertyKey, &dataType, &buf[0], uint32(len(buf)), &reqSize, 0)
1088 if err == ERROR_INSUFFICIENT_BUFFER {
1089 continue
1090 }
1091 if err != nil {
1092 return
1093 }
1094 switch dataType {
1095 case DEVPROP_TYPE_STRING:
1096 ret := UTF16ToString(bufToUTF16(buf))
1097 runtime.KeepAlive(buf)
1098 return ret, nil
1099 }
1100 return nil, errors.New("unimplemented property type")
1101 }
1102}
1103
1104//sys setupDiGetDeviceRegistryProperty(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, property SPDRP, propertyRegDataType *uint32, propertyBuffer *byte, propertyBufferSize uint32, requiredSize *uint32) (err error) = setupapi.SetupDiGetDeviceRegistryPropertyW
1105
1106// SetupDiGetDeviceRegistryProperty function retrieves a specified Plug and Play device property.
1107func SetupDiGetDeviceRegistryProperty(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, property SPDRP) (value interface{}, err error) {
1108 reqSize := uint32(256)
1109 for {
1110 var dataType uint32
1111 buf := make([]byte, reqSize)
1112 err = setupDiGetDeviceRegistryProperty(deviceInfoSet, deviceInfoData, property, &dataType, &buf[0], uint32(len(buf)), &reqSize)
1113 if err == ERROR_INSUFFICIENT_BUFFER {
1114 continue
1115 }
1116 if err != nil {
1117 return
1118 }
1119 return getRegistryValue(buf[:reqSize], dataType)
1120 }
1121}
1122
1123func getRegistryValue(buf []byte, dataType uint32) (interface{}, error) {
1124 switch dataType {
1125 case REG_SZ:
1126 ret := UTF16ToString(bufToUTF16(buf))
1127 runtime.KeepAlive(buf)
1128 return ret, nil
1129 case REG_EXPAND_SZ:
1130 value := UTF16ToString(bufToUTF16(buf))
1131 if value == "" {
1132 return "", nil
1133 }
1134 p, err := syscall.UTF16PtrFromString(value)
1135 if err != nil {
1136 return "", err
1137 }
1138 ret := make([]uint16, 100)
1139 for {
1140 n, err := ExpandEnvironmentStrings(p, &ret[0], uint32(len(ret)))
1141 if err != nil {
1142 return "", err
1143 }
1144 if n <= uint32(len(ret)) {
1145 return UTF16ToString(ret[:n]), nil
1146 }
1147 ret = make([]uint16, n)
1148 }
1149 case REG_BINARY:
1150 return buf, nil
1151 case REG_DWORD_LITTLE_ENDIAN:
1152 return binary.LittleEndian.Uint32(buf), nil
1153 case REG_DWORD_BIG_ENDIAN:
1154 return binary.BigEndian.Uint32(buf), nil
1155 case REG_MULTI_SZ:
1156 bufW := bufToUTF16(buf)
1157 a := []string{}
1158 for i := 0; i < len(bufW); {
1159 j := i + wcslen(bufW[i:])
1160 if i < j {
1161 a = append(a, UTF16ToString(bufW[i:j]))
1162 }
1163 i = j + 1
1164 }
1165 runtime.KeepAlive(buf)
1166 return a, nil
1167 case REG_QWORD_LITTLE_ENDIAN:
1168 return binary.LittleEndian.Uint64(buf), nil
1169 default:
1170 return nil, fmt.Errorf("Unsupported registry value type: %v", dataType)
1171 }
1172}
1173
1174// bufToUTF16 function reinterprets []byte buffer as []uint16
1175func bufToUTF16(buf []byte) []uint16 {
1176 sl := struct {
1177 addr *uint16
1178 len int
1179 cap int
1180 }{(*uint16)(unsafe.Pointer(&buf[0])), len(buf) / 2, cap(buf) / 2}
1181 return *(*[]uint16)(unsafe.Pointer(&sl))
1182}
1183
1184// utf16ToBuf function reinterprets []uint16 as []byte
1185func utf16ToBuf(buf []uint16) []byte {
1186 sl := struct {
1187 addr *byte
1188 len int
1189 cap int
1190 }{(*byte)(unsafe.Pointer(&buf[0])), len(buf) * 2, cap(buf) * 2}
1191 return *(*[]byte)(unsafe.Pointer(&sl))
1192}
1193
1194func wcslen(str []uint16) int {
1195 for i := 0; i < len(str); i++ {
1196 if str[i] == 0 {
1197 return i
1198 }
1199 }
1200 return len(str)
1201}
1202
1203// DeviceRegistryProperty method retrieves a specified Plug and Play device property.
1204func (deviceInfoSet DevInfo) DeviceRegistryProperty(deviceInfoData *DevInfoData, property SPDRP) (interface{}, error) {
1205 return SetupDiGetDeviceRegistryProperty(deviceInfoSet, deviceInfoData, property)
1206}
1207
1208//sys setupDiSetDeviceRegistryProperty(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, property SPDRP, propertyBuffer *byte, propertyBufferSize uint32) (err error) = setupapi.SetupDiSetDeviceRegistryPropertyW
1209
1210// SetupDiSetDeviceRegistryProperty function sets a Plug and Play device property for a device.
1211func SetupDiSetDeviceRegistryProperty(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, property SPDRP, propertyBuffers []byte) error {
1212 return setupDiSetDeviceRegistryProperty(deviceInfoSet, deviceInfoData, property, &propertyBuffers[0], uint32(len(propertyBuffers)))
1213}
1214
1215// SetDeviceRegistryProperty function sets a Plug and Play device property for a device.
1216func (deviceInfoSet DevInfo) SetDeviceRegistryProperty(deviceInfoData *DevInfoData, property SPDRP, propertyBuffers []byte) error {
1217 return SetupDiSetDeviceRegistryProperty(deviceInfoSet, deviceInfoData, property, propertyBuffers)
1218}
1219
1220// SetDeviceRegistryPropertyString method sets a Plug and Play device property string for a device.
1221func (deviceInfoSet DevInfo) SetDeviceRegistryPropertyString(deviceInfoData *DevInfoData, property SPDRP, str string) error {
1222 str16, err := UTF16FromString(str)
1223 if err != nil {
1224 return err
1225 }
1226 err = SetupDiSetDeviceRegistryProperty(deviceInfoSet, deviceInfoData, property, utf16ToBuf(append(str16, 0)))
1227 runtime.KeepAlive(str16)
1228 return err
1229}
1230
1231//sys setupDiGetDeviceInstallParams(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, deviceInstallParams *DevInstallParams) (err error) = setupapi.SetupDiGetDeviceInstallParamsW
1232
1233// SetupDiGetDeviceInstallParams function retrieves device installation parameters for a device information set or a particular device information element.
1234func SetupDiGetDeviceInstallParams(deviceInfoSet DevInfo, deviceInfoData *DevInfoData) (*DevInstallParams, error) {
1235 params := &DevInstallParams{}
1236 params.size = uint32(unsafe.Sizeof(*params))
1237
1238 return params, setupDiGetDeviceInstallParams(deviceInfoSet, deviceInfoData, params)
1239}
1240
1241// DeviceInstallParams method retrieves device installation parameters for a device information set or a particular device information element.
1242func (deviceInfoSet DevInfo) DeviceInstallParams(deviceInfoData *DevInfoData) (*DevInstallParams, error) {
1243 return SetupDiGetDeviceInstallParams(deviceInfoSet, deviceInfoData)
1244}
1245
1246//sys setupDiGetDeviceInstanceId(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, instanceId *uint16, instanceIdSize uint32, instanceIdRequiredSize *uint32) (err error) = setupapi.SetupDiGetDeviceInstanceIdW
1247
1248// SetupDiGetDeviceInstanceId function retrieves the instance ID of the device.
1249func SetupDiGetDeviceInstanceId(deviceInfoSet DevInfo, deviceInfoData *DevInfoData) (string, error) {
1250 reqSize := uint32(1024)
1251 for {
1252 buf := make([]uint16, reqSize)
1253 err := setupDiGetDeviceInstanceId(deviceInfoSet, deviceInfoData, &buf[0], uint32(len(buf)), &reqSize)
1254 if err == ERROR_INSUFFICIENT_BUFFER {
1255 continue
1256 }
1257 if err != nil {
1258 return "", err
1259 }
1260 return UTF16ToString(buf), nil
1261 }
1262}
1263
1264// DeviceInstanceID method retrieves the instance ID of the device.
1265func (deviceInfoSet DevInfo) DeviceInstanceID(deviceInfoData *DevInfoData) (string, error) {
1266 return SetupDiGetDeviceInstanceId(deviceInfoSet, deviceInfoData)
1267}
1268
1269// SetupDiGetClassInstallParams function retrieves class installation parameters for a device information set or a particular device information element.
1270//sys SetupDiGetClassInstallParams(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, classInstallParams *ClassInstallHeader, classInstallParamsSize uint32, requiredSize *uint32) (err error) = setupapi.SetupDiGetClassInstallParamsW
1271
1272// ClassInstallParams method retrieves class installation parameters for a device information set or a particular device information element.
1273func (deviceInfoSet DevInfo) ClassInstallParams(deviceInfoData *DevInfoData, classInstallParams *ClassInstallHeader, classInstallParamsSize uint32, requiredSize *uint32) error {
1274 return SetupDiGetClassInstallParams(deviceInfoSet, deviceInfoData, classInstallParams, classInstallParamsSize, requiredSize)
1275}
1276
1277//sys SetupDiSetDeviceInstallParams(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, deviceInstallParams *DevInstallParams) (err error) = setupapi.SetupDiSetDeviceInstallParamsW
1278
1279// SetDeviceInstallParams member sets device installation parameters for a device information set or a particular device information element.
1280func (deviceInfoSet DevInfo) SetDeviceInstallParams(deviceInfoData *DevInfoData, deviceInstallParams *DevInstallParams) error {
1281 return SetupDiSetDeviceInstallParams(deviceInfoSet, deviceInfoData, deviceInstallParams)
1282}
1283
1284// SetupDiSetClassInstallParams function sets or clears class install parameters for a device information set or a particular device information element.
1285//sys SetupDiSetClassInstallParams(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, classInstallParams *ClassInstallHeader, classInstallParamsSize uint32) (err error) = setupapi.SetupDiSetClassInstallParamsW
1286
1287// SetClassInstallParams method sets or clears class install parameters for a device information set or a particular device information element.
1288func (deviceInfoSet DevInfo) SetClassInstallParams(deviceInfoData *DevInfoData, classInstallParams *ClassInstallHeader, classInstallParamsSize uint32) error {
1289 return SetupDiSetClassInstallParams(deviceInfoSet, deviceInfoData, classInstallParams, classInstallParamsSize)
1290}
1291
1292//sys setupDiClassNameFromGuidEx(classGUID *GUID, className *uint16, classNameSize uint32, requiredSize *uint32, machineName *uint16, reserved uintptr) (err error) = setupapi.SetupDiClassNameFromGuidExW
1293
1294// SetupDiClassNameFromGuidEx function retrieves the class name associated with a class GUID. The class can be installed on a local or remote computer.
1295func SetupDiClassNameFromGuidEx(classGUID *GUID, machineName string) (className string, err error) {
1296 var classNameUTF16 [MAX_CLASS_NAME_LEN]uint16
1297
1298 var machineNameUTF16 *uint16
1299 if machineName != "" {
1300 machineNameUTF16, err = UTF16PtrFromString(machineName)
1301 if err != nil {
1302 return
1303 }
1304 }
1305
1306 err = setupDiClassNameFromGuidEx(classGUID, &classNameUTF16[0], MAX_CLASS_NAME_LEN, nil, machineNameUTF16, 0)
1307 if err != nil {
1308 return
1309 }
1310
1311 className = UTF16ToString(classNameUTF16[:])
1312 return
1313}
1314
1315//sys setupDiClassGuidsFromNameEx(className *uint16, classGuidList *GUID, classGuidListSize uint32, requiredSize *uint32, machineName *uint16, reserved uintptr) (err error) = setupapi.SetupDiClassGuidsFromNameExW
1316
1317// SetupDiClassGuidsFromNameEx function retrieves the GUIDs associated with the specified class name. This resulting list contains the classes currently installed on a local or remote computer.
1318func SetupDiClassGuidsFromNameEx(className string, machineName string) ([]GUID, error) {
1319 classNameUTF16, err := UTF16PtrFromString(className)
1320 if err != nil {
1321 return nil, err
1322 }
1323
1324 var machineNameUTF16 *uint16
1325 if machineName != "" {
1326 machineNameUTF16, err = UTF16PtrFromString(machineName)
1327 if err != nil {
1328 return nil, err
1329 }
1330 }
1331
1332 reqSize := uint32(4)
1333 for {
1334 buf := make([]GUID, reqSize)
1335 err = setupDiClassGuidsFromNameEx(classNameUTF16, &buf[0], uint32(len(buf)), &reqSize, machineNameUTF16, 0)
1336 if err == ERROR_INSUFFICIENT_BUFFER {
1337 continue
1338 }
1339 if err != nil {
1340 return nil, err
1341 }
1342 return buf[:reqSize], nil
1343 }
1344}
1345
1346//sys setupDiGetSelectedDevice(deviceInfoSet DevInfo, deviceInfoData *DevInfoData) (err error) = setupapi.SetupDiGetSelectedDevice
1347
1348// SetupDiGetSelectedDevice function retrieves the selected device information element in a device information set.
1349func SetupDiGetSelectedDevice(deviceInfoSet DevInfo) (*DevInfoData, error) {
1350 data := &DevInfoData{}
1351 data.size = uint32(unsafe.Sizeof(*data))
1352
1353 return data, setupDiGetSelectedDevice(deviceInfoSet, data)
1354}
1355
1356// SelectedDevice method retrieves the selected device information element in a device information set.
1357func (deviceInfoSet DevInfo) SelectedDevice() (*DevInfoData, error) {
1358 return SetupDiGetSelectedDevice(deviceInfoSet)
1359}
1360
1361// SetupDiSetSelectedDevice function sets a device information element as the selected member of a device information set. This function is typically used by an installation wizard.
1362//sys SetupDiSetSelectedDevice(deviceInfoSet DevInfo, deviceInfoData *DevInfoData) (err error) = setupapi.SetupDiSetSelectedDevice
1363
1364// SetSelectedDevice method sets a device information element as the selected member of a device information set. This function is typically used by an installation wizard.
1365func (deviceInfoSet DevInfo) SetSelectedDevice(deviceInfoData *DevInfoData) error {
1366 return SetupDiSetSelectedDevice(deviceInfoSet, deviceInfoData)
1367}
1368
1369//sys setupUninstallOEMInf(infFileName *uint16, flags SUOI, reserved uintptr) (err error) = setupapi.SetupUninstallOEMInfW
1370
1371// SetupUninstallOEMInf uninstalls the specified driver.
1372func SetupUninstallOEMInf(infFileName string, flags SUOI) error {
1373 infFileName16, err := UTF16PtrFromString(infFileName)
1374 if err != nil {
1375 return err
1376 }
1377 return setupUninstallOEMInf(infFileName16, flags, 0)
1378}
1379
1380//sys cm_MapCrToWin32Err(configRet CONFIGRET, defaultWin32Error Errno) (ret Errno) = CfgMgr32.CM_MapCrToWin32Err
1381
1382//sys cm_Get_Device_Interface_List_Size(len *uint32, interfaceClass *GUID, deviceID *uint16, flags uint32) (ret CONFIGRET) = CfgMgr32.CM_Get_Device_Interface_List_SizeW
1383//sys cm_Get_Device_Interface_List(interfaceClass *GUID, deviceID *uint16, buffer *uint16, bufferLen uint32, flags uint32) (ret CONFIGRET) = CfgMgr32.CM_Get_Device_Interface_ListW
1384
1385func CM_Get_Device_Interface_List(deviceID string, interfaceClass *GUID, flags uint32) ([]string, error) {
1386 deviceID16, err := UTF16PtrFromString(deviceID)
1387 if err != nil {
1388 return nil, err
1389 }
1390 var buf []uint16
1391 var buflen uint32
1392 for {
1393 if ret := cm_Get_Device_Interface_List_Size(&buflen, interfaceClass, deviceID16, flags); ret != CR_SUCCESS {
1394 return nil, ret
1395 }
1396 buf = make([]uint16, buflen)
1397 if ret := cm_Get_Device_Interface_List(interfaceClass, deviceID16, &buf[0], buflen, flags); ret == CR_SUCCESS {
1398 break
1399 } else if ret != CR_BUFFER_SMALL {
1400 return nil, ret
1401 }
1402 }
1403 var interfaces []string
1404 for i := 0; i < len(buf); {
1405 j := i + wcslen(buf[i:])
1406 if i < j {
1407 interfaces = append(interfaces, UTF16ToString(buf[i:j]))
1408 }
1409 i = j + 1
1410 }
1411 if interfaces == nil {
1412 return nil, ERROR_NO_SUCH_DEVICE_INTERFACE
1413 }
1414 return interfaces, nil
1415}
1416
1417//sys cm_Get_DevNode_Status(status *uint32, problemNumber *uint32, devInst DEVINST, flags uint32) (ret CONFIGRET) = CfgMgr32.CM_Get_DevNode_Status
1418
1419func CM_Get_DevNode_Status(status *uint32, problemNumber *uint32, devInst DEVINST, flags uint32) error {
1420 ret := cm_Get_DevNode_Status(status, problemNumber, devInst, flags)
1421 if ret == CR_SUCCESS {
1422 return nil
1423 }
1424 return ret
1425}
diff --git a/vendor/golang.org/x/sys/windows/str.go b/vendor/golang.org/x/sys/windows/str.go
deleted file mode 100644
index 6a4f9ce..0000000
--- a/vendor/golang.org/x/sys/windows/str.go
+++ /dev/null
@@ -1,22 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//go:build windows
6
7package windows
8
9func itoa(val int) string { // do it here rather than with fmt to avoid dependency
10 if val < 0 {
11 return "-" + itoa(-val)
12 }
13 var buf [32]byte // big enough for int64
14 i := len(buf) - 1
15 for val >= 10 {
16 buf[i] = byte(val%10 + '0')
17 i--
18 val /= 10
19 }
20 buf[i] = byte(val + '0')
21 return string(buf[i:])
22}
diff --git a/vendor/golang.org/x/sys/windows/syscall.go b/vendor/golang.org/x/sys/windows/syscall.go
deleted file mode 100644
index e85ed6b..0000000
--- a/vendor/golang.org/x/sys/windows/syscall.go
+++ /dev/null
@@ -1,104 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//go:build windows
6
7// Package windows contains an interface to the low-level operating system
8// primitives. OS details vary depending on the underlying system, and
9// by default, godoc will display the OS-specific documentation for the current
10// system. If you want godoc to display syscall documentation for another
11// system, set $GOOS and $GOARCH to the desired system. For example, if
12// you want to view documentation for freebsd/arm on linux/amd64, set $GOOS
13// to freebsd and $GOARCH to arm.
14//
15// The primary use of this package is inside other packages that provide a more
16// portable interface to the system, such as "os", "time" and "net". Use
17// those packages rather than this one if you can.
18//
19// For details of the functions and data types in this package consult
20// the manuals for the appropriate operating system.
21//
22// These calls return err == nil to indicate success; otherwise
23// err represents an operating system error describing the failure and
24// holds a value of type syscall.Errno.
25package windows // import "golang.org/x/sys/windows"
26
27import (
28 "bytes"
29 "strings"
30 "syscall"
31 "unsafe"
32)
33
34// ByteSliceFromString returns a NUL-terminated slice of bytes
35// containing the text of s. If s contains a NUL byte at any
36// location, it returns (nil, syscall.EINVAL).
37func ByteSliceFromString(s string) ([]byte, error) {
38 if strings.IndexByte(s, 0) != -1 {
39 return nil, syscall.EINVAL
40 }
41 a := make([]byte, len(s)+1)
42 copy(a, s)
43 return a, nil
44}
45
46// BytePtrFromString returns a pointer to a NUL-terminated array of
47// bytes containing the text of s. If s contains a NUL byte at any
48// location, it returns (nil, syscall.EINVAL).
49func BytePtrFromString(s string) (*byte, error) {
50 a, err := ByteSliceFromString(s)
51 if err != nil {
52 return nil, err
53 }
54 return &a[0], nil
55}
56
57// ByteSliceToString returns a string form of the text represented by the slice s, with a terminating NUL and any
58// bytes after the NUL removed.
59func ByteSliceToString(s []byte) string {
60 if i := bytes.IndexByte(s, 0); i != -1 {
61 s = s[:i]
62 }
63 return string(s)
64}
65
66// BytePtrToString takes a pointer to a sequence of text and returns the corresponding string.
67// If the pointer is nil, it returns the empty string. It assumes that the text sequence is terminated
68// at a zero byte; if the zero byte is not present, the program may crash.
69func BytePtrToString(p *byte) string {
70 if p == nil {
71 return ""
72 }
73 if *p == 0 {
74 return ""
75 }
76
77 // Find NUL terminator.
78 n := 0
79 for ptr := unsafe.Pointer(p); *(*byte)(ptr) != 0; n++ {
80 ptr = unsafe.Pointer(uintptr(ptr) + 1)
81 }
82
83 return string(unsafe.Slice(p, n))
84}
85
86// Single-word zero for use when we need a valid pointer to 0 bytes.
87// See mksyscall.pl.
88var _zero uintptr
89
90func (ts *Timespec) Unix() (sec int64, nsec int64) {
91 return int64(ts.Sec), int64(ts.Nsec)
92}
93
94func (tv *Timeval) Unix() (sec int64, nsec int64) {
95 return int64(tv.Sec), int64(tv.Usec) * 1000
96}
97
98func (ts *Timespec) Nano() int64 {
99 return int64(ts.Sec)*1e9 + int64(ts.Nsec)
100}
101
102func (tv *Timeval) Nano() int64 {
103 return int64(tv.Sec)*1e9 + int64(tv.Usec)*1000
104}
diff --git a/vendor/golang.org/x/sys/windows/syscall_windows.go b/vendor/golang.org/x/sys/windows/syscall_windows.go
deleted file mode 100644
index 47dc579..0000000
--- a/vendor/golang.org/x/sys/windows/syscall_windows.go
+++ /dev/null
@@ -1,1836 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// Windows system calls.
6
7package windows
8
9import (
10 errorspkg "errors"
11 "fmt"
12 "runtime"
13 "sync"
14 "syscall"
15 "time"
16 "unicode/utf16"
17 "unsafe"
18)
19
20type Handle uintptr
21type HWND uintptr
22
23const (
24 InvalidHandle = ^Handle(0)
25 InvalidHWND = ^HWND(0)
26
27 // Flags for DefineDosDevice.
28 DDD_EXACT_MATCH_ON_REMOVE = 0x00000004
29 DDD_NO_BROADCAST_SYSTEM = 0x00000008
30 DDD_RAW_TARGET_PATH = 0x00000001
31 DDD_REMOVE_DEFINITION = 0x00000002
32
33 // Return values for GetDriveType.
34 DRIVE_UNKNOWN = 0
35 DRIVE_NO_ROOT_DIR = 1
36 DRIVE_REMOVABLE = 2
37 DRIVE_FIXED = 3
38 DRIVE_REMOTE = 4
39 DRIVE_CDROM = 5
40 DRIVE_RAMDISK = 6
41
42 // File system flags from GetVolumeInformation and GetVolumeInformationByHandle.
43 FILE_CASE_SENSITIVE_SEARCH = 0x00000001
44 FILE_CASE_PRESERVED_NAMES = 0x00000002
45 FILE_FILE_COMPRESSION = 0x00000010
46 FILE_DAX_VOLUME = 0x20000000
47 FILE_NAMED_STREAMS = 0x00040000
48 FILE_PERSISTENT_ACLS = 0x00000008
49 FILE_READ_ONLY_VOLUME = 0x00080000
50 FILE_SEQUENTIAL_WRITE_ONCE = 0x00100000
51 FILE_SUPPORTS_ENCRYPTION = 0x00020000
52 FILE_SUPPORTS_EXTENDED_ATTRIBUTES = 0x00800000
53 FILE_SUPPORTS_HARD_LINKS = 0x00400000
54 FILE_SUPPORTS_OBJECT_IDS = 0x00010000
55 FILE_SUPPORTS_OPEN_BY_FILE_ID = 0x01000000
56 FILE_SUPPORTS_REPARSE_POINTS = 0x00000080
57 FILE_SUPPORTS_SPARSE_FILES = 0x00000040
58 FILE_SUPPORTS_TRANSACTIONS = 0x00200000
59 FILE_SUPPORTS_USN_JOURNAL = 0x02000000
60 FILE_UNICODE_ON_DISK = 0x00000004
61 FILE_VOLUME_IS_COMPRESSED = 0x00008000
62 FILE_VOLUME_QUOTAS = 0x00000020
63
64 // Flags for LockFileEx.
65 LOCKFILE_FAIL_IMMEDIATELY = 0x00000001
66 LOCKFILE_EXCLUSIVE_LOCK = 0x00000002
67
68 // Return value of SleepEx and other APC functions
69 WAIT_IO_COMPLETION = 0x000000C0
70)
71
72// StringToUTF16 is deprecated. Use UTF16FromString instead.
73// If s contains a NUL byte this function panics instead of
74// returning an error.
75func StringToUTF16(s string) []uint16 {
76 a, err := UTF16FromString(s)
77 if err != nil {
78 panic("windows: string with NUL passed to StringToUTF16")
79 }
80 return a
81}
82
83// UTF16FromString returns the UTF-16 encoding of the UTF-8 string
84// s, with a terminating NUL added. If s contains a NUL byte at any
85// location, it returns (nil, syscall.EINVAL).
86func UTF16FromString(s string) ([]uint16, error) {
87 return syscall.UTF16FromString(s)
88}
89
90// UTF16ToString returns the UTF-8 encoding of the UTF-16 sequence s,
91// with a terminating NUL and any bytes after the NUL removed.
92func UTF16ToString(s []uint16) string {
93 return syscall.UTF16ToString(s)
94}
95
96// StringToUTF16Ptr is deprecated. Use UTF16PtrFromString instead.
97// If s contains a NUL byte this function panics instead of
98// returning an error.
99func StringToUTF16Ptr(s string) *uint16 { return &StringToUTF16(s)[0] }
100
101// UTF16PtrFromString returns pointer to the UTF-16 encoding of
102// the UTF-8 string s, with a terminating NUL added. If s
103// contains a NUL byte at any location, it returns (nil, syscall.EINVAL).
104func UTF16PtrFromString(s string) (*uint16, error) {
105 a, err := UTF16FromString(s)
106 if err != nil {
107 return nil, err
108 }
109 return &a[0], nil
110}
111
112// UTF16PtrToString takes a pointer to a UTF-16 sequence and returns the corresponding UTF-8 encoded string.
113// If the pointer is nil, it returns the empty string. It assumes that the UTF-16 sequence is terminated
114// at a zero word; if the zero word is not present, the program may crash.
115func UTF16PtrToString(p *uint16) string {
116 if p == nil {
117 return ""
118 }
119 if *p == 0 {
120 return ""
121 }
122
123 // Find NUL terminator.
124 n := 0
125 for ptr := unsafe.Pointer(p); *(*uint16)(ptr) != 0; n++ {
126 ptr = unsafe.Pointer(uintptr(ptr) + unsafe.Sizeof(*p))
127 }
128
129 return string(utf16.Decode(unsafe.Slice(p, n)))
130}
131
132func Getpagesize() int { return 4096 }
133
134// NewCallback converts a Go function to a function pointer conforming to the stdcall calling convention.
135// This is useful when interoperating with Windows code requiring callbacks.
136// The argument is expected to be a function with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
137func NewCallback(fn interface{}) uintptr {
138 return syscall.NewCallback(fn)
139}
140
141// NewCallbackCDecl converts a Go function to a function pointer conforming to the cdecl calling convention.
142// This is useful when interoperating with Windows code requiring callbacks.
143// The argument is expected to be a function with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
144func NewCallbackCDecl(fn interface{}) uintptr {
145 return syscall.NewCallbackCDecl(fn)
146}
147
148// windows api calls
149
150//sys GetLastError() (lasterr error)
151//sys LoadLibrary(libname string) (handle Handle, err error) = LoadLibraryW
152//sys LoadLibraryEx(libname string, zero Handle, flags uintptr) (handle Handle, err error) = LoadLibraryExW
153//sys FreeLibrary(handle Handle) (err error)
154//sys GetProcAddress(module Handle, procname string) (proc uintptr, err error)
155//sys GetModuleFileName(module Handle, filename *uint16, size uint32) (n uint32, err error) = kernel32.GetModuleFileNameW
156//sys GetModuleHandleEx(flags uint32, moduleName *uint16, module *Handle) (err error) = kernel32.GetModuleHandleExW
157//sys SetDefaultDllDirectories(directoryFlags uint32) (err error)
158//sys AddDllDirectory(path *uint16) (cookie uintptr, err error) = kernel32.AddDllDirectory
159//sys RemoveDllDirectory(cookie uintptr) (err error) = kernel32.RemoveDllDirectory
160//sys SetDllDirectory(path string) (err error) = kernel32.SetDllDirectoryW
161//sys GetVersion() (ver uint32, err error)
162//sys FormatMessage(flags uint32, msgsrc uintptr, msgid uint32, langid uint32, buf []uint16, args *byte) (n uint32, err error) = FormatMessageW
163//sys ExitProcess(exitcode uint32)
164//sys IsWow64Process(handle Handle, isWow64 *bool) (err error) = IsWow64Process
165//sys IsWow64Process2(handle Handle, processMachine *uint16, nativeMachine *uint16) (err error) = IsWow64Process2?
166//sys CreateFile(name *uint16, access uint32, mode uint32, sa *SecurityAttributes, createmode uint32, attrs uint32, templatefile Handle) (handle Handle, err error) [failretval==InvalidHandle] = CreateFileW
167//sys CreateNamedPipe(name *uint16, flags uint32, pipeMode uint32, maxInstances uint32, outSize uint32, inSize uint32, defaultTimeout uint32, sa *SecurityAttributes) (handle Handle, err error) [failretval==InvalidHandle] = CreateNamedPipeW
168//sys ConnectNamedPipe(pipe Handle, overlapped *Overlapped) (err error)
169//sys GetNamedPipeInfo(pipe Handle, flags *uint32, outSize *uint32, inSize *uint32, maxInstances *uint32) (err error)
170//sys GetNamedPipeHandleState(pipe Handle, state *uint32, curInstances *uint32, maxCollectionCount *uint32, collectDataTimeout *uint32, userName *uint16, maxUserNameSize uint32) (err error) = GetNamedPipeHandleStateW
171//sys SetNamedPipeHandleState(pipe Handle, state *uint32, maxCollectionCount *uint32, collectDataTimeout *uint32) (err error) = SetNamedPipeHandleState
172//sys readFile(handle Handle, buf []byte, done *uint32, overlapped *Overlapped) (err error) = ReadFile
173//sys writeFile(handle Handle, buf []byte, done *uint32, overlapped *Overlapped) (err error) = WriteFile
174//sys GetOverlappedResult(handle Handle, overlapped *Overlapped, done *uint32, wait bool) (err error)
175//sys SetFilePointer(handle Handle, lowoffset int32, highoffsetptr *int32, whence uint32) (newlowoffset uint32, err error) [failretval==0xffffffff]
176//sys CloseHandle(handle Handle) (err error)
177//sys GetStdHandle(stdhandle uint32) (handle Handle, err error) [failretval==InvalidHandle]
178//sys SetStdHandle(stdhandle uint32, handle Handle) (err error)
179//sys findFirstFile1(name *uint16, data *win32finddata1) (handle Handle, err error) [failretval==InvalidHandle] = FindFirstFileW
180//sys findNextFile1(handle Handle, data *win32finddata1) (err error) = FindNextFileW
181//sys FindClose(handle Handle) (err error)
182//sys GetFileInformationByHandle(handle Handle, data *ByHandleFileInformation) (err error)
183//sys GetFileInformationByHandleEx(handle Handle, class uint32, outBuffer *byte, outBufferLen uint32) (err error)
184//sys SetFileInformationByHandle(handle Handle, class uint32, inBuffer *byte, inBufferLen uint32) (err error)
185//sys GetCurrentDirectory(buflen uint32, buf *uint16) (n uint32, err error) = GetCurrentDirectoryW
186//sys SetCurrentDirectory(path *uint16) (err error) = SetCurrentDirectoryW
187//sys CreateDirectory(path *uint16, sa *SecurityAttributes) (err error) = CreateDirectoryW
188//sys RemoveDirectory(path *uint16) (err error) = RemoveDirectoryW
189//sys DeleteFile(path *uint16) (err error) = DeleteFileW
190//sys MoveFile(from *uint16, to *uint16) (err error) = MoveFileW
191//sys MoveFileEx(from *uint16, to *uint16, flags uint32) (err error) = MoveFileExW
192//sys LockFileEx(file Handle, flags uint32, reserved uint32, bytesLow uint32, bytesHigh uint32, overlapped *Overlapped) (err error)
193//sys UnlockFileEx(file Handle, reserved uint32, bytesLow uint32, bytesHigh uint32, overlapped *Overlapped) (err error)
194//sys GetComputerName(buf *uint16, n *uint32) (err error) = GetComputerNameW
195//sys GetComputerNameEx(nametype uint32, buf *uint16, n *uint32) (err error) = GetComputerNameExW
196//sys SetEndOfFile(handle Handle) (err error)
197//sys GetSystemTimeAsFileTime(time *Filetime)
198//sys GetSystemTimePreciseAsFileTime(time *Filetime)
199//sys GetTimeZoneInformation(tzi *Timezoneinformation) (rc uint32, err error) [failretval==0xffffffff]
200//sys CreateIoCompletionPort(filehandle Handle, cphandle Handle, key uintptr, threadcnt uint32) (handle Handle, err error)
201//sys GetQueuedCompletionStatus(cphandle Handle, qty *uint32, key *uintptr, overlapped **Overlapped, timeout uint32) (err error)
202//sys PostQueuedCompletionStatus(cphandle Handle, qty uint32, key uintptr, overlapped *Overlapped) (err error)
203//sys CancelIo(s Handle) (err error)
204//sys CancelIoEx(s Handle, o *Overlapped) (err error)
205//sys CreateProcess(appName *uint16, commandLine *uint16, procSecurity *SecurityAttributes, threadSecurity *SecurityAttributes, inheritHandles bool, creationFlags uint32, env *uint16, currentDir *uint16, startupInfo *StartupInfo, outProcInfo *ProcessInformation) (err error) = CreateProcessW
206//sys CreateProcessAsUser(token Token, appName *uint16, commandLine *uint16, procSecurity *SecurityAttributes, threadSecurity *SecurityAttributes, inheritHandles bool, creationFlags uint32, env *uint16, currentDir *uint16, startupInfo *StartupInfo, outProcInfo *ProcessInformation) (err error) = advapi32.CreateProcessAsUserW
207//sys initializeProcThreadAttributeList(attrlist *ProcThreadAttributeList, attrcount uint32, flags uint32, size *uintptr) (err error) = InitializeProcThreadAttributeList
208//sys deleteProcThreadAttributeList(attrlist *ProcThreadAttributeList) = DeleteProcThreadAttributeList
209//sys updateProcThreadAttribute(attrlist *ProcThreadAttributeList, flags uint32, attr uintptr, value unsafe.Pointer, size uintptr, prevvalue unsafe.Pointer, returnedsize *uintptr) (err error) = UpdateProcThreadAttribute
210//sys OpenProcess(desiredAccess uint32, inheritHandle bool, processId uint32) (handle Handle, err error)
211//sys ShellExecute(hwnd Handle, verb *uint16, file *uint16, args *uint16, cwd *uint16, showCmd int32) (err error) [failretval<=32] = shell32.ShellExecuteW
212//sys GetWindowThreadProcessId(hwnd HWND, pid *uint32) (tid uint32, err error) = user32.GetWindowThreadProcessId
213//sys GetShellWindow() (shellWindow HWND) = user32.GetShellWindow
214//sys MessageBox(hwnd HWND, text *uint16, caption *uint16, boxtype uint32) (ret int32, err error) [failretval==0] = user32.MessageBoxW
215//sys ExitWindowsEx(flags uint32, reason uint32) (err error) = user32.ExitWindowsEx
216//sys shGetKnownFolderPath(id *KNOWNFOLDERID, flags uint32, token Token, path **uint16) (ret error) = shell32.SHGetKnownFolderPath
217//sys TerminateProcess(handle Handle, exitcode uint32) (err error)
218//sys GetExitCodeProcess(handle Handle, exitcode *uint32) (err error)
219//sys getStartupInfo(startupInfo *StartupInfo) = GetStartupInfoW
220//sys GetProcessTimes(handle Handle, creationTime *Filetime, exitTime *Filetime, kernelTime *Filetime, userTime *Filetime) (err error)
221//sys DuplicateHandle(hSourceProcessHandle Handle, hSourceHandle Handle, hTargetProcessHandle Handle, lpTargetHandle *Handle, dwDesiredAccess uint32, bInheritHandle bool, dwOptions uint32) (err error)
222//sys WaitForSingleObject(handle Handle, waitMilliseconds uint32) (event uint32, err error) [failretval==0xffffffff]
223//sys waitForMultipleObjects(count uint32, handles uintptr, waitAll bool, waitMilliseconds uint32) (event uint32, err error) [failretval==0xffffffff] = WaitForMultipleObjects
224//sys GetTempPath(buflen uint32, buf *uint16) (n uint32, err error) = GetTempPathW
225//sys CreatePipe(readhandle *Handle, writehandle *Handle, sa *SecurityAttributes, size uint32) (err error)
226//sys GetFileType(filehandle Handle) (n uint32, err error)
227//sys CryptAcquireContext(provhandle *Handle, container *uint16, provider *uint16, provtype uint32, flags uint32) (err error) = advapi32.CryptAcquireContextW
228//sys CryptReleaseContext(provhandle Handle, flags uint32) (err error) = advapi32.CryptReleaseContext
229//sys CryptGenRandom(provhandle Handle, buflen uint32, buf *byte) (err error) = advapi32.CryptGenRandom
230//sys GetEnvironmentStrings() (envs *uint16, err error) [failretval==nil] = kernel32.GetEnvironmentStringsW
231//sys FreeEnvironmentStrings(envs *uint16) (err error) = kernel32.FreeEnvironmentStringsW
232//sys GetEnvironmentVariable(name *uint16, buffer *uint16, size uint32) (n uint32, err error) = kernel32.GetEnvironmentVariableW
233//sys SetEnvironmentVariable(name *uint16, value *uint16) (err error) = kernel32.SetEnvironmentVariableW
234//sys ExpandEnvironmentStrings(src *uint16, dst *uint16, size uint32) (n uint32, err error) = kernel32.ExpandEnvironmentStringsW
235//sys CreateEnvironmentBlock(block **uint16, token Token, inheritExisting bool) (err error) = userenv.CreateEnvironmentBlock
236//sys DestroyEnvironmentBlock(block *uint16) (err error) = userenv.DestroyEnvironmentBlock
237//sys getTickCount64() (ms uint64) = kernel32.GetTickCount64
238//sys GetFileTime(handle Handle, ctime *Filetime, atime *Filetime, wtime *Filetime) (err error)
239//sys SetFileTime(handle Handle, ctime *Filetime, atime *Filetime, wtime *Filetime) (err error)
240//sys GetFileAttributes(name *uint16) (attrs uint32, err error) [failretval==INVALID_FILE_ATTRIBUTES] = kernel32.GetFileAttributesW
241//sys SetFileAttributes(name *uint16, attrs uint32) (err error) = kernel32.SetFileAttributesW
242//sys GetFileAttributesEx(name *uint16, level uint32, info *byte) (err error) = kernel32.GetFileAttributesExW
243//sys GetCommandLine() (cmd *uint16) = kernel32.GetCommandLineW
244//sys commandLineToArgv(cmd *uint16, argc *int32) (argv **uint16, err error) [failretval==nil] = shell32.CommandLineToArgvW
245//sys LocalFree(hmem Handle) (handle Handle, err error) [failretval!=0]
246//sys LocalAlloc(flags uint32, length uint32) (ptr uintptr, err error)
247//sys SetHandleInformation(handle Handle, mask uint32, flags uint32) (err error)
248//sys FlushFileBuffers(handle Handle) (err error)
249//sys GetFullPathName(path *uint16, buflen uint32, buf *uint16, fname **uint16) (n uint32, err error) = kernel32.GetFullPathNameW
250//sys GetLongPathName(path *uint16, buf *uint16, buflen uint32) (n uint32, err error) = kernel32.GetLongPathNameW
251//sys GetShortPathName(longpath *uint16, shortpath *uint16, buflen uint32) (n uint32, err error) = kernel32.GetShortPathNameW
252//sys GetFinalPathNameByHandle(file Handle, filePath *uint16, filePathSize uint32, flags uint32) (n uint32, err error) = kernel32.GetFinalPathNameByHandleW
253//sys CreateFileMapping(fhandle Handle, sa *SecurityAttributes, prot uint32, maxSizeHigh uint32, maxSizeLow uint32, name *uint16) (handle Handle, err error) [failretval == 0 || e1 == ERROR_ALREADY_EXISTS] = kernel32.CreateFileMappingW
254//sys MapViewOfFile(handle Handle, access uint32, offsetHigh uint32, offsetLow uint32, length uintptr) (addr uintptr, err error)
255//sys UnmapViewOfFile(addr uintptr) (err error)
256//sys FlushViewOfFile(addr uintptr, length uintptr) (err error)
257//sys VirtualLock(addr uintptr, length uintptr) (err error)
258//sys VirtualUnlock(addr uintptr, length uintptr) (err error)
259//sys VirtualAlloc(address uintptr, size uintptr, alloctype uint32, protect uint32) (value uintptr, err error) = kernel32.VirtualAlloc
260//sys VirtualFree(address uintptr, size uintptr, freetype uint32) (err error) = kernel32.VirtualFree
261//sys VirtualProtect(address uintptr, size uintptr, newprotect uint32, oldprotect *uint32) (err error) = kernel32.VirtualProtect
262//sys VirtualProtectEx(process Handle, address uintptr, size uintptr, newProtect uint32, oldProtect *uint32) (err error) = kernel32.VirtualProtectEx
263//sys VirtualQuery(address uintptr, buffer *MemoryBasicInformation, length uintptr) (err error) = kernel32.VirtualQuery
264//sys VirtualQueryEx(process Handle, address uintptr, buffer *MemoryBasicInformation, length uintptr) (err error) = kernel32.VirtualQueryEx
265//sys ReadProcessMemory(process Handle, baseAddress uintptr, buffer *byte, size uintptr, numberOfBytesRead *uintptr) (err error) = kernel32.ReadProcessMemory
266//sys WriteProcessMemory(process Handle, baseAddress uintptr, buffer *byte, size uintptr, numberOfBytesWritten *uintptr) (err error) = kernel32.WriteProcessMemory
267//sys TransmitFile(s Handle, handle Handle, bytesToWrite uint32, bytsPerSend uint32, overlapped *Overlapped, transmitFileBuf *TransmitFileBuffers, flags uint32) (err error) = mswsock.TransmitFile
268//sys ReadDirectoryChanges(handle Handle, buf *byte, buflen uint32, watchSubTree bool, mask uint32, retlen *uint32, overlapped *Overlapped, completionRoutine uintptr) (err error) = kernel32.ReadDirectoryChangesW
269//sys FindFirstChangeNotification(path string, watchSubtree bool, notifyFilter uint32) (handle Handle, err error) [failretval==InvalidHandle] = kernel32.FindFirstChangeNotificationW
270//sys FindNextChangeNotification(handle Handle) (err error)
271//sys FindCloseChangeNotification(handle Handle) (err error)
272//sys CertOpenSystemStore(hprov Handle, name *uint16) (store Handle, err error) = crypt32.CertOpenSystemStoreW
273//sys CertOpenStore(storeProvider uintptr, msgAndCertEncodingType uint32, cryptProv uintptr, flags uint32, para uintptr) (handle Handle, err error) = crypt32.CertOpenStore
274//sys CertEnumCertificatesInStore(store Handle, prevContext *CertContext) (context *CertContext, err error) [failretval==nil] = crypt32.CertEnumCertificatesInStore
275//sys CertAddCertificateContextToStore(store Handle, certContext *CertContext, addDisposition uint32, storeContext **CertContext) (err error) = crypt32.CertAddCertificateContextToStore
276//sys CertCloseStore(store Handle, flags uint32) (err error) = crypt32.CertCloseStore
277//sys CertDeleteCertificateFromStore(certContext *CertContext) (err error) = crypt32.CertDeleteCertificateFromStore
278//sys CertDuplicateCertificateContext(certContext *CertContext) (dupContext *CertContext) = crypt32.CertDuplicateCertificateContext
279//sys PFXImportCertStore(pfx *CryptDataBlob, password *uint16, flags uint32) (store Handle, err error) = crypt32.PFXImportCertStore
280//sys CertGetCertificateChain(engine Handle, leaf *CertContext, time *Filetime, additionalStore Handle, para *CertChainPara, flags uint32, reserved uintptr, chainCtx **CertChainContext) (err error) = crypt32.CertGetCertificateChain
281//sys CertFreeCertificateChain(ctx *CertChainContext) = crypt32.CertFreeCertificateChain
282//sys CertCreateCertificateContext(certEncodingType uint32, certEncoded *byte, encodedLen uint32) (context *CertContext, err error) [failretval==nil] = crypt32.CertCreateCertificateContext
283//sys CertFreeCertificateContext(ctx *CertContext) (err error) = crypt32.CertFreeCertificateContext
284//sys CertVerifyCertificateChainPolicy(policyOID uintptr, chain *CertChainContext, para *CertChainPolicyPara, status *CertChainPolicyStatus) (err error) = crypt32.CertVerifyCertificateChainPolicy
285//sys CertGetNameString(certContext *CertContext, nameType uint32, flags uint32, typePara unsafe.Pointer, name *uint16, size uint32) (chars uint32) = crypt32.CertGetNameStringW
286//sys CertFindExtension(objId *byte, countExtensions uint32, extensions *CertExtension) (ret *CertExtension) = crypt32.CertFindExtension
287//sys CertFindCertificateInStore(store Handle, certEncodingType uint32, findFlags uint32, findType uint32, findPara unsafe.Pointer, prevCertContext *CertContext) (cert *CertContext, err error) [failretval==nil] = crypt32.CertFindCertificateInStore
288//sys CertFindChainInStore(store Handle, certEncodingType uint32, findFlags uint32, findType uint32, findPara unsafe.Pointer, prevChainContext *CertChainContext) (certchain *CertChainContext, err error) [failretval==nil] = crypt32.CertFindChainInStore
289//sys CryptAcquireCertificatePrivateKey(cert *CertContext, flags uint32, parameters unsafe.Pointer, cryptProvOrNCryptKey *Handle, keySpec *uint32, callerFreeProvOrNCryptKey *bool) (err error) = crypt32.CryptAcquireCertificatePrivateKey
290//sys CryptQueryObject(objectType uint32, object unsafe.Pointer, expectedContentTypeFlags uint32, expectedFormatTypeFlags uint32, flags uint32, msgAndCertEncodingType *uint32, contentType *uint32, formatType *uint32, certStore *Handle, msg *Handle, context *unsafe.Pointer) (err error) = crypt32.CryptQueryObject
291//sys CryptDecodeObject(encodingType uint32, structType *byte, encodedBytes *byte, lenEncodedBytes uint32, flags uint32, decoded unsafe.Pointer, decodedLen *uint32) (err error) = crypt32.CryptDecodeObject
292//sys CryptProtectData(dataIn *DataBlob, name *uint16, optionalEntropy *DataBlob, reserved uintptr, promptStruct *CryptProtectPromptStruct, flags uint32, dataOut *DataBlob) (err error) = crypt32.CryptProtectData
293//sys CryptUnprotectData(dataIn *DataBlob, name **uint16, optionalEntropy *DataBlob, reserved uintptr, promptStruct *CryptProtectPromptStruct, flags uint32, dataOut *DataBlob) (err error) = crypt32.CryptUnprotectData
294//sys WinVerifyTrustEx(hwnd HWND, actionId *GUID, data *WinTrustData) (ret error) = wintrust.WinVerifyTrustEx
295//sys RegOpenKeyEx(key Handle, subkey *uint16, options uint32, desiredAccess uint32, result *Handle) (regerrno error) = advapi32.RegOpenKeyExW
296//sys RegCloseKey(key Handle) (regerrno error) = advapi32.RegCloseKey
297//sys RegQueryInfoKey(key Handle, class *uint16, classLen *uint32, reserved *uint32, subkeysLen *uint32, maxSubkeyLen *uint32, maxClassLen *uint32, valuesLen *uint32, maxValueNameLen *uint32, maxValueLen *uint32, saLen *uint32, lastWriteTime *Filetime) (regerrno error) = advapi32.RegQueryInfoKeyW
298//sys RegEnumKeyEx(key Handle, index uint32, name *uint16, nameLen *uint32, reserved *uint32, class *uint16, classLen *uint32, lastWriteTime *Filetime) (regerrno error) = advapi32.RegEnumKeyExW
299//sys RegQueryValueEx(key Handle, name *uint16, reserved *uint32, valtype *uint32, buf *byte, buflen *uint32) (regerrno error) = advapi32.RegQueryValueExW
300//sys RegNotifyChangeKeyValue(key Handle, watchSubtree bool, notifyFilter uint32, event Handle, asynchronous bool) (regerrno error) = advapi32.RegNotifyChangeKeyValue
301//sys GetCurrentProcessId() (pid uint32) = kernel32.GetCurrentProcessId
302//sys ProcessIdToSessionId(pid uint32, sessionid *uint32) (err error) = kernel32.ProcessIdToSessionId
303//sys ClosePseudoConsole(console Handle) = kernel32.ClosePseudoConsole
304//sys createPseudoConsole(size uint32, in Handle, out Handle, flags uint32, pconsole *Handle) (hr error) = kernel32.CreatePseudoConsole
305//sys GetConsoleMode(console Handle, mode *uint32) (err error) = kernel32.GetConsoleMode
306//sys SetConsoleMode(console Handle, mode uint32) (err error) = kernel32.SetConsoleMode
307//sys GetConsoleScreenBufferInfo(console Handle, info *ConsoleScreenBufferInfo) (err error) = kernel32.GetConsoleScreenBufferInfo
308//sys setConsoleCursorPosition(console Handle, position uint32) (err error) = kernel32.SetConsoleCursorPosition
309//sys WriteConsole(console Handle, buf *uint16, towrite uint32, written *uint32, reserved *byte) (err error) = kernel32.WriteConsoleW
310//sys ReadConsole(console Handle, buf *uint16, toread uint32, read *uint32, inputControl *byte) (err error) = kernel32.ReadConsoleW
311//sys resizePseudoConsole(pconsole Handle, size uint32) (hr error) = kernel32.ResizePseudoConsole
312//sys CreateToolhelp32Snapshot(flags uint32, processId uint32) (handle Handle, err error) [failretval==InvalidHandle] = kernel32.CreateToolhelp32Snapshot
313//sys Module32First(snapshot Handle, moduleEntry *ModuleEntry32) (err error) = kernel32.Module32FirstW
314//sys Module32Next(snapshot Handle, moduleEntry *ModuleEntry32) (err error) = kernel32.Module32NextW
315//sys Process32First(snapshot Handle, procEntry *ProcessEntry32) (err error) = kernel32.Process32FirstW
316//sys Process32Next(snapshot Handle, procEntry *ProcessEntry32) (err error) = kernel32.Process32NextW
317//sys Thread32First(snapshot Handle, threadEntry *ThreadEntry32) (err error)
318//sys Thread32Next(snapshot Handle, threadEntry *ThreadEntry32) (err error)
319//sys DeviceIoControl(handle Handle, ioControlCode uint32, inBuffer *byte, inBufferSize uint32, outBuffer *byte, outBufferSize uint32, bytesReturned *uint32, overlapped *Overlapped) (err error)
320// This function returns 1 byte BOOLEAN rather than the 4 byte BOOL.
321//sys CreateSymbolicLink(symlinkfilename *uint16, targetfilename *uint16, flags uint32) (err error) [failretval&0xff==0] = CreateSymbolicLinkW
322//sys CreateHardLink(filename *uint16, existingfilename *uint16, reserved uintptr) (err error) [failretval&0xff==0] = CreateHardLinkW
323//sys GetCurrentThreadId() (id uint32)
324//sys CreateEvent(eventAttrs *SecurityAttributes, manualReset uint32, initialState uint32, name *uint16) (handle Handle, err error) [failretval == 0 || e1 == ERROR_ALREADY_EXISTS] = kernel32.CreateEventW
325//sys CreateEventEx(eventAttrs *SecurityAttributes, name *uint16, flags uint32, desiredAccess uint32) (handle Handle, err error) [failretval == 0 || e1 == ERROR_ALREADY_EXISTS] = kernel32.CreateEventExW
326//sys OpenEvent(desiredAccess uint32, inheritHandle bool, name *uint16) (handle Handle, err error) = kernel32.OpenEventW
327//sys SetEvent(event Handle) (err error) = kernel32.SetEvent
328//sys ResetEvent(event Handle) (err error) = kernel32.ResetEvent
329//sys PulseEvent(event Handle) (err error) = kernel32.PulseEvent
330//sys CreateMutex(mutexAttrs *SecurityAttributes, initialOwner bool, name *uint16) (handle Handle, err error) [failretval == 0 || e1 == ERROR_ALREADY_EXISTS] = kernel32.CreateMutexW
331//sys CreateMutexEx(mutexAttrs *SecurityAttributes, name *uint16, flags uint32, desiredAccess uint32) (handle Handle, err error) [failretval == 0 || e1 == ERROR_ALREADY_EXISTS] = kernel32.CreateMutexExW
332//sys OpenMutex(desiredAccess uint32, inheritHandle bool, name *uint16) (handle Handle, err error) = kernel32.OpenMutexW
333//sys ReleaseMutex(mutex Handle) (err error) = kernel32.ReleaseMutex
334//sys SleepEx(milliseconds uint32, alertable bool) (ret uint32) = kernel32.SleepEx
335//sys CreateJobObject(jobAttr *SecurityAttributes, name *uint16) (handle Handle, err error) = kernel32.CreateJobObjectW
336//sys AssignProcessToJobObject(job Handle, process Handle) (err error) = kernel32.AssignProcessToJobObject
337//sys TerminateJobObject(job Handle, exitCode uint32) (err error) = kernel32.TerminateJobObject
338//sys SetErrorMode(mode uint32) (ret uint32) = kernel32.SetErrorMode
339//sys ResumeThread(thread Handle) (ret uint32, err error) [failretval==0xffffffff] = kernel32.ResumeThread
340//sys SetPriorityClass(process Handle, priorityClass uint32) (err error) = kernel32.SetPriorityClass
341//sys GetPriorityClass(process Handle) (ret uint32, err error) = kernel32.GetPriorityClass
342//sys QueryInformationJobObject(job Handle, JobObjectInformationClass int32, JobObjectInformation uintptr, JobObjectInformationLength uint32, retlen *uint32) (err error) = kernel32.QueryInformationJobObject
343//sys SetInformationJobObject(job Handle, JobObjectInformationClass uint32, JobObjectInformation uintptr, JobObjectInformationLength uint32) (ret int, err error)
344//sys GenerateConsoleCtrlEvent(ctrlEvent uint32, processGroupID uint32) (err error)
345//sys GetProcessId(process Handle) (id uint32, err error)
346//sys QueryFullProcessImageName(proc Handle, flags uint32, exeName *uint16, size *uint32) (err error) = kernel32.QueryFullProcessImageNameW
347//sys OpenThread(desiredAccess uint32, inheritHandle bool, threadId uint32) (handle Handle, err error)
348//sys SetProcessPriorityBoost(process Handle, disable bool) (err error) = kernel32.SetProcessPriorityBoost
349//sys GetProcessWorkingSetSizeEx(hProcess Handle, lpMinimumWorkingSetSize *uintptr, lpMaximumWorkingSetSize *uintptr, flags *uint32)
350//sys SetProcessWorkingSetSizeEx(hProcess Handle, dwMinimumWorkingSetSize uintptr, dwMaximumWorkingSetSize uintptr, flags uint32) (err error)
351//sys GetCommTimeouts(handle Handle, timeouts *CommTimeouts) (err error)
352//sys SetCommTimeouts(handle Handle, timeouts *CommTimeouts) (err error)
353//sys GetActiveProcessorCount(groupNumber uint16) (ret uint32)
354//sys GetMaximumProcessorCount(groupNumber uint16) (ret uint32)
355//sys EnumWindows(enumFunc uintptr, param unsafe.Pointer) (err error) = user32.EnumWindows
356//sys EnumChildWindows(hwnd HWND, enumFunc uintptr, param unsafe.Pointer) = user32.EnumChildWindows
357//sys GetClassName(hwnd HWND, className *uint16, maxCount int32) (copied int32, err error) = user32.GetClassNameW
358//sys GetDesktopWindow() (hwnd HWND) = user32.GetDesktopWindow
359//sys GetForegroundWindow() (hwnd HWND) = user32.GetForegroundWindow
360//sys IsWindow(hwnd HWND) (isWindow bool) = user32.IsWindow
361//sys IsWindowUnicode(hwnd HWND) (isUnicode bool) = user32.IsWindowUnicode
362//sys IsWindowVisible(hwnd HWND) (isVisible bool) = user32.IsWindowVisible
363//sys GetGUIThreadInfo(thread uint32, info *GUIThreadInfo) (err error) = user32.GetGUIThreadInfo
364//sys GetLargePageMinimum() (size uintptr)
365
366// Volume Management Functions
367//sys DefineDosDevice(flags uint32, deviceName *uint16, targetPath *uint16) (err error) = DefineDosDeviceW
368//sys DeleteVolumeMountPoint(volumeMountPoint *uint16) (err error) = DeleteVolumeMountPointW
369//sys FindFirstVolume(volumeName *uint16, bufferLength uint32) (handle Handle, err error) [failretval==InvalidHandle] = FindFirstVolumeW
370//sys FindFirstVolumeMountPoint(rootPathName *uint16, volumeMountPoint *uint16, bufferLength uint32) (handle Handle, err error) [failretval==InvalidHandle] = FindFirstVolumeMountPointW
371//sys FindNextVolume(findVolume Handle, volumeName *uint16, bufferLength uint32) (err error) = FindNextVolumeW
372//sys FindNextVolumeMountPoint(findVolumeMountPoint Handle, volumeMountPoint *uint16, bufferLength uint32) (err error) = FindNextVolumeMountPointW
373//sys FindVolumeClose(findVolume Handle) (err error)
374//sys FindVolumeMountPointClose(findVolumeMountPoint Handle) (err error)
375//sys GetDiskFreeSpaceEx(directoryName *uint16, freeBytesAvailableToCaller *uint64, totalNumberOfBytes *uint64, totalNumberOfFreeBytes *uint64) (err error) = GetDiskFreeSpaceExW
376//sys GetDriveType(rootPathName *uint16) (driveType uint32) = GetDriveTypeW
377//sys GetLogicalDrives() (drivesBitMask uint32, err error) [failretval==0]
378//sys GetLogicalDriveStrings(bufferLength uint32, buffer *uint16) (n uint32, err error) [failretval==0] = GetLogicalDriveStringsW
379//sys GetVolumeInformation(rootPathName *uint16, volumeNameBuffer *uint16, volumeNameSize uint32, volumeNameSerialNumber *uint32, maximumComponentLength *uint32, fileSystemFlags *uint32, fileSystemNameBuffer *uint16, fileSystemNameSize uint32) (err error) = GetVolumeInformationW
380//sys GetVolumeInformationByHandle(file Handle, volumeNameBuffer *uint16, volumeNameSize uint32, volumeNameSerialNumber *uint32, maximumComponentLength *uint32, fileSystemFlags *uint32, fileSystemNameBuffer *uint16, fileSystemNameSize uint32) (err error) = GetVolumeInformationByHandleW
381//sys GetVolumeNameForVolumeMountPoint(volumeMountPoint *uint16, volumeName *uint16, bufferlength uint32) (err error) = GetVolumeNameForVolumeMountPointW
382//sys GetVolumePathName(fileName *uint16, volumePathName *uint16, bufferLength uint32) (err error) = GetVolumePathNameW
383//sys GetVolumePathNamesForVolumeName(volumeName *uint16, volumePathNames *uint16, bufferLength uint32, returnLength *uint32) (err error) = GetVolumePathNamesForVolumeNameW
384//sys QueryDosDevice(deviceName *uint16, targetPath *uint16, max uint32) (n uint32, err error) [failretval==0] = QueryDosDeviceW
385//sys SetVolumeLabel(rootPathName *uint16, volumeName *uint16) (err error) = SetVolumeLabelW
386//sys SetVolumeMountPoint(volumeMountPoint *uint16, volumeName *uint16) (err error) = SetVolumeMountPointW
387//sys InitiateSystemShutdownEx(machineName *uint16, message *uint16, timeout uint32, forceAppsClosed bool, rebootAfterShutdown bool, reason uint32) (err error) = advapi32.InitiateSystemShutdownExW
388//sys SetProcessShutdownParameters(level uint32, flags uint32) (err error) = kernel32.SetProcessShutdownParameters
389//sys GetProcessShutdownParameters(level *uint32, flags *uint32) (err error) = kernel32.GetProcessShutdownParameters
390//sys clsidFromString(lpsz *uint16, pclsid *GUID) (ret error) = ole32.CLSIDFromString
391//sys stringFromGUID2(rguid *GUID, lpsz *uint16, cchMax int32) (chars int32) = ole32.StringFromGUID2
392//sys coCreateGuid(pguid *GUID) (ret error) = ole32.CoCreateGuid
393//sys CoTaskMemFree(address unsafe.Pointer) = ole32.CoTaskMemFree
394//sys CoInitializeEx(reserved uintptr, coInit uint32) (ret error) = ole32.CoInitializeEx
395//sys CoUninitialize() = ole32.CoUninitialize
396//sys CoGetObject(name *uint16, bindOpts *BIND_OPTS3, guid *GUID, functionTable **uintptr) (ret error) = ole32.CoGetObject
397//sys getProcessPreferredUILanguages(flags uint32, numLanguages *uint32, buf *uint16, bufSize *uint32) (err error) = kernel32.GetProcessPreferredUILanguages
398//sys getThreadPreferredUILanguages(flags uint32, numLanguages *uint32, buf *uint16, bufSize *uint32) (err error) = kernel32.GetThreadPreferredUILanguages
399//sys getUserPreferredUILanguages(flags uint32, numLanguages *uint32, buf *uint16, bufSize *uint32) (err error) = kernel32.GetUserPreferredUILanguages
400//sys getSystemPreferredUILanguages(flags uint32, numLanguages *uint32, buf *uint16, bufSize *uint32) (err error) = kernel32.GetSystemPreferredUILanguages
401//sys findResource(module Handle, name uintptr, resType uintptr) (resInfo Handle, err error) = kernel32.FindResourceW
402//sys SizeofResource(module Handle, resInfo Handle) (size uint32, err error) = kernel32.SizeofResource
403//sys LoadResource(module Handle, resInfo Handle) (resData Handle, err error) = kernel32.LoadResource
404//sys LockResource(resData Handle) (addr uintptr, err error) = kernel32.LockResource
405
406// Version APIs
407//sys GetFileVersionInfoSize(filename string, zeroHandle *Handle) (bufSize uint32, err error) = version.GetFileVersionInfoSizeW
408//sys GetFileVersionInfo(filename string, handle uint32, bufSize uint32, buffer unsafe.Pointer) (err error) = version.GetFileVersionInfoW
409//sys VerQueryValue(block unsafe.Pointer, subBlock string, pointerToBufferPointer unsafe.Pointer, bufSize *uint32) (err error) = version.VerQueryValueW
410
411// Process Status API (PSAPI)
412//sys enumProcesses(processIds *uint32, nSize uint32, bytesReturned *uint32) (err error) = psapi.EnumProcesses
413//sys EnumProcessModules(process Handle, module *Handle, cb uint32, cbNeeded *uint32) (err error) = psapi.EnumProcessModules
414//sys EnumProcessModulesEx(process Handle, module *Handle, cb uint32, cbNeeded *uint32, filterFlag uint32) (err error) = psapi.EnumProcessModulesEx
415//sys GetModuleInformation(process Handle, module Handle, modinfo *ModuleInfo, cb uint32) (err error) = psapi.GetModuleInformation
416//sys GetModuleFileNameEx(process Handle, module Handle, filename *uint16, size uint32) (err error) = psapi.GetModuleFileNameExW
417//sys GetModuleBaseName(process Handle, module Handle, baseName *uint16, size uint32) (err error) = psapi.GetModuleBaseNameW
418//sys QueryWorkingSetEx(process Handle, pv uintptr, cb uint32) (err error) = psapi.QueryWorkingSetEx
419
420// NT Native APIs
421//sys rtlNtStatusToDosErrorNoTeb(ntstatus NTStatus) (ret syscall.Errno) = ntdll.RtlNtStatusToDosErrorNoTeb
422//sys rtlGetVersion(info *OsVersionInfoEx) (ntstatus error) = ntdll.RtlGetVersion
423//sys rtlGetNtVersionNumbers(majorVersion *uint32, minorVersion *uint32, buildNumber *uint32) = ntdll.RtlGetNtVersionNumbers
424//sys RtlGetCurrentPeb() (peb *PEB) = ntdll.RtlGetCurrentPeb
425//sys RtlInitUnicodeString(destinationString *NTUnicodeString, sourceString *uint16) = ntdll.RtlInitUnicodeString
426//sys RtlInitString(destinationString *NTString, sourceString *byte) = ntdll.RtlInitString
427//sys NtCreateFile(handle *Handle, access uint32, oa *OBJECT_ATTRIBUTES, iosb *IO_STATUS_BLOCK, allocationSize *int64, attributes uint32, share uint32, disposition uint32, options uint32, eabuffer uintptr, ealength uint32) (ntstatus error) = ntdll.NtCreateFile
428//sys NtCreateNamedPipeFile(pipe *Handle, access uint32, oa *OBJECT_ATTRIBUTES, iosb *IO_STATUS_BLOCK, share uint32, disposition uint32, options uint32, typ uint32, readMode uint32, completionMode uint32, maxInstances uint32, inboundQuota uint32, outputQuota uint32, timeout *int64) (ntstatus error) = ntdll.NtCreateNamedPipeFile
429//sys NtSetInformationFile(handle Handle, iosb *IO_STATUS_BLOCK, inBuffer *byte, inBufferLen uint32, class uint32) (ntstatus error) = ntdll.NtSetInformationFile
430//sys RtlDosPathNameToNtPathName(dosName *uint16, ntName *NTUnicodeString, ntFileNamePart *uint16, relativeName *RTL_RELATIVE_NAME) (ntstatus error) = ntdll.RtlDosPathNameToNtPathName_U_WithStatus
431//sys RtlDosPathNameToRelativeNtPathName(dosName *uint16, ntName *NTUnicodeString, ntFileNamePart *uint16, relativeName *RTL_RELATIVE_NAME) (ntstatus error) = ntdll.RtlDosPathNameToRelativeNtPathName_U_WithStatus
432//sys RtlDefaultNpAcl(acl **ACL) (ntstatus error) = ntdll.RtlDefaultNpAcl
433//sys NtQueryInformationProcess(proc Handle, procInfoClass int32, procInfo unsafe.Pointer, procInfoLen uint32, retLen *uint32) (ntstatus error) = ntdll.NtQueryInformationProcess
434//sys NtSetInformationProcess(proc Handle, procInfoClass int32, procInfo unsafe.Pointer, procInfoLen uint32) (ntstatus error) = ntdll.NtSetInformationProcess
435//sys NtQuerySystemInformation(sysInfoClass int32, sysInfo unsafe.Pointer, sysInfoLen uint32, retLen *uint32) (ntstatus error) = ntdll.NtQuerySystemInformation
436//sys NtSetSystemInformation(sysInfoClass int32, sysInfo unsafe.Pointer, sysInfoLen uint32) (ntstatus error) = ntdll.NtSetSystemInformation
437//sys RtlAddFunctionTable(functionTable *RUNTIME_FUNCTION, entryCount uint32, baseAddress uintptr) (ret bool) = ntdll.RtlAddFunctionTable
438//sys RtlDeleteFunctionTable(functionTable *RUNTIME_FUNCTION) (ret bool) = ntdll.RtlDeleteFunctionTable
439
440// Desktop Window Manager API (Dwmapi)
441//sys DwmGetWindowAttribute(hwnd HWND, attribute uint32, value unsafe.Pointer, size uint32) (ret error) = dwmapi.DwmGetWindowAttribute
442//sys DwmSetWindowAttribute(hwnd HWND, attribute uint32, value unsafe.Pointer, size uint32) (ret error) = dwmapi.DwmSetWindowAttribute
443
444// Windows Multimedia API
445//sys TimeBeginPeriod (period uint32) (err error) [failretval != 0] = winmm.timeBeginPeriod
446//sys TimeEndPeriod (period uint32) (err error) [failretval != 0] = winmm.timeEndPeriod
447
448// syscall interface implementation for other packages
449
450// GetCurrentProcess returns the handle for the current process.
451// It is a pseudo handle that does not need to be closed.
452// The returned error is always nil.
453//
454// Deprecated: use CurrentProcess for the same Handle without the nil
455// error.
456func GetCurrentProcess() (Handle, error) {
457 return CurrentProcess(), nil
458}
459
460// CurrentProcess returns the handle for the current process.
461// It is a pseudo handle that does not need to be closed.
462func CurrentProcess() Handle { return Handle(^uintptr(1 - 1)) }
463
464// GetCurrentThread returns the handle for the current thread.
465// It is a pseudo handle that does not need to be closed.
466// The returned error is always nil.
467//
468// Deprecated: use CurrentThread for the same Handle without the nil
469// error.
470func GetCurrentThread() (Handle, error) {
471 return CurrentThread(), nil
472}
473
474// CurrentThread returns the handle for the current thread.
475// It is a pseudo handle that does not need to be closed.
476func CurrentThread() Handle { return Handle(^uintptr(2 - 1)) }
477
478// GetProcAddressByOrdinal retrieves the address of the exported
479// function from module by ordinal.
480func GetProcAddressByOrdinal(module Handle, ordinal uintptr) (proc uintptr, err error) {
481 r0, _, e1 := syscall.Syscall(procGetProcAddress.Addr(), 2, uintptr(module), ordinal, 0)
482 proc = uintptr(r0)
483 if proc == 0 {
484 err = errnoErr(e1)
485 }
486 return
487}
488
489func Exit(code int) { ExitProcess(uint32(code)) }
490
491func makeInheritSa() *SecurityAttributes {
492 var sa SecurityAttributes
493 sa.Length = uint32(unsafe.Sizeof(sa))
494 sa.InheritHandle = 1
495 return &sa
496}
497
498func Open(path string, mode int, perm uint32) (fd Handle, err error) {
499 if len(path) == 0 {
500 return InvalidHandle, ERROR_FILE_NOT_FOUND
501 }
502 pathp, err := UTF16PtrFromString(path)
503 if err != nil {
504 return InvalidHandle, err
505 }
506 var access uint32
507 switch mode & (O_RDONLY | O_WRONLY | O_RDWR) {
508 case O_RDONLY:
509 access = GENERIC_READ
510 case O_WRONLY:
511 access = GENERIC_WRITE
512 case O_RDWR:
513 access = GENERIC_READ | GENERIC_WRITE
514 }
515 if mode&O_CREAT != 0 {
516 access |= GENERIC_WRITE
517 }
518 if mode&O_APPEND != 0 {
519 access &^= GENERIC_WRITE
520 access |= FILE_APPEND_DATA
521 }
522 sharemode := uint32(FILE_SHARE_READ | FILE_SHARE_WRITE)
523 var sa *SecurityAttributes
524 if mode&O_CLOEXEC == 0 {
525 sa = makeInheritSa()
526 }
527 var createmode uint32
528 switch {
529 case mode&(O_CREAT|O_EXCL) == (O_CREAT | O_EXCL):
530 createmode = CREATE_NEW
531 case mode&(O_CREAT|O_TRUNC) == (O_CREAT | O_TRUNC):
532 createmode = CREATE_ALWAYS
533 case mode&O_CREAT == O_CREAT:
534 createmode = OPEN_ALWAYS
535 case mode&O_TRUNC == O_TRUNC:
536 createmode = TRUNCATE_EXISTING
537 default:
538 createmode = OPEN_EXISTING
539 }
540 var attrs uint32 = FILE_ATTRIBUTE_NORMAL
541 if perm&S_IWRITE == 0 {
542 attrs = FILE_ATTRIBUTE_READONLY
543 }
544 h, e := CreateFile(pathp, access, sharemode, sa, createmode, attrs, 0)
545 return h, e
546}
547
548func Read(fd Handle, p []byte) (n int, err error) {
549 var done uint32
550 e := ReadFile(fd, p, &done, nil)
551 if e != nil {
552 if e == ERROR_BROKEN_PIPE {
553 // NOTE(brainman): work around ERROR_BROKEN_PIPE is returned on reading EOF from stdin
554 return 0, nil
555 }
556 return 0, e
557 }
558 return int(done), nil
559}
560
561func Write(fd Handle, p []byte) (n int, err error) {
562 if raceenabled {
563 raceReleaseMerge(unsafe.Pointer(&ioSync))
564 }
565 var done uint32
566 e := WriteFile(fd, p, &done, nil)
567 if e != nil {
568 return 0, e
569 }
570 return int(done), nil
571}
572
573func ReadFile(fd Handle, p []byte, done *uint32, overlapped *Overlapped) error {
574 err := readFile(fd, p, done, overlapped)
575 if raceenabled {
576 if *done > 0 {
577 raceWriteRange(unsafe.Pointer(&p[0]), int(*done))
578 }
579 raceAcquire(unsafe.Pointer(&ioSync))
580 }
581 return err
582}
583
584func WriteFile(fd Handle, p []byte, done *uint32, overlapped *Overlapped) error {
585 if raceenabled {
586 raceReleaseMerge(unsafe.Pointer(&ioSync))
587 }
588 err := writeFile(fd, p, done, overlapped)
589 if raceenabled && *done > 0 {
590 raceReadRange(unsafe.Pointer(&p[0]), int(*done))
591 }
592 return err
593}
594
595var ioSync int64
596
597func Seek(fd Handle, offset int64, whence int) (newoffset int64, err error) {
598 var w uint32
599 switch whence {
600 case 0:
601 w = FILE_BEGIN
602 case 1:
603 w = FILE_CURRENT
604 case 2:
605 w = FILE_END
606 }
607 hi := int32(offset >> 32)
608 lo := int32(offset)
609 // use GetFileType to check pipe, pipe can't do seek
610 ft, _ := GetFileType(fd)
611 if ft == FILE_TYPE_PIPE {
612 return 0, syscall.EPIPE
613 }
614 rlo, e := SetFilePointer(fd, lo, &hi, w)
615 if e != nil {
616 return 0, e
617 }
618 return int64(hi)<<32 + int64(rlo), nil
619}
620
621func Close(fd Handle) (err error) {
622 return CloseHandle(fd)
623}
624
625var (
626 Stdin = getStdHandle(STD_INPUT_HANDLE)
627 Stdout = getStdHandle(STD_OUTPUT_HANDLE)
628 Stderr = getStdHandle(STD_ERROR_HANDLE)
629)
630
631func getStdHandle(stdhandle uint32) (fd Handle) {
632 r, _ := GetStdHandle(stdhandle)
633 return r
634}
635
636const ImplementsGetwd = true
637
638func Getwd() (wd string, err error) {
639 b := make([]uint16, 300)
640 n, e := GetCurrentDirectory(uint32(len(b)), &b[0])
641 if e != nil {
642 return "", e
643 }
644 return string(utf16.Decode(b[0:n])), nil
645}
646
647func Chdir(path string) (err error) {
648 pathp, err := UTF16PtrFromString(path)
649 if err != nil {
650 return err
651 }
652 return SetCurrentDirectory(pathp)
653}
654
655func Mkdir(path string, mode uint32) (err error) {
656 pathp, err := UTF16PtrFromString(path)
657 if err != nil {
658 return err
659 }
660 return CreateDirectory(pathp, nil)
661}
662
663func Rmdir(path string) (err error) {
664 pathp, err := UTF16PtrFromString(path)
665 if err != nil {
666 return err
667 }
668 return RemoveDirectory(pathp)
669}
670
671func Unlink(path string) (err error) {
672 pathp, err := UTF16PtrFromString(path)
673 if err != nil {
674 return err
675 }
676 return DeleteFile(pathp)
677}
678
679func Rename(oldpath, newpath string) (err error) {
680 from, err := UTF16PtrFromString(oldpath)
681 if err != nil {
682 return err
683 }
684 to, err := UTF16PtrFromString(newpath)
685 if err != nil {
686 return err
687 }
688 return MoveFileEx(from, to, MOVEFILE_REPLACE_EXISTING)
689}
690
691func ComputerName() (name string, err error) {
692 var n uint32 = MAX_COMPUTERNAME_LENGTH + 1
693 b := make([]uint16, n)
694 e := GetComputerName(&b[0], &n)
695 if e != nil {
696 return "", e
697 }
698 return string(utf16.Decode(b[0:n])), nil
699}
700
701func DurationSinceBoot() time.Duration {
702 return time.Duration(getTickCount64()) * time.Millisecond
703}
704
705func Ftruncate(fd Handle, length int64) (err error) {
706 curoffset, e := Seek(fd, 0, 1)
707 if e != nil {
708 return e
709 }
710 defer Seek(fd, curoffset, 0)
711 _, e = Seek(fd, length, 0)
712 if e != nil {
713 return e
714 }
715 e = SetEndOfFile(fd)
716 if e != nil {
717 return e
718 }
719 return nil
720}
721
722func Gettimeofday(tv *Timeval) (err error) {
723 var ft Filetime
724 GetSystemTimeAsFileTime(&ft)
725 *tv = NsecToTimeval(ft.Nanoseconds())
726 return nil
727}
728
729func Pipe(p []Handle) (err error) {
730 if len(p) != 2 {
731 return syscall.EINVAL
732 }
733 var r, w Handle
734 e := CreatePipe(&r, &w, makeInheritSa(), 0)
735 if e != nil {
736 return e
737 }
738 p[0] = r
739 p[1] = w
740 return nil
741}
742
743func Utimes(path string, tv []Timeval) (err error) {
744 if len(tv) != 2 {
745 return syscall.EINVAL
746 }
747 pathp, e := UTF16PtrFromString(path)
748 if e != nil {
749 return e
750 }
751 h, e := CreateFile(pathp,
752 FILE_WRITE_ATTRIBUTES, FILE_SHARE_WRITE, nil,
753 OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, 0)
754 if e != nil {
755 return e
756 }
757 defer CloseHandle(h)
758 a := NsecToFiletime(tv[0].Nanoseconds())
759 w := NsecToFiletime(tv[1].Nanoseconds())
760 return SetFileTime(h, nil, &a, &w)
761}
762
763func UtimesNano(path string, ts []Timespec) (err error) {
764 if len(ts) != 2 {
765 return syscall.EINVAL
766 }
767 pathp, e := UTF16PtrFromString(path)
768 if e != nil {
769 return e
770 }
771 h, e := CreateFile(pathp,
772 FILE_WRITE_ATTRIBUTES, FILE_SHARE_WRITE, nil,
773 OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, 0)
774 if e != nil {
775 return e
776 }
777 defer CloseHandle(h)
778 a := NsecToFiletime(TimespecToNsec(ts[0]))
779 w := NsecToFiletime(TimespecToNsec(ts[1]))
780 return SetFileTime(h, nil, &a, &w)
781}
782
783func Fsync(fd Handle) (err error) {
784 return FlushFileBuffers(fd)
785}
786
787func Chmod(path string, mode uint32) (err error) {
788 p, e := UTF16PtrFromString(path)
789 if e != nil {
790 return e
791 }
792 attrs, e := GetFileAttributes(p)
793 if e != nil {
794 return e
795 }
796 if mode&S_IWRITE != 0 {
797 attrs &^= FILE_ATTRIBUTE_READONLY
798 } else {
799 attrs |= FILE_ATTRIBUTE_READONLY
800 }
801 return SetFileAttributes(p, attrs)
802}
803
804func LoadGetSystemTimePreciseAsFileTime() error {
805 return procGetSystemTimePreciseAsFileTime.Find()
806}
807
808func LoadCancelIoEx() error {
809 return procCancelIoEx.Find()
810}
811
812func LoadSetFileCompletionNotificationModes() error {
813 return procSetFileCompletionNotificationModes.Find()
814}
815
816func WaitForMultipleObjects(handles []Handle, waitAll bool, waitMilliseconds uint32) (event uint32, err error) {
817 // Every other win32 array API takes arguments as "pointer, count", except for this function. So we
818 // can't declare it as a usual [] type, because mksyscall will use the opposite order. We therefore
819 // trivially stub this ourselves.
820
821 var handlePtr *Handle
822 if len(handles) > 0 {
823 handlePtr = &handles[0]
824 }
825 return waitForMultipleObjects(uint32(len(handles)), uintptr(unsafe.Pointer(handlePtr)), waitAll, waitMilliseconds)
826}
827
828// net api calls
829
830const socket_error = uintptr(^uint32(0))
831
832//sys WSAStartup(verreq uint32, data *WSAData) (sockerr error) = ws2_32.WSAStartup
833//sys WSACleanup() (err error) [failretval==socket_error] = ws2_32.WSACleanup
834//sys WSAIoctl(s Handle, iocc uint32, inbuf *byte, cbif uint32, outbuf *byte, cbob uint32, cbbr *uint32, overlapped *Overlapped, completionRoutine uintptr) (err error) [failretval==socket_error] = ws2_32.WSAIoctl
835//sys WSALookupServiceBegin(querySet *WSAQUERYSET, flags uint32, handle *Handle) (err error) [failretval==socket_error] = ws2_32.WSALookupServiceBeginW
836//sys WSALookupServiceNext(handle Handle, flags uint32, size *int32, querySet *WSAQUERYSET) (err error) [failretval==socket_error] = ws2_32.WSALookupServiceNextW
837//sys WSALookupServiceEnd(handle Handle) (err error) [failretval==socket_error] = ws2_32.WSALookupServiceEnd
838//sys socket(af int32, typ int32, protocol int32) (handle Handle, err error) [failretval==InvalidHandle] = ws2_32.socket
839//sys sendto(s Handle, buf []byte, flags int32, to unsafe.Pointer, tolen int32) (err error) [failretval==socket_error] = ws2_32.sendto
840//sys recvfrom(s Handle, buf []byte, flags int32, from *RawSockaddrAny, fromlen *int32) (n int32, err error) [failretval==-1] = ws2_32.recvfrom
841//sys Setsockopt(s Handle, level int32, optname int32, optval *byte, optlen int32) (err error) [failretval==socket_error] = ws2_32.setsockopt
842//sys Getsockopt(s Handle, level int32, optname int32, optval *byte, optlen *int32) (err error) [failretval==socket_error] = ws2_32.getsockopt
843//sys bind(s Handle, name unsafe.Pointer, namelen int32) (err error) [failretval==socket_error] = ws2_32.bind
844//sys connect(s Handle, name unsafe.Pointer, namelen int32) (err error) [failretval==socket_error] = ws2_32.connect
845//sys getsockname(s Handle, rsa *RawSockaddrAny, addrlen *int32) (err error) [failretval==socket_error] = ws2_32.getsockname
846//sys getpeername(s Handle, rsa *RawSockaddrAny, addrlen *int32) (err error) [failretval==socket_error] = ws2_32.getpeername
847//sys listen(s Handle, backlog int32) (err error) [failretval==socket_error] = ws2_32.listen
848//sys shutdown(s Handle, how int32) (err error) [failretval==socket_error] = ws2_32.shutdown
849//sys Closesocket(s Handle) (err error) [failretval==socket_error] = ws2_32.closesocket
850//sys AcceptEx(ls Handle, as Handle, buf *byte, rxdatalen uint32, laddrlen uint32, raddrlen uint32, recvd *uint32, overlapped *Overlapped) (err error) = mswsock.AcceptEx
851//sys GetAcceptExSockaddrs(buf *byte, rxdatalen uint32, laddrlen uint32, raddrlen uint32, lrsa **RawSockaddrAny, lrsalen *int32, rrsa **RawSockaddrAny, rrsalen *int32) = mswsock.GetAcceptExSockaddrs
852//sys WSARecv(s Handle, bufs *WSABuf, bufcnt uint32, recvd *uint32, flags *uint32, overlapped *Overlapped, croutine *byte) (err error) [failretval==socket_error] = ws2_32.WSARecv
853//sys WSASend(s Handle, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, overlapped *Overlapped, croutine *byte) (err error) [failretval==socket_error] = ws2_32.WSASend
854//sys WSARecvFrom(s Handle, bufs *WSABuf, bufcnt uint32, recvd *uint32, flags *uint32, from *RawSockaddrAny, fromlen *int32, overlapped *Overlapped, croutine *byte) (err error) [failretval==socket_error] = ws2_32.WSARecvFrom
855//sys WSASendTo(s Handle, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, to *RawSockaddrAny, tolen int32, overlapped *Overlapped, croutine *byte) (err error) [failretval==socket_error] = ws2_32.WSASendTo
856//sys WSASocket(af int32, typ int32, protocol int32, protoInfo *WSAProtocolInfo, group uint32, flags uint32) (handle Handle, err error) [failretval==InvalidHandle] = ws2_32.WSASocketW
857//sys GetHostByName(name string) (h *Hostent, err error) [failretval==nil] = ws2_32.gethostbyname
858//sys GetServByName(name string, proto string) (s *Servent, err error) [failretval==nil] = ws2_32.getservbyname
859//sys Ntohs(netshort uint16) (u uint16) = ws2_32.ntohs
860//sys GetProtoByName(name string) (p *Protoent, err error) [failretval==nil] = ws2_32.getprotobyname
861//sys DnsQuery(name string, qtype uint16, options uint32, extra *byte, qrs **DNSRecord, pr *byte) (status error) = dnsapi.DnsQuery_W
862//sys DnsRecordListFree(rl *DNSRecord, freetype uint32) = dnsapi.DnsRecordListFree
863//sys DnsNameCompare(name1 *uint16, name2 *uint16) (same bool) = dnsapi.DnsNameCompare_W
864//sys GetAddrInfoW(nodename *uint16, servicename *uint16, hints *AddrinfoW, result **AddrinfoW) (sockerr error) = ws2_32.GetAddrInfoW
865//sys FreeAddrInfoW(addrinfo *AddrinfoW) = ws2_32.FreeAddrInfoW
866//sys GetIfEntry(pIfRow *MibIfRow) (errcode error) = iphlpapi.GetIfEntry
867//sys GetAdaptersInfo(ai *IpAdapterInfo, ol *uint32) (errcode error) = iphlpapi.GetAdaptersInfo
868//sys SetFileCompletionNotificationModes(handle Handle, flags uint8) (err error) = kernel32.SetFileCompletionNotificationModes
869//sys WSAEnumProtocols(protocols *int32, protocolBuffer *WSAProtocolInfo, bufferLength *uint32) (n int32, err error) [failretval==-1] = ws2_32.WSAEnumProtocolsW
870//sys WSAGetOverlappedResult(h Handle, o *Overlapped, bytes *uint32, wait bool, flags *uint32) (err error) = ws2_32.WSAGetOverlappedResult
871//sys GetAdaptersAddresses(family uint32, flags uint32, reserved uintptr, adapterAddresses *IpAdapterAddresses, sizePointer *uint32) (errcode error) = iphlpapi.GetAdaptersAddresses
872//sys GetACP() (acp uint32) = kernel32.GetACP
873//sys MultiByteToWideChar(codePage uint32, dwFlags uint32, str *byte, nstr int32, wchar *uint16, nwchar int32) (nwrite int32, err error) = kernel32.MultiByteToWideChar
874//sys getBestInterfaceEx(sockaddr unsafe.Pointer, pdwBestIfIndex *uint32) (errcode error) = iphlpapi.GetBestInterfaceEx
875
876// For testing: clients can set this flag to force
877// creation of IPv6 sockets to return EAFNOSUPPORT.
878var SocketDisableIPv6 bool
879
880type RawSockaddrInet4 struct {
881 Family uint16
882 Port uint16
883 Addr [4]byte /* in_addr */
884 Zero [8]uint8
885}
886
887type RawSockaddrInet6 struct {
888 Family uint16
889 Port uint16
890 Flowinfo uint32
891 Addr [16]byte /* in6_addr */
892 Scope_id uint32
893}
894
895type RawSockaddr struct {
896 Family uint16
897 Data [14]int8
898}
899
900type RawSockaddrAny struct {
901 Addr RawSockaddr
902 Pad [100]int8
903}
904
905type Sockaddr interface {
906 sockaddr() (ptr unsafe.Pointer, len int32, err error) // lowercase; only we can define Sockaddrs
907}
908
909type SockaddrInet4 struct {
910 Port int
911 Addr [4]byte
912 raw RawSockaddrInet4
913}
914
915func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, int32, error) {
916 if sa.Port < 0 || sa.Port > 0xFFFF {
917 return nil, 0, syscall.EINVAL
918 }
919 sa.raw.Family = AF_INET
920 p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port))
921 p[0] = byte(sa.Port >> 8)
922 p[1] = byte(sa.Port)
923 sa.raw.Addr = sa.Addr
924 return unsafe.Pointer(&sa.raw), int32(unsafe.Sizeof(sa.raw)), nil
925}
926
927type SockaddrInet6 struct {
928 Port int
929 ZoneId uint32
930 Addr [16]byte
931 raw RawSockaddrInet6
932}
933
934func (sa *SockaddrInet6) sockaddr() (unsafe.Pointer, int32, error) {
935 if sa.Port < 0 || sa.Port > 0xFFFF {
936 return nil, 0, syscall.EINVAL
937 }
938 sa.raw.Family = AF_INET6
939 p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port))
940 p[0] = byte(sa.Port >> 8)
941 p[1] = byte(sa.Port)
942 sa.raw.Scope_id = sa.ZoneId
943 sa.raw.Addr = sa.Addr
944 return unsafe.Pointer(&sa.raw), int32(unsafe.Sizeof(sa.raw)), nil
945}
946
947type RawSockaddrUnix struct {
948 Family uint16
949 Path [UNIX_PATH_MAX]int8
950}
951
952type SockaddrUnix struct {
953 Name string
954 raw RawSockaddrUnix
955}
956
957func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, int32, error) {
958 name := sa.Name
959 n := len(name)
960 if n > len(sa.raw.Path) {
961 return nil, 0, syscall.EINVAL
962 }
963 if n == len(sa.raw.Path) && name[0] != '@' {
964 return nil, 0, syscall.EINVAL
965 }
966 sa.raw.Family = AF_UNIX
967 for i := 0; i < n; i++ {
968 sa.raw.Path[i] = int8(name[i])
969 }
970 // length is family (uint16), name, NUL.
971 sl := int32(2)
972 if n > 0 {
973 sl += int32(n) + 1
974 }
975 if sa.raw.Path[0] == '@' || (sa.raw.Path[0] == 0 && sl > 3) {
976 // Check sl > 3 so we don't change unnamed socket behavior.
977 sa.raw.Path[0] = 0
978 // Don't count trailing NUL for abstract address.
979 sl--
980 }
981
982 return unsafe.Pointer(&sa.raw), sl, nil
983}
984
985type RawSockaddrBth struct {
986 AddressFamily [2]byte
987 BtAddr [8]byte
988 ServiceClassId [16]byte
989 Port [4]byte
990}
991
992type SockaddrBth struct {
993 BtAddr uint64
994 ServiceClassId GUID
995 Port uint32
996
997 raw RawSockaddrBth
998}
999
1000func (sa *SockaddrBth) sockaddr() (unsafe.Pointer, int32, error) {
1001 family := AF_BTH
1002 sa.raw = RawSockaddrBth{
1003 AddressFamily: *(*[2]byte)(unsafe.Pointer(&family)),
1004 BtAddr: *(*[8]byte)(unsafe.Pointer(&sa.BtAddr)),
1005 Port: *(*[4]byte)(unsafe.Pointer(&sa.Port)),
1006 ServiceClassId: *(*[16]byte)(unsafe.Pointer(&sa.ServiceClassId)),
1007 }
1008 return unsafe.Pointer(&sa.raw), int32(unsafe.Sizeof(sa.raw)), nil
1009}
1010
1011func (rsa *RawSockaddrAny) Sockaddr() (Sockaddr, error) {
1012 switch rsa.Addr.Family {
1013 case AF_UNIX:
1014 pp := (*RawSockaddrUnix)(unsafe.Pointer(rsa))
1015 sa := new(SockaddrUnix)
1016 if pp.Path[0] == 0 {
1017 // "Abstract" Unix domain socket.
1018 // Rewrite leading NUL as @ for textual display.
1019 // (This is the standard convention.)
1020 // Not friendly to overwrite in place,
1021 // but the callers below don't care.
1022 pp.Path[0] = '@'
1023 }
1024
1025 // Assume path ends at NUL.
1026 // This is not technically the Linux semantics for
1027 // abstract Unix domain sockets--they are supposed
1028 // to be uninterpreted fixed-size binary blobs--but
1029 // everyone uses this convention.
1030 n := 0
1031 for n < len(pp.Path) && pp.Path[n] != 0 {
1032 n++
1033 }
1034 sa.Name = string(unsafe.Slice((*byte)(unsafe.Pointer(&pp.Path[0])), n))
1035 return sa, nil
1036
1037 case AF_INET:
1038 pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa))
1039 sa := new(SockaddrInet4)
1040 p := (*[2]byte)(unsafe.Pointer(&pp.Port))
1041 sa.Port = int(p[0])<<8 + int(p[1])
1042 sa.Addr = pp.Addr
1043 return sa, nil
1044
1045 case AF_INET6:
1046 pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa))
1047 sa := new(SockaddrInet6)
1048 p := (*[2]byte)(unsafe.Pointer(&pp.Port))
1049 sa.Port = int(p[0])<<8 + int(p[1])
1050 sa.ZoneId = pp.Scope_id
1051 sa.Addr = pp.Addr
1052 return sa, nil
1053 }
1054 return nil, syscall.EAFNOSUPPORT
1055}
1056
1057func Socket(domain, typ, proto int) (fd Handle, err error) {
1058 if domain == AF_INET6 && SocketDisableIPv6 {
1059 return InvalidHandle, syscall.EAFNOSUPPORT
1060 }
1061 return socket(int32(domain), int32(typ), int32(proto))
1062}
1063
1064func SetsockoptInt(fd Handle, level, opt int, value int) (err error) {
1065 v := int32(value)
1066 return Setsockopt(fd, int32(level), int32(opt), (*byte)(unsafe.Pointer(&v)), int32(unsafe.Sizeof(v)))
1067}
1068
1069func Bind(fd Handle, sa Sockaddr) (err error) {
1070 ptr, n, err := sa.sockaddr()
1071 if err != nil {
1072 return err
1073 }
1074 return bind(fd, ptr, n)
1075}
1076
1077func Connect(fd Handle, sa Sockaddr) (err error) {
1078 ptr, n, err := sa.sockaddr()
1079 if err != nil {
1080 return err
1081 }
1082 return connect(fd, ptr, n)
1083}
1084
1085func GetBestInterfaceEx(sa Sockaddr, pdwBestIfIndex *uint32) (err error) {
1086 ptr, _, err := sa.sockaddr()
1087 if err != nil {
1088 return err
1089 }
1090 return getBestInterfaceEx(ptr, pdwBestIfIndex)
1091}
1092
1093func Getsockname(fd Handle) (sa Sockaddr, err error) {
1094 var rsa RawSockaddrAny
1095 l := int32(unsafe.Sizeof(rsa))
1096 if err = getsockname(fd, &rsa, &l); err != nil {
1097 return
1098 }
1099 return rsa.Sockaddr()
1100}
1101
1102func Getpeername(fd Handle) (sa Sockaddr, err error) {
1103 var rsa RawSockaddrAny
1104 l := int32(unsafe.Sizeof(rsa))
1105 if err = getpeername(fd, &rsa, &l); err != nil {
1106 return
1107 }
1108 return rsa.Sockaddr()
1109}
1110
1111func Listen(s Handle, n int) (err error) {
1112 return listen(s, int32(n))
1113}
1114
1115func Shutdown(fd Handle, how int) (err error) {
1116 return shutdown(fd, int32(how))
1117}
1118
1119func WSASendto(s Handle, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, to Sockaddr, overlapped *Overlapped, croutine *byte) (err error) {
1120 var rsa unsafe.Pointer
1121 var l int32
1122 if to != nil {
1123 rsa, l, err = to.sockaddr()
1124 if err != nil {
1125 return err
1126 }
1127 }
1128 return WSASendTo(s, bufs, bufcnt, sent, flags, (*RawSockaddrAny)(unsafe.Pointer(rsa)), l, overlapped, croutine)
1129}
1130
1131func LoadGetAddrInfo() error {
1132 return procGetAddrInfoW.Find()
1133}
1134
1135var connectExFunc struct {
1136 once sync.Once
1137 addr uintptr
1138 err error
1139}
1140
1141func LoadConnectEx() error {
1142 connectExFunc.once.Do(func() {
1143 var s Handle
1144 s, connectExFunc.err = Socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)
1145 if connectExFunc.err != nil {
1146 return
1147 }
1148 defer CloseHandle(s)
1149 var n uint32
1150 connectExFunc.err = WSAIoctl(s,
1151 SIO_GET_EXTENSION_FUNCTION_POINTER,
1152 (*byte)(unsafe.Pointer(&WSAID_CONNECTEX)),
1153 uint32(unsafe.Sizeof(WSAID_CONNECTEX)),
1154 (*byte)(unsafe.Pointer(&connectExFunc.addr)),
1155 uint32(unsafe.Sizeof(connectExFunc.addr)),
1156 &n, nil, 0)
1157 })
1158 return connectExFunc.err
1159}
1160
1161func connectEx(s Handle, name unsafe.Pointer, namelen int32, sendBuf *byte, sendDataLen uint32, bytesSent *uint32, overlapped *Overlapped) (err error) {
1162 r1, _, e1 := syscall.Syscall9(connectExFunc.addr, 7, uintptr(s), uintptr(name), uintptr(namelen), uintptr(unsafe.Pointer(sendBuf)), uintptr(sendDataLen), uintptr(unsafe.Pointer(bytesSent)), uintptr(unsafe.Pointer(overlapped)), 0, 0)
1163 if r1 == 0 {
1164 if e1 != 0 {
1165 err = error(e1)
1166 } else {
1167 err = syscall.EINVAL
1168 }
1169 }
1170 return
1171}
1172
1173func ConnectEx(fd Handle, sa Sockaddr, sendBuf *byte, sendDataLen uint32, bytesSent *uint32, overlapped *Overlapped) error {
1174 err := LoadConnectEx()
1175 if err != nil {
1176 return errorspkg.New("failed to find ConnectEx: " + err.Error())
1177 }
1178 ptr, n, err := sa.sockaddr()
1179 if err != nil {
1180 return err
1181 }
1182 return connectEx(fd, ptr, n, sendBuf, sendDataLen, bytesSent, overlapped)
1183}
1184
1185var sendRecvMsgFunc struct {
1186 once sync.Once
1187 sendAddr uintptr
1188 recvAddr uintptr
1189 err error
1190}
1191
1192func loadWSASendRecvMsg() error {
1193 sendRecvMsgFunc.once.Do(func() {
1194 var s Handle
1195 s, sendRecvMsgFunc.err = Socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)
1196 if sendRecvMsgFunc.err != nil {
1197 return
1198 }
1199 defer CloseHandle(s)
1200 var n uint32
1201 sendRecvMsgFunc.err = WSAIoctl(s,
1202 SIO_GET_EXTENSION_FUNCTION_POINTER,
1203 (*byte)(unsafe.Pointer(&WSAID_WSARECVMSG)),
1204 uint32(unsafe.Sizeof(WSAID_WSARECVMSG)),
1205 (*byte)(unsafe.Pointer(&sendRecvMsgFunc.recvAddr)),
1206 uint32(unsafe.Sizeof(sendRecvMsgFunc.recvAddr)),
1207 &n, nil, 0)
1208 if sendRecvMsgFunc.err != nil {
1209 return
1210 }
1211 sendRecvMsgFunc.err = WSAIoctl(s,
1212 SIO_GET_EXTENSION_FUNCTION_POINTER,
1213 (*byte)(unsafe.Pointer(&WSAID_WSASENDMSG)),
1214 uint32(unsafe.Sizeof(WSAID_WSASENDMSG)),
1215 (*byte)(unsafe.Pointer(&sendRecvMsgFunc.sendAddr)),
1216 uint32(unsafe.Sizeof(sendRecvMsgFunc.sendAddr)),
1217 &n, nil, 0)
1218 })
1219 return sendRecvMsgFunc.err
1220}
1221
1222func WSASendMsg(fd Handle, msg *WSAMsg, flags uint32, bytesSent *uint32, overlapped *Overlapped, croutine *byte) error {
1223 err := loadWSASendRecvMsg()
1224 if err != nil {
1225 return err
1226 }
1227 r1, _, e1 := syscall.Syscall6(sendRecvMsgFunc.sendAddr, 6, uintptr(fd), uintptr(unsafe.Pointer(msg)), uintptr(flags), uintptr(unsafe.Pointer(bytesSent)), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(croutine)))
1228 if r1 == socket_error {
1229 err = errnoErr(e1)
1230 }
1231 return err
1232}
1233
1234func WSARecvMsg(fd Handle, msg *WSAMsg, bytesReceived *uint32, overlapped *Overlapped, croutine *byte) error {
1235 err := loadWSASendRecvMsg()
1236 if err != nil {
1237 return err
1238 }
1239 r1, _, e1 := syscall.Syscall6(sendRecvMsgFunc.recvAddr, 5, uintptr(fd), uintptr(unsafe.Pointer(msg)), uintptr(unsafe.Pointer(bytesReceived)), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(croutine)), 0)
1240 if r1 == socket_error {
1241 err = errnoErr(e1)
1242 }
1243 return err
1244}
1245
1246// Invented structures to support what package os expects.
1247type Rusage struct {
1248 CreationTime Filetime
1249 ExitTime Filetime
1250 KernelTime Filetime
1251 UserTime Filetime
1252}
1253
1254type WaitStatus struct {
1255 ExitCode uint32
1256}
1257
1258func (w WaitStatus) Exited() bool { return true }
1259
1260func (w WaitStatus) ExitStatus() int { return int(w.ExitCode) }
1261
1262func (w WaitStatus) Signal() Signal { return -1 }
1263
1264func (w WaitStatus) CoreDump() bool { return false }
1265
1266func (w WaitStatus) Stopped() bool { return false }
1267
1268func (w WaitStatus) Continued() bool { return false }
1269
1270func (w WaitStatus) StopSignal() Signal { return -1 }
1271
1272func (w WaitStatus) Signaled() bool { return false }
1273
1274func (w WaitStatus) TrapCause() int { return -1 }
1275
1276// Timespec is an invented structure on Windows, but here for
1277// consistency with the corresponding package for other operating systems.
1278type Timespec struct {
1279 Sec int64
1280 Nsec int64
1281}
1282
1283func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
1284
1285func NsecToTimespec(nsec int64) (ts Timespec) {
1286 ts.Sec = nsec / 1e9
1287 ts.Nsec = nsec % 1e9
1288 return
1289}
1290
1291// TODO(brainman): fix all needed for net
1292
1293func Accept(fd Handle) (nfd Handle, sa Sockaddr, err error) { return 0, nil, syscall.EWINDOWS }
1294
1295func Recvfrom(fd Handle, p []byte, flags int) (n int, from Sockaddr, err error) {
1296 var rsa RawSockaddrAny
1297 l := int32(unsafe.Sizeof(rsa))
1298 n32, err := recvfrom(fd, p, int32(flags), &rsa, &l)
1299 n = int(n32)
1300 if err != nil {
1301 return
1302 }
1303 from, err = rsa.Sockaddr()
1304 return
1305}
1306
1307func Sendto(fd Handle, p []byte, flags int, to Sockaddr) (err error) {
1308 ptr, l, err := to.sockaddr()
1309 if err != nil {
1310 return err
1311 }
1312 return sendto(fd, p, int32(flags), ptr, l)
1313}
1314
1315func SetsockoptTimeval(fd Handle, level, opt int, tv *Timeval) (err error) { return syscall.EWINDOWS }
1316
1317// The Linger struct is wrong but we only noticed after Go 1.
1318// sysLinger is the real system call structure.
1319
1320// BUG(brainman): The definition of Linger is not appropriate for direct use
1321// with Setsockopt and Getsockopt.
1322// Use SetsockoptLinger instead.
1323
1324type Linger struct {
1325 Onoff int32
1326 Linger int32
1327}
1328
1329type sysLinger struct {
1330 Onoff uint16
1331 Linger uint16
1332}
1333
1334type IPMreq struct {
1335 Multiaddr [4]byte /* in_addr */
1336 Interface [4]byte /* in_addr */
1337}
1338
1339type IPv6Mreq struct {
1340 Multiaddr [16]byte /* in6_addr */
1341 Interface uint32
1342}
1343
1344func GetsockoptInt(fd Handle, level, opt int) (int, error) {
1345 v := int32(0)
1346 l := int32(unsafe.Sizeof(v))
1347 err := Getsockopt(fd, int32(level), int32(opt), (*byte)(unsafe.Pointer(&v)), &l)
1348 return int(v), err
1349}
1350
1351func SetsockoptLinger(fd Handle, level, opt int, l *Linger) (err error) {
1352 sys := sysLinger{Onoff: uint16(l.Onoff), Linger: uint16(l.Linger)}
1353 return Setsockopt(fd, int32(level), int32(opt), (*byte)(unsafe.Pointer(&sys)), int32(unsafe.Sizeof(sys)))
1354}
1355
1356func SetsockoptInet4Addr(fd Handle, level, opt int, value [4]byte) (err error) {
1357 return Setsockopt(fd, int32(level), int32(opt), (*byte)(unsafe.Pointer(&value[0])), 4)
1358}
1359func SetsockoptIPMreq(fd Handle, level, opt int, mreq *IPMreq) (err error) {
1360 return Setsockopt(fd, int32(level), int32(opt), (*byte)(unsafe.Pointer(mreq)), int32(unsafe.Sizeof(*mreq)))
1361}
1362func SetsockoptIPv6Mreq(fd Handle, level, opt int, mreq *IPv6Mreq) (err error) {
1363 return syscall.EWINDOWS
1364}
1365
1366func EnumProcesses(processIds []uint32, bytesReturned *uint32) error {
1367 // EnumProcesses syscall expects the size parameter to be in bytes, but the code generated with mksyscall uses
1368 // the length of the processIds slice instead. Hence, this wrapper function is added to fix the discrepancy.
1369 var p *uint32
1370 if len(processIds) > 0 {
1371 p = &processIds[0]
1372 }
1373 size := uint32(len(processIds) * 4)
1374 return enumProcesses(p, size, bytesReturned)
1375}
1376
1377func Getpid() (pid int) { return int(GetCurrentProcessId()) }
1378
1379func FindFirstFile(name *uint16, data *Win32finddata) (handle Handle, err error) {
1380 // NOTE(rsc): The Win32finddata struct is wrong for the system call:
1381 // the two paths are each one uint16 short. Use the correct struct,
1382 // a win32finddata1, and then copy the results out.
1383 // There is no loss of expressivity here, because the final
1384 // uint16, if it is used, is supposed to be a NUL, and Go doesn't need that.
1385 // For Go 1.1, we might avoid the allocation of win32finddata1 here
1386 // by adding a final Bug [2]uint16 field to the struct and then
1387 // adjusting the fields in the result directly.
1388 var data1 win32finddata1
1389 handle, err = findFirstFile1(name, &data1)
1390 if err == nil {
1391 copyFindData(data, &data1)
1392 }
1393 return
1394}
1395
1396func FindNextFile(handle Handle, data *Win32finddata) (err error) {
1397 var data1 win32finddata1
1398 err = findNextFile1(handle, &data1)
1399 if err == nil {
1400 copyFindData(data, &data1)
1401 }
1402 return
1403}
1404
1405func getProcessEntry(pid int) (*ProcessEntry32, error) {
1406 snapshot, err := CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0)
1407 if err != nil {
1408 return nil, err
1409 }
1410 defer CloseHandle(snapshot)
1411 var procEntry ProcessEntry32
1412 procEntry.Size = uint32(unsafe.Sizeof(procEntry))
1413 if err = Process32First(snapshot, &procEntry); err != nil {
1414 return nil, err
1415 }
1416 for {
1417 if procEntry.ProcessID == uint32(pid) {
1418 return &procEntry, nil
1419 }
1420 err = Process32Next(snapshot, &procEntry)
1421 if err != nil {
1422 return nil, err
1423 }
1424 }
1425}
1426
1427func Getppid() (ppid int) {
1428 pe, err := getProcessEntry(Getpid())
1429 if err != nil {
1430 return -1
1431 }
1432 return int(pe.ParentProcessID)
1433}
1434
1435// TODO(brainman): fix all needed for os
1436func Fchdir(fd Handle) (err error) { return syscall.EWINDOWS }
1437func Link(oldpath, newpath string) (err error) { return syscall.EWINDOWS }
1438func Symlink(path, link string) (err error) { return syscall.EWINDOWS }
1439
1440func Fchmod(fd Handle, mode uint32) (err error) { return syscall.EWINDOWS }
1441func Chown(path string, uid int, gid int) (err error) { return syscall.EWINDOWS }
1442func Lchown(path string, uid int, gid int) (err error) { return syscall.EWINDOWS }
1443func Fchown(fd Handle, uid int, gid int) (err error) { return syscall.EWINDOWS }
1444
1445func Getuid() (uid int) { return -1 }
1446func Geteuid() (euid int) { return -1 }
1447func Getgid() (gid int) { return -1 }
1448func Getegid() (egid int) { return -1 }
1449func Getgroups() (gids []int, err error) { return nil, syscall.EWINDOWS }
1450
1451type Signal int
1452
1453func (s Signal) Signal() {}
1454
1455func (s Signal) String() string {
1456 if 0 <= s && int(s) < len(signals) {
1457 str := signals[s]
1458 if str != "" {
1459 return str
1460 }
1461 }
1462 return "signal " + itoa(int(s))
1463}
1464
1465func LoadCreateSymbolicLink() error {
1466 return procCreateSymbolicLinkW.Find()
1467}
1468
1469// Readlink returns the destination of the named symbolic link.
1470func Readlink(path string, buf []byte) (n int, err error) {
1471 fd, err := CreateFile(StringToUTF16Ptr(path), GENERIC_READ, 0, nil, OPEN_EXISTING,
1472 FILE_FLAG_OPEN_REPARSE_POINT|FILE_FLAG_BACKUP_SEMANTICS, 0)
1473 if err != nil {
1474 return -1, err
1475 }
1476 defer CloseHandle(fd)
1477
1478 rdbbuf := make([]byte, MAXIMUM_REPARSE_DATA_BUFFER_SIZE)
1479 var bytesReturned uint32
1480 err = DeviceIoControl(fd, FSCTL_GET_REPARSE_POINT, nil, 0, &rdbbuf[0], uint32(len(rdbbuf)), &bytesReturned, nil)
1481 if err != nil {
1482 return -1, err
1483 }
1484
1485 rdb := (*reparseDataBuffer)(unsafe.Pointer(&rdbbuf[0]))
1486 var s string
1487 switch rdb.ReparseTag {
1488 case IO_REPARSE_TAG_SYMLINK:
1489 data := (*symbolicLinkReparseBuffer)(unsafe.Pointer(&rdb.reparseBuffer))
1490 p := (*[0xffff]uint16)(unsafe.Pointer(&data.PathBuffer[0]))
1491 s = UTF16ToString(p[data.PrintNameOffset/2 : (data.PrintNameLength-data.PrintNameOffset)/2])
1492 case IO_REPARSE_TAG_MOUNT_POINT:
1493 data := (*mountPointReparseBuffer)(unsafe.Pointer(&rdb.reparseBuffer))
1494 p := (*[0xffff]uint16)(unsafe.Pointer(&data.PathBuffer[0]))
1495 s = UTF16ToString(p[data.PrintNameOffset/2 : (data.PrintNameLength-data.PrintNameOffset)/2])
1496 default:
1497 // the path is not a symlink or junction but another type of reparse
1498 // point
1499 return -1, syscall.ENOENT
1500 }
1501 n = copy(buf, []byte(s))
1502
1503 return n, nil
1504}
1505
1506// GUIDFromString parses a string in the form of
1507// "{XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}" into a GUID.
1508func GUIDFromString(str string) (GUID, error) {
1509 guid := GUID{}
1510 str16, err := syscall.UTF16PtrFromString(str)
1511 if err != nil {
1512 return guid, err
1513 }
1514 err = clsidFromString(str16, &guid)
1515 if err != nil {
1516 return guid, err
1517 }
1518 return guid, nil
1519}
1520
1521// GenerateGUID creates a new random GUID.
1522func GenerateGUID() (GUID, error) {
1523 guid := GUID{}
1524 err := coCreateGuid(&guid)
1525 if err != nil {
1526 return guid, err
1527 }
1528 return guid, nil
1529}
1530
1531// String returns the canonical string form of the GUID,
1532// in the form of "{XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}".
1533func (guid GUID) String() string {
1534 var str [100]uint16
1535 chars := stringFromGUID2(&guid, &str[0], int32(len(str)))
1536 if chars <= 1 {
1537 return ""
1538 }
1539 return string(utf16.Decode(str[:chars-1]))
1540}
1541
1542// KnownFolderPath returns a well-known folder path for the current user, specified by one of
1543// the FOLDERID_ constants, and chosen and optionally created based on a KF_ flag.
1544func KnownFolderPath(folderID *KNOWNFOLDERID, flags uint32) (string, error) {
1545 return Token(0).KnownFolderPath(folderID, flags)
1546}
1547
1548// KnownFolderPath returns a well-known folder path for the user token, specified by one of
1549// the FOLDERID_ constants, and chosen and optionally created based on a KF_ flag.
1550func (t Token) KnownFolderPath(folderID *KNOWNFOLDERID, flags uint32) (string, error) {
1551 var p *uint16
1552 err := shGetKnownFolderPath(folderID, flags, t, &p)
1553 if err != nil {
1554 return "", err
1555 }
1556 defer CoTaskMemFree(unsafe.Pointer(p))
1557 return UTF16PtrToString(p), nil
1558}
1559
1560// RtlGetVersion returns the version of the underlying operating system, ignoring
1561// manifest semantics but is affected by the application compatibility layer.
1562func RtlGetVersion() *OsVersionInfoEx {
1563 info := &OsVersionInfoEx{}
1564 info.osVersionInfoSize = uint32(unsafe.Sizeof(*info))
1565 // According to documentation, this function always succeeds.
1566 // The function doesn't even check the validity of the
1567 // osVersionInfoSize member. Disassembling ntdll.dll indicates
1568 // that the documentation is indeed correct about that.
1569 _ = rtlGetVersion(info)
1570 return info
1571}
1572
1573// RtlGetNtVersionNumbers returns the version of the underlying operating system,
1574// ignoring manifest semantics and the application compatibility layer.
1575func RtlGetNtVersionNumbers() (majorVersion, minorVersion, buildNumber uint32) {
1576 rtlGetNtVersionNumbers(&majorVersion, &minorVersion, &buildNumber)
1577 buildNumber &= 0xffff
1578 return
1579}
1580
1581// GetProcessPreferredUILanguages retrieves the process preferred UI languages.
1582func GetProcessPreferredUILanguages(flags uint32) ([]string, error) {
1583 return getUILanguages(flags, getProcessPreferredUILanguages)
1584}
1585
1586// GetThreadPreferredUILanguages retrieves the thread preferred UI languages for the current thread.
1587func GetThreadPreferredUILanguages(flags uint32) ([]string, error) {
1588 return getUILanguages(flags, getThreadPreferredUILanguages)
1589}
1590
1591// GetUserPreferredUILanguages retrieves information about the user preferred UI languages.
1592func GetUserPreferredUILanguages(flags uint32) ([]string, error) {
1593 return getUILanguages(flags, getUserPreferredUILanguages)
1594}
1595
1596// GetSystemPreferredUILanguages retrieves the system preferred UI languages.
1597func GetSystemPreferredUILanguages(flags uint32) ([]string, error) {
1598 return getUILanguages(flags, getSystemPreferredUILanguages)
1599}
1600
1601func getUILanguages(flags uint32, f func(flags uint32, numLanguages *uint32, buf *uint16, bufSize *uint32) error) ([]string, error) {
1602 size := uint32(128)
1603 for {
1604 var numLanguages uint32
1605 buf := make([]uint16, size)
1606 err := f(flags, &numLanguages, &buf[0], &size)
1607 if err == ERROR_INSUFFICIENT_BUFFER {
1608 continue
1609 }
1610 if err != nil {
1611 return nil, err
1612 }
1613 buf = buf[:size]
1614 if numLanguages == 0 || len(buf) == 0 { // GetProcessPreferredUILanguages may return numLanguages==0 with "\0\0"
1615 return []string{}, nil
1616 }
1617 if buf[len(buf)-1] == 0 {
1618 buf = buf[:len(buf)-1] // remove terminating null
1619 }
1620 languages := make([]string, 0, numLanguages)
1621 from := 0
1622 for i, c := range buf {
1623 if c == 0 {
1624 languages = append(languages, string(utf16.Decode(buf[from:i])))
1625 from = i + 1
1626 }
1627 }
1628 return languages, nil
1629 }
1630}
1631
1632func SetConsoleCursorPosition(console Handle, position Coord) error {
1633 return setConsoleCursorPosition(console, *((*uint32)(unsafe.Pointer(&position))))
1634}
1635
1636func GetStartupInfo(startupInfo *StartupInfo) error {
1637 getStartupInfo(startupInfo)
1638 return nil
1639}
1640
1641func (s NTStatus) Errno() syscall.Errno {
1642 return rtlNtStatusToDosErrorNoTeb(s)
1643}
1644
1645func langID(pri, sub uint16) uint32 { return uint32(sub)<<10 | uint32(pri) }
1646
1647func (s NTStatus) Error() string {
1648 b := make([]uint16, 300)
1649 n, err := FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM|FORMAT_MESSAGE_FROM_HMODULE|FORMAT_MESSAGE_ARGUMENT_ARRAY, modntdll.Handle(), uint32(s), langID(LANG_ENGLISH, SUBLANG_ENGLISH_US), b, nil)
1650 if err != nil {
1651 return fmt.Sprintf("NTSTATUS 0x%08x", uint32(s))
1652 }
1653 // trim terminating \r and \n
1654 for ; n > 0 && (b[n-1] == '\n' || b[n-1] == '\r'); n-- {
1655 }
1656 return string(utf16.Decode(b[:n]))
1657}
1658
1659// NewNTUnicodeString returns a new NTUnicodeString structure for use with native
1660// NT APIs that work over the NTUnicodeString type. Note that most Windows APIs
1661// do not use NTUnicodeString, and instead UTF16PtrFromString should be used for
1662// the more common *uint16 string type.
1663func NewNTUnicodeString(s string) (*NTUnicodeString, error) {
1664 var u NTUnicodeString
1665 s16, err := UTF16PtrFromString(s)
1666 if err != nil {
1667 return nil, err
1668 }
1669 RtlInitUnicodeString(&u, s16)
1670 return &u, nil
1671}
1672
1673// Slice returns a uint16 slice that aliases the data in the NTUnicodeString.
1674func (s *NTUnicodeString) Slice() []uint16 {
1675 slice := unsafe.Slice(s.Buffer, s.MaximumLength)
1676 return slice[:s.Length]
1677}
1678
1679func (s *NTUnicodeString) String() string {
1680 return UTF16ToString(s.Slice())
1681}
1682
1683// NewNTString returns a new NTString structure for use with native
1684// NT APIs that work over the NTString type. Note that most Windows APIs
1685// do not use NTString, and instead UTF16PtrFromString should be used for
1686// the more common *uint16 string type.
1687func NewNTString(s string) (*NTString, error) {
1688 var nts NTString
1689 s8, err := BytePtrFromString(s)
1690 if err != nil {
1691 return nil, err
1692 }
1693 RtlInitString(&nts, s8)
1694 return &nts, nil
1695}
1696
1697// Slice returns a byte slice that aliases the data in the NTString.
1698func (s *NTString) Slice() []byte {
1699 slice := unsafe.Slice(s.Buffer, s.MaximumLength)
1700 return slice[:s.Length]
1701}
1702
1703func (s *NTString) String() string {
1704 return ByteSliceToString(s.Slice())
1705}
1706
1707// FindResource resolves a resource of the given name and resource type.
1708func FindResource(module Handle, name, resType ResourceIDOrString) (Handle, error) {
1709 var namePtr, resTypePtr uintptr
1710 var name16, resType16 *uint16
1711 var err error
1712 resolvePtr := func(i interface{}, keep **uint16) (uintptr, error) {
1713 switch v := i.(type) {
1714 case string:
1715 *keep, err = UTF16PtrFromString(v)
1716 if err != nil {
1717 return 0, err
1718 }
1719 return uintptr(unsafe.Pointer(*keep)), nil
1720 case ResourceID:
1721 return uintptr(v), nil
1722 }
1723 return 0, errorspkg.New("parameter must be a ResourceID or a string")
1724 }
1725 namePtr, err = resolvePtr(name, &name16)
1726 if err != nil {
1727 return 0, err
1728 }
1729 resTypePtr, err = resolvePtr(resType, &resType16)
1730 if err != nil {
1731 return 0, err
1732 }
1733 resInfo, err := findResource(module, namePtr, resTypePtr)
1734 runtime.KeepAlive(name16)
1735 runtime.KeepAlive(resType16)
1736 return resInfo, err
1737}
1738
1739func LoadResourceData(module, resInfo Handle) (data []byte, err error) {
1740 size, err := SizeofResource(module, resInfo)
1741 if err != nil {
1742 return
1743 }
1744 resData, err := LoadResource(module, resInfo)
1745 if err != nil {
1746 return
1747 }
1748 ptr, err := LockResource(resData)
1749 if err != nil {
1750 return
1751 }
1752 data = unsafe.Slice((*byte)(unsafe.Pointer(ptr)), size)
1753 return
1754}
1755
1756// PSAPI_WORKING_SET_EX_BLOCK contains extended working set information for a page.
1757type PSAPI_WORKING_SET_EX_BLOCK uint64
1758
1759// Valid returns the validity of this page.
1760// If this bit is 1, the subsequent members are valid; otherwise they should be ignored.
1761func (b PSAPI_WORKING_SET_EX_BLOCK) Valid() bool {
1762 return (b & 1) == 1
1763}
1764
1765// ShareCount is the number of processes that share this page. The maximum value of this member is 7.
1766func (b PSAPI_WORKING_SET_EX_BLOCK) ShareCount() uint64 {
1767 return b.intField(1, 3)
1768}
1769
1770// Win32Protection is the memory protection attributes of the page. For a list of values, see
1771// https://docs.microsoft.com/en-us/windows/win32/memory/memory-protection-constants
1772func (b PSAPI_WORKING_SET_EX_BLOCK) Win32Protection() uint64 {
1773 return b.intField(4, 11)
1774}
1775
1776// Shared returns the shared status of this page.
1777// If this bit is 1, the page can be shared.
1778func (b PSAPI_WORKING_SET_EX_BLOCK) Shared() bool {
1779 return (b & (1 << 15)) == 1
1780}
1781
1782// Node is the NUMA node. The maximum value of this member is 63.
1783func (b PSAPI_WORKING_SET_EX_BLOCK) Node() uint64 {
1784 return b.intField(16, 6)
1785}
1786
1787// Locked returns the locked status of this page.
1788// If this bit is 1, the virtual page is locked in physical memory.
1789func (b PSAPI_WORKING_SET_EX_BLOCK) Locked() bool {
1790 return (b & (1 << 22)) == 1
1791}
1792
1793// LargePage returns the large page status of this page.
1794// If this bit is 1, the page is a large page.
1795func (b PSAPI_WORKING_SET_EX_BLOCK) LargePage() bool {
1796 return (b & (1 << 23)) == 1
1797}
1798
1799// Bad returns the bad status of this page.
1800// If this bit is 1, the page is has been reported as bad.
1801func (b PSAPI_WORKING_SET_EX_BLOCK) Bad() bool {
1802 return (b & (1 << 31)) == 1
1803}
1804
1805// intField extracts an integer field in the PSAPI_WORKING_SET_EX_BLOCK union.
1806func (b PSAPI_WORKING_SET_EX_BLOCK) intField(start, length int) uint64 {
1807 var mask PSAPI_WORKING_SET_EX_BLOCK
1808 for pos := start; pos < start+length; pos++ {
1809 mask |= (1 << pos)
1810 }
1811
1812 masked := b & mask
1813 return uint64(masked >> start)
1814}
1815
1816// PSAPI_WORKING_SET_EX_INFORMATION contains extended working set information for a process.
1817type PSAPI_WORKING_SET_EX_INFORMATION struct {
1818 // The virtual address.
1819 VirtualAddress Pointer
1820 // A PSAPI_WORKING_SET_EX_BLOCK union that indicates the attributes of the page at VirtualAddress.
1821 VirtualAttributes PSAPI_WORKING_SET_EX_BLOCK
1822}
1823
1824// CreatePseudoConsole creates a windows pseudo console.
1825func CreatePseudoConsole(size Coord, in Handle, out Handle, flags uint32, pconsole *Handle) error {
1826 // We need this wrapper to manually cast Coord to uint32. The autogenerated wrappers only
1827 // accept arguments that can be casted to uintptr, and Coord can't.
1828 return createPseudoConsole(*((*uint32)(unsafe.Pointer(&size))), in, out, flags, pconsole)
1829}
1830
1831// ResizePseudoConsole resizes the internal buffers of the pseudo console to the width and height specified in `size`.
1832func ResizePseudoConsole(pconsole Handle, size Coord) error {
1833 // We need this wrapper to manually cast Coord to uint32. The autogenerated wrappers only
1834 // accept arguments that can be casted to uintptr, and Coord can't.
1835 return resizePseudoConsole(pconsole, *((*uint32)(unsafe.Pointer(&size))))
1836}
diff --git a/vendor/golang.org/x/sys/windows/types_windows.go b/vendor/golang.org/x/sys/windows/types_windows.go
deleted file mode 100644
index 359780f..0000000
--- a/vendor/golang.org/x/sys/windows/types_windows.go
+++ /dev/null
@@ -1,3382 +0,0 @@
1// Copyright 2011 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package windows
6
7import (
8 "net"
9 "syscall"
10 "unsafe"
11)
12
13// NTStatus corresponds with NTSTATUS, error values returned by ntdll.dll and
14// other native functions.
15type NTStatus uint32
16
17const (
18 // Invented values to support what package os expects.
19 O_RDONLY = 0x00000
20 O_WRONLY = 0x00001
21 O_RDWR = 0x00002
22 O_CREAT = 0x00040
23 O_EXCL = 0x00080
24 O_NOCTTY = 0x00100
25 O_TRUNC = 0x00200
26 O_NONBLOCK = 0x00800
27 O_APPEND = 0x00400
28 O_SYNC = 0x01000
29 O_ASYNC = 0x02000
30 O_CLOEXEC = 0x80000
31)
32
33const (
34 // More invented values for signals
35 SIGHUP = Signal(0x1)
36 SIGINT = Signal(0x2)
37 SIGQUIT = Signal(0x3)
38 SIGILL = Signal(0x4)
39 SIGTRAP = Signal(0x5)
40 SIGABRT = Signal(0x6)
41 SIGBUS = Signal(0x7)
42 SIGFPE = Signal(0x8)
43 SIGKILL = Signal(0x9)
44 SIGSEGV = Signal(0xb)
45 SIGPIPE = Signal(0xd)
46 SIGALRM = Signal(0xe)
47 SIGTERM = Signal(0xf)
48)
49
50var signals = [...]string{
51 1: "hangup",
52 2: "interrupt",
53 3: "quit",
54 4: "illegal instruction",
55 5: "trace/breakpoint trap",
56 6: "aborted",
57 7: "bus error",
58 8: "floating point exception",
59 9: "killed",
60 10: "user defined signal 1",
61 11: "segmentation fault",
62 12: "user defined signal 2",
63 13: "broken pipe",
64 14: "alarm clock",
65 15: "terminated",
66}
67
68const (
69 FILE_READ_DATA = 0x00000001
70 FILE_READ_ATTRIBUTES = 0x00000080
71 FILE_READ_EA = 0x00000008
72 FILE_WRITE_DATA = 0x00000002
73 FILE_WRITE_ATTRIBUTES = 0x00000100
74 FILE_WRITE_EA = 0x00000010
75 FILE_APPEND_DATA = 0x00000004
76 FILE_EXECUTE = 0x00000020
77
78 FILE_GENERIC_READ = STANDARD_RIGHTS_READ | FILE_READ_DATA | FILE_READ_ATTRIBUTES | FILE_READ_EA | SYNCHRONIZE
79 FILE_GENERIC_WRITE = STANDARD_RIGHTS_WRITE | FILE_WRITE_DATA | FILE_WRITE_ATTRIBUTES | FILE_WRITE_EA | FILE_APPEND_DATA | SYNCHRONIZE
80 FILE_GENERIC_EXECUTE = STANDARD_RIGHTS_EXECUTE | FILE_READ_ATTRIBUTES | FILE_EXECUTE | SYNCHRONIZE
81
82 FILE_LIST_DIRECTORY = 0x00000001
83 FILE_TRAVERSE = 0x00000020
84
85 FILE_SHARE_READ = 0x00000001
86 FILE_SHARE_WRITE = 0x00000002
87 FILE_SHARE_DELETE = 0x00000004
88
89 FILE_ATTRIBUTE_READONLY = 0x00000001
90 FILE_ATTRIBUTE_HIDDEN = 0x00000002
91 FILE_ATTRIBUTE_SYSTEM = 0x00000004
92 FILE_ATTRIBUTE_DIRECTORY = 0x00000010
93 FILE_ATTRIBUTE_ARCHIVE = 0x00000020
94 FILE_ATTRIBUTE_DEVICE = 0x00000040
95 FILE_ATTRIBUTE_NORMAL = 0x00000080
96 FILE_ATTRIBUTE_TEMPORARY = 0x00000100
97 FILE_ATTRIBUTE_SPARSE_FILE = 0x00000200
98 FILE_ATTRIBUTE_REPARSE_POINT = 0x00000400
99 FILE_ATTRIBUTE_COMPRESSED = 0x00000800
100 FILE_ATTRIBUTE_OFFLINE = 0x00001000
101 FILE_ATTRIBUTE_NOT_CONTENT_INDEXED = 0x00002000
102 FILE_ATTRIBUTE_ENCRYPTED = 0x00004000
103 FILE_ATTRIBUTE_INTEGRITY_STREAM = 0x00008000
104 FILE_ATTRIBUTE_VIRTUAL = 0x00010000
105 FILE_ATTRIBUTE_NO_SCRUB_DATA = 0x00020000
106 FILE_ATTRIBUTE_RECALL_ON_OPEN = 0x00040000
107 FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS = 0x00400000
108
109 INVALID_FILE_ATTRIBUTES = 0xffffffff
110
111 CREATE_NEW = 1
112 CREATE_ALWAYS = 2
113 OPEN_EXISTING = 3
114 OPEN_ALWAYS = 4
115 TRUNCATE_EXISTING = 5
116
117 FILE_FLAG_OPEN_REQUIRING_OPLOCK = 0x00040000
118 FILE_FLAG_FIRST_PIPE_INSTANCE = 0x00080000
119 FILE_FLAG_OPEN_NO_RECALL = 0x00100000
120 FILE_FLAG_OPEN_REPARSE_POINT = 0x00200000
121 FILE_FLAG_SESSION_AWARE = 0x00800000
122 FILE_FLAG_POSIX_SEMANTICS = 0x01000000
123 FILE_FLAG_BACKUP_SEMANTICS = 0x02000000
124 FILE_FLAG_DELETE_ON_CLOSE = 0x04000000
125 FILE_FLAG_SEQUENTIAL_SCAN = 0x08000000
126 FILE_FLAG_RANDOM_ACCESS = 0x10000000
127 FILE_FLAG_NO_BUFFERING = 0x20000000
128 FILE_FLAG_OVERLAPPED = 0x40000000
129 FILE_FLAG_WRITE_THROUGH = 0x80000000
130
131 HANDLE_FLAG_INHERIT = 0x00000001
132 STARTF_USESTDHANDLES = 0x00000100
133 STARTF_USESHOWWINDOW = 0x00000001
134 DUPLICATE_CLOSE_SOURCE = 0x00000001
135 DUPLICATE_SAME_ACCESS = 0x00000002
136
137 STD_INPUT_HANDLE = -10 & (1<<32 - 1)
138 STD_OUTPUT_HANDLE = -11 & (1<<32 - 1)
139 STD_ERROR_HANDLE = -12 & (1<<32 - 1)
140
141 FILE_BEGIN = 0
142 FILE_CURRENT = 1
143 FILE_END = 2
144
145 LANG_ENGLISH = 0x09
146 SUBLANG_ENGLISH_US = 0x01
147
148 FORMAT_MESSAGE_ALLOCATE_BUFFER = 256
149 FORMAT_MESSAGE_IGNORE_INSERTS = 512
150 FORMAT_MESSAGE_FROM_STRING = 1024
151 FORMAT_MESSAGE_FROM_HMODULE = 2048
152 FORMAT_MESSAGE_FROM_SYSTEM = 4096
153 FORMAT_MESSAGE_ARGUMENT_ARRAY = 8192
154 FORMAT_MESSAGE_MAX_WIDTH_MASK = 255
155
156 MAX_PATH = 260
157 MAX_LONG_PATH = 32768
158
159 MAX_MODULE_NAME32 = 255
160
161 MAX_COMPUTERNAME_LENGTH = 15
162
163 MAX_DHCPV6_DUID_LENGTH = 130
164
165 MAX_DNS_SUFFIX_STRING_LENGTH = 256
166
167 TIME_ZONE_ID_UNKNOWN = 0
168 TIME_ZONE_ID_STANDARD = 1
169
170 TIME_ZONE_ID_DAYLIGHT = 2
171 IGNORE = 0
172 INFINITE = 0xffffffff
173
174 WAIT_ABANDONED = 0x00000080
175 WAIT_OBJECT_0 = 0x00000000
176 WAIT_FAILED = 0xFFFFFFFF
177
178 // Access rights for process.
179 PROCESS_CREATE_PROCESS = 0x0080
180 PROCESS_CREATE_THREAD = 0x0002
181 PROCESS_DUP_HANDLE = 0x0040
182 PROCESS_QUERY_INFORMATION = 0x0400
183 PROCESS_QUERY_LIMITED_INFORMATION = 0x1000
184 PROCESS_SET_INFORMATION = 0x0200
185 PROCESS_SET_QUOTA = 0x0100
186 PROCESS_SUSPEND_RESUME = 0x0800
187 PROCESS_TERMINATE = 0x0001
188 PROCESS_VM_OPERATION = 0x0008
189 PROCESS_VM_READ = 0x0010
190 PROCESS_VM_WRITE = 0x0020
191
192 // Access rights for thread.
193 THREAD_DIRECT_IMPERSONATION = 0x0200
194 THREAD_GET_CONTEXT = 0x0008
195 THREAD_IMPERSONATE = 0x0100
196 THREAD_QUERY_INFORMATION = 0x0040
197 THREAD_QUERY_LIMITED_INFORMATION = 0x0800
198 THREAD_SET_CONTEXT = 0x0010
199 THREAD_SET_INFORMATION = 0x0020
200 THREAD_SET_LIMITED_INFORMATION = 0x0400
201 THREAD_SET_THREAD_TOKEN = 0x0080
202 THREAD_SUSPEND_RESUME = 0x0002
203 THREAD_TERMINATE = 0x0001
204
205 FILE_MAP_COPY = 0x01
206 FILE_MAP_WRITE = 0x02
207 FILE_MAP_READ = 0x04
208 FILE_MAP_EXECUTE = 0x20
209
210 CTRL_C_EVENT = 0
211 CTRL_BREAK_EVENT = 1
212 CTRL_CLOSE_EVENT = 2
213 CTRL_LOGOFF_EVENT = 5
214 CTRL_SHUTDOWN_EVENT = 6
215
216 // Windows reserves errors >= 1<<29 for application use.
217 APPLICATION_ERROR = 1 << 29
218)
219
220const (
221 // Process creation flags.
222 CREATE_BREAKAWAY_FROM_JOB = 0x01000000
223 CREATE_DEFAULT_ERROR_MODE = 0x04000000
224 CREATE_NEW_CONSOLE = 0x00000010
225 CREATE_NEW_PROCESS_GROUP = 0x00000200
226 CREATE_NO_WINDOW = 0x08000000
227 CREATE_PROTECTED_PROCESS = 0x00040000
228 CREATE_PRESERVE_CODE_AUTHZ_LEVEL = 0x02000000
229 CREATE_SEPARATE_WOW_VDM = 0x00000800
230 CREATE_SHARED_WOW_VDM = 0x00001000
231 CREATE_SUSPENDED = 0x00000004
232 CREATE_UNICODE_ENVIRONMENT = 0x00000400
233 DEBUG_ONLY_THIS_PROCESS = 0x00000002
234 DEBUG_PROCESS = 0x00000001
235 DETACHED_PROCESS = 0x00000008
236 EXTENDED_STARTUPINFO_PRESENT = 0x00080000
237 INHERIT_PARENT_AFFINITY = 0x00010000
238)
239
240const (
241 // attributes for ProcThreadAttributeList
242 PROC_THREAD_ATTRIBUTE_PARENT_PROCESS = 0x00020000
243 PROC_THREAD_ATTRIBUTE_HANDLE_LIST = 0x00020002
244 PROC_THREAD_ATTRIBUTE_GROUP_AFFINITY = 0x00030003
245 PROC_THREAD_ATTRIBUTE_PREFERRED_NODE = 0x00020004
246 PROC_THREAD_ATTRIBUTE_IDEAL_PROCESSOR = 0x00030005
247 PROC_THREAD_ATTRIBUTE_MITIGATION_POLICY = 0x00020007
248 PROC_THREAD_ATTRIBUTE_UMS_THREAD = 0x00030006
249 PROC_THREAD_ATTRIBUTE_PROTECTION_LEVEL = 0x0002000b
250 PROC_THREAD_ATTRIBUTE_PSEUDOCONSOLE = 0x00020016
251)
252
253const (
254 // flags for CreateToolhelp32Snapshot
255 TH32CS_SNAPHEAPLIST = 0x01
256 TH32CS_SNAPPROCESS = 0x02
257 TH32CS_SNAPTHREAD = 0x04
258 TH32CS_SNAPMODULE = 0x08
259 TH32CS_SNAPMODULE32 = 0x10
260 TH32CS_SNAPALL = TH32CS_SNAPHEAPLIST | TH32CS_SNAPMODULE | TH32CS_SNAPPROCESS | TH32CS_SNAPTHREAD
261 TH32CS_INHERIT = 0x80000000
262)
263
264const (
265 // flags for EnumProcessModulesEx
266 LIST_MODULES_32BIT = 0x01
267 LIST_MODULES_64BIT = 0x02
268 LIST_MODULES_ALL = 0x03
269 LIST_MODULES_DEFAULT = 0x00
270)
271
272const (
273 // filters for ReadDirectoryChangesW and FindFirstChangeNotificationW
274 FILE_NOTIFY_CHANGE_FILE_NAME = 0x001
275 FILE_NOTIFY_CHANGE_DIR_NAME = 0x002
276 FILE_NOTIFY_CHANGE_ATTRIBUTES = 0x004
277 FILE_NOTIFY_CHANGE_SIZE = 0x008
278 FILE_NOTIFY_CHANGE_LAST_WRITE = 0x010
279 FILE_NOTIFY_CHANGE_LAST_ACCESS = 0x020
280 FILE_NOTIFY_CHANGE_CREATION = 0x040
281 FILE_NOTIFY_CHANGE_SECURITY = 0x100
282)
283
284const (
285 // do not reorder
286 FILE_ACTION_ADDED = iota + 1
287 FILE_ACTION_REMOVED
288 FILE_ACTION_MODIFIED
289 FILE_ACTION_RENAMED_OLD_NAME
290 FILE_ACTION_RENAMED_NEW_NAME
291)
292
293const (
294 // wincrypt.h
295 /* certenrolld_begin -- PROV_RSA_*/
296 PROV_RSA_FULL = 1
297 PROV_RSA_SIG = 2
298 PROV_DSS = 3
299 PROV_FORTEZZA = 4
300 PROV_MS_EXCHANGE = 5
301 PROV_SSL = 6
302 PROV_RSA_SCHANNEL = 12
303 PROV_DSS_DH = 13
304 PROV_EC_ECDSA_SIG = 14
305 PROV_EC_ECNRA_SIG = 15
306 PROV_EC_ECDSA_FULL = 16
307 PROV_EC_ECNRA_FULL = 17
308 PROV_DH_SCHANNEL = 18
309 PROV_SPYRUS_LYNKS = 20
310 PROV_RNG = 21
311 PROV_INTEL_SEC = 22
312 PROV_REPLACE_OWF = 23
313 PROV_RSA_AES = 24
314
315 /* dwFlags definitions for CryptAcquireContext */
316 CRYPT_VERIFYCONTEXT = 0xF0000000
317 CRYPT_NEWKEYSET = 0x00000008
318 CRYPT_DELETEKEYSET = 0x00000010
319 CRYPT_MACHINE_KEYSET = 0x00000020
320 CRYPT_SILENT = 0x00000040
321 CRYPT_DEFAULT_CONTAINER_OPTIONAL = 0x00000080
322
323 /* Flags for PFXImportCertStore */
324 CRYPT_EXPORTABLE = 0x00000001
325 CRYPT_USER_PROTECTED = 0x00000002
326 CRYPT_USER_KEYSET = 0x00001000
327 PKCS12_PREFER_CNG_KSP = 0x00000100
328 PKCS12_ALWAYS_CNG_KSP = 0x00000200
329 PKCS12_ALLOW_OVERWRITE_KEY = 0x00004000
330 PKCS12_NO_PERSIST_KEY = 0x00008000
331 PKCS12_INCLUDE_EXTENDED_PROPERTIES = 0x00000010
332
333 /* Flags for CryptAcquireCertificatePrivateKey */
334 CRYPT_ACQUIRE_CACHE_FLAG = 0x00000001
335 CRYPT_ACQUIRE_USE_PROV_INFO_FLAG = 0x00000002
336 CRYPT_ACQUIRE_COMPARE_KEY_FLAG = 0x00000004
337 CRYPT_ACQUIRE_NO_HEALING = 0x00000008
338 CRYPT_ACQUIRE_SILENT_FLAG = 0x00000040
339 CRYPT_ACQUIRE_WINDOW_HANDLE_FLAG = 0x00000080
340 CRYPT_ACQUIRE_NCRYPT_KEY_FLAGS_MASK = 0x00070000
341 CRYPT_ACQUIRE_ALLOW_NCRYPT_KEY_FLAG = 0x00010000
342 CRYPT_ACQUIRE_PREFER_NCRYPT_KEY_FLAG = 0x00020000
343 CRYPT_ACQUIRE_ONLY_NCRYPT_KEY_FLAG = 0x00040000
344
345 /* pdwKeySpec for CryptAcquireCertificatePrivateKey */
346 AT_KEYEXCHANGE = 1
347 AT_SIGNATURE = 2
348 CERT_NCRYPT_KEY_SPEC = 0xFFFFFFFF
349
350 /* Default usage match type is AND with value zero */
351 USAGE_MATCH_TYPE_AND = 0
352 USAGE_MATCH_TYPE_OR = 1
353
354 /* msgAndCertEncodingType values for CertOpenStore function */
355 X509_ASN_ENCODING = 0x00000001
356 PKCS_7_ASN_ENCODING = 0x00010000
357
358 /* storeProvider values for CertOpenStore function */
359 CERT_STORE_PROV_MSG = 1
360 CERT_STORE_PROV_MEMORY = 2
361 CERT_STORE_PROV_FILE = 3
362 CERT_STORE_PROV_REG = 4
363 CERT_STORE_PROV_PKCS7 = 5
364 CERT_STORE_PROV_SERIALIZED = 6
365 CERT_STORE_PROV_FILENAME_A = 7
366 CERT_STORE_PROV_FILENAME_W = 8
367 CERT_STORE_PROV_FILENAME = CERT_STORE_PROV_FILENAME_W
368 CERT_STORE_PROV_SYSTEM_A = 9
369 CERT_STORE_PROV_SYSTEM_W = 10
370 CERT_STORE_PROV_SYSTEM = CERT_STORE_PROV_SYSTEM_W
371 CERT_STORE_PROV_COLLECTION = 11
372 CERT_STORE_PROV_SYSTEM_REGISTRY_A = 12
373 CERT_STORE_PROV_SYSTEM_REGISTRY_W = 13
374 CERT_STORE_PROV_SYSTEM_REGISTRY = CERT_STORE_PROV_SYSTEM_REGISTRY_W
375 CERT_STORE_PROV_PHYSICAL_W = 14
376 CERT_STORE_PROV_PHYSICAL = CERT_STORE_PROV_PHYSICAL_W
377 CERT_STORE_PROV_SMART_CARD_W = 15
378 CERT_STORE_PROV_SMART_CARD = CERT_STORE_PROV_SMART_CARD_W
379 CERT_STORE_PROV_LDAP_W = 16
380 CERT_STORE_PROV_LDAP = CERT_STORE_PROV_LDAP_W
381 CERT_STORE_PROV_PKCS12 = 17
382
383 /* store characteristics (low WORD of flag) for CertOpenStore function */
384 CERT_STORE_NO_CRYPT_RELEASE_FLAG = 0x00000001
385 CERT_STORE_SET_LOCALIZED_NAME_FLAG = 0x00000002
386 CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG = 0x00000004
387 CERT_STORE_DELETE_FLAG = 0x00000010
388 CERT_STORE_UNSAFE_PHYSICAL_FLAG = 0x00000020
389 CERT_STORE_SHARE_STORE_FLAG = 0x00000040
390 CERT_STORE_SHARE_CONTEXT_FLAG = 0x00000080
391 CERT_STORE_MANIFOLD_FLAG = 0x00000100
392 CERT_STORE_ENUM_ARCHIVED_FLAG = 0x00000200
393 CERT_STORE_UPDATE_KEYID_FLAG = 0x00000400
394 CERT_STORE_BACKUP_RESTORE_FLAG = 0x00000800
395 CERT_STORE_MAXIMUM_ALLOWED_FLAG = 0x00001000
396 CERT_STORE_CREATE_NEW_FLAG = 0x00002000
397 CERT_STORE_OPEN_EXISTING_FLAG = 0x00004000
398 CERT_STORE_READONLY_FLAG = 0x00008000
399
400 /* store locations (high WORD of flag) for CertOpenStore function */
401 CERT_SYSTEM_STORE_CURRENT_USER = 0x00010000
402 CERT_SYSTEM_STORE_LOCAL_MACHINE = 0x00020000
403 CERT_SYSTEM_STORE_CURRENT_SERVICE = 0x00040000
404 CERT_SYSTEM_STORE_SERVICES = 0x00050000
405 CERT_SYSTEM_STORE_USERS = 0x00060000
406 CERT_SYSTEM_STORE_CURRENT_USER_GROUP_POLICY = 0x00070000
407 CERT_SYSTEM_STORE_LOCAL_MACHINE_GROUP_POLICY = 0x00080000
408 CERT_SYSTEM_STORE_LOCAL_MACHINE_ENTERPRISE = 0x00090000
409 CERT_SYSTEM_STORE_UNPROTECTED_FLAG = 0x40000000
410 CERT_SYSTEM_STORE_RELOCATE_FLAG = 0x80000000
411
412 /* Miscellaneous high-WORD flags for CertOpenStore function */
413 CERT_REGISTRY_STORE_REMOTE_FLAG = 0x00010000
414 CERT_REGISTRY_STORE_SERIALIZED_FLAG = 0x00020000
415 CERT_REGISTRY_STORE_ROAMING_FLAG = 0x00040000
416 CERT_REGISTRY_STORE_MY_IE_DIRTY_FLAG = 0x00080000
417 CERT_REGISTRY_STORE_LM_GPT_FLAG = 0x01000000
418 CERT_REGISTRY_STORE_CLIENT_GPT_FLAG = 0x80000000
419 CERT_FILE_STORE_COMMIT_ENABLE_FLAG = 0x00010000
420 CERT_LDAP_STORE_SIGN_FLAG = 0x00010000
421 CERT_LDAP_STORE_AREC_EXCLUSIVE_FLAG = 0x00020000
422 CERT_LDAP_STORE_OPENED_FLAG = 0x00040000
423 CERT_LDAP_STORE_UNBIND_FLAG = 0x00080000
424
425 /* addDisposition values for CertAddCertificateContextToStore function */
426 CERT_STORE_ADD_NEW = 1
427 CERT_STORE_ADD_USE_EXISTING = 2
428 CERT_STORE_ADD_REPLACE_EXISTING = 3
429 CERT_STORE_ADD_ALWAYS = 4
430 CERT_STORE_ADD_REPLACE_EXISTING_INHERIT_PROPERTIES = 5
431 CERT_STORE_ADD_NEWER = 6
432 CERT_STORE_ADD_NEWER_INHERIT_PROPERTIES = 7
433
434 /* ErrorStatus values for CertTrustStatus struct */
435 CERT_TRUST_NO_ERROR = 0x00000000
436 CERT_TRUST_IS_NOT_TIME_VALID = 0x00000001
437 CERT_TRUST_IS_REVOKED = 0x00000004
438 CERT_TRUST_IS_NOT_SIGNATURE_VALID = 0x00000008
439 CERT_TRUST_IS_NOT_VALID_FOR_USAGE = 0x00000010
440 CERT_TRUST_IS_UNTRUSTED_ROOT = 0x00000020
441 CERT_TRUST_REVOCATION_STATUS_UNKNOWN = 0x00000040
442 CERT_TRUST_IS_CYCLIC = 0x00000080
443 CERT_TRUST_INVALID_EXTENSION = 0x00000100
444 CERT_TRUST_INVALID_POLICY_CONSTRAINTS = 0x00000200
445 CERT_TRUST_INVALID_BASIC_CONSTRAINTS = 0x00000400
446 CERT_TRUST_INVALID_NAME_CONSTRAINTS = 0x00000800
447 CERT_TRUST_HAS_NOT_SUPPORTED_NAME_CONSTRAINT = 0x00001000
448 CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT = 0x00002000
449 CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT = 0x00004000
450 CERT_TRUST_HAS_EXCLUDED_NAME_CONSTRAINT = 0x00008000
451 CERT_TRUST_IS_PARTIAL_CHAIN = 0x00010000
452 CERT_TRUST_CTL_IS_NOT_TIME_VALID = 0x00020000
453 CERT_TRUST_CTL_IS_NOT_SIGNATURE_VALID = 0x00040000
454 CERT_TRUST_CTL_IS_NOT_VALID_FOR_USAGE = 0x00080000
455 CERT_TRUST_HAS_WEAK_SIGNATURE = 0x00100000
456 CERT_TRUST_IS_OFFLINE_REVOCATION = 0x01000000
457 CERT_TRUST_NO_ISSUANCE_CHAIN_POLICY = 0x02000000
458 CERT_TRUST_IS_EXPLICIT_DISTRUST = 0x04000000
459 CERT_TRUST_HAS_NOT_SUPPORTED_CRITICAL_EXT = 0x08000000
460
461 /* InfoStatus values for CertTrustStatus struct */
462 CERT_TRUST_HAS_EXACT_MATCH_ISSUER = 0x00000001
463 CERT_TRUST_HAS_KEY_MATCH_ISSUER = 0x00000002
464 CERT_TRUST_HAS_NAME_MATCH_ISSUER = 0x00000004
465 CERT_TRUST_IS_SELF_SIGNED = 0x00000008
466 CERT_TRUST_HAS_PREFERRED_ISSUER = 0x00000100
467 CERT_TRUST_HAS_ISSUANCE_CHAIN_POLICY = 0x00000400
468 CERT_TRUST_HAS_VALID_NAME_CONSTRAINTS = 0x00000400
469 CERT_TRUST_IS_PEER_TRUSTED = 0x00000800
470 CERT_TRUST_HAS_CRL_VALIDITY_EXTENDED = 0x00001000
471 CERT_TRUST_IS_FROM_EXCLUSIVE_TRUST_STORE = 0x00002000
472 CERT_TRUST_IS_CA_TRUSTED = 0x00004000
473 CERT_TRUST_IS_COMPLEX_CHAIN = 0x00010000
474
475 /* Certificate Information Flags */
476 CERT_INFO_VERSION_FLAG = 1
477 CERT_INFO_SERIAL_NUMBER_FLAG = 2
478 CERT_INFO_SIGNATURE_ALGORITHM_FLAG = 3
479 CERT_INFO_ISSUER_FLAG = 4
480 CERT_INFO_NOT_BEFORE_FLAG = 5
481 CERT_INFO_NOT_AFTER_FLAG = 6
482 CERT_INFO_SUBJECT_FLAG = 7
483 CERT_INFO_SUBJECT_PUBLIC_KEY_INFO_FLAG = 8
484 CERT_INFO_ISSUER_UNIQUE_ID_FLAG = 9
485 CERT_INFO_SUBJECT_UNIQUE_ID_FLAG = 10
486 CERT_INFO_EXTENSION_FLAG = 11
487
488 /* dwFindType for CertFindCertificateInStore */
489 CERT_COMPARE_MASK = 0xFFFF
490 CERT_COMPARE_SHIFT = 16
491 CERT_COMPARE_ANY = 0
492 CERT_COMPARE_SHA1_HASH = 1
493 CERT_COMPARE_NAME = 2
494 CERT_COMPARE_ATTR = 3
495 CERT_COMPARE_MD5_HASH = 4
496 CERT_COMPARE_PROPERTY = 5
497 CERT_COMPARE_PUBLIC_KEY = 6
498 CERT_COMPARE_HASH = CERT_COMPARE_SHA1_HASH
499 CERT_COMPARE_NAME_STR_A = 7
500 CERT_COMPARE_NAME_STR_W = 8
501 CERT_COMPARE_KEY_SPEC = 9
502 CERT_COMPARE_ENHKEY_USAGE = 10
503 CERT_COMPARE_CTL_USAGE = CERT_COMPARE_ENHKEY_USAGE
504 CERT_COMPARE_SUBJECT_CERT = 11
505 CERT_COMPARE_ISSUER_OF = 12
506 CERT_COMPARE_EXISTING = 13
507 CERT_COMPARE_SIGNATURE_HASH = 14
508 CERT_COMPARE_KEY_IDENTIFIER = 15
509 CERT_COMPARE_CERT_ID = 16
510 CERT_COMPARE_CROSS_CERT_DIST_POINTS = 17
511 CERT_COMPARE_PUBKEY_MD5_HASH = 18
512 CERT_COMPARE_SUBJECT_INFO_ACCESS = 19
513 CERT_COMPARE_HASH_STR = 20
514 CERT_COMPARE_HAS_PRIVATE_KEY = 21
515 CERT_FIND_ANY = (CERT_COMPARE_ANY << CERT_COMPARE_SHIFT)
516 CERT_FIND_SHA1_HASH = (CERT_COMPARE_SHA1_HASH << CERT_COMPARE_SHIFT)
517 CERT_FIND_MD5_HASH = (CERT_COMPARE_MD5_HASH << CERT_COMPARE_SHIFT)
518 CERT_FIND_SIGNATURE_HASH = (CERT_COMPARE_SIGNATURE_HASH << CERT_COMPARE_SHIFT)
519 CERT_FIND_KEY_IDENTIFIER = (CERT_COMPARE_KEY_IDENTIFIER << CERT_COMPARE_SHIFT)
520 CERT_FIND_HASH = CERT_FIND_SHA1_HASH
521 CERT_FIND_PROPERTY = (CERT_COMPARE_PROPERTY << CERT_COMPARE_SHIFT)
522 CERT_FIND_PUBLIC_KEY = (CERT_COMPARE_PUBLIC_KEY << CERT_COMPARE_SHIFT)
523 CERT_FIND_SUBJECT_NAME = (CERT_COMPARE_NAME<<CERT_COMPARE_SHIFT | CERT_INFO_SUBJECT_FLAG)
524 CERT_FIND_SUBJECT_ATTR = (CERT_COMPARE_ATTR<<CERT_COMPARE_SHIFT | CERT_INFO_SUBJECT_FLAG)
525 CERT_FIND_ISSUER_NAME = (CERT_COMPARE_NAME<<CERT_COMPARE_SHIFT | CERT_INFO_ISSUER_FLAG)
526 CERT_FIND_ISSUER_ATTR = (CERT_COMPARE_ATTR<<CERT_COMPARE_SHIFT | CERT_INFO_ISSUER_FLAG)
527 CERT_FIND_SUBJECT_STR_A = (CERT_COMPARE_NAME_STR_A<<CERT_COMPARE_SHIFT | CERT_INFO_SUBJECT_FLAG)
528 CERT_FIND_SUBJECT_STR_W = (CERT_COMPARE_NAME_STR_W<<CERT_COMPARE_SHIFT | CERT_INFO_SUBJECT_FLAG)
529 CERT_FIND_SUBJECT_STR = CERT_FIND_SUBJECT_STR_W
530 CERT_FIND_ISSUER_STR_A = (CERT_COMPARE_NAME_STR_A<<CERT_COMPARE_SHIFT | CERT_INFO_ISSUER_FLAG)
531 CERT_FIND_ISSUER_STR_W = (CERT_COMPARE_NAME_STR_W<<CERT_COMPARE_SHIFT | CERT_INFO_ISSUER_FLAG)
532 CERT_FIND_ISSUER_STR = CERT_FIND_ISSUER_STR_W
533 CERT_FIND_KEY_SPEC = (CERT_COMPARE_KEY_SPEC << CERT_COMPARE_SHIFT)
534 CERT_FIND_ENHKEY_USAGE = (CERT_COMPARE_ENHKEY_USAGE << CERT_COMPARE_SHIFT)
535 CERT_FIND_CTL_USAGE = CERT_FIND_ENHKEY_USAGE
536 CERT_FIND_SUBJECT_CERT = (CERT_COMPARE_SUBJECT_CERT << CERT_COMPARE_SHIFT)
537 CERT_FIND_ISSUER_OF = (CERT_COMPARE_ISSUER_OF << CERT_COMPARE_SHIFT)
538 CERT_FIND_EXISTING = (CERT_COMPARE_EXISTING << CERT_COMPARE_SHIFT)
539 CERT_FIND_CERT_ID = (CERT_COMPARE_CERT_ID << CERT_COMPARE_SHIFT)
540 CERT_FIND_CROSS_CERT_DIST_POINTS = (CERT_COMPARE_CROSS_CERT_DIST_POINTS << CERT_COMPARE_SHIFT)
541 CERT_FIND_PUBKEY_MD5_HASH = (CERT_COMPARE_PUBKEY_MD5_HASH << CERT_COMPARE_SHIFT)
542 CERT_FIND_SUBJECT_INFO_ACCESS = (CERT_COMPARE_SUBJECT_INFO_ACCESS << CERT_COMPARE_SHIFT)
543 CERT_FIND_HASH_STR = (CERT_COMPARE_HASH_STR << CERT_COMPARE_SHIFT)
544 CERT_FIND_HAS_PRIVATE_KEY = (CERT_COMPARE_HAS_PRIVATE_KEY << CERT_COMPARE_SHIFT)
545 CERT_FIND_OPTIONAL_ENHKEY_USAGE_FLAG = 0x1
546 CERT_FIND_EXT_ONLY_ENHKEY_USAGE_FLAG = 0x2
547 CERT_FIND_PROP_ONLY_ENHKEY_USAGE_FLAG = 0x4
548 CERT_FIND_NO_ENHKEY_USAGE_FLAG = 0x8
549 CERT_FIND_OR_ENHKEY_USAGE_FLAG = 0x10
550 CERT_FIND_VALID_ENHKEY_USAGE_FLAG = 0x20
551 CERT_FIND_OPTIONAL_CTL_USAGE_FLAG = CERT_FIND_OPTIONAL_ENHKEY_USAGE_FLAG
552 CERT_FIND_EXT_ONLY_CTL_USAGE_FLAG = CERT_FIND_EXT_ONLY_ENHKEY_USAGE_FLAG
553 CERT_FIND_PROP_ONLY_CTL_USAGE_FLAG = CERT_FIND_PROP_ONLY_ENHKEY_USAGE_FLAG
554 CERT_FIND_NO_CTL_USAGE_FLAG = CERT_FIND_NO_ENHKEY_USAGE_FLAG
555 CERT_FIND_OR_CTL_USAGE_FLAG = CERT_FIND_OR_ENHKEY_USAGE_FLAG
556 CERT_FIND_VALID_CTL_USAGE_FLAG = CERT_FIND_VALID_ENHKEY_USAGE_FLAG
557
558 /* policyOID values for CertVerifyCertificateChainPolicy function */
559 CERT_CHAIN_POLICY_BASE = 1
560 CERT_CHAIN_POLICY_AUTHENTICODE = 2
561 CERT_CHAIN_POLICY_AUTHENTICODE_TS = 3
562 CERT_CHAIN_POLICY_SSL = 4
563 CERT_CHAIN_POLICY_BASIC_CONSTRAINTS = 5
564 CERT_CHAIN_POLICY_NT_AUTH = 6
565 CERT_CHAIN_POLICY_MICROSOFT_ROOT = 7
566 CERT_CHAIN_POLICY_EV = 8
567 CERT_CHAIN_POLICY_SSL_F12 = 9
568
569 /* flag for dwFindType CertFindChainInStore */
570 CERT_CHAIN_FIND_BY_ISSUER = 1
571
572 /* dwFindFlags for CertFindChainInStore when dwFindType == CERT_CHAIN_FIND_BY_ISSUER */
573 CERT_CHAIN_FIND_BY_ISSUER_COMPARE_KEY_FLAG = 0x0001
574 CERT_CHAIN_FIND_BY_ISSUER_COMPLEX_CHAIN_FLAG = 0x0002
575 CERT_CHAIN_FIND_BY_ISSUER_CACHE_ONLY_URL_FLAG = 0x0004
576 CERT_CHAIN_FIND_BY_ISSUER_LOCAL_MACHINE_FLAG = 0x0008
577 CERT_CHAIN_FIND_BY_ISSUER_NO_KEY_FLAG = 0x4000
578 CERT_CHAIN_FIND_BY_ISSUER_CACHE_ONLY_FLAG = 0x8000
579
580 /* Certificate Store close flags */
581 CERT_CLOSE_STORE_FORCE_FLAG = 0x00000001
582 CERT_CLOSE_STORE_CHECK_FLAG = 0x00000002
583
584 /* CryptQueryObject object type */
585 CERT_QUERY_OBJECT_FILE = 1
586 CERT_QUERY_OBJECT_BLOB = 2
587
588 /* CryptQueryObject content type flags */
589 CERT_QUERY_CONTENT_CERT = 1
590 CERT_QUERY_CONTENT_CTL = 2
591 CERT_QUERY_CONTENT_CRL = 3
592 CERT_QUERY_CONTENT_SERIALIZED_STORE = 4
593 CERT_QUERY_CONTENT_SERIALIZED_CERT = 5
594 CERT_QUERY_CONTENT_SERIALIZED_CTL = 6
595 CERT_QUERY_CONTENT_SERIALIZED_CRL = 7
596 CERT_QUERY_CONTENT_PKCS7_SIGNED = 8
597 CERT_QUERY_CONTENT_PKCS7_UNSIGNED = 9
598 CERT_QUERY_CONTENT_PKCS7_SIGNED_EMBED = 10
599 CERT_QUERY_CONTENT_PKCS10 = 11
600 CERT_QUERY_CONTENT_PFX = 12
601 CERT_QUERY_CONTENT_CERT_PAIR = 13
602 CERT_QUERY_CONTENT_PFX_AND_LOAD = 14
603 CERT_QUERY_CONTENT_FLAG_CERT = (1 << CERT_QUERY_CONTENT_CERT)
604 CERT_QUERY_CONTENT_FLAG_CTL = (1 << CERT_QUERY_CONTENT_CTL)
605 CERT_QUERY_CONTENT_FLAG_CRL = (1 << CERT_QUERY_CONTENT_CRL)
606 CERT_QUERY_CONTENT_FLAG_SERIALIZED_STORE = (1 << CERT_QUERY_CONTENT_SERIALIZED_STORE)
607 CERT_QUERY_CONTENT_FLAG_SERIALIZED_CERT = (1 << CERT_QUERY_CONTENT_SERIALIZED_CERT)
608 CERT_QUERY_CONTENT_FLAG_SERIALIZED_CTL = (1 << CERT_QUERY_CONTENT_SERIALIZED_CTL)
609 CERT_QUERY_CONTENT_FLAG_SERIALIZED_CRL = (1 << CERT_QUERY_CONTENT_SERIALIZED_CRL)
610 CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED = (1 << CERT_QUERY_CONTENT_PKCS7_SIGNED)
611 CERT_QUERY_CONTENT_FLAG_PKCS7_UNSIGNED = (1 << CERT_QUERY_CONTENT_PKCS7_UNSIGNED)
612 CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED_EMBED = (1 << CERT_QUERY_CONTENT_PKCS7_SIGNED_EMBED)
613 CERT_QUERY_CONTENT_FLAG_PKCS10 = (1 << CERT_QUERY_CONTENT_PKCS10)
614 CERT_QUERY_CONTENT_FLAG_PFX = (1 << CERT_QUERY_CONTENT_PFX)
615 CERT_QUERY_CONTENT_FLAG_CERT_PAIR = (1 << CERT_QUERY_CONTENT_CERT_PAIR)
616 CERT_QUERY_CONTENT_FLAG_PFX_AND_LOAD = (1 << CERT_QUERY_CONTENT_PFX_AND_LOAD)
617 CERT_QUERY_CONTENT_FLAG_ALL = (CERT_QUERY_CONTENT_FLAG_CERT | CERT_QUERY_CONTENT_FLAG_CTL | CERT_QUERY_CONTENT_FLAG_CRL | CERT_QUERY_CONTENT_FLAG_SERIALIZED_STORE | CERT_QUERY_CONTENT_FLAG_SERIALIZED_CERT | CERT_QUERY_CONTENT_FLAG_SERIALIZED_CTL | CERT_QUERY_CONTENT_FLAG_SERIALIZED_CRL | CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED | CERT_QUERY_CONTENT_FLAG_PKCS7_UNSIGNED | CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED_EMBED | CERT_QUERY_CONTENT_FLAG_PKCS10 | CERT_QUERY_CONTENT_FLAG_PFX | CERT_QUERY_CONTENT_FLAG_CERT_PAIR)
618 CERT_QUERY_CONTENT_FLAG_ALL_ISSUER_CERT = (CERT_QUERY_CONTENT_FLAG_CERT | CERT_QUERY_CONTENT_FLAG_SERIALIZED_STORE | CERT_QUERY_CONTENT_FLAG_SERIALIZED_CERT | CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED | CERT_QUERY_CONTENT_FLAG_PKCS7_UNSIGNED)
619
620 /* CryptQueryObject format type flags */
621 CERT_QUERY_FORMAT_BINARY = 1
622 CERT_QUERY_FORMAT_BASE64_ENCODED = 2
623 CERT_QUERY_FORMAT_ASN_ASCII_HEX_ENCODED = 3
624 CERT_QUERY_FORMAT_FLAG_BINARY = (1 << CERT_QUERY_FORMAT_BINARY)
625 CERT_QUERY_FORMAT_FLAG_BASE64_ENCODED = (1 << CERT_QUERY_FORMAT_BASE64_ENCODED)
626 CERT_QUERY_FORMAT_FLAG_ASN_ASCII_HEX_ENCODED = (1 << CERT_QUERY_FORMAT_ASN_ASCII_HEX_ENCODED)
627 CERT_QUERY_FORMAT_FLAG_ALL = (CERT_QUERY_FORMAT_FLAG_BINARY | CERT_QUERY_FORMAT_FLAG_BASE64_ENCODED | CERT_QUERY_FORMAT_FLAG_ASN_ASCII_HEX_ENCODED)
628
629 /* CertGetNameString name types */
630 CERT_NAME_EMAIL_TYPE = 1
631 CERT_NAME_RDN_TYPE = 2
632 CERT_NAME_ATTR_TYPE = 3
633 CERT_NAME_SIMPLE_DISPLAY_TYPE = 4
634 CERT_NAME_FRIENDLY_DISPLAY_TYPE = 5
635 CERT_NAME_DNS_TYPE = 6
636 CERT_NAME_URL_TYPE = 7
637 CERT_NAME_UPN_TYPE = 8
638
639 /* CertGetNameString flags */
640 CERT_NAME_ISSUER_FLAG = 0x1
641 CERT_NAME_DISABLE_IE4_UTF8_FLAG = 0x10000
642 CERT_NAME_SEARCH_ALL_NAMES_FLAG = 0x2
643 CERT_NAME_STR_ENABLE_PUNYCODE_FLAG = 0x00200000
644
645 /* AuthType values for SSLExtraCertChainPolicyPara struct */
646 AUTHTYPE_CLIENT = 1
647 AUTHTYPE_SERVER = 2
648
649 /* Checks values for SSLExtraCertChainPolicyPara struct */
650 SECURITY_FLAG_IGNORE_REVOCATION = 0x00000080
651 SECURITY_FLAG_IGNORE_UNKNOWN_CA = 0x00000100
652 SECURITY_FLAG_IGNORE_WRONG_USAGE = 0x00000200
653 SECURITY_FLAG_IGNORE_CERT_CN_INVALID = 0x00001000
654 SECURITY_FLAG_IGNORE_CERT_DATE_INVALID = 0x00002000
655
656 /* Flags for Crypt[Un]ProtectData */
657 CRYPTPROTECT_UI_FORBIDDEN = 0x1
658 CRYPTPROTECT_LOCAL_MACHINE = 0x4
659 CRYPTPROTECT_CRED_SYNC = 0x8
660 CRYPTPROTECT_AUDIT = 0x10
661 CRYPTPROTECT_NO_RECOVERY = 0x20
662 CRYPTPROTECT_VERIFY_PROTECTION = 0x40
663 CRYPTPROTECT_CRED_REGENERATE = 0x80
664
665 /* Flags for CryptProtectPromptStruct */
666 CRYPTPROTECT_PROMPT_ON_UNPROTECT = 1
667 CRYPTPROTECT_PROMPT_ON_PROTECT = 2
668 CRYPTPROTECT_PROMPT_RESERVED = 4
669 CRYPTPROTECT_PROMPT_STRONG = 8
670 CRYPTPROTECT_PROMPT_REQUIRE_STRONG = 16
671)
672
673const (
674 // flags for SetErrorMode
675 SEM_FAILCRITICALERRORS = 0x0001
676 SEM_NOALIGNMENTFAULTEXCEPT = 0x0004
677 SEM_NOGPFAULTERRORBOX = 0x0002
678 SEM_NOOPENFILEERRORBOX = 0x8000
679)
680
681const (
682 // Priority class.
683 ABOVE_NORMAL_PRIORITY_CLASS = 0x00008000
684 BELOW_NORMAL_PRIORITY_CLASS = 0x00004000
685 HIGH_PRIORITY_CLASS = 0x00000080
686 IDLE_PRIORITY_CLASS = 0x00000040
687 NORMAL_PRIORITY_CLASS = 0x00000020
688 PROCESS_MODE_BACKGROUND_BEGIN = 0x00100000
689 PROCESS_MODE_BACKGROUND_END = 0x00200000
690 REALTIME_PRIORITY_CLASS = 0x00000100
691)
692
693/* wintrust.h constants for WinVerifyTrustEx */
694const (
695 WTD_UI_ALL = 1
696 WTD_UI_NONE = 2
697 WTD_UI_NOBAD = 3
698 WTD_UI_NOGOOD = 4
699
700 WTD_REVOKE_NONE = 0
701 WTD_REVOKE_WHOLECHAIN = 1
702
703 WTD_CHOICE_FILE = 1
704 WTD_CHOICE_CATALOG = 2
705 WTD_CHOICE_BLOB = 3
706 WTD_CHOICE_SIGNER = 4
707 WTD_CHOICE_CERT = 5
708
709 WTD_STATEACTION_IGNORE = 0x00000000
710 WTD_STATEACTION_VERIFY = 0x00000001
711 WTD_STATEACTION_CLOSE = 0x00000002
712 WTD_STATEACTION_AUTO_CACHE = 0x00000003
713 WTD_STATEACTION_AUTO_CACHE_FLUSH = 0x00000004
714
715 WTD_USE_IE4_TRUST_FLAG = 0x1
716 WTD_NO_IE4_CHAIN_FLAG = 0x2
717 WTD_NO_POLICY_USAGE_FLAG = 0x4
718 WTD_REVOCATION_CHECK_NONE = 0x10
719 WTD_REVOCATION_CHECK_END_CERT = 0x20
720 WTD_REVOCATION_CHECK_CHAIN = 0x40
721 WTD_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT = 0x80
722 WTD_SAFER_FLAG = 0x100
723 WTD_HASH_ONLY_FLAG = 0x200
724 WTD_USE_DEFAULT_OSVER_CHECK = 0x400
725 WTD_LIFETIME_SIGNING_FLAG = 0x800
726 WTD_CACHE_ONLY_URL_RETRIEVAL = 0x1000
727 WTD_DISABLE_MD2_MD4 = 0x2000
728 WTD_MOTW = 0x4000
729
730 WTD_UICONTEXT_EXECUTE = 0
731 WTD_UICONTEXT_INSTALL = 1
732)
733
734var (
735 OID_PKIX_KP_SERVER_AUTH = []byte("1.3.6.1.5.5.7.3.1\x00")
736 OID_SERVER_GATED_CRYPTO = []byte("1.3.6.1.4.1.311.10.3.3\x00")
737 OID_SGC_NETSCAPE = []byte("2.16.840.1.113730.4.1\x00")
738
739 WINTRUST_ACTION_GENERIC_VERIFY_V2 = GUID{
740 Data1: 0xaac56b,
741 Data2: 0xcd44,
742 Data3: 0x11d0,
743 Data4: [8]byte{0x8c, 0xc2, 0x0, 0xc0, 0x4f, 0xc2, 0x95, 0xee},
744 }
745)
746
747// Pointer represents a pointer to an arbitrary Windows type.
748//
749// Pointer-typed fields may point to one of many different types. It's
750// up to the caller to provide a pointer to the appropriate type, cast
751// to Pointer. The caller must obey the unsafe.Pointer rules while
752// doing so.
753type Pointer *struct{}
754
755// Invented values to support what package os expects.
756type Timeval struct {
757 Sec int32
758 Usec int32
759}
760
761func (tv *Timeval) Nanoseconds() int64 {
762 return (int64(tv.Sec)*1e6 + int64(tv.Usec)) * 1e3
763}
764
765func NsecToTimeval(nsec int64) (tv Timeval) {
766 tv.Sec = int32(nsec / 1e9)
767 tv.Usec = int32(nsec % 1e9 / 1e3)
768 return
769}
770
771type Overlapped struct {
772 Internal uintptr
773 InternalHigh uintptr
774 Offset uint32
775 OffsetHigh uint32
776 HEvent Handle
777}
778
779type FileNotifyInformation struct {
780 NextEntryOffset uint32
781 Action uint32
782 FileNameLength uint32
783 FileName uint16
784}
785
786type Filetime struct {
787 LowDateTime uint32
788 HighDateTime uint32
789}
790
791// Nanoseconds returns Filetime ft in nanoseconds
792// since Epoch (00:00:00 UTC, January 1, 1970).
793func (ft *Filetime) Nanoseconds() int64 {
794 // 100-nanosecond intervals since January 1, 1601
795 nsec := int64(ft.HighDateTime)<<32 + int64(ft.LowDateTime)
796 // change starting time to the Epoch (00:00:00 UTC, January 1, 1970)
797 nsec -= 116444736000000000
798 // convert into nanoseconds
799 nsec *= 100
800 return nsec
801}
802
803func NsecToFiletime(nsec int64) (ft Filetime) {
804 // convert into 100-nanosecond
805 nsec /= 100
806 // change starting time to January 1, 1601
807 nsec += 116444736000000000
808 // split into high / low
809 ft.LowDateTime = uint32(nsec & 0xffffffff)
810 ft.HighDateTime = uint32(nsec >> 32 & 0xffffffff)
811 return ft
812}
813
814type Win32finddata struct {
815 FileAttributes uint32
816 CreationTime Filetime
817 LastAccessTime Filetime
818 LastWriteTime Filetime
819 FileSizeHigh uint32
820 FileSizeLow uint32
821 Reserved0 uint32
822 Reserved1 uint32
823 FileName [MAX_PATH - 1]uint16
824 AlternateFileName [13]uint16
825}
826
827// This is the actual system call structure.
828// Win32finddata is what we committed to in Go 1.
829type win32finddata1 struct {
830 FileAttributes uint32
831 CreationTime Filetime
832 LastAccessTime Filetime
833 LastWriteTime Filetime
834 FileSizeHigh uint32
835 FileSizeLow uint32
836 Reserved0 uint32
837 Reserved1 uint32
838 FileName [MAX_PATH]uint16
839 AlternateFileName [14]uint16
840
841 // The Microsoft documentation for this struct¹ describes three additional
842 // fields: dwFileType, dwCreatorType, and wFinderFlags. However, those fields
843 // are empirically only present in the macOS port of the Win32 API,² and thus
844 // not needed for binaries built for Windows.
845 //
846 // ¹ https://docs.microsoft.com/en-us/windows/win32/api/minwinbase/ns-minwinbase-win32_find_dataw describe
847 // ² https://golang.org/issue/42637#issuecomment-760715755.
848}
849
850func copyFindData(dst *Win32finddata, src *win32finddata1) {
851 dst.FileAttributes = src.FileAttributes
852 dst.CreationTime = src.CreationTime
853 dst.LastAccessTime = src.LastAccessTime
854 dst.LastWriteTime = src.LastWriteTime
855 dst.FileSizeHigh = src.FileSizeHigh
856 dst.FileSizeLow = src.FileSizeLow
857 dst.Reserved0 = src.Reserved0
858 dst.Reserved1 = src.Reserved1
859
860 // The src is 1 element bigger than dst, but it must be NUL.
861 copy(dst.FileName[:], src.FileName[:])
862 copy(dst.AlternateFileName[:], src.AlternateFileName[:])
863}
864
865type ByHandleFileInformation struct {
866 FileAttributes uint32
867 CreationTime Filetime
868 LastAccessTime Filetime
869 LastWriteTime Filetime
870 VolumeSerialNumber uint32
871 FileSizeHigh uint32
872 FileSizeLow uint32
873 NumberOfLinks uint32
874 FileIndexHigh uint32
875 FileIndexLow uint32
876}
877
878const (
879 GetFileExInfoStandard = 0
880 GetFileExMaxInfoLevel = 1
881)
882
883type Win32FileAttributeData struct {
884 FileAttributes uint32
885 CreationTime Filetime
886 LastAccessTime Filetime
887 LastWriteTime Filetime
888 FileSizeHigh uint32
889 FileSizeLow uint32
890}
891
892// ShowWindow constants
893const (
894 // winuser.h
895 SW_HIDE = 0
896 SW_NORMAL = 1
897 SW_SHOWNORMAL = 1
898 SW_SHOWMINIMIZED = 2
899 SW_SHOWMAXIMIZED = 3
900 SW_MAXIMIZE = 3
901 SW_SHOWNOACTIVATE = 4
902 SW_SHOW = 5
903 SW_MINIMIZE = 6
904 SW_SHOWMINNOACTIVE = 7
905 SW_SHOWNA = 8
906 SW_RESTORE = 9
907 SW_SHOWDEFAULT = 10
908 SW_FORCEMINIMIZE = 11
909)
910
911type StartupInfo struct {
912 Cb uint32
913 _ *uint16
914 Desktop *uint16
915 Title *uint16
916 X uint32
917 Y uint32
918 XSize uint32
919 YSize uint32
920 XCountChars uint32
921 YCountChars uint32
922 FillAttribute uint32
923 Flags uint32
924 ShowWindow uint16
925 _ uint16
926 _ *byte
927 StdInput Handle
928 StdOutput Handle
929 StdErr Handle
930}
931
932type StartupInfoEx struct {
933 StartupInfo
934 ProcThreadAttributeList *ProcThreadAttributeList
935}
936
937// ProcThreadAttributeList is a placeholder type to represent a PROC_THREAD_ATTRIBUTE_LIST.
938//
939// To create a *ProcThreadAttributeList, use NewProcThreadAttributeList, update
940// it with ProcThreadAttributeListContainer.Update, free its memory using
941// ProcThreadAttributeListContainer.Delete, and access the list itself using
942// ProcThreadAttributeListContainer.List.
943type ProcThreadAttributeList struct{}
944
945type ProcThreadAttributeListContainer struct {
946 data *ProcThreadAttributeList
947 pointers []unsafe.Pointer
948}
949
950type ProcessInformation struct {
951 Process Handle
952 Thread Handle
953 ProcessId uint32
954 ThreadId uint32
955}
956
957type ProcessEntry32 struct {
958 Size uint32
959 Usage uint32
960 ProcessID uint32
961 DefaultHeapID uintptr
962 ModuleID uint32
963 Threads uint32
964 ParentProcessID uint32
965 PriClassBase int32
966 Flags uint32
967 ExeFile [MAX_PATH]uint16
968}
969
970type ThreadEntry32 struct {
971 Size uint32
972 Usage uint32
973 ThreadID uint32
974 OwnerProcessID uint32
975 BasePri int32
976 DeltaPri int32
977 Flags uint32
978}
979
980type ModuleEntry32 struct {
981 Size uint32
982 ModuleID uint32
983 ProcessID uint32
984 GlblcntUsage uint32
985 ProccntUsage uint32
986 ModBaseAddr uintptr
987 ModBaseSize uint32
988 ModuleHandle Handle
989 Module [MAX_MODULE_NAME32 + 1]uint16
990 ExePath [MAX_PATH]uint16
991}
992
993const SizeofModuleEntry32 = unsafe.Sizeof(ModuleEntry32{})
994
995type Systemtime struct {
996 Year uint16
997 Month uint16
998 DayOfWeek uint16
999 Day uint16
1000 Hour uint16
1001 Minute uint16
1002 Second uint16
1003 Milliseconds uint16
1004}
1005
1006type Timezoneinformation struct {
1007 Bias int32
1008 StandardName [32]uint16
1009 StandardDate Systemtime
1010 StandardBias int32
1011 DaylightName [32]uint16
1012 DaylightDate Systemtime
1013 DaylightBias int32
1014}
1015
1016// Socket related.
1017
1018const (
1019 AF_UNSPEC = 0
1020 AF_UNIX = 1
1021 AF_INET = 2
1022 AF_NETBIOS = 17
1023 AF_INET6 = 23
1024 AF_IRDA = 26
1025 AF_BTH = 32
1026
1027 SOCK_STREAM = 1
1028 SOCK_DGRAM = 2
1029 SOCK_RAW = 3
1030 SOCK_RDM = 4
1031 SOCK_SEQPACKET = 5
1032
1033 IPPROTO_IP = 0
1034 IPPROTO_ICMP = 1
1035 IPPROTO_IGMP = 2
1036 BTHPROTO_RFCOMM = 3
1037 IPPROTO_TCP = 6
1038 IPPROTO_UDP = 17
1039 IPPROTO_IPV6 = 41
1040 IPPROTO_ICMPV6 = 58
1041 IPPROTO_RM = 113
1042
1043 SOL_SOCKET = 0xffff
1044 SO_REUSEADDR = 4
1045 SO_KEEPALIVE = 8
1046 SO_DONTROUTE = 16
1047 SO_BROADCAST = 32
1048 SO_LINGER = 128
1049 SO_RCVBUF = 0x1002
1050 SO_RCVTIMEO = 0x1006
1051 SO_SNDBUF = 0x1001
1052 SO_UPDATE_ACCEPT_CONTEXT = 0x700b
1053 SO_UPDATE_CONNECT_CONTEXT = 0x7010
1054
1055 IOC_OUT = 0x40000000
1056 IOC_IN = 0x80000000
1057 IOC_VENDOR = 0x18000000
1058 IOC_INOUT = IOC_IN | IOC_OUT
1059 IOC_WS2 = 0x08000000
1060 SIO_GET_EXTENSION_FUNCTION_POINTER = IOC_INOUT | IOC_WS2 | 6
1061 SIO_KEEPALIVE_VALS = IOC_IN | IOC_VENDOR | 4
1062 SIO_UDP_CONNRESET = IOC_IN | IOC_VENDOR | 12
1063
1064 // cf. http://support.microsoft.com/default.aspx?scid=kb;en-us;257460
1065
1066 IP_HDRINCL = 0x2
1067 IP_TOS = 0x3
1068 IP_TTL = 0x4
1069 IP_MULTICAST_IF = 0x9
1070 IP_MULTICAST_TTL = 0xa
1071 IP_MULTICAST_LOOP = 0xb
1072 IP_ADD_MEMBERSHIP = 0xc
1073 IP_DROP_MEMBERSHIP = 0xd
1074 IP_PKTINFO = 0x13
1075
1076 IPV6_V6ONLY = 0x1b
1077 IPV6_UNICAST_HOPS = 0x4
1078 IPV6_MULTICAST_IF = 0x9
1079 IPV6_MULTICAST_HOPS = 0xa
1080 IPV6_MULTICAST_LOOP = 0xb
1081 IPV6_JOIN_GROUP = 0xc
1082 IPV6_LEAVE_GROUP = 0xd
1083 IPV6_PKTINFO = 0x13
1084
1085 MSG_OOB = 0x1
1086 MSG_PEEK = 0x2
1087 MSG_DONTROUTE = 0x4
1088 MSG_WAITALL = 0x8
1089
1090 MSG_TRUNC = 0x0100
1091 MSG_CTRUNC = 0x0200
1092 MSG_BCAST = 0x0400
1093 MSG_MCAST = 0x0800
1094
1095 SOMAXCONN = 0x7fffffff
1096
1097 TCP_NODELAY = 1
1098 TCP_EXPEDITED_1122 = 2
1099 TCP_KEEPALIVE = 3
1100 TCP_MAXSEG = 4
1101 TCP_MAXRT = 5
1102 TCP_STDURG = 6
1103 TCP_NOURG = 7
1104 TCP_ATMARK = 8
1105 TCP_NOSYNRETRIES = 9
1106 TCP_TIMESTAMPS = 10
1107 TCP_OFFLOAD_PREFERENCE = 11
1108 TCP_CONGESTION_ALGORITHM = 12
1109 TCP_DELAY_FIN_ACK = 13
1110 TCP_MAXRTMS = 14
1111 TCP_FASTOPEN = 15
1112 TCP_KEEPCNT = 16
1113 TCP_KEEPIDLE = TCP_KEEPALIVE
1114 TCP_KEEPINTVL = 17
1115 TCP_FAIL_CONNECT_ON_ICMP_ERROR = 18
1116 TCP_ICMP_ERROR_INFO = 19
1117
1118 UDP_NOCHECKSUM = 1
1119 UDP_SEND_MSG_SIZE = 2
1120 UDP_RECV_MAX_COALESCED_SIZE = 3
1121 UDP_CHECKSUM_COVERAGE = 20
1122
1123 UDP_COALESCED_INFO = 3
1124
1125 SHUT_RD = 0
1126 SHUT_WR = 1
1127 SHUT_RDWR = 2
1128
1129 WSADESCRIPTION_LEN = 256
1130 WSASYS_STATUS_LEN = 128
1131)
1132
1133type WSABuf struct {
1134 Len uint32
1135 Buf *byte
1136}
1137
1138type WSAMsg struct {
1139 Name *syscall.RawSockaddrAny
1140 Namelen int32
1141 Buffers *WSABuf
1142 BufferCount uint32
1143 Control WSABuf
1144 Flags uint32
1145}
1146
1147// Flags for WSASocket
1148const (
1149 WSA_FLAG_OVERLAPPED = 0x01
1150 WSA_FLAG_MULTIPOINT_C_ROOT = 0x02
1151 WSA_FLAG_MULTIPOINT_C_LEAF = 0x04
1152 WSA_FLAG_MULTIPOINT_D_ROOT = 0x08
1153 WSA_FLAG_MULTIPOINT_D_LEAF = 0x10
1154 WSA_FLAG_ACCESS_SYSTEM_SECURITY = 0x40
1155 WSA_FLAG_NO_HANDLE_INHERIT = 0x80
1156 WSA_FLAG_REGISTERED_IO = 0x100
1157)
1158
1159// Invented values to support what package os expects.
1160const (
1161 S_IFMT = 0x1f000
1162 S_IFIFO = 0x1000
1163 S_IFCHR = 0x2000
1164 S_IFDIR = 0x4000
1165 S_IFBLK = 0x6000
1166 S_IFREG = 0x8000
1167 S_IFLNK = 0xa000
1168 S_IFSOCK = 0xc000
1169 S_ISUID = 0x800
1170 S_ISGID = 0x400
1171 S_ISVTX = 0x200
1172 S_IRUSR = 0x100
1173 S_IWRITE = 0x80
1174 S_IWUSR = 0x80
1175 S_IXUSR = 0x40
1176)
1177
1178const (
1179 FILE_TYPE_CHAR = 0x0002
1180 FILE_TYPE_DISK = 0x0001
1181 FILE_TYPE_PIPE = 0x0003
1182 FILE_TYPE_REMOTE = 0x8000
1183 FILE_TYPE_UNKNOWN = 0x0000
1184)
1185
1186type Hostent struct {
1187 Name *byte
1188 Aliases **byte
1189 AddrType uint16
1190 Length uint16
1191 AddrList **byte
1192}
1193
1194type Protoent struct {
1195 Name *byte
1196 Aliases **byte
1197 Proto uint16
1198}
1199
1200const (
1201 DNS_TYPE_A = 0x0001
1202 DNS_TYPE_NS = 0x0002
1203 DNS_TYPE_MD = 0x0003
1204 DNS_TYPE_MF = 0x0004
1205 DNS_TYPE_CNAME = 0x0005
1206 DNS_TYPE_SOA = 0x0006
1207 DNS_TYPE_MB = 0x0007
1208 DNS_TYPE_MG = 0x0008
1209 DNS_TYPE_MR = 0x0009
1210 DNS_TYPE_NULL = 0x000a
1211 DNS_TYPE_WKS = 0x000b
1212 DNS_TYPE_PTR = 0x000c
1213 DNS_TYPE_HINFO = 0x000d
1214 DNS_TYPE_MINFO = 0x000e
1215 DNS_TYPE_MX = 0x000f
1216 DNS_TYPE_TEXT = 0x0010
1217 DNS_TYPE_RP = 0x0011
1218 DNS_TYPE_AFSDB = 0x0012
1219 DNS_TYPE_X25 = 0x0013
1220 DNS_TYPE_ISDN = 0x0014
1221 DNS_TYPE_RT = 0x0015
1222 DNS_TYPE_NSAP = 0x0016
1223 DNS_TYPE_NSAPPTR = 0x0017
1224 DNS_TYPE_SIG = 0x0018
1225 DNS_TYPE_KEY = 0x0019
1226 DNS_TYPE_PX = 0x001a
1227 DNS_TYPE_GPOS = 0x001b
1228 DNS_TYPE_AAAA = 0x001c
1229 DNS_TYPE_LOC = 0x001d
1230 DNS_TYPE_NXT = 0x001e
1231 DNS_TYPE_EID = 0x001f
1232 DNS_TYPE_NIMLOC = 0x0020
1233 DNS_TYPE_SRV = 0x0021
1234 DNS_TYPE_ATMA = 0x0022
1235 DNS_TYPE_NAPTR = 0x0023
1236 DNS_TYPE_KX = 0x0024
1237 DNS_TYPE_CERT = 0x0025
1238 DNS_TYPE_A6 = 0x0026
1239 DNS_TYPE_DNAME = 0x0027
1240 DNS_TYPE_SINK = 0x0028
1241 DNS_TYPE_OPT = 0x0029
1242 DNS_TYPE_DS = 0x002B
1243 DNS_TYPE_RRSIG = 0x002E
1244 DNS_TYPE_NSEC = 0x002F
1245 DNS_TYPE_DNSKEY = 0x0030
1246 DNS_TYPE_DHCID = 0x0031
1247 DNS_TYPE_UINFO = 0x0064
1248 DNS_TYPE_UID = 0x0065
1249 DNS_TYPE_GID = 0x0066
1250 DNS_TYPE_UNSPEC = 0x0067
1251 DNS_TYPE_ADDRS = 0x00f8
1252 DNS_TYPE_TKEY = 0x00f9
1253 DNS_TYPE_TSIG = 0x00fa
1254 DNS_TYPE_IXFR = 0x00fb
1255 DNS_TYPE_AXFR = 0x00fc
1256 DNS_TYPE_MAILB = 0x00fd
1257 DNS_TYPE_MAILA = 0x00fe
1258 DNS_TYPE_ALL = 0x00ff
1259 DNS_TYPE_ANY = 0x00ff
1260 DNS_TYPE_WINS = 0xff01
1261 DNS_TYPE_WINSR = 0xff02
1262 DNS_TYPE_NBSTAT = 0xff01
1263)
1264
1265const (
1266 // flags inside DNSRecord.Dw
1267 DnsSectionQuestion = 0x0000
1268 DnsSectionAnswer = 0x0001
1269 DnsSectionAuthority = 0x0002
1270 DnsSectionAdditional = 0x0003
1271)
1272
1273const (
1274 // flags of WSALookupService
1275 LUP_DEEP = 0x0001
1276 LUP_CONTAINERS = 0x0002
1277 LUP_NOCONTAINERS = 0x0004
1278 LUP_NEAREST = 0x0008
1279 LUP_RETURN_NAME = 0x0010
1280 LUP_RETURN_TYPE = 0x0020
1281 LUP_RETURN_VERSION = 0x0040
1282 LUP_RETURN_COMMENT = 0x0080
1283 LUP_RETURN_ADDR = 0x0100
1284 LUP_RETURN_BLOB = 0x0200
1285 LUP_RETURN_ALIASES = 0x0400
1286 LUP_RETURN_QUERY_STRING = 0x0800
1287 LUP_RETURN_ALL = 0x0FF0
1288 LUP_RES_SERVICE = 0x8000
1289
1290 LUP_FLUSHCACHE = 0x1000
1291 LUP_FLUSHPREVIOUS = 0x2000
1292
1293 LUP_NON_AUTHORITATIVE = 0x4000
1294 LUP_SECURE = 0x8000
1295 LUP_RETURN_PREFERRED_NAMES = 0x10000
1296 LUP_DNS_ONLY = 0x20000
1297
1298 LUP_ADDRCONFIG = 0x100000
1299 LUP_DUAL_ADDR = 0x200000
1300 LUP_FILESERVER = 0x400000
1301 LUP_DISABLE_IDN_ENCODING = 0x00800000
1302 LUP_API_ANSI = 0x01000000
1303
1304 LUP_RESOLUTION_HANDLE = 0x80000000
1305)
1306
1307const (
1308 // values of WSAQUERYSET's namespace
1309 NS_ALL = 0
1310 NS_DNS = 12
1311 NS_NLA = 15
1312 NS_BTH = 16
1313 NS_EMAIL = 37
1314 NS_PNRPNAME = 38
1315 NS_PNRPCLOUD = 39
1316)
1317
1318type DNSSRVData struct {
1319 Target *uint16
1320 Priority uint16
1321 Weight uint16
1322 Port uint16
1323 Pad uint16
1324}
1325
1326type DNSPTRData struct {
1327 Host *uint16
1328}
1329
1330type DNSMXData struct {
1331 NameExchange *uint16
1332 Preference uint16
1333 Pad uint16
1334}
1335
1336type DNSTXTData struct {
1337 StringCount uint16
1338 StringArray [1]*uint16
1339}
1340
1341type DNSRecord struct {
1342 Next *DNSRecord
1343 Name *uint16
1344 Type uint16
1345 Length uint16
1346 Dw uint32
1347 Ttl uint32
1348 Reserved uint32
1349 Data [40]byte
1350}
1351
1352const (
1353 TF_DISCONNECT = 1
1354 TF_REUSE_SOCKET = 2
1355 TF_WRITE_BEHIND = 4
1356 TF_USE_DEFAULT_WORKER = 0
1357 TF_USE_SYSTEM_THREAD = 16
1358 TF_USE_KERNEL_APC = 32
1359)
1360
1361type TransmitFileBuffers struct {
1362 Head uintptr
1363 HeadLength uint32
1364 Tail uintptr
1365 TailLength uint32
1366}
1367
1368const (
1369 IFF_UP = 1
1370 IFF_BROADCAST = 2
1371 IFF_LOOPBACK = 4
1372 IFF_POINTTOPOINT = 8
1373 IFF_MULTICAST = 16
1374)
1375
1376const SIO_GET_INTERFACE_LIST = 0x4004747F
1377
1378// TODO(mattn): SockaddrGen is union of sockaddr/sockaddr_in/sockaddr_in6_old.
1379// will be fixed to change variable type as suitable.
1380
1381type SockaddrGen [24]byte
1382
1383type InterfaceInfo struct {
1384 Flags uint32
1385 Address SockaddrGen
1386 BroadcastAddress SockaddrGen
1387 Netmask SockaddrGen
1388}
1389
1390type IpAddressString struct {
1391 String [16]byte
1392}
1393
1394type IpMaskString IpAddressString
1395
1396type IpAddrString struct {
1397 Next *IpAddrString
1398 IpAddress IpAddressString
1399 IpMask IpMaskString
1400 Context uint32
1401}
1402
1403const MAX_ADAPTER_NAME_LENGTH = 256
1404const MAX_ADAPTER_DESCRIPTION_LENGTH = 128
1405const MAX_ADAPTER_ADDRESS_LENGTH = 8
1406
1407type IpAdapterInfo struct {
1408 Next *IpAdapterInfo
1409 ComboIndex uint32
1410 AdapterName [MAX_ADAPTER_NAME_LENGTH + 4]byte
1411 Description [MAX_ADAPTER_DESCRIPTION_LENGTH + 4]byte
1412 AddressLength uint32
1413 Address [MAX_ADAPTER_ADDRESS_LENGTH]byte
1414 Index uint32
1415 Type uint32
1416 DhcpEnabled uint32
1417 CurrentIpAddress *IpAddrString
1418 IpAddressList IpAddrString
1419 GatewayList IpAddrString
1420 DhcpServer IpAddrString
1421 HaveWins bool
1422 PrimaryWinsServer IpAddrString
1423 SecondaryWinsServer IpAddrString
1424 LeaseObtained int64
1425 LeaseExpires int64
1426}
1427
1428const MAXLEN_PHYSADDR = 8
1429const MAX_INTERFACE_NAME_LEN = 256
1430const MAXLEN_IFDESCR = 256
1431
1432type MibIfRow struct {
1433 Name [MAX_INTERFACE_NAME_LEN]uint16
1434 Index uint32
1435 Type uint32
1436 Mtu uint32
1437 Speed uint32
1438 PhysAddrLen uint32
1439 PhysAddr [MAXLEN_PHYSADDR]byte
1440 AdminStatus uint32
1441 OperStatus uint32
1442 LastChange uint32
1443 InOctets uint32
1444 InUcastPkts uint32
1445 InNUcastPkts uint32
1446 InDiscards uint32
1447 InErrors uint32
1448 InUnknownProtos uint32
1449 OutOctets uint32
1450 OutUcastPkts uint32
1451 OutNUcastPkts uint32
1452 OutDiscards uint32
1453 OutErrors uint32
1454 OutQLen uint32
1455 DescrLen uint32
1456 Descr [MAXLEN_IFDESCR]byte
1457}
1458
1459type CertInfo struct {
1460 Version uint32
1461 SerialNumber CryptIntegerBlob
1462 SignatureAlgorithm CryptAlgorithmIdentifier
1463 Issuer CertNameBlob
1464 NotBefore Filetime
1465 NotAfter Filetime
1466 Subject CertNameBlob
1467 SubjectPublicKeyInfo CertPublicKeyInfo
1468 IssuerUniqueId CryptBitBlob
1469 SubjectUniqueId CryptBitBlob
1470 CountExtensions uint32
1471 Extensions *CertExtension
1472}
1473
1474type CertExtension struct {
1475 ObjId *byte
1476 Critical int32
1477 Value CryptObjidBlob
1478}
1479
1480type CryptAlgorithmIdentifier struct {
1481 ObjId *byte
1482 Parameters CryptObjidBlob
1483}
1484
1485type CertPublicKeyInfo struct {
1486 Algorithm CryptAlgorithmIdentifier
1487 PublicKey CryptBitBlob
1488}
1489
1490type DataBlob struct {
1491 Size uint32
1492 Data *byte
1493}
1494type CryptIntegerBlob DataBlob
1495type CryptUintBlob DataBlob
1496type CryptObjidBlob DataBlob
1497type CertNameBlob DataBlob
1498type CertRdnValueBlob DataBlob
1499type CertBlob DataBlob
1500type CrlBlob DataBlob
1501type CryptDataBlob DataBlob
1502type CryptHashBlob DataBlob
1503type CryptDigestBlob DataBlob
1504type CryptDerBlob DataBlob
1505type CryptAttrBlob DataBlob
1506
1507type CryptBitBlob struct {
1508 Size uint32
1509 Data *byte
1510 UnusedBits uint32
1511}
1512
1513type CertContext struct {
1514 EncodingType uint32
1515 EncodedCert *byte
1516 Length uint32
1517 CertInfo *CertInfo
1518 Store Handle
1519}
1520
1521type CertChainContext struct {
1522 Size uint32
1523 TrustStatus CertTrustStatus
1524 ChainCount uint32
1525 Chains **CertSimpleChain
1526 LowerQualityChainCount uint32
1527 LowerQualityChains **CertChainContext
1528 HasRevocationFreshnessTime uint32
1529 RevocationFreshnessTime uint32
1530}
1531
1532type CertTrustListInfo struct {
1533 // Not implemented
1534}
1535
1536type CertSimpleChain struct {
1537 Size uint32
1538 TrustStatus CertTrustStatus
1539 NumElements uint32
1540 Elements **CertChainElement
1541 TrustListInfo *CertTrustListInfo
1542 HasRevocationFreshnessTime uint32
1543 RevocationFreshnessTime uint32
1544}
1545
1546type CertChainElement struct {
1547 Size uint32
1548 CertContext *CertContext
1549 TrustStatus CertTrustStatus
1550 RevocationInfo *CertRevocationInfo
1551 IssuanceUsage *CertEnhKeyUsage
1552 ApplicationUsage *CertEnhKeyUsage
1553 ExtendedErrorInfo *uint16
1554}
1555
1556type CertRevocationCrlInfo struct {
1557 // Not implemented
1558}
1559
1560type CertRevocationInfo struct {
1561 Size uint32
1562 RevocationResult uint32
1563 RevocationOid *byte
1564 OidSpecificInfo Pointer
1565 HasFreshnessTime uint32
1566 FreshnessTime uint32
1567 CrlInfo *CertRevocationCrlInfo
1568}
1569
1570type CertTrustStatus struct {
1571 ErrorStatus uint32
1572 InfoStatus uint32
1573}
1574
1575type CertUsageMatch struct {
1576 Type uint32
1577 Usage CertEnhKeyUsage
1578}
1579
1580type CertEnhKeyUsage struct {
1581 Length uint32
1582 UsageIdentifiers **byte
1583}
1584
1585type CertChainPara struct {
1586 Size uint32
1587 RequestedUsage CertUsageMatch
1588 RequstedIssuancePolicy CertUsageMatch
1589 URLRetrievalTimeout uint32
1590 CheckRevocationFreshnessTime uint32
1591 RevocationFreshnessTime uint32
1592 CacheResync *Filetime
1593}
1594
1595type CertChainPolicyPara struct {
1596 Size uint32
1597 Flags uint32
1598 ExtraPolicyPara Pointer
1599}
1600
1601type SSLExtraCertChainPolicyPara struct {
1602 Size uint32
1603 AuthType uint32
1604 Checks uint32
1605 ServerName *uint16
1606}
1607
1608type CertChainPolicyStatus struct {
1609 Size uint32
1610 Error uint32
1611 ChainIndex uint32
1612 ElementIndex uint32
1613 ExtraPolicyStatus Pointer
1614}
1615
1616type CertPolicyInfo struct {
1617 Identifier *byte
1618 CountQualifiers uint32
1619 Qualifiers *CertPolicyQualifierInfo
1620}
1621
1622type CertPoliciesInfo struct {
1623 Count uint32
1624 PolicyInfos *CertPolicyInfo
1625}
1626
1627type CertPolicyQualifierInfo struct {
1628 // Not implemented
1629}
1630
1631type CertStrongSignPara struct {
1632 Size uint32
1633 InfoChoice uint32
1634 InfoOrSerializedInfoOrOID unsafe.Pointer
1635}
1636
1637type CryptProtectPromptStruct struct {
1638 Size uint32
1639 PromptFlags uint32
1640 App HWND
1641 Prompt *uint16
1642}
1643
1644type CertChainFindByIssuerPara struct {
1645 Size uint32
1646 UsageIdentifier *byte
1647 KeySpec uint32
1648 AcquirePrivateKeyFlags uint32
1649 IssuerCount uint32
1650 Issuer Pointer
1651 FindCallback Pointer
1652 FindArg Pointer
1653 IssuerChainIndex *uint32
1654 IssuerElementIndex *uint32
1655}
1656
1657type WinTrustData struct {
1658 Size uint32
1659 PolicyCallbackData uintptr
1660 SIPClientData uintptr
1661 UIChoice uint32
1662 RevocationChecks uint32
1663 UnionChoice uint32
1664 FileOrCatalogOrBlobOrSgnrOrCert unsafe.Pointer
1665 StateAction uint32
1666 StateData Handle
1667 URLReference *uint16
1668 ProvFlags uint32
1669 UIContext uint32
1670 SignatureSettings *WinTrustSignatureSettings
1671}
1672
1673type WinTrustFileInfo struct {
1674 Size uint32
1675 FilePath *uint16
1676 File Handle
1677 KnownSubject *GUID
1678}
1679
1680type WinTrustSignatureSettings struct {
1681 Size uint32
1682 Index uint32
1683 Flags uint32
1684 SecondarySigs uint32
1685 VerifiedSigIndex uint32
1686 CryptoPolicy *CertStrongSignPara
1687}
1688
1689const (
1690 // do not reorder
1691 HKEY_CLASSES_ROOT = 0x80000000 + iota
1692 HKEY_CURRENT_USER
1693 HKEY_LOCAL_MACHINE
1694 HKEY_USERS
1695 HKEY_PERFORMANCE_DATA
1696 HKEY_CURRENT_CONFIG
1697 HKEY_DYN_DATA
1698
1699 KEY_QUERY_VALUE = 1
1700 KEY_SET_VALUE = 2
1701 KEY_CREATE_SUB_KEY = 4
1702 KEY_ENUMERATE_SUB_KEYS = 8
1703 KEY_NOTIFY = 16
1704 KEY_CREATE_LINK = 32
1705 KEY_WRITE = 0x20006
1706 KEY_EXECUTE = 0x20019
1707 KEY_READ = 0x20019
1708 KEY_WOW64_64KEY = 0x0100
1709 KEY_WOW64_32KEY = 0x0200
1710 KEY_ALL_ACCESS = 0xf003f
1711)
1712
1713const (
1714 // do not reorder
1715 REG_NONE = iota
1716 REG_SZ
1717 REG_EXPAND_SZ
1718 REG_BINARY
1719 REG_DWORD_LITTLE_ENDIAN
1720 REG_DWORD_BIG_ENDIAN
1721 REG_LINK
1722 REG_MULTI_SZ
1723 REG_RESOURCE_LIST
1724 REG_FULL_RESOURCE_DESCRIPTOR
1725 REG_RESOURCE_REQUIREMENTS_LIST
1726 REG_QWORD_LITTLE_ENDIAN
1727 REG_DWORD = REG_DWORD_LITTLE_ENDIAN
1728 REG_QWORD = REG_QWORD_LITTLE_ENDIAN
1729)
1730
1731const (
1732 EVENT_MODIFY_STATE = 0x0002
1733 EVENT_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x3
1734
1735 MUTANT_QUERY_STATE = 0x0001
1736 MUTANT_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | MUTANT_QUERY_STATE
1737
1738 SEMAPHORE_MODIFY_STATE = 0x0002
1739 SEMAPHORE_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x3
1740
1741 TIMER_QUERY_STATE = 0x0001
1742 TIMER_MODIFY_STATE = 0x0002
1743 TIMER_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | TIMER_QUERY_STATE | TIMER_MODIFY_STATE
1744
1745 MUTEX_MODIFY_STATE = MUTANT_QUERY_STATE
1746 MUTEX_ALL_ACCESS = MUTANT_ALL_ACCESS
1747
1748 CREATE_EVENT_MANUAL_RESET = 0x1
1749 CREATE_EVENT_INITIAL_SET = 0x2
1750 CREATE_MUTEX_INITIAL_OWNER = 0x1
1751)
1752
1753type AddrinfoW struct {
1754 Flags int32
1755 Family int32
1756 Socktype int32
1757 Protocol int32
1758 Addrlen uintptr
1759 Canonname *uint16
1760 Addr uintptr
1761 Next *AddrinfoW
1762}
1763
1764const (
1765 AI_PASSIVE = 1
1766 AI_CANONNAME = 2
1767 AI_NUMERICHOST = 4
1768)
1769
1770type GUID struct {
1771 Data1 uint32
1772 Data2 uint16
1773 Data3 uint16
1774 Data4 [8]byte
1775}
1776
1777var WSAID_CONNECTEX = GUID{
1778 0x25a207b9,
1779 0xddf3,
1780 0x4660,
1781 [8]byte{0x8e, 0xe9, 0x76, 0xe5, 0x8c, 0x74, 0x06, 0x3e},
1782}
1783
1784var WSAID_WSASENDMSG = GUID{
1785 0xa441e712,
1786 0x754f,
1787 0x43ca,
1788 [8]byte{0x84, 0xa7, 0x0d, 0xee, 0x44, 0xcf, 0x60, 0x6d},
1789}
1790
1791var WSAID_WSARECVMSG = GUID{
1792 0xf689d7c8,
1793 0x6f1f,
1794 0x436b,
1795 [8]byte{0x8a, 0x53, 0xe5, 0x4f, 0xe3, 0x51, 0xc3, 0x22},
1796}
1797
1798const (
1799 FILE_SKIP_COMPLETION_PORT_ON_SUCCESS = 1
1800 FILE_SKIP_SET_EVENT_ON_HANDLE = 2
1801)
1802
1803const (
1804 WSAPROTOCOL_LEN = 255
1805 MAX_PROTOCOL_CHAIN = 7
1806 BASE_PROTOCOL = 1
1807 LAYERED_PROTOCOL = 0
1808
1809 XP1_CONNECTIONLESS = 0x00000001
1810 XP1_GUARANTEED_DELIVERY = 0x00000002
1811 XP1_GUARANTEED_ORDER = 0x00000004
1812 XP1_MESSAGE_ORIENTED = 0x00000008
1813 XP1_PSEUDO_STREAM = 0x00000010
1814 XP1_GRACEFUL_CLOSE = 0x00000020
1815 XP1_EXPEDITED_DATA = 0x00000040
1816 XP1_CONNECT_DATA = 0x00000080
1817 XP1_DISCONNECT_DATA = 0x00000100
1818 XP1_SUPPORT_BROADCAST = 0x00000200
1819 XP1_SUPPORT_MULTIPOINT = 0x00000400
1820 XP1_MULTIPOINT_CONTROL_PLANE = 0x00000800
1821 XP1_MULTIPOINT_DATA_PLANE = 0x00001000
1822 XP1_QOS_SUPPORTED = 0x00002000
1823 XP1_UNI_SEND = 0x00008000
1824 XP1_UNI_RECV = 0x00010000
1825 XP1_IFS_HANDLES = 0x00020000
1826 XP1_PARTIAL_MESSAGE = 0x00040000
1827 XP1_SAN_SUPPORT_SDP = 0x00080000
1828
1829 PFL_MULTIPLE_PROTO_ENTRIES = 0x00000001
1830 PFL_RECOMMENDED_PROTO_ENTRY = 0x00000002
1831 PFL_HIDDEN = 0x00000004
1832 PFL_MATCHES_PROTOCOL_ZERO = 0x00000008
1833 PFL_NETWORKDIRECT_PROVIDER = 0x00000010
1834)
1835
1836type WSAProtocolInfo struct {
1837 ServiceFlags1 uint32
1838 ServiceFlags2 uint32
1839 ServiceFlags3 uint32
1840 ServiceFlags4 uint32
1841 ProviderFlags uint32
1842 ProviderId GUID
1843 CatalogEntryId uint32
1844 ProtocolChain WSAProtocolChain
1845 Version int32
1846 AddressFamily int32
1847 MaxSockAddr int32
1848 MinSockAddr int32
1849 SocketType int32
1850 Protocol int32
1851 ProtocolMaxOffset int32
1852 NetworkByteOrder int32
1853 SecurityScheme int32
1854 MessageSize uint32
1855 ProviderReserved uint32
1856 ProtocolName [WSAPROTOCOL_LEN + 1]uint16
1857}
1858
1859type WSAProtocolChain struct {
1860 ChainLen int32
1861 ChainEntries [MAX_PROTOCOL_CHAIN]uint32
1862}
1863
1864type TCPKeepalive struct {
1865 OnOff uint32
1866 Time uint32
1867 Interval uint32
1868}
1869
1870type symbolicLinkReparseBuffer struct {
1871 SubstituteNameOffset uint16
1872 SubstituteNameLength uint16
1873 PrintNameOffset uint16
1874 PrintNameLength uint16
1875 Flags uint32
1876 PathBuffer [1]uint16
1877}
1878
1879type mountPointReparseBuffer struct {
1880 SubstituteNameOffset uint16
1881 SubstituteNameLength uint16
1882 PrintNameOffset uint16
1883 PrintNameLength uint16
1884 PathBuffer [1]uint16
1885}
1886
1887type reparseDataBuffer struct {
1888 ReparseTag uint32
1889 ReparseDataLength uint16
1890 Reserved uint16
1891
1892 // GenericReparseBuffer
1893 reparseBuffer byte
1894}
1895
1896const (
1897 FSCTL_CREATE_OR_GET_OBJECT_ID = 0x0900C0
1898 FSCTL_DELETE_OBJECT_ID = 0x0900A0
1899 FSCTL_DELETE_REPARSE_POINT = 0x0900AC
1900 FSCTL_DUPLICATE_EXTENTS_TO_FILE = 0x098344
1901 FSCTL_DUPLICATE_EXTENTS_TO_FILE_EX = 0x0983E8
1902 FSCTL_FILESYSTEM_GET_STATISTICS = 0x090060
1903 FSCTL_FILE_LEVEL_TRIM = 0x098208
1904 FSCTL_FIND_FILES_BY_SID = 0x09008F
1905 FSCTL_GET_COMPRESSION = 0x09003C
1906 FSCTL_GET_INTEGRITY_INFORMATION = 0x09027C
1907 FSCTL_GET_NTFS_VOLUME_DATA = 0x090064
1908 FSCTL_GET_REFS_VOLUME_DATA = 0x0902D8
1909 FSCTL_GET_OBJECT_ID = 0x09009C
1910 FSCTL_GET_REPARSE_POINT = 0x0900A8
1911 FSCTL_GET_RETRIEVAL_POINTER_COUNT = 0x09042B
1912 FSCTL_GET_RETRIEVAL_POINTERS = 0x090073
1913 FSCTL_GET_RETRIEVAL_POINTERS_AND_REFCOUNT = 0x0903D3
1914 FSCTL_IS_PATHNAME_VALID = 0x09002C
1915 FSCTL_LMR_SET_LINK_TRACKING_INFORMATION = 0x1400EC
1916 FSCTL_MARK_HANDLE = 0x0900FC
1917 FSCTL_OFFLOAD_READ = 0x094264
1918 FSCTL_OFFLOAD_WRITE = 0x098268
1919 FSCTL_PIPE_PEEK = 0x11400C
1920 FSCTL_PIPE_TRANSCEIVE = 0x11C017
1921 FSCTL_PIPE_WAIT = 0x110018
1922 FSCTL_QUERY_ALLOCATED_RANGES = 0x0940CF
1923 FSCTL_QUERY_FAT_BPB = 0x090058
1924 FSCTL_QUERY_FILE_REGIONS = 0x090284
1925 FSCTL_QUERY_ON_DISK_VOLUME_INFO = 0x09013C
1926 FSCTL_QUERY_SPARING_INFO = 0x090138
1927 FSCTL_READ_FILE_USN_DATA = 0x0900EB
1928 FSCTL_RECALL_FILE = 0x090117
1929 FSCTL_REFS_STREAM_SNAPSHOT_MANAGEMENT = 0x090440
1930 FSCTL_SET_COMPRESSION = 0x09C040
1931 FSCTL_SET_DEFECT_MANAGEMENT = 0x098134
1932 FSCTL_SET_ENCRYPTION = 0x0900D7
1933 FSCTL_SET_INTEGRITY_INFORMATION = 0x09C280
1934 FSCTL_SET_INTEGRITY_INFORMATION_EX = 0x090380
1935 FSCTL_SET_OBJECT_ID = 0x090098
1936 FSCTL_SET_OBJECT_ID_EXTENDED = 0x0900BC
1937 FSCTL_SET_REPARSE_POINT = 0x0900A4
1938 FSCTL_SET_SPARSE = 0x0900C4
1939 FSCTL_SET_ZERO_DATA = 0x0980C8
1940 FSCTL_SET_ZERO_ON_DEALLOCATION = 0x090194
1941 FSCTL_SIS_COPYFILE = 0x090100
1942 FSCTL_WRITE_USN_CLOSE_RECORD = 0x0900EF
1943
1944 MAXIMUM_REPARSE_DATA_BUFFER_SIZE = 16 * 1024
1945 IO_REPARSE_TAG_MOUNT_POINT = 0xA0000003
1946 IO_REPARSE_TAG_SYMLINK = 0xA000000C
1947 SYMBOLIC_LINK_FLAG_DIRECTORY = 0x1
1948)
1949
1950const (
1951 ComputerNameNetBIOS = 0
1952 ComputerNameDnsHostname = 1
1953 ComputerNameDnsDomain = 2
1954 ComputerNameDnsFullyQualified = 3
1955 ComputerNamePhysicalNetBIOS = 4
1956 ComputerNamePhysicalDnsHostname = 5
1957 ComputerNamePhysicalDnsDomain = 6
1958 ComputerNamePhysicalDnsFullyQualified = 7
1959 ComputerNameMax = 8
1960)
1961
1962// For MessageBox()
1963const (
1964 MB_OK = 0x00000000
1965 MB_OKCANCEL = 0x00000001
1966 MB_ABORTRETRYIGNORE = 0x00000002
1967 MB_YESNOCANCEL = 0x00000003
1968 MB_YESNO = 0x00000004
1969 MB_RETRYCANCEL = 0x00000005
1970 MB_CANCELTRYCONTINUE = 0x00000006
1971 MB_ICONHAND = 0x00000010
1972 MB_ICONQUESTION = 0x00000020
1973 MB_ICONEXCLAMATION = 0x00000030
1974 MB_ICONASTERISK = 0x00000040
1975 MB_USERICON = 0x00000080
1976 MB_ICONWARNING = MB_ICONEXCLAMATION
1977 MB_ICONERROR = MB_ICONHAND
1978 MB_ICONINFORMATION = MB_ICONASTERISK
1979 MB_ICONSTOP = MB_ICONHAND
1980 MB_DEFBUTTON1 = 0x00000000
1981 MB_DEFBUTTON2 = 0x00000100
1982 MB_DEFBUTTON3 = 0x00000200
1983 MB_DEFBUTTON4 = 0x00000300
1984 MB_APPLMODAL = 0x00000000
1985 MB_SYSTEMMODAL = 0x00001000
1986 MB_TASKMODAL = 0x00002000
1987 MB_HELP = 0x00004000
1988 MB_NOFOCUS = 0x00008000
1989 MB_SETFOREGROUND = 0x00010000
1990 MB_DEFAULT_DESKTOP_ONLY = 0x00020000
1991 MB_TOPMOST = 0x00040000
1992 MB_RIGHT = 0x00080000
1993 MB_RTLREADING = 0x00100000
1994 MB_SERVICE_NOTIFICATION = 0x00200000
1995)
1996
1997const (
1998 MOVEFILE_REPLACE_EXISTING = 0x1
1999 MOVEFILE_COPY_ALLOWED = 0x2
2000 MOVEFILE_DELAY_UNTIL_REBOOT = 0x4
2001 MOVEFILE_WRITE_THROUGH = 0x8
2002 MOVEFILE_CREATE_HARDLINK = 0x10
2003 MOVEFILE_FAIL_IF_NOT_TRACKABLE = 0x20
2004)
2005
2006const GAA_FLAG_INCLUDE_PREFIX = 0x00000010
2007
2008const (
2009 IF_TYPE_OTHER = 1
2010 IF_TYPE_ETHERNET_CSMACD = 6
2011 IF_TYPE_ISO88025_TOKENRING = 9
2012 IF_TYPE_PPP = 23
2013 IF_TYPE_SOFTWARE_LOOPBACK = 24
2014 IF_TYPE_ATM = 37
2015 IF_TYPE_IEEE80211 = 71
2016 IF_TYPE_TUNNEL = 131
2017 IF_TYPE_IEEE1394 = 144
2018)
2019
2020type SocketAddress struct {
2021 Sockaddr *syscall.RawSockaddrAny
2022 SockaddrLength int32
2023}
2024
2025// IP returns an IPv4 or IPv6 address, or nil if the underlying SocketAddress is neither.
2026func (addr *SocketAddress) IP() net.IP {
2027 if uintptr(addr.SockaddrLength) >= unsafe.Sizeof(RawSockaddrInet4{}) && addr.Sockaddr.Addr.Family == AF_INET {
2028 return (*RawSockaddrInet4)(unsafe.Pointer(addr.Sockaddr)).Addr[:]
2029 } else if uintptr(addr.SockaddrLength) >= unsafe.Sizeof(RawSockaddrInet6{}) && addr.Sockaddr.Addr.Family == AF_INET6 {
2030 return (*RawSockaddrInet6)(unsafe.Pointer(addr.Sockaddr)).Addr[:]
2031 }
2032 return nil
2033}
2034
2035type IpAdapterUnicastAddress struct {
2036 Length uint32
2037 Flags uint32
2038 Next *IpAdapterUnicastAddress
2039 Address SocketAddress
2040 PrefixOrigin int32
2041 SuffixOrigin int32
2042 DadState int32
2043 ValidLifetime uint32
2044 PreferredLifetime uint32
2045 LeaseLifetime uint32
2046 OnLinkPrefixLength uint8
2047}
2048
2049type IpAdapterAnycastAddress struct {
2050 Length uint32
2051 Flags uint32
2052 Next *IpAdapterAnycastAddress
2053 Address SocketAddress
2054}
2055
2056type IpAdapterMulticastAddress struct {
2057 Length uint32
2058 Flags uint32
2059 Next *IpAdapterMulticastAddress
2060 Address SocketAddress
2061}
2062
2063type IpAdapterDnsServerAdapter struct {
2064 Length uint32
2065 Reserved uint32
2066 Next *IpAdapterDnsServerAdapter
2067 Address SocketAddress
2068}
2069
2070type IpAdapterPrefix struct {
2071 Length uint32
2072 Flags uint32
2073 Next *IpAdapterPrefix
2074 Address SocketAddress
2075 PrefixLength uint32
2076}
2077
2078type IpAdapterAddresses struct {
2079 Length uint32
2080 IfIndex uint32
2081 Next *IpAdapterAddresses
2082 AdapterName *byte
2083 FirstUnicastAddress *IpAdapterUnicastAddress
2084 FirstAnycastAddress *IpAdapterAnycastAddress
2085 FirstMulticastAddress *IpAdapterMulticastAddress
2086 FirstDnsServerAddress *IpAdapterDnsServerAdapter
2087 DnsSuffix *uint16
2088 Description *uint16
2089 FriendlyName *uint16
2090 PhysicalAddress [syscall.MAX_ADAPTER_ADDRESS_LENGTH]byte
2091 PhysicalAddressLength uint32
2092 Flags uint32
2093 Mtu uint32
2094 IfType uint32
2095 OperStatus uint32
2096 Ipv6IfIndex uint32
2097 ZoneIndices [16]uint32
2098 FirstPrefix *IpAdapterPrefix
2099 TransmitLinkSpeed uint64
2100 ReceiveLinkSpeed uint64
2101 FirstWinsServerAddress *IpAdapterWinsServerAddress
2102 FirstGatewayAddress *IpAdapterGatewayAddress
2103 Ipv4Metric uint32
2104 Ipv6Metric uint32
2105 Luid uint64
2106 Dhcpv4Server SocketAddress
2107 CompartmentId uint32
2108 NetworkGuid GUID
2109 ConnectionType uint32
2110 TunnelType uint32
2111 Dhcpv6Server SocketAddress
2112 Dhcpv6ClientDuid [MAX_DHCPV6_DUID_LENGTH]byte
2113 Dhcpv6ClientDuidLength uint32
2114 Dhcpv6Iaid uint32
2115 FirstDnsSuffix *IpAdapterDNSSuffix
2116}
2117
2118type IpAdapterWinsServerAddress struct {
2119 Length uint32
2120 Reserved uint32
2121 Next *IpAdapterWinsServerAddress
2122 Address SocketAddress
2123}
2124
2125type IpAdapterGatewayAddress struct {
2126 Length uint32
2127 Reserved uint32
2128 Next *IpAdapterGatewayAddress
2129 Address SocketAddress
2130}
2131
2132type IpAdapterDNSSuffix struct {
2133 Next *IpAdapterDNSSuffix
2134 String [MAX_DNS_SUFFIX_STRING_LENGTH]uint16
2135}
2136
2137const (
2138 IfOperStatusUp = 1
2139 IfOperStatusDown = 2
2140 IfOperStatusTesting = 3
2141 IfOperStatusUnknown = 4
2142 IfOperStatusDormant = 5
2143 IfOperStatusNotPresent = 6
2144 IfOperStatusLowerLayerDown = 7
2145)
2146
2147// Console related constants used for the mode parameter to SetConsoleMode. See
2148// https://docs.microsoft.com/en-us/windows/console/setconsolemode for details.
2149
2150const (
2151 ENABLE_PROCESSED_INPUT = 0x1
2152 ENABLE_LINE_INPUT = 0x2
2153 ENABLE_ECHO_INPUT = 0x4
2154 ENABLE_WINDOW_INPUT = 0x8
2155 ENABLE_MOUSE_INPUT = 0x10
2156 ENABLE_INSERT_MODE = 0x20
2157 ENABLE_QUICK_EDIT_MODE = 0x40
2158 ENABLE_EXTENDED_FLAGS = 0x80
2159 ENABLE_AUTO_POSITION = 0x100
2160 ENABLE_VIRTUAL_TERMINAL_INPUT = 0x200
2161
2162 ENABLE_PROCESSED_OUTPUT = 0x1
2163 ENABLE_WRAP_AT_EOL_OUTPUT = 0x2
2164 ENABLE_VIRTUAL_TERMINAL_PROCESSING = 0x4
2165 DISABLE_NEWLINE_AUTO_RETURN = 0x8
2166 ENABLE_LVB_GRID_WORLDWIDE = 0x10
2167)
2168
2169// Pseudo console related constants used for the flags parameter to
2170// CreatePseudoConsole. See: https://learn.microsoft.com/en-us/windows/console/createpseudoconsole
2171const (
2172 PSEUDOCONSOLE_INHERIT_CURSOR = 0x1
2173)
2174
2175type Coord struct {
2176 X int16
2177 Y int16
2178}
2179
2180type SmallRect struct {
2181 Left int16
2182 Top int16
2183 Right int16
2184 Bottom int16
2185}
2186
2187// Used with GetConsoleScreenBuffer to retrieve information about a console
2188// screen buffer. See
2189// https://docs.microsoft.com/en-us/windows/console/console-screen-buffer-info-str
2190// for details.
2191
2192type ConsoleScreenBufferInfo struct {
2193 Size Coord
2194 CursorPosition Coord
2195 Attributes uint16
2196 Window SmallRect
2197 MaximumWindowSize Coord
2198}
2199
2200const UNIX_PATH_MAX = 108 // defined in afunix.h
2201
2202const (
2203 // flags for JOBOBJECT_BASIC_LIMIT_INFORMATION.LimitFlags
2204 JOB_OBJECT_LIMIT_ACTIVE_PROCESS = 0x00000008
2205 JOB_OBJECT_LIMIT_AFFINITY = 0x00000010
2206 JOB_OBJECT_LIMIT_BREAKAWAY_OK = 0x00000800
2207 JOB_OBJECT_LIMIT_DIE_ON_UNHANDLED_EXCEPTION = 0x00000400
2208 JOB_OBJECT_LIMIT_JOB_MEMORY = 0x00000200
2209 JOB_OBJECT_LIMIT_JOB_TIME = 0x00000004
2210 JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE = 0x00002000
2211 JOB_OBJECT_LIMIT_PRESERVE_JOB_TIME = 0x00000040
2212 JOB_OBJECT_LIMIT_PRIORITY_CLASS = 0x00000020
2213 JOB_OBJECT_LIMIT_PROCESS_MEMORY = 0x00000100
2214 JOB_OBJECT_LIMIT_PROCESS_TIME = 0x00000002
2215 JOB_OBJECT_LIMIT_SCHEDULING_CLASS = 0x00000080
2216 JOB_OBJECT_LIMIT_SILENT_BREAKAWAY_OK = 0x00001000
2217 JOB_OBJECT_LIMIT_SUBSET_AFFINITY = 0x00004000
2218 JOB_OBJECT_LIMIT_WORKINGSET = 0x00000001
2219)
2220
2221type IO_COUNTERS struct {
2222 ReadOperationCount uint64
2223 WriteOperationCount uint64
2224 OtherOperationCount uint64
2225 ReadTransferCount uint64
2226 WriteTransferCount uint64
2227 OtherTransferCount uint64
2228}
2229
2230type JOBOBJECT_EXTENDED_LIMIT_INFORMATION struct {
2231 BasicLimitInformation JOBOBJECT_BASIC_LIMIT_INFORMATION
2232 IoInfo IO_COUNTERS
2233 ProcessMemoryLimit uintptr
2234 JobMemoryLimit uintptr
2235 PeakProcessMemoryUsed uintptr
2236 PeakJobMemoryUsed uintptr
2237}
2238
2239const (
2240 // UIRestrictionsClass
2241 JOB_OBJECT_UILIMIT_DESKTOP = 0x00000040
2242 JOB_OBJECT_UILIMIT_DISPLAYSETTINGS = 0x00000010
2243 JOB_OBJECT_UILIMIT_EXITWINDOWS = 0x00000080
2244 JOB_OBJECT_UILIMIT_GLOBALATOMS = 0x00000020
2245 JOB_OBJECT_UILIMIT_HANDLES = 0x00000001
2246 JOB_OBJECT_UILIMIT_READCLIPBOARD = 0x00000002
2247 JOB_OBJECT_UILIMIT_SYSTEMPARAMETERS = 0x00000008
2248 JOB_OBJECT_UILIMIT_WRITECLIPBOARD = 0x00000004
2249)
2250
2251type JOBOBJECT_BASIC_UI_RESTRICTIONS struct {
2252 UIRestrictionsClass uint32
2253}
2254
2255const (
2256 // JobObjectInformationClass for QueryInformationJobObject and SetInformationJobObject
2257 JobObjectAssociateCompletionPortInformation = 7
2258 JobObjectBasicAccountingInformation = 1
2259 JobObjectBasicAndIoAccountingInformation = 8
2260 JobObjectBasicLimitInformation = 2
2261 JobObjectBasicProcessIdList = 3
2262 JobObjectBasicUIRestrictions = 4
2263 JobObjectCpuRateControlInformation = 15
2264 JobObjectEndOfJobTimeInformation = 6
2265 JobObjectExtendedLimitInformation = 9
2266 JobObjectGroupInformation = 11
2267 JobObjectGroupInformationEx = 14
2268 JobObjectLimitViolationInformation = 13
2269 JobObjectLimitViolationInformation2 = 34
2270 JobObjectNetRateControlInformation = 32
2271 JobObjectNotificationLimitInformation = 12
2272 JobObjectNotificationLimitInformation2 = 33
2273 JobObjectSecurityLimitInformation = 5
2274)
2275
2276const (
2277 KF_FLAG_DEFAULT = 0x00000000
2278 KF_FLAG_FORCE_APP_DATA_REDIRECTION = 0x00080000
2279 KF_FLAG_RETURN_FILTER_REDIRECTION_TARGET = 0x00040000
2280 KF_FLAG_FORCE_PACKAGE_REDIRECTION = 0x00020000
2281 KF_FLAG_NO_PACKAGE_REDIRECTION = 0x00010000
2282 KF_FLAG_FORCE_APPCONTAINER_REDIRECTION = 0x00020000
2283 KF_FLAG_NO_APPCONTAINER_REDIRECTION = 0x00010000
2284 KF_FLAG_CREATE = 0x00008000
2285 KF_FLAG_DONT_VERIFY = 0x00004000
2286 KF_FLAG_DONT_UNEXPAND = 0x00002000
2287 KF_FLAG_NO_ALIAS = 0x00001000
2288 KF_FLAG_INIT = 0x00000800
2289 KF_FLAG_DEFAULT_PATH = 0x00000400
2290 KF_FLAG_NOT_PARENT_RELATIVE = 0x00000200
2291 KF_FLAG_SIMPLE_IDLIST = 0x00000100
2292 KF_FLAG_ALIAS_ONLY = 0x80000000
2293)
2294
2295type OsVersionInfoEx struct {
2296 osVersionInfoSize uint32
2297 MajorVersion uint32
2298 MinorVersion uint32
2299 BuildNumber uint32
2300 PlatformId uint32
2301 CsdVersion [128]uint16
2302 ServicePackMajor uint16
2303 ServicePackMinor uint16
2304 SuiteMask uint16
2305 ProductType byte
2306 _ byte
2307}
2308
2309const (
2310 EWX_LOGOFF = 0x00000000
2311 EWX_SHUTDOWN = 0x00000001
2312 EWX_REBOOT = 0x00000002
2313 EWX_FORCE = 0x00000004
2314 EWX_POWEROFF = 0x00000008
2315 EWX_FORCEIFHUNG = 0x00000010
2316 EWX_QUICKRESOLVE = 0x00000020
2317 EWX_RESTARTAPPS = 0x00000040
2318 EWX_HYBRID_SHUTDOWN = 0x00400000
2319 EWX_BOOTOPTIONS = 0x01000000
2320
2321 SHTDN_REASON_FLAG_COMMENT_REQUIRED = 0x01000000
2322 SHTDN_REASON_FLAG_DIRTY_PROBLEM_ID_REQUIRED = 0x02000000
2323 SHTDN_REASON_FLAG_CLEAN_UI = 0x04000000
2324 SHTDN_REASON_FLAG_DIRTY_UI = 0x08000000
2325 SHTDN_REASON_FLAG_USER_DEFINED = 0x40000000
2326 SHTDN_REASON_FLAG_PLANNED = 0x80000000
2327 SHTDN_REASON_MAJOR_OTHER = 0x00000000
2328 SHTDN_REASON_MAJOR_NONE = 0x00000000
2329 SHTDN_REASON_MAJOR_HARDWARE = 0x00010000
2330 SHTDN_REASON_MAJOR_OPERATINGSYSTEM = 0x00020000
2331 SHTDN_REASON_MAJOR_SOFTWARE = 0x00030000
2332 SHTDN_REASON_MAJOR_APPLICATION = 0x00040000
2333 SHTDN_REASON_MAJOR_SYSTEM = 0x00050000
2334 SHTDN_REASON_MAJOR_POWER = 0x00060000
2335 SHTDN_REASON_MAJOR_LEGACY_API = 0x00070000
2336 SHTDN_REASON_MINOR_OTHER = 0x00000000
2337 SHTDN_REASON_MINOR_NONE = 0x000000ff
2338 SHTDN_REASON_MINOR_MAINTENANCE = 0x00000001
2339 SHTDN_REASON_MINOR_INSTALLATION = 0x00000002
2340 SHTDN_REASON_MINOR_UPGRADE = 0x00000003
2341 SHTDN_REASON_MINOR_RECONFIG = 0x00000004
2342 SHTDN_REASON_MINOR_HUNG = 0x00000005
2343 SHTDN_REASON_MINOR_UNSTABLE = 0x00000006
2344 SHTDN_REASON_MINOR_DISK = 0x00000007
2345 SHTDN_REASON_MINOR_PROCESSOR = 0x00000008
2346 SHTDN_REASON_MINOR_NETWORKCARD = 0x00000009
2347 SHTDN_REASON_MINOR_POWER_SUPPLY = 0x0000000a
2348 SHTDN_REASON_MINOR_CORDUNPLUGGED = 0x0000000b
2349 SHTDN_REASON_MINOR_ENVIRONMENT = 0x0000000c
2350 SHTDN_REASON_MINOR_HARDWARE_DRIVER = 0x0000000d
2351 SHTDN_REASON_MINOR_OTHERDRIVER = 0x0000000e
2352 SHTDN_REASON_MINOR_BLUESCREEN = 0x0000000F
2353 SHTDN_REASON_MINOR_SERVICEPACK = 0x00000010
2354 SHTDN_REASON_MINOR_HOTFIX = 0x00000011
2355 SHTDN_REASON_MINOR_SECURITYFIX = 0x00000012
2356 SHTDN_REASON_MINOR_SECURITY = 0x00000013
2357 SHTDN_REASON_MINOR_NETWORK_CONNECTIVITY = 0x00000014
2358 SHTDN_REASON_MINOR_WMI = 0x00000015
2359 SHTDN_REASON_MINOR_SERVICEPACK_UNINSTALL = 0x00000016
2360 SHTDN_REASON_MINOR_HOTFIX_UNINSTALL = 0x00000017
2361 SHTDN_REASON_MINOR_SECURITYFIX_UNINSTALL = 0x00000018
2362 SHTDN_REASON_MINOR_MMC = 0x00000019
2363 SHTDN_REASON_MINOR_SYSTEMRESTORE = 0x0000001a
2364 SHTDN_REASON_MINOR_TERMSRV = 0x00000020
2365 SHTDN_REASON_MINOR_DC_PROMOTION = 0x00000021
2366 SHTDN_REASON_MINOR_DC_DEMOTION = 0x00000022
2367 SHTDN_REASON_UNKNOWN = SHTDN_REASON_MINOR_NONE
2368 SHTDN_REASON_LEGACY_API = SHTDN_REASON_MAJOR_LEGACY_API | SHTDN_REASON_FLAG_PLANNED
2369 SHTDN_REASON_VALID_BIT_MASK = 0xc0ffffff
2370
2371 SHUTDOWN_NORETRY = 0x1
2372)
2373
2374// Flags used for GetModuleHandleEx
2375const (
2376 GET_MODULE_HANDLE_EX_FLAG_PIN = 1
2377 GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT = 2
2378 GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS = 4
2379)
2380
2381// MUI function flag values
2382const (
2383 MUI_LANGUAGE_ID = 0x4
2384 MUI_LANGUAGE_NAME = 0x8
2385 MUI_MERGE_SYSTEM_FALLBACK = 0x10
2386 MUI_MERGE_USER_FALLBACK = 0x20
2387 MUI_UI_FALLBACK = MUI_MERGE_SYSTEM_FALLBACK | MUI_MERGE_USER_FALLBACK
2388 MUI_THREAD_LANGUAGES = 0x40
2389 MUI_CONSOLE_FILTER = 0x100
2390 MUI_COMPLEX_SCRIPT_FILTER = 0x200
2391 MUI_RESET_FILTERS = 0x001
2392 MUI_USER_PREFERRED_UI_LANGUAGES = 0x10
2393 MUI_USE_INSTALLED_LANGUAGES = 0x20
2394 MUI_USE_SEARCH_ALL_LANGUAGES = 0x40
2395 MUI_LANG_NEUTRAL_PE_FILE = 0x100
2396 MUI_NON_LANG_NEUTRAL_FILE = 0x200
2397 MUI_MACHINE_LANGUAGE_SETTINGS = 0x400
2398 MUI_FILETYPE_NOT_LANGUAGE_NEUTRAL = 0x001
2399 MUI_FILETYPE_LANGUAGE_NEUTRAL_MAIN = 0x002
2400 MUI_FILETYPE_LANGUAGE_NEUTRAL_MUI = 0x004
2401 MUI_QUERY_TYPE = 0x001
2402 MUI_QUERY_CHECKSUM = 0x002
2403 MUI_QUERY_LANGUAGE_NAME = 0x004
2404 MUI_QUERY_RESOURCE_TYPES = 0x008
2405 MUI_FILEINFO_VERSION = 0x001
2406
2407 MUI_FULL_LANGUAGE = 0x01
2408 MUI_PARTIAL_LANGUAGE = 0x02
2409 MUI_LIP_LANGUAGE = 0x04
2410 MUI_LANGUAGE_INSTALLED = 0x20
2411 MUI_LANGUAGE_LICENSED = 0x40
2412)
2413
2414// FILE_INFO_BY_HANDLE_CLASS constants for SetFileInformationByHandle/GetFileInformationByHandleEx
2415const (
2416 FileBasicInfo = 0
2417 FileStandardInfo = 1
2418 FileNameInfo = 2
2419 FileRenameInfo = 3
2420 FileDispositionInfo = 4
2421 FileAllocationInfo = 5
2422 FileEndOfFileInfo = 6
2423 FileStreamInfo = 7
2424 FileCompressionInfo = 8
2425 FileAttributeTagInfo = 9
2426 FileIdBothDirectoryInfo = 10
2427 FileIdBothDirectoryRestartInfo = 11
2428 FileIoPriorityHintInfo = 12
2429 FileRemoteProtocolInfo = 13
2430 FileFullDirectoryInfo = 14
2431 FileFullDirectoryRestartInfo = 15
2432 FileStorageInfo = 16
2433 FileAlignmentInfo = 17
2434 FileIdInfo = 18
2435 FileIdExtdDirectoryInfo = 19
2436 FileIdExtdDirectoryRestartInfo = 20
2437 FileDispositionInfoEx = 21
2438 FileRenameInfoEx = 22
2439 FileCaseSensitiveInfo = 23
2440 FileNormalizedNameInfo = 24
2441)
2442
2443// LoadLibrary flags for determining from where to search for a DLL
2444const (
2445 DONT_RESOLVE_DLL_REFERENCES = 0x1
2446 LOAD_LIBRARY_AS_DATAFILE = 0x2
2447 LOAD_WITH_ALTERED_SEARCH_PATH = 0x8
2448 LOAD_IGNORE_CODE_AUTHZ_LEVEL = 0x10
2449 LOAD_LIBRARY_AS_IMAGE_RESOURCE = 0x20
2450 LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE = 0x40
2451 LOAD_LIBRARY_REQUIRE_SIGNED_TARGET = 0x80
2452 LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR = 0x100
2453 LOAD_LIBRARY_SEARCH_APPLICATION_DIR = 0x200
2454 LOAD_LIBRARY_SEARCH_USER_DIRS = 0x400
2455 LOAD_LIBRARY_SEARCH_SYSTEM32 = 0x800
2456 LOAD_LIBRARY_SEARCH_DEFAULT_DIRS = 0x1000
2457 LOAD_LIBRARY_SAFE_CURRENT_DIRS = 0x00002000
2458 LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER = 0x00004000
2459 LOAD_LIBRARY_OS_INTEGRITY_CONTINUITY = 0x00008000
2460)
2461
2462// RegNotifyChangeKeyValue notifyFilter flags.
2463const (
2464 // REG_NOTIFY_CHANGE_NAME notifies the caller if a subkey is added or deleted.
2465 REG_NOTIFY_CHANGE_NAME = 0x00000001
2466
2467 // REG_NOTIFY_CHANGE_ATTRIBUTES notifies the caller of changes to the attributes of the key, such as the security descriptor information.
2468 REG_NOTIFY_CHANGE_ATTRIBUTES = 0x00000002
2469
2470 // REG_NOTIFY_CHANGE_LAST_SET notifies the caller of changes to a value of the key. This can include adding or deleting a value, or changing an existing value.
2471 REG_NOTIFY_CHANGE_LAST_SET = 0x00000004
2472
2473 // REG_NOTIFY_CHANGE_SECURITY notifies the caller of changes to the security descriptor of the key.
2474 REG_NOTIFY_CHANGE_SECURITY = 0x00000008
2475
2476 // REG_NOTIFY_THREAD_AGNOSTIC indicates that the lifetime of the registration must not be tied to the lifetime of the thread issuing the RegNotifyChangeKeyValue call. Note: This flag value is only supported in Windows 8 and later.
2477 REG_NOTIFY_THREAD_AGNOSTIC = 0x10000000
2478)
2479
2480type CommTimeouts struct {
2481 ReadIntervalTimeout uint32
2482 ReadTotalTimeoutMultiplier uint32
2483 ReadTotalTimeoutConstant uint32
2484 WriteTotalTimeoutMultiplier uint32
2485 WriteTotalTimeoutConstant uint32
2486}
2487
2488// NTUnicodeString is a UTF-16 string for NT native APIs, corresponding to UNICODE_STRING.
2489type NTUnicodeString struct {
2490 Length uint16
2491 MaximumLength uint16
2492 Buffer *uint16
2493}
2494
2495// NTString is an ANSI string for NT native APIs, corresponding to STRING.
2496type NTString struct {
2497 Length uint16
2498 MaximumLength uint16
2499 Buffer *byte
2500}
2501
2502type LIST_ENTRY struct {
2503 Flink *LIST_ENTRY
2504 Blink *LIST_ENTRY
2505}
2506
2507type RUNTIME_FUNCTION struct {
2508 BeginAddress uint32
2509 EndAddress uint32
2510 UnwindData uint32
2511}
2512
2513type LDR_DATA_TABLE_ENTRY struct {
2514 reserved1 [2]uintptr
2515 InMemoryOrderLinks LIST_ENTRY
2516 reserved2 [2]uintptr
2517 DllBase uintptr
2518 reserved3 [2]uintptr
2519 FullDllName NTUnicodeString
2520 reserved4 [8]byte
2521 reserved5 [3]uintptr
2522 reserved6 uintptr
2523 TimeDateStamp uint32
2524}
2525
2526type PEB_LDR_DATA struct {
2527 reserved1 [8]byte
2528 reserved2 [3]uintptr
2529 InMemoryOrderModuleList LIST_ENTRY
2530}
2531
2532type CURDIR struct {
2533 DosPath NTUnicodeString
2534 Handle Handle
2535}
2536
2537type RTL_DRIVE_LETTER_CURDIR struct {
2538 Flags uint16
2539 Length uint16
2540 TimeStamp uint32
2541 DosPath NTString
2542}
2543
2544type RTL_USER_PROCESS_PARAMETERS struct {
2545 MaximumLength, Length uint32
2546
2547 Flags, DebugFlags uint32
2548
2549 ConsoleHandle Handle
2550 ConsoleFlags uint32
2551 StandardInput, StandardOutput, StandardError Handle
2552
2553 CurrentDirectory CURDIR
2554 DllPath NTUnicodeString
2555 ImagePathName NTUnicodeString
2556 CommandLine NTUnicodeString
2557 Environment unsafe.Pointer
2558
2559 StartingX, StartingY, CountX, CountY, CountCharsX, CountCharsY, FillAttribute uint32
2560
2561 WindowFlags, ShowWindowFlags uint32
2562 WindowTitle, DesktopInfo, ShellInfo, RuntimeData NTUnicodeString
2563 CurrentDirectories [32]RTL_DRIVE_LETTER_CURDIR
2564
2565 EnvironmentSize, EnvironmentVersion uintptr
2566
2567 PackageDependencyData unsafe.Pointer
2568 ProcessGroupId uint32
2569 LoaderThreads uint32
2570
2571 RedirectionDllName NTUnicodeString
2572 HeapPartitionName NTUnicodeString
2573 DefaultThreadpoolCpuSetMasks uintptr
2574 DefaultThreadpoolCpuSetMaskCount uint32
2575}
2576
2577type PEB struct {
2578 reserved1 [2]byte
2579 BeingDebugged byte
2580 BitField byte
2581 reserved3 uintptr
2582 ImageBaseAddress uintptr
2583 Ldr *PEB_LDR_DATA
2584 ProcessParameters *RTL_USER_PROCESS_PARAMETERS
2585 reserved4 [3]uintptr
2586 AtlThunkSListPtr uintptr
2587 reserved5 uintptr
2588 reserved6 uint32
2589 reserved7 uintptr
2590 reserved8 uint32
2591 AtlThunkSListPtr32 uint32
2592 reserved9 [45]uintptr
2593 reserved10 [96]byte
2594 PostProcessInitRoutine uintptr
2595 reserved11 [128]byte
2596 reserved12 [1]uintptr
2597 SessionId uint32
2598}
2599
2600type OBJECT_ATTRIBUTES struct {
2601 Length uint32
2602 RootDirectory Handle
2603 ObjectName *NTUnicodeString
2604 Attributes uint32
2605 SecurityDescriptor *SECURITY_DESCRIPTOR
2606 SecurityQoS *SECURITY_QUALITY_OF_SERVICE
2607}
2608
2609// Values for the Attributes member of OBJECT_ATTRIBUTES.
2610const (
2611 OBJ_INHERIT = 0x00000002
2612 OBJ_PERMANENT = 0x00000010
2613 OBJ_EXCLUSIVE = 0x00000020
2614 OBJ_CASE_INSENSITIVE = 0x00000040
2615 OBJ_OPENIF = 0x00000080
2616 OBJ_OPENLINK = 0x00000100
2617 OBJ_KERNEL_HANDLE = 0x00000200
2618 OBJ_FORCE_ACCESS_CHECK = 0x00000400
2619 OBJ_IGNORE_IMPERSONATED_DEVICEMAP = 0x00000800
2620 OBJ_DONT_REPARSE = 0x00001000
2621 OBJ_VALID_ATTRIBUTES = 0x00001FF2
2622)
2623
2624type IO_STATUS_BLOCK struct {
2625 Status NTStatus
2626 Information uintptr
2627}
2628
2629type RTLP_CURDIR_REF struct {
2630 RefCount int32
2631 Handle Handle
2632}
2633
2634type RTL_RELATIVE_NAME struct {
2635 RelativeName NTUnicodeString
2636 ContainingDirectory Handle
2637 CurDirRef *RTLP_CURDIR_REF
2638}
2639
2640const (
2641 // CreateDisposition flags for NtCreateFile and NtCreateNamedPipeFile.
2642 FILE_SUPERSEDE = 0x00000000
2643 FILE_OPEN = 0x00000001
2644 FILE_CREATE = 0x00000002
2645 FILE_OPEN_IF = 0x00000003
2646 FILE_OVERWRITE = 0x00000004
2647 FILE_OVERWRITE_IF = 0x00000005
2648 FILE_MAXIMUM_DISPOSITION = 0x00000005
2649
2650 // CreateOptions flags for NtCreateFile and NtCreateNamedPipeFile.
2651 FILE_DIRECTORY_FILE = 0x00000001
2652 FILE_WRITE_THROUGH = 0x00000002
2653 FILE_SEQUENTIAL_ONLY = 0x00000004
2654 FILE_NO_INTERMEDIATE_BUFFERING = 0x00000008
2655 FILE_SYNCHRONOUS_IO_ALERT = 0x00000010
2656 FILE_SYNCHRONOUS_IO_NONALERT = 0x00000020
2657 FILE_NON_DIRECTORY_FILE = 0x00000040
2658 FILE_CREATE_TREE_CONNECTION = 0x00000080
2659 FILE_COMPLETE_IF_OPLOCKED = 0x00000100
2660 FILE_NO_EA_KNOWLEDGE = 0x00000200
2661 FILE_OPEN_REMOTE_INSTANCE = 0x00000400
2662 FILE_RANDOM_ACCESS = 0x00000800
2663 FILE_DELETE_ON_CLOSE = 0x00001000
2664 FILE_OPEN_BY_FILE_ID = 0x00002000
2665 FILE_OPEN_FOR_BACKUP_INTENT = 0x00004000
2666 FILE_NO_COMPRESSION = 0x00008000
2667 FILE_OPEN_REQUIRING_OPLOCK = 0x00010000
2668 FILE_DISALLOW_EXCLUSIVE = 0x00020000
2669 FILE_RESERVE_OPFILTER = 0x00100000
2670 FILE_OPEN_REPARSE_POINT = 0x00200000
2671 FILE_OPEN_NO_RECALL = 0x00400000
2672 FILE_OPEN_FOR_FREE_SPACE_QUERY = 0x00800000
2673
2674 // Parameter constants for NtCreateNamedPipeFile.
2675
2676 FILE_PIPE_BYTE_STREAM_TYPE = 0x00000000
2677 FILE_PIPE_MESSAGE_TYPE = 0x00000001
2678
2679 FILE_PIPE_ACCEPT_REMOTE_CLIENTS = 0x00000000
2680 FILE_PIPE_REJECT_REMOTE_CLIENTS = 0x00000002
2681
2682 FILE_PIPE_TYPE_VALID_MASK = 0x00000003
2683
2684 FILE_PIPE_BYTE_STREAM_MODE = 0x00000000
2685 FILE_PIPE_MESSAGE_MODE = 0x00000001
2686
2687 FILE_PIPE_QUEUE_OPERATION = 0x00000000
2688 FILE_PIPE_COMPLETE_OPERATION = 0x00000001
2689
2690 FILE_PIPE_INBOUND = 0x00000000
2691 FILE_PIPE_OUTBOUND = 0x00000001
2692 FILE_PIPE_FULL_DUPLEX = 0x00000002
2693
2694 FILE_PIPE_DISCONNECTED_STATE = 0x00000001
2695 FILE_PIPE_LISTENING_STATE = 0x00000002
2696 FILE_PIPE_CONNECTED_STATE = 0x00000003
2697 FILE_PIPE_CLOSING_STATE = 0x00000004
2698
2699 FILE_PIPE_CLIENT_END = 0x00000000
2700 FILE_PIPE_SERVER_END = 0x00000001
2701)
2702
2703const (
2704 // FileInformationClass for NtSetInformationFile
2705 FileBasicInformation = 4
2706 FileRenameInformation = 10
2707 FileDispositionInformation = 13
2708 FilePositionInformation = 14
2709 FileEndOfFileInformation = 20
2710 FileValidDataLengthInformation = 39
2711 FileShortNameInformation = 40
2712 FileIoPriorityHintInformation = 43
2713 FileReplaceCompletionInformation = 61
2714 FileDispositionInformationEx = 64
2715 FileCaseSensitiveInformation = 71
2716 FileLinkInformation = 72
2717 FileCaseSensitiveInformationForceAccessCheck = 75
2718 FileKnownFolderInformation = 76
2719
2720 // Flags for FILE_RENAME_INFORMATION
2721 FILE_RENAME_REPLACE_IF_EXISTS = 0x00000001
2722 FILE_RENAME_POSIX_SEMANTICS = 0x00000002
2723 FILE_RENAME_SUPPRESS_PIN_STATE_INHERITANCE = 0x00000004
2724 FILE_RENAME_SUPPRESS_STORAGE_RESERVE_INHERITANCE = 0x00000008
2725 FILE_RENAME_NO_INCREASE_AVAILABLE_SPACE = 0x00000010
2726 FILE_RENAME_NO_DECREASE_AVAILABLE_SPACE = 0x00000020
2727 FILE_RENAME_PRESERVE_AVAILABLE_SPACE = 0x00000030
2728 FILE_RENAME_IGNORE_READONLY_ATTRIBUTE = 0x00000040
2729 FILE_RENAME_FORCE_RESIZE_TARGET_SR = 0x00000080
2730 FILE_RENAME_FORCE_RESIZE_SOURCE_SR = 0x00000100
2731 FILE_RENAME_FORCE_RESIZE_SR = 0x00000180
2732
2733 // Flags for FILE_DISPOSITION_INFORMATION_EX
2734 FILE_DISPOSITION_DO_NOT_DELETE = 0x00000000
2735 FILE_DISPOSITION_DELETE = 0x00000001
2736 FILE_DISPOSITION_POSIX_SEMANTICS = 0x00000002
2737 FILE_DISPOSITION_FORCE_IMAGE_SECTION_CHECK = 0x00000004
2738 FILE_DISPOSITION_ON_CLOSE = 0x00000008
2739 FILE_DISPOSITION_IGNORE_READONLY_ATTRIBUTE = 0x00000010
2740
2741 // Flags for FILE_CASE_SENSITIVE_INFORMATION
2742 FILE_CS_FLAG_CASE_SENSITIVE_DIR = 0x00000001
2743
2744 // Flags for FILE_LINK_INFORMATION
2745 FILE_LINK_REPLACE_IF_EXISTS = 0x00000001
2746 FILE_LINK_POSIX_SEMANTICS = 0x00000002
2747 FILE_LINK_SUPPRESS_STORAGE_RESERVE_INHERITANCE = 0x00000008
2748 FILE_LINK_NO_INCREASE_AVAILABLE_SPACE = 0x00000010
2749 FILE_LINK_NO_DECREASE_AVAILABLE_SPACE = 0x00000020
2750 FILE_LINK_PRESERVE_AVAILABLE_SPACE = 0x00000030
2751 FILE_LINK_IGNORE_READONLY_ATTRIBUTE = 0x00000040
2752 FILE_LINK_FORCE_RESIZE_TARGET_SR = 0x00000080
2753 FILE_LINK_FORCE_RESIZE_SOURCE_SR = 0x00000100
2754 FILE_LINK_FORCE_RESIZE_SR = 0x00000180
2755)
2756
2757// ProcessInformationClasses for NtQueryInformationProcess and NtSetInformationProcess.
2758const (
2759 ProcessBasicInformation = iota
2760 ProcessQuotaLimits
2761 ProcessIoCounters
2762 ProcessVmCounters
2763 ProcessTimes
2764 ProcessBasePriority
2765 ProcessRaisePriority
2766 ProcessDebugPort
2767 ProcessExceptionPort
2768 ProcessAccessToken
2769 ProcessLdtInformation
2770 ProcessLdtSize
2771 ProcessDefaultHardErrorMode
2772 ProcessIoPortHandlers
2773 ProcessPooledUsageAndLimits
2774 ProcessWorkingSetWatch
2775 ProcessUserModeIOPL
2776 ProcessEnableAlignmentFaultFixup
2777 ProcessPriorityClass
2778 ProcessWx86Information
2779 ProcessHandleCount
2780 ProcessAffinityMask
2781 ProcessPriorityBoost
2782 ProcessDeviceMap
2783 ProcessSessionInformation
2784 ProcessForegroundInformation
2785 ProcessWow64Information
2786 ProcessImageFileName
2787 ProcessLUIDDeviceMapsEnabled
2788 ProcessBreakOnTermination
2789 ProcessDebugObjectHandle
2790 ProcessDebugFlags
2791 ProcessHandleTracing
2792 ProcessIoPriority
2793 ProcessExecuteFlags
2794 ProcessTlsInformation
2795 ProcessCookie
2796 ProcessImageInformation
2797 ProcessCycleTime
2798 ProcessPagePriority
2799 ProcessInstrumentationCallback
2800 ProcessThreadStackAllocation
2801 ProcessWorkingSetWatchEx
2802 ProcessImageFileNameWin32
2803 ProcessImageFileMapping
2804 ProcessAffinityUpdateMode
2805 ProcessMemoryAllocationMode
2806 ProcessGroupInformation
2807 ProcessTokenVirtualizationEnabled
2808 ProcessConsoleHostProcess
2809 ProcessWindowInformation
2810 ProcessHandleInformation
2811 ProcessMitigationPolicy
2812 ProcessDynamicFunctionTableInformation
2813 ProcessHandleCheckingMode
2814 ProcessKeepAliveCount
2815 ProcessRevokeFileHandles
2816 ProcessWorkingSetControl
2817 ProcessHandleTable
2818 ProcessCheckStackExtentsMode
2819 ProcessCommandLineInformation
2820 ProcessProtectionInformation
2821 ProcessMemoryExhaustion
2822 ProcessFaultInformation
2823 ProcessTelemetryIdInformation
2824 ProcessCommitReleaseInformation
2825 ProcessDefaultCpuSetsInformation
2826 ProcessAllowedCpuSetsInformation
2827 ProcessSubsystemProcess
2828 ProcessJobMemoryInformation
2829 ProcessInPrivate
2830 ProcessRaiseUMExceptionOnInvalidHandleClose
2831 ProcessIumChallengeResponse
2832 ProcessChildProcessInformation
2833 ProcessHighGraphicsPriorityInformation
2834 ProcessSubsystemInformation
2835 ProcessEnergyValues
2836 ProcessActivityThrottleState
2837 ProcessActivityThrottlePolicy
2838 ProcessWin32kSyscallFilterInformation
2839 ProcessDisableSystemAllowedCpuSets
2840 ProcessWakeInformation
2841 ProcessEnergyTrackingState
2842 ProcessManageWritesToExecutableMemory
2843 ProcessCaptureTrustletLiveDump
2844 ProcessTelemetryCoverage
2845 ProcessEnclaveInformation
2846 ProcessEnableReadWriteVmLogging
2847 ProcessUptimeInformation
2848 ProcessImageSection
2849 ProcessDebugAuthInformation
2850 ProcessSystemResourceManagement
2851 ProcessSequenceNumber
2852 ProcessLoaderDetour
2853 ProcessSecurityDomainInformation
2854 ProcessCombineSecurityDomainsInformation
2855 ProcessEnableLogging
2856 ProcessLeapSecondInformation
2857 ProcessFiberShadowStackAllocation
2858 ProcessFreeFiberShadowStackAllocation
2859 ProcessAltSystemCallInformation
2860 ProcessDynamicEHContinuationTargets
2861 ProcessDynamicEnforcedCetCompatibleRanges
2862)
2863
2864type PROCESS_BASIC_INFORMATION struct {
2865 ExitStatus NTStatus
2866 PebBaseAddress *PEB
2867 AffinityMask uintptr
2868 BasePriority int32
2869 UniqueProcessId uintptr
2870 InheritedFromUniqueProcessId uintptr
2871}
2872
2873type SYSTEM_PROCESS_INFORMATION struct {
2874 NextEntryOffset uint32
2875 NumberOfThreads uint32
2876 WorkingSetPrivateSize int64
2877 HardFaultCount uint32
2878 NumberOfThreadsHighWatermark uint32
2879 CycleTime uint64
2880 CreateTime int64
2881 UserTime int64
2882 KernelTime int64
2883 ImageName NTUnicodeString
2884 BasePriority int32
2885 UniqueProcessID uintptr
2886 InheritedFromUniqueProcessID uintptr
2887 HandleCount uint32
2888 SessionID uint32
2889 UniqueProcessKey *uint32
2890 PeakVirtualSize uintptr
2891 VirtualSize uintptr
2892 PageFaultCount uint32
2893 PeakWorkingSetSize uintptr
2894 WorkingSetSize uintptr
2895 QuotaPeakPagedPoolUsage uintptr
2896 QuotaPagedPoolUsage uintptr
2897 QuotaPeakNonPagedPoolUsage uintptr
2898 QuotaNonPagedPoolUsage uintptr
2899 PagefileUsage uintptr
2900 PeakPagefileUsage uintptr
2901 PrivatePageCount uintptr
2902 ReadOperationCount int64
2903 WriteOperationCount int64
2904 OtherOperationCount int64
2905 ReadTransferCount int64
2906 WriteTransferCount int64
2907 OtherTransferCount int64
2908}
2909
2910// SystemInformationClasses for NtQuerySystemInformation and NtSetSystemInformation
2911const (
2912 SystemBasicInformation = iota
2913 SystemProcessorInformation
2914 SystemPerformanceInformation
2915 SystemTimeOfDayInformation
2916 SystemPathInformation
2917 SystemProcessInformation
2918 SystemCallCountInformation
2919 SystemDeviceInformation
2920 SystemProcessorPerformanceInformation
2921 SystemFlagsInformation
2922 SystemCallTimeInformation
2923 SystemModuleInformation
2924 SystemLocksInformation
2925 SystemStackTraceInformation
2926 SystemPagedPoolInformation
2927 SystemNonPagedPoolInformation
2928 SystemHandleInformation
2929 SystemObjectInformation
2930 SystemPageFileInformation
2931 SystemVdmInstemulInformation
2932 SystemVdmBopInformation
2933 SystemFileCacheInformation
2934 SystemPoolTagInformation
2935 SystemInterruptInformation
2936 SystemDpcBehaviorInformation
2937 SystemFullMemoryInformation
2938 SystemLoadGdiDriverInformation
2939 SystemUnloadGdiDriverInformation
2940 SystemTimeAdjustmentInformation
2941 SystemSummaryMemoryInformation
2942 SystemMirrorMemoryInformation
2943 SystemPerformanceTraceInformation
2944 systemObsolete0
2945 SystemExceptionInformation
2946 SystemCrashDumpStateInformation
2947 SystemKernelDebuggerInformation
2948 SystemContextSwitchInformation
2949 SystemRegistryQuotaInformation
2950 SystemExtendServiceTableInformation
2951 SystemPrioritySeperation
2952 SystemVerifierAddDriverInformation
2953 SystemVerifierRemoveDriverInformation
2954 SystemProcessorIdleInformation
2955 SystemLegacyDriverInformation
2956 SystemCurrentTimeZoneInformation
2957 SystemLookasideInformation
2958 SystemTimeSlipNotification
2959 SystemSessionCreate
2960 SystemSessionDetach
2961 SystemSessionInformation
2962 SystemRangeStartInformation
2963 SystemVerifierInformation
2964 SystemVerifierThunkExtend
2965 SystemSessionProcessInformation
2966 SystemLoadGdiDriverInSystemSpace
2967 SystemNumaProcessorMap
2968 SystemPrefetcherInformation
2969 SystemExtendedProcessInformation
2970 SystemRecommendedSharedDataAlignment
2971 SystemComPlusPackage
2972 SystemNumaAvailableMemory
2973 SystemProcessorPowerInformation
2974 SystemEmulationBasicInformation
2975 SystemEmulationProcessorInformation
2976 SystemExtendedHandleInformation
2977 SystemLostDelayedWriteInformation
2978 SystemBigPoolInformation
2979 SystemSessionPoolTagInformation
2980 SystemSessionMappedViewInformation
2981 SystemHotpatchInformation
2982 SystemObjectSecurityMode
2983 SystemWatchdogTimerHandler
2984 SystemWatchdogTimerInformation
2985 SystemLogicalProcessorInformation
2986 SystemWow64SharedInformationObsolete
2987 SystemRegisterFirmwareTableInformationHandler
2988 SystemFirmwareTableInformation
2989 SystemModuleInformationEx
2990 SystemVerifierTriageInformation
2991 SystemSuperfetchInformation
2992 SystemMemoryListInformation
2993 SystemFileCacheInformationEx
2994 SystemThreadPriorityClientIdInformation
2995 SystemProcessorIdleCycleTimeInformation
2996 SystemVerifierCancellationInformation
2997 SystemProcessorPowerInformationEx
2998 SystemRefTraceInformation
2999 SystemSpecialPoolInformation
3000 SystemProcessIdInformation
3001 SystemErrorPortInformation
3002 SystemBootEnvironmentInformation
3003 SystemHypervisorInformation
3004 SystemVerifierInformationEx
3005 SystemTimeZoneInformation
3006 SystemImageFileExecutionOptionsInformation
3007 SystemCoverageInformation
3008 SystemPrefetchPatchInformation
3009 SystemVerifierFaultsInformation
3010 SystemSystemPartitionInformation
3011 SystemSystemDiskInformation
3012 SystemProcessorPerformanceDistribution
3013 SystemNumaProximityNodeInformation
3014 SystemDynamicTimeZoneInformation
3015 SystemCodeIntegrityInformation
3016 SystemProcessorMicrocodeUpdateInformation
3017 SystemProcessorBrandString
3018 SystemVirtualAddressInformation
3019 SystemLogicalProcessorAndGroupInformation
3020 SystemProcessorCycleTimeInformation
3021 SystemStoreInformation
3022 SystemRegistryAppendString
3023 SystemAitSamplingValue
3024 SystemVhdBootInformation
3025 SystemCpuQuotaInformation
3026 SystemNativeBasicInformation
3027 systemSpare1
3028 SystemLowPriorityIoInformation
3029 SystemTpmBootEntropyInformation
3030 SystemVerifierCountersInformation
3031 SystemPagedPoolInformationEx
3032 SystemSystemPtesInformationEx
3033 SystemNodeDistanceInformation
3034 SystemAcpiAuditInformation
3035 SystemBasicPerformanceInformation
3036 SystemQueryPerformanceCounterInformation
3037 SystemSessionBigPoolInformation
3038 SystemBootGraphicsInformation
3039 SystemScrubPhysicalMemoryInformation
3040 SystemBadPageInformation
3041 SystemProcessorProfileControlArea
3042 SystemCombinePhysicalMemoryInformation
3043 SystemEntropyInterruptTimingCallback
3044 SystemConsoleInformation
3045 SystemPlatformBinaryInformation
3046 SystemThrottleNotificationInformation
3047 SystemHypervisorProcessorCountInformation
3048 SystemDeviceDataInformation
3049 SystemDeviceDataEnumerationInformation
3050 SystemMemoryTopologyInformation
3051 SystemMemoryChannelInformation
3052 SystemBootLogoInformation
3053 SystemProcessorPerformanceInformationEx
3054 systemSpare0
3055 SystemSecureBootPolicyInformation
3056 SystemPageFileInformationEx
3057 SystemSecureBootInformation
3058 SystemEntropyInterruptTimingRawInformation
3059 SystemPortableWorkspaceEfiLauncherInformation
3060 SystemFullProcessInformation
3061 SystemKernelDebuggerInformationEx
3062 SystemBootMetadataInformation
3063 SystemSoftRebootInformation
3064 SystemElamCertificateInformation
3065 SystemOfflineDumpConfigInformation
3066 SystemProcessorFeaturesInformation
3067 SystemRegistryReconciliationInformation
3068 SystemEdidInformation
3069 SystemManufacturingInformation
3070 SystemEnergyEstimationConfigInformation
3071 SystemHypervisorDetailInformation
3072 SystemProcessorCycleStatsInformation
3073 SystemVmGenerationCountInformation
3074 SystemTrustedPlatformModuleInformation
3075 SystemKernelDebuggerFlags
3076 SystemCodeIntegrityPolicyInformation
3077 SystemIsolatedUserModeInformation
3078 SystemHardwareSecurityTestInterfaceResultsInformation
3079 SystemSingleModuleInformation
3080 SystemAllowedCpuSetsInformation
3081 SystemDmaProtectionInformation
3082 SystemInterruptCpuSetsInformation
3083 SystemSecureBootPolicyFullInformation
3084 SystemCodeIntegrityPolicyFullInformation
3085 SystemAffinitizedInterruptProcessorInformation
3086 SystemRootSiloInformation
3087)
3088
3089type RTL_PROCESS_MODULE_INFORMATION struct {
3090 Section Handle
3091 MappedBase uintptr
3092 ImageBase uintptr
3093 ImageSize uint32
3094 Flags uint32
3095 LoadOrderIndex uint16
3096 InitOrderIndex uint16
3097 LoadCount uint16
3098 OffsetToFileName uint16
3099 FullPathName [256]byte
3100}
3101
3102type RTL_PROCESS_MODULES struct {
3103 NumberOfModules uint32
3104 Modules [1]RTL_PROCESS_MODULE_INFORMATION
3105}
3106
3107// Constants for LocalAlloc flags.
3108const (
3109 LMEM_FIXED = 0x0
3110 LMEM_MOVEABLE = 0x2
3111 LMEM_NOCOMPACT = 0x10
3112 LMEM_NODISCARD = 0x20
3113 LMEM_ZEROINIT = 0x40
3114 LMEM_MODIFY = 0x80
3115 LMEM_DISCARDABLE = 0xf00
3116 LMEM_VALID_FLAGS = 0xf72
3117 LMEM_INVALID_HANDLE = 0x8000
3118 LHND = LMEM_MOVEABLE | LMEM_ZEROINIT
3119 LPTR = LMEM_FIXED | LMEM_ZEROINIT
3120 NONZEROLHND = LMEM_MOVEABLE
3121 NONZEROLPTR = LMEM_FIXED
3122)
3123
3124// Constants for the CreateNamedPipe-family of functions.
3125const (
3126 PIPE_ACCESS_INBOUND = 0x1
3127 PIPE_ACCESS_OUTBOUND = 0x2
3128 PIPE_ACCESS_DUPLEX = 0x3
3129
3130 PIPE_CLIENT_END = 0x0
3131 PIPE_SERVER_END = 0x1
3132
3133 PIPE_WAIT = 0x0
3134 PIPE_NOWAIT = 0x1
3135 PIPE_READMODE_BYTE = 0x0
3136 PIPE_READMODE_MESSAGE = 0x2
3137 PIPE_TYPE_BYTE = 0x0
3138 PIPE_TYPE_MESSAGE = 0x4
3139 PIPE_ACCEPT_REMOTE_CLIENTS = 0x0
3140 PIPE_REJECT_REMOTE_CLIENTS = 0x8
3141
3142 PIPE_UNLIMITED_INSTANCES = 255
3143)
3144
3145// Constants for security attributes when opening named pipes.
3146const (
3147 SECURITY_ANONYMOUS = SecurityAnonymous << 16
3148 SECURITY_IDENTIFICATION = SecurityIdentification << 16
3149 SECURITY_IMPERSONATION = SecurityImpersonation << 16
3150 SECURITY_DELEGATION = SecurityDelegation << 16
3151
3152 SECURITY_CONTEXT_TRACKING = 0x40000
3153 SECURITY_EFFECTIVE_ONLY = 0x80000
3154
3155 SECURITY_SQOS_PRESENT = 0x100000
3156 SECURITY_VALID_SQOS_FLAGS = 0x1f0000
3157)
3158
3159// ResourceID represents a 16-bit resource identifier, traditionally created with the MAKEINTRESOURCE macro.
3160type ResourceID uint16
3161
3162// ResourceIDOrString must be either a ResourceID, to specify a resource or resource type by ID,
3163// or a string, to specify a resource or resource type by name.
3164type ResourceIDOrString interface{}
3165
3166// Predefined resource names and types.
3167var (
3168 // Predefined names.
3169 CREATEPROCESS_MANIFEST_RESOURCE_ID ResourceID = 1
3170 ISOLATIONAWARE_MANIFEST_RESOURCE_ID ResourceID = 2
3171 ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID ResourceID = 3
3172 ISOLATIONPOLICY_MANIFEST_RESOURCE_ID ResourceID = 4
3173 ISOLATIONPOLICY_BROWSER_MANIFEST_RESOURCE_ID ResourceID = 5
3174 MINIMUM_RESERVED_MANIFEST_RESOURCE_ID ResourceID = 1 // inclusive
3175 MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID ResourceID = 16 // inclusive
3176
3177 // Predefined types.
3178 RT_CURSOR ResourceID = 1
3179 RT_BITMAP ResourceID = 2
3180 RT_ICON ResourceID = 3
3181 RT_MENU ResourceID = 4
3182 RT_DIALOG ResourceID = 5
3183 RT_STRING ResourceID = 6
3184 RT_FONTDIR ResourceID = 7
3185 RT_FONT ResourceID = 8
3186 RT_ACCELERATOR ResourceID = 9
3187 RT_RCDATA ResourceID = 10
3188 RT_MESSAGETABLE ResourceID = 11
3189 RT_GROUP_CURSOR ResourceID = 12
3190 RT_GROUP_ICON ResourceID = 14
3191 RT_VERSION ResourceID = 16
3192 RT_DLGINCLUDE ResourceID = 17
3193 RT_PLUGPLAY ResourceID = 19
3194 RT_VXD ResourceID = 20
3195 RT_ANICURSOR ResourceID = 21
3196 RT_ANIICON ResourceID = 22
3197 RT_HTML ResourceID = 23
3198 RT_MANIFEST ResourceID = 24
3199)
3200
3201type VS_FIXEDFILEINFO struct {
3202 Signature uint32
3203 StrucVersion uint32
3204 FileVersionMS uint32
3205 FileVersionLS uint32
3206 ProductVersionMS uint32
3207 ProductVersionLS uint32
3208 FileFlagsMask uint32
3209 FileFlags uint32
3210 FileOS uint32
3211 FileType uint32
3212 FileSubtype uint32
3213 FileDateMS uint32
3214 FileDateLS uint32
3215}
3216
3217type COAUTHIDENTITY struct {
3218 User *uint16
3219 UserLength uint32
3220 Domain *uint16
3221 DomainLength uint32
3222 Password *uint16
3223 PasswordLength uint32
3224 Flags uint32
3225}
3226
3227type COAUTHINFO struct {
3228 AuthnSvc uint32
3229 AuthzSvc uint32
3230 ServerPrincName *uint16
3231 AuthnLevel uint32
3232 ImpersonationLevel uint32
3233 AuthIdentityData *COAUTHIDENTITY
3234 Capabilities uint32
3235}
3236
3237type COSERVERINFO struct {
3238 Reserved1 uint32
3239 Aame *uint16
3240 AuthInfo *COAUTHINFO
3241 Reserved2 uint32
3242}
3243
3244type BIND_OPTS3 struct {
3245 CbStruct uint32
3246 Flags uint32
3247 Mode uint32
3248 TickCountDeadline uint32
3249 TrackFlags uint32
3250 ClassContext uint32
3251 Locale uint32
3252 ServerInfo *COSERVERINFO
3253 Hwnd HWND
3254}
3255
3256const (
3257 CLSCTX_INPROC_SERVER = 0x1
3258 CLSCTX_INPROC_HANDLER = 0x2
3259 CLSCTX_LOCAL_SERVER = 0x4
3260 CLSCTX_INPROC_SERVER16 = 0x8
3261 CLSCTX_REMOTE_SERVER = 0x10
3262 CLSCTX_INPROC_HANDLER16 = 0x20
3263 CLSCTX_RESERVED1 = 0x40
3264 CLSCTX_RESERVED2 = 0x80
3265 CLSCTX_RESERVED3 = 0x100
3266 CLSCTX_RESERVED4 = 0x200
3267 CLSCTX_NO_CODE_DOWNLOAD = 0x400
3268 CLSCTX_RESERVED5 = 0x800
3269 CLSCTX_NO_CUSTOM_MARSHAL = 0x1000
3270 CLSCTX_ENABLE_CODE_DOWNLOAD = 0x2000
3271 CLSCTX_NO_FAILURE_LOG = 0x4000
3272 CLSCTX_DISABLE_AAA = 0x8000
3273 CLSCTX_ENABLE_AAA = 0x10000
3274 CLSCTX_FROM_DEFAULT_CONTEXT = 0x20000
3275 CLSCTX_ACTIVATE_32_BIT_SERVER = 0x40000
3276 CLSCTX_ACTIVATE_64_BIT_SERVER = 0x80000
3277 CLSCTX_ENABLE_CLOAKING = 0x100000
3278 CLSCTX_APPCONTAINER = 0x400000
3279 CLSCTX_ACTIVATE_AAA_AS_IU = 0x800000
3280 CLSCTX_PS_DLL = 0x80000000
3281
3282 COINIT_MULTITHREADED = 0x0
3283 COINIT_APARTMENTTHREADED = 0x2
3284 COINIT_DISABLE_OLE1DDE = 0x4
3285 COINIT_SPEED_OVER_MEMORY = 0x8
3286)
3287
3288// Flag for QueryFullProcessImageName.
3289const PROCESS_NAME_NATIVE = 1
3290
3291type ModuleInfo struct {
3292 BaseOfDll uintptr
3293 SizeOfImage uint32
3294 EntryPoint uintptr
3295}
3296
3297const ALL_PROCESSOR_GROUPS = 0xFFFF
3298
3299type Rect struct {
3300 Left int32
3301 Top int32
3302 Right int32
3303 Bottom int32
3304}
3305
3306type GUIThreadInfo struct {
3307 Size uint32
3308 Flags uint32
3309 Active HWND
3310 Focus HWND
3311 Capture HWND
3312 MenuOwner HWND
3313 MoveSize HWND
3314 CaretHandle HWND
3315 CaretRect Rect
3316}
3317
3318const (
3319 DWMWA_NCRENDERING_ENABLED = 1
3320 DWMWA_NCRENDERING_POLICY = 2
3321 DWMWA_TRANSITIONS_FORCEDISABLED = 3
3322 DWMWA_ALLOW_NCPAINT = 4
3323 DWMWA_CAPTION_BUTTON_BOUNDS = 5
3324 DWMWA_NONCLIENT_RTL_LAYOUT = 6
3325 DWMWA_FORCE_ICONIC_REPRESENTATION = 7
3326 DWMWA_FLIP3D_POLICY = 8
3327 DWMWA_EXTENDED_FRAME_BOUNDS = 9
3328 DWMWA_HAS_ICONIC_BITMAP = 10
3329 DWMWA_DISALLOW_PEEK = 11
3330 DWMWA_EXCLUDED_FROM_PEEK = 12
3331 DWMWA_CLOAK = 13
3332 DWMWA_CLOAKED = 14
3333 DWMWA_FREEZE_REPRESENTATION = 15
3334 DWMWA_PASSIVE_UPDATE_MODE = 16
3335 DWMWA_USE_HOSTBACKDROPBRUSH = 17
3336 DWMWA_USE_IMMERSIVE_DARK_MODE = 20
3337 DWMWA_WINDOW_CORNER_PREFERENCE = 33
3338 DWMWA_BORDER_COLOR = 34
3339 DWMWA_CAPTION_COLOR = 35
3340 DWMWA_TEXT_COLOR = 36
3341 DWMWA_VISIBLE_FRAME_BORDER_THICKNESS = 37
3342)
3343
3344type WSAQUERYSET struct {
3345 Size uint32
3346 ServiceInstanceName *uint16
3347 ServiceClassId *GUID
3348 Version *WSAVersion
3349 Comment *uint16
3350 NameSpace uint32
3351 NSProviderId *GUID
3352 Context *uint16
3353 NumberOfProtocols uint32
3354 AfpProtocols *AFProtocols
3355 QueryString *uint16
3356 NumberOfCsAddrs uint32
3357 SaBuffer *CSAddrInfo
3358 OutputFlags uint32
3359 Blob *BLOB
3360}
3361
3362type WSAVersion struct {
3363 Version uint32
3364 EnumerationOfComparison int32
3365}
3366
3367type AFProtocols struct {
3368 AddressFamily int32
3369 Protocol int32
3370}
3371
3372type CSAddrInfo struct {
3373 LocalAddr SocketAddress
3374 RemoteAddr SocketAddress
3375 SocketType int32
3376 Protocol int32
3377}
3378
3379type BLOB struct {
3380 Size uint32
3381 BlobData *byte
3382}
diff --git a/vendor/golang.org/x/sys/windows/types_windows_386.go b/vendor/golang.org/x/sys/windows/types_windows_386.go
deleted file mode 100644
index 8bce3e2..0000000
--- a/vendor/golang.org/x/sys/windows/types_windows_386.go
+++ /dev/null
@@ -1,35 +0,0 @@
1// Copyright 2011 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package windows
6
7type WSAData struct {
8 Version uint16
9 HighVersion uint16
10 Description [WSADESCRIPTION_LEN + 1]byte
11 SystemStatus [WSASYS_STATUS_LEN + 1]byte
12 MaxSockets uint16
13 MaxUdpDg uint16
14 VendorInfo *byte
15}
16
17type Servent struct {
18 Name *byte
19 Aliases **byte
20 Port uint16
21 Proto *byte
22}
23
24type JOBOBJECT_BASIC_LIMIT_INFORMATION struct {
25 PerProcessUserTimeLimit int64
26 PerJobUserTimeLimit int64
27 LimitFlags uint32
28 MinimumWorkingSetSize uintptr
29 MaximumWorkingSetSize uintptr
30 ActiveProcessLimit uint32
31 Affinity uintptr
32 PriorityClass uint32
33 SchedulingClass uint32
34 _ uint32 // pad to 8 byte boundary
35}
diff --git a/vendor/golang.org/x/sys/windows/types_windows_amd64.go b/vendor/golang.org/x/sys/windows/types_windows_amd64.go
deleted file mode 100644
index fdddc0c..0000000
--- a/vendor/golang.org/x/sys/windows/types_windows_amd64.go
+++ /dev/null
@@ -1,34 +0,0 @@
1// Copyright 2011 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package windows
6
7type WSAData struct {
8 Version uint16
9 HighVersion uint16
10 MaxSockets uint16
11 MaxUdpDg uint16
12 VendorInfo *byte
13 Description [WSADESCRIPTION_LEN + 1]byte
14 SystemStatus [WSASYS_STATUS_LEN + 1]byte
15}
16
17type Servent struct {
18 Name *byte
19 Aliases **byte
20 Proto *byte
21 Port uint16
22}
23
24type JOBOBJECT_BASIC_LIMIT_INFORMATION struct {
25 PerProcessUserTimeLimit int64
26 PerJobUserTimeLimit int64
27 LimitFlags uint32
28 MinimumWorkingSetSize uintptr
29 MaximumWorkingSetSize uintptr
30 ActiveProcessLimit uint32
31 Affinity uintptr
32 PriorityClass uint32
33 SchedulingClass uint32
34}
diff --git a/vendor/golang.org/x/sys/windows/types_windows_arm.go b/vendor/golang.org/x/sys/windows/types_windows_arm.go
deleted file mode 100644
index 321872c..0000000
--- a/vendor/golang.org/x/sys/windows/types_windows_arm.go
+++ /dev/null
@@ -1,35 +0,0 @@
1// Copyright 2018 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package windows
6
7type WSAData struct {
8 Version uint16
9 HighVersion uint16
10 Description [WSADESCRIPTION_LEN + 1]byte
11 SystemStatus [WSASYS_STATUS_LEN + 1]byte
12 MaxSockets uint16
13 MaxUdpDg uint16
14 VendorInfo *byte
15}
16
17type Servent struct {
18 Name *byte
19 Aliases **byte
20 Port uint16
21 Proto *byte
22}
23
24type JOBOBJECT_BASIC_LIMIT_INFORMATION struct {
25 PerProcessUserTimeLimit int64
26 PerJobUserTimeLimit int64
27 LimitFlags uint32
28 MinimumWorkingSetSize uintptr
29 MaximumWorkingSetSize uintptr
30 ActiveProcessLimit uint32
31 Affinity uintptr
32 PriorityClass uint32
33 SchedulingClass uint32
34 _ uint32 // pad to 8 byte boundary
35}
diff --git a/vendor/golang.org/x/sys/windows/types_windows_arm64.go b/vendor/golang.org/x/sys/windows/types_windows_arm64.go
deleted file mode 100644
index fdddc0c..0000000
--- a/vendor/golang.org/x/sys/windows/types_windows_arm64.go
+++ /dev/null
@@ -1,34 +0,0 @@
1// Copyright 2011 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package windows
6
7type WSAData struct {
8 Version uint16
9 HighVersion uint16
10 MaxSockets uint16
11 MaxUdpDg uint16
12 VendorInfo *byte
13 Description [WSADESCRIPTION_LEN + 1]byte
14 SystemStatus [WSASYS_STATUS_LEN + 1]byte
15}
16
17type Servent struct {
18 Name *byte
19 Aliases **byte
20 Proto *byte
21 Port uint16
22}
23
24type JOBOBJECT_BASIC_LIMIT_INFORMATION struct {
25 PerProcessUserTimeLimit int64
26 PerJobUserTimeLimit int64
27 LimitFlags uint32
28 MinimumWorkingSetSize uintptr
29 MaximumWorkingSetSize uintptr
30 ActiveProcessLimit uint32
31 Affinity uintptr
32 PriorityClass uint32
33 SchedulingClass uint32
34}
diff --git a/vendor/golang.org/x/sys/windows/zerrors_windows.go b/vendor/golang.org/x/sys/windows/zerrors_windows.go
deleted file mode 100644
index 0cf658f..0000000
--- a/vendor/golang.org/x/sys/windows/zerrors_windows.go
+++ /dev/null
@@ -1,9468 +0,0 @@
1// Code generated by 'mkerrors.bash'; DO NOT EDIT.
2
3package windows
4
5import "syscall"
6
7const (
8 FACILITY_NULL = 0
9 FACILITY_RPC = 1
10 FACILITY_DISPATCH = 2
11 FACILITY_STORAGE = 3
12 FACILITY_ITF = 4
13 FACILITY_WIN32 = 7
14 FACILITY_WINDOWS = 8
15 FACILITY_SSPI = 9
16 FACILITY_SECURITY = 9
17 FACILITY_CONTROL = 10
18 FACILITY_CERT = 11
19 FACILITY_INTERNET = 12
20 FACILITY_MEDIASERVER = 13
21 FACILITY_MSMQ = 14
22 FACILITY_SETUPAPI = 15
23 FACILITY_SCARD = 16
24 FACILITY_COMPLUS = 17
25 FACILITY_AAF = 18
26 FACILITY_URT = 19
27 FACILITY_ACS = 20
28 FACILITY_DPLAY = 21
29 FACILITY_UMI = 22
30 FACILITY_SXS = 23
31 FACILITY_WINDOWS_CE = 24
32 FACILITY_HTTP = 25
33 FACILITY_USERMODE_COMMONLOG = 26
34 FACILITY_WER = 27
35 FACILITY_USERMODE_FILTER_MANAGER = 31
36 FACILITY_BACKGROUNDCOPY = 32
37 FACILITY_CONFIGURATION = 33
38 FACILITY_WIA = 33
39 FACILITY_STATE_MANAGEMENT = 34
40 FACILITY_METADIRECTORY = 35
41 FACILITY_WINDOWSUPDATE = 36
42 FACILITY_DIRECTORYSERVICE = 37
43 FACILITY_GRAPHICS = 38
44 FACILITY_SHELL = 39
45 FACILITY_NAP = 39
46 FACILITY_TPM_SERVICES = 40
47 FACILITY_TPM_SOFTWARE = 41
48 FACILITY_UI = 42
49 FACILITY_XAML = 43
50 FACILITY_ACTION_QUEUE = 44
51 FACILITY_PLA = 48
52 FACILITY_WINDOWS_SETUP = 48
53 FACILITY_FVE = 49
54 FACILITY_FWP = 50
55 FACILITY_WINRM = 51
56 FACILITY_NDIS = 52
57 FACILITY_USERMODE_HYPERVISOR = 53
58 FACILITY_CMI = 54
59 FACILITY_USERMODE_VIRTUALIZATION = 55
60 FACILITY_USERMODE_VOLMGR = 56
61 FACILITY_BCD = 57
62 FACILITY_USERMODE_VHD = 58
63 FACILITY_USERMODE_HNS = 59
64 FACILITY_SDIAG = 60
65 FACILITY_WEBSERVICES = 61
66 FACILITY_WINPE = 61
67 FACILITY_WPN = 62
68 FACILITY_WINDOWS_STORE = 63
69 FACILITY_INPUT = 64
70 FACILITY_EAP = 66
71 FACILITY_WINDOWS_DEFENDER = 80
72 FACILITY_OPC = 81
73 FACILITY_XPS = 82
74 FACILITY_MBN = 84
75 FACILITY_POWERSHELL = 84
76 FACILITY_RAS = 83
77 FACILITY_P2P_INT = 98
78 FACILITY_P2P = 99
79 FACILITY_DAF = 100
80 FACILITY_BLUETOOTH_ATT = 101
81 FACILITY_AUDIO = 102
82 FACILITY_STATEREPOSITORY = 103
83 FACILITY_VISUALCPP = 109
84 FACILITY_SCRIPT = 112
85 FACILITY_PARSE = 113
86 FACILITY_BLB = 120
87 FACILITY_BLB_CLI = 121
88 FACILITY_WSBAPP = 122
89 FACILITY_BLBUI = 128
90 FACILITY_USN = 129
91 FACILITY_USERMODE_VOLSNAP = 130
92 FACILITY_TIERING = 131
93 FACILITY_WSB_ONLINE = 133
94 FACILITY_ONLINE_ID = 134
95 FACILITY_DEVICE_UPDATE_AGENT = 135
96 FACILITY_DRVSERVICING = 136
97 FACILITY_DLS = 153
98 FACILITY_DELIVERY_OPTIMIZATION = 208
99 FACILITY_USERMODE_SPACES = 231
100 FACILITY_USER_MODE_SECURITY_CORE = 232
101 FACILITY_USERMODE_LICENSING = 234
102 FACILITY_SOS = 160
103 FACILITY_DEBUGGERS = 176
104 FACILITY_SPP = 256
105 FACILITY_RESTORE = 256
106 FACILITY_DMSERVER = 256
107 FACILITY_DEPLOYMENT_SERVICES_SERVER = 257
108 FACILITY_DEPLOYMENT_SERVICES_IMAGING = 258
109 FACILITY_DEPLOYMENT_SERVICES_MANAGEMENT = 259
110 FACILITY_DEPLOYMENT_SERVICES_UTIL = 260
111 FACILITY_DEPLOYMENT_SERVICES_BINLSVC = 261
112 FACILITY_DEPLOYMENT_SERVICES_PXE = 263
113 FACILITY_DEPLOYMENT_SERVICES_TFTP = 264
114 FACILITY_DEPLOYMENT_SERVICES_TRANSPORT_MANAGEMENT = 272
115 FACILITY_DEPLOYMENT_SERVICES_DRIVER_PROVISIONING = 278
116 FACILITY_DEPLOYMENT_SERVICES_MULTICAST_SERVER = 289
117 FACILITY_DEPLOYMENT_SERVICES_MULTICAST_CLIENT = 290
118 FACILITY_DEPLOYMENT_SERVICES_CONTENT_PROVIDER = 293
119 FACILITY_LINGUISTIC_SERVICES = 305
120 FACILITY_AUDIOSTREAMING = 1094
121 FACILITY_ACCELERATOR = 1536
122 FACILITY_WMAAECMA = 1996
123 FACILITY_DIRECTMUSIC = 2168
124 FACILITY_DIRECT3D10 = 2169
125 FACILITY_DXGI = 2170
126 FACILITY_DXGI_DDI = 2171
127 FACILITY_DIRECT3D11 = 2172
128 FACILITY_DIRECT3D11_DEBUG = 2173
129 FACILITY_DIRECT3D12 = 2174
130 FACILITY_DIRECT3D12_DEBUG = 2175
131 FACILITY_LEAP = 2184
132 FACILITY_AUDCLNT = 2185
133 FACILITY_WINCODEC_DWRITE_DWM = 2200
134 FACILITY_WINML = 2192
135 FACILITY_DIRECT2D = 2201
136 FACILITY_DEFRAG = 2304
137 FACILITY_USERMODE_SDBUS = 2305
138 FACILITY_JSCRIPT = 2306
139 FACILITY_PIDGENX = 2561
140 FACILITY_EAS = 85
141 FACILITY_WEB = 885
142 FACILITY_WEB_SOCKET = 886
143 FACILITY_MOBILE = 1793
144 FACILITY_SQLITE = 1967
145 FACILITY_UTC = 1989
146 FACILITY_WEP = 2049
147 FACILITY_SYNCENGINE = 2050
148 FACILITY_XBOX = 2339
149 FACILITY_GAME = 2340
150 FACILITY_PIX = 2748
151 ERROR_SUCCESS syscall.Errno = 0
152 NO_ERROR = 0
153 SEC_E_OK Handle = 0x00000000
154 ERROR_INVALID_FUNCTION syscall.Errno = 1
155 ERROR_FILE_NOT_FOUND syscall.Errno = 2
156 ERROR_PATH_NOT_FOUND syscall.Errno = 3
157 ERROR_TOO_MANY_OPEN_FILES syscall.Errno = 4
158 ERROR_ACCESS_DENIED syscall.Errno = 5
159 ERROR_INVALID_HANDLE syscall.Errno = 6
160 ERROR_ARENA_TRASHED syscall.Errno = 7
161 ERROR_NOT_ENOUGH_MEMORY syscall.Errno = 8
162 ERROR_INVALID_BLOCK syscall.Errno = 9
163 ERROR_BAD_ENVIRONMENT syscall.Errno = 10
164 ERROR_BAD_FORMAT syscall.Errno = 11
165 ERROR_INVALID_ACCESS syscall.Errno = 12
166 ERROR_INVALID_DATA syscall.Errno = 13
167 ERROR_OUTOFMEMORY syscall.Errno = 14
168 ERROR_INVALID_DRIVE syscall.Errno = 15
169 ERROR_CURRENT_DIRECTORY syscall.Errno = 16
170 ERROR_NOT_SAME_DEVICE syscall.Errno = 17
171 ERROR_NO_MORE_FILES syscall.Errno = 18
172 ERROR_WRITE_PROTECT syscall.Errno = 19
173 ERROR_BAD_UNIT syscall.Errno = 20
174 ERROR_NOT_READY syscall.Errno = 21
175 ERROR_BAD_COMMAND syscall.Errno = 22
176 ERROR_CRC syscall.Errno = 23
177 ERROR_BAD_LENGTH syscall.Errno = 24
178 ERROR_SEEK syscall.Errno = 25
179 ERROR_NOT_DOS_DISK syscall.Errno = 26
180 ERROR_SECTOR_NOT_FOUND syscall.Errno = 27
181 ERROR_OUT_OF_PAPER syscall.Errno = 28
182 ERROR_WRITE_FAULT syscall.Errno = 29
183 ERROR_READ_FAULT syscall.Errno = 30
184 ERROR_GEN_FAILURE syscall.Errno = 31
185 ERROR_SHARING_VIOLATION syscall.Errno = 32
186 ERROR_LOCK_VIOLATION syscall.Errno = 33
187 ERROR_WRONG_DISK syscall.Errno = 34
188 ERROR_SHARING_BUFFER_EXCEEDED syscall.Errno = 36
189 ERROR_HANDLE_EOF syscall.Errno = 38
190 ERROR_HANDLE_DISK_FULL syscall.Errno = 39
191 ERROR_NOT_SUPPORTED syscall.Errno = 50
192 ERROR_REM_NOT_LIST syscall.Errno = 51
193 ERROR_DUP_NAME syscall.Errno = 52
194 ERROR_BAD_NETPATH syscall.Errno = 53
195 ERROR_NETWORK_BUSY syscall.Errno = 54
196 ERROR_DEV_NOT_EXIST syscall.Errno = 55
197 ERROR_TOO_MANY_CMDS syscall.Errno = 56
198 ERROR_ADAP_HDW_ERR syscall.Errno = 57
199 ERROR_BAD_NET_RESP syscall.Errno = 58
200 ERROR_UNEXP_NET_ERR syscall.Errno = 59
201 ERROR_BAD_REM_ADAP syscall.Errno = 60
202 ERROR_PRINTQ_FULL syscall.Errno = 61
203 ERROR_NO_SPOOL_SPACE syscall.Errno = 62
204 ERROR_PRINT_CANCELLED syscall.Errno = 63
205 ERROR_NETNAME_DELETED syscall.Errno = 64
206 ERROR_NETWORK_ACCESS_DENIED syscall.Errno = 65
207 ERROR_BAD_DEV_TYPE syscall.Errno = 66
208 ERROR_BAD_NET_NAME syscall.Errno = 67
209 ERROR_TOO_MANY_NAMES syscall.Errno = 68
210 ERROR_TOO_MANY_SESS syscall.Errno = 69
211 ERROR_SHARING_PAUSED syscall.Errno = 70
212 ERROR_REQ_NOT_ACCEP syscall.Errno = 71
213 ERROR_REDIR_PAUSED syscall.Errno = 72
214 ERROR_FILE_EXISTS syscall.Errno = 80
215 ERROR_CANNOT_MAKE syscall.Errno = 82
216 ERROR_FAIL_I24 syscall.Errno = 83
217 ERROR_OUT_OF_STRUCTURES syscall.Errno = 84
218 ERROR_ALREADY_ASSIGNED syscall.Errno = 85
219 ERROR_INVALID_PASSWORD syscall.Errno = 86
220 ERROR_INVALID_PARAMETER syscall.Errno = 87
221 ERROR_NET_WRITE_FAULT syscall.Errno = 88
222 ERROR_NO_PROC_SLOTS syscall.Errno = 89
223 ERROR_TOO_MANY_SEMAPHORES syscall.Errno = 100
224 ERROR_EXCL_SEM_ALREADY_OWNED syscall.Errno = 101
225 ERROR_SEM_IS_SET syscall.Errno = 102
226 ERROR_TOO_MANY_SEM_REQUESTS syscall.Errno = 103
227 ERROR_INVALID_AT_INTERRUPT_TIME syscall.Errno = 104
228 ERROR_SEM_OWNER_DIED syscall.Errno = 105
229 ERROR_SEM_USER_LIMIT syscall.Errno = 106
230 ERROR_DISK_CHANGE syscall.Errno = 107
231 ERROR_DRIVE_LOCKED syscall.Errno = 108
232 ERROR_BROKEN_PIPE syscall.Errno = 109
233 ERROR_OPEN_FAILED syscall.Errno = 110
234 ERROR_BUFFER_OVERFLOW syscall.Errno = 111
235 ERROR_DISK_FULL syscall.Errno = 112
236 ERROR_NO_MORE_SEARCH_HANDLES syscall.Errno = 113
237 ERROR_INVALID_TARGET_HANDLE syscall.Errno = 114
238 ERROR_INVALID_CATEGORY syscall.Errno = 117
239 ERROR_INVALID_VERIFY_SWITCH syscall.Errno = 118
240 ERROR_BAD_DRIVER_LEVEL syscall.Errno = 119
241 ERROR_CALL_NOT_IMPLEMENTED syscall.Errno = 120
242 ERROR_SEM_TIMEOUT syscall.Errno = 121
243 ERROR_INSUFFICIENT_BUFFER syscall.Errno = 122
244 ERROR_INVALID_NAME syscall.Errno = 123
245 ERROR_INVALID_LEVEL syscall.Errno = 124
246 ERROR_NO_VOLUME_LABEL syscall.Errno = 125
247 ERROR_MOD_NOT_FOUND syscall.Errno = 126
248 ERROR_PROC_NOT_FOUND syscall.Errno = 127
249 ERROR_WAIT_NO_CHILDREN syscall.Errno = 128
250 ERROR_CHILD_NOT_COMPLETE syscall.Errno = 129
251 ERROR_DIRECT_ACCESS_HANDLE syscall.Errno = 130
252 ERROR_NEGATIVE_SEEK syscall.Errno = 131
253 ERROR_SEEK_ON_DEVICE syscall.Errno = 132
254 ERROR_IS_JOIN_TARGET syscall.Errno = 133
255 ERROR_IS_JOINED syscall.Errno = 134
256 ERROR_IS_SUBSTED syscall.Errno = 135
257 ERROR_NOT_JOINED syscall.Errno = 136
258 ERROR_NOT_SUBSTED syscall.Errno = 137
259 ERROR_JOIN_TO_JOIN syscall.Errno = 138
260 ERROR_SUBST_TO_SUBST syscall.Errno = 139
261 ERROR_JOIN_TO_SUBST syscall.Errno = 140
262 ERROR_SUBST_TO_JOIN syscall.Errno = 141
263 ERROR_BUSY_DRIVE syscall.Errno = 142
264 ERROR_SAME_DRIVE syscall.Errno = 143
265 ERROR_DIR_NOT_ROOT syscall.Errno = 144
266 ERROR_DIR_NOT_EMPTY syscall.Errno = 145
267 ERROR_IS_SUBST_PATH syscall.Errno = 146
268 ERROR_IS_JOIN_PATH syscall.Errno = 147
269 ERROR_PATH_BUSY syscall.Errno = 148
270 ERROR_IS_SUBST_TARGET syscall.Errno = 149
271 ERROR_SYSTEM_TRACE syscall.Errno = 150
272 ERROR_INVALID_EVENT_COUNT syscall.Errno = 151
273 ERROR_TOO_MANY_MUXWAITERS syscall.Errno = 152
274 ERROR_INVALID_LIST_FORMAT syscall.Errno = 153
275 ERROR_LABEL_TOO_LONG syscall.Errno = 154
276 ERROR_TOO_MANY_TCBS syscall.Errno = 155
277 ERROR_SIGNAL_REFUSED syscall.Errno = 156
278 ERROR_DISCARDED syscall.Errno = 157
279 ERROR_NOT_LOCKED syscall.Errno = 158
280 ERROR_BAD_THREADID_ADDR syscall.Errno = 159
281 ERROR_BAD_ARGUMENTS syscall.Errno = 160
282 ERROR_BAD_PATHNAME syscall.Errno = 161
283 ERROR_SIGNAL_PENDING syscall.Errno = 162
284 ERROR_MAX_THRDS_REACHED syscall.Errno = 164
285 ERROR_LOCK_FAILED syscall.Errno = 167
286 ERROR_BUSY syscall.Errno = 170
287 ERROR_DEVICE_SUPPORT_IN_PROGRESS syscall.Errno = 171
288 ERROR_CANCEL_VIOLATION syscall.Errno = 173
289 ERROR_ATOMIC_LOCKS_NOT_SUPPORTED syscall.Errno = 174
290 ERROR_INVALID_SEGMENT_NUMBER syscall.Errno = 180
291 ERROR_INVALID_ORDINAL syscall.Errno = 182
292 ERROR_ALREADY_EXISTS syscall.Errno = 183
293 ERROR_INVALID_FLAG_NUMBER syscall.Errno = 186
294 ERROR_SEM_NOT_FOUND syscall.Errno = 187
295 ERROR_INVALID_STARTING_CODESEG syscall.Errno = 188
296 ERROR_INVALID_STACKSEG syscall.Errno = 189
297 ERROR_INVALID_MODULETYPE syscall.Errno = 190
298 ERROR_INVALID_EXE_SIGNATURE syscall.Errno = 191
299 ERROR_EXE_MARKED_INVALID syscall.Errno = 192
300 ERROR_BAD_EXE_FORMAT syscall.Errno = 193
301 ERROR_ITERATED_DATA_EXCEEDS_64k syscall.Errno = 194
302 ERROR_INVALID_MINALLOCSIZE syscall.Errno = 195
303 ERROR_DYNLINK_FROM_INVALID_RING syscall.Errno = 196
304 ERROR_IOPL_NOT_ENABLED syscall.Errno = 197
305 ERROR_INVALID_SEGDPL syscall.Errno = 198
306 ERROR_AUTODATASEG_EXCEEDS_64k syscall.Errno = 199
307 ERROR_RING2SEG_MUST_BE_MOVABLE syscall.Errno = 200
308 ERROR_RELOC_CHAIN_XEEDS_SEGLIM syscall.Errno = 201
309 ERROR_INFLOOP_IN_RELOC_CHAIN syscall.Errno = 202
310 ERROR_ENVVAR_NOT_FOUND syscall.Errno = 203
311 ERROR_NO_SIGNAL_SENT syscall.Errno = 205
312 ERROR_FILENAME_EXCED_RANGE syscall.Errno = 206
313 ERROR_RING2_STACK_IN_USE syscall.Errno = 207
314 ERROR_META_EXPANSION_TOO_LONG syscall.Errno = 208
315 ERROR_INVALID_SIGNAL_NUMBER syscall.Errno = 209
316 ERROR_THREAD_1_INACTIVE syscall.Errno = 210
317 ERROR_LOCKED syscall.Errno = 212
318 ERROR_TOO_MANY_MODULES syscall.Errno = 214
319 ERROR_NESTING_NOT_ALLOWED syscall.Errno = 215
320 ERROR_EXE_MACHINE_TYPE_MISMATCH syscall.Errno = 216
321 ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY syscall.Errno = 217
322 ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY syscall.Errno = 218
323 ERROR_FILE_CHECKED_OUT syscall.Errno = 220
324 ERROR_CHECKOUT_REQUIRED syscall.Errno = 221
325 ERROR_BAD_FILE_TYPE syscall.Errno = 222
326 ERROR_FILE_TOO_LARGE syscall.Errno = 223
327 ERROR_FORMS_AUTH_REQUIRED syscall.Errno = 224
328 ERROR_VIRUS_INFECTED syscall.Errno = 225
329 ERROR_VIRUS_DELETED syscall.Errno = 226
330 ERROR_PIPE_LOCAL syscall.Errno = 229
331 ERROR_BAD_PIPE syscall.Errno = 230
332 ERROR_PIPE_BUSY syscall.Errno = 231
333 ERROR_NO_DATA syscall.Errno = 232
334 ERROR_PIPE_NOT_CONNECTED syscall.Errno = 233
335 ERROR_MORE_DATA syscall.Errno = 234
336 ERROR_NO_WORK_DONE syscall.Errno = 235
337 ERROR_VC_DISCONNECTED syscall.Errno = 240
338 ERROR_INVALID_EA_NAME syscall.Errno = 254
339 ERROR_EA_LIST_INCONSISTENT syscall.Errno = 255
340 WAIT_TIMEOUT syscall.Errno = 258
341 ERROR_NO_MORE_ITEMS syscall.Errno = 259
342 ERROR_CANNOT_COPY syscall.Errno = 266
343 ERROR_DIRECTORY syscall.Errno = 267
344 ERROR_EAS_DIDNT_FIT syscall.Errno = 275
345 ERROR_EA_FILE_CORRUPT syscall.Errno = 276
346 ERROR_EA_TABLE_FULL syscall.Errno = 277
347 ERROR_INVALID_EA_HANDLE syscall.Errno = 278
348 ERROR_EAS_NOT_SUPPORTED syscall.Errno = 282
349 ERROR_NOT_OWNER syscall.Errno = 288
350 ERROR_TOO_MANY_POSTS syscall.Errno = 298
351 ERROR_PARTIAL_COPY syscall.Errno = 299
352 ERROR_OPLOCK_NOT_GRANTED syscall.Errno = 300
353 ERROR_INVALID_OPLOCK_PROTOCOL syscall.Errno = 301
354 ERROR_DISK_TOO_FRAGMENTED syscall.Errno = 302
355 ERROR_DELETE_PENDING syscall.Errno = 303
356 ERROR_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING syscall.Errno = 304
357 ERROR_SHORT_NAMES_NOT_ENABLED_ON_VOLUME syscall.Errno = 305
358 ERROR_SECURITY_STREAM_IS_INCONSISTENT syscall.Errno = 306
359 ERROR_INVALID_LOCK_RANGE syscall.Errno = 307
360 ERROR_IMAGE_SUBSYSTEM_NOT_PRESENT syscall.Errno = 308
361 ERROR_NOTIFICATION_GUID_ALREADY_DEFINED syscall.Errno = 309
362 ERROR_INVALID_EXCEPTION_HANDLER syscall.Errno = 310
363 ERROR_DUPLICATE_PRIVILEGES syscall.Errno = 311
364 ERROR_NO_RANGES_PROCESSED syscall.Errno = 312
365 ERROR_NOT_ALLOWED_ON_SYSTEM_FILE syscall.Errno = 313
366 ERROR_DISK_RESOURCES_EXHAUSTED syscall.Errno = 314
367 ERROR_INVALID_TOKEN syscall.Errno = 315
368 ERROR_DEVICE_FEATURE_NOT_SUPPORTED syscall.Errno = 316
369 ERROR_MR_MID_NOT_FOUND syscall.Errno = 317
370 ERROR_SCOPE_NOT_FOUND syscall.Errno = 318
371 ERROR_UNDEFINED_SCOPE syscall.Errno = 319
372 ERROR_INVALID_CAP syscall.Errno = 320
373 ERROR_DEVICE_UNREACHABLE syscall.Errno = 321
374 ERROR_DEVICE_NO_RESOURCES syscall.Errno = 322
375 ERROR_DATA_CHECKSUM_ERROR syscall.Errno = 323
376 ERROR_INTERMIXED_KERNEL_EA_OPERATION syscall.Errno = 324
377 ERROR_FILE_LEVEL_TRIM_NOT_SUPPORTED syscall.Errno = 326
378 ERROR_OFFSET_ALIGNMENT_VIOLATION syscall.Errno = 327
379 ERROR_INVALID_FIELD_IN_PARAMETER_LIST syscall.Errno = 328
380 ERROR_OPERATION_IN_PROGRESS syscall.Errno = 329
381 ERROR_BAD_DEVICE_PATH syscall.Errno = 330
382 ERROR_TOO_MANY_DESCRIPTORS syscall.Errno = 331
383 ERROR_SCRUB_DATA_DISABLED syscall.Errno = 332
384 ERROR_NOT_REDUNDANT_STORAGE syscall.Errno = 333
385 ERROR_RESIDENT_FILE_NOT_SUPPORTED syscall.Errno = 334
386 ERROR_COMPRESSED_FILE_NOT_SUPPORTED syscall.Errno = 335
387 ERROR_DIRECTORY_NOT_SUPPORTED syscall.Errno = 336
388 ERROR_NOT_READ_FROM_COPY syscall.Errno = 337
389 ERROR_FT_WRITE_FAILURE syscall.Errno = 338
390 ERROR_FT_DI_SCAN_REQUIRED syscall.Errno = 339
391 ERROR_INVALID_KERNEL_INFO_VERSION syscall.Errno = 340
392 ERROR_INVALID_PEP_INFO_VERSION syscall.Errno = 341
393 ERROR_OBJECT_NOT_EXTERNALLY_BACKED syscall.Errno = 342
394 ERROR_EXTERNAL_BACKING_PROVIDER_UNKNOWN syscall.Errno = 343
395 ERROR_COMPRESSION_NOT_BENEFICIAL syscall.Errno = 344
396 ERROR_STORAGE_TOPOLOGY_ID_MISMATCH syscall.Errno = 345
397 ERROR_BLOCKED_BY_PARENTAL_CONTROLS syscall.Errno = 346
398 ERROR_BLOCK_TOO_MANY_REFERENCES syscall.Errno = 347
399 ERROR_MARKED_TO_DISALLOW_WRITES syscall.Errno = 348
400 ERROR_ENCLAVE_FAILURE syscall.Errno = 349
401 ERROR_FAIL_NOACTION_REBOOT syscall.Errno = 350
402 ERROR_FAIL_SHUTDOWN syscall.Errno = 351
403 ERROR_FAIL_RESTART syscall.Errno = 352
404 ERROR_MAX_SESSIONS_REACHED syscall.Errno = 353
405 ERROR_NETWORK_ACCESS_DENIED_EDP syscall.Errno = 354
406 ERROR_DEVICE_HINT_NAME_BUFFER_TOO_SMALL syscall.Errno = 355
407 ERROR_EDP_POLICY_DENIES_OPERATION syscall.Errno = 356
408 ERROR_EDP_DPL_POLICY_CANT_BE_SATISFIED syscall.Errno = 357
409 ERROR_CLOUD_FILE_SYNC_ROOT_METADATA_CORRUPT syscall.Errno = 358
410 ERROR_DEVICE_IN_MAINTENANCE syscall.Errno = 359
411 ERROR_NOT_SUPPORTED_ON_DAX syscall.Errno = 360
412 ERROR_DAX_MAPPING_EXISTS syscall.Errno = 361
413 ERROR_CLOUD_FILE_PROVIDER_NOT_RUNNING syscall.Errno = 362
414 ERROR_CLOUD_FILE_METADATA_CORRUPT syscall.Errno = 363
415 ERROR_CLOUD_FILE_METADATA_TOO_LARGE syscall.Errno = 364
416 ERROR_CLOUD_FILE_PROPERTY_BLOB_TOO_LARGE syscall.Errno = 365
417 ERROR_CLOUD_FILE_PROPERTY_BLOB_CHECKSUM_MISMATCH syscall.Errno = 366
418 ERROR_CHILD_PROCESS_BLOCKED syscall.Errno = 367
419 ERROR_STORAGE_LOST_DATA_PERSISTENCE syscall.Errno = 368
420 ERROR_FILE_SYSTEM_VIRTUALIZATION_UNAVAILABLE syscall.Errno = 369
421 ERROR_FILE_SYSTEM_VIRTUALIZATION_METADATA_CORRUPT syscall.Errno = 370
422 ERROR_FILE_SYSTEM_VIRTUALIZATION_BUSY syscall.Errno = 371
423 ERROR_FILE_SYSTEM_VIRTUALIZATION_PROVIDER_UNKNOWN syscall.Errno = 372
424 ERROR_GDI_HANDLE_LEAK syscall.Errno = 373
425 ERROR_CLOUD_FILE_TOO_MANY_PROPERTY_BLOBS syscall.Errno = 374
426 ERROR_CLOUD_FILE_PROPERTY_VERSION_NOT_SUPPORTED syscall.Errno = 375
427 ERROR_NOT_A_CLOUD_FILE syscall.Errno = 376
428 ERROR_CLOUD_FILE_NOT_IN_SYNC syscall.Errno = 377
429 ERROR_CLOUD_FILE_ALREADY_CONNECTED syscall.Errno = 378
430 ERROR_CLOUD_FILE_NOT_SUPPORTED syscall.Errno = 379
431 ERROR_CLOUD_FILE_INVALID_REQUEST syscall.Errno = 380
432 ERROR_CLOUD_FILE_READ_ONLY_VOLUME syscall.Errno = 381
433 ERROR_CLOUD_FILE_CONNECTED_PROVIDER_ONLY syscall.Errno = 382
434 ERROR_CLOUD_FILE_VALIDATION_FAILED syscall.Errno = 383
435 ERROR_SMB1_NOT_AVAILABLE syscall.Errno = 384
436 ERROR_FILE_SYSTEM_VIRTUALIZATION_INVALID_OPERATION syscall.Errno = 385
437 ERROR_CLOUD_FILE_AUTHENTICATION_FAILED syscall.Errno = 386
438 ERROR_CLOUD_FILE_INSUFFICIENT_RESOURCES syscall.Errno = 387
439 ERROR_CLOUD_FILE_NETWORK_UNAVAILABLE syscall.Errno = 388
440 ERROR_CLOUD_FILE_UNSUCCESSFUL syscall.Errno = 389
441 ERROR_CLOUD_FILE_NOT_UNDER_SYNC_ROOT syscall.Errno = 390
442 ERROR_CLOUD_FILE_IN_USE syscall.Errno = 391
443 ERROR_CLOUD_FILE_PINNED syscall.Errno = 392
444 ERROR_CLOUD_FILE_REQUEST_ABORTED syscall.Errno = 393
445 ERROR_CLOUD_FILE_PROPERTY_CORRUPT syscall.Errno = 394
446 ERROR_CLOUD_FILE_ACCESS_DENIED syscall.Errno = 395
447 ERROR_CLOUD_FILE_INCOMPATIBLE_HARDLINKS syscall.Errno = 396
448 ERROR_CLOUD_FILE_PROPERTY_LOCK_CONFLICT syscall.Errno = 397
449 ERROR_CLOUD_FILE_REQUEST_CANCELED syscall.Errno = 398
450 ERROR_EXTERNAL_SYSKEY_NOT_SUPPORTED syscall.Errno = 399
451 ERROR_THREAD_MODE_ALREADY_BACKGROUND syscall.Errno = 400
452 ERROR_THREAD_MODE_NOT_BACKGROUND syscall.Errno = 401
453 ERROR_PROCESS_MODE_ALREADY_BACKGROUND syscall.Errno = 402
454 ERROR_PROCESS_MODE_NOT_BACKGROUND syscall.Errno = 403
455 ERROR_CLOUD_FILE_PROVIDER_TERMINATED syscall.Errno = 404
456 ERROR_NOT_A_CLOUD_SYNC_ROOT syscall.Errno = 405
457 ERROR_FILE_PROTECTED_UNDER_DPL syscall.Errno = 406
458 ERROR_VOLUME_NOT_CLUSTER_ALIGNED syscall.Errno = 407
459 ERROR_NO_PHYSICALLY_ALIGNED_FREE_SPACE_FOUND syscall.Errno = 408
460 ERROR_APPX_FILE_NOT_ENCRYPTED syscall.Errno = 409
461 ERROR_RWRAW_ENCRYPTED_FILE_NOT_ENCRYPTED syscall.Errno = 410
462 ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_FILEOFFSET syscall.Errno = 411
463 ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_FILERANGE syscall.Errno = 412
464 ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_PARAMETER syscall.Errno = 413
465 ERROR_LINUX_SUBSYSTEM_NOT_PRESENT syscall.Errno = 414
466 ERROR_FT_READ_FAILURE syscall.Errno = 415
467 ERROR_STORAGE_RESERVE_ID_INVALID syscall.Errno = 416
468 ERROR_STORAGE_RESERVE_DOES_NOT_EXIST syscall.Errno = 417
469 ERROR_STORAGE_RESERVE_ALREADY_EXISTS syscall.Errno = 418
470 ERROR_STORAGE_RESERVE_NOT_EMPTY syscall.Errno = 419
471 ERROR_NOT_A_DAX_VOLUME syscall.Errno = 420
472 ERROR_NOT_DAX_MAPPABLE syscall.Errno = 421
473 ERROR_TIME_SENSITIVE_THREAD syscall.Errno = 422
474 ERROR_DPL_NOT_SUPPORTED_FOR_USER syscall.Errno = 423
475 ERROR_CASE_DIFFERING_NAMES_IN_DIR syscall.Errno = 424
476 ERROR_FILE_NOT_SUPPORTED syscall.Errno = 425
477 ERROR_CLOUD_FILE_REQUEST_TIMEOUT syscall.Errno = 426
478 ERROR_NO_TASK_QUEUE syscall.Errno = 427
479 ERROR_SRC_SRV_DLL_LOAD_FAILED syscall.Errno = 428
480 ERROR_NOT_SUPPORTED_WITH_BTT syscall.Errno = 429
481 ERROR_ENCRYPTION_DISABLED syscall.Errno = 430
482 ERROR_ENCRYPTING_METADATA_DISALLOWED syscall.Errno = 431
483 ERROR_CANT_CLEAR_ENCRYPTION_FLAG syscall.Errno = 432
484 ERROR_NO_SUCH_DEVICE syscall.Errno = 433
485 ERROR_CAPAUTHZ_NOT_DEVUNLOCKED syscall.Errno = 450
486 ERROR_CAPAUTHZ_CHANGE_TYPE syscall.Errno = 451
487 ERROR_CAPAUTHZ_NOT_PROVISIONED syscall.Errno = 452
488 ERROR_CAPAUTHZ_NOT_AUTHORIZED syscall.Errno = 453
489 ERROR_CAPAUTHZ_NO_POLICY syscall.Errno = 454
490 ERROR_CAPAUTHZ_DB_CORRUPTED syscall.Errno = 455
491 ERROR_CAPAUTHZ_SCCD_INVALID_CATALOG syscall.Errno = 456
492 ERROR_CAPAUTHZ_SCCD_NO_AUTH_ENTITY syscall.Errno = 457
493 ERROR_CAPAUTHZ_SCCD_PARSE_ERROR syscall.Errno = 458
494 ERROR_CAPAUTHZ_SCCD_DEV_MODE_REQUIRED syscall.Errno = 459
495 ERROR_CAPAUTHZ_SCCD_NO_CAPABILITY_MATCH syscall.Errno = 460
496 ERROR_PNP_QUERY_REMOVE_DEVICE_TIMEOUT syscall.Errno = 480
497 ERROR_PNP_QUERY_REMOVE_RELATED_DEVICE_TIMEOUT syscall.Errno = 481
498 ERROR_PNP_QUERY_REMOVE_UNRELATED_DEVICE_TIMEOUT syscall.Errno = 482
499 ERROR_DEVICE_HARDWARE_ERROR syscall.Errno = 483
500 ERROR_INVALID_ADDRESS syscall.Errno = 487
501 ERROR_VRF_CFG_ENABLED syscall.Errno = 1183
502 ERROR_PARTITION_TERMINATING syscall.Errno = 1184
503 ERROR_USER_PROFILE_LOAD syscall.Errno = 500
504 ERROR_ARITHMETIC_OVERFLOW syscall.Errno = 534
505 ERROR_PIPE_CONNECTED syscall.Errno = 535
506 ERROR_PIPE_LISTENING syscall.Errno = 536
507 ERROR_VERIFIER_STOP syscall.Errno = 537
508 ERROR_ABIOS_ERROR syscall.Errno = 538
509 ERROR_WX86_WARNING syscall.Errno = 539
510 ERROR_WX86_ERROR syscall.Errno = 540
511 ERROR_TIMER_NOT_CANCELED syscall.Errno = 541
512 ERROR_UNWIND syscall.Errno = 542
513 ERROR_BAD_STACK syscall.Errno = 543
514 ERROR_INVALID_UNWIND_TARGET syscall.Errno = 544
515 ERROR_INVALID_PORT_ATTRIBUTES syscall.Errno = 545
516 ERROR_PORT_MESSAGE_TOO_LONG syscall.Errno = 546
517 ERROR_INVALID_QUOTA_LOWER syscall.Errno = 547
518 ERROR_DEVICE_ALREADY_ATTACHED syscall.Errno = 548
519 ERROR_INSTRUCTION_MISALIGNMENT syscall.Errno = 549
520 ERROR_PROFILING_NOT_STARTED syscall.Errno = 550
521 ERROR_PROFILING_NOT_STOPPED syscall.Errno = 551
522 ERROR_COULD_NOT_INTERPRET syscall.Errno = 552
523 ERROR_PROFILING_AT_LIMIT syscall.Errno = 553
524 ERROR_CANT_WAIT syscall.Errno = 554
525 ERROR_CANT_TERMINATE_SELF syscall.Errno = 555
526 ERROR_UNEXPECTED_MM_CREATE_ERR syscall.Errno = 556
527 ERROR_UNEXPECTED_MM_MAP_ERROR syscall.Errno = 557
528 ERROR_UNEXPECTED_MM_EXTEND_ERR syscall.Errno = 558
529 ERROR_BAD_FUNCTION_TABLE syscall.Errno = 559
530 ERROR_NO_GUID_TRANSLATION syscall.Errno = 560
531 ERROR_INVALID_LDT_SIZE syscall.Errno = 561
532 ERROR_INVALID_LDT_OFFSET syscall.Errno = 563
533 ERROR_INVALID_LDT_DESCRIPTOR syscall.Errno = 564
534 ERROR_TOO_MANY_THREADS syscall.Errno = 565
535 ERROR_THREAD_NOT_IN_PROCESS syscall.Errno = 566
536 ERROR_PAGEFILE_QUOTA_EXCEEDED syscall.Errno = 567
537 ERROR_LOGON_SERVER_CONFLICT syscall.Errno = 568
538 ERROR_SYNCHRONIZATION_REQUIRED syscall.Errno = 569
539 ERROR_NET_OPEN_FAILED syscall.Errno = 570
540 ERROR_IO_PRIVILEGE_FAILED syscall.Errno = 571
541 ERROR_CONTROL_C_EXIT syscall.Errno = 572
542 ERROR_MISSING_SYSTEMFILE syscall.Errno = 573
543 ERROR_UNHANDLED_EXCEPTION syscall.Errno = 574
544 ERROR_APP_INIT_FAILURE syscall.Errno = 575
545 ERROR_PAGEFILE_CREATE_FAILED syscall.Errno = 576
546 ERROR_INVALID_IMAGE_HASH syscall.Errno = 577
547 ERROR_NO_PAGEFILE syscall.Errno = 578
548 ERROR_ILLEGAL_FLOAT_CONTEXT syscall.Errno = 579
549 ERROR_NO_EVENT_PAIR syscall.Errno = 580
550 ERROR_DOMAIN_CTRLR_CONFIG_ERROR syscall.Errno = 581
551 ERROR_ILLEGAL_CHARACTER syscall.Errno = 582
552 ERROR_UNDEFINED_CHARACTER syscall.Errno = 583
553 ERROR_FLOPPY_VOLUME syscall.Errno = 584
554 ERROR_BIOS_FAILED_TO_CONNECT_INTERRUPT syscall.Errno = 585
555 ERROR_BACKUP_CONTROLLER syscall.Errno = 586
556 ERROR_MUTANT_LIMIT_EXCEEDED syscall.Errno = 587
557 ERROR_FS_DRIVER_REQUIRED syscall.Errno = 588
558 ERROR_CANNOT_LOAD_REGISTRY_FILE syscall.Errno = 589
559 ERROR_DEBUG_ATTACH_FAILED syscall.Errno = 590
560 ERROR_SYSTEM_PROCESS_TERMINATED syscall.Errno = 591
561 ERROR_DATA_NOT_ACCEPTED syscall.Errno = 592
562 ERROR_VDM_HARD_ERROR syscall.Errno = 593
563 ERROR_DRIVER_CANCEL_TIMEOUT syscall.Errno = 594
564 ERROR_REPLY_MESSAGE_MISMATCH syscall.Errno = 595
565 ERROR_LOST_WRITEBEHIND_DATA syscall.Errno = 596
566 ERROR_CLIENT_SERVER_PARAMETERS_INVALID syscall.Errno = 597
567 ERROR_NOT_TINY_STREAM syscall.Errno = 598
568 ERROR_STACK_OVERFLOW_READ syscall.Errno = 599
569 ERROR_CONVERT_TO_LARGE syscall.Errno = 600
570 ERROR_FOUND_OUT_OF_SCOPE syscall.Errno = 601
571 ERROR_ALLOCATE_BUCKET syscall.Errno = 602
572 ERROR_MARSHALL_OVERFLOW syscall.Errno = 603
573 ERROR_INVALID_VARIANT syscall.Errno = 604
574 ERROR_BAD_COMPRESSION_BUFFER syscall.Errno = 605
575 ERROR_AUDIT_FAILED syscall.Errno = 606
576 ERROR_TIMER_RESOLUTION_NOT_SET syscall.Errno = 607
577 ERROR_INSUFFICIENT_LOGON_INFO syscall.Errno = 608
578 ERROR_BAD_DLL_ENTRYPOINT syscall.Errno = 609
579 ERROR_BAD_SERVICE_ENTRYPOINT syscall.Errno = 610
580 ERROR_IP_ADDRESS_CONFLICT1 syscall.Errno = 611
581 ERROR_IP_ADDRESS_CONFLICT2 syscall.Errno = 612
582 ERROR_REGISTRY_QUOTA_LIMIT syscall.Errno = 613
583 ERROR_NO_CALLBACK_ACTIVE syscall.Errno = 614
584 ERROR_PWD_TOO_SHORT syscall.Errno = 615
585 ERROR_PWD_TOO_RECENT syscall.Errno = 616
586 ERROR_PWD_HISTORY_CONFLICT syscall.Errno = 617
587 ERROR_UNSUPPORTED_COMPRESSION syscall.Errno = 618
588 ERROR_INVALID_HW_PROFILE syscall.Errno = 619
589 ERROR_INVALID_PLUGPLAY_DEVICE_PATH syscall.Errno = 620
590 ERROR_QUOTA_LIST_INCONSISTENT syscall.Errno = 621
591 ERROR_EVALUATION_EXPIRATION syscall.Errno = 622
592 ERROR_ILLEGAL_DLL_RELOCATION syscall.Errno = 623
593 ERROR_DLL_INIT_FAILED_LOGOFF syscall.Errno = 624
594 ERROR_VALIDATE_CONTINUE syscall.Errno = 625
595 ERROR_NO_MORE_MATCHES syscall.Errno = 626
596 ERROR_RANGE_LIST_CONFLICT syscall.Errno = 627
597 ERROR_SERVER_SID_MISMATCH syscall.Errno = 628
598 ERROR_CANT_ENABLE_DENY_ONLY syscall.Errno = 629
599 ERROR_FLOAT_MULTIPLE_FAULTS syscall.Errno = 630
600 ERROR_FLOAT_MULTIPLE_TRAPS syscall.Errno = 631
601 ERROR_NOINTERFACE syscall.Errno = 632
602 ERROR_DRIVER_FAILED_SLEEP syscall.Errno = 633
603 ERROR_CORRUPT_SYSTEM_FILE syscall.Errno = 634
604 ERROR_COMMITMENT_MINIMUM syscall.Errno = 635
605 ERROR_PNP_RESTART_ENUMERATION syscall.Errno = 636
606 ERROR_SYSTEM_IMAGE_BAD_SIGNATURE syscall.Errno = 637
607 ERROR_PNP_REBOOT_REQUIRED syscall.Errno = 638
608 ERROR_INSUFFICIENT_POWER syscall.Errno = 639
609 ERROR_MULTIPLE_FAULT_VIOLATION syscall.Errno = 640
610 ERROR_SYSTEM_SHUTDOWN syscall.Errno = 641
611 ERROR_PORT_NOT_SET syscall.Errno = 642
612 ERROR_DS_VERSION_CHECK_FAILURE syscall.Errno = 643
613 ERROR_RANGE_NOT_FOUND syscall.Errno = 644
614 ERROR_NOT_SAFE_MODE_DRIVER syscall.Errno = 646
615 ERROR_FAILED_DRIVER_ENTRY syscall.Errno = 647
616 ERROR_DEVICE_ENUMERATION_ERROR syscall.Errno = 648
617 ERROR_MOUNT_POINT_NOT_RESOLVED syscall.Errno = 649
618 ERROR_INVALID_DEVICE_OBJECT_PARAMETER syscall.Errno = 650
619 ERROR_MCA_OCCURED syscall.Errno = 651
620 ERROR_DRIVER_DATABASE_ERROR syscall.Errno = 652
621 ERROR_SYSTEM_HIVE_TOO_LARGE syscall.Errno = 653
622 ERROR_DRIVER_FAILED_PRIOR_UNLOAD syscall.Errno = 654
623 ERROR_VOLSNAP_PREPARE_HIBERNATE syscall.Errno = 655
624 ERROR_HIBERNATION_FAILURE syscall.Errno = 656
625 ERROR_PWD_TOO_LONG syscall.Errno = 657
626 ERROR_FILE_SYSTEM_LIMITATION syscall.Errno = 665
627 ERROR_ASSERTION_FAILURE syscall.Errno = 668
628 ERROR_ACPI_ERROR syscall.Errno = 669
629 ERROR_WOW_ASSERTION syscall.Errno = 670
630 ERROR_PNP_BAD_MPS_TABLE syscall.Errno = 671
631 ERROR_PNP_TRANSLATION_FAILED syscall.Errno = 672
632 ERROR_PNP_IRQ_TRANSLATION_FAILED syscall.Errno = 673
633 ERROR_PNP_INVALID_ID syscall.Errno = 674
634 ERROR_WAKE_SYSTEM_DEBUGGER syscall.Errno = 675
635 ERROR_HANDLES_CLOSED syscall.Errno = 676
636 ERROR_EXTRANEOUS_INFORMATION syscall.Errno = 677
637 ERROR_RXACT_COMMIT_NECESSARY syscall.Errno = 678
638 ERROR_MEDIA_CHECK syscall.Errno = 679
639 ERROR_GUID_SUBSTITUTION_MADE syscall.Errno = 680
640 ERROR_STOPPED_ON_SYMLINK syscall.Errno = 681
641 ERROR_LONGJUMP syscall.Errno = 682
642 ERROR_PLUGPLAY_QUERY_VETOED syscall.Errno = 683
643 ERROR_UNWIND_CONSOLIDATE syscall.Errno = 684
644 ERROR_REGISTRY_HIVE_RECOVERED syscall.Errno = 685
645 ERROR_DLL_MIGHT_BE_INSECURE syscall.Errno = 686
646 ERROR_DLL_MIGHT_BE_INCOMPATIBLE syscall.Errno = 687
647 ERROR_DBG_EXCEPTION_NOT_HANDLED syscall.Errno = 688
648 ERROR_DBG_REPLY_LATER syscall.Errno = 689
649 ERROR_DBG_UNABLE_TO_PROVIDE_HANDLE syscall.Errno = 690
650 ERROR_DBG_TERMINATE_THREAD syscall.Errno = 691
651 ERROR_DBG_TERMINATE_PROCESS syscall.Errno = 692
652 ERROR_DBG_CONTROL_C syscall.Errno = 693
653 ERROR_DBG_PRINTEXCEPTION_C syscall.Errno = 694
654 ERROR_DBG_RIPEXCEPTION syscall.Errno = 695
655 ERROR_DBG_CONTROL_BREAK syscall.Errno = 696
656 ERROR_DBG_COMMAND_EXCEPTION syscall.Errno = 697
657 ERROR_OBJECT_NAME_EXISTS syscall.Errno = 698
658 ERROR_THREAD_WAS_SUSPENDED syscall.Errno = 699
659 ERROR_IMAGE_NOT_AT_BASE syscall.Errno = 700
660 ERROR_RXACT_STATE_CREATED syscall.Errno = 701
661 ERROR_SEGMENT_NOTIFICATION syscall.Errno = 702
662 ERROR_BAD_CURRENT_DIRECTORY syscall.Errno = 703
663 ERROR_FT_READ_RECOVERY_FROM_BACKUP syscall.Errno = 704
664 ERROR_FT_WRITE_RECOVERY syscall.Errno = 705
665 ERROR_IMAGE_MACHINE_TYPE_MISMATCH syscall.Errno = 706
666 ERROR_RECEIVE_PARTIAL syscall.Errno = 707
667 ERROR_RECEIVE_EXPEDITED syscall.Errno = 708
668 ERROR_RECEIVE_PARTIAL_EXPEDITED syscall.Errno = 709
669 ERROR_EVENT_DONE syscall.Errno = 710
670 ERROR_EVENT_PENDING syscall.Errno = 711
671 ERROR_CHECKING_FILE_SYSTEM syscall.Errno = 712
672 ERROR_FATAL_APP_EXIT syscall.Errno = 713
673 ERROR_PREDEFINED_HANDLE syscall.Errno = 714
674 ERROR_WAS_UNLOCKED syscall.Errno = 715
675 ERROR_SERVICE_NOTIFICATION syscall.Errno = 716
676 ERROR_WAS_LOCKED syscall.Errno = 717
677 ERROR_LOG_HARD_ERROR syscall.Errno = 718
678 ERROR_ALREADY_WIN32 syscall.Errno = 719
679 ERROR_IMAGE_MACHINE_TYPE_MISMATCH_EXE syscall.Errno = 720
680 ERROR_NO_YIELD_PERFORMED syscall.Errno = 721
681 ERROR_TIMER_RESUME_IGNORED syscall.Errno = 722
682 ERROR_ARBITRATION_UNHANDLED syscall.Errno = 723
683 ERROR_CARDBUS_NOT_SUPPORTED syscall.Errno = 724
684 ERROR_MP_PROCESSOR_MISMATCH syscall.Errno = 725
685 ERROR_HIBERNATED syscall.Errno = 726
686 ERROR_RESUME_HIBERNATION syscall.Errno = 727
687 ERROR_FIRMWARE_UPDATED syscall.Errno = 728
688 ERROR_DRIVERS_LEAKING_LOCKED_PAGES syscall.Errno = 729
689 ERROR_WAKE_SYSTEM syscall.Errno = 730
690 ERROR_WAIT_1 syscall.Errno = 731
691 ERROR_WAIT_2 syscall.Errno = 732
692 ERROR_WAIT_3 syscall.Errno = 733
693 ERROR_WAIT_63 syscall.Errno = 734
694 ERROR_ABANDONED_WAIT_0 syscall.Errno = 735
695 ERROR_ABANDONED_WAIT_63 syscall.Errno = 736
696 ERROR_USER_APC syscall.Errno = 737
697 ERROR_KERNEL_APC syscall.Errno = 738
698 ERROR_ALERTED syscall.Errno = 739
699 ERROR_ELEVATION_REQUIRED syscall.Errno = 740
700 ERROR_REPARSE syscall.Errno = 741
701 ERROR_OPLOCK_BREAK_IN_PROGRESS syscall.Errno = 742
702 ERROR_VOLUME_MOUNTED syscall.Errno = 743
703 ERROR_RXACT_COMMITTED syscall.Errno = 744
704 ERROR_NOTIFY_CLEANUP syscall.Errno = 745
705 ERROR_PRIMARY_TRANSPORT_CONNECT_FAILED syscall.Errno = 746
706 ERROR_PAGE_FAULT_TRANSITION syscall.Errno = 747
707 ERROR_PAGE_FAULT_DEMAND_ZERO syscall.Errno = 748
708 ERROR_PAGE_FAULT_COPY_ON_WRITE syscall.Errno = 749
709 ERROR_PAGE_FAULT_GUARD_PAGE syscall.Errno = 750
710 ERROR_PAGE_FAULT_PAGING_FILE syscall.Errno = 751
711 ERROR_CACHE_PAGE_LOCKED syscall.Errno = 752
712 ERROR_CRASH_DUMP syscall.Errno = 753
713 ERROR_BUFFER_ALL_ZEROS syscall.Errno = 754
714 ERROR_REPARSE_OBJECT syscall.Errno = 755
715 ERROR_RESOURCE_REQUIREMENTS_CHANGED syscall.Errno = 756
716 ERROR_TRANSLATION_COMPLETE syscall.Errno = 757
717 ERROR_NOTHING_TO_TERMINATE syscall.Errno = 758
718 ERROR_PROCESS_NOT_IN_JOB syscall.Errno = 759
719 ERROR_PROCESS_IN_JOB syscall.Errno = 760
720 ERROR_VOLSNAP_HIBERNATE_READY syscall.Errno = 761
721 ERROR_FSFILTER_OP_COMPLETED_SUCCESSFULLY syscall.Errno = 762
722 ERROR_INTERRUPT_VECTOR_ALREADY_CONNECTED syscall.Errno = 763
723 ERROR_INTERRUPT_STILL_CONNECTED syscall.Errno = 764
724 ERROR_WAIT_FOR_OPLOCK syscall.Errno = 765
725 ERROR_DBG_EXCEPTION_HANDLED syscall.Errno = 766
726 ERROR_DBG_CONTINUE syscall.Errno = 767
727 ERROR_CALLBACK_POP_STACK syscall.Errno = 768
728 ERROR_COMPRESSION_DISABLED syscall.Errno = 769
729 ERROR_CANTFETCHBACKWARDS syscall.Errno = 770
730 ERROR_CANTSCROLLBACKWARDS syscall.Errno = 771
731 ERROR_ROWSNOTRELEASED syscall.Errno = 772
732 ERROR_BAD_ACCESSOR_FLAGS syscall.Errno = 773
733 ERROR_ERRORS_ENCOUNTERED syscall.Errno = 774
734 ERROR_NOT_CAPABLE syscall.Errno = 775
735 ERROR_REQUEST_OUT_OF_SEQUENCE syscall.Errno = 776
736 ERROR_VERSION_PARSE_ERROR syscall.Errno = 777
737 ERROR_BADSTARTPOSITION syscall.Errno = 778
738 ERROR_MEMORY_HARDWARE syscall.Errno = 779
739 ERROR_DISK_REPAIR_DISABLED syscall.Errno = 780
740 ERROR_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE syscall.Errno = 781
741 ERROR_SYSTEM_POWERSTATE_TRANSITION syscall.Errno = 782
742 ERROR_SYSTEM_POWERSTATE_COMPLEX_TRANSITION syscall.Errno = 783
743 ERROR_MCA_EXCEPTION syscall.Errno = 784
744 ERROR_ACCESS_AUDIT_BY_POLICY syscall.Errno = 785
745 ERROR_ACCESS_DISABLED_NO_SAFER_UI_BY_POLICY syscall.Errno = 786
746 ERROR_ABANDON_HIBERFILE syscall.Errno = 787
747 ERROR_LOST_WRITEBEHIND_DATA_NETWORK_DISCONNECTED syscall.Errno = 788
748 ERROR_LOST_WRITEBEHIND_DATA_NETWORK_SERVER_ERROR syscall.Errno = 789
749 ERROR_LOST_WRITEBEHIND_DATA_LOCAL_DISK_ERROR syscall.Errno = 790
750 ERROR_BAD_MCFG_TABLE syscall.Errno = 791
751 ERROR_DISK_REPAIR_REDIRECTED syscall.Errno = 792
752 ERROR_DISK_REPAIR_UNSUCCESSFUL syscall.Errno = 793
753 ERROR_CORRUPT_LOG_OVERFULL syscall.Errno = 794
754 ERROR_CORRUPT_LOG_CORRUPTED syscall.Errno = 795
755 ERROR_CORRUPT_LOG_UNAVAILABLE syscall.Errno = 796
756 ERROR_CORRUPT_LOG_DELETED_FULL syscall.Errno = 797
757 ERROR_CORRUPT_LOG_CLEARED syscall.Errno = 798
758 ERROR_ORPHAN_NAME_EXHAUSTED syscall.Errno = 799
759 ERROR_OPLOCK_SWITCHED_TO_NEW_HANDLE syscall.Errno = 800
760 ERROR_CANNOT_GRANT_REQUESTED_OPLOCK syscall.Errno = 801
761 ERROR_CANNOT_BREAK_OPLOCK syscall.Errno = 802
762 ERROR_OPLOCK_HANDLE_CLOSED syscall.Errno = 803
763 ERROR_NO_ACE_CONDITION syscall.Errno = 804
764 ERROR_INVALID_ACE_CONDITION syscall.Errno = 805
765 ERROR_FILE_HANDLE_REVOKED syscall.Errno = 806
766 ERROR_IMAGE_AT_DIFFERENT_BASE syscall.Errno = 807
767 ERROR_ENCRYPTED_IO_NOT_POSSIBLE syscall.Errno = 808
768 ERROR_FILE_METADATA_OPTIMIZATION_IN_PROGRESS syscall.Errno = 809
769 ERROR_QUOTA_ACTIVITY syscall.Errno = 810
770 ERROR_HANDLE_REVOKED syscall.Errno = 811
771 ERROR_CALLBACK_INVOKE_INLINE syscall.Errno = 812
772 ERROR_CPU_SET_INVALID syscall.Errno = 813
773 ERROR_ENCLAVE_NOT_TERMINATED syscall.Errno = 814
774 ERROR_ENCLAVE_VIOLATION syscall.Errno = 815
775 ERROR_EA_ACCESS_DENIED syscall.Errno = 994
776 ERROR_OPERATION_ABORTED syscall.Errno = 995
777 ERROR_IO_INCOMPLETE syscall.Errno = 996
778 ERROR_IO_PENDING syscall.Errno = 997
779 ERROR_NOACCESS syscall.Errno = 998
780 ERROR_SWAPERROR syscall.Errno = 999
781 ERROR_STACK_OVERFLOW syscall.Errno = 1001
782 ERROR_INVALID_MESSAGE syscall.Errno = 1002
783 ERROR_CAN_NOT_COMPLETE syscall.Errno = 1003
784 ERROR_INVALID_FLAGS syscall.Errno = 1004
785 ERROR_UNRECOGNIZED_VOLUME syscall.Errno = 1005
786 ERROR_FILE_INVALID syscall.Errno = 1006
787 ERROR_FULLSCREEN_MODE syscall.Errno = 1007
788 ERROR_NO_TOKEN syscall.Errno = 1008
789 ERROR_BADDB syscall.Errno = 1009
790 ERROR_BADKEY syscall.Errno = 1010
791 ERROR_CANTOPEN syscall.Errno = 1011
792 ERROR_CANTREAD syscall.Errno = 1012
793 ERROR_CANTWRITE syscall.Errno = 1013
794 ERROR_REGISTRY_RECOVERED syscall.Errno = 1014
795 ERROR_REGISTRY_CORRUPT syscall.Errno = 1015
796 ERROR_REGISTRY_IO_FAILED syscall.Errno = 1016
797 ERROR_NOT_REGISTRY_FILE syscall.Errno = 1017
798 ERROR_KEY_DELETED syscall.Errno = 1018
799 ERROR_NO_LOG_SPACE syscall.Errno = 1019
800 ERROR_KEY_HAS_CHILDREN syscall.Errno = 1020
801 ERROR_CHILD_MUST_BE_VOLATILE syscall.Errno = 1021
802 ERROR_NOTIFY_ENUM_DIR syscall.Errno = 1022
803 ERROR_DEPENDENT_SERVICES_RUNNING syscall.Errno = 1051
804 ERROR_INVALID_SERVICE_CONTROL syscall.Errno = 1052
805 ERROR_SERVICE_REQUEST_TIMEOUT syscall.Errno = 1053
806 ERROR_SERVICE_NO_THREAD syscall.Errno = 1054
807 ERROR_SERVICE_DATABASE_LOCKED syscall.Errno = 1055
808 ERROR_SERVICE_ALREADY_RUNNING syscall.Errno = 1056
809 ERROR_INVALID_SERVICE_ACCOUNT syscall.Errno = 1057
810 ERROR_SERVICE_DISABLED syscall.Errno = 1058
811 ERROR_CIRCULAR_DEPENDENCY syscall.Errno = 1059
812 ERROR_SERVICE_DOES_NOT_EXIST syscall.Errno = 1060
813 ERROR_SERVICE_CANNOT_ACCEPT_CTRL syscall.Errno = 1061
814 ERROR_SERVICE_NOT_ACTIVE syscall.Errno = 1062
815 ERROR_FAILED_SERVICE_CONTROLLER_CONNECT syscall.Errno = 1063
816 ERROR_EXCEPTION_IN_SERVICE syscall.Errno = 1064
817 ERROR_DATABASE_DOES_NOT_EXIST syscall.Errno = 1065
818 ERROR_SERVICE_SPECIFIC_ERROR syscall.Errno = 1066
819 ERROR_PROCESS_ABORTED syscall.Errno = 1067
820 ERROR_SERVICE_DEPENDENCY_FAIL syscall.Errno = 1068
821 ERROR_SERVICE_LOGON_FAILED syscall.Errno = 1069
822 ERROR_SERVICE_START_HANG syscall.Errno = 1070
823 ERROR_INVALID_SERVICE_LOCK syscall.Errno = 1071
824 ERROR_SERVICE_MARKED_FOR_DELETE syscall.Errno = 1072
825 ERROR_SERVICE_EXISTS syscall.Errno = 1073
826 ERROR_ALREADY_RUNNING_LKG syscall.Errno = 1074
827 ERROR_SERVICE_DEPENDENCY_DELETED syscall.Errno = 1075
828 ERROR_BOOT_ALREADY_ACCEPTED syscall.Errno = 1076
829 ERROR_SERVICE_NEVER_STARTED syscall.Errno = 1077
830 ERROR_DUPLICATE_SERVICE_NAME syscall.Errno = 1078
831 ERROR_DIFFERENT_SERVICE_ACCOUNT syscall.Errno = 1079
832 ERROR_CANNOT_DETECT_DRIVER_FAILURE syscall.Errno = 1080
833 ERROR_CANNOT_DETECT_PROCESS_ABORT syscall.Errno = 1081
834 ERROR_NO_RECOVERY_PROGRAM syscall.Errno = 1082
835 ERROR_SERVICE_NOT_IN_EXE syscall.Errno = 1083
836 ERROR_NOT_SAFEBOOT_SERVICE syscall.Errno = 1084
837 ERROR_END_OF_MEDIA syscall.Errno = 1100
838 ERROR_FILEMARK_DETECTED syscall.Errno = 1101
839 ERROR_BEGINNING_OF_MEDIA syscall.Errno = 1102
840 ERROR_SETMARK_DETECTED syscall.Errno = 1103
841 ERROR_NO_DATA_DETECTED syscall.Errno = 1104
842 ERROR_PARTITION_FAILURE syscall.Errno = 1105
843 ERROR_INVALID_BLOCK_LENGTH syscall.Errno = 1106
844 ERROR_DEVICE_NOT_PARTITIONED syscall.Errno = 1107
845 ERROR_UNABLE_TO_LOCK_MEDIA syscall.Errno = 1108
846 ERROR_UNABLE_TO_UNLOAD_MEDIA syscall.Errno = 1109
847 ERROR_MEDIA_CHANGED syscall.Errno = 1110
848 ERROR_BUS_RESET syscall.Errno = 1111
849 ERROR_NO_MEDIA_IN_DRIVE syscall.Errno = 1112
850 ERROR_NO_UNICODE_TRANSLATION syscall.Errno = 1113
851 ERROR_DLL_INIT_FAILED syscall.Errno = 1114
852 ERROR_SHUTDOWN_IN_PROGRESS syscall.Errno = 1115
853 ERROR_NO_SHUTDOWN_IN_PROGRESS syscall.Errno = 1116
854 ERROR_IO_DEVICE syscall.Errno = 1117
855 ERROR_SERIAL_NO_DEVICE syscall.Errno = 1118
856 ERROR_IRQ_BUSY syscall.Errno = 1119
857 ERROR_MORE_WRITES syscall.Errno = 1120
858 ERROR_COUNTER_TIMEOUT syscall.Errno = 1121
859 ERROR_FLOPPY_ID_MARK_NOT_FOUND syscall.Errno = 1122
860 ERROR_FLOPPY_WRONG_CYLINDER syscall.Errno = 1123
861 ERROR_FLOPPY_UNKNOWN_ERROR syscall.Errno = 1124
862 ERROR_FLOPPY_BAD_REGISTERS syscall.Errno = 1125
863 ERROR_DISK_RECALIBRATE_FAILED syscall.Errno = 1126
864 ERROR_DISK_OPERATION_FAILED syscall.Errno = 1127
865 ERROR_DISK_RESET_FAILED syscall.Errno = 1128
866 ERROR_EOM_OVERFLOW syscall.Errno = 1129
867 ERROR_NOT_ENOUGH_SERVER_MEMORY syscall.Errno = 1130
868 ERROR_POSSIBLE_DEADLOCK syscall.Errno = 1131
869 ERROR_MAPPED_ALIGNMENT syscall.Errno = 1132
870 ERROR_SET_POWER_STATE_VETOED syscall.Errno = 1140
871 ERROR_SET_POWER_STATE_FAILED syscall.Errno = 1141
872 ERROR_TOO_MANY_LINKS syscall.Errno = 1142
873 ERROR_OLD_WIN_VERSION syscall.Errno = 1150
874 ERROR_APP_WRONG_OS syscall.Errno = 1151
875 ERROR_SINGLE_INSTANCE_APP syscall.Errno = 1152
876 ERROR_RMODE_APP syscall.Errno = 1153
877 ERROR_INVALID_DLL syscall.Errno = 1154
878 ERROR_NO_ASSOCIATION syscall.Errno = 1155
879 ERROR_DDE_FAIL syscall.Errno = 1156
880 ERROR_DLL_NOT_FOUND syscall.Errno = 1157
881 ERROR_NO_MORE_USER_HANDLES syscall.Errno = 1158
882 ERROR_MESSAGE_SYNC_ONLY syscall.Errno = 1159
883 ERROR_SOURCE_ELEMENT_EMPTY syscall.Errno = 1160
884 ERROR_DESTINATION_ELEMENT_FULL syscall.Errno = 1161
885 ERROR_ILLEGAL_ELEMENT_ADDRESS syscall.Errno = 1162
886 ERROR_MAGAZINE_NOT_PRESENT syscall.Errno = 1163
887 ERROR_DEVICE_REINITIALIZATION_NEEDED syscall.Errno = 1164
888 ERROR_DEVICE_REQUIRES_CLEANING syscall.Errno = 1165
889 ERROR_DEVICE_DOOR_OPEN syscall.Errno = 1166
890 ERROR_DEVICE_NOT_CONNECTED syscall.Errno = 1167
891 ERROR_NOT_FOUND syscall.Errno = 1168
892 ERROR_NO_MATCH syscall.Errno = 1169
893 ERROR_SET_NOT_FOUND syscall.Errno = 1170
894 ERROR_POINT_NOT_FOUND syscall.Errno = 1171
895 ERROR_NO_TRACKING_SERVICE syscall.Errno = 1172
896 ERROR_NO_VOLUME_ID syscall.Errno = 1173
897 ERROR_UNABLE_TO_REMOVE_REPLACED syscall.Errno = 1175
898 ERROR_UNABLE_TO_MOVE_REPLACEMENT syscall.Errno = 1176
899 ERROR_UNABLE_TO_MOVE_REPLACEMENT_2 syscall.Errno = 1177
900 ERROR_JOURNAL_DELETE_IN_PROGRESS syscall.Errno = 1178
901 ERROR_JOURNAL_NOT_ACTIVE syscall.Errno = 1179
902 ERROR_POTENTIAL_FILE_FOUND syscall.Errno = 1180
903 ERROR_JOURNAL_ENTRY_DELETED syscall.Errno = 1181
904 ERROR_SHUTDOWN_IS_SCHEDULED syscall.Errno = 1190
905 ERROR_SHUTDOWN_USERS_LOGGED_ON syscall.Errno = 1191
906 ERROR_BAD_DEVICE syscall.Errno = 1200
907 ERROR_CONNECTION_UNAVAIL syscall.Errno = 1201
908 ERROR_DEVICE_ALREADY_REMEMBERED syscall.Errno = 1202
909 ERROR_NO_NET_OR_BAD_PATH syscall.Errno = 1203
910 ERROR_BAD_PROVIDER syscall.Errno = 1204
911 ERROR_CANNOT_OPEN_PROFILE syscall.Errno = 1205
912 ERROR_BAD_PROFILE syscall.Errno = 1206
913 ERROR_NOT_CONTAINER syscall.Errno = 1207
914 ERROR_EXTENDED_ERROR syscall.Errno = 1208
915 ERROR_INVALID_GROUPNAME syscall.Errno = 1209
916 ERROR_INVALID_COMPUTERNAME syscall.Errno = 1210
917 ERROR_INVALID_EVENTNAME syscall.Errno = 1211
918 ERROR_INVALID_DOMAINNAME syscall.Errno = 1212
919 ERROR_INVALID_SERVICENAME syscall.Errno = 1213
920 ERROR_INVALID_NETNAME syscall.Errno = 1214
921 ERROR_INVALID_SHARENAME syscall.Errno = 1215
922 ERROR_INVALID_PASSWORDNAME syscall.Errno = 1216
923 ERROR_INVALID_MESSAGENAME syscall.Errno = 1217
924 ERROR_INVALID_MESSAGEDEST syscall.Errno = 1218
925 ERROR_SESSION_CREDENTIAL_CONFLICT syscall.Errno = 1219
926 ERROR_REMOTE_SESSION_LIMIT_EXCEEDED syscall.Errno = 1220
927 ERROR_DUP_DOMAINNAME syscall.Errno = 1221
928 ERROR_NO_NETWORK syscall.Errno = 1222
929 ERROR_CANCELLED syscall.Errno = 1223
930 ERROR_USER_MAPPED_FILE syscall.Errno = 1224
931 ERROR_CONNECTION_REFUSED syscall.Errno = 1225
932 ERROR_GRACEFUL_DISCONNECT syscall.Errno = 1226
933 ERROR_ADDRESS_ALREADY_ASSOCIATED syscall.Errno = 1227
934 ERROR_ADDRESS_NOT_ASSOCIATED syscall.Errno = 1228
935 ERROR_CONNECTION_INVALID syscall.Errno = 1229
936 ERROR_CONNECTION_ACTIVE syscall.Errno = 1230
937 ERROR_NETWORK_UNREACHABLE syscall.Errno = 1231
938 ERROR_HOST_UNREACHABLE syscall.Errno = 1232
939 ERROR_PROTOCOL_UNREACHABLE syscall.Errno = 1233
940 ERROR_PORT_UNREACHABLE syscall.Errno = 1234
941 ERROR_REQUEST_ABORTED syscall.Errno = 1235
942 ERROR_CONNECTION_ABORTED syscall.Errno = 1236
943 ERROR_RETRY syscall.Errno = 1237
944 ERROR_CONNECTION_COUNT_LIMIT syscall.Errno = 1238
945 ERROR_LOGIN_TIME_RESTRICTION syscall.Errno = 1239
946 ERROR_LOGIN_WKSTA_RESTRICTION syscall.Errno = 1240
947 ERROR_INCORRECT_ADDRESS syscall.Errno = 1241
948 ERROR_ALREADY_REGISTERED syscall.Errno = 1242
949 ERROR_SERVICE_NOT_FOUND syscall.Errno = 1243
950 ERROR_NOT_AUTHENTICATED syscall.Errno = 1244
951 ERROR_NOT_LOGGED_ON syscall.Errno = 1245
952 ERROR_CONTINUE syscall.Errno = 1246
953 ERROR_ALREADY_INITIALIZED syscall.Errno = 1247
954 ERROR_NO_MORE_DEVICES syscall.Errno = 1248
955 ERROR_NO_SUCH_SITE syscall.Errno = 1249
956 ERROR_DOMAIN_CONTROLLER_EXISTS syscall.Errno = 1250
957 ERROR_ONLY_IF_CONNECTED syscall.Errno = 1251
958 ERROR_OVERRIDE_NOCHANGES syscall.Errno = 1252
959 ERROR_BAD_USER_PROFILE syscall.Errno = 1253
960 ERROR_NOT_SUPPORTED_ON_SBS syscall.Errno = 1254
961 ERROR_SERVER_SHUTDOWN_IN_PROGRESS syscall.Errno = 1255
962 ERROR_HOST_DOWN syscall.Errno = 1256
963 ERROR_NON_ACCOUNT_SID syscall.Errno = 1257
964 ERROR_NON_DOMAIN_SID syscall.Errno = 1258
965 ERROR_APPHELP_BLOCK syscall.Errno = 1259
966 ERROR_ACCESS_DISABLED_BY_POLICY syscall.Errno = 1260
967 ERROR_REG_NAT_CONSUMPTION syscall.Errno = 1261
968 ERROR_CSCSHARE_OFFLINE syscall.Errno = 1262
969 ERROR_PKINIT_FAILURE syscall.Errno = 1263
970 ERROR_SMARTCARD_SUBSYSTEM_FAILURE syscall.Errno = 1264
971 ERROR_DOWNGRADE_DETECTED syscall.Errno = 1265
972 ERROR_MACHINE_LOCKED syscall.Errno = 1271
973 ERROR_SMB_GUEST_LOGON_BLOCKED syscall.Errno = 1272
974 ERROR_CALLBACK_SUPPLIED_INVALID_DATA syscall.Errno = 1273
975 ERROR_SYNC_FOREGROUND_REFRESH_REQUIRED syscall.Errno = 1274
976 ERROR_DRIVER_BLOCKED syscall.Errno = 1275
977 ERROR_INVALID_IMPORT_OF_NON_DLL syscall.Errno = 1276
978 ERROR_ACCESS_DISABLED_WEBBLADE syscall.Errno = 1277
979 ERROR_ACCESS_DISABLED_WEBBLADE_TAMPER syscall.Errno = 1278
980 ERROR_RECOVERY_FAILURE syscall.Errno = 1279
981 ERROR_ALREADY_FIBER syscall.Errno = 1280
982 ERROR_ALREADY_THREAD syscall.Errno = 1281
983 ERROR_STACK_BUFFER_OVERRUN syscall.Errno = 1282
984 ERROR_PARAMETER_QUOTA_EXCEEDED syscall.Errno = 1283
985 ERROR_DEBUGGER_INACTIVE syscall.Errno = 1284
986 ERROR_DELAY_LOAD_FAILED syscall.Errno = 1285
987 ERROR_VDM_DISALLOWED syscall.Errno = 1286
988 ERROR_UNIDENTIFIED_ERROR syscall.Errno = 1287
989 ERROR_INVALID_CRUNTIME_PARAMETER syscall.Errno = 1288
990 ERROR_BEYOND_VDL syscall.Errno = 1289
991 ERROR_INCOMPATIBLE_SERVICE_SID_TYPE syscall.Errno = 1290
992 ERROR_DRIVER_PROCESS_TERMINATED syscall.Errno = 1291
993 ERROR_IMPLEMENTATION_LIMIT syscall.Errno = 1292
994 ERROR_PROCESS_IS_PROTECTED syscall.Errno = 1293
995 ERROR_SERVICE_NOTIFY_CLIENT_LAGGING syscall.Errno = 1294
996 ERROR_DISK_QUOTA_EXCEEDED syscall.Errno = 1295
997 ERROR_CONTENT_BLOCKED syscall.Errno = 1296
998 ERROR_INCOMPATIBLE_SERVICE_PRIVILEGE syscall.Errno = 1297
999 ERROR_APP_HANG syscall.Errno = 1298
1000 ERROR_INVALID_LABEL syscall.Errno = 1299
1001 ERROR_NOT_ALL_ASSIGNED syscall.Errno = 1300
1002 ERROR_SOME_NOT_MAPPED syscall.Errno = 1301
1003 ERROR_NO_QUOTAS_FOR_ACCOUNT syscall.Errno = 1302
1004 ERROR_LOCAL_USER_SESSION_KEY syscall.Errno = 1303
1005 ERROR_NULL_LM_PASSWORD syscall.Errno = 1304
1006 ERROR_UNKNOWN_REVISION syscall.Errno = 1305
1007 ERROR_REVISION_MISMATCH syscall.Errno = 1306
1008 ERROR_INVALID_OWNER syscall.Errno = 1307
1009 ERROR_INVALID_PRIMARY_GROUP syscall.Errno = 1308
1010 ERROR_NO_IMPERSONATION_TOKEN syscall.Errno = 1309
1011 ERROR_CANT_DISABLE_MANDATORY syscall.Errno = 1310
1012 ERROR_NO_LOGON_SERVERS syscall.Errno = 1311
1013 ERROR_NO_SUCH_LOGON_SESSION syscall.Errno = 1312
1014 ERROR_NO_SUCH_PRIVILEGE syscall.Errno = 1313
1015 ERROR_PRIVILEGE_NOT_HELD syscall.Errno = 1314
1016 ERROR_INVALID_ACCOUNT_NAME syscall.Errno = 1315
1017 ERROR_USER_EXISTS syscall.Errno = 1316
1018 ERROR_NO_SUCH_USER syscall.Errno = 1317
1019 ERROR_GROUP_EXISTS syscall.Errno = 1318
1020 ERROR_NO_SUCH_GROUP syscall.Errno = 1319
1021 ERROR_MEMBER_IN_GROUP syscall.Errno = 1320
1022 ERROR_MEMBER_NOT_IN_GROUP syscall.Errno = 1321
1023 ERROR_LAST_ADMIN syscall.Errno = 1322
1024 ERROR_WRONG_PASSWORD syscall.Errno = 1323
1025 ERROR_ILL_FORMED_PASSWORD syscall.Errno = 1324
1026 ERROR_PASSWORD_RESTRICTION syscall.Errno = 1325
1027 ERROR_LOGON_FAILURE syscall.Errno = 1326
1028 ERROR_ACCOUNT_RESTRICTION syscall.Errno = 1327
1029 ERROR_INVALID_LOGON_HOURS syscall.Errno = 1328
1030 ERROR_INVALID_WORKSTATION syscall.Errno = 1329
1031 ERROR_PASSWORD_EXPIRED syscall.Errno = 1330
1032 ERROR_ACCOUNT_DISABLED syscall.Errno = 1331
1033 ERROR_NONE_MAPPED syscall.Errno = 1332
1034 ERROR_TOO_MANY_LUIDS_REQUESTED syscall.Errno = 1333
1035 ERROR_LUIDS_EXHAUSTED syscall.Errno = 1334
1036 ERROR_INVALID_SUB_AUTHORITY syscall.Errno = 1335
1037 ERROR_INVALID_ACL syscall.Errno = 1336
1038 ERROR_INVALID_SID syscall.Errno = 1337
1039 ERROR_INVALID_SECURITY_DESCR syscall.Errno = 1338
1040 ERROR_BAD_INHERITANCE_ACL syscall.Errno = 1340
1041 ERROR_SERVER_DISABLED syscall.Errno = 1341
1042 ERROR_SERVER_NOT_DISABLED syscall.Errno = 1342
1043 ERROR_INVALID_ID_AUTHORITY syscall.Errno = 1343
1044 ERROR_ALLOTTED_SPACE_EXCEEDED syscall.Errno = 1344
1045 ERROR_INVALID_GROUP_ATTRIBUTES syscall.Errno = 1345
1046 ERROR_BAD_IMPERSONATION_LEVEL syscall.Errno = 1346
1047 ERROR_CANT_OPEN_ANONYMOUS syscall.Errno = 1347
1048 ERROR_BAD_VALIDATION_CLASS syscall.Errno = 1348
1049 ERROR_BAD_TOKEN_TYPE syscall.Errno = 1349
1050 ERROR_NO_SECURITY_ON_OBJECT syscall.Errno = 1350
1051 ERROR_CANT_ACCESS_DOMAIN_INFO syscall.Errno = 1351
1052 ERROR_INVALID_SERVER_STATE syscall.Errno = 1352
1053 ERROR_INVALID_DOMAIN_STATE syscall.Errno = 1353
1054 ERROR_INVALID_DOMAIN_ROLE syscall.Errno = 1354
1055 ERROR_NO_SUCH_DOMAIN syscall.Errno = 1355
1056 ERROR_DOMAIN_EXISTS syscall.Errno = 1356
1057 ERROR_DOMAIN_LIMIT_EXCEEDED syscall.Errno = 1357
1058 ERROR_INTERNAL_DB_CORRUPTION syscall.Errno = 1358
1059 ERROR_INTERNAL_ERROR syscall.Errno = 1359
1060 ERROR_GENERIC_NOT_MAPPED syscall.Errno = 1360
1061 ERROR_BAD_DESCRIPTOR_FORMAT syscall.Errno = 1361
1062 ERROR_NOT_LOGON_PROCESS syscall.Errno = 1362
1063 ERROR_LOGON_SESSION_EXISTS syscall.Errno = 1363
1064 ERROR_NO_SUCH_PACKAGE syscall.Errno = 1364
1065 ERROR_BAD_LOGON_SESSION_STATE syscall.Errno = 1365
1066 ERROR_LOGON_SESSION_COLLISION syscall.Errno = 1366
1067 ERROR_INVALID_LOGON_TYPE syscall.Errno = 1367
1068 ERROR_CANNOT_IMPERSONATE syscall.Errno = 1368
1069 ERROR_RXACT_INVALID_STATE syscall.Errno = 1369
1070 ERROR_RXACT_COMMIT_FAILURE syscall.Errno = 1370
1071 ERROR_SPECIAL_ACCOUNT syscall.Errno = 1371
1072 ERROR_SPECIAL_GROUP syscall.Errno = 1372
1073 ERROR_SPECIAL_USER syscall.Errno = 1373
1074 ERROR_MEMBERS_PRIMARY_GROUP syscall.Errno = 1374
1075 ERROR_TOKEN_ALREADY_IN_USE syscall.Errno = 1375
1076 ERROR_NO_SUCH_ALIAS syscall.Errno = 1376
1077 ERROR_MEMBER_NOT_IN_ALIAS syscall.Errno = 1377
1078 ERROR_MEMBER_IN_ALIAS syscall.Errno = 1378
1079 ERROR_ALIAS_EXISTS syscall.Errno = 1379
1080 ERROR_LOGON_NOT_GRANTED syscall.Errno = 1380
1081 ERROR_TOO_MANY_SECRETS syscall.Errno = 1381
1082 ERROR_SECRET_TOO_LONG syscall.Errno = 1382
1083 ERROR_INTERNAL_DB_ERROR syscall.Errno = 1383
1084 ERROR_TOO_MANY_CONTEXT_IDS syscall.Errno = 1384
1085 ERROR_LOGON_TYPE_NOT_GRANTED syscall.Errno = 1385
1086 ERROR_NT_CROSS_ENCRYPTION_REQUIRED syscall.Errno = 1386
1087 ERROR_NO_SUCH_MEMBER syscall.Errno = 1387
1088 ERROR_INVALID_MEMBER syscall.Errno = 1388
1089 ERROR_TOO_MANY_SIDS syscall.Errno = 1389
1090 ERROR_LM_CROSS_ENCRYPTION_REQUIRED syscall.Errno = 1390
1091 ERROR_NO_INHERITANCE syscall.Errno = 1391
1092 ERROR_FILE_CORRUPT syscall.Errno = 1392
1093 ERROR_DISK_CORRUPT syscall.Errno = 1393
1094 ERROR_NO_USER_SESSION_KEY syscall.Errno = 1394
1095 ERROR_LICENSE_QUOTA_EXCEEDED syscall.Errno = 1395
1096 ERROR_WRONG_TARGET_NAME syscall.Errno = 1396
1097 ERROR_MUTUAL_AUTH_FAILED syscall.Errno = 1397
1098 ERROR_TIME_SKEW syscall.Errno = 1398
1099 ERROR_CURRENT_DOMAIN_NOT_ALLOWED syscall.Errno = 1399
1100 ERROR_INVALID_WINDOW_HANDLE syscall.Errno = 1400
1101 ERROR_INVALID_MENU_HANDLE syscall.Errno = 1401
1102 ERROR_INVALID_CURSOR_HANDLE syscall.Errno = 1402
1103 ERROR_INVALID_ACCEL_HANDLE syscall.Errno = 1403
1104 ERROR_INVALID_HOOK_HANDLE syscall.Errno = 1404
1105 ERROR_INVALID_DWP_HANDLE syscall.Errno = 1405
1106 ERROR_TLW_WITH_WSCHILD syscall.Errno = 1406
1107 ERROR_CANNOT_FIND_WND_CLASS syscall.Errno = 1407
1108 ERROR_WINDOW_OF_OTHER_THREAD syscall.Errno = 1408
1109 ERROR_HOTKEY_ALREADY_REGISTERED syscall.Errno = 1409
1110 ERROR_CLASS_ALREADY_EXISTS syscall.Errno = 1410
1111 ERROR_CLASS_DOES_NOT_EXIST syscall.Errno = 1411
1112 ERROR_CLASS_HAS_WINDOWS syscall.Errno = 1412
1113 ERROR_INVALID_INDEX syscall.Errno = 1413
1114 ERROR_INVALID_ICON_HANDLE syscall.Errno = 1414
1115 ERROR_PRIVATE_DIALOG_INDEX syscall.Errno = 1415
1116 ERROR_LISTBOX_ID_NOT_FOUND syscall.Errno = 1416
1117 ERROR_NO_WILDCARD_CHARACTERS syscall.Errno = 1417
1118 ERROR_CLIPBOARD_NOT_OPEN syscall.Errno = 1418
1119 ERROR_HOTKEY_NOT_REGISTERED syscall.Errno = 1419
1120 ERROR_WINDOW_NOT_DIALOG syscall.Errno = 1420
1121 ERROR_CONTROL_ID_NOT_FOUND syscall.Errno = 1421
1122 ERROR_INVALID_COMBOBOX_MESSAGE syscall.Errno = 1422
1123 ERROR_WINDOW_NOT_COMBOBOX syscall.Errno = 1423
1124 ERROR_INVALID_EDIT_HEIGHT syscall.Errno = 1424
1125 ERROR_DC_NOT_FOUND syscall.Errno = 1425
1126 ERROR_INVALID_HOOK_FILTER syscall.Errno = 1426
1127 ERROR_INVALID_FILTER_PROC syscall.Errno = 1427
1128 ERROR_HOOK_NEEDS_HMOD syscall.Errno = 1428
1129 ERROR_GLOBAL_ONLY_HOOK syscall.Errno = 1429
1130 ERROR_JOURNAL_HOOK_SET syscall.Errno = 1430
1131 ERROR_HOOK_NOT_INSTALLED syscall.Errno = 1431
1132 ERROR_INVALID_LB_MESSAGE syscall.Errno = 1432
1133 ERROR_SETCOUNT_ON_BAD_LB syscall.Errno = 1433
1134 ERROR_LB_WITHOUT_TABSTOPS syscall.Errno = 1434
1135 ERROR_DESTROY_OBJECT_OF_OTHER_THREAD syscall.Errno = 1435
1136 ERROR_CHILD_WINDOW_MENU syscall.Errno = 1436
1137 ERROR_NO_SYSTEM_MENU syscall.Errno = 1437
1138 ERROR_INVALID_MSGBOX_STYLE syscall.Errno = 1438
1139 ERROR_INVALID_SPI_VALUE syscall.Errno = 1439
1140 ERROR_SCREEN_ALREADY_LOCKED syscall.Errno = 1440
1141 ERROR_HWNDS_HAVE_DIFF_PARENT syscall.Errno = 1441
1142 ERROR_NOT_CHILD_WINDOW syscall.Errno = 1442
1143 ERROR_INVALID_GW_COMMAND syscall.Errno = 1443
1144 ERROR_INVALID_THREAD_ID syscall.Errno = 1444
1145 ERROR_NON_MDICHILD_WINDOW syscall.Errno = 1445
1146 ERROR_POPUP_ALREADY_ACTIVE syscall.Errno = 1446
1147 ERROR_NO_SCROLLBARS syscall.Errno = 1447
1148 ERROR_INVALID_SCROLLBAR_RANGE syscall.Errno = 1448
1149 ERROR_INVALID_SHOWWIN_COMMAND syscall.Errno = 1449
1150 ERROR_NO_SYSTEM_RESOURCES syscall.Errno = 1450
1151 ERROR_NONPAGED_SYSTEM_RESOURCES syscall.Errno = 1451
1152 ERROR_PAGED_SYSTEM_RESOURCES syscall.Errno = 1452
1153 ERROR_WORKING_SET_QUOTA syscall.Errno = 1453
1154 ERROR_PAGEFILE_QUOTA syscall.Errno = 1454
1155 ERROR_COMMITMENT_LIMIT syscall.Errno = 1455
1156 ERROR_MENU_ITEM_NOT_FOUND syscall.Errno = 1456
1157 ERROR_INVALID_KEYBOARD_HANDLE syscall.Errno = 1457
1158 ERROR_HOOK_TYPE_NOT_ALLOWED syscall.Errno = 1458
1159 ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION syscall.Errno = 1459
1160 ERROR_TIMEOUT syscall.Errno = 1460
1161 ERROR_INVALID_MONITOR_HANDLE syscall.Errno = 1461
1162 ERROR_INCORRECT_SIZE syscall.Errno = 1462
1163 ERROR_SYMLINK_CLASS_DISABLED syscall.Errno = 1463
1164 ERROR_SYMLINK_NOT_SUPPORTED syscall.Errno = 1464
1165 ERROR_XML_PARSE_ERROR syscall.Errno = 1465
1166 ERROR_XMLDSIG_ERROR syscall.Errno = 1466
1167 ERROR_RESTART_APPLICATION syscall.Errno = 1467
1168 ERROR_WRONG_COMPARTMENT syscall.Errno = 1468
1169 ERROR_AUTHIP_FAILURE syscall.Errno = 1469
1170 ERROR_NO_NVRAM_RESOURCES syscall.Errno = 1470
1171 ERROR_NOT_GUI_PROCESS syscall.Errno = 1471
1172 ERROR_EVENTLOG_FILE_CORRUPT syscall.Errno = 1500
1173 ERROR_EVENTLOG_CANT_START syscall.Errno = 1501
1174 ERROR_LOG_FILE_FULL syscall.Errno = 1502
1175 ERROR_EVENTLOG_FILE_CHANGED syscall.Errno = 1503
1176 ERROR_CONTAINER_ASSIGNED syscall.Errno = 1504
1177 ERROR_JOB_NO_CONTAINER syscall.Errno = 1505
1178 ERROR_INVALID_TASK_NAME syscall.Errno = 1550
1179 ERROR_INVALID_TASK_INDEX syscall.Errno = 1551
1180 ERROR_THREAD_ALREADY_IN_TASK syscall.Errno = 1552
1181 ERROR_INSTALL_SERVICE_FAILURE syscall.Errno = 1601
1182 ERROR_INSTALL_USEREXIT syscall.Errno = 1602
1183 ERROR_INSTALL_FAILURE syscall.Errno = 1603
1184 ERROR_INSTALL_SUSPEND syscall.Errno = 1604
1185 ERROR_UNKNOWN_PRODUCT syscall.Errno = 1605
1186 ERROR_UNKNOWN_FEATURE syscall.Errno = 1606
1187 ERROR_UNKNOWN_COMPONENT syscall.Errno = 1607
1188 ERROR_UNKNOWN_PROPERTY syscall.Errno = 1608
1189 ERROR_INVALID_HANDLE_STATE syscall.Errno = 1609
1190 ERROR_BAD_CONFIGURATION syscall.Errno = 1610
1191 ERROR_INDEX_ABSENT syscall.Errno = 1611
1192 ERROR_INSTALL_SOURCE_ABSENT syscall.Errno = 1612
1193 ERROR_INSTALL_PACKAGE_VERSION syscall.Errno = 1613
1194 ERROR_PRODUCT_UNINSTALLED syscall.Errno = 1614
1195 ERROR_BAD_QUERY_SYNTAX syscall.Errno = 1615
1196 ERROR_INVALID_FIELD syscall.Errno = 1616
1197 ERROR_DEVICE_REMOVED syscall.Errno = 1617
1198 ERROR_INSTALL_ALREADY_RUNNING syscall.Errno = 1618
1199 ERROR_INSTALL_PACKAGE_OPEN_FAILED syscall.Errno = 1619
1200 ERROR_INSTALL_PACKAGE_INVALID syscall.Errno = 1620
1201 ERROR_INSTALL_UI_FAILURE syscall.Errno = 1621
1202 ERROR_INSTALL_LOG_FAILURE syscall.Errno = 1622
1203 ERROR_INSTALL_LANGUAGE_UNSUPPORTED syscall.Errno = 1623
1204 ERROR_INSTALL_TRANSFORM_FAILURE syscall.Errno = 1624
1205 ERROR_INSTALL_PACKAGE_REJECTED syscall.Errno = 1625
1206 ERROR_FUNCTION_NOT_CALLED syscall.Errno = 1626
1207 ERROR_FUNCTION_FAILED syscall.Errno = 1627
1208 ERROR_INVALID_TABLE syscall.Errno = 1628
1209 ERROR_DATATYPE_MISMATCH syscall.Errno = 1629
1210 ERROR_UNSUPPORTED_TYPE syscall.Errno = 1630
1211 ERROR_CREATE_FAILED syscall.Errno = 1631
1212 ERROR_INSTALL_TEMP_UNWRITABLE syscall.Errno = 1632
1213 ERROR_INSTALL_PLATFORM_UNSUPPORTED syscall.Errno = 1633
1214 ERROR_INSTALL_NOTUSED syscall.Errno = 1634
1215 ERROR_PATCH_PACKAGE_OPEN_FAILED syscall.Errno = 1635
1216 ERROR_PATCH_PACKAGE_INVALID syscall.Errno = 1636
1217 ERROR_PATCH_PACKAGE_UNSUPPORTED syscall.Errno = 1637
1218 ERROR_PRODUCT_VERSION syscall.Errno = 1638
1219 ERROR_INVALID_COMMAND_LINE syscall.Errno = 1639
1220 ERROR_INSTALL_REMOTE_DISALLOWED syscall.Errno = 1640
1221 ERROR_SUCCESS_REBOOT_INITIATED syscall.Errno = 1641
1222 ERROR_PATCH_TARGET_NOT_FOUND syscall.Errno = 1642
1223 ERROR_PATCH_PACKAGE_REJECTED syscall.Errno = 1643
1224 ERROR_INSTALL_TRANSFORM_REJECTED syscall.Errno = 1644
1225 ERROR_INSTALL_REMOTE_PROHIBITED syscall.Errno = 1645
1226 ERROR_PATCH_REMOVAL_UNSUPPORTED syscall.Errno = 1646
1227 ERROR_UNKNOWN_PATCH syscall.Errno = 1647
1228 ERROR_PATCH_NO_SEQUENCE syscall.Errno = 1648
1229 ERROR_PATCH_REMOVAL_DISALLOWED syscall.Errno = 1649
1230 ERROR_INVALID_PATCH_XML syscall.Errno = 1650
1231 ERROR_PATCH_MANAGED_ADVERTISED_PRODUCT syscall.Errno = 1651
1232 ERROR_INSTALL_SERVICE_SAFEBOOT syscall.Errno = 1652
1233 ERROR_FAIL_FAST_EXCEPTION syscall.Errno = 1653
1234 ERROR_INSTALL_REJECTED syscall.Errno = 1654
1235 ERROR_DYNAMIC_CODE_BLOCKED syscall.Errno = 1655
1236 ERROR_NOT_SAME_OBJECT syscall.Errno = 1656
1237 ERROR_STRICT_CFG_VIOLATION syscall.Errno = 1657
1238 ERROR_SET_CONTEXT_DENIED syscall.Errno = 1660
1239 ERROR_CROSS_PARTITION_VIOLATION syscall.Errno = 1661
1240 RPC_S_INVALID_STRING_BINDING syscall.Errno = 1700
1241 RPC_S_WRONG_KIND_OF_BINDING syscall.Errno = 1701
1242 RPC_S_INVALID_BINDING syscall.Errno = 1702
1243 RPC_S_PROTSEQ_NOT_SUPPORTED syscall.Errno = 1703
1244 RPC_S_INVALID_RPC_PROTSEQ syscall.Errno = 1704
1245 RPC_S_INVALID_STRING_UUID syscall.Errno = 1705
1246 RPC_S_INVALID_ENDPOINT_FORMAT syscall.Errno = 1706
1247 RPC_S_INVALID_NET_ADDR syscall.Errno = 1707
1248 RPC_S_NO_ENDPOINT_FOUND syscall.Errno = 1708
1249 RPC_S_INVALID_TIMEOUT syscall.Errno = 1709
1250 RPC_S_OBJECT_NOT_FOUND syscall.Errno = 1710
1251 RPC_S_ALREADY_REGISTERED syscall.Errno = 1711
1252 RPC_S_TYPE_ALREADY_REGISTERED syscall.Errno = 1712
1253 RPC_S_ALREADY_LISTENING syscall.Errno = 1713
1254 RPC_S_NO_PROTSEQS_REGISTERED syscall.Errno = 1714
1255 RPC_S_NOT_LISTENING syscall.Errno = 1715
1256 RPC_S_UNKNOWN_MGR_TYPE syscall.Errno = 1716
1257 RPC_S_UNKNOWN_IF syscall.Errno = 1717
1258 RPC_S_NO_BINDINGS syscall.Errno = 1718
1259 RPC_S_NO_PROTSEQS syscall.Errno = 1719
1260 RPC_S_CANT_CREATE_ENDPOINT syscall.Errno = 1720
1261 RPC_S_OUT_OF_RESOURCES syscall.Errno = 1721
1262 RPC_S_SERVER_UNAVAILABLE syscall.Errno = 1722
1263 RPC_S_SERVER_TOO_BUSY syscall.Errno = 1723
1264 RPC_S_INVALID_NETWORK_OPTIONS syscall.Errno = 1724
1265 RPC_S_NO_CALL_ACTIVE syscall.Errno = 1725
1266 RPC_S_CALL_FAILED syscall.Errno = 1726
1267 RPC_S_CALL_FAILED_DNE syscall.Errno = 1727
1268 RPC_S_PROTOCOL_ERROR syscall.Errno = 1728
1269 RPC_S_PROXY_ACCESS_DENIED syscall.Errno = 1729
1270 RPC_S_UNSUPPORTED_TRANS_SYN syscall.Errno = 1730
1271 RPC_S_UNSUPPORTED_TYPE syscall.Errno = 1732
1272 RPC_S_INVALID_TAG syscall.Errno = 1733
1273 RPC_S_INVALID_BOUND syscall.Errno = 1734
1274 RPC_S_NO_ENTRY_NAME syscall.Errno = 1735
1275 RPC_S_INVALID_NAME_SYNTAX syscall.Errno = 1736
1276 RPC_S_UNSUPPORTED_NAME_SYNTAX syscall.Errno = 1737
1277 RPC_S_UUID_NO_ADDRESS syscall.Errno = 1739
1278 RPC_S_DUPLICATE_ENDPOINT syscall.Errno = 1740
1279 RPC_S_UNKNOWN_AUTHN_TYPE syscall.Errno = 1741
1280 RPC_S_MAX_CALLS_TOO_SMALL syscall.Errno = 1742
1281 RPC_S_STRING_TOO_LONG syscall.Errno = 1743
1282 RPC_S_PROTSEQ_NOT_FOUND syscall.Errno = 1744
1283 RPC_S_PROCNUM_OUT_OF_RANGE syscall.Errno = 1745
1284 RPC_S_BINDING_HAS_NO_AUTH syscall.Errno = 1746
1285 RPC_S_UNKNOWN_AUTHN_SERVICE syscall.Errno = 1747
1286 RPC_S_UNKNOWN_AUTHN_LEVEL syscall.Errno = 1748
1287 RPC_S_INVALID_AUTH_IDENTITY syscall.Errno = 1749
1288 RPC_S_UNKNOWN_AUTHZ_SERVICE syscall.Errno = 1750
1289 EPT_S_INVALID_ENTRY syscall.Errno = 1751
1290 EPT_S_CANT_PERFORM_OP syscall.Errno = 1752
1291 EPT_S_NOT_REGISTERED syscall.Errno = 1753
1292 RPC_S_NOTHING_TO_EXPORT syscall.Errno = 1754
1293 RPC_S_INCOMPLETE_NAME syscall.Errno = 1755
1294 RPC_S_INVALID_VERS_OPTION syscall.Errno = 1756
1295 RPC_S_NO_MORE_MEMBERS syscall.Errno = 1757
1296 RPC_S_NOT_ALL_OBJS_UNEXPORTED syscall.Errno = 1758
1297 RPC_S_INTERFACE_NOT_FOUND syscall.Errno = 1759
1298 RPC_S_ENTRY_ALREADY_EXISTS syscall.Errno = 1760
1299 RPC_S_ENTRY_NOT_FOUND syscall.Errno = 1761
1300 RPC_S_NAME_SERVICE_UNAVAILABLE syscall.Errno = 1762
1301 RPC_S_INVALID_NAF_ID syscall.Errno = 1763
1302 RPC_S_CANNOT_SUPPORT syscall.Errno = 1764
1303 RPC_S_NO_CONTEXT_AVAILABLE syscall.Errno = 1765
1304 RPC_S_INTERNAL_ERROR syscall.Errno = 1766
1305 RPC_S_ZERO_DIVIDE syscall.Errno = 1767
1306 RPC_S_ADDRESS_ERROR syscall.Errno = 1768
1307 RPC_S_FP_DIV_ZERO syscall.Errno = 1769
1308 RPC_S_FP_UNDERFLOW syscall.Errno = 1770
1309 RPC_S_FP_OVERFLOW syscall.Errno = 1771
1310 RPC_X_NO_MORE_ENTRIES syscall.Errno = 1772
1311 RPC_X_SS_CHAR_TRANS_OPEN_FAIL syscall.Errno = 1773
1312 RPC_X_SS_CHAR_TRANS_SHORT_FILE syscall.Errno = 1774
1313 RPC_X_SS_IN_NULL_CONTEXT syscall.Errno = 1775
1314 RPC_X_SS_CONTEXT_DAMAGED syscall.Errno = 1777
1315 RPC_X_SS_HANDLES_MISMATCH syscall.Errno = 1778
1316 RPC_X_SS_CANNOT_GET_CALL_HANDLE syscall.Errno = 1779
1317 RPC_X_NULL_REF_POINTER syscall.Errno = 1780
1318 RPC_X_ENUM_VALUE_OUT_OF_RANGE syscall.Errno = 1781
1319 RPC_X_BYTE_COUNT_TOO_SMALL syscall.Errno = 1782
1320 RPC_X_BAD_STUB_DATA syscall.Errno = 1783
1321 ERROR_INVALID_USER_BUFFER syscall.Errno = 1784
1322 ERROR_UNRECOGNIZED_MEDIA syscall.Errno = 1785
1323 ERROR_NO_TRUST_LSA_SECRET syscall.Errno = 1786
1324 ERROR_NO_TRUST_SAM_ACCOUNT syscall.Errno = 1787
1325 ERROR_TRUSTED_DOMAIN_FAILURE syscall.Errno = 1788
1326 ERROR_TRUSTED_RELATIONSHIP_FAILURE syscall.Errno = 1789
1327 ERROR_TRUST_FAILURE syscall.Errno = 1790
1328 RPC_S_CALL_IN_PROGRESS syscall.Errno = 1791
1329 ERROR_NETLOGON_NOT_STARTED syscall.Errno = 1792
1330 ERROR_ACCOUNT_EXPIRED syscall.Errno = 1793
1331 ERROR_REDIRECTOR_HAS_OPEN_HANDLES syscall.Errno = 1794
1332 ERROR_PRINTER_DRIVER_ALREADY_INSTALLED syscall.Errno = 1795
1333 ERROR_UNKNOWN_PORT syscall.Errno = 1796
1334 ERROR_UNKNOWN_PRINTER_DRIVER syscall.Errno = 1797
1335 ERROR_UNKNOWN_PRINTPROCESSOR syscall.Errno = 1798
1336 ERROR_INVALID_SEPARATOR_FILE syscall.Errno = 1799
1337 ERROR_INVALID_PRIORITY syscall.Errno = 1800
1338 ERROR_INVALID_PRINTER_NAME syscall.Errno = 1801
1339 ERROR_PRINTER_ALREADY_EXISTS syscall.Errno = 1802
1340 ERROR_INVALID_PRINTER_COMMAND syscall.Errno = 1803
1341 ERROR_INVALID_DATATYPE syscall.Errno = 1804
1342 ERROR_INVALID_ENVIRONMENT syscall.Errno = 1805
1343 RPC_S_NO_MORE_BINDINGS syscall.Errno = 1806
1344 ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT syscall.Errno = 1807
1345 ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT syscall.Errno = 1808
1346 ERROR_NOLOGON_SERVER_TRUST_ACCOUNT syscall.Errno = 1809
1347 ERROR_DOMAIN_TRUST_INCONSISTENT syscall.Errno = 1810
1348 ERROR_SERVER_HAS_OPEN_HANDLES syscall.Errno = 1811
1349 ERROR_RESOURCE_DATA_NOT_FOUND syscall.Errno = 1812
1350 ERROR_RESOURCE_TYPE_NOT_FOUND syscall.Errno = 1813
1351 ERROR_RESOURCE_NAME_NOT_FOUND syscall.Errno = 1814
1352 ERROR_RESOURCE_LANG_NOT_FOUND syscall.Errno = 1815
1353 ERROR_NOT_ENOUGH_QUOTA syscall.Errno = 1816
1354 RPC_S_NO_INTERFACES syscall.Errno = 1817
1355 RPC_S_CALL_CANCELLED syscall.Errno = 1818
1356 RPC_S_BINDING_INCOMPLETE syscall.Errno = 1819
1357 RPC_S_COMM_FAILURE syscall.Errno = 1820
1358 RPC_S_UNSUPPORTED_AUTHN_LEVEL syscall.Errno = 1821
1359 RPC_S_NO_PRINC_NAME syscall.Errno = 1822
1360 RPC_S_NOT_RPC_ERROR syscall.Errno = 1823
1361 RPC_S_UUID_LOCAL_ONLY syscall.Errno = 1824
1362 RPC_S_SEC_PKG_ERROR syscall.Errno = 1825
1363 RPC_S_NOT_CANCELLED syscall.Errno = 1826
1364 RPC_X_INVALID_ES_ACTION syscall.Errno = 1827
1365 RPC_X_WRONG_ES_VERSION syscall.Errno = 1828
1366 RPC_X_WRONG_STUB_VERSION syscall.Errno = 1829
1367 RPC_X_INVALID_PIPE_OBJECT syscall.Errno = 1830
1368 RPC_X_WRONG_PIPE_ORDER syscall.Errno = 1831
1369 RPC_X_WRONG_PIPE_VERSION syscall.Errno = 1832
1370 RPC_S_COOKIE_AUTH_FAILED syscall.Errno = 1833
1371 RPC_S_DO_NOT_DISTURB syscall.Errno = 1834
1372 RPC_S_SYSTEM_HANDLE_COUNT_EXCEEDED syscall.Errno = 1835
1373 RPC_S_SYSTEM_HANDLE_TYPE_MISMATCH syscall.Errno = 1836
1374 RPC_S_GROUP_MEMBER_NOT_FOUND syscall.Errno = 1898
1375 EPT_S_CANT_CREATE syscall.Errno = 1899
1376 RPC_S_INVALID_OBJECT syscall.Errno = 1900
1377 ERROR_INVALID_TIME syscall.Errno = 1901
1378 ERROR_INVALID_FORM_NAME syscall.Errno = 1902
1379 ERROR_INVALID_FORM_SIZE syscall.Errno = 1903
1380 ERROR_ALREADY_WAITING syscall.Errno = 1904
1381 ERROR_PRINTER_DELETED syscall.Errno = 1905
1382 ERROR_INVALID_PRINTER_STATE syscall.Errno = 1906
1383 ERROR_PASSWORD_MUST_CHANGE syscall.Errno = 1907
1384 ERROR_DOMAIN_CONTROLLER_NOT_FOUND syscall.Errno = 1908
1385 ERROR_ACCOUNT_LOCKED_OUT syscall.Errno = 1909
1386 OR_INVALID_OXID syscall.Errno = 1910
1387 OR_INVALID_OID syscall.Errno = 1911
1388 OR_INVALID_SET syscall.Errno = 1912
1389 RPC_S_SEND_INCOMPLETE syscall.Errno = 1913
1390 RPC_S_INVALID_ASYNC_HANDLE syscall.Errno = 1914
1391 RPC_S_INVALID_ASYNC_CALL syscall.Errno = 1915
1392 RPC_X_PIPE_CLOSED syscall.Errno = 1916
1393 RPC_X_PIPE_DISCIPLINE_ERROR syscall.Errno = 1917
1394 RPC_X_PIPE_EMPTY syscall.Errno = 1918
1395 ERROR_NO_SITENAME syscall.Errno = 1919
1396 ERROR_CANT_ACCESS_FILE syscall.Errno = 1920
1397 ERROR_CANT_RESOLVE_FILENAME syscall.Errno = 1921
1398 RPC_S_ENTRY_TYPE_MISMATCH syscall.Errno = 1922
1399 RPC_S_NOT_ALL_OBJS_EXPORTED syscall.Errno = 1923
1400 RPC_S_INTERFACE_NOT_EXPORTED syscall.Errno = 1924
1401 RPC_S_PROFILE_NOT_ADDED syscall.Errno = 1925
1402 RPC_S_PRF_ELT_NOT_ADDED syscall.Errno = 1926
1403 RPC_S_PRF_ELT_NOT_REMOVED syscall.Errno = 1927
1404 RPC_S_GRP_ELT_NOT_ADDED syscall.Errno = 1928
1405 RPC_S_GRP_ELT_NOT_REMOVED syscall.Errno = 1929
1406 ERROR_KM_DRIVER_BLOCKED syscall.Errno = 1930
1407 ERROR_CONTEXT_EXPIRED syscall.Errno = 1931
1408 ERROR_PER_USER_TRUST_QUOTA_EXCEEDED syscall.Errno = 1932
1409 ERROR_ALL_USER_TRUST_QUOTA_EXCEEDED syscall.Errno = 1933
1410 ERROR_USER_DELETE_TRUST_QUOTA_EXCEEDED syscall.Errno = 1934
1411 ERROR_AUTHENTICATION_FIREWALL_FAILED syscall.Errno = 1935
1412 ERROR_REMOTE_PRINT_CONNECTIONS_BLOCKED syscall.Errno = 1936
1413 ERROR_NTLM_BLOCKED syscall.Errno = 1937
1414 ERROR_PASSWORD_CHANGE_REQUIRED syscall.Errno = 1938
1415 ERROR_LOST_MODE_LOGON_RESTRICTION syscall.Errno = 1939
1416 ERROR_INVALID_PIXEL_FORMAT syscall.Errno = 2000
1417 ERROR_BAD_DRIVER syscall.Errno = 2001
1418 ERROR_INVALID_WINDOW_STYLE syscall.Errno = 2002
1419 ERROR_METAFILE_NOT_SUPPORTED syscall.Errno = 2003
1420 ERROR_TRANSFORM_NOT_SUPPORTED syscall.Errno = 2004
1421 ERROR_CLIPPING_NOT_SUPPORTED syscall.Errno = 2005
1422 ERROR_INVALID_CMM syscall.Errno = 2010
1423 ERROR_INVALID_PROFILE syscall.Errno = 2011
1424 ERROR_TAG_NOT_FOUND syscall.Errno = 2012
1425 ERROR_TAG_NOT_PRESENT syscall.Errno = 2013
1426 ERROR_DUPLICATE_TAG syscall.Errno = 2014
1427 ERROR_PROFILE_NOT_ASSOCIATED_WITH_DEVICE syscall.Errno = 2015
1428 ERROR_PROFILE_NOT_FOUND syscall.Errno = 2016
1429 ERROR_INVALID_COLORSPACE syscall.Errno = 2017
1430 ERROR_ICM_NOT_ENABLED syscall.Errno = 2018
1431 ERROR_DELETING_ICM_XFORM syscall.Errno = 2019
1432 ERROR_INVALID_TRANSFORM syscall.Errno = 2020
1433 ERROR_COLORSPACE_MISMATCH syscall.Errno = 2021
1434 ERROR_INVALID_COLORINDEX syscall.Errno = 2022
1435 ERROR_PROFILE_DOES_NOT_MATCH_DEVICE syscall.Errno = 2023
1436 ERROR_CONNECTED_OTHER_PASSWORD syscall.Errno = 2108
1437 ERROR_CONNECTED_OTHER_PASSWORD_DEFAULT syscall.Errno = 2109
1438 ERROR_BAD_USERNAME syscall.Errno = 2202
1439 ERROR_NOT_CONNECTED syscall.Errno = 2250
1440 ERROR_OPEN_FILES syscall.Errno = 2401
1441 ERROR_ACTIVE_CONNECTIONS syscall.Errno = 2402
1442 ERROR_DEVICE_IN_USE syscall.Errno = 2404
1443 ERROR_UNKNOWN_PRINT_MONITOR syscall.Errno = 3000
1444 ERROR_PRINTER_DRIVER_IN_USE syscall.Errno = 3001
1445 ERROR_SPOOL_FILE_NOT_FOUND syscall.Errno = 3002
1446 ERROR_SPL_NO_STARTDOC syscall.Errno = 3003
1447 ERROR_SPL_NO_ADDJOB syscall.Errno = 3004
1448 ERROR_PRINT_PROCESSOR_ALREADY_INSTALLED syscall.Errno = 3005
1449 ERROR_PRINT_MONITOR_ALREADY_INSTALLED syscall.Errno = 3006
1450 ERROR_INVALID_PRINT_MONITOR syscall.Errno = 3007
1451 ERROR_PRINT_MONITOR_IN_USE syscall.Errno = 3008
1452 ERROR_PRINTER_HAS_JOBS_QUEUED syscall.Errno = 3009
1453 ERROR_SUCCESS_REBOOT_REQUIRED syscall.Errno = 3010
1454 ERROR_SUCCESS_RESTART_REQUIRED syscall.Errno = 3011
1455 ERROR_PRINTER_NOT_FOUND syscall.Errno = 3012
1456 ERROR_PRINTER_DRIVER_WARNED syscall.Errno = 3013
1457 ERROR_PRINTER_DRIVER_BLOCKED syscall.Errno = 3014
1458 ERROR_PRINTER_DRIVER_PACKAGE_IN_USE syscall.Errno = 3015
1459 ERROR_CORE_DRIVER_PACKAGE_NOT_FOUND syscall.Errno = 3016
1460 ERROR_FAIL_REBOOT_REQUIRED syscall.Errno = 3017
1461 ERROR_FAIL_REBOOT_INITIATED syscall.Errno = 3018
1462 ERROR_PRINTER_DRIVER_DOWNLOAD_NEEDED syscall.Errno = 3019
1463 ERROR_PRINT_JOB_RESTART_REQUIRED syscall.Errno = 3020
1464 ERROR_INVALID_PRINTER_DRIVER_MANIFEST syscall.Errno = 3021
1465 ERROR_PRINTER_NOT_SHAREABLE syscall.Errno = 3022
1466 ERROR_REQUEST_PAUSED syscall.Errno = 3050
1467 ERROR_APPEXEC_CONDITION_NOT_SATISFIED syscall.Errno = 3060
1468 ERROR_APPEXEC_HANDLE_INVALIDATED syscall.Errno = 3061
1469 ERROR_APPEXEC_INVALID_HOST_GENERATION syscall.Errno = 3062
1470 ERROR_APPEXEC_UNEXPECTED_PROCESS_REGISTRATION syscall.Errno = 3063
1471 ERROR_APPEXEC_INVALID_HOST_STATE syscall.Errno = 3064
1472 ERROR_APPEXEC_NO_DONOR syscall.Errno = 3065
1473 ERROR_APPEXEC_HOST_ID_MISMATCH syscall.Errno = 3066
1474 ERROR_APPEXEC_UNKNOWN_USER syscall.Errno = 3067
1475 ERROR_IO_REISSUE_AS_CACHED syscall.Errno = 3950
1476 ERROR_WINS_INTERNAL syscall.Errno = 4000
1477 ERROR_CAN_NOT_DEL_LOCAL_WINS syscall.Errno = 4001
1478 ERROR_STATIC_INIT syscall.Errno = 4002
1479 ERROR_INC_BACKUP syscall.Errno = 4003
1480 ERROR_FULL_BACKUP syscall.Errno = 4004
1481 ERROR_REC_NON_EXISTENT syscall.Errno = 4005
1482 ERROR_RPL_NOT_ALLOWED syscall.Errno = 4006
1483 PEERDIST_ERROR_CONTENTINFO_VERSION_UNSUPPORTED syscall.Errno = 4050
1484 PEERDIST_ERROR_CANNOT_PARSE_CONTENTINFO syscall.Errno = 4051
1485 PEERDIST_ERROR_MISSING_DATA syscall.Errno = 4052
1486 PEERDIST_ERROR_NO_MORE syscall.Errno = 4053
1487 PEERDIST_ERROR_NOT_INITIALIZED syscall.Errno = 4054
1488 PEERDIST_ERROR_ALREADY_INITIALIZED syscall.Errno = 4055
1489 PEERDIST_ERROR_SHUTDOWN_IN_PROGRESS syscall.Errno = 4056
1490 PEERDIST_ERROR_INVALIDATED syscall.Errno = 4057
1491 PEERDIST_ERROR_ALREADY_EXISTS syscall.Errno = 4058
1492 PEERDIST_ERROR_OPERATION_NOTFOUND syscall.Errno = 4059
1493 PEERDIST_ERROR_ALREADY_COMPLETED syscall.Errno = 4060
1494 PEERDIST_ERROR_OUT_OF_BOUNDS syscall.Errno = 4061
1495 PEERDIST_ERROR_VERSION_UNSUPPORTED syscall.Errno = 4062
1496 PEERDIST_ERROR_INVALID_CONFIGURATION syscall.Errno = 4063
1497 PEERDIST_ERROR_NOT_LICENSED syscall.Errno = 4064
1498 PEERDIST_ERROR_SERVICE_UNAVAILABLE syscall.Errno = 4065
1499 PEERDIST_ERROR_TRUST_FAILURE syscall.Errno = 4066
1500 ERROR_DHCP_ADDRESS_CONFLICT syscall.Errno = 4100
1501 ERROR_WMI_GUID_NOT_FOUND syscall.Errno = 4200
1502 ERROR_WMI_INSTANCE_NOT_FOUND syscall.Errno = 4201
1503 ERROR_WMI_ITEMID_NOT_FOUND syscall.Errno = 4202
1504 ERROR_WMI_TRY_AGAIN syscall.Errno = 4203
1505 ERROR_WMI_DP_NOT_FOUND syscall.Errno = 4204
1506 ERROR_WMI_UNRESOLVED_INSTANCE_REF syscall.Errno = 4205
1507 ERROR_WMI_ALREADY_ENABLED syscall.Errno = 4206
1508 ERROR_WMI_GUID_DISCONNECTED syscall.Errno = 4207
1509 ERROR_WMI_SERVER_UNAVAILABLE syscall.Errno = 4208
1510 ERROR_WMI_DP_FAILED syscall.Errno = 4209
1511 ERROR_WMI_INVALID_MOF syscall.Errno = 4210
1512 ERROR_WMI_INVALID_REGINFO syscall.Errno = 4211
1513 ERROR_WMI_ALREADY_DISABLED syscall.Errno = 4212
1514 ERROR_WMI_READ_ONLY syscall.Errno = 4213
1515 ERROR_WMI_SET_FAILURE syscall.Errno = 4214
1516 ERROR_NOT_APPCONTAINER syscall.Errno = 4250
1517 ERROR_APPCONTAINER_REQUIRED syscall.Errno = 4251
1518 ERROR_NOT_SUPPORTED_IN_APPCONTAINER syscall.Errno = 4252
1519 ERROR_INVALID_PACKAGE_SID_LENGTH syscall.Errno = 4253
1520 ERROR_INVALID_MEDIA syscall.Errno = 4300
1521 ERROR_INVALID_LIBRARY syscall.Errno = 4301
1522 ERROR_INVALID_MEDIA_POOL syscall.Errno = 4302
1523 ERROR_DRIVE_MEDIA_MISMATCH syscall.Errno = 4303
1524 ERROR_MEDIA_OFFLINE syscall.Errno = 4304
1525 ERROR_LIBRARY_OFFLINE syscall.Errno = 4305
1526 ERROR_EMPTY syscall.Errno = 4306
1527 ERROR_NOT_EMPTY syscall.Errno = 4307
1528 ERROR_MEDIA_UNAVAILABLE syscall.Errno = 4308
1529 ERROR_RESOURCE_DISABLED syscall.Errno = 4309
1530 ERROR_INVALID_CLEANER syscall.Errno = 4310
1531 ERROR_UNABLE_TO_CLEAN syscall.Errno = 4311
1532 ERROR_OBJECT_NOT_FOUND syscall.Errno = 4312
1533 ERROR_DATABASE_FAILURE syscall.Errno = 4313
1534 ERROR_DATABASE_FULL syscall.Errno = 4314
1535 ERROR_MEDIA_INCOMPATIBLE syscall.Errno = 4315
1536 ERROR_RESOURCE_NOT_PRESENT syscall.Errno = 4316
1537 ERROR_INVALID_OPERATION syscall.Errno = 4317
1538 ERROR_MEDIA_NOT_AVAILABLE syscall.Errno = 4318
1539 ERROR_DEVICE_NOT_AVAILABLE syscall.Errno = 4319
1540 ERROR_REQUEST_REFUSED syscall.Errno = 4320
1541 ERROR_INVALID_DRIVE_OBJECT syscall.Errno = 4321
1542 ERROR_LIBRARY_FULL syscall.Errno = 4322
1543 ERROR_MEDIUM_NOT_ACCESSIBLE syscall.Errno = 4323
1544 ERROR_UNABLE_TO_LOAD_MEDIUM syscall.Errno = 4324
1545 ERROR_UNABLE_TO_INVENTORY_DRIVE syscall.Errno = 4325
1546 ERROR_UNABLE_TO_INVENTORY_SLOT syscall.Errno = 4326
1547 ERROR_UNABLE_TO_INVENTORY_TRANSPORT syscall.Errno = 4327
1548 ERROR_TRANSPORT_FULL syscall.Errno = 4328
1549 ERROR_CONTROLLING_IEPORT syscall.Errno = 4329
1550 ERROR_UNABLE_TO_EJECT_MOUNTED_MEDIA syscall.Errno = 4330
1551 ERROR_CLEANER_SLOT_SET syscall.Errno = 4331
1552 ERROR_CLEANER_SLOT_NOT_SET syscall.Errno = 4332
1553 ERROR_CLEANER_CARTRIDGE_SPENT syscall.Errno = 4333
1554 ERROR_UNEXPECTED_OMID syscall.Errno = 4334
1555 ERROR_CANT_DELETE_LAST_ITEM syscall.Errno = 4335
1556 ERROR_MESSAGE_EXCEEDS_MAX_SIZE syscall.Errno = 4336
1557 ERROR_VOLUME_CONTAINS_SYS_FILES syscall.Errno = 4337
1558 ERROR_INDIGENOUS_TYPE syscall.Errno = 4338
1559 ERROR_NO_SUPPORTING_DRIVES syscall.Errno = 4339
1560 ERROR_CLEANER_CARTRIDGE_INSTALLED syscall.Errno = 4340
1561 ERROR_IEPORT_FULL syscall.Errno = 4341
1562 ERROR_FILE_OFFLINE syscall.Errno = 4350
1563 ERROR_REMOTE_STORAGE_NOT_ACTIVE syscall.Errno = 4351
1564 ERROR_REMOTE_STORAGE_MEDIA_ERROR syscall.Errno = 4352
1565 ERROR_NOT_A_REPARSE_POINT syscall.Errno = 4390
1566 ERROR_REPARSE_ATTRIBUTE_CONFLICT syscall.Errno = 4391
1567 ERROR_INVALID_REPARSE_DATA syscall.Errno = 4392
1568 ERROR_REPARSE_TAG_INVALID syscall.Errno = 4393
1569 ERROR_REPARSE_TAG_MISMATCH syscall.Errno = 4394
1570 ERROR_REPARSE_POINT_ENCOUNTERED syscall.Errno = 4395
1571 ERROR_APP_DATA_NOT_FOUND syscall.Errno = 4400
1572 ERROR_APP_DATA_EXPIRED syscall.Errno = 4401
1573 ERROR_APP_DATA_CORRUPT syscall.Errno = 4402
1574 ERROR_APP_DATA_LIMIT_EXCEEDED syscall.Errno = 4403
1575 ERROR_APP_DATA_REBOOT_REQUIRED syscall.Errno = 4404
1576 ERROR_SECUREBOOT_ROLLBACK_DETECTED syscall.Errno = 4420
1577 ERROR_SECUREBOOT_POLICY_VIOLATION syscall.Errno = 4421
1578 ERROR_SECUREBOOT_INVALID_POLICY syscall.Errno = 4422
1579 ERROR_SECUREBOOT_POLICY_PUBLISHER_NOT_FOUND syscall.Errno = 4423
1580 ERROR_SECUREBOOT_POLICY_NOT_SIGNED syscall.Errno = 4424
1581 ERROR_SECUREBOOT_NOT_ENABLED syscall.Errno = 4425
1582 ERROR_SECUREBOOT_FILE_REPLACED syscall.Errno = 4426
1583 ERROR_SECUREBOOT_POLICY_NOT_AUTHORIZED syscall.Errno = 4427
1584 ERROR_SECUREBOOT_POLICY_UNKNOWN syscall.Errno = 4428
1585 ERROR_SECUREBOOT_POLICY_MISSING_ANTIROLLBACKVERSION syscall.Errno = 4429
1586 ERROR_SECUREBOOT_PLATFORM_ID_MISMATCH syscall.Errno = 4430
1587 ERROR_SECUREBOOT_POLICY_ROLLBACK_DETECTED syscall.Errno = 4431
1588 ERROR_SECUREBOOT_POLICY_UPGRADE_MISMATCH syscall.Errno = 4432
1589 ERROR_SECUREBOOT_REQUIRED_POLICY_FILE_MISSING syscall.Errno = 4433
1590 ERROR_SECUREBOOT_NOT_BASE_POLICY syscall.Errno = 4434
1591 ERROR_SECUREBOOT_NOT_SUPPLEMENTAL_POLICY syscall.Errno = 4435
1592 ERROR_OFFLOAD_READ_FLT_NOT_SUPPORTED syscall.Errno = 4440
1593 ERROR_OFFLOAD_WRITE_FLT_NOT_SUPPORTED syscall.Errno = 4441
1594 ERROR_OFFLOAD_READ_FILE_NOT_SUPPORTED syscall.Errno = 4442
1595 ERROR_OFFLOAD_WRITE_FILE_NOT_SUPPORTED syscall.Errno = 4443
1596 ERROR_ALREADY_HAS_STREAM_ID syscall.Errno = 4444
1597 ERROR_SMR_GARBAGE_COLLECTION_REQUIRED syscall.Errno = 4445
1598 ERROR_WOF_WIM_HEADER_CORRUPT syscall.Errno = 4446
1599 ERROR_WOF_WIM_RESOURCE_TABLE_CORRUPT syscall.Errno = 4447
1600 ERROR_WOF_FILE_RESOURCE_TABLE_CORRUPT syscall.Errno = 4448
1601 ERROR_VOLUME_NOT_SIS_ENABLED syscall.Errno = 4500
1602 ERROR_SYSTEM_INTEGRITY_ROLLBACK_DETECTED syscall.Errno = 4550
1603 ERROR_SYSTEM_INTEGRITY_POLICY_VIOLATION syscall.Errno = 4551
1604 ERROR_SYSTEM_INTEGRITY_INVALID_POLICY syscall.Errno = 4552
1605 ERROR_SYSTEM_INTEGRITY_POLICY_NOT_SIGNED syscall.Errno = 4553
1606 ERROR_SYSTEM_INTEGRITY_TOO_MANY_POLICIES syscall.Errno = 4554
1607 ERROR_SYSTEM_INTEGRITY_SUPPLEMENTAL_POLICY_NOT_AUTHORIZED syscall.Errno = 4555
1608 ERROR_VSM_NOT_INITIALIZED syscall.Errno = 4560
1609 ERROR_VSM_DMA_PROTECTION_NOT_IN_USE syscall.Errno = 4561
1610 ERROR_PLATFORM_MANIFEST_NOT_AUTHORIZED syscall.Errno = 4570
1611 ERROR_PLATFORM_MANIFEST_INVALID syscall.Errno = 4571
1612 ERROR_PLATFORM_MANIFEST_FILE_NOT_AUTHORIZED syscall.Errno = 4572
1613 ERROR_PLATFORM_MANIFEST_CATALOG_NOT_AUTHORIZED syscall.Errno = 4573
1614 ERROR_PLATFORM_MANIFEST_BINARY_ID_NOT_FOUND syscall.Errno = 4574
1615 ERROR_PLATFORM_MANIFEST_NOT_ACTIVE syscall.Errno = 4575
1616 ERROR_PLATFORM_MANIFEST_NOT_SIGNED syscall.Errno = 4576
1617 ERROR_DEPENDENT_RESOURCE_EXISTS syscall.Errno = 5001
1618 ERROR_DEPENDENCY_NOT_FOUND syscall.Errno = 5002
1619 ERROR_DEPENDENCY_ALREADY_EXISTS syscall.Errno = 5003
1620 ERROR_RESOURCE_NOT_ONLINE syscall.Errno = 5004
1621 ERROR_HOST_NODE_NOT_AVAILABLE syscall.Errno = 5005
1622 ERROR_RESOURCE_NOT_AVAILABLE syscall.Errno = 5006
1623 ERROR_RESOURCE_NOT_FOUND syscall.Errno = 5007
1624 ERROR_SHUTDOWN_CLUSTER syscall.Errno = 5008
1625 ERROR_CANT_EVICT_ACTIVE_NODE syscall.Errno = 5009
1626 ERROR_OBJECT_ALREADY_EXISTS syscall.Errno = 5010
1627 ERROR_OBJECT_IN_LIST syscall.Errno = 5011
1628 ERROR_GROUP_NOT_AVAILABLE syscall.Errno = 5012
1629 ERROR_GROUP_NOT_FOUND syscall.Errno = 5013
1630 ERROR_GROUP_NOT_ONLINE syscall.Errno = 5014
1631 ERROR_HOST_NODE_NOT_RESOURCE_OWNER syscall.Errno = 5015
1632 ERROR_HOST_NODE_NOT_GROUP_OWNER syscall.Errno = 5016
1633 ERROR_RESMON_CREATE_FAILED syscall.Errno = 5017
1634 ERROR_RESMON_ONLINE_FAILED syscall.Errno = 5018
1635 ERROR_RESOURCE_ONLINE syscall.Errno = 5019
1636 ERROR_QUORUM_RESOURCE syscall.Errno = 5020
1637 ERROR_NOT_QUORUM_CAPABLE syscall.Errno = 5021
1638 ERROR_CLUSTER_SHUTTING_DOWN syscall.Errno = 5022
1639 ERROR_INVALID_STATE syscall.Errno = 5023
1640 ERROR_RESOURCE_PROPERTIES_STORED syscall.Errno = 5024
1641 ERROR_NOT_QUORUM_CLASS syscall.Errno = 5025
1642 ERROR_CORE_RESOURCE syscall.Errno = 5026
1643 ERROR_QUORUM_RESOURCE_ONLINE_FAILED syscall.Errno = 5027
1644 ERROR_QUORUMLOG_OPEN_FAILED syscall.Errno = 5028
1645 ERROR_CLUSTERLOG_CORRUPT syscall.Errno = 5029
1646 ERROR_CLUSTERLOG_RECORD_EXCEEDS_MAXSIZE syscall.Errno = 5030
1647 ERROR_CLUSTERLOG_EXCEEDS_MAXSIZE syscall.Errno = 5031
1648 ERROR_CLUSTERLOG_CHKPOINT_NOT_FOUND syscall.Errno = 5032
1649 ERROR_CLUSTERLOG_NOT_ENOUGH_SPACE syscall.Errno = 5033
1650 ERROR_QUORUM_OWNER_ALIVE syscall.Errno = 5034
1651 ERROR_NETWORK_NOT_AVAILABLE syscall.Errno = 5035
1652 ERROR_NODE_NOT_AVAILABLE syscall.Errno = 5036
1653 ERROR_ALL_NODES_NOT_AVAILABLE syscall.Errno = 5037
1654 ERROR_RESOURCE_FAILED syscall.Errno = 5038
1655 ERROR_CLUSTER_INVALID_NODE syscall.Errno = 5039
1656 ERROR_CLUSTER_NODE_EXISTS syscall.Errno = 5040
1657 ERROR_CLUSTER_JOIN_IN_PROGRESS syscall.Errno = 5041
1658 ERROR_CLUSTER_NODE_NOT_FOUND syscall.Errno = 5042
1659 ERROR_CLUSTER_LOCAL_NODE_NOT_FOUND syscall.Errno = 5043
1660 ERROR_CLUSTER_NETWORK_EXISTS syscall.Errno = 5044
1661 ERROR_CLUSTER_NETWORK_NOT_FOUND syscall.Errno = 5045
1662 ERROR_CLUSTER_NETINTERFACE_EXISTS syscall.Errno = 5046
1663 ERROR_CLUSTER_NETINTERFACE_NOT_FOUND syscall.Errno = 5047
1664 ERROR_CLUSTER_INVALID_REQUEST syscall.Errno = 5048
1665 ERROR_CLUSTER_INVALID_NETWORK_PROVIDER syscall.Errno = 5049
1666 ERROR_CLUSTER_NODE_DOWN syscall.Errno = 5050
1667 ERROR_CLUSTER_NODE_UNREACHABLE syscall.Errno = 5051
1668 ERROR_CLUSTER_NODE_NOT_MEMBER syscall.Errno = 5052
1669 ERROR_CLUSTER_JOIN_NOT_IN_PROGRESS syscall.Errno = 5053
1670 ERROR_CLUSTER_INVALID_NETWORK syscall.Errno = 5054
1671 ERROR_CLUSTER_NODE_UP syscall.Errno = 5056
1672 ERROR_CLUSTER_IPADDR_IN_USE syscall.Errno = 5057
1673 ERROR_CLUSTER_NODE_NOT_PAUSED syscall.Errno = 5058
1674 ERROR_CLUSTER_NO_SECURITY_CONTEXT syscall.Errno = 5059
1675 ERROR_CLUSTER_NETWORK_NOT_INTERNAL syscall.Errno = 5060
1676 ERROR_CLUSTER_NODE_ALREADY_UP syscall.Errno = 5061
1677 ERROR_CLUSTER_NODE_ALREADY_DOWN syscall.Errno = 5062
1678 ERROR_CLUSTER_NETWORK_ALREADY_ONLINE syscall.Errno = 5063
1679 ERROR_CLUSTER_NETWORK_ALREADY_OFFLINE syscall.Errno = 5064
1680 ERROR_CLUSTER_NODE_ALREADY_MEMBER syscall.Errno = 5065
1681 ERROR_CLUSTER_LAST_INTERNAL_NETWORK syscall.Errno = 5066
1682 ERROR_CLUSTER_NETWORK_HAS_DEPENDENTS syscall.Errno = 5067
1683 ERROR_INVALID_OPERATION_ON_QUORUM syscall.Errno = 5068
1684 ERROR_DEPENDENCY_NOT_ALLOWED syscall.Errno = 5069
1685 ERROR_CLUSTER_NODE_PAUSED syscall.Errno = 5070
1686 ERROR_NODE_CANT_HOST_RESOURCE syscall.Errno = 5071
1687 ERROR_CLUSTER_NODE_NOT_READY syscall.Errno = 5072
1688 ERROR_CLUSTER_NODE_SHUTTING_DOWN syscall.Errno = 5073
1689 ERROR_CLUSTER_JOIN_ABORTED syscall.Errno = 5074
1690 ERROR_CLUSTER_INCOMPATIBLE_VERSIONS syscall.Errno = 5075
1691 ERROR_CLUSTER_MAXNUM_OF_RESOURCES_EXCEEDED syscall.Errno = 5076
1692 ERROR_CLUSTER_SYSTEM_CONFIG_CHANGED syscall.Errno = 5077
1693 ERROR_CLUSTER_RESOURCE_TYPE_NOT_FOUND syscall.Errno = 5078
1694 ERROR_CLUSTER_RESTYPE_NOT_SUPPORTED syscall.Errno = 5079
1695 ERROR_CLUSTER_RESNAME_NOT_FOUND syscall.Errno = 5080
1696 ERROR_CLUSTER_NO_RPC_PACKAGES_REGISTERED syscall.Errno = 5081
1697 ERROR_CLUSTER_OWNER_NOT_IN_PREFLIST syscall.Errno = 5082
1698 ERROR_CLUSTER_DATABASE_SEQMISMATCH syscall.Errno = 5083
1699 ERROR_RESMON_INVALID_STATE syscall.Errno = 5084
1700 ERROR_CLUSTER_GUM_NOT_LOCKER syscall.Errno = 5085
1701 ERROR_QUORUM_DISK_NOT_FOUND syscall.Errno = 5086
1702 ERROR_DATABASE_BACKUP_CORRUPT syscall.Errno = 5087
1703 ERROR_CLUSTER_NODE_ALREADY_HAS_DFS_ROOT syscall.Errno = 5088
1704 ERROR_RESOURCE_PROPERTY_UNCHANGEABLE syscall.Errno = 5089
1705 ERROR_NO_ADMIN_ACCESS_POINT syscall.Errno = 5090
1706 ERROR_CLUSTER_MEMBERSHIP_INVALID_STATE syscall.Errno = 5890
1707 ERROR_CLUSTER_QUORUMLOG_NOT_FOUND syscall.Errno = 5891
1708 ERROR_CLUSTER_MEMBERSHIP_HALT syscall.Errno = 5892
1709 ERROR_CLUSTER_INSTANCE_ID_MISMATCH syscall.Errno = 5893
1710 ERROR_CLUSTER_NETWORK_NOT_FOUND_FOR_IP syscall.Errno = 5894
1711 ERROR_CLUSTER_PROPERTY_DATA_TYPE_MISMATCH syscall.Errno = 5895
1712 ERROR_CLUSTER_EVICT_WITHOUT_CLEANUP syscall.Errno = 5896
1713 ERROR_CLUSTER_PARAMETER_MISMATCH syscall.Errno = 5897
1714 ERROR_NODE_CANNOT_BE_CLUSTERED syscall.Errno = 5898
1715 ERROR_CLUSTER_WRONG_OS_VERSION syscall.Errno = 5899
1716 ERROR_CLUSTER_CANT_CREATE_DUP_CLUSTER_NAME syscall.Errno = 5900
1717 ERROR_CLUSCFG_ALREADY_COMMITTED syscall.Errno = 5901
1718 ERROR_CLUSCFG_ROLLBACK_FAILED syscall.Errno = 5902
1719 ERROR_CLUSCFG_SYSTEM_DISK_DRIVE_LETTER_CONFLICT syscall.Errno = 5903
1720 ERROR_CLUSTER_OLD_VERSION syscall.Errno = 5904
1721 ERROR_CLUSTER_MISMATCHED_COMPUTER_ACCT_NAME syscall.Errno = 5905
1722 ERROR_CLUSTER_NO_NET_ADAPTERS syscall.Errno = 5906
1723 ERROR_CLUSTER_POISONED syscall.Errno = 5907
1724 ERROR_CLUSTER_GROUP_MOVING syscall.Errno = 5908
1725 ERROR_CLUSTER_RESOURCE_TYPE_BUSY syscall.Errno = 5909
1726 ERROR_RESOURCE_CALL_TIMED_OUT syscall.Errno = 5910
1727 ERROR_INVALID_CLUSTER_IPV6_ADDRESS syscall.Errno = 5911
1728 ERROR_CLUSTER_INTERNAL_INVALID_FUNCTION syscall.Errno = 5912
1729 ERROR_CLUSTER_PARAMETER_OUT_OF_BOUNDS syscall.Errno = 5913
1730 ERROR_CLUSTER_PARTIAL_SEND syscall.Errno = 5914
1731 ERROR_CLUSTER_REGISTRY_INVALID_FUNCTION syscall.Errno = 5915
1732 ERROR_CLUSTER_INVALID_STRING_TERMINATION syscall.Errno = 5916
1733 ERROR_CLUSTER_INVALID_STRING_FORMAT syscall.Errno = 5917
1734 ERROR_CLUSTER_DATABASE_TRANSACTION_IN_PROGRESS syscall.Errno = 5918
1735 ERROR_CLUSTER_DATABASE_TRANSACTION_NOT_IN_PROGRESS syscall.Errno = 5919
1736 ERROR_CLUSTER_NULL_DATA syscall.Errno = 5920
1737 ERROR_CLUSTER_PARTIAL_READ syscall.Errno = 5921
1738 ERROR_CLUSTER_PARTIAL_WRITE syscall.Errno = 5922
1739 ERROR_CLUSTER_CANT_DESERIALIZE_DATA syscall.Errno = 5923
1740 ERROR_DEPENDENT_RESOURCE_PROPERTY_CONFLICT syscall.Errno = 5924
1741 ERROR_CLUSTER_NO_QUORUM syscall.Errno = 5925
1742 ERROR_CLUSTER_INVALID_IPV6_NETWORK syscall.Errno = 5926
1743 ERROR_CLUSTER_INVALID_IPV6_TUNNEL_NETWORK syscall.Errno = 5927
1744 ERROR_QUORUM_NOT_ALLOWED_IN_THIS_GROUP syscall.Errno = 5928
1745 ERROR_DEPENDENCY_TREE_TOO_COMPLEX syscall.Errno = 5929
1746 ERROR_EXCEPTION_IN_RESOURCE_CALL syscall.Errno = 5930
1747 ERROR_CLUSTER_RHS_FAILED_INITIALIZATION syscall.Errno = 5931
1748 ERROR_CLUSTER_NOT_INSTALLED syscall.Errno = 5932
1749 ERROR_CLUSTER_RESOURCES_MUST_BE_ONLINE_ON_THE_SAME_NODE syscall.Errno = 5933
1750 ERROR_CLUSTER_MAX_NODES_IN_CLUSTER syscall.Errno = 5934
1751 ERROR_CLUSTER_TOO_MANY_NODES syscall.Errno = 5935
1752 ERROR_CLUSTER_OBJECT_ALREADY_USED syscall.Errno = 5936
1753 ERROR_NONCORE_GROUPS_FOUND syscall.Errno = 5937
1754 ERROR_FILE_SHARE_RESOURCE_CONFLICT syscall.Errno = 5938
1755 ERROR_CLUSTER_EVICT_INVALID_REQUEST syscall.Errno = 5939
1756 ERROR_CLUSTER_SINGLETON_RESOURCE syscall.Errno = 5940
1757 ERROR_CLUSTER_GROUP_SINGLETON_RESOURCE syscall.Errno = 5941
1758 ERROR_CLUSTER_RESOURCE_PROVIDER_FAILED syscall.Errno = 5942
1759 ERROR_CLUSTER_RESOURCE_CONFIGURATION_ERROR syscall.Errno = 5943
1760 ERROR_CLUSTER_GROUP_BUSY syscall.Errno = 5944
1761 ERROR_CLUSTER_NOT_SHARED_VOLUME syscall.Errno = 5945
1762 ERROR_CLUSTER_INVALID_SECURITY_DESCRIPTOR syscall.Errno = 5946
1763 ERROR_CLUSTER_SHARED_VOLUMES_IN_USE syscall.Errno = 5947
1764 ERROR_CLUSTER_USE_SHARED_VOLUMES_API syscall.Errno = 5948
1765 ERROR_CLUSTER_BACKUP_IN_PROGRESS syscall.Errno = 5949
1766 ERROR_NON_CSV_PATH syscall.Errno = 5950
1767 ERROR_CSV_VOLUME_NOT_LOCAL syscall.Errno = 5951
1768 ERROR_CLUSTER_WATCHDOG_TERMINATING syscall.Errno = 5952
1769 ERROR_CLUSTER_RESOURCE_VETOED_MOVE_INCOMPATIBLE_NODES syscall.Errno = 5953
1770 ERROR_CLUSTER_INVALID_NODE_WEIGHT syscall.Errno = 5954
1771 ERROR_CLUSTER_RESOURCE_VETOED_CALL syscall.Errno = 5955
1772 ERROR_RESMON_SYSTEM_RESOURCES_LACKING syscall.Errno = 5956
1773 ERROR_CLUSTER_RESOURCE_VETOED_MOVE_NOT_ENOUGH_RESOURCES_ON_DESTINATION syscall.Errno = 5957
1774 ERROR_CLUSTER_RESOURCE_VETOED_MOVE_NOT_ENOUGH_RESOURCES_ON_SOURCE syscall.Errno = 5958
1775 ERROR_CLUSTER_GROUP_QUEUED syscall.Errno = 5959
1776 ERROR_CLUSTER_RESOURCE_LOCKED_STATUS syscall.Errno = 5960
1777 ERROR_CLUSTER_SHARED_VOLUME_FAILOVER_NOT_ALLOWED syscall.Errno = 5961
1778 ERROR_CLUSTER_NODE_DRAIN_IN_PROGRESS syscall.Errno = 5962
1779 ERROR_CLUSTER_DISK_NOT_CONNECTED syscall.Errno = 5963
1780 ERROR_DISK_NOT_CSV_CAPABLE syscall.Errno = 5964
1781 ERROR_RESOURCE_NOT_IN_AVAILABLE_STORAGE syscall.Errno = 5965
1782 ERROR_CLUSTER_SHARED_VOLUME_REDIRECTED syscall.Errno = 5966
1783 ERROR_CLUSTER_SHARED_VOLUME_NOT_REDIRECTED syscall.Errno = 5967
1784 ERROR_CLUSTER_CANNOT_RETURN_PROPERTIES syscall.Errno = 5968
1785 ERROR_CLUSTER_RESOURCE_CONTAINS_UNSUPPORTED_DIFF_AREA_FOR_SHARED_VOLUMES syscall.Errno = 5969
1786 ERROR_CLUSTER_RESOURCE_IS_IN_MAINTENANCE_MODE syscall.Errno = 5970
1787 ERROR_CLUSTER_AFFINITY_CONFLICT syscall.Errno = 5971
1788 ERROR_CLUSTER_RESOURCE_IS_REPLICA_VIRTUAL_MACHINE syscall.Errno = 5972
1789 ERROR_CLUSTER_UPGRADE_INCOMPATIBLE_VERSIONS syscall.Errno = 5973
1790 ERROR_CLUSTER_UPGRADE_FIX_QUORUM_NOT_SUPPORTED syscall.Errno = 5974
1791 ERROR_CLUSTER_UPGRADE_RESTART_REQUIRED syscall.Errno = 5975
1792 ERROR_CLUSTER_UPGRADE_IN_PROGRESS syscall.Errno = 5976
1793 ERROR_CLUSTER_UPGRADE_INCOMPLETE syscall.Errno = 5977
1794 ERROR_CLUSTER_NODE_IN_GRACE_PERIOD syscall.Errno = 5978
1795 ERROR_CLUSTER_CSV_IO_PAUSE_TIMEOUT syscall.Errno = 5979
1796 ERROR_NODE_NOT_ACTIVE_CLUSTER_MEMBER syscall.Errno = 5980
1797 ERROR_CLUSTER_RESOURCE_NOT_MONITORED syscall.Errno = 5981
1798 ERROR_CLUSTER_RESOURCE_DOES_NOT_SUPPORT_UNMONITORED syscall.Errno = 5982
1799 ERROR_CLUSTER_RESOURCE_IS_REPLICATED syscall.Errno = 5983
1800 ERROR_CLUSTER_NODE_ISOLATED syscall.Errno = 5984
1801 ERROR_CLUSTER_NODE_QUARANTINED syscall.Errno = 5985
1802 ERROR_CLUSTER_DATABASE_UPDATE_CONDITION_FAILED syscall.Errno = 5986
1803 ERROR_CLUSTER_SPACE_DEGRADED syscall.Errno = 5987
1804 ERROR_CLUSTER_TOKEN_DELEGATION_NOT_SUPPORTED syscall.Errno = 5988
1805 ERROR_CLUSTER_CSV_INVALID_HANDLE syscall.Errno = 5989
1806 ERROR_CLUSTER_CSV_SUPPORTED_ONLY_ON_COORDINATOR syscall.Errno = 5990
1807 ERROR_GROUPSET_NOT_AVAILABLE syscall.Errno = 5991
1808 ERROR_GROUPSET_NOT_FOUND syscall.Errno = 5992
1809 ERROR_GROUPSET_CANT_PROVIDE syscall.Errno = 5993
1810 ERROR_CLUSTER_FAULT_DOMAIN_PARENT_NOT_FOUND syscall.Errno = 5994
1811 ERROR_CLUSTER_FAULT_DOMAIN_INVALID_HIERARCHY syscall.Errno = 5995
1812 ERROR_CLUSTER_FAULT_DOMAIN_FAILED_S2D_VALIDATION syscall.Errno = 5996
1813 ERROR_CLUSTER_FAULT_DOMAIN_S2D_CONNECTIVITY_LOSS syscall.Errno = 5997
1814 ERROR_CLUSTER_INVALID_INFRASTRUCTURE_FILESERVER_NAME syscall.Errno = 5998
1815 ERROR_CLUSTERSET_MANAGEMENT_CLUSTER_UNREACHABLE syscall.Errno = 5999
1816 ERROR_ENCRYPTION_FAILED syscall.Errno = 6000
1817 ERROR_DECRYPTION_FAILED syscall.Errno = 6001
1818 ERROR_FILE_ENCRYPTED syscall.Errno = 6002
1819 ERROR_NO_RECOVERY_POLICY syscall.Errno = 6003
1820 ERROR_NO_EFS syscall.Errno = 6004
1821 ERROR_WRONG_EFS syscall.Errno = 6005
1822 ERROR_NO_USER_KEYS syscall.Errno = 6006
1823 ERROR_FILE_NOT_ENCRYPTED syscall.Errno = 6007
1824 ERROR_NOT_EXPORT_FORMAT syscall.Errno = 6008
1825 ERROR_FILE_READ_ONLY syscall.Errno = 6009
1826 ERROR_DIR_EFS_DISALLOWED syscall.Errno = 6010
1827 ERROR_EFS_SERVER_NOT_TRUSTED syscall.Errno = 6011
1828 ERROR_BAD_RECOVERY_POLICY syscall.Errno = 6012
1829 ERROR_EFS_ALG_BLOB_TOO_BIG syscall.Errno = 6013
1830 ERROR_VOLUME_NOT_SUPPORT_EFS syscall.Errno = 6014
1831 ERROR_EFS_DISABLED syscall.Errno = 6015
1832 ERROR_EFS_VERSION_NOT_SUPPORT syscall.Errno = 6016
1833 ERROR_CS_ENCRYPTION_INVALID_SERVER_RESPONSE syscall.Errno = 6017
1834 ERROR_CS_ENCRYPTION_UNSUPPORTED_SERVER syscall.Errno = 6018
1835 ERROR_CS_ENCRYPTION_EXISTING_ENCRYPTED_FILE syscall.Errno = 6019
1836 ERROR_CS_ENCRYPTION_NEW_ENCRYPTED_FILE syscall.Errno = 6020
1837 ERROR_CS_ENCRYPTION_FILE_NOT_CSE syscall.Errno = 6021
1838 ERROR_ENCRYPTION_POLICY_DENIES_OPERATION syscall.Errno = 6022
1839 ERROR_WIP_ENCRYPTION_FAILED syscall.Errno = 6023
1840 ERROR_NO_BROWSER_SERVERS_FOUND syscall.Errno = 6118
1841 SCHED_E_SERVICE_NOT_LOCALSYSTEM syscall.Errno = 6200
1842 ERROR_LOG_SECTOR_INVALID syscall.Errno = 6600
1843 ERROR_LOG_SECTOR_PARITY_INVALID syscall.Errno = 6601
1844 ERROR_LOG_SECTOR_REMAPPED syscall.Errno = 6602
1845 ERROR_LOG_BLOCK_INCOMPLETE syscall.Errno = 6603
1846 ERROR_LOG_INVALID_RANGE syscall.Errno = 6604
1847 ERROR_LOG_BLOCKS_EXHAUSTED syscall.Errno = 6605
1848 ERROR_LOG_READ_CONTEXT_INVALID syscall.Errno = 6606
1849 ERROR_LOG_RESTART_INVALID syscall.Errno = 6607
1850 ERROR_LOG_BLOCK_VERSION syscall.Errno = 6608
1851 ERROR_LOG_BLOCK_INVALID syscall.Errno = 6609
1852 ERROR_LOG_READ_MODE_INVALID syscall.Errno = 6610
1853 ERROR_LOG_NO_RESTART syscall.Errno = 6611
1854 ERROR_LOG_METADATA_CORRUPT syscall.Errno = 6612
1855 ERROR_LOG_METADATA_INVALID syscall.Errno = 6613
1856 ERROR_LOG_METADATA_INCONSISTENT syscall.Errno = 6614
1857 ERROR_LOG_RESERVATION_INVALID syscall.Errno = 6615
1858 ERROR_LOG_CANT_DELETE syscall.Errno = 6616
1859 ERROR_LOG_CONTAINER_LIMIT_EXCEEDED syscall.Errno = 6617
1860 ERROR_LOG_START_OF_LOG syscall.Errno = 6618
1861 ERROR_LOG_POLICY_ALREADY_INSTALLED syscall.Errno = 6619
1862 ERROR_LOG_POLICY_NOT_INSTALLED syscall.Errno = 6620
1863 ERROR_LOG_POLICY_INVALID syscall.Errno = 6621
1864 ERROR_LOG_POLICY_CONFLICT syscall.Errno = 6622
1865 ERROR_LOG_PINNED_ARCHIVE_TAIL syscall.Errno = 6623
1866 ERROR_LOG_RECORD_NONEXISTENT syscall.Errno = 6624
1867 ERROR_LOG_RECORDS_RESERVED_INVALID syscall.Errno = 6625
1868 ERROR_LOG_SPACE_RESERVED_INVALID syscall.Errno = 6626
1869 ERROR_LOG_TAIL_INVALID syscall.Errno = 6627
1870 ERROR_LOG_FULL syscall.Errno = 6628
1871 ERROR_COULD_NOT_RESIZE_LOG syscall.Errno = 6629
1872 ERROR_LOG_MULTIPLEXED syscall.Errno = 6630
1873 ERROR_LOG_DEDICATED syscall.Errno = 6631
1874 ERROR_LOG_ARCHIVE_NOT_IN_PROGRESS syscall.Errno = 6632
1875 ERROR_LOG_ARCHIVE_IN_PROGRESS syscall.Errno = 6633
1876 ERROR_LOG_EPHEMERAL syscall.Errno = 6634
1877 ERROR_LOG_NOT_ENOUGH_CONTAINERS syscall.Errno = 6635
1878 ERROR_LOG_CLIENT_ALREADY_REGISTERED syscall.Errno = 6636
1879 ERROR_LOG_CLIENT_NOT_REGISTERED syscall.Errno = 6637
1880 ERROR_LOG_FULL_HANDLER_IN_PROGRESS syscall.Errno = 6638
1881 ERROR_LOG_CONTAINER_READ_FAILED syscall.Errno = 6639
1882 ERROR_LOG_CONTAINER_WRITE_FAILED syscall.Errno = 6640
1883 ERROR_LOG_CONTAINER_OPEN_FAILED syscall.Errno = 6641
1884 ERROR_LOG_CONTAINER_STATE_INVALID syscall.Errno = 6642
1885 ERROR_LOG_STATE_INVALID syscall.Errno = 6643
1886 ERROR_LOG_PINNED syscall.Errno = 6644
1887 ERROR_LOG_METADATA_FLUSH_FAILED syscall.Errno = 6645
1888 ERROR_LOG_INCONSISTENT_SECURITY syscall.Errno = 6646
1889 ERROR_LOG_APPENDED_FLUSH_FAILED syscall.Errno = 6647
1890 ERROR_LOG_PINNED_RESERVATION syscall.Errno = 6648
1891 ERROR_INVALID_TRANSACTION syscall.Errno = 6700
1892 ERROR_TRANSACTION_NOT_ACTIVE syscall.Errno = 6701
1893 ERROR_TRANSACTION_REQUEST_NOT_VALID syscall.Errno = 6702
1894 ERROR_TRANSACTION_NOT_REQUESTED syscall.Errno = 6703
1895 ERROR_TRANSACTION_ALREADY_ABORTED syscall.Errno = 6704
1896 ERROR_TRANSACTION_ALREADY_COMMITTED syscall.Errno = 6705
1897 ERROR_TM_INITIALIZATION_FAILED syscall.Errno = 6706
1898 ERROR_RESOURCEMANAGER_READ_ONLY syscall.Errno = 6707
1899 ERROR_TRANSACTION_NOT_JOINED syscall.Errno = 6708
1900 ERROR_TRANSACTION_SUPERIOR_EXISTS syscall.Errno = 6709
1901 ERROR_CRM_PROTOCOL_ALREADY_EXISTS syscall.Errno = 6710
1902 ERROR_TRANSACTION_PROPAGATION_FAILED syscall.Errno = 6711
1903 ERROR_CRM_PROTOCOL_NOT_FOUND syscall.Errno = 6712
1904 ERROR_TRANSACTION_INVALID_MARSHALL_BUFFER syscall.Errno = 6713
1905 ERROR_CURRENT_TRANSACTION_NOT_VALID syscall.Errno = 6714
1906 ERROR_TRANSACTION_NOT_FOUND syscall.Errno = 6715
1907 ERROR_RESOURCEMANAGER_NOT_FOUND syscall.Errno = 6716
1908 ERROR_ENLISTMENT_NOT_FOUND syscall.Errno = 6717
1909 ERROR_TRANSACTIONMANAGER_NOT_FOUND syscall.Errno = 6718
1910 ERROR_TRANSACTIONMANAGER_NOT_ONLINE syscall.Errno = 6719
1911 ERROR_TRANSACTIONMANAGER_RECOVERY_NAME_COLLISION syscall.Errno = 6720
1912 ERROR_TRANSACTION_NOT_ROOT syscall.Errno = 6721
1913 ERROR_TRANSACTION_OBJECT_EXPIRED syscall.Errno = 6722
1914 ERROR_TRANSACTION_RESPONSE_NOT_ENLISTED syscall.Errno = 6723
1915 ERROR_TRANSACTION_RECORD_TOO_LONG syscall.Errno = 6724
1916 ERROR_IMPLICIT_TRANSACTION_NOT_SUPPORTED syscall.Errno = 6725
1917 ERROR_TRANSACTION_INTEGRITY_VIOLATED syscall.Errno = 6726
1918 ERROR_TRANSACTIONMANAGER_IDENTITY_MISMATCH syscall.Errno = 6727
1919 ERROR_RM_CANNOT_BE_FROZEN_FOR_SNAPSHOT syscall.Errno = 6728
1920 ERROR_TRANSACTION_MUST_WRITETHROUGH syscall.Errno = 6729
1921 ERROR_TRANSACTION_NO_SUPERIOR syscall.Errno = 6730
1922 ERROR_HEURISTIC_DAMAGE_POSSIBLE syscall.Errno = 6731
1923 ERROR_TRANSACTIONAL_CONFLICT syscall.Errno = 6800
1924 ERROR_RM_NOT_ACTIVE syscall.Errno = 6801
1925 ERROR_RM_METADATA_CORRUPT syscall.Errno = 6802
1926 ERROR_DIRECTORY_NOT_RM syscall.Errno = 6803
1927 ERROR_TRANSACTIONS_UNSUPPORTED_REMOTE syscall.Errno = 6805
1928 ERROR_LOG_RESIZE_INVALID_SIZE syscall.Errno = 6806
1929 ERROR_OBJECT_NO_LONGER_EXISTS syscall.Errno = 6807
1930 ERROR_STREAM_MINIVERSION_NOT_FOUND syscall.Errno = 6808
1931 ERROR_STREAM_MINIVERSION_NOT_VALID syscall.Errno = 6809
1932 ERROR_MINIVERSION_INACCESSIBLE_FROM_SPECIFIED_TRANSACTION syscall.Errno = 6810
1933 ERROR_CANT_OPEN_MINIVERSION_WITH_MODIFY_INTENT syscall.Errno = 6811
1934 ERROR_CANT_CREATE_MORE_STREAM_MINIVERSIONS syscall.Errno = 6812
1935 ERROR_REMOTE_FILE_VERSION_MISMATCH syscall.Errno = 6814
1936 ERROR_HANDLE_NO_LONGER_VALID syscall.Errno = 6815
1937 ERROR_NO_TXF_METADATA syscall.Errno = 6816
1938 ERROR_LOG_CORRUPTION_DETECTED syscall.Errno = 6817
1939 ERROR_CANT_RECOVER_WITH_HANDLE_OPEN syscall.Errno = 6818
1940 ERROR_RM_DISCONNECTED syscall.Errno = 6819
1941 ERROR_ENLISTMENT_NOT_SUPERIOR syscall.Errno = 6820
1942 ERROR_RECOVERY_NOT_NEEDED syscall.Errno = 6821
1943 ERROR_RM_ALREADY_STARTED syscall.Errno = 6822
1944 ERROR_FILE_IDENTITY_NOT_PERSISTENT syscall.Errno = 6823
1945 ERROR_CANT_BREAK_TRANSACTIONAL_DEPENDENCY syscall.Errno = 6824
1946 ERROR_CANT_CROSS_RM_BOUNDARY syscall.Errno = 6825
1947 ERROR_TXF_DIR_NOT_EMPTY syscall.Errno = 6826
1948 ERROR_INDOUBT_TRANSACTIONS_EXIST syscall.Errno = 6827
1949 ERROR_TM_VOLATILE syscall.Errno = 6828
1950 ERROR_ROLLBACK_TIMER_EXPIRED syscall.Errno = 6829
1951 ERROR_TXF_ATTRIBUTE_CORRUPT syscall.Errno = 6830
1952 ERROR_EFS_NOT_ALLOWED_IN_TRANSACTION syscall.Errno = 6831
1953 ERROR_TRANSACTIONAL_OPEN_NOT_ALLOWED syscall.Errno = 6832
1954 ERROR_LOG_GROWTH_FAILED syscall.Errno = 6833
1955 ERROR_TRANSACTED_MAPPING_UNSUPPORTED_REMOTE syscall.Errno = 6834
1956 ERROR_TXF_METADATA_ALREADY_PRESENT syscall.Errno = 6835
1957 ERROR_TRANSACTION_SCOPE_CALLBACKS_NOT_SET syscall.Errno = 6836
1958 ERROR_TRANSACTION_REQUIRED_PROMOTION syscall.Errno = 6837
1959 ERROR_CANNOT_EXECUTE_FILE_IN_TRANSACTION syscall.Errno = 6838
1960 ERROR_TRANSACTIONS_NOT_FROZEN syscall.Errno = 6839
1961 ERROR_TRANSACTION_FREEZE_IN_PROGRESS syscall.Errno = 6840
1962 ERROR_NOT_SNAPSHOT_VOLUME syscall.Errno = 6841
1963 ERROR_NO_SAVEPOINT_WITH_OPEN_FILES syscall.Errno = 6842
1964 ERROR_DATA_LOST_REPAIR syscall.Errno = 6843
1965 ERROR_SPARSE_NOT_ALLOWED_IN_TRANSACTION syscall.Errno = 6844
1966 ERROR_TM_IDENTITY_MISMATCH syscall.Errno = 6845
1967 ERROR_FLOATED_SECTION syscall.Errno = 6846
1968 ERROR_CANNOT_ACCEPT_TRANSACTED_WORK syscall.Errno = 6847
1969 ERROR_CANNOT_ABORT_TRANSACTIONS syscall.Errno = 6848
1970 ERROR_BAD_CLUSTERS syscall.Errno = 6849
1971 ERROR_COMPRESSION_NOT_ALLOWED_IN_TRANSACTION syscall.Errno = 6850
1972 ERROR_VOLUME_DIRTY syscall.Errno = 6851
1973 ERROR_NO_LINK_TRACKING_IN_TRANSACTION syscall.Errno = 6852
1974 ERROR_OPERATION_NOT_SUPPORTED_IN_TRANSACTION syscall.Errno = 6853
1975 ERROR_EXPIRED_HANDLE syscall.Errno = 6854
1976 ERROR_TRANSACTION_NOT_ENLISTED syscall.Errno = 6855
1977 ERROR_CTX_WINSTATION_NAME_INVALID syscall.Errno = 7001
1978 ERROR_CTX_INVALID_PD syscall.Errno = 7002
1979 ERROR_CTX_PD_NOT_FOUND syscall.Errno = 7003
1980 ERROR_CTX_WD_NOT_FOUND syscall.Errno = 7004
1981 ERROR_CTX_CANNOT_MAKE_EVENTLOG_ENTRY syscall.Errno = 7005
1982 ERROR_CTX_SERVICE_NAME_COLLISION syscall.Errno = 7006
1983 ERROR_CTX_CLOSE_PENDING syscall.Errno = 7007
1984 ERROR_CTX_NO_OUTBUF syscall.Errno = 7008
1985 ERROR_CTX_MODEM_INF_NOT_FOUND syscall.Errno = 7009
1986 ERROR_CTX_INVALID_MODEMNAME syscall.Errno = 7010
1987 ERROR_CTX_MODEM_RESPONSE_ERROR syscall.Errno = 7011
1988 ERROR_CTX_MODEM_RESPONSE_TIMEOUT syscall.Errno = 7012
1989 ERROR_CTX_MODEM_RESPONSE_NO_CARRIER syscall.Errno = 7013
1990 ERROR_CTX_MODEM_RESPONSE_NO_DIALTONE syscall.Errno = 7014
1991 ERROR_CTX_MODEM_RESPONSE_BUSY syscall.Errno = 7015
1992 ERROR_CTX_MODEM_RESPONSE_VOICE syscall.Errno = 7016
1993 ERROR_CTX_TD_ERROR syscall.Errno = 7017
1994 ERROR_CTX_WINSTATION_NOT_FOUND syscall.Errno = 7022
1995 ERROR_CTX_WINSTATION_ALREADY_EXISTS syscall.Errno = 7023
1996 ERROR_CTX_WINSTATION_BUSY syscall.Errno = 7024
1997 ERROR_CTX_BAD_VIDEO_MODE syscall.Errno = 7025
1998 ERROR_CTX_GRAPHICS_INVALID syscall.Errno = 7035
1999 ERROR_CTX_LOGON_DISABLED syscall.Errno = 7037
2000 ERROR_CTX_NOT_CONSOLE syscall.Errno = 7038
2001 ERROR_CTX_CLIENT_QUERY_TIMEOUT syscall.Errno = 7040
2002 ERROR_CTX_CONSOLE_DISCONNECT syscall.Errno = 7041
2003 ERROR_CTX_CONSOLE_CONNECT syscall.Errno = 7042
2004 ERROR_CTX_SHADOW_DENIED syscall.Errno = 7044
2005 ERROR_CTX_WINSTATION_ACCESS_DENIED syscall.Errno = 7045
2006 ERROR_CTX_INVALID_WD syscall.Errno = 7049
2007 ERROR_CTX_SHADOW_INVALID syscall.Errno = 7050
2008 ERROR_CTX_SHADOW_DISABLED syscall.Errno = 7051
2009 ERROR_CTX_CLIENT_LICENSE_IN_USE syscall.Errno = 7052
2010 ERROR_CTX_CLIENT_LICENSE_NOT_SET syscall.Errno = 7053
2011 ERROR_CTX_LICENSE_NOT_AVAILABLE syscall.Errno = 7054
2012 ERROR_CTX_LICENSE_CLIENT_INVALID syscall.Errno = 7055
2013 ERROR_CTX_LICENSE_EXPIRED syscall.Errno = 7056
2014 ERROR_CTX_SHADOW_NOT_RUNNING syscall.Errno = 7057
2015 ERROR_CTX_SHADOW_ENDED_BY_MODE_CHANGE syscall.Errno = 7058
2016 ERROR_ACTIVATION_COUNT_EXCEEDED syscall.Errno = 7059
2017 ERROR_CTX_WINSTATIONS_DISABLED syscall.Errno = 7060
2018 ERROR_CTX_ENCRYPTION_LEVEL_REQUIRED syscall.Errno = 7061
2019 ERROR_CTX_SESSION_IN_USE syscall.Errno = 7062
2020 ERROR_CTX_NO_FORCE_LOGOFF syscall.Errno = 7063
2021 ERROR_CTX_ACCOUNT_RESTRICTION syscall.Errno = 7064
2022 ERROR_RDP_PROTOCOL_ERROR syscall.Errno = 7065
2023 ERROR_CTX_CDM_CONNECT syscall.Errno = 7066
2024 ERROR_CTX_CDM_DISCONNECT syscall.Errno = 7067
2025 ERROR_CTX_SECURITY_LAYER_ERROR syscall.Errno = 7068
2026 ERROR_TS_INCOMPATIBLE_SESSIONS syscall.Errno = 7069
2027 ERROR_TS_VIDEO_SUBSYSTEM_ERROR syscall.Errno = 7070
2028 FRS_ERR_INVALID_API_SEQUENCE syscall.Errno = 8001
2029 FRS_ERR_STARTING_SERVICE syscall.Errno = 8002
2030 FRS_ERR_STOPPING_SERVICE syscall.Errno = 8003
2031 FRS_ERR_INTERNAL_API syscall.Errno = 8004
2032 FRS_ERR_INTERNAL syscall.Errno = 8005
2033 FRS_ERR_SERVICE_COMM syscall.Errno = 8006
2034 FRS_ERR_INSUFFICIENT_PRIV syscall.Errno = 8007
2035 FRS_ERR_AUTHENTICATION syscall.Errno = 8008
2036 FRS_ERR_PARENT_INSUFFICIENT_PRIV syscall.Errno = 8009
2037 FRS_ERR_PARENT_AUTHENTICATION syscall.Errno = 8010
2038 FRS_ERR_CHILD_TO_PARENT_COMM syscall.Errno = 8011
2039 FRS_ERR_PARENT_TO_CHILD_COMM syscall.Errno = 8012
2040 FRS_ERR_SYSVOL_POPULATE syscall.Errno = 8013
2041 FRS_ERR_SYSVOL_POPULATE_TIMEOUT syscall.Errno = 8014
2042 FRS_ERR_SYSVOL_IS_BUSY syscall.Errno = 8015
2043 FRS_ERR_SYSVOL_DEMOTE syscall.Errno = 8016
2044 FRS_ERR_INVALID_SERVICE_PARAMETER syscall.Errno = 8017
2045 DS_S_SUCCESS = ERROR_SUCCESS
2046 ERROR_DS_NOT_INSTALLED syscall.Errno = 8200
2047 ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY syscall.Errno = 8201
2048 ERROR_DS_NO_ATTRIBUTE_OR_VALUE syscall.Errno = 8202
2049 ERROR_DS_INVALID_ATTRIBUTE_SYNTAX syscall.Errno = 8203
2050 ERROR_DS_ATTRIBUTE_TYPE_UNDEFINED syscall.Errno = 8204
2051 ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS syscall.Errno = 8205
2052 ERROR_DS_BUSY syscall.Errno = 8206
2053 ERROR_DS_UNAVAILABLE syscall.Errno = 8207
2054 ERROR_DS_NO_RIDS_ALLOCATED syscall.Errno = 8208
2055 ERROR_DS_NO_MORE_RIDS syscall.Errno = 8209
2056 ERROR_DS_INCORRECT_ROLE_OWNER syscall.Errno = 8210
2057 ERROR_DS_RIDMGR_INIT_ERROR syscall.Errno = 8211
2058 ERROR_DS_OBJ_CLASS_VIOLATION syscall.Errno = 8212
2059 ERROR_DS_CANT_ON_NON_LEAF syscall.Errno = 8213
2060 ERROR_DS_CANT_ON_RDN syscall.Errno = 8214
2061 ERROR_DS_CANT_MOD_OBJ_CLASS syscall.Errno = 8215
2062 ERROR_DS_CROSS_DOM_MOVE_ERROR syscall.Errno = 8216
2063 ERROR_DS_GC_NOT_AVAILABLE syscall.Errno = 8217
2064 ERROR_SHARED_POLICY syscall.Errno = 8218
2065 ERROR_POLICY_OBJECT_NOT_FOUND syscall.Errno = 8219
2066 ERROR_POLICY_ONLY_IN_DS syscall.Errno = 8220
2067 ERROR_PROMOTION_ACTIVE syscall.Errno = 8221
2068 ERROR_NO_PROMOTION_ACTIVE syscall.Errno = 8222
2069 ERROR_DS_OPERATIONS_ERROR syscall.Errno = 8224
2070 ERROR_DS_PROTOCOL_ERROR syscall.Errno = 8225
2071 ERROR_DS_TIMELIMIT_EXCEEDED syscall.Errno = 8226
2072 ERROR_DS_SIZELIMIT_EXCEEDED syscall.Errno = 8227
2073 ERROR_DS_ADMIN_LIMIT_EXCEEDED syscall.Errno = 8228
2074 ERROR_DS_COMPARE_FALSE syscall.Errno = 8229
2075 ERROR_DS_COMPARE_TRUE syscall.Errno = 8230
2076 ERROR_DS_AUTH_METHOD_NOT_SUPPORTED syscall.Errno = 8231
2077 ERROR_DS_STRONG_AUTH_REQUIRED syscall.Errno = 8232
2078 ERROR_DS_INAPPROPRIATE_AUTH syscall.Errno = 8233
2079 ERROR_DS_AUTH_UNKNOWN syscall.Errno = 8234
2080 ERROR_DS_REFERRAL syscall.Errno = 8235
2081 ERROR_DS_UNAVAILABLE_CRIT_EXTENSION syscall.Errno = 8236
2082 ERROR_DS_CONFIDENTIALITY_REQUIRED syscall.Errno = 8237
2083 ERROR_DS_INAPPROPRIATE_MATCHING syscall.Errno = 8238
2084 ERROR_DS_CONSTRAINT_VIOLATION syscall.Errno = 8239
2085 ERROR_DS_NO_SUCH_OBJECT syscall.Errno = 8240
2086 ERROR_DS_ALIAS_PROBLEM syscall.Errno = 8241
2087 ERROR_DS_INVALID_DN_SYNTAX syscall.Errno = 8242
2088 ERROR_DS_IS_LEAF syscall.Errno = 8243
2089 ERROR_DS_ALIAS_DEREF_PROBLEM syscall.Errno = 8244
2090 ERROR_DS_UNWILLING_TO_PERFORM syscall.Errno = 8245
2091 ERROR_DS_LOOP_DETECT syscall.Errno = 8246
2092 ERROR_DS_NAMING_VIOLATION syscall.Errno = 8247
2093 ERROR_DS_OBJECT_RESULTS_TOO_LARGE syscall.Errno = 8248
2094 ERROR_DS_AFFECTS_MULTIPLE_DSAS syscall.Errno = 8249
2095 ERROR_DS_SERVER_DOWN syscall.Errno = 8250
2096 ERROR_DS_LOCAL_ERROR syscall.Errno = 8251
2097 ERROR_DS_ENCODING_ERROR syscall.Errno = 8252
2098 ERROR_DS_DECODING_ERROR syscall.Errno = 8253
2099 ERROR_DS_FILTER_UNKNOWN syscall.Errno = 8254
2100 ERROR_DS_PARAM_ERROR syscall.Errno = 8255
2101 ERROR_DS_NOT_SUPPORTED syscall.Errno = 8256
2102 ERROR_DS_NO_RESULTS_RETURNED syscall.Errno = 8257
2103 ERROR_DS_CONTROL_NOT_FOUND syscall.Errno = 8258
2104 ERROR_DS_CLIENT_LOOP syscall.Errno = 8259
2105 ERROR_DS_REFERRAL_LIMIT_EXCEEDED syscall.Errno = 8260
2106 ERROR_DS_SORT_CONTROL_MISSING syscall.Errno = 8261
2107 ERROR_DS_OFFSET_RANGE_ERROR syscall.Errno = 8262
2108 ERROR_DS_RIDMGR_DISABLED syscall.Errno = 8263
2109 ERROR_DS_ROOT_MUST_BE_NC syscall.Errno = 8301
2110 ERROR_DS_ADD_REPLICA_INHIBITED syscall.Errno = 8302
2111 ERROR_DS_ATT_NOT_DEF_IN_SCHEMA syscall.Errno = 8303
2112 ERROR_DS_MAX_OBJ_SIZE_EXCEEDED syscall.Errno = 8304
2113 ERROR_DS_OBJ_STRING_NAME_EXISTS syscall.Errno = 8305
2114 ERROR_DS_NO_RDN_DEFINED_IN_SCHEMA syscall.Errno = 8306
2115 ERROR_DS_RDN_DOESNT_MATCH_SCHEMA syscall.Errno = 8307
2116 ERROR_DS_NO_REQUESTED_ATTS_FOUND syscall.Errno = 8308
2117 ERROR_DS_USER_BUFFER_TO_SMALL syscall.Errno = 8309
2118 ERROR_DS_ATT_IS_NOT_ON_OBJ syscall.Errno = 8310
2119 ERROR_DS_ILLEGAL_MOD_OPERATION syscall.Errno = 8311
2120 ERROR_DS_OBJ_TOO_LARGE syscall.Errno = 8312
2121 ERROR_DS_BAD_INSTANCE_TYPE syscall.Errno = 8313
2122 ERROR_DS_MASTERDSA_REQUIRED syscall.Errno = 8314
2123 ERROR_DS_OBJECT_CLASS_REQUIRED syscall.Errno = 8315
2124 ERROR_DS_MISSING_REQUIRED_ATT syscall.Errno = 8316
2125 ERROR_DS_ATT_NOT_DEF_FOR_CLASS syscall.Errno = 8317
2126 ERROR_DS_ATT_ALREADY_EXISTS syscall.Errno = 8318
2127 ERROR_DS_CANT_ADD_ATT_VALUES syscall.Errno = 8320
2128 ERROR_DS_SINGLE_VALUE_CONSTRAINT syscall.Errno = 8321
2129 ERROR_DS_RANGE_CONSTRAINT syscall.Errno = 8322
2130 ERROR_DS_ATT_VAL_ALREADY_EXISTS syscall.Errno = 8323
2131 ERROR_DS_CANT_REM_MISSING_ATT syscall.Errno = 8324
2132 ERROR_DS_CANT_REM_MISSING_ATT_VAL syscall.Errno = 8325
2133 ERROR_DS_ROOT_CANT_BE_SUBREF syscall.Errno = 8326
2134 ERROR_DS_NO_CHAINING syscall.Errno = 8327
2135 ERROR_DS_NO_CHAINED_EVAL syscall.Errno = 8328
2136 ERROR_DS_NO_PARENT_OBJECT syscall.Errno = 8329
2137 ERROR_DS_PARENT_IS_AN_ALIAS syscall.Errno = 8330
2138 ERROR_DS_CANT_MIX_MASTER_AND_REPS syscall.Errno = 8331
2139 ERROR_DS_CHILDREN_EXIST syscall.Errno = 8332
2140 ERROR_DS_OBJ_NOT_FOUND syscall.Errno = 8333
2141 ERROR_DS_ALIASED_OBJ_MISSING syscall.Errno = 8334
2142 ERROR_DS_BAD_NAME_SYNTAX syscall.Errno = 8335
2143 ERROR_DS_ALIAS_POINTS_TO_ALIAS syscall.Errno = 8336
2144 ERROR_DS_CANT_DEREF_ALIAS syscall.Errno = 8337
2145 ERROR_DS_OUT_OF_SCOPE syscall.Errno = 8338
2146 ERROR_DS_OBJECT_BEING_REMOVED syscall.Errno = 8339
2147 ERROR_DS_CANT_DELETE_DSA_OBJ syscall.Errno = 8340
2148 ERROR_DS_GENERIC_ERROR syscall.Errno = 8341
2149 ERROR_DS_DSA_MUST_BE_INT_MASTER syscall.Errno = 8342
2150 ERROR_DS_CLASS_NOT_DSA syscall.Errno = 8343
2151 ERROR_DS_INSUFF_ACCESS_RIGHTS syscall.Errno = 8344
2152 ERROR_DS_ILLEGAL_SUPERIOR syscall.Errno = 8345
2153 ERROR_DS_ATTRIBUTE_OWNED_BY_SAM syscall.Errno = 8346
2154 ERROR_DS_NAME_TOO_MANY_PARTS syscall.Errno = 8347
2155 ERROR_DS_NAME_TOO_LONG syscall.Errno = 8348
2156 ERROR_DS_NAME_VALUE_TOO_LONG syscall.Errno = 8349
2157 ERROR_DS_NAME_UNPARSEABLE syscall.Errno = 8350
2158 ERROR_DS_NAME_TYPE_UNKNOWN syscall.Errno = 8351
2159 ERROR_DS_NOT_AN_OBJECT syscall.Errno = 8352
2160 ERROR_DS_SEC_DESC_TOO_SHORT syscall.Errno = 8353
2161 ERROR_DS_SEC_DESC_INVALID syscall.Errno = 8354
2162 ERROR_DS_NO_DELETED_NAME syscall.Errno = 8355
2163 ERROR_DS_SUBREF_MUST_HAVE_PARENT syscall.Errno = 8356
2164 ERROR_DS_NCNAME_MUST_BE_NC syscall.Errno = 8357
2165 ERROR_DS_CANT_ADD_SYSTEM_ONLY syscall.Errno = 8358
2166 ERROR_DS_CLASS_MUST_BE_CONCRETE syscall.Errno = 8359
2167 ERROR_DS_INVALID_DMD syscall.Errno = 8360
2168 ERROR_DS_OBJ_GUID_EXISTS syscall.Errno = 8361
2169 ERROR_DS_NOT_ON_BACKLINK syscall.Errno = 8362
2170 ERROR_DS_NO_CROSSREF_FOR_NC syscall.Errno = 8363
2171 ERROR_DS_SHUTTING_DOWN syscall.Errno = 8364
2172 ERROR_DS_UNKNOWN_OPERATION syscall.Errno = 8365
2173 ERROR_DS_INVALID_ROLE_OWNER syscall.Errno = 8366
2174 ERROR_DS_COULDNT_CONTACT_FSMO syscall.Errno = 8367
2175 ERROR_DS_CROSS_NC_DN_RENAME syscall.Errno = 8368
2176 ERROR_DS_CANT_MOD_SYSTEM_ONLY syscall.Errno = 8369
2177 ERROR_DS_REPLICATOR_ONLY syscall.Errno = 8370
2178 ERROR_DS_OBJ_CLASS_NOT_DEFINED syscall.Errno = 8371
2179 ERROR_DS_OBJ_CLASS_NOT_SUBCLASS syscall.Errno = 8372
2180 ERROR_DS_NAME_REFERENCE_INVALID syscall.Errno = 8373
2181 ERROR_DS_CROSS_REF_EXISTS syscall.Errno = 8374
2182 ERROR_DS_CANT_DEL_MASTER_CROSSREF syscall.Errno = 8375
2183 ERROR_DS_SUBTREE_NOTIFY_NOT_NC_HEAD syscall.Errno = 8376
2184 ERROR_DS_NOTIFY_FILTER_TOO_COMPLEX syscall.Errno = 8377
2185 ERROR_DS_DUP_RDN syscall.Errno = 8378
2186 ERROR_DS_DUP_OID syscall.Errno = 8379
2187 ERROR_DS_DUP_MAPI_ID syscall.Errno = 8380
2188 ERROR_DS_DUP_SCHEMA_ID_GUID syscall.Errno = 8381
2189 ERROR_DS_DUP_LDAP_DISPLAY_NAME syscall.Errno = 8382
2190 ERROR_DS_SEMANTIC_ATT_TEST syscall.Errno = 8383
2191 ERROR_DS_SYNTAX_MISMATCH syscall.Errno = 8384
2192 ERROR_DS_EXISTS_IN_MUST_HAVE syscall.Errno = 8385
2193 ERROR_DS_EXISTS_IN_MAY_HAVE syscall.Errno = 8386
2194 ERROR_DS_NONEXISTENT_MAY_HAVE syscall.Errno = 8387
2195 ERROR_DS_NONEXISTENT_MUST_HAVE syscall.Errno = 8388
2196 ERROR_DS_AUX_CLS_TEST_FAIL syscall.Errno = 8389
2197 ERROR_DS_NONEXISTENT_POSS_SUP syscall.Errno = 8390
2198 ERROR_DS_SUB_CLS_TEST_FAIL syscall.Errno = 8391
2199 ERROR_DS_BAD_RDN_ATT_ID_SYNTAX syscall.Errno = 8392
2200 ERROR_DS_EXISTS_IN_AUX_CLS syscall.Errno = 8393
2201 ERROR_DS_EXISTS_IN_SUB_CLS syscall.Errno = 8394
2202 ERROR_DS_EXISTS_IN_POSS_SUP syscall.Errno = 8395
2203 ERROR_DS_RECALCSCHEMA_FAILED syscall.Errno = 8396
2204 ERROR_DS_TREE_DELETE_NOT_FINISHED syscall.Errno = 8397
2205 ERROR_DS_CANT_DELETE syscall.Errno = 8398
2206 ERROR_DS_ATT_SCHEMA_REQ_ID syscall.Errno = 8399
2207 ERROR_DS_BAD_ATT_SCHEMA_SYNTAX syscall.Errno = 8400
2208 ERROR_DS_CANT_CACHE_ATT syscall.Errno = 8401
2209 ERROR_DS_CANT_CACHE_CLASS syscall.Errno = 8402
2210 ERROR_DS_CANT_REMOVE_ATT_CACHE syscall.Errno = 8403
2211 ERROR_DS_CANT_REMOVE_CLASS_CACHE syscall.Errno = 8404
2212 ERROR_DS_CANT_RETRIEVE_DN syscall.Errno = 8405
2213 ERROR_DS_MISSING_SUPREF syscall.Errno = 8406
2214 ERROR_DS_CANT_RETRIEVE_INSTANCE syscall.Errno = 8407
2215 ERROR_DS_CODE_INCONSISTENCY syscall.Errno = 8408
2216 ERROR_DS_DATABASE_ERROR syscall.Errno = 8409
2217 ERROR_DS_GOVERNSID_MISSING syscall.Errno = 8410
2218 ERROR_DS_MISSING_EXPECTED_ATT syscall.Errno = 8411
2219 ERROR_DS_NCNAME_MISSING_CR_REF syscall.Errno = 8412
2220 ERROR_DS_SECURITY_CHECKING_ERROR syscall.Errno = 8413
2221 ERROR_DS_SCHEMA_NOT_LOADED syscall.Errno = 8414
2222 ERROR_DS_SCHEMA_ALLOC_FAILED syscall.Errno = 8415
2223 ERROR_DS_ATT_SCHEMA_REQ_SYNTAX syscall.Errno = 8416
2224 ERROR_DS_GCVERIFY_ERROR syscall.Errno = 8417
2225 ERROR_DS_DRA_SCHEMA_MISMATCH syscall.Errno = 8418
2226 ERROR_DS_CANT_FIND_DSA_OBJ syscall.Errno = 8419
2227 ERROR_DS_CANT_FIND_EXPECTED_NC syscall.Errno = 8420
2228 ERROR_DS_CANT_FIND_NC_IN_CACHE syscall.Errno = 8421
2229 ERROR_DS_CANT_RETRIEVE_CHILD syscall.Errno = 8422
2230 ERROR_DS_SECURITY_ILLEGAL_MODIFY syscall.Errno = 8423
2231 ERROR_DS_CANT_REPLACE_HIDDEN_REC syscall.Errno = 8424
2232 ERROR_DS_BAD_HIERARCHY_FILE syscall.Errno = 8425
2233 ERROR_DS_BUILD_HIERARCHY_TABLE_FAILED syscall.Errno = 8426
2234 ERROR_DS_CONFIG_PARAM_MISSING syscall.Errno = 8427
2235 ERROR_DS_COUNTING_AB_INDICES_FAILED syscall.Errno = 8428
2236 ERROR_DS_HIERARCHY_TABLE_MALLOC_FAILED syscall.Errno = 8429
2237 ERROR_DS_INTERNAL_FAILURE syscall.Errno = 8430
2238 ERROR_DS_UNKNOWN_ERROR syscall.Errno = 8431
2239 ERROR_DS_ROOT_REQUIRES_CLASS_TOP syscall.Errno = 8432
2240 ERROR_DS_REFUSING_FSMO_ROLES syscall.Errno = 8433
2241 ERROR_DS_MISSING_FSMO_SETTINGS syscall.Errno = 8434
2242 ERROR_DS_UNABLE_TO_SURRENDER_ROLES syscall.Errno = 8435
2243 ERROR_DS_DRA_GENERIC syscall.Errno = 8436
2244 ERROR_DS_DRA_INVALID_PARAMETER syscall.Errno = 8437
2245 ERROR_DS_DRA_BUSY syscall.Errno = 8438
2246 ERROR_DS_DRA_BAD_DN syscall.Errno = 8439
2247 ERROR_DS_DRA_BAD_NC syscall.Errno = 8440
2248 ERROR_DS_DRA_DN_EXISTS syscall.Errno = 8441
2249 ERROR_DS_DRA_INTERNAL_ERROR syscall.Errno = 8442
2250 ERROR_DS_DRA_INCONSISTENT_DIT syscall.Errno = 8443
2251 ERROR_DS_DRA_CONNECTION_FAILED syscall.Errno = 8444
2252 ERROR_DS_DRA_BAD_INSTANCE_TYPE syscall.Errno = 8445
2253 ERROR_DS_DRA_OUT_OF_MEM syscall.Errno = 8446
2254 ERROR_DS_DRA_MAIL_PROBLEM syscall.Errno = 8447
2255 ERROR_DS_DRA_REF_ALREADY_EXISTS syscall.Errno = 8448
2256 ERROR_DS_DRA_REF_NOT_FOUND syscall.Errno = 8449
2257 ERROR_DS_DRA_OBJ_IS_REP_SOURCE syscall.Errno = 8450
2258 ERROR_DS_DRA_DB_ERROR syscall.Errno = 8451
2259 ERROR_DS_DRA_NO_REPLICA syscall.Errno = 8452
2260 ERROR_DS_DRA_ACCESS_DENIED syscall.Errno = 8453
2261 ERROR_DS_DRA_NOT_SUPPORTED syscall.Errno = 8454
2262 ERROR_DS_DRA_RPC_CANCELLED syscall.Errno = 8455
2263 ERROR_DS_DRA_SOURCE_DISABLED syscall.Errno = 8456
2264 ERROR_DS_DRA_SINK_DISABLED syscall.Errno = 8457
2265 ERROR_DS_DRA_NAME_COLLISION syscall.Errno = 8458
2266 ERROR_DS_DRA_SOURCE_REINSTALLED syscall.Errno = 8459
2267 ERROR_DS_DRA_MISSING_PARENT syscall.Errno = 8460
2268 ERROR_DS_DRA_PREEMPTED syscall.Errno = 8461
2269 ERROR_DS_DRA_ABANDON_SYNC syscall.Errno = 8462
2270 ERROR_DS_DRA_SHUTDOWN syscall.Errno = 8463
2271 ERROR_DS_DRA_INCOMPATIBLE_PARTIAL_SET syscall.Errno = 8464
2272 ERROR_DS_DRA_SOURCE_IS_PARTIAL_REPLICA syscall.Errno = 8465
2273 ERROR_DS_DRA_EXTN_CONNECTION_FAILED syscall.Errno = 8466
2274 ERROR_DS_INSTALL_SCHEMA_MISMATCH syscall.Errno = 8467
2275 ERROR_DS_DUP_LINK_ID syscall.Errno = 8468
2276 ERROR_DS_NAME_ERROR_RESOLVING syscall.Errno = 8469
2277 ERROR_DS_NAME_ERROR_NOT_FOUND syscall.Errno = 8470
2278 ERROR_DS_NAME_ERROR_NOT_UNIQUE syscall.Errno = 8471
2279 ERROR_DS_NAME_ERROR_NO_MAPPING syscall.Errno = 8472
2280 ERROR_DS_NAME_ERROR_DOMAIN_ONLY syscall.Errno = 8473
2281 ERROR_DS_NAME_ERROR_NO_SYNTACTICAL_MAPPING syscall.Errno = 8474
2282 ERROR_DS_CONSTRUCTED_ATT_MOD syscall.Errno = 8475
2283 ERROR_DS_WRONG_OM_OBJ_CLASS syscall.Errno = 8476
2284 ERROR_DS_DRA_REPL_PENDING syscall.Errno = 8477
2285 ERROR_DS_DS_REQUIRED syscall.Errno = 8478
2286 ERROR_DS_INVALID_LDAP_DISPLAY_NAME syscall.Errno = 8479
2287 ERROR_DS_NON_BASE_SEARCH syscall.Errno = 8480
2288 ERROR_DS_CANT_RETRIEVE_ATTS syscall.Errno = 8481
2289 ERROR_DS_BACKLINK_WITHOUT_LINK syscall.Errno = 8482
2290 ERROR_DS_EPOCH_MISMATCH syscall.Errno = 8483
2291 ERROR_DS_SRC_NAME_MISMATCH syscall.Errno = 8484
2292 ERROR_DS_SRC_AND_DST_NC_IDENTICAL syscall.Errno = 8485
2293 ERROR_DS_DST_NC_MISMATCH syscall.Errno = 8486
2294 ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC syscall.Errno = 8487
2295 ERROR_DS_SRC_GUID_MISMATCH syscall.Errno = 8488
2296 ERROR_DS_CANT_MOVE_DELETED_OBJECT syscall.Errno = 8489
2297 ERROR_DS_PDC_OPERATION_IN_PROGRESS syscall.Errno = 8490
2298 ERROR_DS_CROSS_DOMAIN_CLEANUP_REQD syscall.Errno = 8491
2299 ERROR_DS_ILLEGAL_XDOM_MOVE_OPERATION syscall.Errno = 8492
2300 ERROR_DS_CANT_WITH_ACCT_GROUP_MEMBERSHPS syscall.Errno = 8493
2301 ERROR_DS_NC_MUST_HAVE_NC_PARENT syscall.Errno = 8494
2302 ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE syscall.Errno = 8495
2303 ERROR_DS_DST_DOMAIN_NOT_NATIVE syscall.Errno = 8496
2304 ERROR_DS_MISSING_INFRASTRUCTURE_CONTAINER syscall.Errno = 8497
2305 ERROR_DS_CANT_MOVE_ACCOUNT_GROUP syscall.Errno = 8498
2306 ERROR_DS_CANT_MOVE_RESOURCE_GROUP syscall.Errno = 8499
2307 ERROR_DS_INVALID_SEARCH_FLAG syscall.Errno = 8500
2308 ERROR_DS_NO_TREE_DELETE_ABOVE_NC syscall.Errno = 8501
2309 ERROR_DS_COULDNT_LOCK_TREE_FOR_DELETE syscall.Errno = 8502
2310 ERROR_DS_COULDNT_IDENTIFY_OBJECTS_FOR_TREE_DELETE syscall.Errno = 8503
2311 ERROR_DS_SAM_INIT_FAILURE syscall.Errno = 8504
2312 ERROR_DS_SENSITIVE_GROUP_VIOLATION syscall.Errno = 8505
2313 ERROR_DS_CANT_MOD_PRIMARYGROUPID syscall.Errno = 8506
2314 ERROR_DS_ILLEGAL_BASE_SCHEMA_MOD syscall.Errno = 8507
2315 ERROR_DS_NONSAFE_SCHEMA_CHANGE syscall.Errno = 8508
2316 ERROR_DS_SCHEMA_UPDATE_DISALLOWED syscall.Errno = 8509
2317 ERROR_DS_CANT_CREATE_UNDER_SCHEMA syscall.Errno = 8510
2318 ERROR_DS_INSTALL_NO_SRC_SCH_VERSION syscall.Errno = 8511
2319 ERROR_DS_INSTALL_NO_SCH_VERSION_IN_INIFILE syscall.Errno = 8512
2320 ERROR_DS_INVALID_GROUP_TYPE syscall.Errno = 8513
2321 ERROR_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN syscall.Errno = 8514
2322 ERROR_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN syscall.Errno = 8515
2323 ERROR_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER syscall.Errno = 8516
2324 ERROR_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER syscall.Errno = 8517
2325 ERROR_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER syscall.Errno = 8518
2326 ERROR_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER syscall.Errno = 8519
2327 ERROR_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER syscall.Errno = 8520
2328 ERROR_DS_HAVE_PRIMARY_MEMBERS syscall.Errno = 8521
2329 ERROR_DS_STRING_SD_CONVERSION_FAILED syscall.Errno = 8522
2330 ERROR_DS_NAMING_MASTER_GC syscall.Errno = 8523
2331 ERROR_DS_DNS_LOOKUP_FAILURE syscall.Errno = 8524
2332 ERROR_DS_COULDNT_UPDATE_SPNS syscall.Errno = 8525
2333 ERROR_DS_CANT_RETRIEVE_SD syscall.Errno = 8526
2334 ERROR_DS_KEY_NOT_UNIQUE syscall.Errno = 8527
2335 ERROR_DS_WRONG_LINKED_ATT_SYNTAX syscall.Errno = 8528
2336 ERROR_DS_SAM_NEED_BOOTKEY_PASSWORD syscall.Errno = 8529
2337 ERROR_DS_SAM_NEED_BOOTKEY_FLOPPY syscall.Errno = 8530
2338 ERROR_DS_CANT_START syscall.Errno = 8531
2339 ERROR_DS_INIT_FAILURE syscall.Errno = 8532
2340 ERROR_DS_NO_PKT_PRIVACY_ON_CONNECTION syscall.Errno = 8533
2341 ERROR_DS_SOURCE_DOMAIN_IN_FOREST syscall.Errno = 8534
2342 ERROR_DS_DESTINATION_DOMAIN_NOT_IN_FOREST syscall.Errno = 8535
2343 ERROR_DS_DESTINATION_AUDITING_NOT_ENABLED syscall.Errno = 8536
2344 ERROR_DS_CANT_FIND_DC_FOR_SRC_DOMAIN syscall.Errno = 8537
2345 ERROR_DS_SRC_OBJ_NOT_GROUP_OR_USER syscall.Errno = 8538
2346 ERROR_DS_SRC_SID_EXISTS_IN_FOREST syscall.Errno = 8539
2347 ERROR_DS_SRC_AND_DST_OBJECT_CLASS_MISMATCH syscall.Errno = 8540
2348 ERROR_SAM_INIT_FAILURE syscall.Errno = 8541
2349 ERROR_DS_DRA_SCHEMA_INFO_SHIP syscall.Errno = 8542
2350 ERROR_DS_DRA_SCHEMA_CONFLICT syscall.Errno = 8543
2351 ERROR_DS_DRA_EARLIER_SCHEMA_CONFLICT syscall.Errno = 8544
2352 ERROR_DS_DRA_OBJ_NC_MISMATCH syscall.Errno = 8545
2353 ERROR_DS_NC_STILL_HAS_DSAS syscall.Errno = 8546
2354 ERROR_DS_GC_REQUIRED syscall.Errno = 8547
2355 ERROR_DS_LOCAL_MEMBER_OF_LOCAL_ONLY syscall.Errno = 8548
2356 ERROR_DS_NO_FPO_IN_UNIVERSAL_GROUPS syscall.Errno = 8549
2357 ERROR_DS_CANT_ADD_TO_GC syscall.Errno = 8550
2358 ERROR_DS_NO_CHECKPOINT_WITH_PDC syscall.Errno = 8551
2359 ERROR_DS_SOURCE_AUDITING_NOT_ENABLED syscall.Errno = 8552
2360 ERROR_DS_CANT_CREATE_IN_NONDOMAIN_NC syscall.Errno = 8553
2361 ERROR_DS_INVALID_NAME_FOR_SPN syscall.Errno = 8554
2362 ERROR_DS_FILTER_USES_CONTRUCTED_ATTRS syscall.Errno = 8555
2363 ERROR_DS_UNICODEPWD_NOT_IN_QUOTES syscall.Errno = 8556
2364 ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED syscall.Errno = 8557
2365 ERROR_DS_MUST_BE_RUN_ON_DST_DC syscall.Errno = 8558
2366 ERROR_DS_SRC_DC_MUST_BE_SP4_OR_GREATER syscall.Errno = 8559
2367 ERROR_DS_CANT_TREE_DELETE_CRITICAL_OBJ syscall.Errno = 8560
2368 ERROR_DS_INIT_FAILURE_CONSOLE syscall.Errno = 8561
2369 ERROR_DS_SAM_INIT_FAILURE_CONSOLE syscall.Errno = 8562
2370 ERROR_DS_FOREST_VERSION_TOO_HIGH syscall.Errno = 8563
2371 ERROR_DS_DOMAIN_VERSION_TOO_HIGH syscall.Errno = 8564
2372 ERROR_DS_FOREST_VERSION_TOO_LOW syscall.Errno = 8565
2373 ERROR_DS_DOMAIN_VERSION_TOO_LOW syscall.Errno = 8566
2374 ERROR_DS_INCOMPATIBLE_VERSION syscall.Errno = 8567
2375 ERROR_DS_LOW_DSA_VERSION syscall.Errno = 8568
2376 ERROR_DS_NO_BEHAVIOR_VERSION_IN_MIXEDDOMAIN syscall.Errno = 8569
2377 ERROR_DS_NOT_SUPPORTED_SORT_ORDER syscall.Errno = 8570
2378 ERROR_DS_NAME_NOT_UNIQUE syscall.Errno = 8571
2379 ERROR_DS_MACHINE_ACCOUNT_CREATED_PRENT4 syscall.Errno = 8572
2380 ERROR_DS_OUT_OF_VERSION_STORE syscall.Errno = 8573
2381 ERROR_DS_INCOMPATIBLE_CONTROLS_USED syscall.Errno = 8574
2382 ERROR_DS_NO_REF_DOMAIN syscall.Errno = 8575
2383 ERROR_DS_RESERVED_LINK_ID syscall.Errno = 8576
2384 ERROR_DS_LINK_ID_NOT_AVAILABLE syscall.Errno = 8577
2385 ERROR_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER syscall.Errno = 8578
2386 ERROR_DS_MODIFYDN_DISALLOWED_BY_INSTANCE_TYPE syscall.Errno = 8579
2387 ERROR_DS_NO_OBJECT_MOVE_IN_SCHEMA_NC syscall.Errno = 8580
2388 ERROR_DS_MODIFYDN_DISALLOWED_BY_FLAG syscall.Errno = 8581
2389 ERROR_DS_MODIFYDN_WRONG_GRANDPARENT syscall.Errno = 8582
2390 ERROR_DS_NAME_ERROR_TRUST_REFERRAL syscall.Errno = 8583
2391 ERROR_NOT_SUPPORTED_ON_STANDARD_SERVER syscall.Errno = 8584
2392 ERROR_DS_CANT_ACCESS_REMOTE_PART_OF_AD syscall.Errno = 8585
2393 ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE_V2 syscall.Errno = 8586
2394 ERROR_DS_THREAD_LIMIT_EXCEEDED syscall.Errno = 8587
2395 ERROR_DS_NOT_CLOSEST syscall.Errno = 8588
2396 ERROR_DS_CANT_DERIVE_SPN_WITHOUT_SERVER_REF syscall.Errno = 8589
2397 ERROR_DS_SINGLE_USER_MODE_FAILED syscall.Errno = 8590
2398 ERROR_DS_NTDSCRIPT_SYNTAX_ERROR syscall.Errno = 8591
2399 ERROR_DS_NTDSCRIPT_PROCESS_ERROR syscall.Errno = 8592
2400 ERROR_DS_DIFFERENT_REPL_EPOCHS syscall.Errno = 8593
2401 ERROR_DS_DRS_EXTENSIONS_CHANGED syscall.Errno = 8594
2402 ERROR_DS_REPLICA_SET_CHANGE_NOT_ALLOWED_ON_DISABLED_CR syscall.Errno = 8595
2403 ERROR_DS_NO_MSDS_INTID syscall.Errno = 8596
2404 ERROR_DS_DUP_MSDS_INTID syscall.Errno = 8597
2405 ERROR_DS_EXISTS_IN_RDNATTID syscall.Errno = 8598
2406 ERROR_DS_AUTHORIZATION_FAILED syscall.Errno = 8599
2407 ERROR_DS_INVALID_SCRIPT syscall.Errno = 8600
2408 ERROR_DS_REMOTE_CROSSREF_OP_FAILED syscall.Errno = 8601
2409 ERROR_DS_CROSS_REF_BUSY syscall.Errno = 8602
2410 ERROR_DS_CANT_DERIVE_SPN_FOR_DELETED_DOMAIN syscall.Errno = 8603
2411 ERROR_DS_CANT_DEMOTE_WITH_WRITEABLE_NC syscall.Errno = 8604
2412 ERROR_DS_DUPLICATE_ID_FOUND syscall.Errno = 8605
2413 ERROR_DS_INSUFFICIENT_ATTR_TO_CREATE_OBJECT syscall.Errno = 8606
2414 ERROR_DS_GROUP_CONVERSION_ERROR syscall.Errno = 8607
2415 ERROR_DS_CANT_MOVE_APP_BASIC_GROUP syscall.Errno = 8608
2416 ERROR_DS_CANT_MOVE_APP_QUERY_GROUP syscall.Errno = 8609
2417 ERROR_DS_ROLE_NOT_VERIFIED syscall.Errno = 8610
2418 ERROR_DS_WKO_CONTAINER_CANNOT_BE_SPECIAL syscall.Errno = 8611
2419 ERROR_DS_DOMAIN_RENAME_IN_PROGRESS syscall.Errno = 8612
2420 ERROR_DS_EXISTING_AD_CHILD_NC syscall.Errno = 8613
2421 ERROR_DS_REPL_LIFETIME_EXCEEDED syscall.Errno = 8614
2422 ERROR_DS_DISALLOWED_IN_SYSTEM_CONTAINER syscall.Errno = 8615
2423 ERROR_DS_LDAP_SEND_QUEUE_FULL syscall.Errno = 8616
2424 ERROR_DS_DRA_OUT_SCHEDULE_WINDOW syscall.Errno = 8617
2425 ERROR_DS_POLICY_NOT_KNOWN syscall.Errno = 8618
2426 ERROR_NO_SITE_SETTINGS_OBJECT syscall.Errno = 8619
2427 ERROR_NO_SECRETS syscall.Errno = 8620
2428 ERROR_NO_WRITABLE_DC_FOUND syscall.Errno = 8621
2429 ERROR_DS_NO_SERVER_OBJECT syscall.Errno = 8622
2430 ERROR_DS_NO_NTDSA_OBJECT syscall.Errno = 8623
2431 ERROR_DS_NON_ASQ_SEARCH syscall.Errno = 8624
2432 ERROR_DS_AUDIT_FAILURE syscall.Errno = 8625
2433 ERROR_DS_INVALID_SEARCH_FLAG_SUBTREE syscall.Errno = 8626
2434 ERROR_DS_INVALID_SEARCH_FLAG_TUPLE syscall.Errno = 8627
2435 ERROR_DS_HIERARCHY_TABLE_TOO_DEEP syscall.Errno = 8628
2436 ERROR_DS_DRA_CORRUPT_UTD_VECTOR syscall.Errno = 8629
2437 ERROR_DS_DRA_SECRETS_DENIED syscall.Errno = 8630
2438 ERROR_DS_RESERVED_MAPI_ID syscall.Errno = 8631
2439 ERROR_DS_MAPI_ID_NOT_AVAILABLE syscall.Errno = 8632
2440 ERROR_DS_DRA_MISSING_KRBTGT_SECRET syscall.Errno = 8633
2441 ERROR_DS_DOMAIN_NAME_EXISTS_IN_FOREST syscall.Errno = 8634
2442 ERROR_DS_FLAT_NAME_EXISTS_IN_FOREST syscall.Errno = 8635
2443 ERROR_INVALID_USER_PRINCIPAL_NAME syscall.Errno = 8636
2444 ERROR_DS_OID_MAPPED_GROUP_CANT_HAVE_MEMBERS syscall.Errno = 8637
2445 ERROR_DS_OID_NOT_FOUND syscall.Errno = 8638
2446 ERROR_DS_DRA_RECYCLED_TARGET syscall.Errno = 8639
2447 ERROR_DS_DISALLOWED_NC_REDIRECT syscall.Errno = 8640
2448 ERROR_DS_HIGH_ADLDS_FFL syscall.Errno = 8641
2449 ERROR_DS_HIGH_DSA_VERSION syscall.Errno = 8642
2450 ERROR_DS_LOW_ADLDS_FFL syscall.Errno = 8643
2451 ERROR_DOMAIN_SID_SAME_AS_LOCAL_WORKSTATION syscall.Errno = 8644
2452 ERROR_DS_UNDELETE_SAM_VALIDATION_FAILED syscall.Errno = 8645
2453 ERROR_INCORRECT_ACCOUNT_TYPE syscall.Errno = 8646
2454 ERROR_DS_SPN_VALUE_NOT_UNIQUE_IN_FOREST syscall.Errno = 8647
2455 ERROR_DS_UPN_VALUE_NOT_UNIQUE_IN_FOREST syscall.Errno = 8648
2456 ERROR_DS_MISSING_FOREST_TRUST syscall.Errno = 8649
2457 ERROR_DS_VALUE_KEY_NOT_UNIQUE syscall.Errno = 8650
2458 DNS_ERROR_RESPONSE_CODES_BASE syscall.Errno = 9000
2459 DNS_ERROR_RCODE_NO_ERROR = ERROR_SUCCESS
2460 DNS_ERROR_MASK syscall.Errno = 0x00002328
2461 DNS_ERROR_RCODE_FORMAT_ERROR syscall.Errno = 9001
2462 DNS_ERROR_RCODE_SERVER_FAILURE syscall.Errno = 9002
2463 DNS_ERROR_RCODE_NAME_ERROR syscall.Errno = 9003
2464 DNS_ERROR_RCODE_NOT_IMPLEMENTED syscall.Errno = 9004
2465 DNS_ERROR_RCODE_REFUSED syscall.Errno = 9005
2466 DNS_ERROR_RCODE_YXDOMAIN syscall.Errno = 9006
2467 DNS_ERROR_RCODE_YXRRSET syscall.Errno = 9007
2468 DNS_ERROR_RCODE_NXRRSET syscall.Errno = 9008
2469 DNS_ERROR_RCODE_NOTAUTH syscall.Errno = 9009
2470 DNS_ERROR_RCODE_NOTZONE syscall.Errno = 9010
2471 DNS_ERROR_RCODE_BADSIG syscall.Errno = 9016
2472 DNS_ERROR_RCODE_BADKEY syscall.Errno = 9017
2473 DNS_ERROR_RCODE_BADTIME syscall.Errno = 9018
2474 DNS_ERROR_RCODE_LAST = DNS_ERROR_RCODE_BADTIME
2475 DNS_ERROR_DNSSEC_BASE syscall.Errno = 9100
2476 DNS_ERROR_KEYMASTER_REQUIRED syscall.Errno = 9101
2477 DNS_ERROR_NOT_ALLOWED_ON_SIGNED_ZONE syscall.Errno = 9102
2478 DNS_ERROR_NSEC3_INCOMPATIBLE_WITH_RSA_SHA1 syscall.Errno = 9103
2479 DNS_ERROR_NOT_ENOUGH_SIGNING_KEY_DESCRIPTORS syscall.Errno = 9104
2480 DNS_ERROR_UNSUPPORTED_ALGORITHM syscall.Errno = 9105
2481 DNS_ERROR_INVALID_KEY_SIZE syscall.Errno = 9106
2482 DNS_ERROR_SIGNING_KEY_NOT_ACCESSIBLE syscall.Errno = 9107
2483 DNS_ERROR_KSP_DOES_NOT_SUPPORT_PROTECTION syscall.Errno = 9108
2484 DNS_ERROR_UNEXPECTED_DATA_PROTECTION_ERROR syscall.Errno = 9109
2485 DNS_ERROR_UNEXPECTED_CNG_ERROR syscall.Errno = 9110
2486 DNS_ERROR_UNKNOWN_SIGNING_PARAMETER_VERSION syscall.Errno = 9111
2487 DNS_ERROR_KSP_NOT_ACCESSIBLE syscall.Errno = 9112
2488 DNS_ERROR_TOO_MANY_SKDS syscall.Errno = 9113
2489 DNS_ERROR_INVALID_ROLLOVER_PERIOD syscall.Errno = 9114
2490 DNS_ERROR_INVALID_INITIAL_ROLLOVER_OFFSET syscall.Errno = 9115
2491 DNS_ERROR_ROLLOVER_IN_PROGRESS syscall.Errno = 9116
2492 DNS_ERROR_STANDBY_KEY_NOT_PRESENT syscall.Errno = 9117
2493 DNS_ERROR_NOT_ALLOWED_ON_ZSK syscall.Errno = 9118
2494 DNS_ERROR_NOT_ALLOWED_ON_ACTIVE_SKD syscall.Errno = 9119
2495 DNS_ERROR_ROLLOVER_ALREADY_QUEUED syscall.Errno = 9120
2496 DNS_ERROR_NOT_ALLOWED_ON_UNSIGNED_ZONE syscall.Errno = 9121
2497 DNS_ERROR_BAD_KEYMASTER syscall.Errno = 9122
2498 DNS_ERROR_INVALID_SIGNATURE_VALIDITY_PERIOD syscall.Errno = 9123
2499 DNS_ERROR_INVALID_NSEC3_ITERATION_COUNT syscall.Errno = 9124
2500 DNS_ERROR_DNSSEC_IS_DISABLED syscall.Errno = 9125
2501 DNS_ERROR_INVALID_XML syscall.Errno = 9126
2502 DNS_ERROR_NO_VALID_TRUST_ANCHORS syscall.Errno = 9127
2503 DNS_ERROR_ROLLOVER_NOT_POKEABLE syscall.Errno = 9128
2504 DNS_ERROR_NSEC3_NAME_COLLISION syscall.Errno = 9129
2505 DNS_ERROR_NSEC_INCOMPATIBLE_WITH_NSEC3_RSA_SHA1 syscall.Errno = 9130
2506 DNS_ERROR_PACKET_FMT_BASE syscall.Errno = 9500
2507 DNS_INFO_NO_RECORDS syscall.Errno = 9501
2508 DNS_ERROR_BAD_PACKET syscall.Errno = 9502
2509 DNS_ERROR_NO_PACKET syscall.Errno = 9503
2510 DNS_ERROR_RCODE syscall.Errno = 9504
2511 DNS_ERROR_UNSECURE_PACKET syscall.Errno = 9505
2512 DNS_STATUS_PACKET_UNSECURE = DNS_ERROR_UNSECURE_PACKET
2513 DNS_REQUEST_PENDING syscall.Errno = 9506
2514 DNS_ERROR_NO_MEMORY = ERROR_OUTOFMEMORY
2515 DNS_ERROR_INVALID_NAME = ERROR_INVALID_NAME
2516 DNS_ERROR_INVALID_DATA = ERROR_INVALID_DATA
2517 DNS_ERROR_GENERAL_API_BASE syscall.Errno = 9550
2518 DNS_ERROR_INVALID_TYPE syscall.Errno = 9551
2519 DNS_ERROR_INVALID_IP_ADDRESS syscall.Errno = 9552
2520 DNS_ERROR_INVALID_PROPERTY syscall.Errno = 9553
2521 DNS_ERROR_TRY_AGAIN_LATER syscall.Errno = 9554
2522 DNS_ERROR_NOT_UNIQUE syscall.Errno = 9555
2523 DNS_ERROR_NON_RFC_NAME syscall.Errno = 9556
2524 DNS_STATUS_FQDN syscall.Errno = 9557
2525 DNS_STATUS_DOTTED_NAME syscall.Errno = 9558
2526 DNS_STATUS_SINGLE_PART_NAME syscall.Errno = 9559
2527 DNS_ERROR_INVALID_NAME_CHAR syscall.Errno = 9560
2528 DNS_ERROR_NUMERIC_NAME syscall.Errno = 9561
2529 DNS_ERROR_NOT_ALLOWED_ON_ROOT_SERVER syscall.Errno = 9562
2530 DNS_ERROR_NOT_ALLOWED_UNDER_DELEGATION syscall.Errno = 9563
2531 DNS_ERROR_CANNOT_FIND_ROOT_HINTS syscall.Errno = 9564
2532 DNS_ERROR_INCONSISTENT_ROOT_HINTS syscall.Errno = 9565
2533 DNS_ERROR_DWORD_VALUE_TOO_SMALL syscall.Errno = 9566
2534 DNS_ERROR_DWORD_VALUE_TOO_LARGE syscall.Errno = 9567
2535 DNS_ERROR_BACKGROUND_LOADING syscall.Errno = 9568
2536 DNS_ERROR_NOT_ALLOWED_ON_RODC syscall.Errno = 9569
2537 DNS_ERROR_NOT_ALLOWED_UNDER_DNAME syscall.Errno = 9570
2538 DNS_ERROR_DELEGATION_REQUIRED syscall.Errno = 9571
2539 DNS_ERROR_INVALID_POLICY_TABLE syscall.Errno = 9572
2540 DNS_ERROR_ADDRESS_REQUIRED syscall.Errno = 9573
2541 DNS_ERROR_ZONE_BASE syscall.Errno = 9600
2542 DNS_ERROR_ZONE_DOES_NOT_EXIST syscall.Errno = 9601
2543 DNS_ERROR_NO_ZONE_INFO syscall.Errno = 9602
2544 DNS_ERROR_INVALID_ZONE_OPERATION syscall.Errno = 9603
2545 DNS_ERROR_ZONE_CONFIGURATION_ERROR syscall.Errno = 9604
2546 DNS_ERROR_ZONE_HAS_NO_SOA_RECORD syscall.Errno = 9605
2547 DNS_ERROR_ZONE_HAS_NO_NS_RECORDS syscall.Errno = 9606
2548 DNS_ERROR_ZONE_LOCKED syscall.Errno = 9607
2549 DNS_ERROR_ZONE_CREATION_FAILED syscall.Errno = 9608
2550 DNS_ERROR_ZONE_ALREADY_EXISTS syscall.Errno = 9609
2551 DNS_ERROR_AUTOZONE_ALREADY_EXISTS syscall.Errno = 9610
2552 DNS_ERROR_INVALID_ZONE_TYPE syscall.Errno = 9611
2553 DNS_ERROR_SECONDARY_REQUIRES_MASTER_IP syscall.Errno = 9612
2554 DNS_ERROR_ZONE_NOT_SECONDARY syscall.Errno = 9613
2555 DNS_ERROR_NEED_SECONDARY_ADDRESSES syscall.Errno = 9614
2556 DNS_ERROR_WINS_INIT_FAILED syscall.Errno = 9615
2557 DNS_ERROR_NEED_WINS_SERVERS syscall.Errno = 9616
2558 DNS_ERROR_NBSTAT_INIT_FAILED syscall.Errno = 9617
2559 DNS_ERROR_SOA_DELETE_INVALID syscall.Errno = 9618
2560 DNS_ERROR_FORWARDER_ALREADY_EXISTS syscall.Errno = 9619
2561 DNS_ERROR_ZONE_REQUIRES_MASTER_IP syscall.Errno = 9620
2562 DNS_ERROR_ZONE_IS_SHUTDOWN syscall.Errno = 9621
2563 DNS_ERROR_ZONE_LOCKED_FOR_SIGNING syscall.Errno = 9622
2564 DNS_ERROR_DATAFILE_BASE syscall.Errno = 9650
2565 DNS_ERROR_PRIMARY_REQUIRES_DATAFILE syscall.Errno = 9651
2566 DNS_ERROR_INVALID_DATAFILE_NAME syscall.Errno = 9652
2567 DNS_ERROR_DATAFILE_OPEN_FAILURE syscall.Errno = 9653
2568 DNS_ERROR_FILE_WRITEBACK_FAILED syscall.Errno = 9654
2569 DNS_ERROR_DATAFILE_PARSING syscall.Errno = 9655
2570 DNS_ERROR_DATABASE_BASE syscall.Errno = 9700
2571 DNS_ERROR_RECORD_DOES_NOT_EXIST syscall.Errno = 9701
2572 DNS_ERROR_RECORD_FORMAT syscall.Errno = 9702
2573 DNS_ERROR_NODE_CREATION_FAILED syscall.Errno = 9703
2574 DNS_ERROR_UNKNOWN_RECORD_TYPE syscall.Errno = 9704
2575 DNS_ERROR_RECORD_TIMED_OUT syscall.Errno = 9705
2576 DNS_ERROR_NAME_NOT_IN_ZONE syscall.Errno = 9706
2577 DNS_ERROR_CNAME_LOOP syscall.Errno = 9707
2578 DNS_ERROR_NODE_IS_CNAME syscall.Errno = 9708
2579 DNS_ERROR_CNAME_COLLISION syscall.Errno = 9709
2580 DNS_ERROR_RECORD_ONLY_AT_ZONE_ROOT syscall.Errno = 9710
2581 DNS_ERROR_RECORD_ALREADY_EXISTS syscall.Errno = 9711
2582 DNS_ERROR_SECONDARY_DATA syscall.Errno = 9712
2583 DNS_ERROR_NO_CREATE_CACHE_DATA syscall.Errno = 9713
2584 DNS_ERROR_NAME_DOES_NOT_EXIST syscall.Errno = 9714
2585 DNS_WARNING_PTR_CREATE_FAILED syscall.Errno = 9715
2586 DNS_WARNING_DOMAIN_UNDELETED syscall.Errno = 9716
2587 DNS_ERROR_DS_UNAVAILABLE syscall.Errno = 9717
2588 DNS_ERROR_DS_ZONE_ALREADY_EXISTS syscall.Errno = 9718
2589 DNS_ERROR_NO_BOOTFILE_IF_DS_ZONE syscall.Errno = 9719
2590 DNS_ERROR_NODE_IS_DNAME syscall.Errno = 9720
2591 DNS_ERROR_DNAME_COLLISION syscall.Errno = 9721
2592 DNS_ERROR_ALIAS_LOOP syscall.Errno = 9722
2593 DNS_ERROR_OPERATION_BASE syscall.Errno = 9750
2594 DNS_INFO_AXFR_COMPLETE syscall.Errno = 9751
2595 DNS_ERROR_AXFR syscall.Errno = 9752
2596 DNS_INFO_ADDED_LOCAL_WINS syscall.Errno = 9753
2597 DNS_ERROR_SECURE_BASE syscall.Errno = 9800
2598 DNS_STATUS_CONTINUE_NEEDED syscall.Errno = 9801
2599 DNS_ERROR_SETUP_BASE syscall.Errno = 9850
2600 DNS_ERROR_NO_TCPIP syscall.Errno = 9851
2601 DNS_ERROR_NO_DNS_SERVERS syscall.Errno = 9852
2602 DNS_ERROR_DP_BASE syscall.Errno = 9900
2603 DNS_ERROR_DP_DOES_NOT_EXIST syscall.Errno = 9901
2604 DNS_ERROR_DP_ALREADY_EXISTS syscall.Errno = 9902
2605 DNS_ERROR_DP_NOT_ENLISTED syscall.Errno = 9903
2606 DNS_ERROR_DP_ALREADY_ENLISTED syscall.Errno = 9904
2607 DNS_ERROR_DP_NOT_AVAILABLE syscall.Errno = 9905
2608 DNS_ERROR_DP_FSMO_ERROR syscall.Errno = 9906
2609 DNS_ERROR_RRL_NOT_ENABLED syscall.Errno = 9911
2610 DNS_ERROR_RRL_INVALID_WINDOW_SIZE syscall.Errno = 9912
2611 DNS_ERROR_RRL_INVALID_IPV4_PREFIX syscall.Errno = 9913
2612 DNS_ERROR_RRL_INVALID_IPV6_PREFIX syscall.Errno = 9914
2613 DNS_ERROR_RRL_INVALID_TC_RATE syscall.Errno = 9915
2614 DNS_ERROR_RRL_INVALID_LEAK_RATE syscall.Errno = 9916
2615 DNS_ERROR_RRL_LEAK_RATE_LESSTHAN_TC_RATE syscall.Errno = 9917
2616 DNS_ERROR_VIRTUALIZATION_INSTANCE_ALREADY_EXISTS syscall.Errno = 9921
2617 DNS_ERROR_VIRTUALIZATION_INSTANCE_DOES_NOT_EXIST syscall.Errno = 9922
2618 DNS_ERROR_VIRTUALIZATION_TREE_LOCKED syscall.Errno = 9923
2619 DNS_ERROR_INVAILD_VIRTUALIZATION_INSTANCE_NAME syscall.Errno = 9924
2620 DNS_ERROR_DEFAULT_VIRTUALIZATION_INSTANCE syscall.Errno = 9925
2621 DNS_ERROR_ZONESCOPE_ALREADY_EXISTS syscall.Errno = 9951
2622 DNS_ERROR_ZONESCOPE_DOES_NOT_EXIST syscall.Errno = 9952
2623 DNS_ERROR_DEFAULT_ZONESCOPE syscall.Errno = 9953
2624 DNS_ERROR_INVALID_ZONESCOPE_NAME syscall.Errno = 9954
2625 DNS_ERROR_NOT_ALLOWED_WITH_ZONESCOPES syscall.Errno = 9955
2626 DNS_ERROR_LOAD_ZONESCOPE_FAILED syscall.Errno = 9956
2627 DNS_ERROR_ZONESCOPE_FILE_WRITEBACK_FAILED syscall.Errno = 9957
2628 DNS_ERROR_INVALID_SCOPE_NAME syscall.Errno = 9958
2629 DNS_ERROR_SCOPE_DOES_NOT_EXIST syscall.Errno = 9959
2630 DNS_ERROR_DEFAULT_SCOPE syscall.Errno = 9960
2631 DNS_ERROR_INVALID_SCOPE_OPERATION syscall.Errno = 9961
2632 DNS_ERROR_SCOPE_LOCKED syscall.Errno = 9962
2633 DNS_ERROR_SCOPE_ALREADY_EXISTS syscall.Errno = 9963
2634 DNS_ERROR_POLICY_ALREADY_EXISTS syscall.Errno = 9971
2635 DNS_ERROR_POLICY_DOES_NOT_EXIST syscall.Errno = 9972
2636 DNS_ERROR_POLICY_INVALID_CRITERIA syscall.Errno = 9973
2637 DNS_ERROR_POLICY_INVALID_SETTINGS syscall.Errno = 9974
2638 DNS_ERROR_CLIENT_SUBNET_IS_ACCESSED syscall.Errno = 9975
2639 DNS_ERROR_CLIENT_SUBNET_DOES_NOT_EXIST syscall.Errno = 9976
2640 DNS_ERROR_CLIENT_SUBNET_ALREADY_EXISTS syscall.Errno = 9977
2641 DNS_ERROR_SUBNET_DOES_NOT_EXIST syscall.Errno = 9978
2642 DNS_ERROR_SUBNET_ALREADY_EXISTS syscall.Errno = 9979
2643 DNS_ERROR_POLICY_LOCKED syscall.Errno = 9980
2644 DNS_ERROR_POLICY_INVALID_WEIGHT syscall.Errno = 9981
2645 DNS_ERROR_POLICY_INVALID_NAME syscall.Errno = 9982
2646 DNS_ERROR_POLICY_MISSING_CRITERIA syscall.Errno = 9983
2647 DNS_ERROR_INVALID_CLIENT_SUBNET_NAME syscall.Errno = 9984
2648 DNS_ERROR_POLICY_PROCESSING_ORDER_INVALID syscall.Errno = 9985
2649 DNS_ERROR_POLICY_SCOPE_MISSING syscall.Errno = 9986
2650 DNS_ERROR_POLICY_SCOPE_NOT_ALLOWED syscall.Errno = 9987
2651 DNS_ERROR_SERVERSCOPE_IS_REFERENCED syscall.Errno = 9988
2652 DNS_ERROR_ZONESCOPE_IS_REFERENCED syscall.Errno = 9989
2653 DNS_ERROR_POLICY_INVALID_CRITERIA_CLIENT_SUBNET syscall.Errno = 9990
2654 DNS_ERROR_POLICY_INVALID_CRITERIA_TRANSPORT_PROTOCOL syscall.Errno = 9991
2655 DNS_ERROR_POLICY_INVALID_CRITERIA_NETWORK_PROTOCOL syscall.Errno = 9992
2656 DNS_ERROR_POLICY_INVALID_CRITERIA_INTERFACE syscall.Errno = 9993
2657 DNS_ERROR_POLICY_INVALID_CRITERIA_FQDN syscall.Errno = 9994
2658 DNS_ERROR_POLICY_INVALID_CRITERIA_QUERY_TYPE syscall.Errno = 9995
2659 DNS_ERROR_POLICY_INVALID_CRITERIA_TIME_OF_DAY syscall.Errno = 9996
2660 WSABASEERR syscall.Errno = 10000
2661 WSAEINTR syscall.Errno = 10004
2662 WSAEBADF syscall.Errno = 10009
2663 WSAEACCES syscall.Errno = 10013
2664 WSAEFAULT syscall.Errno = 10014
2665 WSAEINVAL syscall.Errno = 10022
2666 WSAEMFILE syscall.Errno = 10024
2667 WSAEWOULDBLOCK syscall.Errno = 10035
2668 WSAEINPROGRESS syscall.Errno = 10036
2669 WSAEALREADY syscall.Errno = 10037
2670 WSAENOTSOCK syscall.Errno = 10038
2671 WSAEDESTADDRREQ syscall.Errno = 10039
2672 WSAEMSGSIZE syscall.Errno = 10040
2673 WSAEPROTOTYPE syscall.Errno = 10041
2674 WSAENOPROTOOPT syscall.Errno = 10042
2675 WSAEPROTONOSUPPORT syscall.Errno = 10043
2676 WSAESOCKTNOSUPPORT syscall.Errno = 10044
2677 WSAEOPNOTSUPP syscall.Errno = 10045
2678 WSAEPFNOSUPPORT syscall.Errno = 10046
2679 WSAEAFNOSUPPORT syscall.Errno = 10047
2680 WSAEADDRINUSE syscall.Errno = 10048
2681 WSAEADDRNOTAVAIL syscall.Errno = 10049
2682 WSAENETDOWN syscall.Errno = 10050
2683 WSAENETUNREACH syscall.Errno = 10051
2684 WSAENETRESET syscall.Errno = 10052
2685 WSAECONNABORTED syscall.Errno = 10053
2686 WSAECONNRESET syscall.Errno = 10054
2687 WSAENOBUFS syscall.Errno = 10055
2688 WSAEISCONN syscall.Errno = 10056
2689 WSAENOTCONN syscall.Errno = 10057
2690 WSAESHUTDOWN syscall.Errno = 10058
2691 WSAETOOMANYREFS syscall.Errno = 10059
2692 WSAETIMEDOUT syscall.Errno = 10060
2693 WSAECONNREFUSED syscall.Errno = 10061
2694 WSAELOOP syscall.Errno = 10062
2695 WSAENAMETOOLONG syscall.Errno = 10063
2696 WSAEHOSTDOWN syscall.Errno = 10064
2697 WSAEHOSTUNREACH syscall.Errno = 10065
2698 WSAENOTEMPTY syscall.Errno = 10066
2699 WSAEPROCLIM syscall.Errno = 10067
2700 WSAEUSERS syscall.Errno = 10068
2701 WSAEDQUOT syscall.Errno = 10069
2702 WSAESTALE syscall.Errno = 10070
2703 WSAEREMOTE syscall.Errno = 10071
2704 WSASYSNOTREADY syscall.Errno = 10091
2705 WSAVERNOTSUPPORTED syscall.Errno = 10092
2706 WSANOTINITIALISED syscall.Errno = 10093
2707 WSAEDISCON syscall.Errno = 10101
2708 WSAENOMORE syscall.Errno = 10102
2709 WSAECANCELLED syscall.Errno = 10103
2710 WSAEINVALIDPROCTABLE syscall.Errno = 10104
2711 WSAEINVALIDPROVIDER syscall.Errno = 10105
2712 WSAEPROVIDERFAILEDINIT syscall.Errno = 10106
2713 WSASYSCALLFAILURE syscall.Errno = 10107
2714 WSASERVICE_NOT_FOUND syscall.Errno = 10108
2715 WSATYPE_NOT_FOUND syscall.Errno = 10109
2716 WSA_E_NO_MORE syscall.Errno = 10110
2717 WSA_E_CANCELLED syscall.Errno = 10111
2718 WSAEREFUSED syscall.Errno = 10112
2719 WSAHOST_NOT_FOUND syscall.Errno = 11001
2720 WSATRY_AGAIN syscall.Errno = 11002
2721 WSANO_RECOVERY syscall.Errno = 11003
2722 WSANO_DATA syscall.Errno = 11004
2723 WSA_QOS_RECEIVERS syscall.Errno = 11005
2724 WSA_QOS_SENDERS syscall.Errno = 11006
2725 WSA_QOS_NO_SENDERS syscall.Errno = 11007
2726 WSA_QOS_NO_RECEIVERS syscall.Errno = 11008
2727 WSA_QOS_REQUEST_CONFIRMED syscall.Errno = 11009
2728 WSA_QOS_ADMISSION_FAILURE syscall.Errno = 11010
2729 WSA_QOS_POLICY_FAILURE syscall.Errno = 11011
2730 WSA_QOS_BAD_STYLE syscall.Errno = 11012
2731 WSA_QOS_BAD_OBJECT syscall.Errno = 11013
2732 WSA_QOS_TRAFFIC_CTRL_ERROR syscall.Errno = 11014
2733 WSA_QOS_GENERIC_ERROR syscall.Errno = 11015
2734 WSA_QOS_ESERVICETYPE syscall.Errno = 11016
2735 WSA_QOS_EFLOWSPEC syscall.Errno = 11017
2736 WSA_QOS_EPROVSPECBUF syscall.Errno = 11018
2737 WSA_QOS_EFILTERSTYLE syscall.Errno = 11019
2738 WSA_QOS_EFILTERTYPE syscall.Errno = 11020
2739 WSA_QOS_EFILTERCOUNT syscall.Errno = 11021
2740 WSA_QOS_EOBJLENGTH syscall.Errno = 11022
2741 WSA_QOS_EFLOWCOUNT syscall.Errno = 11023
2742 WSA_QOS_EUNKOWNPSOBJ syscall.Errno = 11024
2743 WSA_QOS_EPOLICYOBJ syscall.Errno = 11025
2744 WSA_QOS_EFLOWDESC syscall.Errno = 11026
2745 WSA_QOS_EPSFLOWSPEC syscall.Errno = 11027
2746 WSA_QOS_EPSFILTERSPEC syscall.Errno = 11028
2747 WSA_QOS_ESDMODEOBJ syscall.Errno = 11029
2748 WSA_QOS_ESHAPERATEOBJ syscall.Errno = 11030
2749 WSA_QOS_RESERVED_PETYPE syscall.Errno = 11031
2750 WSA_SECURE_HOST_NOT_FOUND syscall.Errno = 11032
2751 WSA_IPSEC_NAME_POLICY_ERROR syscall.Errno = 11033
2752 ERROR_IPSEC_QM_POLICY_EXISTS syscall.Errno = 13000
2753 ERROR_IPSEC_QM_POLICY_NOT_FOUND syscall.Errno = 13001
2754 ERROR_IPSEC_QM_POLICY_IN_USE syscall.Errno = 13002
2755 ERROR_IPSEC_MM_POLICY_EXISTS syscall.Errno = 13003
2756 ERROR_IPSEC_MM_POLICY_NOT_FOUND syscall.Errno = 13004
2757 ERROR_IPSEC_MM_POLICY_IN_USE syscall.Errno = 13005
2758 ERROR_IPSEC_MM_FILTER_EXISTS syscall.Errno = 13006
2759 ERROR_IPSEC_MM_FILTER_NOT_FOUND syscall.Errno = 13007
2760 ERROR_IPSEC_TRANSPORT_FILTER_EXISTS syscall.Errno = 13008
2761 ERROR_IPSEC_TRANSPORT_FILTER_NOT_FOUND syscall.Errno = 13009
2762 ERROR_IPSEC_MM_AUTH_EXISTS syscall.Errno = 13010
2763 ERROR_IPSEC_MM_AUTH_NOT_FOUND syscall.Errno = 13011
2764 ERROR_IPSEC_MM_AUTH_IN_USE syscall.Errno = 13012
2765 ERROR_IPSEC_DEFAULT_MM_POLICY_NOT_FOUND syscall.Errno = 13013
2766 ERROR_IPSEC_DEFAULT_MM_AUTH_NOT_FOUND syscall.Errno = 13014
2767 ERROR_IPSEC_DEFAULT_QM_POLICY_NOT_FOUND syscall.Errno = 13015
2768 ERROR_IPSEC_TUNNEL_FILTER_EXISTS syscall.Errno = 13016
2769 ERROR_IPSEC_TUNNEL_FILTER_NOT_FOUND syscall.Errno = 13017
2770 ERROR_IPSEC_MM_FILTER_PENDING_DELETION syscall.Errno = 13018
2771 ERROR_IPSEC_TRANSPORT_FILTER_PENDING_DELETION syscall.Errno = 13019
2772 ERROR_IPSEC_TUNNEL_FILTER_PENDING_DELETION syscall.Errno = 13020
2773 ERROR_IPSEC_MM_POLICY_PENDING_DELETION syscall.Errno = 13021
2774 ERROR_IPSEC_MM_AUTH_PENDING_DELETION syscall.Errno = 13022
2775 ERROR_IPSEC_QM_POLICY_PENDING_DELETION syscall.Errno = 13023
2776 WARNING_IPSEC_MM_POLICY_PRUNED syscall.Errno = 13024
2777 WARNING_IPSEC_QM_POLICY_PRUNED syscall.Errno = 13025
2778 ERROR_IPSEC_IKE_NEG_STATUS_BEGIN syscall.Errno = 13800
2779 ERROR_IPSEC_IKE_AUTH_FAIL syscall.Errno = 13801
2780 ERROR_IPSEC_IKE_ATTRIB_FAIL syscall.Errno = 13802
2781 ERROR_IPSEC_IKE_NEGOTIATION_PENDING syscall.Errno = 13803
2782 ERROR_IPSEC_IKE_GENERAL_PROCESSING_ERROR syscall.Errno = 13804
2783 ERROR_IPSEC_IKE_TIMED_OUT syscall.Errno = 13805
2784 ERROR_IPSEC_IKE_NO_CERT syscall.Errno = 13806
2785 ERROR_IPSEC_IKE_SA_DELETED syscall.Errno = 13807
2786 ERROR_IPSEC_IKE_SA_REAPED syscall.Errno = 13808
2787 ERROR_IPSEC_IKE_MM_ACQUIRE_DROP syscall.Errno = 13809
2788 ERROR_IPSEC_IKE_QM_ACQUIRE_DROP syscall.Errno = 13810
2789 ERROR_IPSEC_IKE_QUEUE_DROP_MM syscall.Errno = 13811
2790 ERROR_IPSEC_IKE_QUEUE_DROP_NO_MM syscall.Errno = 13812
2791 ERROR_IPSEC_IKE_DROP_NO_RESPONSE syscall.Errno = 13813
2792 ERROR_IPSEC_IKE_MM_DELAY_DROP syscall.Errno = 13814
2793 ERROR_IPSEC_IKE_QM_DELAY_DROP syscall.Errno = 13815
2794 ERROR_IPSEC_IKE_ERROR syscall.Errno = 13816
2795 ERROR_IPSEC_IKE_CRL_FAILED syscall.Errno = 13817
2796 ERROR_IPSEC_IKE_INVALID_KEY_USAGE syscall.Errno = 13818
2797 ERROR_IPSEC_IKE_INVALID_CERT_TYPE syscall.Errno = 13819
2798 ERROR_IPSEC_IKE_NO_PRIVATE_KEY syscall.Errno = 13820
2799 ERROR_IPSEC_IKE_SIMULTANEOUS_REKEY syscall.Errno = 13821
2800 ERROR_IPSEC_IKE_DH_FAIL syscall.Errno = 13822
2801 ERROR_IPSEC_IKE_CRITICAL_PAYLOAD_NOT_RECOGNIZED syscall.Errno = 13823
2802 ERROR_IPSEC_IKE_INVALID_HEADER syscall.Errno = 13824
2803 ERROR_IPSEC_IKE_NO_POLICY syscall.Errno = 13825
2804 ERROR_IPSEC_IKE_INVALID_SIGNATURE syscall.Errno = 13826
2805 ERROR_IPSEC_IKE_KERBEROS_ERROR syscall.Errno = 13827
2806 ERROR_IPSEC_IKE_NO_PUBLIC_KEY syscall.Errno = 13828
2807 ERROR_IPSEC_IKE_PROCESS_ERR syscall.Errno = 13829
2808 ERROR_IPSEC_IKE_PROCESS_ERR_SA syscall.Errno = 13830
2809 ERROR_IPSEC_IKE_PROCESS_ERR_PROP syscall.Errno = 13831
2810 ERROR_IPSEC_IKE_PROCESS_ERR_TRANS syscall.Errno = 13832
2811 ERROR_IPSEC_IKE_PROCESS_ERR_KE syscall.Errno = 13833
2812 ERROR_IPSEC_IKE_PROCESS_ERR_ID syscall.Errno = 13834
2813 ERROR_IPSEC_IKE_PROCESS_ERR_CERT syscall.Errno = 13835
2814 ERROR_IPSEC_IKE_PROCESS_ERR_CERT_REQ syscall.Errno = 13836
2815 ERROR_IPSEC_IKE_PROCESS_ERR_HASH syscall.Errno = 13837
2816 ERROR_IPSEC_IKE_PROCESS_ERR_SIG syscall.Errno = 13838
2817 ERROR_IPSEC_IKE_PROCESS_ERR_NONCE syscall.Errno = 13839
2818 ERROR_IPSEC_IKE_PROCESS_ERR_NOTIFY syscall.Errno = 13840
2819 ERROR_IPSEC_IKE_PROCESS_ERR_DELETE syscall.Errno = 13841
2820 ERROR_IPSEC_IKE_PROCESS_ERR_VENDOR syscall.Errno = 13842
2821 ERROR_IPSEC_IKE_INVALID_PAYLOAD syscall.Errno = 13843
2822 ERROR_IPSEC_IKE_LOAD_SOFT_SA syscall.Errno = 13844
2823 ERROR_IPSEC_IKE_SOFT_SA_TORN_DOWN syscall.Errno = 13845
2824 ERROR_IPSEC_IKE_INVALID_COOKIE syscall.Errno = 13846
2825 ERROR_IPSEC_IKE_NO_PEER_CERT syscall.Errno = 13847
2826 ERROR_IPSEC_IKE_PEER_CRL_FAILED syscall.Errno = 13848
2827 ERROR_IPSEC_IKE_POLICY_CHANGE syscall.Errno = 13849
2828 ERROR_IPSEC_IKE_NO_MM_POLICY syscall.Errno = 13850
2829 ERROR_IPSEC_IKE_NOTCBPRIV syscall.Errno = 13851
2830 ERROR_IPSEC_IKE_SECLOADFAIL syscall.Errno = 13852
2831 ERROR_IPSEC_IKE_FAILSSPINIT syscall.Errno = 13853
2832 ERROR_IPSEC_IKE_FAILQUERYSSP syscall.Errno = 13854
2833 ERROR_IPSEC_IKE_SRVACQFAIL syscall.Errno = 13855
2834 ERROR_IPSEC_IKE_SRVQUERYCRED syscall.Errno = 13856
2835 ERROR_IPSEC_IKE_GETSPIFAIL syscall.Errno = 13857
2836 ERROR_IPSEC_IKE_INVALID_FILTER syscall.Errno = 13858
2837 ERROR_IPSEC_IKE_OUT_OF_MEMORY syscall.Errno = 13859
2838 ERROR_IPSEC_IKE_ADD_UPDATE_KEY_FAILED syscall.Errno = 13860
2839 ERROR_IPSEC_IKE_INVALID_POLICY syscall.Errno = 13861
2840 ERROR_IPSEC_IKE_UNKNOWN_DOI syscall.Errno = 13862
2841 ERROR_IPSEC_IKE_INVALID_SITUATION syscall.Errno = 13863
2842 ERROR_IPSEC_IKE_DH_FAILURE syscall.Errno = 13864
2843 ERROR_IPSEC_IKE_INVALID_GROUP syscall.Errno = 13865
2844 ERROR_IPSEC_IKE_ENCRYPT syscall.Errno = 13866
2845 ERROR_IPSEC_IKE_DECRYPT syscall.Errno = 13867
2846 ERROR_IPSEC_IKE_POLICY_MATCH syscall.Errno = 13868
2847 ERROR_IPSEC_IKE_UNSUPPORTED_ID syscall.Errno = 13869
2848 ERROR_IPSEC_IKE_INVALID_HASH syscall.Errno = 13870
2849 ERROR_IPSEC_IKE_INVALID_HASH_ALG syscall.Errno = 13871
2850 ERROR_IPSEC_IKE_INVALID_HASH_SIZE syscall.Errno = 13872
2851 ERROR_IPSEC_IKE_INVALID_ENCRYPT_ALG syscall.Errno = 13873
2852 ERROR_IPSEC_IKE_INVALID_AUTH_ALG syscall.Errno = 13874
2853 ERROR_IPSEC_IKE_INVALID_SIG syscall.Errno = 13875
2854 ERROR_IPSEC_IKE_LOAD_FAILED syscall.Errno = 13876
2855 ERROR_IPSEC_IKE_RPC_DELETE syscall.Errno = 13877
2856 ERROR_IPSEC_IKE_BENIGN_REINIT syscall.Errno = 13878
2857 ERROR_IPSEC_IKE_INVALID_RESPONDER_LIFETIME_NOTIFY syscall.Errno = 13879
2858 ERROR_IPSEC_IKE_INVALID_MAJOR_VERSION syscall.Errno = 13880
2859 ERROR_IPSEC_IKE_INVALID_CERT_KEYLEN syscall.Errno = 13881
2860 ERROR_IPSEC_IKE_MM_LIMIT syscall.Errno = 13882
2861 ERROR_IPSEC_IKE_NEGOTIATION_DISABLED syscall.Errno = 13883
2862 ERROR_IPSEC_IKE_QM_LIMIT syscall.Errno = 13884
2863 ERROR_IPSEC_IKE_MM_EXPIRED syscall.Errno = 13885
2864 ERROR_IPSEC_IKE_PEER_MM_ASSUMED_INVALID syscall.Errno = 13886
2865 ERROR_IPSEC_IKE_CERT_CHAIN_POLICY_MISMATCH syscall.Errno = 13887
2866 ERROR_IPSEC_IKE_UNEXPECTED_MESSAGE_ID syscall.Errno = 13888
2867 ERROR_IPSEC_IKE_INVALID_AUTH_PAYLOAD syscall.Errno = 13889
2868 ERROR_IPSEC_IKE_DOS_COOKIE_SENT syscall.Errno = 13890
2869 ERROR_IPSEC_IKE_SHUTTING_DOWN syscall.Errno = 13891
2870 ERROR_IPSEC_IKE_CGA_AUTH_FAILED syscall.Errno = 13892
2871 ERROR_IPSEC_IKE_PROCESS_ERR_NATOA syscall.Errno = 13893
2872 ERROR_IPSEC_IKE_INVALID_MM_FOR_QM syscall.Errno = 13894
2873 ERROR_IPSEC_IKE_QM_EXPIRED syscall.Errno = 13895
2874 ERROR_IPSEC_IKE_TOO_MANY_FILTERS syscall.Errno = 13896
2875 ERROR_IPSEC_IKE_NEG_STATUS_END syscall.Errno = 13897
2876 ERROR_IPSEC_IKE_KILL_DUMMY_NAP_TUNNEL syscall.Errno = 13898
2877 ERROR_IPSEC_IKE_INNER_IP_ASSIGNMENT_FAILURE syscall.Errno = 13899
2878 ERROR_IPSEC_IKE_REQUIRE_CP_PAYLOAD_MISSING syscall.Errno = 13900
2879 ERROR_IPSEC_KEY_MODULE_IMPERSONATION_NEGOTIATION_PENDING syscall.Errno = 13901
2880 ERROR_IPSEC_IKE_COEXISTENCE_SUPPRESS syscall.Errno = 13902
2881 ERROR_IPSEC_IKE_RATELIMIT_DROP syscall.Errno = 13903
2882 ERROR_IPSEC_IKE_PEER_DOESNT_SUPPORT_MOBIKE syscall.Errno = 13904
2883 ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE syscall.Errno = 13905
2884 ERROR_IPSEC_IKE_STRONG_CRED_AUTHORIZATION_FAILURE syscall.Errno = 13906
2885 ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE_WITH_OPTIONAL_RETRY syscall.Errno = 13907
2886 ERROR_IPSEC_IKE_STRONG_CRED_AUTHORIZATION_AND_CERTMAP_FAILURE syscall.Errno = 13908
2887 ERROR_IPSEC_IKE_NEG_STATUS_EXTENDED_END syscall.Errno = 13909
2888 ERROR_IPSEC_BAD_SPI syscall.Errno = 13910
2889 ERROR_IPSEC_SA_LIFETIME_EXPIRED syscall.Errno = 13911
2890 ERROR_IPSEC_WRONG_SA syscall.Errno = 13912
2891 ERROR_IPSEC_REPLAY_CHECK_FAILED syscall.Errno = 13913
2892 ERROR_IPSEC_INVALID_PACKET syscall.Errno = 13914
2893 ERROR_IPSEC_INTEGRITY_CHECK_FAILED syscall.Errno = 13915
2894 ERROR_IPSEC_CLEAR_TEXT_DROP syscall.Errno = 13916
2895 ERROR_IPSEC_AUTH_FIREWALL_DROP syscall.Errno = 13917
2896 ERROR_IPSEC_THROTTLE_DROP syscall.Errno = 13918
2897 ERROR_IPSEC_DOSP_BLOCK syscall.Errno = 13925
2898 ERROR_IPSEC_DOSP_RECEIVED_MULTICAST syscall.Errno = 13926
2899 ERROR_IPSEC_DOSP_INVALID_PACKET syscall.Errno = 13927
2900 ERROR_IPSEC_DOSP_STATE_LOOKUP_FAILED syscall.Errno = 13928
2901 ERROR_IPSEC_DOSP_MAX_ENTRIES syscall.Errno = 13929
2902 ERROR_IPSEC_DOSP_KEYMOD_NOT_ALLOWED syscall.Errno = 13930
2903 ERROR_IPSEC_DOSP_NOT_INSTALLED syscall.Errno = 13931
2904 ERROR_IPSEC_DOSP_MAX_PER_IP_RATELIMIT_QUEUES syscall.Errno = 13932
2905 ERROR_SXS_SECTION_NOT_FOUND syscall.Errno = 14000
2906 ERROR_SXS_CANT_GEN_ACTCTX syscall.Errno = 14001
2907 ERROR_SXS_INVALID_ACTCTXDATA_FORMAT syscall.Errno = 14002
2908 ERROR_SXS_ASSEMBLY_NOT_FOUND syscall.Errno = 14003
2909 ERROR_SXS_MANIFEST_FORMAT_ERROR syscall.Errno = 14004
2910 ERROR_SXS_MANIFEST_PARSE_ERROR syscall.Errno = 14005
2911 ERROR_SXS_ACTIVATION_CONTEXT_DISABLED syscall.Errno = 14006
2912 ERROR_SXS_KEY_NOT_FOUND syscall.Errno = 14007
2913 ERROR_SXS_VERSION_CONFLICT syscall.Errno = 14008
2914 ERROR_SXS_WRONG_SECTION_TYPE syscall.Errno = 14009
2915 ERROR_SXS_THREAD_QUERIES_DISABLED syscall.Errno = 14010
2916 ERROR_SXS_PROCESS_DEFAULT_ALREADY_SET syscall.Errno = 14011
2917 ERROR_SXS_UNKNOWN_ENCODING_GROUP syscall.Errno = 14012
2918 ERROR_SXS_UNKNOWN_ENCODING syscall.Errno = 14013
2919 ERROR_SXS_INVALID_XML_NAMESPACE_URI syscall.Errno = 14014
2920 ERROR_SXS_ROOT_MANIFEST_DEPENDENCY_NOT_INSTALLED syscall.Errno = 14015
2921 ERROR_SXS_LEAF_MANIFEST_DEPENDENCY_NOT_INSTALLED syscall.Errno = 14016
2922 ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE syscall.Errno = 14017
2923 ERROR_SXS_MANIFEST_MISSING_REQUIRED_DEFAULT_NAMESPACE syscall.Errno = 14018
2924 ERROR_SXS_MANIFEST_INVALID_REQUIRED_DEFAULT_NAMESPACE syscall.Errno = 14019
2925 ERROR_SXS_PRIVATE_MANIFEST_CROSS_PATH_WITH_REPARSE_POINT syscall.Errno = 14020
2926 ERROR_SXS_DUPLICATE_DLL_NAME syscall.Errno = 14021
2927 ERROR_SXS_DUPLICATE_WINDOWCLASS_NAME syscall.Errno = 14022
2928 ERROR_SXS_DUPLICATE_CLSID syscall.Errno = 14023
2929 ERROR_SXS_DUPLICATE_IID syscall.Errno = 14024
2930 ERROR_SXS_DUPLICATE_TLBID syscall.Errno = 14025
2931 ERROR_SXS_DUPLICATE_PROGID syscall.Errno = 14026
2932 ERROR_SXS_DUPLICATE_ASSEMBLY_NAME syscall.Errno = 14027
2933 ERROR_SXS_FILE_HASH_MISMATCH syscall.Errno = 14028
2934 ERROR_SXS_POLICY_PARSE_ERROR syscall.Errno = 14029
2935 ERROR_SXS_XML_E_MISSINGQUOTE syscall.Errno = 14030
2936 ERROR_SXS_XML_E_COMMENTSYNTAX syscall.Errno = 14031
2937 ERROR_SXS_XML_E_BADSTARTNAMECHAR syscall.Errno = 14032
2938 ERROR_SXS_XML_E_BADNAMECHAR syscall.Errno = 14033
2939 ERROR_SXS_XML_E_BADCHARINSTRING syscall.Errno = 14034
2940 ERROR_SXS_XML_E_XMLDECLSYNTAX syscall.Errno = 14035
2941 ERROR_SXS_XML_E_BADCHARDATA syscall.Errno = 14036
2942 ERROR_SXS_XML_E_MISSINGWHITESPACE syscall.Errno = 14037
2943 ERROR_SXS_XML_E_EXPECTINGTAGEND syscall.Errno = 14038
2944 ERROR_SXS_XML_E_MISSINGSEMICOLON syscall.Errno = 14039
2945 ERROR_SXS_XML_E_UNBALANCEDPAREN syscall.Errno = 14040
2946 ERROR_SXS_XML_E_INTERNALERROR syscall.Errno = 14041
2947 ERROR_SXS_XML_E_UNEXPECTED_WHITESPACE syscall.Errno = 14042
2948 ERROR_SXS_XML_E_INCOMPLETE_ENCODING syscall.Errno = 14043
2949 ERROR_SXS_XML_E_MISSING_PAREN syscall.Errno = 14044
2950 ERROR_SXS_XML_E_EXPECTINGCLOSEQUOTE syscall.Errno = 14045
2951 ERROR_SXS_XML_E_MULTIPLE_COLONS syscall.Errno = 14046
2952 ERROR_SXS_XML_E_INVALID_DECIMAL syscall.Errno = 14047
2953 ERROR_SXS_XML_E_INVALID_HEXIDECIMAL syscall.Errno = 14048
2954 ERROR_SXS_XML_E_INVALID_UNICODE syscall.Errno = 14049
2955 ERROR_SXS_XML_E_WHITESPACEORQUESTIONMARK syscall.Errno = 14050
2956 ERROR_SXS_XML_E_UNEXPECTEDENDTAG syscall.Errno = 14051
2957 ERROR_SXS_XML_E_UNCLOSEDTAG syscall.Errno = 14052
2958 ERROR_SXS_XML_E_DUPLICATEATTRIBUTE syscall.Errno = 14053
2959 ERROR_SXS_XML_E_MULTIPLEROOTS syscall.Errno = 14054
2960 ERROR_SXS_XML_E_INVALIDATROOTLEVEL syscall.Errno = 14055
2961 ERROR_SXS_XML_E_BADXMLDECL syscall.Errno = 14056
2962 ERROR_SXS_XML_E_MISSINGROOT syscall.Errno = 14057
2963 ERROR_SXS_XML_E_UNEXPECTEDEOF syscall.Errno = 14058
2964 ERROR_SXS_XML_E_BADPEREFINSUBSET syscall.Errno = 14059
2965 ERROR_SXS_XML_E_UNCLOSEDSTARTTAG syscall.Errno = 14060
2966 ERROR_SXS_XML_E_UNCLOSEDENDTAG syscall.Errno = 14061
2967 ERROR_SXS_XML_E_UNCLOSEDSTRING syscall.Errno = 14062
2968 ERROR_SXS_XML_E_UNCLOSEDCOMMENT syscall.Errno = 14063
2969 ERROR_SXS_XML_E_UNCLOSEDDECL syscall.Errno = 14064
2970 ERROR_SXS_XML_E_UNCLOSEDCDATA syscall.Errno = 14065
2971 ERROR_SXS_XML_E_RESERVEDNAMESPACE syscall.Errno = 14066
2972 ERROR_SXS_XML_E_INVALIDENCODING syscall.Errno = 14067
2973 ERROR_SXS_XML_E_INVALIDSWITCH syscall.Errno = 14068
2974 ERROR_SXS_XML_E_BADXMLCASE syscall.Errno = 14069
2975 ERROR_SXS_XML_E_INVALID_STANDALONE syscall.Errno = 14070
2976 ERROR_SXS_XML_E_UNEXPECTED_STANDALONE syscall.Errno = 14071
2977 ERROR_SXS_XML_E_INVALID_VERSION syscall.Errno = 14072
2978 ERROR_SXS_XML_E_MISSINGEQUALS syscall.Errno = 14073
2979 ERROR_SXS_PROTECTION_RECOVERY_FAILED syscall.Errno = 14074
2980 ERROR_SXS_PROTECTION_PUBLIC_KEY_TOO_SHORT syscall.Errno = 14075
2981 ERROR_SXS_PROTECTION_CATALOG_NOT_VALID syscall.Errno = 14076
2982 ERROR_SXS_UNTRANSLATABLE_HRESULT syscall.Errno = 14077
2983 ERROR_SXS_PROTECTION_CATALOG_FILE_MISSING syscall.Errno = 14078
2984 ERROR_SXS_MISSING_ASSEMBLY_IDENTITY_ATTRIBUTE syscall.Errno = 14079
2985 ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME syscall.Errno = 14080
2986 ERROR_SXS_ASSEMBLY_MISSING syscall.Errno = 14081
2987 ERROR_SXS_CORRUPT_ACTIVATION_STACK syscall.Errno = 14082
2988 ERROR_SXS_CORRUPTION syscall.Errno = 14083
2989 ERROR_SXS_EARLY_DEACTIVATION syscall.Errno = 14084
2990 ERROR_SXS_INVALID_DEACTIVATION syscall.Errno = 14085
2991 ERROR_SXS_MULTIPLE_DEACTIVATION syscall.Errno = 14086
2992 ERROR_SXS_PROCESS_TERMINATION_REQUESTED syscall.Errno = 14087
2993 ERROR_SXS_RELEASE_ACTIVATION_CONTEXT syscall.Errno = 14088
2994 ERROR_SXS_SYSTEM_DEFAULT_ACTIVATION_CONTEXT_EMPTY syscall.Errno = 14089
2995 ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_VALUE syscall.Errno = 14090
2996 ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_NAME syscall.Errno = 14091
2997 ERROR_SXS_IDENTITY_DUPLICATE_ATTRIBUTE syscall.Errno = 14092
2998 ERROR_SXS_IDENTITY_PARSE_ERROR syscall.Errno = 14093
2999 ERROR_MALFORMED_SUBSTITUTION_STRING syscall.Errno = 14094
3000 ERROR_SXS_INCORRECT_PUBLIC_KEY_TOKEN syscall.Errno = 14095
3001 ERROR_UNMAPPED_SUBSTITUTION_STRING syscall.Errno = 14096
3002 ERROR_SXS_ASSEMBLY_NOT_LOCKED syscall.Errno = 14097
3003 ERROR_SXS_COMPONENT_STORE_CORRUPT syscall.Errno = 14098
3004 ERROR_ADVANCED_INSTALLER_FAILED syscall.Errno = 14099
3005 ERROR_XML_ENCODING_MISMATCH syscall.Errno = 14100
3006 ERROR_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT syscall.Errno = 14101
3007 ERROR_SXS_IDENTITIES_DIFFERENT syscall.Errno = 14102
3008 ERROR_SXS_ASSEMBLY_IS_NOT_A_DEPLOYMENT syscall.Errno = 14103
3009 ERROR_SXS_FILE_NOT_PART_OF_ASSEMBLY syscall.Errno = 14104
3010 ERROR_SXS_MANIFEST_TOO_BIG syscall.Errno = 14105
3011 ERROR_SXS_SETTING_NOT_REGISTERED syscall.Errno = 14106
3012 ERROR_SXS_TRANSACTION_CLOSURE_INCOMPLETE syscall.Errno = 14107
3013 ERROR_SMI_PRIMITIVE_INSTALLER_FAILED syscall.Errno = 14108
3014 ERROR_GENERIC_COMMAND_FAILED syscall.Errno = 14109
3015 ERROR_SXS_FILE_HASH_MISSING syscall.Errno = 14110
3016 ERROR_SXS_DUPLICATE_ACTIVATABLE_CLASS syscall.Errno = 14111
3017 ERROR_EVT_INVALID_CHANNEL_PATH syscall.Errno = 15000
3018 ERROR_EVT_INVALID_QUERY syscall.Errno = 15001
3019 ERROR_EVT_PUBLISHER_METADATA_NOT_FOUND syscall.Errno = 15002
3020 ERROR_EVT_EVENT_TEMPLATE_NOT_FOUND syscall.Errno = 15003
3021 ERROR_EVT_INVALID_PUBLISHER_NAME syscall.Errno = 15004
3022 ERROR_EVT_INVALID_EVENT_DATA syscall.Errno = 15005
3023 ERROR_EVT_CHANNEL_NOT_FOUND syscall.Errno = 15007
3024 ERROR_EVT_MALFORMED_XML_TEXT syscall.Errno = 15008
3025 ERROR_EVT_SUBSCRIPTION_TO_DIRECT_CHANNEL syscall.Errno = 15009
3026 ERROR_EVT_CONFIGURATION_ERROR syscall.Errno = 15010
3027 ERROR_EVT_QUERY_RESULT_STALE syscall.Errno = 15011
3028 ERROR_EVT_QUERY_RESULT_INVALID_POSITION syscall.Errno = 15012
3029 ERROR_EVT_NON_VALIDATING_MSXML syscall.Errno = 15013
3030 ERROR_EVT_FILTER_ALREADYSCOPED syscall.Errno = 15014
3031 ERROR_EVT_FILTER_NOTELTSET syscall.Errno = 15015
3032 ERROR_EVT_FILTER_INVARG syscall.Errno = 15016
3033 ERROR_EVT_FILTER_INVTEST syscall.Errno = 15017
3034 ERROR_EVT_FILTER_INVTYPE syscall.Errno = 15018
3035 ERROR_EVT_FILTER_PARSEERR syscall.Errno = 15019
3036 ERROR_EVT_FILTER_UNSUPPORTEDOP syscall.Errno = 15020
3037 ERROR_EVT_FILTER_UNEXPECTEDTOKEN syscall.Errno = 15021
3038 ERROR_EVT_INVALID_OPERATION_OVER_ENABLED_DIRECT_CHANNEL syscall.Errno = 15022
3039 ERROR_EVT_INVALID_CHANNEL_PROPERTY_VALUE syscall.Errno = 15023
3040 ERROR_EVT_INVALID_PUBLISHER_PROPERTY_VALUE syscall.Errno = 15024
3041 ERROR_EVT_CHANNEL_CANNOT_ACTIVATE syscall.Errno = 15025
3042 ERROR_EVT_FILTER_TOO_COMPLEX syscall.Errno = 15026
3043 ERROR_EVT_MESSAGE_NOT_FOUND syscall.Errno = 15027
3044 ERROR_EVT_MESSAGE_ID_NOT_FOUND syscall.Errno = 15028
3045 ERROR_EVT_UNRESOLVED_VALUE_INSERT syscall.Errno = 15029
3046 ERROR_EVT_UNRESOLVED_PARAMETER_INSERT syscall.Errno = 15030
3047 ERROR_EVT_MAX_INSERTS_REACHED syscall.Errno = 15031
3048 ERROR_EVT_EVENT_DEFINITION_NOT_FOUND syscall.Errno = 15032
3049 ERROR_EVT_MESSAGE_LOCALE_NOT_FOUND syscall.Errno = 15033
3050 ERROR_EVT_VERSION_TOO_OLD syscall.Errno = 15034
3051 ERROR_EVT_VERSION_TOO_NEW syscall.Errno = 15035
3052 ERROR_EVT_CANNOT_OPEN_CHANNEL_OF_QUERY syscall.Errno = 15036
3053 ERROR_EVT_PUBLISHER_DISABLED syscall.Errno = 15037
3054 ERROR_EVT_FILTER_OUT_OF_RANGE syscall.Errno = 15038
3055 ERROR_EC_SUBSCRIPTION_CANNOT_ACTIVATE syscall.Errno = 15080
3056 ERROR_EC_LOG_DISABLED syscall.Errno = 15081
3057 ERROR_EC_CIRCULAR_FORWARDING syscall.Errno = 15082
3058 ERROR_EC_CREDSTORE_FULL syscall.Errno = 15083
3059 ERROR_EC_CRED_NOT_FOUND syscall.Errno = 15084
3060 ERROR_EC_NO_ACTIVE_CHANNEL syscall.Errno = 15085
3061 ERROR_MUI_FILE_NOT_FOUND syscall.Errno = 15100
3062 ERROR_MUI_INVALID_FILE syscall.Errno = 15101
3063 ERROR_MUI_INVALID_RC_CONFIG syscall.Errno = 15102
3064 ERROR_MUI_INVALID_LOCALE_NAME syscall.Errno = 15103
3065 ERROR_MUI_INVALID_ULTIMATEFALLBACK_NAME syscall.Errno = 15104
3066 ERROR_MUI_FILE_NOT_LOADED syscall.Errno = 15105
3067 ERROR_RESOURCE_ENUM_USER_STOP syscall.Errno = 15106
3068 ERROR_MUI_INTLSETTINGS_UILANG_NOT_INSTALLED syscall.Errno = 15107
3069 ERROR_MUI_INTLSETTINGS_INVALID_LOCALE_NAME syscall.Errno = 15108
3070 ERROR_MRM_RUNTIME_NO_DEFAULT_OR_NEUTRAL_RESOURCE syscall.Errno = 15110
3071 ERROR_MRM_INVALID_PRICONFIG syscall.Errno = 15111
3072 ERROR_MRM_INVALID_FILE_TYPE syscall.Errno = 15112
3073 ERROR_MRM_UNKNOWN_QUALIFIER syscall.Errno = 15113
3074 ERROR_MRM_INVALID_QUALIFIER_VALUE syscall.Errno = 15114
3075 ERROR_MRM_NO_CANDIDATE syscall.Errno = 15115
3076 ERROR_MRM_NO_MATCH_OR_DEFAULT_CANDIDATE syscall.Errno = 15116
3077 ERROR_MRM_RESOURCE_TYPE_MISMATCH syscall.Errno = 15117
3078 ERROR_MRM_DUPLICATE_MAP_NAME syscall.Errno = 15118
3079 ERROR_MRM_DUPLICATE_ENTRY syscall.Errno = 15119
3080 ERROR_MRM_INVALID_RESOURCE_IDENTIFIER syscall.Errno = 15120
3081 ERROR_MRM_FILEPATH_TOO_LONG syscall.Errno = 15121
3082 ERROR_MRM_UNSUPPORTED_DIRECTORY_TYPE syscall.Errno = 15122
3083 ERROR_MRM_INVALID_PRI_FILE syscall.Errno = 15126
3084 ERROR_MRM_NAMED_RESOURCE_NOT_FOUND syscall.Errno = 15127
3085 ERROR_MRM_MAP_NOT_FOUND syscall.Errno = 15135
3086 ERROR_MRM_UNSUPPORTED_PROFILE_TYPE syscall.Errno = 15136
3087 ERROR_MRM_INVALID_QUALIFIER_OPERATOR syscall.Errno = 15137
3088 ERROR_MRM_INDETERMINATE_QUALIFIER_VALUE syscall.Errno = 15138
3089 ERROR_MRM_AUTOMERGE_ENABLED syscall.Errno = 15139
3090 ERROR_MRM_TOO_MANY_RESOURCES syscall.Errno = 15140
3091 ERROR_MRM_UNSUPPORTED_FILE_TYPE_FOR_MERGE syscall.Errno = 15141
3092 ERROR_MRM_UNSUPPORTED_FILE_TYPE_FOR_LOAD_UNLOAD_PRI_FILE syscall.Errno = 15142
3093 ERROR_MRM_NO_CURRENT_VIEW_ON_THREAD syscall.Errno = 15143
3094 ERROR_DIFFERENT_PROFILE_RESOURCE_MANAGER_EXIST syscall.Errno = 15144
3095 ERROR_OPERATION_NOT_ALLOWED_FROM_SYSTEM_COMPONENT syscall.Errno = 15145
3096 ERROR_MRM_DIRECT_REF_TO_NON_DEFAULT_RESOURCE syscall.Errno = 15146
3097 ERROR_MRM_GENERATION_COUNT_MISMATCH syscall.Errno = 15147
3098 ERROR_PRI_MERGE_VERSION_MISMATCH syscall.Errno = 15148
3099 ERROR_PRI_MERGE_MISSING_SCHEMA syscall.Errno = 15149
3100 ERROR_PRI_MERGE_LOAD_FILE_FAILED syscall.Errno = 15150
3101 ERROR_PRI_MERGE_ADD_FILE_FAILED syscall.Errno = 15151
3102 ERROR_PRI_MERGE_WRITE_FILE_FAILED syscall.Errno = 15152
3103 ERROR_PRI_MERGE_MULTIPLE_PACKAGE_FAMILIES_NOT_ALLOWED syscall.Errno = 15153
3104 ERROR_PRI_MERGE_MULTIPLE_MAIN_PACKAGES_NOT_ALLOWED syscall.Errno = 15154
3105 ERROR_PRI_MERGE_BUNDLE_PACKAGES_NOT_ALLOWED syscall.Errno = 15155
3106 ERROR_PRI_MERGE_MAIN_PACKAGE_REQUIRED syscall.Errno = 15156
3107 ERROR_PRI_MERGE_RESOURCE_PACKAGE_REQUIRED syscall.Errno = 15157
3108 ERROR_PRI_MERGE_INVALID_FILE_NAME syscall.Errno = 15158
3109 ERROR_MRM_PACKAGE_NOT_FOUND syscall.Errno = 15159
3110 ERROR_MRM_MISSING_DEFAULT_LANGUAGE syscall.Errno = 15160
3111 ERROR_MCA_INVALID_CAPABILITIES_STRING syscall.Errno = 15200
3112 ERROR_MCA_INVALID_VCP_VERSION syscall.Errno = 15201
3113 ERROR_MCA_MONITOR_VIOLATES_MCCS_SPECIFICATION syscall.Errno = 15202
3114 ERROR_MCA_MCCS_VERSION_MISMATCH syscall.Errno = 15203
3115 ERROR_MCA_UNSUPPORTED_MCCS_VERSION syscall.Errno = 15204
3116 ERROR_MCA_INTERNAL_ERROR syscall.Errno = 15205
3117 ERROR_MCA_INVALID_TECHNOLOGY_TYPE_RETURNED syscall.Errno = 15206
3118 ERROR_MCA_UNSUPPORTED_COLOR_TEMPERATURE syscall.Errno = 15207
3119 ERROR_AMBIGUOUS_SYSTEM_DEVICE syscall.Errno = 15250
3120 ERROR_SYSTEM_DEVICE_NOT_FOUND syscall.Errno = 15299
3121 ERROR_HASH_NOT_SUPPORTED syscall.Errno = 15300
3122 ERROR_HASH_NOT_PRESENT syscall.Errno = 15301
3123 ERROR_SECONDARY_IC_PROVIDER_NOT_REGISTERED syscall.Errno = 15321
3124 ERROR_GPIO_CLIENT_INFORMATION_INVALID syscall.Errno = 15322
3125 ERROR_GPIO_VERSION_NOT_SUPPORTED syscall.Errno = 15323
3126 ERROR_GPIO_INVALID_REGISTRATION_PACKET syscall.Errno = 15324
3127 ERROR_GPIO_OPERATION_DENIED syscall.Errno = 15325
3128 ERROR_GPIO_INCOMPATIBLE_CONNECT_MODE syscall.Errno = 15326
3129 ERROR_GPIO_INTERRUPT_ALREADY_UNMASKED syscall.Errno = 15327
3130 ERROR_CANNOT_SWITCH_RUNLEVEL syscall.Errno = 15400
3131 ERROR_INVALID_RUNLEVEL_SETTING syscall.Errno = 15401
3132 ERROR_RUNLEVEL_SWITCH_TIMEOUT syscall.Errno = 15402
3133 ERROR_RUNLEVEL_SWITCH_AGENT_TIMEOUT syscall.Errno = 15403
3134 ERROR_RUNLEVEL_SWITCH_IN_PROGRESS syscall.Errno = 15404
3135 ERROR_SERVICES_FAILED_AUTOSTART syscall.Errno = 15405
3136 ERROR_COM_TASK_STOP_PENDING syscall.Errno = 15501
3137 ERROR_INSTALL_OPEN_PACKAGE_FAILED syscall.Errno = 15600
3138 ERROR_INSTALL_PACKAGE_NOT_FOUND syscall.Errno = 15601
3139 ERROR_INSTALL_INVALID_PACKAGE syscall.Errno = 15602
3140 ERROR_INSTALL_RESOLVE_DEPENDENCY_FAILED syscall.Errno = 15603
3141 ERROR_INSTALL_OUT_OF_DISK_SPACE syscall.Errno = 15604
3142 ERROR_INSTALL_NETWORK_FAILURE syscall.Errno = 15605
3143 ERROR_INSTALL_REGISTRATION_FAILURE syscall.Errno = 15606
3144 ERROR_INSTALL_DEREGISTRATION_FAILURE syscall.Errno = 15607
3145 ERROR_INSTALL_CANCEL syscall.Errno = 15608
3146 ERROR_INSTALL_FAILED syscall.Errno = 15609
3147 ERROR_REMOVE_FAILED syscall.Errno = 15610
3148 ERROR_PACKAGE_ALREADY_EXISTS syscall.Errno = 15611
3149 ERROR_NEEDS_REMEDIATION syscall.Errno = 15612
3150 ERROR_INSTALL_PREREQUISITE_FAILED syscall.Errno = 15613
3151 ERROR_PACKAGE_REPOSITORY_CORRUPTED syscall.Errno = 15614
3152 ERROR_INSTALL_POLICY_FAILURE syscall.Errno = 15615
3153 ERROR_PACKAGE_UPDATING syscall.Errno = 15616
3154 ERROR_DEPLOYMENT_BLOCKED_BY_POLICY syscall.Errno = 15617
3155 ERROR_PACKAGES_IN_USE syscall.Errno = 15618
3156 ERROR_RECOVERY_FILE_CORRUPT syscall.Errno = 15619
3157 ERROR_INVALID_STAGED_SIGNATURE syscall.Errno = 15620
3158 ERROR_DELETING_EXISTING_APPLICATIONDATA_STORE_FAILED syscall.Errno = 15621
3159 ERROR_INSTALL_PACKAGE_DOWNGRADE syscall.Errno = 15622
3160 ERROR_SYSTEM_NEEDS_REMEDIATION syscall.Errno = 15623
3161 ERROR_APPX_INTEGRITY_FAILURE_CLR_NGEN syscall.Errno = 15624
3162 ERROR_RESILIENCY_FILE_CORRUPT syscall.Errno = 15625
3163 ERROR_INSTALL_FIREWALL_SERVICE_NOT_RUNNING syscall.Errno = 15626
3164 ERROR_PACKAGE_MOVE_FAILED syscall.Errno = 15627
3165 ERROR_INSTALL_VOLUME_NOT_EMPTY syscall.Errno = 15628
3166 ERROR_INSTALL_VOLUME_OFFLINE syscall.Errno = 15629
3167 ERROR_INSTALL_VOLUME_CORRUPT syscall.Errno = 15630
3168 ERROR_NEEDS_REGISTRATION syscall.Errno = 15631
3169 ERROR_INSTALL_WRONG_PROCESSOR_ARCHITECTURE syscall.Errno = 15632
3170 ERROR_DEV_SIDELOAD_LIMIT_EXCEEDED syscall.Errno = 15633
3171 ERROR_INSTALL_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE syscall.Errno = 15634
3172 ERROR_PACKAGE_NOT_SUPPORTED_ON_FILESYSTEM syscall.Errno = 15635
3173 ERROR_PACKAGE_MOVE_BLOCKED_BY_STREAMING syscall.Errno = 15636
3174 ERROR_INSTALL_OPTIONAL_PACKAGE_APPLICATIONID_NOT_UNIQUE syscall.Errno = 15637
3175 ERROR_PACKAGE_STAGING_ONHOLD syscall.Errno = 15638
3176 ERROR_INSTALL_INVALID_RELATED_SET_UPDATE syscall.Errno = 15639
3177 ERROR_INSTALL_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE_FULLTRUST_CAPABILITY syscall.Errno = 15640
3178 ERROR_DEPLOYMENT_BLOCKED_BY_USER_LOG_OFF syscall.Errno = 15641
3179 ERROR_PROVISION_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE_PROVISIONED syscall.Errno = 15642
3180 ERROR_PACKAGES_REPUTATION_CHECK_FAILED syscall.Errno = 15643
3181 ERROR_PACKAGES_REPUTATION_CHECK_TIMEDOUT syscall.Errno = 15644
3182 ERROR_DEPLOYMENT_OPTION_NOT_SUPPORTED syscall.Errno = 15645
3183 ERROR_APPINSTALLER_ACTIVATION_BLOCKED syscall.Errno = 15646
3184 ERROR_REGISTRATION_FROM_REMOTE_DRIVE_NOT_SUPPORTED syscall.Errno = 15647
3185 ERROR_APPX_RAW_DATA_WRITE_FAILED syscall.Errno = 15648
3186 ERROR_DEPLOYMENT_BLOCKED_BY_VOLUME_POLICY_PACKAGE syscall.Errno = 15649
3187 ERROR_DEPLOYMENT_BLOCKED_BY_VOLUME_POLICY_MACHINE syscall.Errno = 15650
3188 ERROR_DEPLOYMENT_BLOCKED_BY_PROFILE_POLICY syscall.Errno = 15651
3189 ERROR_DEPLOYMENT_FAILED_CONFLICTING_MUTABLE_PACKAGE_DIRECTORY syscall.Errno = 15652
3190 ERROR_SINGLETON_RESOURCE_INSTALLED_IN_ACTIVE_USER syscall.Errno = 15653
3191 ERROR_DIFFERENT_VERSION_OF_PACKAGED_SERVICE_INSTALLED syscall.Errno = 15654
3192 ERROR_SERVICE_EXISTS_AS_NON_PACKAGED_SERVICE syscall.Errno = 15655
3193 ERROR_PACKAGED_SERVICE_REQUIRES_ADMIN_PRIVILEGES syscall.Errno = 15656
3194 APPMODEL_ERROR_NO_PACKAGE syscall.Errno = 15700
3195 APPMODEL_ERROR_PACKAGE_RUNTIME_CORRUPT syscall.Errno = 15701
3196 APPMODEL_ERROR_PACKAGE_IDENTITY_CORRUPT syscall.Errno = 15702
3197 APPMODEL_ERROR_NO_APPLICATION syscall.Errno = 15703
3198 APPMODEL_ERROR_DYNAMIC_PROPERTY_READ_FAILED syscall.Errno = 15704
3199 APPMODEL_ERROR_DYNAMIC_PROPERTY_INVALID syscall.Errno = 15705
3200 APPMODEL_ERROR_PACKAGE_NOT_AVAILABLE syscall.Errno = 15706
3201 APPMODEL_ERROR_NO_MUTABLE_DIRECTORY syscall.Errno = 15707
3202 ERROR_STATE_LOAD_STORE_FAILED syscall.Errno = 15800
3203 ERROR_STATE_GET_VERSION_FAILED syscall.Errno = 15801
3204 ERROR_STATE_SET_VERSION_FAILED syscall.Errno = 15802
3205 ERROR_STATE_STRUCTURED_RESET_FAILED syscall.Errno = 15803
3206 ERROR_STATE_OPEN_CONTAINER_FAILED syscall.Errno = 15804
3207 ERROR_STATE_CREATE_CONTAINER_FAILED syscall.Errno = 15805
3208 ERROR_STATE_DELETE_CONTAINER_FAILED syscall.Errno = 15806
3209 ERROR_STATE_READ_SETTING_FAILED syscall.Errno = 15807
3210 ERROR_STATE_WRITE_SETTING_FAILED syscall.Errno = 15808
3211 ERROR_STATE_DELETE_SETTING_FAILED syscall.Errno = 15809
3212 ERROR_STATE_QUERY_SETTING_FAILED syscall.Errno = 15810
3213 ERROR_STATE_READ_COMPOSITE_SETTING_FAILED syscall.Errno = 15811
3214 ERROR_STATE_WRITE_COMPOSITE_SETTING_FAILED syscall.Errno = 15812
3215 ERROR_STATE_ENUMERATE_CONTAINER_FAILED syscall.Errno = 15813
3216 ERROR_STATE_ENUMERATE_SETTINGS_FAILED syscall.Errno = 15814
3217 ERROR_STATE_COMPOSITE_SETTING_VALUE_SIZE_LIMIT_EXCEEDED syscall.Errno = 15815
3218 ERROR_STATE_SETTING_VALUE_SIZE_LIMIT_EXCEEDED syscall.Errno = 15816
3219 ERROR_STATE_SETTING_NAME_SIZE_LIMIT_EXCEEDED syscall.Errno = 15817
3220 ERROR_STATE_CONTAINER_NAME_SIZE_LIMIT_EXCEEDED syscall.Errno = 15818
3221 ERROR_API_UNAVAILABLE syscall.Errno = 15841
3222 STORE_ERROR_UNLICENSED syscall.Errno = 15861
3223 STORE_ERROR_UNLICENSED_USER syscall.Errno = 15862
3224 STORE_ERROR_PENDING_COM_TRANSACTION syscall.Errno = 15863
3225 STORE_ERROR_LICENSE_REVOKED syscall.Errno = 15864
3226 SEVERITY_SUCCESS syscall.Errno = 0
3227 SEVERITY_ERROR syscall.Errno = 1
3228 FACILITY_NT_BIT = 0x10000000
3229 E_NOT_SET = ERROR_NOT_FOUND
3230 E_NOT_VALID_STATE = ERROR_INVALID_STATE
3231 E_NOT_SUFFICIENT_BUFFER = ERROR_INSUFFICIENT_BUFFER
3232 E_TIME_SENSITIVE_THREAD = ERROR_TIME_SENSITIVE_THREAD
3233 E_NO_TASK_QUEUE = ERROR_NO_TASK_QUEUE
3234 NOERROR syscall.Errno = 0
3235 E_UNEXPECTED Handle = 0x8000FFFF
3236 E_NOTIMPL Handle = 0x80004001
3237 E_OUTOFMEMORY Handle = 0x8007000E
3238 E_INVALIDARG Handle = 0x80070057
3239 E_NOINTERFACE Handle = 0x80004002
3240 E_POINTER Handle = 0x80004003
3241 E_HANDLE Handle = 0x80070006
3242 E_ABORT Handle = 0x80004004
3243 E_FAIL Handle = 0x80004005
3244 E_ACCESSDENIED Handle = 0x80070005
3245 E_PENDING Handle = 0x8000000A
3246 E_BOUNDS Handle = 0x8000000B
3247 E_CHANGED_STATE Handle = 0x8000000C
3248 E_ILLEGAL_STATE_CHANGE Handle = 0x8000000D
3249 E_ILLEGAL_METHOD_CALL Handle = 0x8000000E
3250 RO_E_METADATA_NAME_NOT_FOUND Handle = 0x8000000F
3251 RO_E_METADATA_NAME_IS_NAMESPACE Handle = 0x80000010
3252 RO_E_METADATA_INVALID_TYPE_FORMAT Handle = 0x80000011
3253 RO_E_INVALID_METADATA_FILE Handle = 0x80000012
3254 RO_E_CLOSED Handle = 0x80000013
3255 RO_E_EXCLUSIVE_WRITE Handle = 0x80000014
3256 RO_E_CHANGE_NOTIFICATION_IN_PROGRESS Handle = 0x80000015
3257 RO_E_ERROR_STRING_NOT_FOUND Handle = 0x80000016
3258 E_STRING_NOT_NULL_TERMINATED Handle = 0x80000017
3259 E_ILLEGAL_DELEGATE_ASSIGNMENT Handle = 0x80000018
3260 E_ASYNC_OPERATION_NOT_STARTED Handle = 0x80000019
3261 E_APPLICATION_EXITING Handle = 0x8000001A
3262 E_APPLICATION_VIEW_EXITING Handle = 0x8000001B
3263 RO_E_MUST_BE_AGILE Handle = 0x8000001C
3264 RO_E_UNSUPPORTED_FROM_MTA Handle = 0x8000001D
3265 RO_E_COMMITTED Handle = 0x8000001E
3266 RO_E_BLOCKED_CROSS_ASTA_CALL Handle = 0x8000001F
3267 RO_E_CANNOT_ACTIVATE_FULL_TRUST_SERVER Handle = 0x80000020
3268 RO_E_CANNOT_ACTIVATE_UNIVERSAL_APPLICATION_SERVER Handle = 0x80000021
3269 CO_E_INIT_TLS Handle = 0x80004006
3270 CO_E_INIT_SHARED_ALLOCATOR Handle = 0x80004007
3271 CO_E_INIT_MEMORY_ALLOCATOR Handle = 0x80004008
3272 CO_E_INIT_CLASS_CACHE Handle = 0x80004009
3273 CO_E_INIT_RPC_CHANNEL Handle = 0x8000400A
3274 CO_E_INIT_TLS_SET_CHANNEL_CONTROL Handle = 0x8000400B
3275 CO_E_INIT_TLS_CHANNEL_CONTROL Handle = 0x8000400C
3276 CO_E_INIT_UNACCEPTED_USER_ALLOCATOR Handle = 0x8000400D
3277 CO_E_INIT_SCM_MUTEX_EXISTS Handle = 0x8000400E
3278 CO_E_INIT_SCM_FILE_MAPPING_EXISTS Handle = 0x8000400F
3279 CO_E_INIT_SCM_MAP_VIEW_OF_FILE Handle = 0x80004010
3280 CO_E_INIT_SCM_EXEC_FAILURE Handle = 0x80004011
3281 CO_E_INIT_ONLY_SINGLE_THREADED Handle = 0x80004012
3282 CO_E_CANT_REMOTE Handle = 0x80004013
3283 CO_E_BAD_SERVER_NAME Handle = 0x80004014
3284 CO_E_WRONG_SERVER_IDENTITY Handle = 0x80004015
3285 CO_E_OLE1DDE_DISABLED Handle = 0x80004016
3286 CO_E_RUNAS_SYNTAX Handle = 0x80004017
3287 CO_E_CREATEPROCESS_FAILURE Handle = 0x80004018
3288 CO_E_RUNAS_CREATEPROCESS_FAILURE Handle = 0x80004019
3289 CO_E_RUNAS_LOGON_FAILURE Handle = 0x8000401A
3290 CO_E_LAUNCH_PERMSSION_DENIED Handle = 0x8000401B
3291 CO_E_START_SERVICE_FAILURE Handle = 0x8000401C
3292 CO_E_REMOTE_COMMUNICATION_FAILURE Handle = 0x8000401D
3293 CO_E_SERVER_START_TIMEOUT Handle = 0x8000401E
3294 CO_E_CLSREG_INCONSISTENT Handle = 0x8000401F
3295 CO_E_IIDREG_INCONSISTENT Handle = 0x80004020
3296 CO_E_NOT_SUPPORTED Handle = 0x80004021
3297 CO_E_RELOAD_DLL Handle = 0x80004022
3298 CO_E_MSI_ERROR Handle = 0x80004023
3299 CO_E_ATTEMPT_TO_CREATE_OUTSIDE_CLIENT_CONTEXT Handle = 0x80004024
3300 CO_E_SERVER_PAUSED Handle = 0x80004025
3301 CO_E_SERVER_NOT_PAUSED Handle = 0x80004026
3302 CO_E_CLASS_DISABLED Handle = 0x80004027
3303 CO_E_CLRNOTAVAILABLE Handle = 0x80004028
3304 CO_E_ASYNC_WORK_REJECTED Handle = 0x80004029
3305 CO_E_SERVER_INIT_TIMEOUT Handle = 0x8000402A
3306 CO_E_NO_SECCTX_IN_ACTIVATE Handle = 0x8000402B
3307 CO_E_TRACKER_CONFIG Handle = 0x80004030
3308 CO_E_THREADPOOL_CONFIG Handle = 0x80004031
3309 CO_E_SXS_CONFIG Handle = 0x80004032
3310 CO_E_MALFORMED_SPN Handle = 0x80004033
3311 CO_E_UNREVOKED_REGISTRATION_ON_APARTMENT_SHUTDOWN Handle = 0x80004034
3312 CO_E_PREMATURE_STUB_RUNDOWN Handle = 0x80004035
3313 S_OK Handle = 0
3314 S_FALSE Handle = 1
3315 OLE_E_FIRST Handle = 0x80040000
3316 OLE_E_LAST Handle = 0x800400FF
3317 OLE_S_FIRST Handle = 0x00040000
3318 OLE_S_LAST Handle = 0x000400FF
3319 OLE_E_OLEVERB Handle = 0x80040000
3320 OLE_E_ADVF Handle = 0x80040001
3321 OLE_E_ENUM_NOMORE Handle = 0x80040002
3322 OLE_E_ADVISENOTSUPPORTED Handle = 0x80040003
3323 OLE_E_NOCONNECTION Handle = 0x80040004
3324 OLE_E_NOTRUNNING Handle = 0x80040005
3325 OLE_E_NOCACHE Handle = 0x80040006
3326 OLE_E_BLANK Handle = 0x80040007
3327 OLE_E_CLASSDIFF Handle = 0x80040008
3328 OLE_E_CANT_GETMONIKER Handle = 0x80040009
3329 OLE_E_CANT_BINDTOSOURCE Handle = 0x8004000A
3330 OLE_E_STATIC Handle = 0x8004000B
3331 OLE_E_PROMPTSAVECANCELLED Handle = 0x8004000C
3332 OLE_E_INVALIDRECT Handle = 0x8004000D
3333 OLE_E_WRONGCOMPOBJ Handle = 0x8004000E
3334 OLE_E_INVALIDHWND Handle = 0x8004000F
3335 OLE_E_NOT_INPLACEACTIVE Handle = 0x80040010
3336 OLE_E_CANTCONVERT Handle = 0x80040011
3337 OLE_E_NOSTORAGE Handle = 0x80040012
3338 DV_E_FORMATETC Handle = 0x80040064
3339 DV_E_DVTARGETDEVICE Handle = 0x80040065
3340 DV_E_STGMEDIUM Handle = 0x80040066
3341 DV_E_STATDATA Handle = 0x80040067
3342 DV_E_LINDEX Handle = 0x80040068
3343 DV_E_TYMED Handle = 0x80040069
3344 DV_E_CLIPFORMAT Handle = 0x8004006A
3345 DV_E_DVASPECT Handle = 0x8004006B
3346 DV_E_DVTARGETDEVICE_SIZE Handle = 0x8004006C
3347 DV_E_NOIVIEWOBJECT Handle = 0x8004006D
3348 DRAGDROP_E_FIRST syscall.Errno = 0x80040100
3349 DRAGDROP_E_LAST syscall.Errno = 0x8004010F
3350 DRAGDROP_S_FIRST syscall.Errno = 0x00040100
3351 DRAGDROP_S_LAST syscall.Errno = 0x0004010F
3352 DRAGDROP_E_NOTREGISTERED Handle = 0x80040100
3353 DRAGDROP_E_ALREADYREGISTERED Handle = 0x80040101
3354 DRAGDROP_E_INVALIDHWND Handle = 0x80040102
3355 DRAGDROP_E_CONCURRENT_DRAG_ATTEMPTED Handle = 0x80040103
3356 CLASSFACTORY_E_FIRST syscall.Errno = 0x80040110
3357 CLASSFACTORY_E_LAST syscall.Errno = 0x8004011F
3358 CLASSFACTORY_S_FIRST syscall.Errno = 0x00040110
3359 CLASSFACTORY_S_LAST syscall.Errno = 0x0004011F
3360 CLASS_E_NOAGGREGATION Handle = 0x80040110
3361 CLASS_E_CLASSNOTAVAILABLE Handle = 0x80040111
3362 CLASS_E_NOTLICENSED Handle = 0x80040112
3363 MARSHAL_E_FIRST syscall.Errno = 0x80040120
3364 MARSHAL_E_LAST syscall.Errno = 0x8004012F
3365 MARSHAL_S_FIRST syscall.Errno = 0x00040120
3366 MARSHAL_S_LAST syscall.Errno = 0x0004012F
3367 DATA_E_FIRST syscall.Errno = 0x80040130
3368 DATA_E_LAST syscall.Errno = 0x8004013F
3369 DATA_S_FIRST syscall.Errno = 0x00040130
3370 DATA_S_LAST syscall.Errno = 0x0004013F
3371 VIEW_E_FIRST syscall.Errno = 0x80040140
3372 VIEW_E_LAST syscall.Errno = 0x8004014F
3373 VIEW_S_FIRST syscall.Errno = 0x00040140
3374 VIEW_S_LAST syscall.Errno = 0x0004014F
3375 VIEW_E_DRAW Handle = 0x80040140
3376 REGDB_E_FIRST syscall.Errno = 0x80040150
3377 REGDB_E_LAST syscall.Errno = 0x8004015F
3378 REGDB_S_FIRST syscall.Errno = 0x00040150
3379 REGDB_S_LAST syscall.Errno = 0x0004015F
3380 REGDB_E_READREGDB Handle = 0x80040150
3381 REGDB_E_WRITEREGDB Handle = 0x80040151
3382 REGDB_E_KEYMISSING Handle = 0x80040152
3383 REGDB_E_INVALIDVALUE Handle = 0x80040153
3384 REGDB_E_CLASSNOTREG Handle = 0x80040154
3385 REGDB_E_IIDNOTREG Handle = 0x80040155
3386 REGDB_E_BADTHREADINGMODEL Handle = 0x80040156
3387 REGDB_E_PACKAGEPOLICYVIOLATION Handle = 0x80040157
3388 CAT_E_FIRST syscall.Errno = 0x80040160
3389 CAT_E_LAST syscall.Errno = 0x80040161
3390 CAT_E_CATIDNOEXIST Handle = 0x80040160
3391 CAT_E_NODESCRIPTION Handle = 0x80040161
3392 CS_E_FIRST syscall.Errno = 0x80040164
3393 CS_E_LAST syscall.Errno = 0x8004016F
3394 CS_E_PACKAGE_NOTFOUND Handle = 0x80040164
3395 CS_E_NOT_DELETABLE Handle = 0x80040165
3396 CS_E_CLASS_NOTFOUND Handle = 0x80040166
3397 CS_E_INVALID_VERSION Handle = 0x80040167
3398 CS_E_NO_CLASSSTORE Handle = 0x80040168
3399 CS_E_OBJECT_NOTFOUND Handle = 0x80040169
3400 CS_E_OBJECT_ALREADY_EXISTS Handle = 0x8004016A
3401 CS_E_INVALID_PATH Handle = 0x8004016B
3402 CS_E_NETWORK_ERROR Handle = 0x8004016C
3403 CS_E_ADMIN_LIMIT_EXCEEDED Handle = 0x8004016D
3404 CS_E_SCHEMA_MISMATCH Handle = 0x8004016E
3405 CS_E_INTERNAL_ERROR Handle = 0x8004016F
3406 CACHE_E_FIRST syscall.Errno = 0x80040170
3407 CACHE_E_LAST syscall.Errno = 0x8004017F
3408 CACHE_S_FIRST syscall.Errno = 0x00040170
3409 CACHE_S_LAST syscall.Errno = 0x0004017F
3410 CACHE_E_NOCACHE_UPDATED Handle = 0x80040170
3411 OLEOBJ_E_FIRST syscall.Errno = 0x80040180
3412 OLEOBJ_E_LAST syscall.Errno = 0x8004018F
3413 OLEOBJ_S_FIRST syscall.Errno = 0x00040180
3414 OLEOBJ_S_LAST syscall.Errno = 0x0004018F
3415 OLEOBJ_E_NOVERBS Handle = 0x80040180
3416 OLEOBJ_E_INVALIDVERB Handle = 0x80040181
3417 CLIENTSITE_E_FIRST syscall.Errno = 0x80040190
3418 CLIENTSITE_E_LAST syscall.Errno = 0x8004019F
3419 CLIENTSITE_S_FIRST syscall.Errno = 0x00040190
3420 CLIENTSITE_S_LAST syscall.Errno = 0x0004019F
3421 INPLACE_E_NOTUNDOABLE Handle = 0x800401A0
3422 INPLACE_E_NOTOOLSPACE Handle = 0x800401A1
3423 INPLACE_E_FIRST syscall.Errno = 0x800401A0
3424 INPLACE_E_LAST syscall.Errno = 0x800401AF
3425 INPLACE_S_FIRST syscall.Errno = 0x000401A0
3426 INPLACE_S_LAST syscall.Errno = 0x000401AF
3427 ENUM_E_FIRST syscall.Errno = 0x800401B0
3428 ENUM_E_LAST syscall.Errno = 0x800401BF
3429 ENUM_S_FIRST syscall.Errno = 0x000401B0
3430 ENUM_S_LAST syscall.Errno = 0x000401BF
3431 CONVERT10_E_FIRST syscall.Errno = 0x800401C0
3432 CONVERT10_E_LAST syscall.Errno = 0x800401CF
3433 CONVERT10_S_FIRST syscall.Errno = 0x000401C0
3434 CONVERT10_S_LAST syscall.Errno = 0x000401CF
3435 CONVERT10_E_OLESTREAM_GET Handle = 0x800401C0
3436 CONVERT10_E_OLESTREAM_PUT Handle = 0x800401C1
3437 CONVERT10_E_OLESTREAM_FMT Handle = 0x800401C2
3438 CONVERT10_E_OLESTREAM_BITMAP_TO_DIB Handle = 0x800401C3
3439 CONVERT10_E_STG_FMT Handle = 0x800401C4
3440 CONVERT10_E_STG_NO_STD_STREAM Handle = 0x800401C5
3441 CONVERT10_E_STG_DIB_TO_BITMAP Handle = 0x800401C6
3442 CLIPBRD_E_FIRST syscall.Errno = 0x800401D0
3443 CLIPBRD_E_LAST syscall.Errno = 0x800401DF
3444 CLIPBRD_S_FIRST syscall.Errno = 0x000401D0
3445 CLIPBRD_S_LAST syscall.Errno = 0x000401DF
3446 CLIPBRD_E_CANT_OPEN Handle = 0x800401D0
3447 CLIPBRD_E_CANT_EMPTY Handle = 0x800401D1
3448 CLIPBRD_E_CANT_SET Handle = 0x800401D2
3449 CLIPBRD_E_BAD_DATA Handle = 0x800401D3
3450 CLIPBRD_E_CANT_CLOSE Handle = 0x800401D4
3451 MK_E_FIRST syscall.Errno = 0x800401E0
3452 MK_E_LAST syscall.Errno = 0x800401EF
3453 MK_S_FIRST syscall.Errno = 0x000401E0
3454 MK_S_LAST syscall.Errno = 0x000401EF
3455 MK_E_CONNECTMANUALLY Handle = 0x800401E0
3456 MK_E_EXCEEDEDDEADLINE Handle = 0x800401E1
3457 MK_E_NEEDGENERIC Handle = 0x800401E2
3458 MK_E_UNAVAILABLE Handle = 0x800401E3
3459 MK_E_SYNTAX Handle = 0x800401E4
3460 MK_E_NOOBJECT Handle = 0x800401E5
3461 MK_E_INVALIDEXTENSION Handle = 0x800401E6
3462 MK_E_INTERMEDIATEINTERFACENOTSUPPORTED Handle = 0x800401E7
3463 MK_E_NOTBINDABLE Handle = 0x800401E8
3464 MK_E_NOTBOUND Handle = 0x800401E9
3465 MK_E_CANTOPENFILE Handle = 0x800401EA
3466 MK_E_MUSTBOTHERUSER Handle = 0x800401EB
3467 MK_E_NOINVERSE Handle = 0x800401EC
3468 MK_E_NOSTORAGE Handle = 0x800401ED
3469 MK_E_NOPREFIX Handle = 0x800401EE
3470 MK_E_ENUMERATION_FAILED Handle = 0x800401EF
3471 CO_E_FIRST syscall.Errno = 0x800401F0
3472 CO_E_LAST syscall.Errno = 0x800401FF
3473 CO_S_FIRST syscall.Errno = 0x000401F0
3474 CO_S_LAST syscall.Errno = 0x000401FF
3475 CO_E_NOTINITIALIZED Handle = 0x800401F0
3476 CO_E_ALREADYINITIALIZED Handle = 0x800401F1
3477 CO_E_CANTDETERMINECLASS Handle = 0x800401F2
3478 CO_E_CLASSSTRING Handle = 0x800401F3
3479 CO_E_IIDSTRING Handle = 0x800401F4
3480 CO_E_APPNOTFOUND Handle = 0x800401F5
3481 CO_E_APPSINGLEUSE Handle = 0x800401F6
3482 CO_E_ERRORINAPP Handle = 0x800401F7
3483 CO_E_DLLNOTFOUND Handle = 0x800401F8
3484 CO_E_ERRORINDLL Handle = 0x800401F9
3485 CO_E_WRONGOSFORAPP Handle = 0x800401FA
3486 CO_E_OBJNOTREG Handle = 0x800401FB
3487 CO_E_OBJISREG Handle = 0x800401FC
3488 CO_E_OBJNOTCONNECTED Handle = 0x800401FD
3489 CO_E_APPDIDNTREG Handle = 0x800401FE
3490 CO_E_RELEASED Handle = 0x800401FF
3491 EVENT_E_FIRST syscall.Errno = 0x80040200
3492 EVENT_E_LAST syscall.Errno = 0x8004021F
3493 EVENT_S_FIRST syscall.Errno = 0x00040200
3494 EVENT_S_LAST syscall.Errno = 0x0004021F
3495 EVENT_S_SOME_SUBSCRIBERS_FAILED Handle = 0x00040200
3496 EVENT_E_ALL_SUBSCRIBERS_FAILED Handle = 0x80040201
3497 EVENT_S_NOSUBSCRIBERS Handle = 0x00040202
3498 EVENT_E_QUERYSYNTAX Handle = 0x80040203
3499 EVENT_E_QUERYFIELD Handle = 0x80040204
3500 EVENT_E_INTERNALEXCEPTION Handle = 0x80040205
3501 EVENT_E_INTERNALERROR Handle = 0x80040206
3502 EVENT_E_INVALID_PER_USER_SID Handle = 0x80040207
3503 EVENT_E_USER_EXCEPTION Handle = 0x80040208
3504 EVENT_E_TOO_MANY_METHODS Handle = 0x80040209
3505 EVENT_E_MISSING_EVENTCLASS Handle = 0x8004020A
3506 EVENT_E_NOT_ALL_REMOVED Handle = 0x8004020B
3507 EVENT_E_COMPLUS_NOT_INSTALLED Handle = 0x8004020C
3508 EVENT_E_CANT_MODIFY_OR_DELETE_UNCONFIGURED_OBJECT Handle = 0x8004020D
3509 EVENT_E_CANT_MODIFY_OR_DELETE_CONFIGURED_OBJECT Handle = 0x8004020E
3510 EVENT_E_INVALID_EVENT_CLASS_PARTITION Handle = 0x8004020F
3511 EVENT_E_PER_USER_SID_NOT_LOGGED_ON Handle = 0x80040210
3512 TPC_E_INVALID_PROPERTY Handle = 0x80040241
3513 TPC_E_NO_DEFAULT_TABLET Handle = 0x80040212
3514 TPC_E_UNKNOWN_PROPERTY Handle = 0x8004021B
3515 TPC_E_INVALID_INPUT_RECT Handle = 0x80040219
3516 TPC_E_INVALID_STROKE Handle = 0x80040222
3517 TPC_E_INITIALIZE_FAIL Handle = 0x80040223
3518 TPC_E_NOT_RELEVANT Handle = 0x80040232
3519 TPC_E_INVALID_PACKET_DESCRIPTION Handle = 0x80040233
3520 TPC_E_RECOGNIZER_NOT_REGISTERED Handle = 0x80040235
3521 TPC_E_INVALID_RIGHTS Handle = 0x80040236
3522 TPC_E_OUT_OF_ORDER_CALL Handle = 0x80040237
3523 TPC_E_QUEUE_FULL Handle = 0x80040238
3524 TPC_E_INVALID_CONFIGURATION Handle = 0x80040239
3525 TPC_E_INVALID_DATA_FROM_RECOGNIZER Handle = 0x8004023A
3526 TPC_S_TRUNCATED Handle = 0x00040252
3527 TPC_S_INTERRUPTED Handle = 0x00040253
3528 TPC_S_NO_DATA_TO_PROCESS Handle = 0x00040254
3529 XACT_E_FIRST syscall.Errno = 0x8004D000
3530 XACT_E_LAST syscall.Errno = 0x8004D02B
3531 XACT_S_FIRST syscall.Errno = 0x0004D000
3532 XACT_S_LAST syscall.Errno = 0x0004D010
3533 XACT_E_ALREADYOTHERSINGLEPHASE Handle = 0x8004D000
3534 XACT_E_CANTRETAIN Handle = 0x8004D001
3535 XACT_E_COMMITFAILED Handle = 0x8004D002
3536 XACT_E_COMMITPREVENTED Handle = 0x8004D003
3537 XACT_E_HEURISTICABORT Handle = 0x8004D004
3538 XACT_E_HEURISTICCOMMIT Handle = 0x8004D005
3539 XACT_E_HEURISTICDAMAGE Handle = 0x8004D006
3540 XACT_E_HEURISTICDANGER Handle = 0x8004D007
3541 XACT_E_ISOLATIONLEVEL Handle = 0x8004D008
3542 XACT_E_NOASYNC Handle = 0x8004D009
3543 XACT_E_NOENLIST Handle = 0x8004D00A
3544 XACT_E_NOISORETAIN Handle = 0x8004D00B
3545 XACT_E_NORESOURCE Handle = 0x8004D00C
3546 XACT_E_NOTCURRENT Handle = 0x8004D00D
3547 XACT_E_NOTRANSACTION Handle = 0x8004D00E
3548 XACT_E_NOTSUPPORTED Handle = 0x8004D00F
3549 XACT_E_UNKNOWNRMGRID Handle = 0x8004D010
3550 XACT_E_WRONGSTATE Handle = 0x8004D011
3551 XACT_E_WRONGUOW Handle = 0x8004D012
3552 XACT_E_XTIONEXISTS Handle = 0x8004D013
3553 XACT_E_NOIMPORTOBJECT Handle = 0x8004D014
3554 XACT_E_INVALIDCOOKIE Handle = 0x8004D015
3555 XACT_E_INDOUBT Handle = 0x8004D016
3556 XACT_E_NOTIMEOUT Handle = 0x8004D017
3557 XACT_E_ALREADYINPROGRESS Handle = 0x8004D018
3558 XACT_E_ABORTED Handle = 0x8004D019
3559 XACT_E_LOGFULL Handle = 0x8004D01A
3560 XACT_E_TMNOTAVAILABLE Handle = 0x8004D01B
3561 XACT_E_CONNECTION_DOWN Handle = 0x8004D01C
3562 XACT_E_CONNECTION_DENIED Handle = 0x8004D01D
3563 XACT_E_REENLISTTIMEOUT Handle = 0x8004D01E
3564 XACT_E_TIP_CONNECT_FAILED Handle = 0x8004D01F
3565 XACT_E_TIP_PROTOCOL_ERROR Handle = 0x8004D020
3566 XACT_E_TIP_PULL_FAILED Handle = 0x8004D021
3567 XACT_E_DEST_TMNOTAVAILABLE Handle = 0x8004D022
3568 XACT_E_TIP_DISABLED Handle = 0x8004D023
3569 XACT_E_NETWORK_TX_DISABLED Handle = 0x8004D024
3570 XACT_E_PARTNER_NETWORK_TX_DISABLED Handle = 0x8004D025
3571 XACT_E_XA_TX_DISABLED Handle = 0x8004D026
3572 XACT_E_UNABLE_TO_READ_DTC_CONFIG Handle = 0x8004D027
3573 XACT_E_UNABLE_TO_LOAD_DTC_PROXY Handle = 0x8004D028
3574 XACT_E_ABORTING Handle = 0x8004D029
3575 XACT_E_PUSH_COMM_FAILURE Handle = 0x8004D02A
3576 XACT_E_PULL_COMM_FAILURE Handle = 0x8004D02B
3577 XACT_E_LU_TX_DISABLED Handle = 0x8004D02C
3578 XACT_E_CLERKNOTFOUND Handle = 0x8004D080
3579 XACT_E_CLERKEXISTS Handle = 0x8004D081
3580 XACT_E_RECOVERYINPROGRESS Handle = 0x8004D082
3581 XACT_E_TRANSACTIONCLOSED Handle = 0x8004D083
3582 XACT_E_INVALIDLSN Handle = 0x8004D084
3583 XACT_E_REPLAYREQUEST Handle = 0x8004D085
3584 XACT_S_ASYNC Handle = 0x0004D000
3585 XACT_S_DEFECT Handle = 0x0004D001
3586 XACT_S_READONLY Handle = 0x0004D002
3587 XACT_S_SOMENORETAIN Handle = 0x0004D003
3588 XACT_S_OKINFORM Handle = 0x0004D004
3589 XACT_S_MADECHANGESCONTENT Handle = 0x0004D005
3590 XACT_S_MADECHANGESINFORM Handle = 0x0004D006
3591 XACT_S_ALLNORETAIN Handle = 0x0004D007
3592 XACT_S_ABORTING Handle = 0x0004D008
3593 XACT_S_SINGLEPHASE Handle = 0x0004D009
3594 XACT_S_LOCALLY_OK Handle = 0x0004D00A
3595 XACT_S_LASTRESOURCEMANAGER Handle = 0x0004D010
3596 CONTEXT_E_FIRST syscall.Errno = 0x8004E000
3597 CONTEXT_E_LAST syscall.Errno = 0x8004E02F
3598 CONTEXT_S_FIRST syscall.Errno = 0x0004E000
3599 CONTEXT_S_LAST syscall.Errno = 0x0004E02F
3600 CONTEXT_E_ABORTED Handle = 0x8004E002
3601 CONTEXT_E_ABORTING Handle = 0x8004E003
3602 CONTEXT_E_NOCONTEXT Handle = 0x8004E004
3603 CONTEXT_E_WOULD_DEADLOCK Handle = 0x8004E005
3604 CONTEXT_E_SYNCH_TIMEOUT Handle = 0x8004E006
3605 CONTEXT_E_OLDREF Handle = 0x8004E007
3606 CONTEXT_E_ROLENOTFOUND Handle = 0x8004E00C
3607 CONTEXT_E_TMNOTAVAILABLE Handle = 0x8004E00F
3608 CO_E_ACTIVATIONFAILED Handle = 0x8004E021
3609 CO_E_ACTIVATIONFAILED_EVENTLOGGED Handle = 0x8004E022
3610 CO_E_ACTIVATIONFAILED_CATALOGERROR Handle = 0x8004E023
3611 CO_E_ACTIVATIONFAILED_TIMEOUT Handle = 0x8004E024
3612 CO_E_INITIALIZATIONFAILED Handle = 0x8004E025
3613 CONTEXT_E_NOJIT Handle = 0x8004E026
3614 CONTEXT_E_NOTRANSACTION Handle = 0x8004E027
3615 CO_E_THREADINGMODEL_CHANGED Handle = 0x8004E028
3616 CO_E_NOIISINTRINSICS Handle = 0x8004E029
3617 CO_E_NOCOOKIES Handle = 0x8004E02A
3618 CO_E_DBERROR Handle = 0x8004E02B
3619 CO_E_NOTPOOLED Handle = 0x8004E02C
3620 CO_E_NOTCONSTRUCTED Handle = 0x8004E02D
3621 CO_E_NOSYNCHRONIZATION Handle = 0x8004E02E
3622 CO_E_ISOLEVELMISMATCH Handle = 0x8004E02F
3623 CO_E_CALL_OUT_OF_TX_SCOPE_NOT_ALLOWED Handle = 0x8004E030
3624 CO_E_EXIT_TRANSACTION_SCOPE_NOT_CALLED Handle = 0x8004E031
3625 OLE_S_USEREG Handle = 0x00040000
3626 OLE_S_STATIC Handle = 0x00040001
3627 OLE_S_MAC_CLIPFORMAT Handle = 0x00040002
3628 DRAGDROP_S_DROP Handle = 0x00040100
3629 DRAGDROP_S_CANCEL Handle = 0x00040101
3630 DRAGDROP_S_USEDEFAULTCURSORS Handle = 0x00040102
3631 DATA_S_SAMEFORMATETC Handle = 0x00040130
3632 VIEW_S_ALREADY_FROZEN Handle = 0x00040140
3633 CACHE_S_FORMATETC_NOTSUPPORTED Handle = 0x00040170
3634 CACHE_S_SAMECACHE Handle = 0x00040171
3635 CACHE_S_SOMECACHES_NOTUPDATED Handle = 0x00040172
3636 OLEOBJ_S_INVALIDVERB Handle = 0x00040180
3637 OLEOBJ_S_CANNOT_DOVERB_NOW Handle = 0x00040181
3638 OLEOBJ_S_INVALIDHWND Handle = 0x00040182
3639 INPLACE_S_TRUNCATED Handle = 0x000401A0
3640 CONVERT10_S_NO_PRESENTATION Handle = 0x000401C0
3641 MK_S_REDUCED_TO_SELF Handle = 0x000401E2
3642 MK_S_ME Handle = 0x000401E4
3643 MK_S_HIM Handle = 0x000401E5
3644 MK_S_US Handle = 0x000401E6
3645 MK_S_MONIKERALREADYREGISTERED Handle = 0x000401E7
3646 SCHED_S_TASK_READY Handle = 0x00041300
3647 SCHED_S_TASK_RUNNING Handle = 0x00041301
3648 SCHED_S_TASK_DISABLED Handle = 0x00041302
3649 SCHED_S_TASK_HAS_NOT_RUN Handle = 0x00041303
3650 SCHED_S_TASK_NO_MORE_RUNS Handle = 0x00041304
3651 SCHED_S_TASK_NOT_SCHEDULED Handle = 0x00041305
3652 SCHED_S_TASK_TERMINATED Handle = 0x00041306
3653 SCHED_S_TASK_NO_VALID_TRIGGERS Handle = 0x00041307
3654 SCHED_S_EVENT_TRIGGER Handle = 0x00041308
3655 SCHED_E_TRIGGER_NOT_FOUND Handle = 0x80041309
3656 SCHED_E_TASK_NOT_READY Handle = 0x8004130A
3657 SCHED_E_TASK_NOT_RUNNING Handle = 0x8004130B
3658 SCHED_E_SERVICE_NOT_INSTALLED Handle = 0x8004130C
3659 SCHED_E_CANNOT_OPEN_TASK Handle = 0x8004130D
3660 SCHED_E_INVALID_TASK Handle = 0x8004130E
3661 SCHED_E_ACCOUNT_INFORMATION_NOT_SET Handle = 0x8004130F
3662 SCHED_E_ACCOUNT_NAME_NOT_FOUND Handle = 0x80041310
3663 SCHED_E_ACCOUNT_DBASE_CORRUPT Handle = 0x80041311
3664 SCHED_E_NO_SECURITY_SERVICES Handle = 0x80041312
3665 SCHED_E_UNKNOWN_OBJECT_VERSION Handle = 0x80041313
3666 SCHED_E_UNSUPPORTED_ACCOUNT_OPTION Handle = 0x80041314
3667 SCHED_E_SERVICE_NOT_RUNNING Handle = 0x80041315
3668 SCHED_E_UNEXPECTEDNODE Handle = 0x80041316
3669 SCHED_E_NAMESPACE Handle = 0x80041317
3670 SCHED_E_INVALIDVALUE Handle = 0x80041318
3671 SCHED_E_MISSINGNODE Handle = 0x80041319
3672 SCHED_E_MALFORMEDXML Handle = 0x8004131A
3673 SCHED_S_SOME_TRIGGERS_FAILED Handle = 0x0004131B
3674 SCHED_S_BATCH_LOGON_PROBLEM Handle = 0x0004131C
3675 SCHED_E_TOO_MANY_NODES Handle = 0x8004131D
3676 SCHED_E_PAST_END_BOUNDARY Handle = 0x8004131E
3677 SCHED_E_ALREADY_RUNNING Handle = 0x8004131F
3678 SCHED_E_USER_NOT_LOGGED_ON Handle = 0x80041320
3679 SCHED_E_INVALID_TASK_HASH Handle = 0x80041321
3680 SCHED_E_SERVICE_NOT_AVAILABLE Handle = 0x80041322
3681 SCHED_E_SERVICE_TOO_BUSY Handle = 0x80041323
3682 SCHED_E_TASK_ATTEMPTED Handle = 0x80041324
3683 SCHED_S_TASK_QUEUED Handle = 0x00041325
3684 SCHED_E_TASK_DISABLED Handle = 0x80041326
3685 SCHED_E_TASK_NOT_V1_COMPAT Handle = 0x80041327
3686 SCHED_E_START_ON_DEMAND Handle = 0x80041328
3687 SCHED_E_TASK_NOT_UBPM_COMPAT Handle = 0x80041329
3688 SCHED_E_DEPRECATED_FEATURE_USED Handle = 0x80041330
3689 CO_E_CLASS_CREATE_FAILED Handle = 0x80080001
3690 CO_E_SCM_ERROR Handle = 0x80080002
3691 CO_E_SCM_RPC_FAILURE Handle = 0x80080003
3692 CO_E_BAD_PATH Handle = 0x80080004
3693 CO_E_SERVER_EXEC_FAILURE Handle = 0x80080005
3694 CO_E_OBJSRV_RPC_FAILURE Handle = 0x80080006
3695 MK_E_NO_NORMALIZED Handle = 0x80080007
3696 CO_E_SERVER_STOPPING Handle = 0x80080008
3697 MEM_E_INVALID_ROOT Handle = 0x80080009
3698 MEM_E_INVALID_LINK Handle = 0x80080010
3699 MEM_E_INVALID_SIZE Handle = 0x80080011
3700 CO_S_NOTALLINTERFACES Handle = 0x00080012
3701 CO_S_MACHINENAMENOTFOUND Handle = 0x00080013
3702 CO_E_MISSING_DISPLAYNAME Handle = 0x80080015
3703 CO_E_RUNAS_VALUE_MUST_BE_AAA Handle = 0x80080016
3704 CO_E_ELEVATION_DISABLED Handle = 0x80080017
3705 APPX_E_PACKAGING_INTERNAL Handle = 0x80080200
3706 APPX_E_INTERLEAVING_NOT_ALLOWED Handle = 0x80080201
3707 APPX_E_RELATIONSHIPS_NOT_ALLOWED Handle = 0x80080202
3708 APPX_E_MISSING_REQUIRED_FILE Handle = 0x80080203
3709 APPX_E_INVALID_MANIFEST Handle = 0x80080204
3710 APPX_E_INVALID_BLOCKMAP Handle = 0x80080205
3711 APPX_E_CORRUPT_CONTENT Handle = 0x80080206
3712 APPX_E_BLOCK_HASH_INVALID Handle = 0x80080207
3713 APPX_E_REQUESTED_RANGE_TOO_LARGE Handle = 0x80080208
3714 APPX_E_INVALID_SIP_CLIENT_DATA Handle = 0x80080209
3715 APPX_E_INVALID_KEY_INFO Handle = 0x8008020A
3716 APPX_E_INVALID_CONTENTGROUPMAP Handle = 0x8008020B
3717 APPX_E_INVALID_APPINSTALLER Handle = 0x8008020C
3718 APPX_E_DELTA_BASELINE_VERSION_MISMATCH Handle = 0x8008020D
3719 APPX_E_DELTA_PACKAGE_MISSING_FILE Handle = 0x8008020E
3720 APPX_E_INVALID_DELTA_PACKAGE Handle = 0x8008020F
3721 APPX_E_DELTA_APPENDED_PACKAGE_NOT_ALLOWED Handle = 0x80080210
3722 APPX_E_INVALID_PACKAGING_LAYOUT Handle = 0x80080211
3723 APPX_E_INVALID_PACKAGESIGNCONFIG Handle = 0x80080212
3724 APPX_E_RESOURCESPRI_NOT_ALLOWED Handle = 0x80080213
3725 APPX_E_FILE_COMPRESSION_MISMATCH Handle = 0x80080214
3726 APPX_E_INVALID_PAYLOAD_PACKAGE_EXTENSION Handle = 0x80080215
3727 APPX_E_INVALID_ENCRYPTION_EXCLUSION_FILE_LIST Handle = 0x80080216
3728 BT_E_SPURIOUS_ACTIVATION Handle = 0x80080300
3729 DISP_E_UNKNOWNINTERFACE Handle = 0x80020001
3730 DISP_E_MEMBERNOTFOUND Handle = 0x80020003
3731 DISP_E_PARAMNOTFOUND Handle = 0x80020004
3732 DISP_E_TYPEMISMATCH Handle = 0x80020005
3733 DISP_E_UNKNOWNNAME Handle = 0x80020006
3734 DISP_E_NONAMEDARGS Handle = 0x80020007
3735 DISP_E_BADVARTYPE Handle = 0x80020008
3736 DISP_E_EXCEPTION Handle = 0x80020009
3737 DISP_E_OVERFLOW Handle = 0x8002000A
3738 DISP_E_BADINDEX Handle = 0x8002000B
3739 DISP_E_UNKNOWNLCID Handle = 0x8002000C
3740 DISP_E_ARRAYISLOCKED Handle = 0x8002000D
3741 DISP_E_BADPARAMCOUNT Handle = 0x8002000E
3742 DISP_E_PARAMNOTOPTIONAL Handle = 0x8002000F
3743 DISP_E_BADCALLEE Handle = 0x80020010
3744 DISP_E_NOTACOLLECTION Handle = 0x80020011
3745 DISP_E_DIVBYZERO Handle = 0x80020012
3746 DISP_E_BUFFERTOOSMALL Handle = 0x80020013
3747 TYPE_E_BUFFERTOOSMALL Handle = 0x80028016
3748 TYPE_E_FIELDNOTFOUND Handle = 0x80028017
3749 TYPE_E_INVDATAREAD Handle = 0x80028018
3750 TYPE_E_UNSUPFORMAT Handle = 0x80028019
3751 TYPE_E_REGISTRYACCESS Handle = 0x8002801C
3752 TYPE_E_LIBNOTREGISTERED Handle = 0x8002801D
3753 TYPE_E_UNDEFINEDTYPE Handle = 0x80028027
3754 TYPE_E_QUALIFIEDNAMEDISALLOWED Handle = 0x80028028
3755 TYPE_E_INVALIDSTATE Handle = 0x80028029
3756 TYPE_E_WRONGTYPEKIND Handle = 0x8002802A
3757 TYPE_E_ELEMENTNOTFOUND Handle = 0x8002802B
3758 TYPE_E_AMBIGUOUSNAME Handle = 0x8002802C
3759 TYPE_E_NAMECONFLICT Handle = 0x8002802D
3760 TYPE_E_UNKNOWNLCID Handle = 0x8002802E
3761 TYPE_E_DLLFUNCTIONNOTFOUND Handle = 0x8002802F
3762 TYPE_E_BADMODULEKIND Handle = 0x800288BD
3763 TYPE_E_SIZETOOBIG Handle = 0x800288C5
3764 TYPE_E_DUPLICATEID Handle = 0x800288C6
3765 TYPE_E_INVALIDID Handle = 0x800288CF
3766 TYPE_E_TYPEMISMATCH Handle = 0x80028CA0
3767 TYPE_E_OUTOFBOUNDS Handle = 0x80028CA1
3768 TYPE_E_IOERROR Handle = 0x80028CA2
3769 TYPE_E_CANTCREATETMPFILE Handle = 0x80028CA3
3770 TYPE_E_CANTLOADLIBRARY Handle = 0x80029C4A
3771 TYPE_E_INCONSISTENTPROPFUNCS Handle = 0x80029C83
3772 TYPE_E_CIRCULARTYPE Handle = 0x80029C84
3773 STG_E_INVALIDFUNCTION Handle = 0x80030001
3774 STG_E_FILENOTFOUND Handle = 0x80030002
3775 STG_E_PATHNOTFOUND Handle = 0x80030003
3776 STG_E_TOOMANYOPENFILES Handle = 0x80030004
3777 STG_E_ACCESSDENIED Handle = 0x80030005
3778 STG_E_INVALIDHANDLE Handle = 0x80030006
3779 STG_E_INSUFFICIENTMEMORY Handle = 0x80030008
3780 STG_E_INVALIDPOINTER Handle = 0x80030009
3781 STG_E_NOMOREFILES Handle = 0x80030012
3782 STG_E_DISKISWRITEPROTECTED Handle = 0x80030013
3783 STG_E_SEEKERROR Handle = 0x80030019
3784 STG_E_WRITEFAULT Handle = 0x8003001D
3785 STG_E_READFAULT Handle = 0x8003001E
3786 STG_E_SHAREVIOLATION Handle = 0x80030020
3787 STG_E_LOCKVIOLATION Handle = 0x80030021
3788 STG_E_FILEALREADYEXISTS Handle = 0x80030050
3789 STG_E_INVALIDPARAMETER Handle = 0x80030057
3790 STG_E_MEDIUMFULL Handle = 0x80030070
3791 STG_E_PROPSETMISMATCHED Handle = 0x800300F0
3792 STG_E_ABNORMALAPIEXIT Handle = 0x800300FA
3793 STG_E_INVALIDHEADER Handle = 0x800300FB
3794 STG_E_INVALIDNAME Handle = 0x800300FC
3795 STG_E_UNKNOWN Handle = 0x800300FD
3796 STG_E_UNIMPLEMENTEDFUNCTION Handle = 0x800300FE
3797 STG_E_INVALIDFLAG Handle = 0x800300FF
3798 STG_E_INUSE Handle = 0x80030100
3799 STG_E_NOTCURRENT Handle = 0x80030101
3800 STG_E_REVERTED Handle = 0x80030102
3801 STG_E_CANTSAVE Handle = 0x80030103
3802 STG_E_OLDFORMAT Handle = 0x80030104
3803 STG_E_OLDDLL Handle = 0x80030105
3804 STG_E_SHAREREQUIRED Handle = 0x80030106
3805 STG_E_NOTFILEBASEDSTORAGE Handle = 0x80030107
3806 STG_E_EXTANTMARSHALLINGS Handle = 0x80030108
3807 STG_E_DOCFILECORRUPT Handle = 0x80030109
3808 STG_E_BADBASEADDRESS Handle = 0x80030110
3809 STG_E_DOCFILETOOLARGE Handle = 0x80030111
3810 STG_E_NOTSIMPLEFORMAT Handle = 0x80030112
3811 STG_E_INCOMPLETE Handle = 0x80030201
3812 STG_E_TERMINATED Handle = 0x80030202
3813 STG_S_CONVERTED Handle = 0x00030200
3814 STG_S_BLOCK Handle = 0x00030201
3815 STG_S_RETRYNOW Handle = 0x00030202
3816 STG_S_MONITORING Handle = 0x00030203
3817 STG_S_MULTIPLEOPENS Handle = 0x00030204
3818 STG_S_CONSOLIDATIONFAILED Handle = 0x00030205
3819 STG_S_CANNOTCONSOLIDATE Handle = 0x00030206
3820 STG_S_POWER_CYCLE_REQUIRED Handle = 0x00030207
3821 STG_E_FIRMWARE_SLOT_INVALID Handle = 0x80030208
3822 STG_E_FIRMWARE_IMAGE_INVALID Handle = 0x80030209
3823 STG_E_DEVICE_UNRESPONSIVE Handle = 0x8003020A
3824 STG_E_STATUS_COPY_PROTECTION_FAILURE Handle = 0x80030305
3825 STG_E_CSS_AUTHENTICATION_FAILURE Handle = 0x80030306
3826 STG_E_CSS_KEY_NOT_PRESENT Handle = 0x80030307
3827 STG_E_CSS_KEY_NOT_ESTABLISHED Handle = 0x80030308
3828 STG_E_CSS_SCRAMBLED_SECTOR Handle = 0x80030309
3829 STG_E_CSS_REGION_MISMATCH Handle = 0x8003030A
3830 STG_E_RESETS_EXHAUSTED Handle = 0x8003030B
3831 RPC_E_CALL_REJECTED Handle = 0x80010001
3832 RPC_E_CALL_CANCELED Handle = 0x80010002
3833 RPC_E_CANTPOST_INSENDCALL Handle = 0x80010003
3834 RPC_E_CANTCALLOUT_INASYNCCALL Handle = 0x80010004
3835 RPC_E_CANTCALLOUT_INEXTERNALCALL Handle = 0x80010005
3836 RPC_E_CONNECTION_TERMINATED Handle = 0x80010006
3837 RPC_E_SERVER_DIED Handle = 0x80010007
3838 RPC_E_CLIENT_DIED Handle = 0x80010008
3839 RPC_E_INVALID_DATAPACKET Handle = 0x80010009
3840 RPC_E_CANTTRANSMIT_CALL Handle = 0x8001000A
3841 RPC_E_CLIENT_CANTMARSHAL_DATA Handle = 0x8001000B
3842 RPC_E_CLIENT_CANTUNMARSHAL_DATA Handle = 0x8001000C
3843 RPC_E_SERVER_CANTMARSHAL_DATA Handle = 0x8001000D
3844 RPC_E_SERVER_CANTUNMARSHAL_DATA Handle = 0x8001000E
3845 RPC_E_INVALID_DATA Handle = 0x8001000F
3846 RPC_E_INVALID_PARAMETER Handle = 0x80010010
3847 RPC_E_CANTCALLOUT_AGAIN Handle = 0x80010011
3848 RPC_E_SERVER_DIED_DNE Handle = 0x80010012
3849 RPC_E_SYS_CALL_FAILED Handle = 0x80010100
3850 RPC_E_OUT_OF_RESOURCES Handle = 0x80010101
3851 RPC_E_ATTEMPTED_MULTITHREAD Handle = 0x80010102
3852 RPC_E_NOT_REGISTERED Handle = 0x80010103
3853 RPC_E_FAULT Handle = 0x80010104
3854 RPC_E_SERVERFAULT Handle = 0x80010105
3855 RPC_E_CHANGED_MODE Handle = 0x80010106
3856 RPC_E_INVALIDMETHOD Handle = 0x80010107
3857 RPC_E_DISCONNECTED Handle = 0x80010108
3858 RPC_E_RETRY Handle = 0x80010109
3859 RPC_E_SERVERCALL_RETRYLATER Handle = 0x8001010A
3860 RPC_E_SERVERCALL_REJECTED Handle = 0x8001010B
3861 RPC_E_INVALID_CALLDATA Handle = 0x8001010C
3862 RPC_E_CANTCALLOUT_ININPUTSYNCCALL Handle = 0x8001010D
3863 RPC_E_WRONG_THREAD Handle = 0x8001010E
3864 RPC_E_THREAD_NOT_INIT Handle = 0x8001010F
3865 RPC_E_VERSION_MISMATCH Handle = 0x80010110
3866 RPC_E_INVALID_HEADER Handle = 0x80010111
3867 RPC_E_INVALID_EXTENSION Handle = 0x80010112
3868 RPC_E_INVALID_IPID Handle = 0x80010113
3869 RPC_E_INVALID_OBJECT Handle = 0x80010114
3870 RPC_S_CALLPENDING Handle = 0x80010115
3871 RPC_S_WAITONTIMER Handle = 0x80010116
3872 RPC_E_CALL_COMPLETE Handle = 0x80010117
3873 RPC_E_UNSECURE_CALL Handle = 0x80010118
3874 RPC_E_TOO_LATE Handle = 0x80010119
3875 RPC_E_NO_GOOD_SECURITY_PACKAGES Handle = 0x8001011A
3876 RPC_E_ACCESS_DENIED Handle = 0x8001011B
3877 RPC_E_REMOTE_DISABLED Handle = 0x8001011C
3878 RPC_E_INVALID_OBJREF Handle = 0x8001011D
3879 RPC_E_NO_CONTEXT Handle = 0x8001011E
3880 RPC_E_TIMEOUT Handle = 0x8001011F
3881 RPC_E_NO_SYNC Handle = 0x80010120
3882 RPC_E_FULLSIC_REQUIRED Handle = 0x80010121
3883 RPC_E_INVALID_STD_NAME Handle = 0x80010122
3884 CO_E_FAILEDTOIMPERSONATE Handle = 0x80010123
3885 CO_E_FAILEDTOGETSECCTX Handle = 0x80010124
3886 CO_E_FAILEDTOOPENTHREADTOKEN Handle = 0x80010125
3887 CO_E_FAILEDTOGETTOKENINFO Handle = 0x80010126
3888 CO_E_TRUSTEEDOESNTMATCHCLIENT Handle = 0x80010127
3889 CO_E_FAILEDTOQUERYCLIENTBLANKET Handle = 0x80010128
3890 CO_E_FAILEDTOSETDACL Handle = 0x80010129
3891 CO_E_ACCESSCHECKFAILED Handle = 0x8001012A
3892 CO_E_NETACCESSAPIFAILED Handle = 0x8001012B
3893 CO_E_WRONGTRUSTEENAMESYNTAX Handle = 0x8001012C
3894 CO_E_INVALIDSID Handle = 0x8001012D
3895 CO_E_CONVERSIONFAILED Handle = 0x8001012E
3896 CO_E_NOMATCHINGSIDFOUND Handle = 0x8001012F
3897 CO_E_LOOKUPACCSIDFAILED Handle = 0x80010130
3898 CO_E_NOMATCHINGNAMEFOUND Handle = 0x80010131
3899 CO_E_LOOKUPACCNAMEFAILED Handle = 0x80010132
3900 CO_E_SETSERLHNDLFAILED Handle = 0x80010133
3901 CO_E_FAILEDTOGETWINDIR Handle = 0x80010134
3902 CO_E_PATHTOOLONG Handle = 0x80010135
3903 CO_E_FAILEDTOGENUUID Handle = 0x80010136
3904 CO_E_FAILEDTOCREATEFILE Handle = 0x80010137
3905 CO_E_FAILEDTOCLOSEHANDLE Handle = 0x80010138
3906 CO_E_EXCEEDSYSACLLIMIT Handle = 0x80010139
3907 CO_E_ACESINWRONGORDER Handle = 0x8001013A
3908 CO_E_INCOMPATIBLESTREAMVERSION Handle = 0x8001013B
3909 CO_E_FAILEDTOOPENPROCESSTOKEN Handle = 0x8001013C
3910 CO_E_DECODEFAILED Handle = 0x8001013D
3911 CO_E_ACNOTINITIALIZED Handle = 0x8001013F
3912 CO_E_CANCEL_DISABLED Handle = 0x80010140
3913 RPC_E_UNEXPECTED Handle = 0x8001FFFF
3914 ERROR_AUDITING_DISABLED Handle = 0xC0090001
3915 ERROR_ALL_SIDS_FILTERED Handle = 0xC0090002
3916 ERROR_BIZRULES_NOT_ENABLED Handle = 0xC0090003
3917 NTE_BAD_UID Handle = 0x80090001
3918 NTE_BAD_HASH Handle = 0x80090002
3919 NTE_BAD_KEY Handle = 0x80090003
3920 NTE_BAD_LEN Handle = 0x80090004
3921 NTE_BAD_DATA Handle = 0x80090005
3922 NTE_BAD_SIGNATURE Handle = 0x80090006
3923 NTE_BAD_VER Handle = 0x80090007
3924 NTE_BAD_ALGID Handle = 0x80090008
3925 NTE_BAD_FLAGS Handle = 0x80090009
3926 NTE_BAD_TYPE Handle = 0x8009000A
3927 NTE_BAD_KEY_STATE Handle = 0x8009000B
3928 NTE_BAD_HASH_STATE Handle = 0x8009000C
3929 NTE_NO_KEY Handle = 0x8009000D
3930 NTE_NO_MEMORY Handle = 0x8009000E
3931 NTE_EXISTS Handle = 0x8009000F
3932 NTE_PERM Handle = 0x80090010
3933 NTE_NOT_FOUND Handle = 0x80090011
3934 NTE_DOUBLE_ENCRYPT Handle = 0x80090012
3935 NTE_BAD_PROVIDER Handle = 0x80090013
3936 NTE_BAD_PROV_TYPE Handle = 0x80090014
3937 NTE_BAD_PUBLIC_KEY Handle = 0x80090015
3938 NTE_BAD_KEYSET Handle = 0x80090016
3939 NTE_PROV_TYPE_NOT_DEF Handle = 0x80090017
3940 NTE_PROV_TYPE_ENTRY_BAD Handle = 0x80090018
3941 NTE_KEYSET_NOT_DEF Handle = 0x80090019
3942 NTE_KEYSET_ENTRY_BAD Handle = 0x8009001A
3943 NTE_PROV_TYPE_NO_MATCH Handle = 0x8009001B
3944 NTE_SIGNATURE_FILE_BAD Handle = 0x8009001C
3945 NTE_PROVIDER_DLL_FAIL Handle = 0x8009001D
3946 NTE_PROV_DLL_NOT_FOUND Handle = 0x8009001E
3947 NTE_BAD_KEYSET_PARAM Handle = 0x8009001F
3948 NTE_FAIL Handle = 0x80090020
3949 NTE_SYS_ERR Handle = 0x80090021
3950 NTE_SILENT_CONTEXT Handle = 0x80090022
3951 NTE_TOKEN_KEYSET_STORAGE_FULL Handle = 0x80090023
3952 NTE_TEMPORARY_PROFILE Handle = 0x80090024
3953 NTE_FIXEDPARAMETER Handle = 0x80090025
3954 NTE_INVALID_HANDLE Handle = 0x80090026
3955 NTE_INVALID_PARAMETER Handle = 0x80090027
3956 NTE_BUFFER_TOO_SMALL Handle = 0x80090028
3957 NTE_NOT_SUPPORTED Handle = 0x80090029
3958 NTE_NO_MORE_ITEMS Handle = 0x8009002A
3959 NTE_BUFFERS_OVERLAP Handle = 0x8009002B
3960 NTE_DECRYPTION_FAILURE Handle = 0x8009002C
3961 NTE_INTERNAL_ERROR Handle = 0x8009002D
3962 NTE_UI_REQUIRED Handle = 0x8009002E
3963 NTE_HMAC_NOT_SUPPORTED Handle = 0x8009002F
3964 NTE_DEVICE_NOT_READY Handle = 0x80090030
3965 NTE_AUTHENTICATION_IGNORED Handle = 0x80090031
3966 NTE_VALIDATION_FAILED Handle = 0x80090032
3967 NTE_INCORRECT_PASSWORD Handle = 0x80090033
3968 NTE_ENCRYPTION_FAILURE Handle = 0x80090034
3969 NTE_DEVICE_NOT_FOUND Handle = 0x80090035
3970 NTE_USER_CANCELLED Handle = 0x80090036
3971 NTE_PASSWORD_CHANGE_REQUIRED Handle = 0x80090037
3972 NTE_NOT_ACTIVE_CONSOLE Handle = 0x80090038
3973 SEC_E_INSUFFICIENT_MEMORY Handle = 0x80090300
3974 SEC_E_INVALID_HANDLE Handle = 0x80090301
3975 SEC_E_UNSUPPORTED_FUNCTION Handle = 0x80090302
3976 SEC_E_TARGET_UNKNOWN Handle = 0x80090303
3977 SEC_E_INTERNAL_ERROR Handle = 0x80090304
3978 SEC_E_SECPKG_NOT_FOUND Handle = 0x80090305
3979 SEC_E_NOT_OWNER Handle = 0x80090306
3980 SEC_E_CANNOT_INSTALL Handle = 0x80090307
3981 SEC_E_INVALID_TOKEN Handle = 0x80090308
3982 SEC_E_CANNOT_PACK Handle = 0x80090309
3983 SEC_E_QOP_NOT_SUPPORTED Handle = 0x8009030A
3984 SEC_E_NO_IMPERSONATION Handle = 0x8009030B
3985 SEC_E_LOGON_DENIED Handle = 0x8009030C
3986 SEC_E_UNKNOWN_CREDENTIALS Handle = 0x8009030D
3987 SEC_E_NO_CREDENTIALS Handle = 0x8009030E
3988 SEC_E_MESSAGE_ALTERED Handle = 0x8009030F
3989 SEC_E_OUT_OF_SEQUENCE Handle = 0x80090310
3990 SEC_E_NO_AUTHENTICATING_AUTHORITY Handle = 0x80090311
3991 SEC_I_CONTINUE_NEEDED Handle = 0x00090312
3992 SEC_I_COMPLETE_NEEDED Handle = 0x00090313
3993 SEC_I_COMPLETE_AND_CONTINUE Handle = 0x00090314
3994 SEC_I_LOCAL_LOGON Handle = 0x00090315
3995 SEC_I_GENERIC_EXTENSION_RECEIVED Handle = 0x00090316
3996 SEC_E_BAD_PKGID Handle = 0x80090316
3997 SEC_E_CONTEXT_EXPIRED Handle = 0x80090317
3998 SEC_I_CONTEXT_EXPIRED Handle = 0x00090317
3999 SEC_E_INCOMPLETE_MESSAGE Handle = 0x80090318
4000 SEC_E_INCOMPLETE_CREDENTIALS Handle = 0x80090320
4001 SEC_E_BUFFER_TOO_SMALL Handle = 0x80090321
4002 SEC_I_INCOMPLETE_CREDENTIALS Handle = 0x00090320
4003 SEC_I_RENEGOTIATE Handle = 0x00090321
4004 SEC_E_WRONG_PRINCIPAL Handle = 0x80090322
4005 SEC_I_NO_LSA_CONTEXT Handle = 0x00090323
4006 SEC_E_TIME_SKEW Handle = 0x80090324
4007 SEC_E_UNTRUSTED_ROOT Handle = 0x80090325
4008 SEC_E_ILLEGAL_MESSAGE Handle = 0x80090326
4009 SEC_E_CERT_UNKNOWN Handle = 0x80090327
4010 SEC_E_CERT_EXPIRED Handle = 0x80090328
4011 SEC_E_ENCRYPT_FAILURE Handle = 0x80090329
4012 SEC_E_DECRYPT_FAILURE Handle = 0x80090330
4013 SEC_E_ALGORITHM_MISMATCH Handle = 0x80090331
4014 SEC_E_SECURITY_QOS_FAILED Handle = 0x80090332
4015 SEC_E_UNFINISHED_CONTEXT_DELETED Handle = 0x80090333
4016 SEC_E_NO_TGT_REPLY Handle = 0x80090334
4017 SEC_E_NO_IP_ADDRESSES Handle = 0x80090335
4018 SEC_E_WRONG_CREDENTIAL_HANDLE Handle = 0x80090336
4019 SEC_E_CRYPTO_SYSTEM_INVALID Handle = 0x80090337
4020 SEC_E_MAX_REFERRALS_EXCEEDED Handle = 0x80090338
4021 SEC_E_MUST_BE_KDC Handle = 0x80090339
4022 SEC_E_STRONG_CRYPTO_NOT_SUPPORTED Handle = 0x8009033A
4023 SEC_E_TOO_MANY_PRINCIPALS Handle = 0x8009033B
4024 SEC_E_NO_PA_DATA Handle = 0x8009033C
4025 SEC_E_PKINIT_NAME_MISMATCH Handle = 0x8009033D
4026 SEC_E_SMARTCARD_LOGON_REQUIRED Handle = 0x8009033E
4027 SEC_E_SHUTDOWN_IN_PROGRESS Handle = 0x8009033F
4028 SEC_E_KDC_INVALID_REQUEST Handle = 0x80090340
4029 SEC_E_KDC_UNABLE_TO_REFER Handle = 0x80090341
4030 SEC_E_KDC_UNKNOWN_ETYPE Handle = 0x80090342
4031 SEC_E_UNSUPPORTED_PREAUTH Handle = 0x80090343
4032 SEC_E_DELEGATION_REQUIRED Handle = 0x80090345
4033 SEC_E_BAD_BINDINGS Handle = 0x80090346
4034 SEC_E_MULTIPLE_ACCOUNTS Handle = 0x80090347
4035 SEC_E_NO_KERB_KEY Handle = 0x80090348
4036 SEC_E_CERT_WRONG_USAGE Handle = 0x80090349
4037 SEC_E_DOWNGRADE_DETECTED Handle = 0x80090350
4038 SEC_E_SMARTCARD_CERT_REVOKED Handle = 0x80090351
4039 SEC_E_ISSUING_CA_UNTRUSTED Handle = 0x80090352
4040 SEC_E_REVOCATION_OFFLINE_C Handle = 0x80090353
4041 SEC_E_PKINIT_CLIENT_FAILURE Handle = 0x80090354
4042 SEC_E_SMARTCARD_CERT_EXPIRED Handle = 0x80090355
4043 SEC_E_NO_S4U_PROT_SUPPORT Handle = 0x80090356
4044 SEC_E_CROSSREALM_DELEGATION_FAILURE Handle = 0x80090357
4045 SEC_E_REVOCATION_OFFLINE_KDC Handle = 0x80090358
4046 SEC_E_ISSUING_CA_UNTRUSTED_KDC Handle = 0x80090359
4047 SEC_E_KDC_CERT_EXPIRED Handle = 0x8009035A
4048 SEC_E_KDC_CERT_REVOKED Handle = 0x8009035B
4049 SEC_I_SIGNATURE_NEEDED Handle = 0x0009035C
4050 SEC_E_INVALID_PARAMETER Handle = 0x8009035D
4051 SEC_E_DELEGATION_POLICY Handle = 0x8009035E
4052 SEC_E_POLICY_NLTM_ONLY Handle = 0x8009035F
4053 SEC_I_NO_RENEGOTIATION Handle = 0x00090360
4054 SEC_E_NO_CONTEXT Handle = 0x80090361
4055 SEC_E_PKU2U_CERT_FAILURE Handle = 0x80090362
4056 SEC_E_MUTUAL_AUTH_FAILED Handle = 0x80090363
4057 SEC_I_MESSAGE_FRAGMENT Handle = 0x00090364
4058 SEC_E_ONLY_HTTPS_ALLOWED Handle = 0x80090365
4059 SEC_I_CONTINUE_NEEDED_MESSAGE_OK Handle = 0x00090366
4060 SEC_E_APPLICATION_PROTOCOL_MISMATCH Handle = 0x80090367
4061 SEC_I_ASYNC_CALL_PENDING Handle = 0x00090368
4062 SEC_E_INVALID_UPN_NAME Handle = 0x80090369
4063 SEC_E_EXT_BUFFER_TOO_SMALL Handle = 0x8009036A
4064 SEC_E_INSUFFICIENT_BUFFERS Handle = 0x8009036B
4065 SEC_E_NO_SPM = SEC_E_INTERNAL_ERROR
4066 SEC_E_NOT_SUPPORTED = SEC_E_UNSUPPORTED_FUNCTION
4067 CRYPT_E_MSG_ERROR Handle = 0x80091001
4068 CRYPT_E_UNKNOWN_ALGO Handle = 0x80091002
4069 CRYPT_E_OID_FORMAT Handle = 0x80091003
4070 CRYPT_E_INVALID_MSG_TYPE Handle = 0x80091004
4071 CRYPT_E_UNEXPECTED_ENCODING Handle = 0x80091005
4072 CRYPT_E_AUTH_ATTR_MISSING Handle = 0x80091006
4073 CRYPT_E_HASH_VALUE Handle = 0x80091007
4074 CRYPT_E_INVALID_INDEX Handle = 0x80091008
4075 CRYPT_E_ALREADY_DECRYPTED Handle = 0x80091009
4076 CRYPT_E_NOT_DECRYPTED Handle = 0x8009100A
4077 CRYPT_E_RECIPIENT_NOT_FOUND Handle = 0x8009100B
4078 CRYPT_E_CONTROL_TYPE Handle = 0x8009100C
4079 CRYPT_E_ISSUER_SERIALNUMBER Handle = 0x8009100D
4080 CRYPT_E_SIGNER_NOT_FOUND Handle = 0x8009100E
4081 CRYPT_E_ATTRIBUTES_MISSING Handle = 0x8009100F
4082 CRYPT_E_STREAM_MSG_NOT_READY Handle = 0x80091010
4083 CRYPT_E_STREAM_INSUFFICIENT_DATA Handle = 0x80091011
4084 CRYPT_I_NEW_PROTECTION_REQUIRED Handle = 0x00091012
4085 CRYPT_E_BAD_LEN Handle = 0x80092001
4086 CRYPT_E_BAD_ENCODE Handle = 0x80092002
4087 CRYPT_E_FILE_ERROR Handle = 0x80092003
4088 CRYPT_E_NOT_FOUND Handle = 0x80092004
4089 CRYPT_E_EXISTS Handle = 0x80092005
4090 CRYPT_E_NO_PROVIDER Handle = 0x80092006
4091 CRYPT_E_SELF_SIGNED Handle = 0x80092007
4092 CRYPT_E_DELETED_PREV Handle = 0x80092008
4093 CRYPT_E_NO_MATCH Handle = 0x80092009
4094 CRYPT_E_UNEXPECTED_MSG_TYPE Handle = 0x8009200A
4095 CRYPT_E_NO_KEY_PROPERTY Handle = 0x8009200B
4096 CRYPT_E_NO_DECRYPT_CERT Handle = 0x8009200C
4097 CRYPT_E_BAD_MSG Handle = 0x8009200D
4098 CRYPT_E_NO_SIGNER Handle = 0x8009200E
4099 CRYPT_E_PENDING_CLOSE Handle = 0x8009200F
4100 CRYPT_E_REVOKED Handle = 0x80092010
4101 CRYPT_E_NO_REVOCATION_DLL Handle = 0x80092011
4102 CRYPT_E_NO_REVOCATION_CHECK Handle = 0x80092012
4103 CRYPT_E_REVOCATION_OFFLINE Handle = 0x80092013
4104 CRYPT_E_NOT_IN_REVOCATION_DATABASE Handle = 0x80092014
4105 CRYPT_E_INVALID_NUMERIC_STRING Handle = 0x80092020
4106 CRYPT_E_INVALID_PRINTABLE_STRING Handle = 0x80092021
4107 CRYPT_E_INVALID_IA5_STRING Handle = 0x80092022
4108 CRYPT_E_INVALID_X500_STRING Handle = 0x80092023
4109 CRYPT_E_NOT_CHAR_STRING Handle = 0x80092024
4110 CRYPT_E_FILERESIZED Handle = 0x80092025
4111 CRYPT_E_SECURITY_SETTINGS Handle = 0x80092026
4112 CRYPT_E_NO_VERIFY_USAGE_DLL Handle = 0x80092027
4113 CRYPT_E_NO_VERIFY_USAGE_CHECK Handle = 0x80092028
4114 CRYPT_E_VERIFY_USAGE_OFFLINE Handle = 0x80092029
4115 CRYPT_E_NOT_IN_CTL Handle = 0x8009202A
4116 CRYPT_E_NO_TRUSTED_SIGNER Handle = 0x8009202B
4117 CRYPT_E_MISSING_PUBKEY_PARA Handle = 0x8009202C
4118 CRYPT_E_OBJECT_LOCATOR_OBJECT_NOT_FOUND Handle = 0x8009202D
4119 CRYPT_E_OSS_ERROR Handle = 0x80093000
4120 OSS_MORE_BUF Handle = 0x80093001
4121 OSS_NEGATIVE_UINTEGER Handle = 0x80093002
4122 OSS_PDU_RANGE Handle = 0x80093003
4123 OSS_MORE_INPUT Handle = 0x80093004
4124 OSS_DATA_ERROR Handle = 0x80093005
4125 OSS_BAD_ARG Handle = 0x80093006
4126 OSS_BAD_VERSION Handle = 0x80093007
4127 OSS_OUT_MEMORY Handle = 0x80093008
4128 OSS_PDU_MISMATCH Handle = 0x80093009
4129 OSS_LIMITED Handle = 0x8009300A
4130 OSS_BAD_PTR Handle = 0x8009300B
4131 OSS_BAD_TIME Handle = 0x8009300C
4132 OSS_INDEFINITE_NOT_SUPPORTED Handle = 0x8009300D
4133 OSS_MEM_ERROR Handle = 0x8009300E
4134 OSS_BAD_TABLE Handle = 0x8009300F
4135 OSS_TOO_LONG Handle = 0x80093010
4136 OSS_CONSTRAINT_VIOLATED Handle = 0x80093011
4137 OSS_FATAL_ERROR Handle = 0x80093012
4138 OSS_ACCESS_SERIALIZATION_ERROR Handle = 0x80093013
4139 OSS_NULL_TBL Handle = 0x80093014
4140 OSS_NULL_FCN Handle = 0x80093015
4141 OSS_BAD_ENCRULES Handle = 0x80093016
4142 OSS_UNAVAIL_ENCRULES Handle = 0x80093017
4143 OSS_CANT_OPEN_TRACE_WINDOW Handle = 0x80093018
4144 OSS_UNIMPLEMENTED Handle = 0x80093019
4145 OSS_OID_DLL_NOT_LINKED Handle = 0x8009301A
4146 OSS_CANT_OPEN_TRACE_FILE Handle = 0x8009301B
4147 OSS_TRACE_FILE_ALREADY_OPEN Handle = 0x8009301C
4148 OSS_TABLE_MISMATCH Handle = 0x8009301D
4149 OSS_TYPE_NOT_SUPPORTED Handle = 0x8009301E
4150 OSS_REAL_DLL_NOT_LINKED Handle = 0x8009301F
4151 OSS_REAL_CODE_NOT_LINKED Handle = 0x80093020
4152 OSS_OUT_OF_RANGE Handle = 0x80093021
4153 OSS_COPIER_DLL_NOT_LINKED Handle = 0x80093022
4154 OSS_CONSTRAINT_DLL_NOT_LINKED Handle = 0x80093023
4155 OSS_COMPARATOR_DLL_NOT_LINKED Handle = 0x80093024
4156 OSS_COMPARATOR_CODE_NOT_LINKED Handle = 0x80093025
4157 OSS_MEM_MGR_DLL_NOT_LINKED Handle = 0x80093026
4158 OSS_PDV_DLL_NOT_LINKED Handle = 0x80093027
4159 OSS_PDV_CODE_NOT_LINKED Handle = 0x80093028
4160 OSS_API_DLL_NOT_LINKED Handle = 0x80093029
4161 OSS_BERDER_DLL_NOT_LINKED Handle = 0x8009302A
4162 OSS_PER_DLL_NOT_LINKED Handle = 0x8009302B
4163 OSS_OPEN_TYPE_ERROR Handle = 0x8009302C
4164 OSS_MUTEX_NOT_CREATED Handle = 0x8009302D
4165 OSS_CANT_CLOSE_TRACE_FILE Handle = 0x8009302E
4166 CRYPT_E_ASN1_ERROR Handle = 0x80093100
4167 CRYPT_E_ASN1_INTERNAL Handle = 0x80093101
4168 CRYPT_E_ASN1_EOD Handle = 0x80093102
4169 CRYPT_E_ASN1_CORRUPT Handle = 0x80093103
4170 CRYPT_E_ASN1_LARGE Handle = 0x80093104
4171 CRYPT_E_ASN1_CONSTRAINT Handle = 0x80093105
4172 CRYPT_E_ASN1_MEMORY Handle = 0x80093106
4173 CRYPT_E_ASN1_OVERFLOW Handle = 0x80093107
4174 CRYPT_E_ASN1_BADPDU Handle = 0x80093108
4175 CRYPT_E_ASN1_BADARGS Handle = 0x80093109
4176 CRYPT_E_ASN1_BADREAL Handle = 0x8009310A
4177 CRYPT_E_ASN1_BADTAG Handle = 0x8009310B
4178 CRYPT_E_ASN1_CHOICE Handle = 0x8009310C
4179 CRYPT_E_ASN1_RULE Handle = 0x8009310D
4180 CRYPT_E_ASN1_UTF8 Handle = 0x8009310E
4181 CRYPT_E_ASN1_PDU_TYPE Handle = 0x80093133
4182 CRYPT_E_ASN1_NYI Handle = 0x80093134
4183 CRYPT_E_ASN1_EXTENDED Handle = 0x80093201
4184 CRYPT_E_ASN1_NOEOD Handle = 0x80093202
4185 CERTSRV_E_BAD_REQUESTSUBJECT Handle = 0x80094001
4186 CERTSRV_E_NO_REQUEST Handle = 0x80094002
4187 CERTSRV_E_BAD_REQUESTSTATUS Handle = 0x80094003
4188 CERTSRV_E_PROPERTY_EMPTY Handle = 0x80094004
4189 CERTSRV_E_INVALID_CA_CERTIFICATE Handle = 0x80094005
4190 CERTSRV_E_SERVER_SUSPENDED Handle = 0x80094006
4191 CERTSRV_E_ENCODING_LENGTH Handle = 0x80094007
4192 CERTSRV_E_ROLECONFLICT Handle = 0x80094008
4193 CERTSRV_E_RESTRICTEDOFFICER Handle = 0x80094009
4194 CERTSRV_E_KEY_ARCHIVAL_NOT_CONFIGURED Handle = 0x8009400A
4195 CERTSRV_E_NO_VALID_KRA Handle = 0x8009400B
4196 CERTSRV_E_BAD_REQUEST_KEY_ARCHIVAL Handle = 0x8009400C
4197 CERTSRV_E_NO_CAADMIN_DEFINED Handle = 0x8009400D
4198 CERTSRV_E_BAD_RENEWAL_CERT_ATTRIBUTE Handle = 0x8009400E
4199 CERTSRV_E_NO_DB_SESSIONS Handle = 0x8009400F
4200 CERTSRV_E_ALIGNMENT_FAULT Handle = 0x80094010
4201 CERTSRV_E_ENROLL_DENIED Handle = 0x80094011
4202 CERTSRV_E_TEMPLATE_DENIED Handle = 0x80094012
4203 CERTSRV_E_DOWNLEVEL_DC_SSL_OR_UPGRADE Handle = 0x80094013
4204 CERTSRV_E_ADMIN_DENIED_REQUEST Handle = 0x80094014
4205 CERTSRV_E_NO_POLICY_SERVER Handle = 0x80094015
4206 CERTSRV_E_WEAK_SIGNATURE_OR_KEY Handle = 0x80094016
4207 CERTSRV_E_KEY_ATTESTATION_NOT_SUPPORTED Handle = 0x80094017
4208 CERTSRV_E_ENCRYPTION_CERT_REQUIRED Handle = 0x80094018
4209 CERTSRV_E_UNSUPPORTED_CERT_TYPE Handle = 0x80094800
4210 CERTSRV_E_NO_CERT_TYPE Handle = 0x80094801
4211 CERTSRV_E_TEMPLATE_CONFLICT Handle = 0x80094802
4212 CERTSRV_E_SUBJECT_ALT_NAME_REQUIRED Handle = 0x80094803
4213 CERTSRV_E_ARCHIVED_KEY_REQUIRED Handle = 0x80094804
4214 CERTSRV_E_SMIME_REQUIRED Handle = 0x80094805
4215 CERTSRV_E_BAD_RENEWAL_SUBJECT Handle = 0x80094806
4216 CERTSRV_E_BAD_TEMPLATE_VERSION Handle = 0x80094807
4217 CERTSRV_E_TEMPLATE_POLICY_REQUIRED Handle = 0x80094808
4218 CERTSRV_E_SIGNATURE_POLICY_REQUIRED Handle = 0x80094809
4219 CERTSRV_E_SIGNATURE_COUNT Handle = 0x8009480A
4220 CERTSRV_E_SIGNATURE_REJECTED Handle = 0x8009480B
4221 CERTSRV_E_ISSUANCE_POLICY_REQUIRED Handle = 0x8009480C
4222 CERTSRV_E_SUBJECT_UPN_REQUIRED Handle = 0x8009480D
4223 CERTSRV_E_SUBJECT_DIRECTORY_GUID_REQUIRED Handle = 0x8009480E
4224 CERTSRV_E_SUBJECT_DNS_REQUIRED Handle = 0x8009480F
4225 CERTSRV_E_ARCHIVED_KEY_UNEXPECTED Handle = 0x80094810
4226 CERTSRV_E_KEY_LENGTH Handle = 0x80094811
4227 CERTSRV_E_SUBJECT_EMAIL_REQUIRED Handle = 0x80094812
4228 CERTSRV_E_UNKNOWN_CERT_TYPE Handle = 0x80094813
4229 CERTSRV_E_CERT_TYPE_OVERLAP Handle = 0x80094814
4230 CERTSRV_E_TOO_MANY_SIGNATURES Handle = 0x80094815
4231 CERTSRV_E_RENEWAL_BAD_PUBLIC_KEY Handle = 0x80094816
4232 CERTSRV_E_INVALID_EK Handle = 0x80094817
4233 CERTSRV_E_INVALID_IDBINDING Handle = 0x80094818
4234 CERTSRV_E_INVALID_ATTESTATION Handle = 0x80094819
4235 CERTSRV_E_KEY_ATTESTATION Handle = 0x8009481A
4236 CERTSRV_E_CORRUPT_KEY_ATTESTATION Handle = 0x8009481B
4237 CERTSRV_E_EXPIRED_CHALLENGE Handle = 0x8009481C
4238 CERTSRV_E_INVALID_RESPONSE Handle = 0x8009481D
4239 CERTSRV_E_INVALID_REQUESTID Handle = 0x8009481E
4240 CERTSRV_E_REQUEST_PRECERTIFICATE_MISMATCH Handle = 0x8009481F
4241 CERTSRV_E_PENDING_CLIENT_RESPONSE Handle = 0x80094820
4242 XENROLL_E_KEY_NOT_EXPORTABLE Handle = 0x80095000
4243 XENROLL_E_CANNOT_ADD_ROOT_CERT Handle = 0x80095001
4244 XENROLL_E_RESPONSE_KA_HASH_NOT_FOUND Handle = 0x80095002
4245 XENROLL_E_RESPONSE_UNEXPECTED_KA_HASH Handle = 0x80095003
4246 XENROLL_E_RESPONSE_KA_HASH_MISMATCH Handle = 0x80095004
4247 XENROLL_E_KEYSPEC_SMIME_MISMATCH Handle = 0x80095005
4248 TRUST_E_SYSTEM_ERROR Handle = 0x80096001
4249 TRUST_E_NO_SIGNER_CERT Handle = 0x80096002
4250 TRUST_E_COUNTER_SIGNER Handle = 0x80096003
4251 TRUST_E_CERT_SIGNATURE Handle = 0x80096004
4252 TRUST_E_TIME_STAMP Handle = 0x80096005
4253 TRUST_E_BAD_DIGEST Handle = 0x80096010
4254 TRUST_E_MALFORMED_SIGNATURE Handle = 0x80096011
4255 TRUST_E_BASIC_CONSTRAINTS Handle = 0x80096019
4256 TRUST_E_FINANCIAL_CRITERIA Handle = 0x8009601E
4257 MSSIPOTF_E_OUTOFMEMRANGE Handle = 0x80097001
4258 MSSIPOTF_E_CANTGETOBJECT Handle = 0x80097002
4259 MSSIPOTF_E_NOHEADTABLE Handle = 0x80097003
4260 MSSIPOTF_E_BAD_MAGICNUMBER Handle = 0x80097004
4261 MSSIPOTF_E_BAD_OFFSET_TABLE Handle = 0x80097005
4262 MSSIPOTF_E_TABLE_TAGORDER Handle = 0x80097006
4263 MSSIPOTF_E_TABLE_LONGWORD Handle = 0x80097007
4264 MSSIPOTF_E_BAD_FIRST_TABLE_PLACEMENT Handle = 0x80097008
4265 MSSIPOTF_E_TABLES_OVERLAP Handle = 0x80097009
4266 MSSIPOTF_E_TABLE_PADBYTES Handle = 0x8009700A
4267 MSSIPOTF_E_FILETOOSMALL Handle = 0x8009700B
4268 MSSIPOTF_E_TABLE_CHECKSUM Handle = 0x8009700C
4269 MSSIPOTF_E_FILE_CHECKSUM Handle = 0x8009700D
4270 MSSIPOTF_E_FAILED_POLICY Handle = 0x80097010
4271 MSSIPOTF_E_FAILED_HINTS_CHECK Handle = 0x80097011
4272 MSSIPOTF_E_NOT_OPENTYPE Handle = 0x80097012
4273 MSSIPOTF_E_FILE Handle = 0x80097013
4274 MSSIPOTF_E_CRYPT Handle = 0x80097014
4275 MSSIPOTF_E_BADVERSION Handle = 0x80097015
4276 MSSIPOTF_E_DSIG_STRUCTURE Handle = 0x80097016
4277 MSSIPOTF_E_PCONST_CHECK Handle = 0x80097017
4278 MSSIPOTF_E_STRUCTURE Handle = 0x80097018
4279 ERROR_CRED_REQUIRES_CONFIRMATION Handle = 0x80097019
4280 NTE_OP_OK syscall.Errno = 0
4281 TRUST_E_PROVIDER_UNKNOWN Handle = 0x800B0001
4282 TRUST_E_ACTION_UNKNOWN Handle = 0x800B0002
4283 TRUST_E_SUBJECT_FORM_UNKNOWN Handle = 0x800B0003
4284 TRUST_E_SUBJECT_NOT_TRUSTED Handle = 0x800B0004
4285 DIGSIG_E_ENCODE Handle = 0x800B0005
4286 DIGSIG_E_DECODE Handle = 0x800B0006
4287 DIGSIG_E_EXTENSIBILITY Handle = 0x800B0007
4288 DIGSIG_E_CRYPTO Handle = 0x800B0008
4289 PERSIST_E_SIZEDEFINITE Handle = 0x800B0009
4290 PERSIST_E_SIZEINDEFINITE Handle = 0x800B000A
4291 PERSIST_E_NOTSELFSIZING Handle = 0x800B000B
4292 TRUST_E_NOSIGNATURE Handle = 0x800B0100
4293 CERT_E_EXPIRED Handle = 0x800B0101
4294 CERT_E_VALIDITYPERIODNESTING Handle = 0x800B0102
4295 CERT_E_ROLE Handle = 0x800B0103
4296 CERT_E_PATHLENCONST Handle = 0x800B0104
4297 CERT_E_CRITICAL Handle = 0x800B0105
4298 CERT_E_PURPOSE Handle = 0x800B0106
4299 CERT_E_ISSUERCHAINING Handle = 0x800B0107
4300 CERT_E_MALFORMED Handle = 0x800B0108
4301 CERT_E_UNTRUSTEDROOT Handle = 0x800B0109
4302 CERT_E_CHAINING Handle = 0x800B010A
4303 TRUST_E_FAIL Handle = 0x800B010B
4304 CERT_E_REVOKED Handle = 0x800B010C
4305 CERT_E_UNTRUSTEDTESTROOT Handle = 0x800B010D
4306 CERT_E_REVOCATION_FAILURE Handle = 0x800B010E
4307 CERT_E_CN_NO_MATCH Handle = 0x800B010F
4308 CERT_E_WRONG_USAGE Handle = 0x800B0110
4309 TRUST_E_EXPLICIT_DISTRUST Handle = 0x800B0111
4310 CERT_E_UNTRUSTEDCA Handle = 0x800B0112
4311 CERT_E_INVALID_POLICY Handle = 0x800B0113
4312 CERT_E_INVALID_NAME Handle = 0x800B0114
4313 SPAPI_E_EXPECTED_SECTION_NAME Handle = 0x800F0000
4314 SPAPI_E_BAD_SECTION_NAME_LINE Handle = 0x800F0001
4315 SPAPI_E_SECTION_NAME_TOO_LONG Handle = 0x800F0002
4316 SPAPI_E_GENERAL_SYNTAX Handle = 0x800F0003
4317 SPAPI_E_WRONG_INF_STYLE Handle = 0x800F0100
4318 SPAPI_E_SECTION_NOT_FOUND Handle = 0x800F0101
4319 SPAPI_E_LINE_NOT_FOUND Handle = 0x800F0102
4320 SPAPI_E_NO_BACKUP Handle = 0x800F0103
4321 SPAPI_E_NO_ASSOCIATED_CLASS Handle = 0x800F0200
4322 SPAPI_E_CLASS_MISMATCH Handle = 0x800F0201
4323 SPAPI_E_DUPLICATE_FOUND Handle = 0x800F0202
4324 SPAPI_E_NO_DRIVER_SELECTED Handle = 0x800F0203
4325 SPAPI_E_KEY_DOES_NOT_EXIST Handle = 0x800F0204
4326 SPAPI_E_INVALID_DEVINST_NAME Handle = 0x800F0205
4327 SPAPI_E_INVALID_CLASS Handle = 0x800F0206
4328 SPAPI_E_DEVINST_ALREADY_EXISTS Handle = 0x800F0207
4329 SPAPI_E_DEVINFO_NOT_REGISTERED Handle = 0x800F0208
4330 SPAPI_E_INVALID_REG_PROPERTY Handle = 0x800F0209
4331 SPAPI_E_NO_INF Handle = 0x800F020A
4332 SPAPI_E_NO_SUCH_DEVINST Handle = 0x800F020B
4333 SPAPI_E_CANT_LOAD_CLASS_ICON Handle = 0x800F020C
4334 SPAPI_E_INVALID_CLASS_INSTALLER Handle = 0x800F020D
4335 SPAPI_E_DI_DO_DEFAULT Handle = 0x800F020E
4336 SPAPI_E_DI_NOFILECOPY Handle = 0x800F020F
4337 SPAPI_E_INVALID_HWPROFILE Handle = 0x800F0210
4338 SPAPI_E_NO_DEVICE_SELECTED Handle = 0x800F0211
4339 SPAPI_E_DEVINFO_LIST_LOCKED Handle = 0x800F0212
4340 SPAPI_E_DEVINFO_DATA_LOCKED Handle = 0x800F0213
4341 SPAPI_E_DI_BAD_PATH Handle = 0x800F0214
4342 SPAPI_E_NO_CLASSINSTALL_PARAMS Handle = 0x800F0215
4343 SPAPI_E_FILEQUEUE_LOCKED Handle = 0x800F0216
4344 SPAPI_E_BAD_SERVICE_INSTALLSECT Handle = 0x800F0217
4345 SPAPI_E_NO_CLASS_DRIVER_LIST Handle = 0x800F0218
4346 SPAPI_E_NO_ASSOCIATED_SERVICE Handle = 0x800F0219
4347 SPAPI_E_NO_DEFAULT_DEVICE_INTERFACE Handle = 0x800F021A
4348 SPAPI_E_DEVICE_INTERFACE_ACTIVE Handle = 0x800F021B
4349 SPAPI_E_DEVICE_INTERFACE_REMOVED Handle = 0x800F021C
4350 SPAPI_E_BAD_INTERFACE_INSTALLSECT Handle = 0x800F021D
4351 SPAPI_E_NO_SUCH_INTERFACE_CLASS Handle = 0x800F021E
4352 SPAPI_E_INVALID_REFERENCE_STRING Handle = 0x800F021F
4353 SPAPI_E_INVALID_MACHINENAME Handle = 0x800F0220
4354 SPAPI_E_REMOTE_COMM_FAILURE Handle = 0x800F0221
4355 SPAPI_E_MACHINE_UNAVAILABLE Handle = 0x800F0222
4356 SPAPI_E_NO_CONFIGMGR_SERVICES Handle = 0x800F0223
4357 SPAPI_E_INVALID_PROPPAGE_PROVIDER Handle = 0x800F0224
4358 SPAPI_E_NO_SUCH_DEVICE_INTERFACE Handle = 0x800F0225
4359 SPAPI_E_DI_POSTPROCESSING_REQUIRED Handle = 0x800F0226
4360 SPAPI_E_INVALID_COINSTALLER Handle = 0x800F0227
4361 SPAPI_E_NO_COMPAT_DRIVERS Handle = 0x800F0228
4362 SPAPI_E_NO_DEVICE_ICON Handle = 0x800F0229
4363 SPAPI_E_INVALID_INF_LOGCONFIG Handle = 0x800F022A
4364 SPAPI_E_DI_DONT_INSTALL Handle = 0x800F022B
4365 SPAPI_E_INVALID_FILTER_DRIVER Handle = 0x800F022C
4366 SPAPI_E_NON_WINDOWS_NT_DRIVER Handle = 0x800F022D
4367 SPAPI_E_NON_WINDOWS_DRIVER Handle = 0x800F022E
4368 SPAPI_E_NO_CATALOG_FOR_OEM_INF Handle = 0x800F022F
4369 SPAPI_E_DEVINSTALL_QUEUE_NONNATIVE Handle = 0x800F0230
4370 SPAPI_E_NOT_DISABLEABLE Handle = 0x800F0231
4371 SPAPI_E_CANT_REMOVE_DEVINST Handle = 0x800F0232
4372 SPAPI_E_INVALID_TARGET Handle = 0x800F0233
4373 SPAPI_E_DRIVER_NONNATIVE Handle = 0x800F0234
4374 SPAPI_E_IN_WOW64 Handle = 0x800F0235
4375 SPAPI_E_SET_SYSTEM_RESTORE_POINT Handle = 0x800F0236
4376 SPAPI_E_INCORRECTLY_COPIED_INF Handle = 0x800F0237
4377 SPAPI_E_SCE_DISABLED Handle = 0x800F0238
4378 SPAPI_E_UNKNOWN_EXCEPTION Handle = 0x800F0239
4379 SPAPI_E_PNP_REGISTRY_ERROR Handle = 0x800F023A
4380 SPAPI_E_REMOTE_REQUEST_UNSUPPORTED Handle = 0x800F023B
4381 SPAPI_E_NOT_AN_INSTALLED_OEM_INF Handle = 0x800F023C
4382 SPAPI_E_INF_IN_USE_BY_DEVICES Handle = 0x800F023D
4383 SPAPI_E_DI_FUNCTION_OBSOLETE Handle = 0x800F023E
4384 SPAPI_E_NO_AUTHENTICODE_CATALOG Handle = 0x800F023F
4385 SPAPI_E_AUTHENTICODE_DISALLOWED Handle = 0x800F0240
4386 SPAPI_E_AUTHENTICODE_TRUSTED_PUBLISHER Handle = 0x800F0241
4387 SPAPI_E_AUTHENTICODE_TRUST_NOT_ESTABLISHED Handle = 0x800F0242
4388 SPAPI_E_AUTHENTICODE_PUBLISHER_NOT_TRUSTED Handle = 0x800F0243
4389 SPAPI_E_SIGNATURE_OSATTRIBUTE_MISMATCH Handle = 0x800F0244
4390 SPAPI_E_ONLY_VALIDATE_VIA_AUTHENTICODE Handle = 0x800F0245
4391 SPAPI_E_DEVICE_INSTALLER_NOT_READY Handle = 0x800F0246
4392 SPAPI_E_DRIVER_STORE_ADD_FAILED Handle = 0x800F0247
4393 SPAPI_E_DEVICE_INSTALL_BLOCKED Handle = 0x800F0248
4394 SPAPI_E_DRIVER_INSTALL_BLOCKED Handle = 0x800F0249
4395 SPAPI_E_WRONG_INF_TYPE Handle = 0x800F024A
4396 SPAPI_E_FILE_HASH_NOT_IN_CATALOG Handle = 0x800F024B
4397 SPAPI_E_DRIVER_STORE_DELETE_FAILED Handle = 0x800F024C
4398 SPAPI_E_UNRECOVERABLE_STACK_OVERFLOW Handle = 0x800F0300
4399 SPAPI_E_ERROR_NOT_INSTALLED Handle = 0x800F1000
4400 SCARD_S_SUCCESS = S_OK
4401 SCARD_F_INTERNAL_ERROR Handle = 0x80100001
4402 SCARD_E_CANCELLED Handle = 0x80100002
4403 SCARD_E_INVALID_HANDLE Handle = 0x80100003
4404 SCARD_E_INVALID_PARAMETER Handle = 0x80100004
4405 SCARD_E_INVALID_TARGET Handle = 0x80100005
4406 SCARD_E_NO_MEMORY Handle = 0x80100006
4407 SCARD_F_WAITED_TOO_LONG Handle = 0x80100007
4408 SCARD_E_INSUFFICIENT_BUFFER Handle = 0x80100008
4409 SCARD_E_UNKNOWN_READER Handle = 0x80100009
4410 SCARD_E_TIMEOUT Handle = 0x8010000A
4411 SCARD_E_SHARING_VIOLATION Handle = 0x8010000B
4412 SCARD_E_NO_SMARTCARD Handle = 0x8010000C
4413 SCARD_E_UNKNOWN_CARD Handle = 0x8010000D
4414 SCARD_E_CANT_DISPOSE Handle = 0x8010000E
4415 SCARD_E_PROTO_MISMATCH Handle = 0x8010000F
4416 SCARD_E_NOT_READY Handle = 0x80100010
4417 SCARD_E_INVALID_VALUE Handle = 0x80100011
4418 SCARD_E_SYSTEM_CANCELLED Handle = 0x80100012
4419 SCARD_F_COMM_ERROR Handle = 0x80100013
4420 SCARD_F_UNKNOWN_ERROR Handle = 0x80100014
4421 SCARD_E_INVALID_ATR Handle = 0x80100015
4422 SCARD_E_NOT_TRANSACTED Handle = 0x80100016
4423 SCARD_E_READER_UNAVAILABLE Handle = 0x80100017
4424 SCARD_P_SHUTDOWN Handle = 0x80100018
4425 SCARD_E_PCI_TOO_SMALL Handle = 0x80100019
4426 SCARD_E_READER_UNSUPPORTED Handle = 0x8010001A
4427 SCARD_E_DUPLICATE_READER Handle = 0x8010001B
4428 SCARD_E_CARD_UNSUPPORTED Handle = 0x8010001C
4429 SCARD_E_NO_SERVICE Handle = 0x8010001D
4430 SCARD_E_SERVICE_STOPPED Handle = 0x8010001E
4431 SCARD_E_UNEXPECTED Handle = 0x8010001F
4432 SCARD_E_ICC_INSTALLATION Handle = 0x80100020
4433 SCARD_E_ICC_CREATEORDER Handle = 0x80100021
4434 SCARD_E_UNSUPPORTED_FEATURE Handle = 0x80100022
4435 SCARD_E_DIR_NOT_FOUND Handle = 0x80100023
4436 SCARD_E_FILE_NOT_FOUND Handle = 0x80100024
4437 SCARD_E_NO_DIR Handle = 0x80100025
4438 SCARD_E_NO_FILE Handle = 0x80100026
4439 SCARD_E_NO_ACCESS Handle = 0x80100027
4440 SCARD_E_WRITE_TOO_MANY Handle = 0x80100028
4441 SCARD_E_BAD_SEEK Handle = 0x80100029
4442 SCARD_E_INVALID_CHV Handle = 0x8010002A
4443 SCARD_E_UNKNOWN_RES_MNG Handle = 0x8010002B
4444 SCARD_E_NO_SUCH_CERTIFICATE Handle = 0x8010002C
4445 SCARD_E_CERTIFICATE_UNAVAILABLE Handle = 0x8010002D
4446 SCARD_E_NO_READERS_AVAILABLE Handle = 0x8010002E
4447 SCARD_E_COMM_DATA_LOST Handle = 0x8010002F
4448 SCARD_E_NO_KEY_CONTAINER Handle = 0x80100030
4449 SCARD_E_SERVER_TOO_BUSY Handle = 0x80100031
4450 SCARD_E_PIN_CACHE_EXPIRED Handle = 0x80100032
4451 SCARD_E_NO_PIN_CACHE Handle = 0x80100033
4452 SCARD_E_READ_ONLY_CARD Handle = 0x80100034
4453 SCARD_W_UNSUPPORTED_CARD Handle = 0x80100065
4454 SCARD_W_UNRESPONSIVE_CARD Handle = 0x80100066
4455 SCARD_W_UNPOWERED_CARD Handle = 0x80100067
4456 SCARD_W_RESET_CARD Handle = 0x80100068
4457 SCARD_W_REMOVED_CARD Handle = 0x80100069
4458 SCARD_W_SECURITY_VIOLATION Handle = 0x8010006A
4459 SCARD_W_WRONG_CHV Handle = 0x8010006B
4460 SCARD_W_CHV_BLOCKED Handle = 0x8010006C
4461 SCARD_W_EOF Handle = 0x8010006D
4462 SCARD_W_CANCELLED_BY_USER Handle = 0x8010006E
4463 SCARD_W_CARD_NOT_AUTHENTICATED Handle = 0x8010006F
4464 SCARD_W_CACHE_ITEM_NOT_FOUND Handle = 0x80100070
4465 SCARD_W_CACHE_ITEM_STALE Handle = 0x80100071
4466 SCARD_W_CACHE_ITEM_TOO_BIG Handle = 0x80100072
4467 COMADMIN_E_OBJECTERRORS Handle = 0x80110401
4468 COMADMIN_E_OBJECTINVALID Handle = 0x80110402
4469 COMADMIN_E_KEYMISSING Handle = 0x80110403
4470 COMADMIN_E_ALREADYINSTALLED Handle = 0x80110404
4471 COMADMIN_E_APP_FILE_WRITEFAIL Handle = 0x80110407
4472 COMADMIN_E_APP_FILE_READFAIL Handle = 0x80110408
4473 COMADMIN_E_APP_FILE_VERSION Handle = 0x80110409
4474 COMADMIN_E_BADPATH Handle = 0x8011040A
4475 COMADMIN_E_APPLICATIONEXISTS Handle = 0x8011040B
4476 COMADMIN_E_ROLEEXISTS Handle = 0x8011040C
4477 COMADMIN_E_CANTCOPYFILE Handle = 0x8011040D
4478 COMADMIN_E_NOUSER Handle = 0x8011040F
4479 COMADMIN_E_INVALIDUSERIDS Handle = 0x80110410
4480 COMADMIN_E_NOREGISTRYCLSID Handle = 0x80110411
4481 COMADMIN_E_BADREGISTRYPROGID Handle = 0x80110412
4482 COMADMIN_E_AUTHENTICATIONLEVEL Handle = 0x80110413
4483 COMADMIN_E_USERPASSWDNOTVALID Handle = 0x80110414
4484 COMADMIN_E_CLSIDORIIDMISMATCH Handle = 0x80110418
4485 COMADMIN_E_REMOTEINTERFACE Handle = 0x80110419
4486 COMADMIN_E_DLLREGISTERSERVER Handle = 0x8011041A
4487 COMADMIN_E_NOSERVERSHARE Handle = 0x8011041B
4488 COMADMIN_E_DLLLOADFAILED Handle = 0x8011041D
4489 COMADMIN_E_BADREGISTRYLIBID Handle = 0x8011041E
4490 COMADMIN_E_APPDIRNOTFOUND Handle = 0x8011041F
4491 COMADMIN_E_REGISTRARFAILED Handle = 0x80110423
4492 COMADMIN_E_COMPFILE_DOESNOTEXIST Handle = 0x80110424
4493 COMADMIN_E_COMPFILE_LOADDLLFAIL Handle = 0x80110425
4494 COMADMIN_E_COMPFILE_GETCLASSOBJ Handle = 0x80110426
4495 COMADMIN_E_COMPFILE_CLASSNOTAVAIL Handle = 0x80110427
4496 COMADMIN_E_COMPFILE_BADTLB Handle = 0x80110428
4497 COMADMIN_E_COMPFILE_NOTINSTALLABLE Handle = 0x80110429
4498 COMADMIN_E_NOTCHANGEABLE Handle = 0x8011042A
4499 COMADMIN_E_NOTDELETEABLE Handle = 0x8011042B
4500 COMADMIN_E_SESSION Handle = 0x8011042C
4501 COMADMIN_E_COMP_MOVE_LOCKED Handle = 0x8011042D
4502 COMADMIN_E_COMP_MOVE_BAD_DEST Handle = 0x8011042E
4503 COMADMIN_E_REGISTERTLB Handle = 0x80110430
4504 COMADMIN_E_SYSTEMAPP Handle = 0x80110433
4505 COMADMIN_E_COMPFILE_NOREGISTRAR Handle = 0x80110434
4506 COMADMIN_E_COREQCOMPINSTALLED Handle = 0x80110435
4507 COMADMIN_E_SERVICENOTINSTALLED Handle = 0x80110436
4508 COMADMIN_E_PROPERTYSAVEFAILED Handle = 0x80110437
4509 COMADMIN_E_OBJECTEXISTS Handle = 0x80110438
4510 COMADMIN_E_COMPONENTEXISTS Handle = 0x80110439
4511 COMADMIN_E_REGFILE_CORRUPT Handle = 0x8011043B
4512 COMADMIN_E_PROPERTY_OVERFLOW Handle = 0x8011043C
4513 COMADMIN_E_NOTINREGISTRY Handle = 0x8011043E
4514 COMADMIN_E_OBJECTNOTPOOLABLE Handle = 0x8011043F
4515 COMADMIN_E_APPLID_MATCHES_CLSID Handle = 0x80110446
4516 COMADMIN_E_ROLE_DOES_NOT_EXIST Handle = 0x80110447
4517 COMADMIN_E_START_APP_NEEDS_COMPONENTS Handle = 0x80110448
4518 COMADMIN_E_REQUIRES_DIFFERENT_PLATFORM Handle = 0x80110449
4519 COMADMIN_E_CAN_NOT_EXPORT_APP_PROXY Handle = 0x8011044A
4520 COMADMIN_E_CAN_NOT_START_APP Handle = 0x8011044B
4521 COMADMIN_E_CAN_NOT_EXPORT_SYS_APP Handle = 0x8011044C
4522 COMADMIN_E_CANT_SUBSCRIBE_TO_COMPONENT Handle = 0x8011044D
4523 COMADMIN_E_EVENTCLASS_CANT_BE_SUBSCRIBER Handle = 0x8011044E
4524 COMADMIN_E_LIB_APP_PROXY_INCOMPATIBLE Handle = 0x8011044F
4525 COMADMIN_E_BASE_PARTITION_ONLY Handle = 0x80110450
4526 COMADMIN_E_START_APP_DISABLED Handle = 0x80110451
4527 COMADMIN_E_CAT_DUPLICATE_PARTITION_NAME Handle = 0x80110457
4528 COMADMIN_E_CAT_INVALID_PARTITION_NAME Handle = 0x80110458
4529 COMADMIN_E_CAT_PARTITION_IN_USE Handle = 0x80110459
4530 COMADMIN_E_FILE_PARTITION_DUPLICATE_FILES Handle = 0x8011045A
4531 COMADMIN_E_CAT_IMPORTED_COMPONENTS_NOT_ALLOWED Handle = 0x8011045B
4532 COMADMIN_E_AMBIGUOUS_APPLICATION_NAME Handle = 0x8011045C
4533 COMADMIN_E_AMBIGUOUS_PARTITION_NAME Handle = 0x8011045D
4534 COMADMIN_E_REGDB_NOTINITIALIZED Handle = 0x80110472
4535 COMADMIN_E_REGDB_NOTOPEN Handle = 0x80110473
4536 COMADMIN_E_REGDB_SYSTEMERR Handle = 0x80110474
4537 COMADMIN_E_REGDB_ALREADYRUNNING Handle = 0x80110475
4538 COMADMIN_E_MIG_VERSIONNOTSUPPORTED Handle = 0x80110480
4539 COMADMIN_E_MIG_SCHEMANOTFOUND Handle = 0x80110481
4540 COMADMIN_E_CAT_BITNESSMISMATCH Handle = 0x80110482
4541 COMADMIN_E_CAT_UNACCEPTABLEBITNESS Handle = 0x80110483
4542 COMADMIN_E_CAT_WRONGAPPBITNESS Handle = 0x80110484
4543 COMADMIN_E_CAT_PAUSE_RESUME_NOT_SUPPORTED Handle = 0x80110485
4544 COMADMIN_E_CAT_SERVERFAULT Handle = 0x80110486
4545 COMQC_E_APPLICATION_NOT_QUEUED Handle = 0x80110600
4546 COMQC_E_NO_QUEUEABLE_INTERFACES Handle = 0x80110601
4547 COMQC_E_QUEUING_SERVICE_NOT_AVAILABLE Handle = 0x80110602
4548 COMQC_E_NO_IPERSISTSTREAM Handle = 0x80110603
4549 COMQC_E_BAD_MESSAGE Handle = 0x80110604
4550 COMQC_E_UNAUTHENTICATED Handle = 0x80110605
4551 COMQC_E_UNTRUSTED_ENQUEUER Handle = 0x80110606
4552 MSDTC_E_DUPLICATE_RESOURCE Handle = 0x80110701
4553 COMADMIN_E_OBJECT_PARENT_MISSING Handle = 0x80110808
4554 COMADMIN_E_OBJECT_DOES_NOT_EXIST Handle = 0x80110809
4555 COMADMIN_E_APP_NOT_RUNNING Handle = 0x8011080A
4556 COMADMIN_E_INVALID_PARTITION Handle = 0x8011080B
4557 COMADMIN_E_SVCAPP_NOT_POOLABLE_OR_RECYCLABLE Handle = 0x8011080D
4558 COMADMIN_E_USER_IN_SET Handle = 0x8011080E
4559 COMADMIN_E_CANTRECYCLELIBRARYAPPS Handle = 0x8011080F
4560 COMADMIN_E_CANTRECYCLESERVICEAPPS Handle = 0x80110811
4561 COMADMIN_E_PROCESSALREADYRECYCLED Handle = 0x80110812
4562 COMADMIN_E_PAUSEDPROCESSMAYNOTBERECYCLED Handle = 0x80110813
4563 COMADMIN_E_CANTMAKEINPROCSERVICE Handle = 0x80110814
4564 COMADMIN_E_PROGIDINUSEBYCLSID Handle = 0x80110815
4565 COMADMIN_E_DEFAULT_PARTITION_NOT_IN_SET Handle = 0x80110816
4566 COMADMIN_E_RECYCLEDPROCESSMAYNOTBEPAUSED Handle = 0x80110817
4567 COMADMIN_E_PARTITION_ACCESSDENIED Handle = 0x80110818
4568 COMADMIN_E_PARTITION_MSI_ONLY Handle = 0x80110819
4569 COMADMIN_E_LEGACYCOMPS_NOT_ALLOWED_IN_1_0_FORMAT Handle = 0x8011081A
4570 COMADMIN_E_LEGACYCOMPS_NOT_ALLOWED_IN_NONBASE_PARTITIONS Handle = 0x8011081B
4571 COMADMIN_E_COMP_MOVE_SOURCE Handle = 0x8011081C
4572 COMADMIN_E_COMP_MOVE_DEST Handle = 0x8011081D
4573 COMADMIN_E_COMP_MOVE_PRIVATE Handle = 0x8011081E
4574 COMADMIN_E_BASEPARTITION_REQUIRED_IN_SET Handle = 0x8011081F
4575 COMADMIN_E_CANNOT_ALIAS_EVENTCLASS Handle = 0x80110820
4576 COMADMIN_E_PRIVATE_ACCESSDENIED Handle = 0x80110821
4577 COMADMIN_E_SAFERINVALID Handle = 0x80110822
4578 COMADMIN_E_REGISTRY_ACCESSDENIED Handle = 0x80110823
4579 COMADMIN_E_PARTITIONS_DISABLED Handle = 0x80110824
4580 WER_S_REPORT_DEBUG Handle = 0x001B0000
4581 WER_S_REPORT_UPLOADED Handle = 0x001B0001
4582 WER_S_REPORT_QUEUED Handle = 0x001B0002
4583 WER_S_DISABLED Handle = 0x001B0003
4584 WER_S_SUSPENDED_UPLOAD Handle = 0x001B0004
4585 WER_S_DISABLED_QUEUE Handle = 0x001B0005
4586 WER_S_DISABLED_ARCHIVE Handle = 0x001B0006
4587 WER_S_REPORT_ASYNC Handle = 0x001B0007
4588 WER_S_IGNORE_ASSERT_INSTANCE Handle = 0x001B0008
4589 WER_S_IGNORE_ALL_ASSERTS Handle = 0x001B0009
4590 WER_S_ASSERT_CONTINUE Handle = 0x001B000A
4591 WER_S_THROTTLED Handle = 0x001B000B
4592 WER_S_REPORT_UPLOADED_CAB Handle = 0x001B000C
4593 WER_E_CRASH_FAILURE Handle = 0x801B8000
4594 WER_E_CANCELED Handle = 0x801B8001
4595 WER_E_NETWORK_FAILURE Handle = 0x801B8002
4596 WER_E_NOT_INITIALIZED Handle = 0x801B8003
4597 WER_E_ALREADY_REPORTING Handle = 0x801B8004
4598 WER_E_DUMP_THROTTLED Handle = 0x801B8005
4599 WER_E_INSUFFICIENT_CONSENT Handle = 0x801B8006
4600 WER_E_TOO_HEAVY Handle = 0x801B8007
4601 ERROR_FLT_IO_COMPLETE Handle = 0x001F0001
4602 ERROR_FLT_NO_HANDLER_DEFINED Handle = 0x801F0001
4603 ERROR_FLT_CONTEXT_ALREADY_DEFINED Handle = 0x801F0002
4604 ERROR_FLT_INVALID_ASYNCHRONOUS_REQUEST Handle = 0x801F0003
4605 ERROR_FLT_DISALLOW_FAST_IO Handle = 0x801F0004
4606 ERROR_FLT_INVALID_NAME_REQUEST Handle = 0x801F0005
4607 ERROR_FLT_NOT_SAFE_TO_POST_OPERATION Handle = 0x801F0006
4608 ERROR_FLT_NOT_INITIALIZED Handle = 0x801F0007
4609 ERROR_FLT_FILTER_NOT_READY Handle = 0x801F0008
4610 ERROR_FLT_POST_OPERATION_CLEANUP Handle = 0x801F0009
4611 ERROR_FLT_INTERNAL_ERROR Handle = 0x801F000A
4612 ERROR_FLT_DELETING_OBJECT Handle = 0x801F000B
4613 ERROR_FLT_MUST_BE_NONPAGED_POOL Handle = 0x801F000C
4614 ERROR_FLT_DUPLICATE_ENTRY Handle = 0x801F000D
4615 ERROR_FLT_CBDQ_DISABLED Handle = 0x801F000E
4616 ERROR_FLT_DO_NOT_ATTACH Handle = 0x801F000F
4617 ERROR_FLT_DO_NOT_DETACH Handle = 0x801F0010
4618 ERROR_FLT_INSTANCE_ALTITUDE_COLLISION Handle = 0x801F0011
4619 ERROR_FLT_INSTANCE_NAME_COLLISION Handle = 0x801F0012
4620 ERROR_FLT_FILTER_NOT_FOUND Handle = 0x801F0013
4621 ERROR_FLT_VOLUME_NOT_FOUND Handle = 0x801F0014
4622 ERROR_FLT_INSTANCE_NOT_FOUND Handle = 0x801F0015
4623 ERROR_FLT_CONTEXT_ALLOCATION_NOT_FOUND Handle = 0x801F0016
4624 ERROR_FLT_INVALID_CONTEXT_REGISTRATION Handle = 0x801F0017
4625 ERROR_FLT_NAME_CACHE_MISS Handle = 0x801F0018
4626 ERROR_FLT_NO_DEVICE_OBJECT Handle = 0x801F0019
4627 ERROR_FLT_VOLUME_ALREADY_MOUNTED Handle = 0x801F001A
4628 ERROR_FLT_ALREADY_ENLISTED Handle = 0x801F001B
4629 ERROR_FLT_CONTEXT_ALREADY_LINKED Handle = 0x801F001C
4630 ERROR_FLT_NO_WAITER_FOR_REPLY Handle = 0x801F0020
4631 ERROR_FLT_REGISTRATION_BUSY Handle = 0x801F0023
4632 ERROR_HUNG_DISPLAY_DRIVER_THREAD Handle = 0x80260001
4633 DWM_E_COMPOSITIONDISABLED Handle = 0x80263001
4634 DWM_E_REMOTING_NOT_SUPPORTED Handle = 0x80263002
4635 DWM_E_NO_REDIRECTION_SURFACE_AVAILABLE Handle = 0x80263003
4636 DWM_E_NOT_QUEUING_PRESENTS Handle = 0x80263004
4637 DWM_E_ADAPTER_NOT_FOUND Handle = 0x80263005
4638 DWM_S_GDI_REDIRECTION_SURFACE Handle = 0x00263005
4639 DWM_E_TEXTURE_TOO_LARGE Handle = 0x80263007
4640 DWM_S_GDI_REDIRECTION_SURFACE_BLT_VIA_GDI Handle = 0x00263008
4641 ERROR_MONITOR_NO_DESCRIPTOR Handle = 0x00261001
4642 ERROR_MONITOR_UNKNOWN_DESCRIPTOR_FORMAT Handle = 0x00261002
4643 ERROR_MONITOR_INVALID_DESCRIPTOR_CHECKSUM Handle = 0xC0261003
4644 ERROR_MONITOR_INVALID_STANDARD_TIMING_BLOCK Handle = 0xC0261004
4645 ERROR_MONITOR_WMI_DATABLOCK_REGISTRATION_FAILED Handle = 0xC0261005
4646 ERROR_MONITOR_INVALID_SERIAL_NUMBER_MONDSC_BLOCK Handle = 0xC0261006
4647 ERROR_MONITOR_INVALID_USER_FRIENDLY_MONDSC_BLOCK Handle = 0xC0261007
4648 ERROR_MONITOR_NO_MORE_DESCRIPTOR_DATA Handle = 0xC0261008
4649 ERROR_MONITOR_INVALID_DETAILED_TIMING_BLOCK Handle = 0xC0261009
4650 ERROR_MONITOR_INVALID_MANUFACTURE_DATE Handle = 0xC026100A
4651 ERROR_GRAPHICS_NOT_EXCLUSIVE_MODE_OWNER Handle = 0xC0262000
4652 ERROR_GRAPHICS_INSUFFICIENT_DMA_BUFFER Handle = 0xC0262001
4653 ERROR_GRAPHICS_INVALID_DISPLAY_ADAPTER Handle = 0xC0262002
4654 ERROR_GRAPHICS_ADAPTER_WAS_RESET Handle = 0xC0262003
4655 ERROR_GRAPHICS_INVALID_DRIVER_MODEL Handle = 0xC0262004
4656 ERROR_GRAPHICS_PRESENT_MODE_CHANGED Handle = 0xC0262005
4657 ERROR_GRAPHICS_PRESENT_OCCLUDED Handle = 0xC0262006
4658 ERROR_GRAPHICS_PRESENT_DENIED Handle = 0xC0262007
4659 ERROR_GRAPHICS_CANNOTCOLORCONVERT Handle = 0xC0262008
4660 ERROR_GRAPHICS_DRIVER_MISMATCH Handle = 0xC0262009
4661 ERROR_GRAPHICS_PARTIAL_DATA_POPULATED Handle = 0x4026200A
4662 ERROR_GRAPHICS_PRESENT_REDIRECTION_DISABLED Handle = 0xC026200B
4663 ERROR_GRAPHICS_PRESENT_UNOCCLUDED Handle = 0xC026200C
4664 ERROR_GRAPHICS_WINDOWDC_NOT_AVAILABLE Handle = 0xC026200D
4665 ERROR_GRAPHICS_WINDOWLESS_PRESENT_DISABLED Handle = 0xC026200E
4666 ERROR_GRAPHICS_PRESENT_INVALID_WINDOW Handle = 0xC026200F
4667 ERROR_GRAPHICS_PRESENT_BUFFER_NOT_BOUND Handle = 0xC0262010
4668 ERROR_GRAPHICS_VAIL_STATE_CHANGED Handle = 0xC0262011
4669 ERROR_GRAPHICS_INDIRECT_DISPLAY_ABANDON_SWAPCHAIN Handle = 0xC0262012
4670 ERROR_GRAPHICS_INDIRECT_DISPLAY_DEVICE_STOPPED Handle = 0xC0262013
4671 ERROR_GRAPHICS_NO_VIDEO_MEMORY Handle = 0xC0262100
4672 ERROR_GRAPHICS_CANT_LOCK_MEMORY Handle = 0xC0262101
4673 ERROR_GRAPHICS_ALLOCATION_BUSY Handle = 0xC0262102
4674 ERROR_GRAPHICS_TOO_MANY_REFERENCES Handle = 0xC0262103
4675 ERROR_GRAPHICS_TRY_AGAIN_LATER Handle = 0xC0262104
4676 ERROR_GRAPHICS_TRY_AGAIN_NOW Handle = 0xC0262105
4677 ERROR_GRAPHICS_ALLOCATION_INVALID Handle = 0xC0262106
4678 ERROR_GRAPHICS_UNSWIZZLING_APERTURE_UNAVAILABLE Handle = 0xC0262107
4679 ERROR_GRAPHICS_UNSWIZZLING_APERTURE_UNSUPPORTED Handle = 0xC0262108
4680 ERROR_GRAPHICS_CANT_EVICT_PINNED_ALLOCATION Handle = 0xC0262109
4681 ERROR_GRAPHICS_INVALID_ALLOCATION_USAGE Handle = 0xC0262110
4682 ERROR_GRAPHICS_CANT_RENDER_LOCKED_ALLOCATION Handle = 0xC0262111
4683 ERROR_GRAPHICS_ALLOCATION_CLOSED Handle = 0xC0262112
4684 ERROR_GRAPHICS_INVALID_ALLOCATION_INSTANCE Handle = 0xC0262113
4685 ERROR_GRAPHICS_INVALID_ALLOCATION_HANDLE Handle = 0xC0262114
4686 ERROR_GRAPHICS_WRONG_ALLOCATION_DEVICE Handle = 0xC0262115
4687 ERROR_GRAPHICS_ALLOCATION_CONTENT_LOST Handle = 0xC0262116
4688 ERROR_GRAPHICS_GPU_EXCEPTION_ON_DEVICE Handle = 0xC0262200
4689 ERROR_GRAPHICS_SKIP_ALLOCATION_PREPARATION Handle = 0x40262201
4690 ERROR_GRAPHICS_INVALID_VIDPN_TOPOLOGY Handle = 0xC0262300
4691 ERROR_GRAPHICS_VIDPN_TOPOLOGY_NOT_SUPPORTED Handle = 0xC0262301
4692 ERROR_GRAPHICS_VIDPN_TOPOLOGY_CURRENTLY_NOT_SUPPORTED Handle = 0xC0262302
4693 ERROR_GRAPHICS_INVALID_VIDPN Handle = 0xC0262303
4694 ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE Handle = 0xC0262304
4695 ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET Handle = 0xC0262305
4696 ERROR_GRAPHICS_VIDPN_MODALITY_NOT_SUPPORTED Handle = 0xC0262306
4697 ERROR_GRAPHICS_MODE_NOT_PINNED Handle = 0x00262307
4698 ERROR_GRAPHICS_INVALID_VIDPN_SOURCEMODESET Handle = 0xC0262308
4699 ERROR_GRAPHICS_INVALID_VIDPN_TARGETMODESET Handle = 0xC0262309
4700 ERROR_GRAPHICS_INVALID_FREQUENCY Handle = 0xC026230A
4701 ERROR_GRAPHICS_INVALID_ACTIVE_REGION Handle = 0xC026230B
4702 ERROR_GRAPHICS_INVALID_TOTAL_REGION Handle = 0xC026230C
4703 ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE_MODE Handle = 0xC0262310
4704 ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET_MODE Handle = 0xC0262311
4705 ERROR_GRAPHICS_PINNED_MODE_MUST_REMAIN_IN_SET Handle = 0xC0262312
4706 ERROR_GRAPHICS_PATH_ALREADY_IN_TOPOLOGY Handle = 0xC0262313
4707 ERROR_GRAPHICS_MODE_ALREADY_IN_MODESET Handle = 0xC0262314
4708 ERROR_GRAPHICS_INVALID_VIDEOPRESENTSOURCESET Handle = 0xC0262315
4709 ERROR_GRAPHICS_INVALID_VIDEOPRESENTTARGETSET Handle = 0xC0262316
4710 ERROR_GRAPHICS_SOURCE_ALREADY_IN_SET Handle = 0xC0262317
4711 ERROR_GRAPHICS_TARGET_ALREADY_IN_SET Handle = 0xC0262318
4712 ERROR_GRAPHICS_INVALID_VIDPN_PRESENT_PATH Handle = 0xC0262319
4713 ERROR_GRAPHICS_NO_RECOMMENDED_VIDPN_TOPOLOGY Handle = 0xC026231A
4714 ERROR_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGESET Handle = 0xC026231B
4715 ERROR_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE Handle = 0xC026231C
4716 ERROR_GRAPHICS_FREQUENCYRANGE_NOT_IN_SET Handle = 0xC026231D
4717 ERROR_GRAPHICS_NO_PREFERRED_MODE Handle = 0x0026231E
4718 ERROR_GRAPHICS_FREQUENCYRANGE_ALREADY_IN_SET Handle = 0xC026231F
4719 ERROR_GRAPHICS_STALE_MODESET Handle = 0xC0262320
4720 ERROR_GRAPHICS_INVALID_MONITOR_SOURCEMODESET Handle = 0xC0262321
4721 ERROR_GRAPHICS_INVALID_MONITOR_SOURCE_MODE Handle = 0xC0262322
4722 ERROR_GRAPHICS_NO_RECOMMENDED_FUNCTIONAL_VIDPN Handle = 0xC0262323
4723 ERROR_GRAPHICS_MODE_ID_MUST_BE_UNIQUE Handle = 0xC0262324
4724 ERROR_GRAPHICS_EMPTY_ADAPTER_MONITOR_MODE_SUPPORT_INTERSECTION Handle = 0xC0262325
4725 ERROR_GRAPHICS_VIDEO_PRESENT_TARGETS_LESS_THAN_SOURCES Handle = 0xC0262326
4726 ERROR_GRAPHICS_PATH_NOT_IN_TOPOLOGY Handle = 0xC0262327
4727 ERROR_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_SOURCE Handle = 0xC0262328
4728 ERROR_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_TARGET Handle = 0xC0262329
4729 ERROR_GRAPHICS_INVALID_MONITORDESCRIPTORSET Handle = 0xC026232A
4730 ERROR_GRAPHICS_INVALID_MONITORDESCRIPTOR Handle = 0xC026232B
4731 ERROR_GRAPHICS_MONITORDESCRIPTOR_NOT_IN_SET Handle = 0xC026232C
4732 ERROR_GRAPHICS_MONITORDESCRIPTOR_ALREADY_IN_SET Handle = 0xC026232D
4733 ERROR_GRAPHICS_MONITORDESCRIPTOR_ID_MUST_BE_UNIQUE Handle = 0xC026232E
4734 ERROR_GRAPHICS_INVALID_VIDPN_TARGET_SUBSET_TYPE Handle = 0xC026232F
4735 ERROR_GRAPHICS_RESOURCES_NOT_RELATED Handle = 0xC0262330
4736 ERROR_GRAPHICS_SOURCE_ID_MUST_BE_UNIQUE Handle = 0xC0262331
4737 ERROR_GRAPHICS_TARGET_ID_MUST_BE_UNIQUE Handle = 0xC0262332
4738 ERROR_GRAPHICS_NO_AVAILABLE_VIDPN_TARGET Handle = 0xC0262333
4739 ERROR_GRAPHICS_MONITOR_COULD_NOT_BE_ASSOCIATED_WITH_ADAPTER Handle = 0xC0262334
4740 ERROR_GRAPHICS_NO_VIDPNMGR Handle = 0xC0262335
4741 ERROR_GRAPHICS_NO_ACTIVE_VIDPN Handle = 0xC0262336
4742 ERROR_GRAPHICS_STALE_VIDPN_TOPOLOGY Handle = 0xC0262337
4743 ERROR_GRAPHICS_MONITOR_NOT_CONNECTED Handle = 0xC0262338
4744 ERROR_GRAPHICS_SOURCE_NOT_IN_TOPOLOGY Handle = 0xC0262339
4745 ERROR_GRAPHICS_INVALID_PRIMARYSURFACE_SIZE Handle = 0xC026233A
4746 ERROR_GRAPHICS_INVALID_VISIBLEREGION_SIZE Handle = 0xC026233B
4747 ERROR_GRAPHICS_INVALID_STRIDE Handle = 0xC026233C
4748 ERROR_GRAPHICS_INVALID_PIXELFORMAT Handle = 0xC026233D
4749 ERROR_GRAPHICS_INVALID_COLORBASIS Handle = 0xC026233E
4750 ERROR_GRAPHICS_INVALID_PIXELVALUEACCESSMODE Handle = 0xC026233F
4751 ERROR_GRAPHICS_TARGET_NOT_IN_TOPOLOGY Handle = 0xC0262340
4752 ERROR_GRAPHICS_NO_DISPLAY_MODE_MANAGEMENT_SUPPORT Handle = 0xC0262341
4753 ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE Handle = 0xC0262342
4754 ERROR_GRAPHICS_CANT_ACCESS_ACTIVE_VIDPN Handle = 0xC0262343
4755 ERROR_GRAPHICS_INVALID_PATH_IMPORTANCE_ORDINAL Handle = 0xC0262344
4756 ERROR_GRAPHICS_INVALID_PATH_CONTENT_GEOMETRY_TRANSFORMATION Handle = 0xC0262345
4757 ERROR_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_SUPPORTED Handle = 0xC0262346
4758 ERROR_GRAPHICS_INVALID_GAMMA_RAMP Handle = 0xC0262347
4759 ERROR_GRAPHICS_GAMMA_RAMP_NOT_SUPPORTED Handle = 0xC0262348
4760 ERROR_GRAPHICS_MULTISAMPLING_NOT_SUPPORTED Handle = 0xC0262349
4761 ERROR_GRAPHICS_MODE_NOT_IN_MODESET Handle = 0xC026234A
4762 ERROR_GRAPHICS_DATASET_IS_EMPTY Handle = 0x0026234B
4763 ERROR_GRAPHICS_NO_MORE_ELEMENTS_IN_DATASET Handle = 0x0026234C
4764 ERROR_GRAPHICS_INVALID_VIDPN_TOPOLOGY_RECOMMENDATION_REASON Handle = 0xC026234D
4765 ERROR_GRAPHICS_INVALID_PATH_CONTENT_TYPE Handle = 0xC026234E
4766 ERROR_GRAPHICS_INVALID_COPYPROTECTION_TYPE Handle = 0xC026234F
4767 ERROR_GRAPHICS_UNASSIGNED_MODESET_ALREADY_EXISTS Handle = 0xC0262350
4768 ERROR_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_PINNED Handle = 0x00262351
4769 ERROR_GRAPHICS_INVALID_SCANLINE_ORDERING Handle = 0xC0262352
4770 ERROR_GRAPHICS_TOPOLOGY_CHANGES_NOT_ALLOWED Handle = 0xC0262353
4771 ERROR_GRAPHICS_NO_AVAILABLE_IMPORTANCE_ORDINALS Handle = 0xC0262354
4772 ERROR_GRAPHICS_INCOMPATIBLE_PRIVATE_FORMAT Handle = 0xC0262355
4773 ERROR_GRAPHICS_INVALID_MODE_PRUNING_ALGORITHM Handle = 0xC0262356
4774 ERROR_GRAPHICS_INVALID_MONITOR_CAPABILITY_ORIGIN Handle = 0xC0262357
4775 ERROR_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE_CONSTRAINT Handle = 0xC0262358
4776 ERROR_GRAPHICS_MAX_NUM_PATHS_REACHED Handle = 0xC0262359
4777 ERROR_GRAPHICS_CANCEL_VIDPN_TOPOLOGY_AUGMENTATION Handle = 0xC026235A
4778 ERROR_GRAPHICS_INVALID_CLIENT_TYPE Handle = 0xC026235B
4779 ERROR_GRAPHICS_CLIENTVIDPN_NOT_SET Handle = 0xC026235C
4780 ERROR_GRAPHICS_SPECIFIED_CHILD_ALREADY_CONNECTED Handle = 0xC0262400
4781 ERROR_GRAPHICS_CHILD_DESCRIPTOR_NOT_SUPPORTED Handle = 0xC0262401
4782 ERROR_GRAPHICS_UNKNOWN_CHILD_STATUS Handle = 0x4026242F
4783 ERROR_GRAPHICS_NOT_A_LINKED_ADAPTER Handle = 0xC0262430
4784 ERROR_GRAPHICS_LEADLINK_NOT_ENUMERATED Handle = 0xC0262431
4785 ERROR_GRAPHICS_CHAINLINKS_NOT_ENUMERATED Handle = 0xC0262432
4786 ERROR_GRAPHICS_ADAPTER_CHAIN_NOT_READY Handle = 0xC0262433
4787 ERROR_GRAPHICS_CHAINLINKS_NOT_STARTED Handle = 0xC0262434
4788 ERROR_GRAPHICS_CHAINLINKS_NOT_POWERED_ON Handle = 0xC0262435
4789 ERROR_GRAPHICS_INCONSISTENT_DEVICE_LINK_STATE Handle = 0xC0262436
4790 ERROR_GRAPHICS_LEADLINK_START_DEFERRED Handle = 0x40262437
4791 ERROR_GRAPHICS_NOT_POST_DEVICE_DRIVER Handle = 0xC0262438
4792 ERROR_GRAPHICS_POLLING_TOO_FREQUENTLY Handle = 0x40262439
4793 ERROR_GRAPHICS_START_DEFERRED Handle = 0x4026243A
4794 ERROR_GRAPHICS_ADAPTER_ACCESS_NOT_EXCLUDED Handle = 0xC026243B
4795 ERROR_GRAPHICS_DEPENDABLE_CHILD_STATUS Handle = 0x4026243C
4796 ERROR_GRAPHICS_OPM_NOT_SUPPORTED Handle = 0xC0262500
4797 ERROR_GRAPHICS_COPP_NOT_SUPPORTED Handle = 0xC0262501
4798 ERROR_GRAPHICS_UAB_NOT_SUPPORTED Handle = 0xC0262502
4799 ERROR_GRAPHICS_OPM_INVALID_ENCRYPTED_PARAMETERS Handle = 0xC0262503
4800 ERROR_GRAPHICS_OPM_NO_VIDEO_OUTPUTS_EXIST Handle = 0xC0262505
4801 ERROR_GRAPHICS_OPM_INTERNAL_ERROR Handle = 0xC026250B
4802 ERROR_GRAPHICS_OPM_INVALID_HANDLE Handle = 0xC026250C
4803 ERROR_GRAPHICS_PVP_INVALID_CERTIFICATE_LENGTH Handle = 0xC026250E
4804 ERROR_GRAPHICS_OPM_SPANNING_MODE_ENABLED Handle = 0xC026250F
4805 ERROR_GRAPHICS_OPM_THEATER_MODE_ENABLED Handle = 0xC0262510
4806 ERROR_GRAPHICS_PVP_HFS_FAILED Handle = 0xC0262511
4807 ERROR_GRAPHICS_OPM_INVALID_SRM Handle = 0xC0262512
4808 ERROR_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_HDCP Handle = 0xC0262513
4809 ERROR_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_ACP Handle = 0xC0262514
4810 ERROR_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_CGMSA Handle = 0xC0262515
4811 ERROR_GRAPHICS_OPM_HDCP_SRM_NEVER_SET Handle = 0xC0262516
4812 ERROR_GRAPHICS_OPM_RESOLUTION_TOO_HIGH Handle = 0xC0262517
4813 ERROR_GRAPHICS_OPM_ALL_HDCP_HARDWARE_ALREADY_IN_USE Handle = 0xC0262518
4814 ERROR_GRAPHICS_OPM_VIDEO_OUTPUT_NO_LONGER_EXISTS Handle = 0xC026251A
4815 ERROR_GRAPHICS_OPM_SESSION_TYPE_CHANGE_IN_PROGRESS Handle = 0xC026251B
4816 ERROR_GRAPHICS_OPM_VIDEO_OUTPUT_DOES_NOT_HAVE_COPP_SEMANTICS Handle = 0xC026251C
4817 ERROR_GRAPHICS_OPM_INVALID_INFORMATION_REQUEST Handle = 0xC026251D
4818 ERROR_GRAPHICS_OPM_DRIVER_INTERNAL_ERROR Handle = 0xC026251E
4819 ERROR_GRAPHICS_OPM_VIDEO_OUTPUT_DOES_NOT_HAVE_OPM_SEMANTICS Handle = 0xC026251F
4820 ERROR_GRAPHICS_OPM_SIGNALING_NOT_SUPPORTED Handle = 0xC0262520
4821 ERROR_GRAPHICS_OPM_INVALID_CONFIGURATION_REQUEST Handle = 0xC0262521
4822 ERROR_GRAPHICS_I2C_NOT_SUPPORTED Handle = 0xC0262580
4823 ERROR_GRAPHICS_I2C_DEVICE_DOES_NOT_EXIST Handle = 0xC0262581
4824 ERROR_GRAPHICS_I2C_ERROR_TRANSMITTING_DATA Handle = 0xC0262582
4825 ERROR_GRAPHICS_I2C_ERROR_RECEIVING_DATA Handle = 0xC0262583
4826 ERROR_GRAPHICS_DDCCI_VCP_NOT_SUPPORTED Handle = 0xC0262584
4827 ERROR_GRAPHICS_DDCCI_INVALID_DATA Handle = 0xC0262585
4828 ERROR_GRAPHICS_DDCCI_MONITOR_RETURNED_INVALID_TIMING_STATUS_BYTE Handle = 0xC0262586
4829 ERROR_GRAPHICS_MCA_INVALID_CAPABILITIES_STRING Handle = 0xC0262587
4830 ERROR_GRAPHICS_MCA_INTERNAL_ERROR Handle = 0xC0262588
4831 ERROR_GRAPHICS_DDCCI_INVALID_MESSAGE_COMMAND Handle = 0xC0262589
4832 ERROR_GRAPHICS_DDCCI_INVALID_MESSAGE_LENGTH Handle = 0xC026258A
4833 ERROR_GRAPHICS_DDCCI_INVALID_MESSAGE_CHECKSUM Handle = 0xC026258B
4834 ERROR_GRAPHICS_INVALID_PHYSICAL_MONITOR_HANDLE Handle = 0xC026258C
4835 ERROR_GRAPHICS_MONITOR_NO_LONGER_EXISTS Handle = 0xC026258D
4836 ERROR_GRAPHICS_DDCCI_CURRENT_CURRENT_VALUE_GREATER_THAN_MAXIMUM_VALUE Handle = 0xC02625D8
4837 ERROR_GRAPHICS_MCA_INVALID_VCP_VERSION Handle = 0xC02625D9
4838 ERROR_GRAPHICS_MCA_MONITOR_VIOLATES_MCCS_SPECIFICATION Handle = 0xC02625DA
4839 ERROR_GRAPHICS_MCA_MCCS_VERSION_MISMATCH Handle = 0xC02625DB
4840 ERROR_GRAPHICS_MCA_UNSUPPORTED_MCCS_VERSION Handle = 0xC02625DC
4841 ERROR_GRAPHICS_MCA_INVALID_TECHNOLOGY_TYPE_RETURNED Handle = 0xC02625DE
4842 ERROR_GRAPHICS_MCA_UNSUPPORTED_COLOR_TEMPERATURE Handle = 0xC02625DF
4843 ERROR_GRAPHICS_ONLY_CONSOLE_SESSION_SUPPORTED Handle = 0xC02625E0
4844 ERROR_GRAPHICS_NO_DISPLAY_DEVICE_CORRESPONDS_TO_NAME Handle = 0xC02625E1
4845 ERROR_GRAPHICS_DISPLAY_DEVICE_NOT_ATTACHED_TO_DESKTOP Handle = 0xC02625E2
4846 ERROR_GRAPHICS_MIRRORING_DEVICES_NOT_SUPPORTED Handle = 0xC02625E3
4847 ERROR_GRAPHICS_INVALID_POINTER Handle = 0xC02625E4
4848 ERROR_GRAPHICS_NO_MONITORS_CORRESPOND_TO_DISPLAY_DEVICE Handle = 0xC02625E5
4849 ERROR_GRAPHICS_PARAMETER_ARRAY_TOO_SMALL Handle = 0xC02625E6
4850 ERROR_GRAPHICS_INTERNAL_ERROR Handle = 0xC02625E7
4851 ERROR_GRAPHICS_SESSION_TYPE_CHANGE_IN_PROGRESS Handle = 0xC02605E8
4852 NAP_E_INVALID_PACKET Handle = 0x80270001
4853 NAP_E_MISSING_SOH Handle = 0x80270002
4854 NAP_E_CONFLICTING_ID Handle = 0x80270003
4855 NAP_E_NO_CACHED_SOH Handle = 0x80270004
4856 NAP_E_STILL_BOUND Handle = 0x80270005
4857 NAP_E_NOT_REGISTERED Handle = 0x80270006
4858 NAP_E_NOT_INITIALIZED Handle = 0x80270007
4859 NAP_E_MISMATCHED_ID Handle = 0x80270008
4860 NAP_E_NOT_PENDING Handle = 0x80270009
4861 NAP_E_ID_NOT_FOUND Handle = 0x8027000A
4862 NAP_E_MAXSIZE_TOO_SMALL Handle = 0x8027000B
4863 NAP_E_SERVICE_NOT_RUNNING Handle = 0x8027000C
4864 NAP_S_CERT_ALREADY_PRESENT Handle = 0x0027000D
4865 NAP_E_ENTITY_DISABLED Handle = 0x8027000E
4866 NAP_E_NETSH_GROUPPOLICY_ERROR Handle = 0x8027000F
4867 NAP_E_TOO_MANY_CALLS Handle = 0x80270010
4868 NAP_E_SHV_CONFIG_EXISTED Handle = 0x80270011
4869 NAP_E_SHV_CONFIG_NOT_FOUND Handle = 0x80270012
4870 NAP_E_SHV_TIMEOUT Handle = 0x80270013
4871 TPM_E_ERROR_MASK Handle = 0x80280000
4872 TPM_E_AUTHFAIL Handle = 0x80280001
4873 TPM_E_BADINDEX Handle = 0x80280002
4874 TPM_E_BAD_PARAMETER Handle = 0x80280003
4875 TPM_E_AUDITFAILURE Handle = 0x80280004
4876 TPM_E_CLEAR_DISABLED Handle = 0x80280005
4877 TPM_E_DEACTIVATED Handle = 0x80280006
4878 TPM_E_DISABLED Handle = 0x80280007
4879 TPM_E_DISABLED_CMD Handle = 0x80280008
4880 TPM_E_FAIL Handle = 0x80280009
4881 TPM_E_BAD_ORDINAL Handle = 0x8028000A
4882 TPM_E_INSTALL_DISABLED Handle = 0x8028000B
4883 TPM_E_INVALID_KEYHANDLE Handle = 0x8028000C
4884 TPM_E_KEYNOTFOUND Handle = 0x8028000D
4885 TPM_E_INAPPROPRIATE_ENC Handle = 0x8028000E
4886 TPM_E_MIGRATEFAIL Handle = 0x8028000F
4887 TPM_E_INVALID_PCR_INFO Handle = 0x80280010
4888 TPM_E_NOSPACE Handle = 0x80280011
4889 TPM_E_NOSRK Handle = 0x80280012
4890 TPM_E_NOTSEALED_BLOB Handle = 0x80280013
4891 TPM_E_OWNER_SET Handle = 0x80280014
4892 TPM_E_RESOURCES Handle = 0x80280015
4893 TPM_E_SHORTRANDOM Handle = 0x80280016
4894 TPM_E_SIZE Handle = 0x80280017
4895 TPM_E_WRONGPCRVAL Handle = 0x80280018
4896 TPM_E_BAD_PARAM_SIZE Handle = 0x80280019
4897 TPM_E_SHA_THREAD Handle = 0x8028001A
4898 TPM_E_SHA_ERROR Handle = 0x8028001B
4899 TPM_E_FAILEDSELFTEST Handle = 0x8028001C
4900 TPM_E_AUTH2FAIL Handle = 0x8028001D
4901 TPM_E_BADTAG Handle = 0x8028001E
4902 TPM_E_IOERROR Handle = 0x8028001F
4903 TPM_E_ENCRYPT_ERROR Handle = 0x80280020
4904 TPM_E_DECRYPT_ERROR Handle = 0x80280021
4905 TPM_E_INVALID_AUTHHANDLE Handle = 0x80280022
4906 TPM_E_NO_ENDORSEMENT Handle = 0x80280023
4907 TPM_E_INVALID_KEYUSAGE Handle = 0x80280024
4908 TPM_E_WRONG_ENTITYTYPE Handle = 0x80280025
4909 TPM_E_INVALID_POSTINIT Handle = 0x80280026
4910 TPM_E_INAPPROPRIATE_SIG Handle = 0x80280027
4911 TPM_E_BAD_KEY_PROPERTY Handle = 0x80280028
4912 TPM_E_BAD_MIGRATION Handle = 0x80280029
4913 TPM_E_BAD_SCHEME Handle = 0x8028002A
4914 TPM_E_BAD_DATASIZE Handle = 0x8028002B
4915 TPM_E_BAD_MODE Handle = 0x8028002C
4916 TPM_E_BAD_PRESENCE Handle = 0x8028002D
4917 TPM_E_BAD_VERSION Handle = 0x8028002E
4918 TPM_E_NO_WRAP_TRANSPORT Handle = 0x8028002F
4919 TPM_E_AUDITFAIL_UNSUCCESSFUL Handle = 0x80280030
4920 TPM_E_AUDITFAIL_SUCCESSFUL Handle = 0x80280031
4921 TPM_E_NOTRESETABLE Handle = 0x80280032
4922 TPM_E_NOTLOCAL Handle = 0x80280033
4923 TPM_E_BAD_TYPE Handle = 0x80280034
4924 TPM_E_INVALID_RESOURCE Handle = 0x80280035
4925 TPM_E_NOTFIPS Handle = 0x80280036
4926 TPM_E_INVALID_FAMILY Handle = 0x80280037
4927 TPM_E_NO_NV_PERMISSION Handle = 0x80280038
4928 TPM_E_REQUIRES_SIGN Handle = 0x80280039
4929 TPM_E_KEY_NOTSUPPORTED Handle = 0x8028003A
4930 TPM_E_AUTH_CONFLICT Handle = 0x8028003B
4931 TPM_E_AREA_LOCKED Handle = 0x8028003C
4932 TPM_E_BAD_LOCALITY Handle = 0x8028003D
4933 TPM_E_READ_ONLY Handle = 0x8028003E
4934 TPM_E_PER_NOWRITE Handle = 0x8028003F
4935 TPM_E_FAMILYCOUNT Handle = 0x80280040
4936 TPM_E_WRITE_LOCKED Handle = 0x80280041
4937 TPM_E_BAD_ATTRIBUTES Handle = 0x80280042
4938 TPM_E_INVALID_STRUCTURE Handle = 0x80280043
4939 TPM_E_KEY_OWNER_CONTROL Handle = 0x80280044
4940 TPM_E_BAD_COUNTER Handle = 0x80280045
4941 TPM_E_NOT_FULLWRITE Handle = 0x80280046
4942 TPM_E_CONTEXT_GAP Handle = 0x80280047
4943 TPM_E_MAXNVWRITES Handle = 0x80280048
4944 TPM_E_NOOPERATOR Handle = 0x80280049
4945 TPM_E_RESOURCEMISSING Handle = 0x8028004A
4946 TPM_E_DELEGATE_LOCK Handle = 0x8028004B
4947 TPM_E_DELEGATE_FAMILY Handle = 0x8028004C
4948 TPM_E_DELEGATE_ADMIN Handle = 0x8028004D
4949 TPM_E_TRANSPORT_NOTEXCLUSIVE Handle = 0x8028004E
4950 TPM_E_OWNER_CONTROL Handle = 0x8028004F
4951 TPM_E_DAA_RESOURCES Handle = 0x80280050
4952 TPM_E_DAA_INPUT_DATA0 Handle = 0x80280051
4953 TPM_E_DAA_INPUT_DATA1 Handle = 0x80280052
4954 TPM_E_DAA_ISSUER_SETTINGS Handle = 0x80280053
4955 TPM_E_DAA_TPM_SETTINGS Handle = 0x80280054
4956 TPM_E_DAA_STAGE Handle = 0x80280055
4957 TPM_E_DAA_ISSUER_VALIDITY Handle = 0x80280056
4958 TPM_E_DAA_WRONG_W Handle = 0x80280057
4959 TPM_E_BAD_HANDLE Handle = 0x80280058
4960 TPM_E_BAD_DELEGATE Handle = 0x80280059
4961 TPM_E_BADCONTEXT Handle = 0x8028005A
4962 TPM_E_TOOMANYCONTEXTS Handle = 0x8028005B
4963 TPM_E_MA_TICKET_SIGNATURE Handle = 0x8028005C
4964 TPM_E_MA_DESTINATION Handle = 0x8028005D
4965 TPM_E_MA_SOURCE Handle = 0x8028005E
4966 TPM_E_MA_AUTHORITY Handle = 0x8028005F
4967 TPM_E_PERMANENTEK Handle = 0x80280061
4968 TPM_E_BAD_SIGNATURE Handle = 0x80280062
4969 TPM_E_NOCONTEXTSPACE Handle = 0x80280063
4970 TPM_20_E_ASYMMETRIC Handle = 0x80280081
4971 TPM_20_E_ATTRIBUTES Handle = 0x80280082
4972 TPM_20_E_HASH Handle = 0x80280083
4973 TPM_20_E_VALUE Handle = 0x80280084
4974 TPM_20_E_HIERARCHY Handle = 0x80280085
4975 TPM_20_E_KEY_SIZE Handle = 0x80280087
4976 TPM_20_E_MGF Handle = 0x80280088
4977 TPM_20_E_MODE Handle = 0x80280089
4978 TPM_20_E_TYPE Handle = 0x8028008A
4979 TPM_20_E_HANDLE Handle = 0x8028008B
4980 TPM_20_E_KDF Handle = 0x8028008C
4981 TPM_20_E_RANGE Handle = 0x8028008D
4982 TPM_20_E_AUTH_FAIL Handle = 0x8028008E
4983 TPM_20_E_NONCE Handle = 0x8028008F
4984 TPM_20_E_PP Handle = 0x80280090
4985 TPM_20_E_SCHEME Handle = 0x80280092
4986 TPM_20_E_SIZE Handle = 0x80280095
4987 TPM_20_E_SYMMETRIC Handle = 0x80280096
4988 TPM_20_E_TAG Handle = 0x80280097
4989 TPM_20_E_SELECTOR Handle = 0x80280098
4990 TPM_20_E_INSUFFICIENT Handle = 0x8028009A
4991 TPM_20_E_SIGNATURE Handle = 0x8028009B
4992 TPM_20_E_KEY Handle = 0x8028009C
4993 TPM_20_E_POLICY_FAIL Handle = 0x8028009D
4994 TPM_20_E_INTEGRITY Handle = 0x8028009F
4995 TPM_20_E_TICKET Handle = 0x802800A0
4996 TPM_20_E_RESERVED_BITS Handle = 0x802800A1
4997 TPM_20_E_BAD_AUTH Handle = 0x802800A2
4998 TPM_20_E_EXPIRED Handle = 0x802800A3
4999 TPM_20_E_POLICY_CC Handle = 0x802800A4
5000 TPM_20_E_BINDING Handle = 0x802800A5
5001 TPM_20_E_CURVE Handle = 0x802800A6
5002 TPM_20_E_ECC_POINT Handle = 0x802800A7
5003 TPM_20_E_INITIALIZE Handle = 0x80280100
5004 TPM_20_E_FAILURE Handle = 0x80280101
5005 TPM_20_E_SEQUENCE Handle = 0x80280103
5006 TPM_20_E_PRIVATE Handle = 0x8028010B
5007 TPM_20_E_HMAC Handle = 0x80280119
5008 TPM_20_E_DISABLED Handle = 0x80280120
5009 TPM_20_E_EXCLUSIVE Handle = 0x80280121
5010 TPM_20_E_ECC_CURVE Handle = 0x80280123
5011 TPM_20_E_AUTH_TYPE Handle = 0x80280124
5012 TPM_20_E_AUTH_MISSING Handle = 0x80280125
5013 TPM_20_E_POLICY Handle = 0x80280126
5014 TPM_20_E_PCR Handle = 0x80280127
5015 TPM_20_E_PCR_CHANGED Handle = 0x80280128
5016 TPM_20_E_UPGRADE Handle = 0x8028012D
5017 TPM_20_E_TOO_MANY_CONTEXTS Handle = 0x8028012E
5018 TPM_20_E_AUTH_UNAVAILABLE Handle = 0x8028012F
5019 TPM_20_E_REBOOT Handle = 0x80280130
5020 TPM_20_E_UNBALANCED Handle = 0x80280131
5021 TPM_20_E_COMMAND_SIZE Handle = 0x80280142
5022 TPM_20_E_COMMAND_CODE Handle = 0x80280143
5023 TPM_20_E_AUTHSIZE Handle = 0x80280144
5024 TPM_20_E_AUTH_CONTEXT Handle = 0x80280145
5025 TPM_20_E_NV_RANGE Handle = 0x80280146
5026 TPM_20_E_NV_SIZE Handle = 0x80280147
5027 TPM_20_E_NV_LOCKED Handle = 0x80280148
5028 TPM_20_E_NV_AUTHORIZATION Handle = 0x80280149
5029 TPM_20_E_NV_UNINITIALIZED Handle = 0x8028014A
5030 TPM_20_E_NV_SPACE Handle = 0x8028014B
5031 TPM_20_E_NV_DEFINED Handle = 0x8028014C
5032 TPM_20_E_BAD_CONTEXT Handle = 0x80280150
5033 TPM_20_E_CPHASH Handle = 0x80280151
5034 TPM_20_E_PARENT Handle = 0x80280152
5035 TPM_20_E_NEEDS_TEST Handle = 0x80280153
5036 TPM_20_E_NO_RESULT Handle = 0x80280154
5037 TPM_20_E_SENSITIVE Handle = 0x80280155
5038 TPM_E_COMMAND_BLOCKED Handle = 0x80280400
5039 TPM_E_INVALID_HANDLE Handle = 0x80280401
5040 TPM_E_DUPLICATE_VHANDLE Handle = 0x80280402
5041 TPM_E_EMBEDDED_COMMAND_BLOCKED Handle = 0x80280403
5042 TPM_E_EMBEDDED_COMMAND_UNSUPPORTED Handle = 0x80280404
5043 TPM_E_RETRY Handle = 0x80280800
5044 TPM_E_NEEDS_SELFTEST Handle = 0x80280801
5045 TPM_E_DOING_SELFTEST Handle = 0x80280802
5046 TPM_E_DEFEND_LOCK_RUNNING Handle = 0x80280803
5047 TPM_20_E_CONTEXT_GAP Handle = 0x80280901
5048 TPM_20_E_OBJECT_MEMORY Handle = 0x80280902
5049 TPM_20_E_SESSION_MEMORY Handle = 0x80280903
5050 TPM_20_E_MEMORY Handle = 0x80280904
5051 TPM_20_E_SESSION_HANDLES Handle = 0x80280905
5052 TPM_20_E_OBJECT_HANDLES Handle = 0x80280906
5053 TPM_20_E_LOCALITY Handle = 0x80280907
5054 TPM_20_E_YIELDED Handle = 0x80280908
5055 TPM_20_E_CANCELED Handle = 0x80280909
5056 TPM_20_E_TESTING Handle = 0x8028090A
5057 TPM_20_E_NV_RATE Handle = 0x80280920
5058 TPM_20_E_LOCKOUT Handle = 0x80280921
5059 TPM_20_E_RETRY Handle = 0x80280922
5060 TPM_20_E_NV_UNAVAILABLE Handle = 0x80280923
5061 TBS_E_INTERNAL_ERROR Handle = 0x80284001
5062 TBS_E_BAD_PARAMETER Handle = 0x80284002
5063 TBS_E_INVALID_OUTPUT_POINTER Handle = 0x80284003
5064 TBS_E_INVALID_CONTEXT Handle = 0x80284004
5065 TBS_E_INSUFFICIENT_BUFFER Handle = 0x80284005
5066 TBS_E_IOERROR Handle = 0x80284006
5067 TBS_E_INVALID_CONTEXT_PARAM Handle = 0x80284007
5068 TBS_E_SERVICE_NOT_RUNNING Handle = 0x80284008
5069 TBS_E_TOO_MANY_TBS_CONTEXTS Handle = 0x80284009
5070 TBS_E_TOO_MANY_RESOURCES Handle = 0x8028400A
5071 TBS_E_SERVICE_START_PENDING Handle = 0x8028400B
5072 TBS_E_PPI_NOT_SUPPORTED Handle = 0x8028400C
5073 TBS_E_COMMAND_CANCELED Handle = 0x8028400D
5074 TBS_E_BUFFER_TOO_LARGE Handle = 0x8028400E
5075 TBS_E_TPM_NOT_FOUND Handle = 0x8028400F
5076 TBS_E_SERVICE_DISABLED Handle = 0x80284010
5077 TBS_E_NO_EVENT_LOG Handle = 0x80284011
5078 TBS_E_ACCESS_DENIED Handle = 0x80284012
5079 TBS_E_PROVISIONING_NOT_ALLOWED Handle = 0x80284013
5080 TBS_E_PPI_FUNCTION_UNSUPPORTED Handle = 0x80284014
5081 TBS_E_OWNERAUTH_NOT_FOUND Handle = 0x80284015
5082 TBS_E_PROVISIONING_INCOMPLETE Handle = 0x80284016
5083 TPMAPI_E_INVALID_STATE Handle = 0x80290100
5084 TPMAPI_E_NOT_ENOUGH_DATA Handle = 0x80290101
5085 TPMAPI_E_TOO_MUCH_DATA Handle = 0x80290102
5086 TPMAPI_E_INVALID_OUTPUT_POINTER Handle = 0x80290103
5087 TPMAPI_E_INVALID_PARAMETER Handle = 0x80290104
5088 TPMAPI_E_OUT_OF_MEMORY Handle = 0x80290105
5089 TPMAPI_E_BUFFER_TOO_SMALL Handle = 0x80290106
5090 TPMAPI_E_INTERNAL_ERROR Handle = 0x80290107
5091 TPMAPI_E_ACCESS_DENIED Handle = 0x80290108
5092 TPMAPI_E_AUTHORIZATION_FAILED Handle = 0x80290109
5093 TPMAPI_E_INVALID_CONTEXT_HANDLE Handle = 0x8029010A
5094 TPMAPI_E_TBS_COMMUNICATION_ERROR Handle = 0x8029010B
5095 TPMAPI_E_TPM_COMMAND_ERROR Handle = 0x8029010C
5096 TPMAPI_E_MESSAGE_TOO_LARGE Handle = 0x8029010D
5097 TPMAPI_E_INVALID_ENCODING Handle = 0x8029010E
5098 TPMAPI_E_INVALID_KEY_SIZE Handle = 0x8029010F
5099 TPMAPI_E_ENCRYPTION_FAILED Handle = 0x80290110
5100 TPMAPI_E_INVALID_KEY_PARAMS Handle = 0x80290111
5101 TPMAPI_E_INVALID_MIGRATION_AUTHORIZATION_BLOB Handle = 0x80290112
5102 TPMAPI_E_INVALID_PCR_INDEX Handle = 0x80290113
5103 TPMAPI_E_INVALID_DELEGATE_BLOB Handle = 0x80290114
5104 TPMAPI_E_INVALID_CONTEXT_PARAMS Handle = 0x80290115
5105 TPMAPI_E_INVALID_KEY_BLOB Handle = 0x80290116
5106 TPMAPI_E_INVALID_PCR_DATA Handle = 0x80290117
5107 TPMAPI_E_INVALID_OWNER_AUTH Handle = 0x80290118
5108 TPMAPI_E_FIPS_RNG_CHECK_FAILED Handle = 0x80290119
5109 TPMAPI_E_EMPTY_TCG_LOG Handle = 0x8029011A
5110 TPMAPI_E_INVALID_TCG_LOG_ENTRY Handle = 0x8029011B
5111 TPMAPI_E_TCG_SEPARATOR_ABSENT Handle = 0x8029011C
5112 TPMAPI_E_TCG_INVALID_DIGEST_ENTRY Handle = 0x8029011D
5113 TPMAPI_E_POLICY_DENIES_OPERATION Handle = 0x8029011E
5114 TPMAPI_E_NV_BITS_NOT_DEFINED Handle = 0x8029011F
5115 TPMAPI_E_NV_BITS_NOT_READY Handle = 0x80290120
5116 TPMAPI_E_SEALING_KEY_NOT_AVAILABLE Handle = 0x80290121
5117 TPMAPI_E_NO_AUTHORIZATION_CHAIN_FOUND Handle = 0x80290122
5118 TPMAPI_E_SVN_COUNTER_NOT_AVAILABLE Handle = 0x80290123
5119 TPMAPI_E_OWNER_AUTH_NOT_NULL Handle = 0x80290124
5120 TPMAPI_E_ENDORSEMENT_AUTH_NOT_NULL Handle = 0x80290125
5121 TPMAPI_E_AUTHORIZATION_REVOKED Handle = 0x80290126
5122 TPMAPI_E_MALFORMED_AUTHORIZATION_KEY Handle = 0x80290127
5123 TPMAPI_E_AUTHORIZING_KEY_NOT_SUPPORTED Handle = 0x80290128
5124 TPMAPI_E_INVALID_AUTHORIZATION_SIGNATURE Handle = 0x80290129
5125 TPMAPI_E_MALFORMED_AUTHORIZATION_POLICY Handle = 0x8029012A
5126 TPMAPI_E_MALFORMED_AUTHORIZATION_OTHER Handle = 0x8029012B
5127 TPMAPI_E_SEALING_KEY_CHANGED Handle = 0x8029012C
5128 TBSIMP_E_BUFFER_TOO_SMALL Handle = 0x80290200
5129 TBSIMP_E_CLEANUP_FAILED Handle = 0x80290201
5130 TBSIMP_E_INVALID_CONTEXT_HANDLE Handle = 0x80290202
5131 TBSIMP_E_INVALID_CONTEXT_PARAM Handle = 0x80290203
5132 TBSIMP_E_TPM_ERROR Handle = 0x80290204
5133 TBSIMP_E_HASH_BAD_KEY Handle = 0x80290205
5134 TBSIMP_E_DUPLICATE_VHANDLE Handle = 0x80290206
5135 TBSIMP_E_INVALID_OUTPUT_POINTER Handle = 0x80290207
5136 TBSIMP_E_INVALID_PARAMETER Handle = 0x80290208
5137 TBSIMP_E_RPC_INIT_FAILED Handle = 0x80290209
5138 TBSIMP_E_SCHEDULER_NOT_RUNNING Handle = 0x8029020A
5139 TBSIMP_E_COMMAND_CANCELED Handle = 0x8029020B
5140 TBSIMP_E_OUT_OF_MEMORY Handle = 0x8029020C
5141 TBSIMP_E_LIST_NO_MORE_ITEMS Handle = 0x8029020D
5142 TBSIMP_E_LIST_NOT_FOUND Handle = 0x8029020E
5143 TBSIMP_E_NOT_ENOUGH_SPACE Handle = 0x8029020F
5144 TBSIMP_E_NOT_ENOUGH_TPM_CONTEXTS Handle = 0x80290210
5145 TBSIMP_E_COMMAND_FAILED Handle = 0x80290211
5146 TBSIMP_E_UNKNOWN_ORDINAL Handle = 0x80290212
5147 TBSIMP_E_RESOURCE_EXPIRED Handle = 0x80290213
5148 TBSIMP_E_INVALID_RESOURCE Handle = 0x80290214
5149 TBSIMP_E_NOTHING_TO_UNLOAD Handle = 0x80290215
5150 TBSIMP_E_HASH_TABLE_FULL Handle = 0x80290216
5151 TBSIMP_E_TOO_MANY_TBS_CONTEXTS Handle = 0x80290217
5152 TBSIMP_E_TOO_MANY_RESOURCES Handle = 0x80290218
5153 TBSIMP_E_PPI_NOT_SUPPORTED Handle = 0x80290219
5154 TBSIMP_E_TPM_INCOMPATIBLE Handle = 0x8029021A
5155 TBSIMP_E_NO_EVENT_LOG Handle = 0x8029021B
5156 TPM_E_PPI_ACPI_FAILURE Handle = 0x80290300
5157 TPM_E_PPI_USER_ABORT Handle = 0x80290301
5158 TPM_E_PPI_BIOS_FAILURE Handle = 0x80290302
5159 TPM_E_PPI_NOT_SUPPORTED Handle = 0x80290303
5160 TPM_E_PPI_BLOCKED_IN_BIOS Handle = 0x80290304
5161 TPM_E_PCP_ERROR_MASK Handle = 0x80290400
5162 TPM_E_PCP_DEVICE_NOT_READY Handle = 0x80290401
5163 TPM_E_PCP_INVALID_HANDLE Handle = 0x80290402
5164 TPM_E_PCP_INVALID_PARAMETER Handle = 0x80290403
5165 TPM_E_PCP_FLAG_NOT_SUPPORTED Handle = 0x80290404
5166 TPM_E_PCP_NOT_SUPPORTED Handle = 0x80290405
5167 TPM_E_PCP_BUFFER_TOO_SMALL Handle = 0x80290406
5168 TPM_E_PCP_INTERNAL_ERROR Handle = 0x80290407
5169 TPM_E_PCP_AUTHENTICATION_FAILED Handle = 0x80290408
5170 TPM_E_PCP_AUTHENTICATION_IGNORED Handle = 0x80290409
5171 TPM_E_PCP_POLICY_NOT_FOUND Handle = 0x8029040A
5172 TPM_E_PCP_PROFILE_NOT_FOUND Handle = 0x8029040B
5173 TPM_E_PCP_VALIDATION_FAILED Handle = 0x8029040C
5174 TPM_E_PCP_WRONG_PARENT Handle = 0x8029040E
5175 TPM_E_KEY_NOT_LOADED Handle = 0x8029040F
5176 TPM_E_NO_KEY_CERTIFICATION Handle = 0x80290410
5177 TPM_E_KEY_NOT_FINALIZED Handle = 0x80290411
5178 TPM_E_ATTESTATION_CHALLENGE_NOT_SET Handle = 0x80290412
5179 TPM_E_NOT_PCR_BOUND Handle = 0x80290413
5180 TPM_E_KEY_ALREADY_FINALIZED Handle = 0x80290414
5181 TPM_E_KEY_USAGE_POLICY_NOT_SUPPORTED Handle = 0x80290415
5182 TPM_E_KEY_USAGE_POLICY_INVALID Handle = 0x80290416
5183 TPM_E_SOFT_KEY_ERROR Handle = 0x80290417
5184 TPM_E_KEY_NOT_AUTHENTICATED Handle = 0x80290418
5185 TPM_E_PCP_KEY_NOT_AIK Handle = 0x80290419
5186 TPM_E_KEY_NOT_SIGNING_KEY Handle = 0x8029041A
5187 TPM_E_LOCKED_OUT Handle = 0x8029041B
5188 TPM_E_CLAIM_TYPE_NOT_SUPPORTED Handle = 0x8029041C
5189 TPM_E_VERSION_NOT_SUPPORTED Handle = 0x8029041D
5190 TPM_E_BUFFER_LENGTH_MISMATCH Handle = 0x8029041E
5191 TPM_E_PCP_IFX_RSA_KEY_CREATION_BLOCKED Handle = 0x8029041F
5192 TPM_E_PCP_TICKET_MISSING Handle = 0x80290420
5193 TPM_E_PCP_RAW_POLICY_NOT_SUPPORTED Handle = 0x80290421
5194 TPM_E_PCP_KEY_HANDLE_INVALIDATED Handle = 0x80290422
5195 TPM_E_PCP_UNSUPPORTED_PSS_SALT Handle = 0x40290423
5196 TPM_E_ZERO_EXHAUST_ENABLED Handle = 0x80290500
5197 PLA_E_DCS_NOT_FOUND Handle = 0x80300002
5198 PLA_E_DCS_IN_USE Handle = 0x803000AA
5199 PLA_E_TOO_MANY_FOLDERS Handle = 0x80300045
5200 PLA_E_NO_MIN_DISK Handle = 0x80300070
5201 PLA_E_DCS_ALREADY_EXISTS Handle = 0x803000B7
5202 PLA_S_PROPERTY_IGNORED Handle = 0x00300100
5203 PLA_E_PROPERTY_CONFLICT Handle = 0x80300101
5204 PLA_E_DCS_SINGLETON_REQUIRED Handle = 0x80300102
5205 PLA_E_CREDENTIALS_REQUIRED Handle = 0x80300103
5206 PLA_E_DCS_NOT_RUNNING Handle = 0x80300104
5207 PLA_E_CONFLICT_INCL_EXCL_API Handle = 0x80300105
5208 PLA_E_NETWORK_EXE_NOT_VALID Handle = 0x80300106
5209 PLA_E_EXE_ALREADY_CONFIGURED Handle = 0x80300107
5210 PLA_E_EXE_PATH_NOT_VALID Handle = 0x80300108
5211 PLA_E_DC_ALREADY_EXISTS Handle = 0x80300109
5212 PLA_E_DCS_START_WAIT_TIMEOUT Handle = 0x8030010A
5213 PLA_E_DC_START_WAIT_TIMEOUT Handle = 0x8030010B
5214 PLA_E_REPORT_WAIT_TIMEOUT Handle = 0x8030010C
5215 PLA_E_NO_DUPLICATES Handle = 0x8030010D
5216 PLA_E_EXE_FULL_PATH_REQUIRED Handle = 0x8030010E
5217 PLA_E_INVALID_SESSION_NAME Handle = 0x8030010F
5218 PLA_E_PLA_CHANNEL_NOT_ENABLED Handle = 0x80300110
5219 PLA_E_TASKSCHED_CHANNEL_NOT_ENABLED Handle = 0x80300111
5220 PLA_E_RULES_MANAGER_FAILED Handle = 0x80300112
5221 PLA_E_CABAPI_FAILURE Handle = 0x80300113
5222 FVE_E_LOCKED_VOLUME Handle = 0x80310000
5223 FVE_E_NOT_ENCRYPTED Handle = 0x80310001
5224 FVE_E_NO_TPM_BIOS Handle = 0x80310002
5225 FVE_E_NO_MBR_METRIC Handle = 0x80310003
5226 FVE_E_NO_BOOTSECTOR_METRIC Handle = 0x80310004
5227 FVE_E_NO_BOOTMGR_METRIC Handle = 0x80310005
5228 FVE_E_WRONG_BOOTMGR Handle = 0x80310006
5229 FVE_E_SECURE_KEY_REQUIRED Handle = 0x80310007
5230 FVE_E_NOT_ACTIVATED Handle = 0x80310008
5231 FVE_E_ACTION_NOT_ALLOWED Handle = 0x80310009
5232 FVE_E_AD_SCHEMA_NOT_INSTALLED Handle = 0x8031000A
5233 FVE_E_AD_INVALID_DATATYPE Handle = 0x8031000B
5234 FVE_E_AD_INVALID_DATASIZE Handle = 0x8031000C
5235 FVE_E_AD_NO_VALUES Handle = 0x8031000D
5236 FVE_E_AD_ATTR_NOT_SET Handle = 0x8031000E
5237 FVE_E_AD_GUID_NOT_FOUND Handle = 0x8031000F
5238 FVE_E_BAD_INFORMATION Handle = 0x80310010
5239 FVE_E_TOO_SMALL Handle = 0x80310011
5240 FVE_E_SYSTEM_VOLUME Handle = 0x80310012
5241 FVE_E_FAILED_WRONG_FS Handle = 0x80310013
5242 FVE_E_BAD_PARTITION_SIZE Handle = 0x80310014
5243 FVE_E_NOT_SUPPORTED Handle = 0x80310015
5244 FVE_E_BAD_DATA Handle = 0x80310016
5245 FVE_E_VOLUME_NOT_BOUND Handle = 0x80310017
5246 FVE_E_TPM_NOT_OWNED Handle = 0x80310018
5247 FVE_E_NOT_DATA_VOLUME Handle = 0x80310019
5248 FVE_E_AD_INSUFFICIENT_BUFFER Handle = 0x8031001A
5249 FVE_E_CONV_READ Handle = 0x8031001B
5250 FVE_E_CONV_WRITE Handle = 0x8031001C
5251 FVE_E_KEY_REQUIRED Handle = 0x8031001D
5252 FVE_E_CLUSTERING_NOT_SUPPORTED Handle = 0x8031001E
5253 FVE_E_VOLUME_BOUND_ALREADY Handle = 0x8031001F
5254 FVE_E_OS_NOT_PROTECTED Handle = 0x80310020
5255 FVE_E_PROTECTION_DISABLED Handle = 0x80310021
5256 FVE_E_RECOVERY_KEY_REQUIRED Handle = 0x80310022
5257 FVE_E_FOREIGN_VOLUME Handle = 0x80310023
5258 FVE_E_OVERLAPPED_UPDATE Handle = 0x80310024
5259 FVE_E_TPM_SRK_AUTH_NOT_ZERO Handle = 0x80310025
5260 FVE_E_FAILED_SECTOR_SIZE Handle = 0x80310026
5261 FVE_E_FAILED_AUTHENTICATION Handle = 0x80310027
5262 FVE_E_NOT_OS_VOLUME Handle = 0x80310028
5263 FVE_E_AUTOUNLOCK_ENABLED Handle = 0x80310029
5264 FVE_E_WRONG_BOOTSECTOR Handle = 0x8031002A
5265 FVE_E_WRONG_SYSTEM_FS Handle = 0x8031002B
5266 FVE_E_POLICY_PASSWORD_REQUIRED Handle = 0x8031002C
5267 FVE_E_CANNOT_SET_FVEK_ENCRYPTED Handle = 0x8031002D
5268 FVE_E_CANNOT_ENCRYPT_NO_KEY Handle = 0x8031002E
5269 FVE_E_BOOTABLE_CDDVD Handle = 0x80310030
5270 FVE_E_PROTECTOR_EXISTS Handle = 0x80310031
5271 FVE_E_RELATIVE_PATH Handle = 0x80310032
5272 FVE_E_PROTECTOR_NOT_FOUND Handle = 0x80310033
5273 FVE_E_INVALID_KEY_FORMAT Handle = 0x80310034
5274 FVE_E_INVALID_PASSWORD_FORMAT Handle = 0x80310035
5275 FVE_E_FIPS_RNG_CHECK_FAILED Handle = 0x80310036
5276 FVE_E_FIPS_PREVENTS_RECOVERY_PASSWORD Handle = 0x80310037
5277 FVE_E_FIPS_PREVENTS_EXTERNAL_KEY_EXPORT Handle = 0x80310038
5278 FVE_E_NOT_DECRYPTED Handle = 0x80310039
5279 FVE_E_INVALID_PROTECTOR_TYPE Handle = 0x8031003A
5280 FVE_E_NO_PROTECTORS_TO_TEST Handle = 0x8031003B
5281 FVE_E_KEYFILE_NOT_FOUND Handle = 0x8031003C
5282 FVE_E_KEYFILE_INVALID Handle = 0x8031003D
5283 FVE_E_KEYFILE_NO_VMK Handle = 0x8031003E
5284 FVE_E_TPM_DISABLED Handle = 0x8031003F
5285 FVE_E_NOT_ALLOWED_IN_SAFE_MODE Handle = 0x80310040
5286 FVE_E_TPM_INVALID_PCR Handle = 0x80310041
5287 FVE_E_TPM_NO_VMK Handle = 0x80310042
5288 FVE_E_PIN_INVALID Handle = 0x80310043
5289 FVE_E_AUTH_INVALID_APPLICATION Handle = 0x80310044
5290 FVE_E_AUTH_INVALID_CONFIG Handle = 0x80310045
5291 FVE_E_FIPS_DISABLE_PROTECTION_NOT_ALLOWED Handle = 0x80310046
5292 FVE_E_FS_NOT_EXTENDED Handle = 0x80310047
5293 FVE_E_FIRMWARE_TYPE_NOT_SUPPORTED Handle = 0x80310048
5294 FVE_E_NO_LICENSE Handle = 0x80310049
5295 FVE_E_NOT_ON_STACK Handle = 0x8031004A
5296 FVE_E_FS_MOUNTED Handle = 0x8031004B
5297 FVE_E_TOKEN_NOT_IMPERSONATED Handle = 0x8031004C
5298 FVE_E_DRY_RUN_FAILED Handle = 0x8031004D
5299 FVE_E_REBOOT_REQUIRED Handle = 0x8031004E
5300 FVE_E_DEBUGGER_ENABLED Handle = 0x8031004F
5301 FVE_E_RAW_ACCESS Handle = 0x80310050
5302 FVE_E_RAW_BLOCKED Handle = 0x80310051
5303 FVE_E_BCD_APPLICATIONS_PATH_INCORRECT Handle = 0x80310052
5304 FVE_E_NOT_ALLOWED_IN_VERSION Handle = 0x80310053
5305 FVE_E_NO_AUTOUNLOCK_MASTER_KEY Handle = 0x80310054
5306 FVE_E_MOR_FAILED Handle = 0x80310055
5307 FVE_E_HIDDEN_VOLUME Handle = 0x80310056
5308 FVE_E_TRANSIENT_STATE Handle = 0x80310057
5309 FVE_E_PUBKEY_NOT_ALLOWED Handle = 0x80310058
5310 FVE_E_VOLUME_HANDLE_OPEN Handle = 0x80310059
5311 FVE_E_NO_FEATURE_LICENSE Handle = 0x8031005A
5312 FVE_E_INVALID_STARTUP_OPTIONS Handle = 0x8031005B
5313 FVE_E_POLICY_RECOVERY_PASSWORD_NOT_ALLOWED Handle = 0x8031005C
5314 FVE_E_POLICY_RECOVERY_PASSWORD_REQUIRED Handle = 0x8031005D
5315 FVE_E_POLICY_RECOVERY_KEY_NOT_ALLOWED Handle = 0x8031005E
5316 FVE_E_POLICY_RECOVERY_KEY_REQUIRED Handle = 0x8031005F
5317 FVE_E_POLICY_STARTUP_PIN_NOT_ALLOWED Handle = 0x80310060
5318 FVE_E_POLICY_STARTUP_PIN_REQUIRED Handle = 0x80310061
5319 FVE_E_POLICY_STARTUP_KEY_NOT_ALLOWED Handle = 0x80310062
5320 FVE_E_POLICY_STARTUP_KEY_REQUIRED Handle = 0x80310063
5321 FVE_E_POLICY_STARTUP_PIN_KEY_NOT_ALLOWED Handle = 0x80310064
5322 FVE_E_POLICY_STARTUP_PIN_KEY_REQUIRED Handle = 0x80310065
5323 FVE_E_POLICY_STARTUP_TPM_NOT_ALLOWED Handle = 0x80310066
5324 FVE_E_POLICY_STARTUP_TPM_REQUIRED Handle = 0x80310067
5325 FVE_E_POLICY_INVALID_PIN_LENGTH Handle = 0x80310068
5326 FVE_E_KEY_PROTECTOR_NOT_SUPPORTED Handle = 0x80310069
5327 FVE_E_POLICY_PASSPHRASE_NOT_ALLOWED Handle = 0x8031006A
5328 FVE_E_POLICY_PASSPHRASE_REQUIRED Handle = 0x8031006B
5329 FVE_E_FIPS_PREVENTS_PASSPHRASE Handle = 0x8031006C
5330 FVE_E_OS_VOLUME_PASSPHRASE_NOT_ALLOWED Handle = 0x8031006D
5331 FVE_E_INVALID_BITLOCKER_OID Handle = 0x8031006E
5332 FVE_E_VOLUME_TOO_SMALL Handle = 0x8031006F
5333 FVE_E_DV_NOT_SUPPORTED_ON_FS Handle = 0x80310070
5334 FVE_E_DV_NOT_ALLOWED_BY_GP Handle = 0x80310071
5335 FVE_E_POLICY_USER_CERTIFICATE_NOT_ALLOWED Handle = 0x80310072
5336 FVE_E_POLICY_USER_CERTIFICATE_REQUIRED Handle = 0x80310073
5337 FVE_E_POLICY_USER_CERT_MUST_BE_HW Handle = 0x80310074
5338 FVE_E_POLICY_USER_CONFIGURE_FDV_AUTOUNLOCK_NOT_ALLOWED Handle = 0x80310075
5339 FVE_E_POLICY_USER_CONFIGURE_RDV_AUTOUNLOCK_NOT_ALLOWED Handle = 0x80310076
5340 FVE_E_POLICY_USER_CONFIGURE_RDV_NOT_ALLOWED Handle = 0x80310077
5341 FVE_E_POLICY_USER_ENABLE_RDV_NOT_ALLOWED Handle = 0x80310078
5342 FVE_E_POLICY_USER_DISABLE_RDV_NOT_ALLOWED Handle = 0x80310079
5343 FVE_E_POLICY_INVALID_PASSPHRASE_LENGTH Handle = 0x80310080
5344 FVE_E_POLICY_PASSPHRASE_TOO_SIMPLE Handle = 0x80310081
5345 FVE_E_RECOVERY_PARTITION Handle = 0x80310082
5346 FVE_E_POLICY_CONFLICT_FDV_RK_OFF_AUK_ON Handle = 0x80310083
5347 FVE_E_POLICY_CONFLICT_RDV_RK_OFF_AUK_ON Handle = 0x80310084
5348 FVE_E_NON_BITLOCKER_OID Handle = 0x80310085
5349 FVE_E_POLICY_PROHIBITS_SELFSIGNED Handle = 0x80310086
5350 FVE_E_POLICY_CONFLICT_RO_AND_STARTUP_KEY_REQUIRED Handle = 0x80310087
5351 FVE_E_CONV_RECOVERY_FAILED Handle = 0x80310088
5352 FVE_E_VIRTUALIZED_SPACE_TOO_BIG Handle = 0x80310089
5353 FVE_E_POLICY_CONFLICT_OSV_RP_OFF_ADB_ON Handle = 0x80310090
5354 FVE_E_POLICY_CONFLICT_FDV_RP_OFF_ADB_ON Handle = 0x80310091
5355 FVE_E_POLICY_CONFLICT_RDV_RP_OFF_ADB_ON Handle = 0x80310092
5356 FVE_E_NON_BITLOCKER_KU Handle = 0x80310093
5357 FVE_E_PRIVATEKEY_AUTH_FAILED Handle = 0x80310094
5358 FVE_E_REMOVAL_OF_DRA_FAILED Handle = 0x80310095
5359 FVE_E_OPERATION_NOT_SUPPORTED_ON_VISTA_VOLUME Handle = 0x80310096
5360 FVE_E_CANT_LOCK_AUTOUNLOCK_ENABLED_VOLUME Handle = 0x80310097
5361 FVE_E_FIPS_HASH_KDF_NOT_ALLOWED Handle = 0x80310098
5362 FVE_E_ENH_PIN_INVALID Handle = 0x80310099
5363 FVE_E_INVALID_PIN_CHARS Handle = 0x8031009A
5364 FVE_E_INVALID_DATUM_TYPE Handle = 0x8031009B
5365 FVE_E_EFI_ONLY Handle = 0x8031009C
5366 FVE_E_MULTIPLE_NKP_CERTS Handle = 0x8031009D
5367 FVE_E_REMOVAL_OF_NKP_FAILED Handle = 0x8031009E
5368 FVE_E_INVALID_NKP_CERT Handle = 0x8031009F
5369 FVE_E_NO_EXISTING_PIN Handle = 0x803100A0
5370 FVE_E_PROTECTOR_CHANGE_PIN_MISMATCH Handle = 0x803100A1
5371 FVE_E_PIN_PROTECTOR_CHANGE_BY_STD_USER_DISALLOWED Handle = 0x803100A2
5372 FVE_E_PROTECTOR_CHANGE_MAX_PIN_CHANGE_ATTEMPTS_REACHED Handle = 0x803100A3
5373 FVE_E_POLICY_PASSPHRASE_REQUIRES_ASCII Handle = 0x803100A4
5374 FVE_E_FULL_ENCRYPTION_NOT_ALLOWED_ON_TP_STORAGE Handle = 0x803100A5
5375 FVE_E_WIPE_NOT_ALLOWED_ON_TP_STORAGE Handle = 0x803100A6
5376 FVE_E_KEY_LENGTH_NOT_SUPPORTED_BY_EDRIVE Handle = 0x803100A7
5377 FVE_E_NO_EXISTING_PASSPHRASE Handle = 0x803100A8
5378 FVE_E_PROTECTOR_CHANGE_PASSPHRASE_MISMATCH Handle = 0x803100A9
5379 FVE_E_PASSPHRASE_TOO_LONG Handle = 0x803100AA
5380 FVE_E_NO_PASSPHRASE_WITH_TPM Handle = 0x803100AB
5381 FVE_E_NO_TPM_WITH_PASSPHRASE Handle = 0x803100AC
5382 FVE_E_NOT_ALLOWED_ON_CSV_STACK Handle = 0x803100AD
5383 FVE_E_NOT_ALLOWED_ON_CLUSTER Handle = 0x803100AE
5384 FVE_E_EDRIVE_NO_FAILOVER_TO_SW Handle = 0x803100AF
5385 FVE_E_EDRIVE_BAND_IN_USE Handle = 0x803100B0
5386 FVE_E_EDRIVE_DISALLOWED_BY_GP Handle = 0x803100B1
5387 FVE_E_EDRIVE_INCOMPATIBLE_VOLUME Handle = 0x803100B2
5388 FVE_E_NOT_ALLOWED_TO_UPGRADE_WHILE_CONVERTING Handle = 0x803100B3
5389 FVE_E_EDRIVE_DV_NOT_SUPPORTED Handle = 0x803100B4
5390 FVE_E_NO_PREBOOT_KEYBOARD_DETECTED Handle = 0x803100B5
5391 FVE_E_NO_PREBOOT_KEYBOARD_OR_WINRE_DETECTED Handle = 0x803100B6
5392 FVE_E_POLICY_REQUIRES_STARTUP_PIN_ON_TOUCH_DEVICE Handle = 0x803100B7
5393 FVE_E_POLICY_REQUIRES_RECOVERY_PASSWORD_ON_TOUCH_DEVICE Handle = 0x803100B8
5394 FVE_E_WIPE_CANCEL_NOT_APPLICABLE Handle = 0x803100B9
5395 FVE_E_SECUREBOOT_DISABLED Handle = 0x803100BA
5396 FVE_E_SECUREBOOT_CONFIGURATION_INVALID Handle = 0x803100BB
5397 FVE_E_EDRIVE_DRY_RUN_FAILED Handle = 0x803100BC
5398 FVE_E_SHADOW_COPY_PRESENT Handle = 0x803100BD
5399 FVE_E_POLICY_INVALID_ENHANCED_BCD_SETTINGS Handle = 0x803100BE
5400 FVE_E_EDRIVE_INCOMPATIBLE_FIRMWARE Handle = 0x803100BF
5401 FVE_E_PROTECTOR_CHANGE_MAX_PASSPHRASE_CHANGE_ATTEMPTS_REACHED Handle = 0x803100C0
5402 FVE_E_PASSPHRASE_PROTECTOR_CHANGE_BY_STD_USER_DISALLOWED Handle = 0x803100C1
5403 FVE_E_LIVEID_ACCOUNT_SUSPENDED Handle = 0x803100C2
5404 FVE_E_LIVEID_ACCOUNT_BLOCKED Handle = 0x803100C3
5405 FVE_E_NOT_PROVISIONED_ON_ALL_VOLUMES Handle = 0x803100C4
5406 FVE_E_DE_FIXED_DATA_NOT_SUPPORTED Handle = 0x803100C5
5407 FVE_E_DE_HARDWARE_NOT_COMPLIANT Handle = 0x803100C6
5408 FVE_E_DE_WINRE_NOT_CONFIGURED Handle = 0x803100C7
5409 FVE_E_DE_PROTECTION_SUSPENDED Handle = 0x803100C8
5410 FVE_E_DE_OS_VOLUME_NOT_PROTECTED Handle = 0x803100C9
5411 FVE_E_DE_DEVICE_LOCKEDOUT Handle = 0x803100CA
5412 FVE_E_DE_PROTECTION_NOT_YET_ENABLED Handle = 0x803100CB
5413 FVE_E_INVALID_PIN_CHARS_DETAILED Handle = 0x803100CC
5414 FVE_E_DEVICE_LOCKOUT_COUNTER_UNAVAILABLE Handle = 0x803100CD
5415 FVE_E_DEVICELOCKOUT_COUNTER_MISMATCH Handle = 0x803100CE
5416 FVE_E_BUFFER_TOO_LARGE Handle = 0x803100CF
5417 FVE_E_NO_SUCH_CAPABILITY_ON_TARGET Handle = 0x803100D0
5418 FVE_E_DE_PREVENTED_FOR_OS Handle = 0x803100D1
5419 FVE_E_DE_VOLUME_OPTED_OUT Handle = 0x803100D2
5420 FVE_E_DE_VOLUME_NOT_SUPPORTED Handle = 0x803100D3
5421 FVE_E_EOW_NOT_SUPPORTED_IN_VERSION Handle = 0x803100D4
5422 FVE_E_ADBACKUP_NOT_ENABLED Handle = 0x803100D5
5423 FVE_E_VOLUME_EXTEND_PREVENTS_EOW_DECRYPT Handle = 0x803100D6
5424 FVE_E_NOT_DE_VOLUME Handle = 0x803100D7
5425 FVE_E_PROTECTION_CANNOT_BE_DISABLED Handle = 0x803100D8
5426 FVE_E_OSV_KSR_NOT_ALLOWED Handle = 0x803100D9
5427 FVE_E_AD_BACKUP_REQUIRED_POLICY_NOT_SET_OS_DRIVE Handle = 0x803100DA
5428 FVE_E_AD_BACKUP_REQUIRED_POLICY_NOT_SET_FIXED_DRIVE Handle = 0x803100DB
5429 FVE_E_AD_BACKUP_REQUIRED_POLICY_NOT_SET_REMOVABLE_DRIVE Handle = 0x803100DC
5430 FVE_E_KEY_ROTATION_NOT_SUPPORTED Handle = 0x803100DD
5431 FVE_E_EXECUTE_REQUEST_SENT_TOO_SOON Handle = 0x803100DE
5432 FVE_E_KEY_ROTATION_NOT_ENABLED Handle = 0x803100DF
5433 FVE_E_DEVICE_NOT_JOINED Handle = 0x803100E0
5434 FWP_E_CALLOUT_NOT_FOUND Handle = 0x80320001
5435 FWP_E_CONDITION_NOT_FOUND Handle = 0x80320002
5436 FWP_E_FILTER_NOT_FOUND Handle = 0x80320003
5437 FWP_E_LAYER_NOT_FOUND Handle = 0x80320004
5438 FWP_E_PROVIDER_NOT_FOUND Handle = 0x80320005
5439 FWP_E_PROVIDER_CONTEXT_NOT_FOUND Handle = 0x80320006
5440 FWP_E_SUBLAYER_NOT_FOUND Handle = 0x80320007
5441 FWP_E_NOT_FOUND Handle = 0x80320008
5442 FWP_E_ALREADY_EXISTS Handle = 0x80320009
5443 FWP_E_IN_USE Handle = 0x8032000A
5444 FWP_E_DYNAMIC_SESSION_IN_PROGRESS Handle = 0x8032000B
5445 FWP_E_WRONG_SESSION Handle = 0x8032000C
5446 FWP_E_NO_TXN_IN_PROGRESS Handle = 0x8032000D
5447 FWP_E_TXN_IN_PROGRESS Handle = 0x8032000E
5448 FWP_E_TXN_ABORTED Handle = 0x8032000F
5449 FWP_E_SESSION_ABORTED Handle = 0x80320010
5450 FWP_E_INCOMPATIBLE_TXN Handle = 0x80320011
5451 FWP_E_TIMEOUT Handle = 0x80320012
5452 FWP_E_NET_EVENTS_DISABLED Handle = 0x80320013
5453 FWP_E_INCOMPATIBLE_LAYER Handle = 0x80320014
5454 FWP_E_KM_CLIENTS_ONLY Handle = 0x80320015
5455 FWP_E_LIFETIME_MISMATCH Handle = 0x80320016
5456 FWP_E_BUILTIN_OBJECT Handle = 0x80320017
5457 FWP_E_TOO_MANY_CALLOUTS Handle = 0x80320018
5458 FWP_E_NOTIFICATION_DROPPED Handle = 0x80320019
5459 FWP_E_TRAFFIC_MISMATCH Handle = 0x8032001A
5460 FWP_E_INCOMPATIBLE_SA_STATE Handle = 0x8032001B
5461 FWP_E_NULL_POINTER Handle = 0x8032001C
5462 FWP_E_INVALID_ENUMERATOR Handle = 0x8032001D
5463 FWP_E_INVALID_FLAGS Handle = 0x8032001E
5464 FWP_E_INVALID_NET_MASK Handle = 0x8032001F
5465 FWP_E_INVALID_RANGE Handle = 0x80320020
5466 FWP_E_INVALID_INTERVAL Handle = 0x80320021
5467 FWP_E_ZERO_LENGTH_ARRAY Handle = 0x80320022
5468 FWP_E_NULL_DISPLAY_NAME Handle = 0x80320023
5469 FWP_E_INVALID_ACTION_TYPE Handle = 0x80320024
5470 FWP_E_INVALID_WEIGHT Handle = 0x80320025
5471 FWP_E_MATCH_TYPE_MISMATCH Handle = 0x80320026
5472 FWP_E_TYPE_MISMATCH Handle = 0x80320027
5473 FWP_E_OUT_OF_BOUNDS Handle = 0x80320028
5474 FWP_E_RESERVED Handle = 0x80320029
5475 FWP_E_DUPLICATE_CONDITION Handle = 0x8032002A
5476 FWP_E_DUPLICATE_KEYMOD Handle = 0x8032002B
5477 FWP_E_ACTION_INCOMPATIBLE_WITH_LAYER Handle = 0x8032002C
5478 FWP_E_ACTION_INCOMPATIBLE_WITH_SUBLAYER Handle = 0x8032002D
5479 FWP_E_CONTEXT_INCOMPATIBLE_WITH_LAYER Handle = 0x8032002E
5480 FWP_E_CONTEXT_INCOMPATIBLE_WITH_CALLOUT Handle = 0x8032002F
5481 FWP_E_INCOMPATIBLE_AUTH_METHOD Handle = 0x80320030
5482 FWP_E_INCOMPATIBLE_DH_GROUP Handle = 0x80320031
5483 FWP_E_EM_NOT_SUPPORTED Handle = 0x80320032
5484 FWP_E_NEVER_MATCH Handle = 0x80320033
5485 FWP_E_PROVIDER_CONTEXT_MISMATCH Handle = 0x80320034
5486 FWP_E_INVALID_PARAMETER Handle = 0x80320035
5487 FWP_E_TOO_MANY_SUBLAYERS Handle = 0x80320036
5488 FWP_E_CALLOUT_NOTIFICATION_FAILED Handle = 0x80320037
5489 FWP_E_INVALID_AUTH_TRANSFORM Handle = 0x80320038
5490 FWP_E_INVALID_CIPHER_TRANSFORM Handle = 0x80320039
5491 FWP_E_INCOMPATIBLE_CIPHER_TRANSFORM Handle = 0x8032003A
5492 FWP_E_INVALID_TRANSFORM_COMBINATION Handle = 0x8032003B
5493 FWP_E_DUPLICATE_AUTH_METHOD Handle = 0x8032003C
5494 FWP_E_INVALID_TUNNEL_ENDPOINT Handle = 0x8032003D
5495 FWP_E_L2_DRIVER_NOT_READY Handle = 0x8032003E
5496 FWP_E_KEY_DICTATOR_ALREADY_REGISTERED Handle = 0x8032003F
5497 FWP_E_KEY_DICTATION_INVALID_KEYING_MATERIAL Handle = 0x80320040
5498 FWP_E_CONNECTIONS_DISABLED Handle = 0x80320041
5499 FWP_E_INVALID_DNS_NAME Handle = 0x80320042
5500 FWP_E_STILL_ON Handle = 0x80320043
5501 FWP_E_IKEEXT_NOT_RUNNING Handle = 0x80320044
5502 FWP_E_DROP_NOICMP Handle = 0x80320104
5503 WS_S_ASYNC Handle = 0x003D0000
5504 WS_S_END Handle = 0x003D0001
5505 WS_E_INVALID_FORMAT Handle = 0x803D0000
5506 WS_E_OBJECT_FAULTED Handle = 0x803D0001
5507 WS_E_NUMERIC_OVERFLOW Handle = 0x803D0002
5508 WS_E_INVALID_OPERATION Handle = 0x803D0003
5509 WS_E_OPERATION_ABORTED Handle = 0x803D0004
5510 WS_E_ENDPOINT_ACCESS_DENIED Handle = 0x803D0005
5511 WS_E_OPERATION_TIMED_OUT Handle = 0x803D0006
5512 WS_E_OPERATION_ABANDONED Handle = 0x803D0007
5513 WS_E_QUOTA_EXCEEDED Handle = 0x803D0008
5514 WS_E_NO_TRANSLATION_AVAILABLE Handle = 0x803D0009
5515 WS_E_SECURITY_VERIFICATION_FAILURE Handle = 0x803D000A
5516 WS_E_ADDRESS_IN_USE Handle = 0x803D000B
5517 WS_E_ADDRESS_NOT_AVAILABLE Handle = 0x803D000C
5518 WS_E_ENDPOINT_NOT_FOUND Handle = 0x803D000D
5519 WS_E_ENDPOINT_NOT_AVAILABLE Handle = 0x803D000E
5520 WS_E_ENDPOINT_FAILURE Handle = 0x803D000F
5521 WS_E_ENDPOINT_UNREACHABLE Handle = 0x803D0010
5522 WS_E_ENDPOINT_ACTION_NOT_SUPPORTED Handle = 0x803D0011
5523 WS_E_ENDPOINT_TOO_BUSY Handle = 0x803D0012
5524 WS_E_ENDPOINT_FAULT_RECEIVED Handle = 0x803D0013
5525 WS_E_ENDPOINT_DISCONNECTED Handle = 0x803D0014
5526 WS_E_PROXY_FAILURE Handle = 0x803D0015
5527 WS_E_PROXY_ACCESS_DENIED Handle = 0x803D0016
5528 WS_E_NOT_SUPPORTED Handle = 0x803D0017
5529 WS_E_PROXY_REQUIRES_BASIC_AUTH Handle = 0x803D0018
5530 WS_E_PROXY_REQUIRES_DIGEST_AUTH Handle = 0x803D0019
5531 WS_E_PROXY_REQUIRES_NTLM_AUTH Handle = 0x803D001A
5532 WS_E_PROXY_REQUIRES_NEGOTIATE_AUTH Handle = 0x803D001B
5533 WS_E_SERVER_REQUIRES_BASIC_AUTH Handle = 0x803D001C
5534 WS_E_SERVER_REQUIRES_DIGEST_AUTH Handle = 0x803D001D
5535 WS_E_SERVER_REQUIRES_NTLM_AUTH Handle = 0x803D001E
5536 WS_E_SERVER_REQUIRES_NEGOTIATE_AUTH Handle = 0x803D001F
5537 WS_E_INVALID_ENDPOINT_URL Handle = 0x803D0020
5538 WS_E_OTHER Handle = 0x803D0021
5539 WS_E_SECURITY_TOKEN_EXPIRED Handle = 0x803D0022
5540 WS_E_SECURITY_SYSTEM_FAILURE Handle = 0x803D0023
5541 ERROR_NDIS_INTERFACE_CLOSING syscall.Errno = 0x80340002
5542 ERROR_NDIS_BAD_VERSION syscall.Errno = 0x80340004
5543 ERROR_NDIS_BAD_CHARACTERISTICS syscall.Errno = 0x80340005
5544 ERROR_NDIS_ADAPTER_NOT_FOUND syscall.Errno = 0x80340006
5545 ERROR_NDIS_OPEN_FAILED syscall.Errno = 0x80340007
5546 ERROR_NDIS_DEVICE_FAILED syscall.Errno = 0x80340008
5547 ERROR_NDIS_MULTICAST_FULL syscall.Errno = 0x80340009
5548 ERROR_NDIS_MULTICAST_EXISTS syscall.Errno = 0x8034000A
5549 ERROR_NDIS_MULTICAST_NOT_FOUND syscall.Errno = 0x8034000B
5550 ERROR_NDIS_REQUEST_ABORTED syscall.Errno = 0x8034000C
5551 ERROR_NDIS_RESET_IN_PROGRESS syscall.Errno = 0x8034000D
5552 ERROR_NDIS_NOT_SUPPORTED syscall.Errno = 0x803400BB
5553 ERROR_NDIS_INVALID_PACKET syscall.Errno = 0x8034000F
5554 ERROR_NDIS_ADAPTER_NOT_READY syscall.Errno = 0x80340011
5555 ERROR_NDIS_INVALID_LENGTH syscall.Errno = 0x80340014
5556 ERROR_NDIS_INVALID_DATA syscall.Errno = 0x80340015
5557 ERROR_NDIS_BUFFER_TOO_SHORT syscall.Errno = 0x80340016
5558 ERROR_NDIS_INVALID_OID syscall.Errno = 0x80340017
5559 ERROR_NDIS_ADAPTER_REMOVED syscall.Errno = 0x80340018
5560 ERROR_NDIS_UNSUPPORTED_MEDIA syscall.Errno = 0x80340019
5561 ERROR_NDIS_GROUP_ADDRESS_IN_USE syscall.Errno = 0x8034001A
5562 ERROR_NDIS_FILE_NOT_FOUND syscall.Errno = 0x8034001B
5563 ERROR_NDIS_ERROR_READING_FILE syscall.Errno = 0x8034001C
5564 ERROR_NDIS_ALREADY_MAPPED syscall.Errno = 0x8034001D
5565 ERROR_NDIS_RESOURCE_CONFLICT syscall.Errno = 0x8034001E
5566 ERROR_NDIS_MEDIA_DISCONNECTED syscall.Errno = 0x8034001F
5567 ERROR_NDIS_INVALID_ADDRESS syscall.Errno = 0x80340022
5568 ERROR_NDIS_INVALID_DEVICE_REQUEST syscall.Errno = 0x80340010
5569 ERROR_NDIS_PAUSED syscall.Errno = 0x8034002A
5570 ERROR_NDIS_INTERFACE_NOT_FOUND syscall.Errno = 0x8034002B
5571 ERROR_NDIS_UNSUPPORTED_REVISION syscall.Errno = 0x8034002C
5572 ERROR_NDIS_INVALID_PORT syscall.Errno = 0x8034002D
5573 ERROR_NDIS_INVALID_PORT_STATE syscall.Errno = 0x8034002E
5574 ERROR_NDIS_LOW_POWER_STATE syscall.Errno = 0x8034002F
5575 ERROR_NDIS_REINIT_REQUIRED syscall.Errno = 0x80340030
5576 ERROR_NDIS_NO_QUEUES syscall.Errno = 0x80340031
5577 ERROR_NDIS_DOT11_AUTO_CONFIG_ENABLED syscall.Errno = 0x80342000
5578 ERROR_NDIS_DOT11_MEDIA_IN_USE syscall.Errno = 0x80342001
5579 ERROR_NDIS_DOT11_POWER_STATE_INVALID syscall.Errno = 0x80342002
5580 ERROR_NDIS_PM_WOL_PATTERN_LIST_FULL syscall.Errno = 0x80342003
5581 ERROR_NDIS_PM_PROTOCOL_OFFLOAD_LIST_FULL syscall.Errno = 0x80342004
5582 ERROR_NDIS_DOT11_AP_CHANNEL_CURRENTLY_NOT_AVAILABLE syscall.Errno = 0x80342005
5583 ERROR_NDIS_DOT11_AP_BAND_CURRENTLY_NOT_AVAILABLE syscall.Errno = 0x80342006
5584 ERROR_NDIS_DOT11_AP_CHANNEL_NOT_ALLOWED syscall.Errno = 0x80342007
5585 ERROR_NDIS_DOT11_AP_BAND_NOT_ALLOWED syscall.Errno = 0x80342008
5586 ERROR_NDIS_INDICATION_REQUIRED syscall.Errno = 0x00340001
5587 ERROR_NDIS_OFFLOAD_POLICY syscall.Errno = 0xC034100F
5588 ERROR_NDIS_OFFLOAD_CONNECTION_REJECTED syscall.Errno = 0xC0341012
5589 ERROR_NDIS_OFFLOAD_PATH_REJECTED syscall.Errno = 0xC0341013
5590 ERROR_HV_INVALID_HYPERCALL_CODE syscall.Errno = 0xC0350002
5591 ERROR_HV_INVALID_HYPERCALL_INPUT syscall.Errno = 0xC0350003
5592 ERROR_HV_INVALID_ALIGNMENT syscall.Errno = 0xC0350004
5593 ERROR_HV_INVALID_PARAMETER syscall.Errno = 0xC0350005
5594 ERROR_HV_ACCESS_DENIED syscall.Errno = 0xC0350006
5595 ERROR_HV_INVALID_PARTITION_STATE syscall.Errno = 0xC0350007
5596 ERROR_HV_OPERATION_DENIED syscall.Errno = 0xC0350008
5597 ERROR_HV_UNKNOWN_PROPERTY syscall.Errno = 0xC0350009
5598 ERROR_HV_PROPERTY_VALUE_OUT_OF_RANGE syscall.Errno = 0xC035000A
5599 ERROR_HV_INSUFFICIENT_MEMORY syscall.Errno = 0xC035000B
5600 ERROR_HV_PARTITION_TOO_DEEP syscall.Errno = 0xC035000C
5601 ERROR_HV_INVALID_PARTITION_ID syscall.Errno = 0xC035000D
5602 ERROR_HV_INVALID_VP_INDEX syscall.Errno = 0xC035000E
5603 ERROR_HV_INVALID_PORT_ID syscall.Errno = 0xC0350011
5604 ERROR_HV_INVALID_CONNECTION_ID syscall.Errno = 0xC0350012
5605 ERROR_HV_INSUFFICIENT_BUFFERS syscall.Errno = 0xC0350013
5606 ERROR_HV_NOT_ACKNOWLEDGED syscall.Errno = 0xC0350014
5607 ERROR_HV_INVALID_VP_STATE syscall.Errno = 0xC0350015
5608 ERROR_HV_ACKNOWLEDGED syscall.Errno = 0xC0350016
5609 ERROR_HV_INVALID_SAVE_RESTORE_STATE syscall.Errno = 0xC0350017
5610 ERROR_HV_INVALID_SYNIC_STATE syscall.Errno = 0xC0350018
5611 ERROR_HV_OBJECT_IN_USE syscall.Errno = 0xC0350019
5612 ERROR_HV_INVALID_PROXIMITY_DOMAIN_INFO syscall.Errno = 0xC035001A
5613 ERROR_HV_NO_DATA syscall.Errno = 0xC035001B
5614 ERROR_HV_INACTIVE syscall.Errno = 0xC035001C
5615 ERROR_HV_NO_RESOURCES syscall.Errno = 0xC035001D
5616 ERROR_HV_FEATURE_UNAVAILABLE syscall.Errno = 0xC035001E
5617 ERROR_HV_INSUFFICIENT_BUFFER syscall.Errno = 0xC0350033
5618 ERROR_HV_INSUFFICIENT_DEVICE_DOMAINS syscall.Errno = 0xC0350038
5619 ERROR_HV_CPUID_FEATURE_VALIDATION syscall.Errno = 0xC035003C
5620 ERROR_HV_CPUID_XSAVE_FEATURE_VALIDATION syscall.Errno = 0xC035003D
5621 ERROR_HV_PROCESSOR_STARTUP_TIMEOUT syscall.Errno = 0xC035003E
5622 ERROR_HV_SMX_ENABLED syscall.Errno = 0xC035003F
5623 ERROR_HV_INVALID_LP_INDEX syscall.Errno = 0xC0350041
5624 ERROR_HV_INVALID_REGISTER_VALUE syscall.Errno = 0xC0350050
5625 ERROR_HV_INVALID_VTL_STATE syscall.Errno = 0xC0350051
5626 ERROR_HV_NX_NOT_DETECTED syscall.Errno = 0xC0350055
5627 ERROR_HV_INVALID_DEVICE_ID syscall.Errno = 0xC0350057
5628 ERROR_HV_INVALID_DEVICE_STATE syscall.Errno = 0xC0350058
5629 ERROR_HV_PENDING_PAGE_REQUESTS syscall.Errno = 0x00350059
5630 ERROR_HV_PAGE_REQUEST_INVALID syscall.Errno = 0xC0350060
5631 ERROR_HV_INVALID_CPU_GROUP_ID syscall.Errno = 0xC035006F
5632 ERROR_HV_INVALID_CPU_GROUP_STATE syscall.Errno = 0xC0350070
5633 ERROR_HV_OPERATION_FAILED syscall.Errno = 0xC0350071
5634 ERROR_HV_NOT_ALLOWED_WITH_NESTED_VIRT_ACTIVE syscall.Errno = 0xC0350072
5635 ERROR_HV_INSUFFICIENT_ROOT_MEMORY syscall.Errno = 0xC0350073
5636 ERROR_HV_NOT_PRESENT syscall.Errno = 0xC0351000
5637 ERROR_VID_DUPLICATE_HANDLER syscall.Errno = 0xC0370001
5638 ERROR_VID_TOO_MANY_HANDLERS syscall.Errno = 0xC0370002
5639 ERROR_VID_QUEUE_FULL syscall.Errno = 0xC0370003
5640 ERROR_VID_HANDLER_NOT_PRESENT syscall.Errno = 0xC0370004
5641 ERROR_VID_INVALID_OBJECT_NAME syscall.Errno = 0xC0370005
5642 ERROR_VID_PARTITION_NAME_TOO_LONG syscall.Errno = 0xC0370006
5643 ERROR_VID_MESSAGE_QUEUE_NAME_TOO_LONG syscall.Errno = 0xC0370007
5644 ERROR_VID_PARTITION_ALREADY_EXISTS syscall.Errno = 0xC0370008
5645 ERROR_VID_PARTITION_DOES_NOT_EXIST syscall.Errno = 0xC0370009
5646 ERROR_VID_PARTITION_NAME_NOT_FOUND syscall.Errno = 0xC037000A
5647 ERROR_VID_MESSAGE_QUEUE_ALREADY_EXISTS syscall.Errno = 0xC037000B
5648 ERROR_VID_EXCEEDED_MBP_ENTRY_MAP_LIMIT syscall.Errno = 0xC037000C
5649 ERROR_VID_MB_STILL_REFERENCED syscall.Errno = 0xC037000D
5650 ERROR_VID_CHILD_GPA_PAGE_SET_CORRUPTED syscall.Errno = 0xC037000E
5651 ERROR_VID_INVALID_NUMA_SETTINGS syscall.Errno = 0xC037000F
5652 ERROR_VID_INVALID_NUMA_NODE_INDEX syscall.Errno = 0xC0370010
5653 ERROR_VID_NOTIFICATION_QUEUE_ALREADY_ASSOCIATED syscall.Errno = 0xC0370011
5654 ERROR_VID_INVALID_MEMORY_BLOCK_HANDLE syscall.Errno = 0xC0370012
5655 ERROR_VID_PAGE_RANGE_OVERFLOW syscall.Errno = 0xC0370013
5656 ERROR_VID_INVALID_MESSAGE_QUEUE_HANDLE syscall.Errno = 0xC0370014
5657 ERROR_VID_INVALID_GPA_RANGE_HANDLE syscall.Errno = 0xC0370015
5658 ERROR_VID_NO_MEMORY_BLOCK_NOTIFICATION_QUEUE syscall.Errno = 0xC0370016
5659 ERROR_VID_MEMORY_BLOCK_LOCK_COUNT_EXCEEDED syscall.Errno = 0xC0370017
5660 ERROR_VID_INVALID_PPM_HANDLE syscall.Errno = 0xC0370018
5661 ERROR_VID_MBPS_ARE_LOCKED syscall.Errno = 0xC0370019
5662 ERROR_VID_MESSAGE_QUEUE_CLOSED syscall.Errno = 0xC037001A
5663 ERROR_VID_VIRTUAL_PROCESSOR_LIMIT_EXCEEDED syscall.Errno = 0xC037001B
5664 ERROR_VID_STOP_PENDING syscall.Errno = 0xC037001C
5665 ERROR_VID_INVALID_PROCESSOR_STATE syscall.Errno = 0xC037001D
5666 ERROR_VID_EXCEEDED_KM_CONTEXT_COUNT_LIMIT syscall.Errno = 0xC037001E
5667 ERROR_VID_KM_INTERFACE_ALREADY_INITIALIZED syscall.Errno = 0xC037001F
5668 ERROR_VID_MB_PROPERTY_ALREADY_SET_RESET syscall.Errno = 0xC0370020
5669 ERROR_VID_MMIO_RANGE_DESTROYED syscall.Errno = 0xC0370021
5670 ERROR_VID_INVALID_CHILD_GPA_PAGE_SET syscall.Errno = 0xC0370022
5671 ERROR_VID_RESERVE_PAGE_SET_IS_BEING_USED syscall.Errno = 0xC0370023
5672 ERROR_VID_RESERVE_PAGE_SET_TOO_SMALL syscall.Errno = 0xC0370024
5673 ERROR_VID_MBP_ALREADY_LOCKED_USING_RESERVED_PAGE syscall.Errno = 0xC0370025
5674 ERROR_VID_MBP_COUNT_EXCEEDED_LIMIT syscall.Errno = 0xC0370026
5675 ERROR_VID_SAVED_STATE_CORRUPT syscall.Errno = 0xC0370027
5676 ERROR_VID_SAVED_STATE_UNRECOGNIZED_ITEM syscall.Errno = 0xC0370028
5677 ERROR_VID_SAVED_STATE_INCOMPATIBLE syscall.Errno = 0xC0370029
5678 ERROR_VID_VTL_ACCESS_DENIED syscall.Errno = 0xC037002A
5679 ERROR_VMCOMPUTE_TERMINATED_DURING_START syscall.Errno = 0xC0370100
5680 ERROR_VMCOMPUTE_IMAGE_MISMATCH syscall.Errno = 0xC0370101
5681 ERROR_VMCOMPUTE_HYPERV_NOT_INSTALLED syscall.Errno = 0xC0370102
5682 ERROR_VMCOMPUTE_OPERATION_PENDING syscall.Errno = 0xC0370103
5683 ERROR_VMCOMPUTE_TOO_MANY_NOTIFICATIONS syscall.Errno = 0xC0370104
5684 ERROR_VMCOMPUTE_INVALID_STATE syscall.Errno = 0xC0370105
5685 ERROR_VMCOMPUTE_UNEXPECTED_EXIT syscall.Errno = 0xC0370106
5686 ERROR_VMCOMPUTE_TERMINATED syscall.Errno = 0xC0370107
5687 ERROR_VMCOMPUTE_CONNECT_FAILED syscall.Errno = 0xC0370108
5688 ERROR_VMCOMPUTE_TIMEOUT syscall.Errno = 0xC0370109
5689 ERROR_VMCOMPUTE_CONNECTION_CLOSED syscall.Errno = 0xC037010A
5690 ERROR_VMCOMPUTE_UNKNOWN_MESSAGE syscall.Errno = 0xC037010B
5691 ERROR_VMCOMPUTE_UNSUPPORTED_PROTOCOL_VERSION syscall.Errno = 0xC037010C
5692 ERROR_VMCOMPUTE_INVALID_JSON syscall.Errno = 0xC037010D
5693 ERROR_VMCOMPUTE_SYSTEM_NOT_FOUND syscall.Errno = 0xC037010E
5694 ERROR_VMCOMPUTE_SYSTEM_ALREADY_EXISTS syscall.Errno = 0xC037010F
5695 ERROR_VMCOMPUTE_SYSTEM_ALREADY_STOPPED syscall.Errno = 0xC0370110
5696 ERROR_VMCOMPUTE_PROTOCOL_ERROR syscall.Errno = 0xC0370111
5697 ERROR_VMCOMPUTE_INVALID_LAYER syscall.Errno = 0xC0370112
5698 ERROR_VMCOMPUTE_WINDOWS_INSIDER_REQUIRED syscall.Errno = 0xC0370113
5699 HCS_E_TERMINATED_DURING_START Handle = 0x80370100
5700 HCS_E_IMAGE_MISMATCH Handle = 0x80370101
5701 HCS_E_HYPERV_NOT_INSTALLED Handle = 0x80370102
5702 HCS_E_INVALID_STATE Handle = 0x80370105
5703 HCS_E_UNEXPECTED_EXIT Handle = 0x80370106
5704 HCS_E_TERMINATED Handle = 0x80370107
5705 HCS_E_CONNECT_FAILED Handle = 0x80370108
5706 HCS_E_CONNECTION_TIMEOUT Handle = 0x80370109
5707 HCS_E_CONNECTION_CLOSED Handle = 0x8037010A
5708 HCS_E_UNKNOWN_MESSAGE Handle = 0x8037010B
5709 HCS_E_UNSUPPORTED_PROTOCOL_VERSION Handle = 0x8037010C
5710 HCS_E_INVALID_JSON Handle = 0x8037010D
5711 HCS_E_SYSTEM_NOT_FOUND Handle = 0x8037010E
5712 HCS_E_SYSTEM_ALREADY_EXISTS Handle = 0x8037010F
5713 HCS_E_SYSTEM_ALREADY_STOPPED Handle = 0x80370110
5714 HCS_E_PROTOCOL_ERROR Handle = 0x80370111
5715 HCS_E_INVALID_LAYER Handle = 0x80370112
5716 HCS_E_WINDOWS_INSIDER_REQUIRED Handle = 0x80370113
5717 HCS_E_SERVICE_NOT_AVAILABLE Handle = 0x80370114
5718 HCS_E_OPERATION_NOT_STARTED Handle = 0x80370115
5719 HCS_E_OPERATION_ALREADY_STARTED Handle = 0x80370116
5720 HCS_E_OPERATION_PENDING Handle = 0x80370117
5721 HCS_E_OPERATION_TIMEOUT Handle = 0x80370118
5722 HCS_E_OPERATION_SYSTEM_CALLBACK_ALREADY_SET Handle = 0x80370119
5723 HCS_E_OPERATION_RESULT_ALLOCATION_FAILED Handle = 0x8037011A
5724 HCS_E_ACCESS_DENIED Handle = 0x8037011B
5725 HCS_E_GUEST_CRITICAL_ERROR Handle = 0x8037011C
5726 ERROR_VNET_VIRTUAL_SWITCH_NAME_NOT_FOUND syscall.Errno = 0xC0370200
5727 ERROR_VID_REMOTE_NODE_PARENT_GPA_PAGES_USED syscall.Errno = 0x80370001
5728 WHV_E_UNKNOWN_CAPABILITY Handle = 0x80370300
5729 WHV_E_INSUFFICIENT_BUFFER Handle = 0x80370301
5730 WHV_E_UNKNOWN_PROPERTY Handle = 0x80370302
5731 WHV_E_UNSUPPORTED_HYPERVISOR_CONFIG Handle = 0x80370303
5732 WHV_E_INVALID_PARTITION_CONFIG Handle = 0x80370304
5733 WHV_E_GPA_RANGE_NOT_FOUND Handle = 0x80370305
5734 WHV_E_VP_ALREADY_EXISTS Handle = 0x80370306
5735 WHV_E_VP_DOES_NOT_EXIST Handle = 0x80370307
5736 WHV_E_INVALID_VP_STATE Handle = 0x80370308
5737 WHV_E_INVALID_VP_REGISTER_NAME Handle = 0x80370309
5738 ERROR_VSMB_SAVED_STATE_FILE_NOT_FOUND syscall.Errno = 0xC0370400
5739 ERROR_VSMB_SAVED_STATE_CORRUPT syscall.Errno = 0xC0370401
5740 ERROR_VOLMGR_INCOMPLETE_REGENERATION syscall.Errno = 0x80380001
5741 ERROR_VOLMGR_INCOMPLETE_DISK_MIGRATION syscall.Errno = 0x80380002
5742 ERROR_VOLMGR_DATABASE_FULL syscall.Errno = 0xC0380001
5743 ERROR_VOLMGR_DISK_CONFIGURATION_CORRUPTED syscall.Errno = 0xC0380002
5744 ERROR_VOLMGR_DISK_CONFIGURATION_NOT_IN_SYNC syscall.Errno = 0xC0380003
5745 ERROR_VOLMGR_PACK_CONFIG_UPDATE_FAILED syscall.Errno = 0xC0380004
5746 ERROR_VOLMGR_DISK_CONTAINS_NON_SIMPLE_VOLUME syscall.Errno = 0xC0380005
5747 ERROR_VOLMGR_DISK_DUPLICATE syscall.Errno = 0xC0380006
5748 ERROR_VOLMGR_DISK_DYNAMIC syscall.Errno = 0xC0380007
5749 ERROR_VOLMGR_DISK_ID_INVALID syscall.Errno = 0xC0380008
5750 ERROR_VOLMGR_DISK_INVALID syscall.Errno = 0xC0380009
5751 ERROR_VOLMGR_DISK_LAST_VOTER syscall.Errno = 0xC038000A
5752 ERROR_VOLMGR_DISK_LAYOUT_INVALID syscall.Errno = 0xC038000B
5753 ERROR_VOLMGR_DISK_LAYOUT_NON_BASIC_BETWEEN_BASIC_PARTITIONS syscall.Errno = 0xC038000C
5754 ERROR_VOLMGR_DISK_LAYOUT_NOT_CYLINDER_ALIGNED syscall.Errno = 0xC038000D
5755 ERROR_VOLMGR_DISK_LAYOUT_PARTITIONS_TOO_SMALL syscall.Errno = 0xC038000E
5756 ERROR_VOLMGR_DISK_LAYOUT_PRIMARY_BETWEEN_LOGICAL_PARTITIONS syscall.Errno = 0xC038000F
5757 ERROR_VOLMGR_DISK_LAYOUT_TOO_MANY_PARTITIONS syscall.Errno = 0xC0380010
5758 ERROR_VOLMGR_DISK_MISSING syscall.Errno = 0xC0380011
5759 ERROR_VOLMGR_DISK_NOT_EMPTY syscall.Errno = 0xC0380012
5760 ERROR_VOLMGR_DISK_NOT_ENOUGH_SPACE syscall.Errno = 0xC0380013
5761 ERROR_VOLMGR_DISK_REVECTORING_FAILED syscall.Errno = 0xC0380014
5762 ERROR_VOLMGR_DISK_SECTOR_SIZE_INVALID syscall.Errno = 0xC0380015
5763 ERROR_VOLMGR_DISK_SET_NOT_CONTAINED syscall.Errno = 0xC0380016
5764 ERROR_VOLMGR_DISK_USED_BY_MULTIPLE_MEMBERS syscall.Errno = 0xC0380017
5765 ERROR_VOLMGR_DISK_USED_BY_MULTIPLE_PLEXES syscall.Errno = 0xC0380018
5766 ERROR_VOLMGR_DYNAMIC_DISK_NOT_SUPPORTED syscall.Errno = 0xC0380019
5767 ERROR_VOLMGR_EXTENT_ALREADY_USED syscall.Errno = 0xC038001A
5768 ERROR_VOLMGR_EXTENT_NOT_CONTIGUOUS syscall.Errno = 0xC038001B
5769 ERROR_VOLMGR_EXTENT_NOT_IN_PUBLIC_REGION syscall.Errno = 0xC038001C
5770 ERROR_VOLMGR_EXTENT_NOT_SECTOR_ALIGNED syscall.Errno = 0xC038001D
5771 ERROR_VOLMGR_EXTENT_OVERLAPS_EBR_PARTITION syscall.Errno = 0xC038001E
5772 ERROR_VOLMGR_EXTENT_VOLUME_LENGTHS_DO_NOT_MATCH syscall.Errno = 0xC038001F
5773 ERROR_VOLMGR_FAULT_TOLERANT_NOT_SUPPORTED syscall.Errno = 0xC0380020
5774 ERROR_VOLMGR_INTERLEAVE_LENGTH_INVALID syscall.Errno = 0xC0380021
5775 ERROR_VOLMGR_MAXIMUM_REGISTERED_USERS syscall.Errno = 0xC0380022
5776 ERROR_VOLMGR_MEMBER_IN_SYNC syscall.Errno = 0xC0380023
5777 ERROR_VOLMGR_MEMBER_INDEX_DUPLICATE syscall.Errno = 0xC0380024
5778 ERROR_VOLMGR_MEMBER_INDEX_INVALID syscall.Errno = 0xC0380025
5779 ERROR_VOLMGR_MEMBER_MISSING syscall.Errno = 0xC0380026
5780 ERROR_VOLMGR_MEMBER_NOT_DETACHED syscall.Errno = 0xC0380027
5781 ERROR_VOLMGR_MEMBER_REGENERATING syscall.Errno = 0xC0380028
5782 ERROR_VOLMGR_ALL_DISKS_FAILED syscall.Errno = 0xC0380029
5783 ERROR_VOLMGR_NO_REGISTERED_USERS syscall.Errno = 0xC038002A
5784 ERROR_VOLMGR_NO_SUCH_USER syscall.Errno = 0xC038002B
5785 ERROR_VOLMGR_NOTIFICATION_RESET syscall.Errno = 0xC038002C
5786 ERROR_VOLMGR_NUMBER_OF_MEMBERS_INVALID syscall.Errno = 0xC038002D
5787 ERROR_VOLMGR_NUMBER_OF_PLEXES_INVALID syscall.Errno = 0xC038002E
5788 ERROR_VOLMGR_PACK_DUPLICATE syscall.Errno = 0xC038002F
5789 ERROR_VOLMGR_PACK_ID_INVALID syscall.Errno = 0xC0380030
5790 ERROR_VOLMGR_PACK_INVALID syscall.Errno = 0xC0380031
5791 ERROR_VOLMGR_PACK_NAME_INVALID syscall.Errno = 0xC0380032
5792 ERROR_VOLMGR_PACK_OFFLINE syscall.Errno = 0xC0380033
5793 ERROR_VOLMGR_PACK_HAS_QUORUM syscall.Errno = 0xC0380034
5794 ERROR_VOLMGR_PACK_WITHOUT_QUORUM syscall.Errno = 0xC0380035
5795 ERROR_VOLMGR_PARTITION_STYLE_INVALID syscall.Errno = 0xC0380036
5796 ERROR_VOLMGR_PARTITION_UPDATE_FAILED syscall.Errno = 0xC0380037
5797 ERROR_VOLMGR_PLEX_IN_SYNC syscall.Errno = 0xC0380038
5798 ERROR_VOLMGR_PLEX_INDEX_DUPLICATE syscall.Errno = 0xC0380039
5799 ERROR_VOLMGR_PLEX_INDEX_INVALID syscall.Errno = 0xC038003A
5800 ERROR_VOLMGR_PLEX_LAST_ACTIVE syscall.Errno = 0xC038003B
5801 ERROR_VOLMGR_PLEX_MISSING syscall.Errno = 0xC038003C
5802 ERROR_VOLMGR_PLEX_REGENERATING syscall.Errno = 0xC038003D
5803 ERROR_VOLMGR_PLEX_TYPE_INVALID syscall.Errno = 0xC038003E
5804 ERROR_VOLMGR_PLEX_NOT_RAID5 syscall.Errno = 0xC038003F
5805 ERROR_VOLMGR_PLEX_NOT_SIMPLE syscall.Errno = 0xC0380040
5806 ERROR_VOLMGR_STRUCTURE_SIZE_INVALID syscall.Errno = 0xC0380041
5807 ERROR_VOLMGR_TOO_MANY_NOTIFICATION_REQUESTS syscall.Errno = 0xC0380042
5808 ERROR_VOLMGR_TRANSACTION_IN_PROGRESS syscall.Errno = 0xC0380043
5809 ERROR_VOLMGR_UNEXPECTED_DISK_LAYOUT_CHANGE syscall.Errno = 0xC0380044
5810 ERROR_VOLMGR_VOLUME_CONTAINS_MISSING_DISK syscall.Errno = 0xC0380045
5811 ERROR_VOLMGR_VOLUME_ID_INVALID syscall.Errno = 0xC0380046
5812 ERROR_VOLMGR_VOLUME_LENGTH_INVALID syscall.Errno = 0xC0380047
5813 ERROR_VOLMGR_VOLUME_LENGTH_NOT_SECTOR_SIZE_MULTIPLE syscall.Errno = 0xC0380048
5814 ERROR_VOLMGR_VOLUME_NOT_MIRRORED syscall.Errno = 0xC0380049
5815 ERROR_VOLMGR_VOLUME_NOT_RETAINED syscall.Errno = 0xC038004A
5816 ERROR_VOLMGR_VOLUME_OFFLINE syscall.Errno = 0xC038004B
5817 ERROR_VOLMGR_VOLUME_RETAINED syscall.Errno = 0xC038004C
5818 ERROR_VOLMGR_NUMBER_OF_EXTENTS_INVALID syscall.Errno = 0xC038004D
5819 ERROR_VOLMGR_DIFFERENT_SECTOR_SIZE syscall.Errno = 0xC038004E
5820 ERROR_VOLMGR_BAD_BOOT_DISK syscall.Errno = 0xC038004F
5821 ERROR_VOLMGR_PACK_CONFIG_OFFLINE syscall.Errno = 0xC0380050
5822 ERROR_VOLMGR_PACK_CONFIG_ONLINE syscall.Errno = 0xC0380051
5823 ERROR_VOLMGR_NOT_PRIMARY_PACK syscall.Errno = 0xC0380052
5824 ERROR_VOLMGR_PACK_LOG_UPDATE_FAILED syscall.Errno = 0xC0380053
5825 ERROR_VOLMGR_NUMBER_OF_DISKS_IN_PLEX_INVALID syscall.Errno = 0xC0380054
5826 ERROR_VOLMGR_NUMBER_OF_DISKS_IN_MEMBER_INVALID syscall.Errno = 0xC0380055
5827 ERROR_VOLMGR_VOLUME_MIRRORED syscall.Errno = 0xC0380056
5828 ERROR_VOLMGR_PLEX_NOT_SIMPLE_SPANNED syscall.Errno = 0xC0380057
5829 ERROR_VOLMGR_NO_VALID_LOG_COPIES syscall.Errno = 0xC0380058
5830 ERROR_VOLMGR_PRIMARY_PACK_PRESENT syscall.Errno = 0xC0380059
5831 ERROR_VOLMGR_NUMBER_OF_DISKS_INVALID syscall.Errno = 0xC038005A
5832 ERROR_VOLMGR_MIRROR_NOT_SUPPORTED syscall.Errno = 0xC038005B
5833 ERROR_VOLMGR_RAID5_NOT_SUPPORTED syscall.Errno = 0xC038005C
5834 ERROR_BCD_NOT_ALL_ENTRIES_IMPORTED syscall.Errno = 0x80390001
5835 ERROR_BCD_TOO_MANY_ELEMENTS syscall.Errno = 0xC0390002
5836 ERROR_BCD_NOT_ALL_ENTRIES_SYNCHRONIZED syscall.Errno = 0x80390003
5837 ERROR_VHD_DRIVE_FOOTER_MISSING syscall.Errno = 0xC03A0001
5838 ERROR_VHD_DRIVE_FOOTER_CHECKSUM_MISMATCH syscall.Errno = 0xC03A0002
5839 ERROR_VHD_DRIVE_FOOTER_CORRUPT syscall.Errno = 0xC03A0003
5840 ERROR_VHD_FORMAT_UNKNOWN syscall.Errno = 0xC03A0004
5841 ERROR_VHD_FORMAT_UNSUPPORTED_VERSION syscall.Errno = 0xC03A0005
5842 ERROR_VHD_SPARSE_HEADER_CHECKSUM_MISMATCH syscall.Errno = 0xC03A0006
5843 ERROR_VHD_SPARSE_HEADER_UNSUPPORTED_VERSION syscall.Errno = 0xC03A0007
5844 ERROR_VHD_SPARSE_HEADER_CORRUPT syscall.Errno = 0xC03A0008
5845 ERROR_VHD_BLOCK_ALLOCATION_FAILURE syscall.Errno = 0xC03A0009
5846 ERROR_VHD_BLOCK_ALLOCATION_TABLE_CORRUPT syscall.Errno = 0xC03A000A
5847 ERROR_VHD_INVALID_BLOCK_SIZE syscall.Errno = 0xC03A000B
5848 ERROR_VHD_BITMAP_MISMATCH syscall.Errno = 0xC03A000C
5849 ERROR_VHD_PARENT_VHD_NOT_FOUND syscall.Errno = 0xC03A000D
5850 ERROR_VHD_CHILD_PARENT_ID_MISMATCH syscall.Errno = 0xC03A000E
5851 ERROR_VHD_CHILD_PARENT_TIMESTAMP_MISMATCH syscall.Errno = 0xC03A000F
5852 ERROR_VHD_METADATA_READ_FAILURE syscall.Errno = 0xC03A0010
5853 ERROR_VHD_METADATA_WRITE_FAILURE syscall.Errno = 0xC03A0011
5854 ERROR_VHD_INVALID_SIZE syscall.Errno = 0xC03A0012
5855 ERROR_VHD_INVALID_FILE_SIZE syscall.Errno = 0xC03A0013
5856 ERROR_VIRTDISK_PROVIDER_NOT_FOUND syscall.Errno = 0xC03A0014
5857 ERROR_VIRTDISK_NOT_VIRTUAL_DISK syscall.Errno = 0xC03A0015
5858 ERROR_VHD_PARENT_VHD_ACCESS_DENIED syscall.Errno = 0xC03A0016
5859 ERROR_VHD_CHILD_PARENT_SIZE_MISMATCH syscall.Errno = 0xC03A0017
5860 ERROR_VHD_DIFFERENCING_CHAIN_CYCLE_DETECTED syscall.Errno = 0xC03A0018
5861 ERROR_VHD_DIFFERENCING_CHAIN_ERROR_IN_PARENT syscall.Errno = 0xC03A0019
5862 ERROR_VIRTUAL_DISK_LIMITATION syscall.Errno = 0xC03A001A
5863 ERROR_VHD_INVALID_TYPE syscall.Errno = 0xC03A001B
5864 ERROR_VHD_INVALID_STATE syscall.Errno = 0xC03A001C
5865 ERROR_VIRTDISK_UNSUPPORTED_DISK_SECTOR_SIZE syscall.Errno = 0xC03A001D
5866 ERROR_VIRTDISK_DISK_ALREADY_OWNED syscall.Errno = 0xC03A001E
5867 ERROR_VIRTDISK_DISK_ONLINE_AND_WRITABLE syscall.Errno = 0xC03A001F
5868 ERROR_CTLOG_TRACKING_NOT_INITIALIZED syscall.Errno = 0xC03A0020
5869 ERROR_CTLOG_LOGFILE_SIZE_EXCEEDED_MAXSIZE syscall.Errno = 0xC03A0021
5870 ERROR_CTLOG_VHD_CHANGED_OFFLINE syscall.Errno = 0xC03A0022
5871 ERROR_CTLOG_INVALID_TRACKING_STATE syscall.Errno = 0xC03A0023
5872 ERROR_CTLOG_INCONSISTENT_TRACKING_FILE syscall.Errno = 0xC03A0024
5873 ERROR_VHD_RESIZE_WOULD_TRUNCATE_DATA syscall.Errno = 0xC03A0025
5874 ERROR_VHD_COULD_NOT_COMPUTE_MINIMUM_VIRTUAL_SIZE syscall.Errno = 0xC03A0026
5875 ERROR_VHD_ALREADY_AT_OR_BELOW_MINIMUM_VIRTUAL_SIZE syscall.Errno = 0xC03A0027
5876 ERROR_VHD_METADATA_FULL syscall.Errno = 0xC03A0028
5877 ERROR_VHD_INVALID_CHANGE_TRACKING_ID syscall.Errno = 0xC03A0029
5878 ERROR_VHD_CHANGE_TRACKING_DISABLED syscall.Errno = 0xC03A002A
5879 ERROR_VHD_MISSING_CHANGE_TRACKING_INFORMATION syscall.Errno = 0xC03A0030
5880 ERROR_QUERY_STORAGE_ERROR syscall.Errno = 0x803A0001
5881 HCN_E_NETWORK_NOT_FOUND Handle = 0x803B0001
5882 HCN_E_ENDPOINT_NOT_FOUND Handle = 0x803B0002
5883 HCN_E_LAYER_NOT_FOUND Handle = 0x803B0003
5884 HCN_E_SWITCH_NOT_FOUND Handle = 0x803B0004
5885 HCN_E_SUBNET_NOT_FOUND Handle = 0x803B0005
5886 HCN_E_ADAPTER_NOT_FOUND Handle = 0x803B0006
5887 HCN_E_PORT_NOT_FOUND Handle = 0x803B0007
5888 HCN_E_POLICY_NOT_FOUND Handle = 0x803B0008
5889 HCN_E_VFP_PORTSETTING_NOT_FOUND Handle = 0x803B0009
5890 HCN_E_INVALID_NETWORK Handle = 0x803B000A
5891 HCN_E_INVALID_NETWORK_TYPE Handle = 0x803B000B
5892 HCN_E_INVALID_ENDPOINT Handle = 0x803B000C
5893 HCN_E_INVALID_POLICY Handle = 0x803B000D
5894 HCN_E_INVALID_POLICY_TYPE Handle = 0x803B000E
5895 HCN_E_INVALID_REMOTE_ENDPOINT_OPERATION Handle = 0x803B000F
5896 HCN_E_NETWORK_ALREADY_EXISTS Handle = 0x803B0010
5897 HCN_E_LAYER_ALREADY_EXISTS Handle = 0x803B0011
5898 HCN_E_POLICY_ALREADY_EXISTS Handle = 0x803B0012
5899 HCN_E_PORT_ALREADY_EXISTS Handle = 0x803B0013
5900 HCN_E_ENDPOINT_ALREADY_ATTACHED Handle = 0x803B0014
5901 HCN_E_REQUEST_UNSUPPORTED Handle = 0x803B0015
5902 HCN_E_MAPPING_NOT_SUPPORTED Handle = 0x803B0016
5903 HCN_E_DEGRADED_OPERATION Handle = 0x803B0017
5904 HCN_E_SHARED_SWITCH_MODIFICATION Handle = 0x803B0018
5905 HCN_E_GUID_CONVERSION_FAILURE Handle = 0x803B0019
5906 HCN_E_REGKEY_FAILURE Handle = 0x803B001A
5907 HCN_E_INVALID_JSON Handle = 0x803B001B
5908 HCN_E_INVALID_JSON_REFERENCE Handle = 0x803B001C
5909 HCN_E_ENDPOINT_SHARING_DISABLED Handle = 0x803B001D
5910 HCN_E_INVALID_IP Handle = 0x803B001E
5911 HCN_E_SWITCH_EXTENSION_NOT_FOUND Handle = 0x803B001F
5912 HCN_E_MANAGER_STOPPED Handle = 0x803B0020
5913 GCN_E_MODULE_NOT_FOUND Handle = 0x803B0021
5914 GCN_E_NO_REQUEST_HANDLERS Handle = 0x803B0022
5915 GCN_E_REQUEST_UNSUPPORTED Handle = 0x803B0023
5916 GCN_E_RUNTIMEKEYS_FAILED Handle = 0x803B0024
5917 GCN_E_NETADAPTER_TIMEOUT Handle = 0x803B0025
5918 GCN_E_NETADAPTER_NOT_FOUND Handle = 0x803B0026
5919 GCN_E_NETCOMPARTMENT_NOT_FOUND Handle = 0x803B0027
5920 GCN_E_NETINTERFACE_NOT_FOUND Handle = 0x803B0028
5921 GCN_E_DEFAULTNAMESPACE_EXISTS Handle = 0x803B0029
5922 HCN_E_ICS_DISABLED Handle = 0x803B002A
5923 HCN_E_ENDPOINT_NAMESPACE_ALREADY_EXISTS Handle = 0x803B002B
5924 HCN_E_ENTITY_HAS_REFERENCES Handle = 0x803B002C
5925 HCN_E_INVALID_INTERNAL_PORT Handle = 0x803B002D
5926 HCN_E_NAMESPACE_ATTACH_FAILED Handle = 0x803B002E
5927 HCN_E_ADDR_INVALID_OR_RESERVED Handle = 0x803B002F
5928 SDIAG_E_CANCELLED syscall.Errno = 0x803C0100
5929 SDIAG_E_SCRIPT syscall.Errno = 0x803C0101
5930 SDIAG_E_POWERSHELL syscall.Errno = 0x803C0102
5931 SDIAG_E_MANAGEDHOST syscall.Errno = 0x803C0103
5932 SDIAG_E_NOVERIFIER syscall.Errno = 0x803C0104
5933 SDIAG_S_CANNOTRUN syscall.Errno = 0x003C0105
5934 SDIAG_E_DISABLED syscall.Errno = 0x803C0106
5935 SDIAG_E_TRUST syscall.Errno = 0x803C0107
5936 SDIAG_E_CANNOTRUN syscall.Errno = 0x803C0108
5937 SDIAG_E_VERSION syscall.Errno = 0x803C0109
5938 SDIAG_E_RESOURCE syscall.Errno = 0x803C010A
5939 SDIAG_E_ROOTCAUSE syscall.Errno = 0x803C010B
5940 WPN_E_CHANNEL_CLOSED Handle = 0x803E0100
5941 WPN_E_CHANNEL_REQUEST_NOT_COMPLETE Handle = 0x803E0101
5942 WPN_E_INVALID_APP Handle = 0x803E0102
5943 WPN_E_OUTSTANDING_CHANNEL_REQUEST Handle = 0x803E0103
5944 WPN_E_DUPLICATE_CHANNEL Handle = 0x803E0104
5945 WPN_E_PLATFORM_UNAVAILABLE Handle = 0x803E0105
5946 WPN_E_NOTIFICATION_POSTED Handle = 0x803E0106
5947 WPN_E_NOTIFICATION_HIDDEN Handle = 0x803E0107
5948 WPN_E_NOTIFICATION_NOT_POSTED Handle = 0x803E0108
5949 WPN_E_CLOUD_DISABLED Handle = 0x803E0109
5950 WPN_E_CLOUD_INCAPABLE Handle = 0x803E0110
5951 WPN_E_CLOUD_AUTH_UNAVAILABLE Handle = 0x803E011A
5952 WPN_E_CLOUD_SERVICE_UNAVAILABLE Handle = 0x803E011B
5953 WPN_E_FAILED_LOCK_SCREEN_UPDATE_INTIALIZATION Handle = 0x803E011C
5954 WPN_E_NOTIFICATION_DISABLED Handle = 0x803E0111
5955 WPN_E_NOTIFICATION_INCAPABLE Handle = 0x803E0112
5956 WPN_E_INTERNET_INCAPABLE Handle = 0x803E0113
5957 WPN_E_NOTIFICATION_TYPE_DISABLED Handle = 0x803E0114
5958 WPN_E_NOTIFICATION_SIZE Handle = 0x803E0115
5959 WPN_E_TAG_SIZE Handle = 0x803E0116
5960 WPN_E_ACCESS_DENIED Handle = 0x803E0117
5961 WPN_E_DUPLICATE_REGISTRATION Handle = 0x803E0118
5962 WPN_E_PUSH_NOTIFICATION_INCAPABLE Handle = 0x803E0119
5963 WPN_E_DEV_ID_SIZE Handle = 0x803E0120
5964 WPN_E_TAG_ALPHANUMERIC Handle = 0x803E012A
5965 WPN_E_INVALID_HTTP_STATUS_CODE Handle = 0x803E012B
5966 WPN_E_OUT_OF_SESSION Handle = 0x803E0200
5967 WPN_E_POWER_SAVE Handle = 0x803E0201
5968 WPN_E_IMAGE_NOT_FOUND_IN_CACHE Handle = 0x803E0202
5969 WPN_E_ALL_URL_NOT_COMPLETED Handle = 0x803E0203
5970 WPN_E_INVALID_CLOUD_IMAGE Handle = 0x803E0204
5971 WPN_E_NOTIFICATION_ID_MATCHED Handle = 0x803E0205
5972 WPN_E_CALLBACK_ALREADY_REGISTERED Handle = 0x803E0206
5973 WPN_E_TOAST_NOTIFICATION_DROPPED Handle = 0x803E0207
5974 WPN_E_STORAGE_LOCKED Handle = 0x803E0208
5975 WPN_E_GROUP_SIZE Handle = 0x803E0209
5976 WPN_E_GROUP_ALPHANUMERIC Handle = 0x803E020A
5977 WPN_E_CLOUD_DISABLED_FOR_APP Handle = 0x803E020B
5978 E_MBN_CONTEXT_NOT_ACTIVATED Handle = 0x80548201
5979 E_MBN_BAD_SIM Handle = 0x80548202
5980 E_MBN_DATA_CLASS_NOT_AVAILABLE Handle = 0x80548203
5981 E_MBN_INVALID_ACCESS_STRING Handle = 0x80548204
5982 E_MBN_MAX_ACTIVATED_CONTEXTS Handle = 0x80548205
5983 E_MBN_PACKET_SVC_DETACHED Handle = 0x80548206
5984 E_MBN_PROVIDER_NOT_VISIBLE Handle = 0x80548207
5985 E_MBN_RADIO_POWER_OFF Handle = 0x80548208
5986 E_MBN_SERVICE_NOT_ACTIVATED Handle = 0x80548209
5987 E_MBN_SIM_NOT_INSERTED Handle = 0x8054820A
5988 E_MBN_VOICE_CALL_IN_PROGRESS Handle = 0x8054820B
5989 E_MBN_INVALID_CACHE Handle = 0x8054820C
5990 E_MBN_NOT_REGISTERED Handle = 0x8054820D
5991 E_MBN_PROVIDERS_NOT_FOUND Handle = 0x8054820E
5992 E_MBN_PIN_NOT_SUPPORTED Handle = 0x8054820F
5993 E_MBN_PIN_REQUIRED Handle = 0x80548210
5994 E_MBN_PIN_DISABLED Handle = 0x80548211
5995 E_MBN_FAILURE Handle = 0x80548212
5996 E_MBN_INVALID_PROFILE Handle = 0x80548218
5997 E_MBN_DEFAULT_PROFILE_EXIST Handle = 0x80548219
5998 E_MBN_SMS_ENCODING_NOT_SUPPORTED Handle = 0x80548220
5999 E_MBN_SMS_FILTER_NOT_SUPPORTED Handle = 0x80548221
6000 E_MBN_SMS_INVALID_MEMORY_INDEX Handle = 0x80548222
6001 E_MBN_SMS_LANG_NOT_SUPPORTED Handle = 0x80548223
6002 E_MBN_SMS_MEMORY_FAILURE Handle = 0x80548224
6003 E_MBN_SMS_NETWORK_TIMEOUT Handle = 0x80548225
6004 E_MBN_SMS_UNKNOWN_SMSC_ADDRESS Handle = 0x80548226
6005 E_MBN_SMS_FORMAT_NOT_SUPPORTED Handle = 0x80548227
6006 E_MBN_SMS_OPERATION_NOT_ALLOWED Handle = 0x80548228
6007 E_MBN_SMS_MEMORY_FULL Handle = 0x80548229
6008 PEER_E_IPV6_NOT_INSTALLED Handle = 0x80630001
6009 PEER_E_NOT_INITIALIZED Handle = 0x80630002
6010 PEER_E_CANNOT_START_SERVICE Handle = 0x80630003
6011 PEER_E_NOT_LICENSED Handle = 0x80630004
6012 PEER_E_INVALID_GRAPH Handle = 0x80630010
6013 PEER_E_DBNAME_CHANGED Handle = 0x80630011
6014 PEER_E_DUPLICATE_GRAPH Handle = 0x80630012
6015 PEER_E_GRAPH_NOT_READY Handle = 0x80630013
6016 PEER_E_GRAPH_SHUTTING_DOWN Handle = 0x80630014
6017 PEER_E_GRAPH_IN_USE Handle = 0x80630015
6018 PEER_E_INVALID_DATABASE Handle = 0x80630016
6019 PEER_E_TOO_MANY_ATTRIBUTES Handle = 0x80630017
6020 PEER_E_CONNECTION_NOT_FOUND Handle = 0x80630103
6021 PEER_E_CONNECT_SELF Handle = 0x80630106
6022 PEER_E_ALREADY_LISTENING Handle = 0x80630107
6023 PEER_E_NODE_NOT_FOUND Handle = 0x80630108
6024 PEER_E_CONNECTION_FAILED Handle = 0x80630109
6025 PEER_E_CONNECTION_NOT_AUTHENTICATED Handle = 0x8063010A
6026 PEER_E_CONNECTION_REFUSED Handle = 0x8063010B
6027 PEER_E_CLASSIFIER_TOO_LONG Handle = 0x80630201
6028 PEER_E_TOO_MANY_IDENTITIES Handle = 0x80630202
6029 PEER_E_NO_KEY_ACCESS Handle = 0x80630203
6030 PEER_E_GROUPS_EXIST Handle = 0x80630204
6031 PEER_E_RECORD_NOT_FOUND Handle = 0x80630301
6032 PEER_E_DATABASE_ACCESSDENIED Handle = 0x80630302
6033 PEER_E_DBINITIALIZATION_FAILED Handle = 0x80630303
6034 PEER_E_MAX_RECORD_SIZE_EXCEEDED Handle = 0x80630304
6035 PEER_E_DATABASE_ALREADY_PRESENT Handle = 0x80630305
6036 PEER_E_DATABASE_NOT_PRESENT Handle = 0x80630306
6037 PEER_E_IDENTITY_NOT_FOUND Handle = 0x80630401
6038 PEER_E_EVENT_HANDLE_NOT_FOUND Handle = 0x80630501
6039 PEER_E_INVALID_SEARCH Handle = 0x80630601
6040 PEER_E_INVALID_ATTRIBUTES Handle = 0x80630602
6041 PEER_E_INVITATION_NOT_TRUSTED Handle = 0x80630701
6042 PEER_E_CHAIN_TOO_LONG Handle = 0x80630703
6043 PEER_E_INVALID_TIME_PERIOD Handle = 0x80630705
6044 PEER_E_CIRCULAR_CHAIN_DETECTED Handle = 0x80630706
6045 PEER_E_CERT_STORE_CORRUPTED Handle = 0x80630801
6046 PEER_E_NO_CLOUD Handle = 0x80631001
6047 PEER_E_CLOUD_NAME_AMBIGUOUS Handle = 0x80631005
6048 PEER_E_INVALID_RECORD Handle = 0x80632010
6049 PEER_E_NOT_AUTHORIZED Handle = 0x80632020
6050 PEER_E_PASSWORD_DOES_NOT_MEET_POLICY Handle = 0x80632021
6051 PEER_E_DEFERRED_VALIDATION Handle = 0x80632030
6052 PEER_E_INVALID_GROUP_PROPERTIES Handle = 0x80632040
6053 PEER_E_INVALID_PEER_NAME Handle = 0x80632050
6054 PEER_E_INVALID_CLASSIFIER Handle = 0x80632060
6055 PEER_E_INVALID_FRIENDLY_NAME Handle = 0x80632070
6056 PEER_E_INVALID_ROLE_PROPERTY Handle = 0x80632071
6057 PEER_E_INVALID_CLASSIFIER_PROPERTY Handle = 0x80632072
6058 PEER_E_INVALID_RECORD_EXPIRATION Handle = 0x80632080
6059 PEER_E_INVALID_CREDENTIAL_INFO Handle = 0x80632081
6060 PEER_E_INVALID_CREDENTIAL Handle = 0x80632082
6061 PEER_E_INVALID_RECORD_SIZE Handle = 0x80632083
6062 PEER_E_UNSUPPORTED_VERSION Handle = 0x80632090
6063 PEER_E_GROUP_NOT_READY Handle = 0x80632091
6064 PEER_E_GROUP_IN_USE Handle = 0x80632092
6065 PEER_E_INVALID_GROUP Handle = 0x80632093
6066 PEER_E_NO_MEMBERS_FOUND Handle = 0x80632094
6067 PEER_E_NO_MEMBER_CONNECTIONS Handle = 0x80632095
6068 PEER_E_UNABLE_TO_LISTEN Handle = 0x80632096
6069 PEER_E_IDENTITY_DELETED Handle = 0x806320A0
6070 PEER_E_SERVICE_NOT_AVAILABLE Handle = 0x806320A1
6071 PEER_E_CONTACT_NOT_FOUND Handle = 0x80636001
6072 PEER_S_GRAPH_DATA_CREATED Handle = 0x00630001
6073 PEER_S_NO_EVENT_DATA Handle = 0x00630002
6074 PEER_S_ALREADY_CONNECTED Handle = 0x00632000
6075 PEER_S_SUBSCRIPTION_EXISTS Handle = 0x00636000
6076 PEER_S_NO_CONNECTIVITY Handle = 0x00630005
6077 PEER_S_ALREADY_A_MEMBER Handle = 0x00630006
6078 PEER_E_CANNOT_CONVERT_PEER_NAME Handle = 0x80634001
6079 PEER_E_INVALID_PEER_HOST_NAME Handle = 0x80634002
6080 PEER_E_NO_MORE Handle = 0x80634003
6081 PEER_E_PNRP_DUPLICATE_PEER_NAME Handle = 0x80634005
6082 PEER_E_INVITE_CANCELLED Handle = 0x80637000
6083 PEER_E_INVITE_RESPONSE_NOT_AVAILABLE Handle = 0x80637001
6084 PEER_E_NOT_SIGNED_IN Handle = 0x80637003
6085 PEER_E_PRIVACY_DECLINED Handle = 0x80637004
6086 PEER_E_TIMEOUT Handle = 0x80637005
6087 PEER_E_INVALID_ADDRESS Handle = 0x80637007
6088 PEER_E_FW_EXCEPTION_DISABLED Handle = 0x80637008
6089 PEER_E_FW_BLOCKED_BY_POLICY Handle = 0x80637009
6090 PEER_E_FW_BLOCKED_BY_SHIELDS_UP Handle = 0x8063700A
6091 PEER_E_FW_DECLINED Handle = 0x8063700B
6092 UI_E_CREATE_FAILED Handle = 0x802A0001
6093 UI_E_SHUTDOWN_CALLED Handle = 0x802A0002
6094 UI_E_ILLEGAL_REENTRANCY Handle = 0x802A0003
6095 UI_E_OBJECT_SEALED Handle = 0x802A0004
6096 UI_E_VALUE_NOT_SET Handle = 0x802A0005
6097 UI_E_VALUE_NOT_DETERMINED Handle = 0x802A0006
6098 UI_E_INVALID_OUTPUT Handle = 0x802A0007
6099 UI_E_BOOLEAN_EXPECTED Handle = 0x802A0008
6100 UI_E_DIFFERENT_OWNER Handle = 0x802A0009
6101 UI_E_AMBIGUOUS_MATCH Handle = 0x802A000A
6102 UI_E_FP_OVERFLOW Handle = 0x802A000B
6103 UI_E_WRONG_THREAD Handle = 0x802A000C
6104 UI_E_STORYBOARD_ACTIVE Handle = 0x802A0101
6105 UI_E_STORYBOARD_NOT_PLAYING Handle = 0x802A0102
6106 UI_E_START_KEYFRAME_AFTER_END Handle = 0x802A0103
6107 UI_E_END_KEYFRAME_NOT_DETERMINED Handle = 0x802A0104
6108 UI_E_LOOPS_OVERLAP Handle = 0x802A0105
6109 UI_E_TRANSITION_ALREADY_USED Handle = 0x802A0106
6110 UI_E_TRANSITION_NOT_IN_STORYBOARD Handle = 0x802A0107
6111 UI_E_TRANSITION_ECLIPSED Handle = 0x802A0108
6112 UI_E_TIME_BEFORE_LAST_UPDATE Handle = 0x802A0109
6113 UI_E_TIMER_CLIENT_ALREADY_CONNECTED Handle = 0x802A010A
6114 UI_E_INVALID_DIMENSION Handle = 0x802A010B
6115 UI_E_PRIMITIVE_OUT_OF_BOUNDS Handle = 0x802A010C
6116 UI_E_WINDOW_CLOSED Handle = 0x802A0201
6117 E_BLUETOOTH_ATT_INVALID_HANDLE Handle = 0x80650001
6118 E_BLUETOOTH_ATT_READ_NOT_PERMITTED Handle = 0x80650002
6119 E_BLUETOOTH_ATT_WRITE_NOT_PERMITTED Handle = 0x80650003
6120 E_BLUETOOTH_ATT_INVALID_PDU Handle = 0x80650004
6121 E_BLUETOOTH_ATT_INSUFFICIENT_AUTHENTICATION Handle = 0x80650005
6122 E_BLUETOOTH_ATT_REQUEST_NOT_SUPPORTED Handle = 0x80650006
6123 E_BLUETOOTH_ATT_INVALID_OFFSET Handle = 0x80650007
6124 E_BLUETOOTH_ATT_INSUFFICIENT_AUTHORIZATION Handle = 0x80650008
6125 E_BLUETOOTH_ATT_PREPARE_QUEUE_FULL Handle = 0x80650009
6126 E_BLUETOOTH_ATT_ATTRIBUTE_NOT_FOUND Handle = 0x8065000A
6127 E_BLUETOOTH_ATT_ATTRIBUTE_NOT_LONG Handle = 0x8065000B
6128 E_BLUETOOTH_ATT_INSUFFICIENT_ENCRYPTION_KEY_SIZE Handle = 0x8065000C
6129 E_BLUETOOTH_ATT_INVALID_ATTRIBUTE_VALUE_LENGTH Handle = 0x8065000D
6130 E_BLUETOOTH_ATT_UNLIKELY Handle = 0x8065000E
6131 E_BLUETOOTH_ATT_INSUFFICIENT_ENCRYPTION Handle = 0x8065000F
6132 E_BLUETOOTH_ATT_UNSUPPORTED_GROUP_TYPE Handle = 0x80650010
6133 E_BLUETOOTH_ATT_INSUFFICIENT_RESOURCES Handle = 0x80650011
6134 E_BLUETOOTH_ATT_UNKNOWN_ERROR Handle = 0x80651000
6135 E_AUDIO_ENGINE_NODE_NOT_FOUND Handle = 0x80660001
6136 E_HDAUDIO_EMPTY_CONNECTION_LIST Handle = 0x80660002
6137 E_HDAUDIO_CONNECTION_LIST_NOT_SUPPORTED Handle = 0x80660003
6138 E_HDAUDIO_NO_LOGICAL_DEVICES_CREATED Handle = 0x80660004
6139 E_HDAUDIO_NULL_LINKED_LIST_ENTRY Handle = 0x80660005
6140 STATEREPOSITORY_E_CONCURRENCY_LOCKING_FAILURE Handle = 0x80670001
6141 STATEREPOSITORY_E_STATEMENT_INPROGRESS Handle = 0x80670002
6142 STATEREPOSITORY_E_CONFIGURATION_INVALID Handle = 0x80670003
6143 STATEREPOSITORY_E_UNKNOWN_SCHEMA_VERSION Handle = 0x80670004
6144 STATEREPOSITORY_ERROR_DICTIONARY_CORRUPTED Handle = 0x80670005
6145 STATEREPOSITORY_E_BLOCKED Handle = 0x80670006
6146 STATEREPOSITORY_E_BUSY_RETRY Handle = 0x80670007
6147 STATEREPOSITORY_E_BUSY_RECOVERY_RETRY Handle = 0x80670008
6148 STATEREPOSITORY_E_LOCKED_RETRY Handle = 0x80670009
6149 STATEREPOSITORY_E_LOCKED_SHAREDCACHE_RETRY Handle = 0x8067000A
6150 STATEREPOSITORY_E_TRANSACTION_REQUIRED Handle = 0x8067000B
6151 STATEREPOSITORY_E_BUSY_TIMEOUT_EXCEEDED Handle = 0x8067000C
6152 STATEREPOSITORY_E_BUSY_RECOVERY_TIMEOUT_EXCEEDED Handle = 0x8067000D
6153 STATEREPOSITORY_E_LOCKED_TIMEOUT_EXCEEDED Handle = 0x8067000E
6154 STATEREPOSITORY_E_LOCKED_SHAREDCACHE_TIMEOUT_EXCEEDED Handle = 0x8067000F
6155 STATEREPOSITORY_E_SERVICE_STOP_IN_PROGRESS Handle = 0x80670010
6156 STATEREPOSTORY_E_NESTED_TRANSACTION_NOT_SUPPORTED Handle = 0x80670011
6157 STATEREPOSITORY_ERROR_CACHE_CORRUPTED Handle = 0x80670012
6158 STATEREPOSITORY_TRANSACTION_CALLER_ID_CHANGED Handle = 0x00670013
6159 STATEREPOSITORY_TRANSACTION_IN_PROGRESS Handle = 0x00670014
6160 ERROR_SPACES_POOL_WAS_DELETED Handle = 0x00E70001
6161 ERROR_SPACES_FAULT_DOMAIN_TYPE_INVALID Handle = 0x80E70001
6162 ERROR_SPACES_INTERNAL_ERROR Handle = 0x80E70002
6163 ERROR_SPACES_RESILIENCY_TYPE_INVALID Handle = 0x80E70003
6164 ERROR_SPACES_DRIVE_SECTOR_SIZE_INVALID Handle = 0x80E70004
6165 ERROR_SPACES_DRIVE_REDUNDANCY_INVALID Handle = 0x80E70006
6166 ERROR_SPACES_NUMBER_OF_DATA_COPIES_INVALID Handle = 0x80E70007
6167 ERROR_SPACES_PARITY_LAYOUT_INVALID Handle = 0x80E70008
6168 ERROR_SPACES_INTERLEAVE_LENGTH_INVALID Handle = 0x80E70009
6169 ERROR_SPACES_NUMBER_OF_COLUMNS_INVALID Handle = 0x80E7000A
6170 ERROR_SPACES_NOT_ENOUGH_DRIVES Handle = 0x80E7000B
6171 ERROR_SPACES_EXTENDED_ERROR Handle = 0x80E7000C
6172 ERROR_SPACES_PROVISIONING_TYPE_INVALID Handle = 0x80E7000D
6173 ERROR_SPACES_ALLOCATION_SIZE_INVALID Handle = 0x80E7000E
6174 ERROR_SPACES_ENCLOSURE_AWARE_INVALID Handle = 0x80E7000F
6175 ERROR_SPACES_WRITE_CACHE_SIZE_INVALID Handle = 0x80E70010
6176 ERROR_SPACES_NUMBER_OF_GROUPS_INVALID Handle = 0x80E70011
6177 ERROR_SPACES_DRIVE_OPERATIONAL_STATE_INVALID Handle = 0x80E70012
6178 ERROR_SPACES_ENTRY_INCOMPLETE Handle = 0x80E70013
6179 ERROR_SPACES_ENTRY_INVALID Handle = 0x80E70014
6180 ERROR_VOLSNAP_BOOTFILE_NOT_VALID Handle = 0x80820001
6181 ERROR_VOLSNAP_ACTIVATION_TIMEOUT Handle = 0x80820002
6182 ERROR_TIERING_NOT_SUPPORTED_ON_VOLUME Handle = 0x80830001
6183 ERROR_TIERING_VOLUME_DISMOUNT_IN_PROGRESS Handle = 0x80830002
6184 ERROR_TIERING_STORAGE_TIER_NOT_FOUND Handle = 0x80830003
6185 ERROR_TIERING_INVALID_FILE_ID Handle = 0x80830004
6186 ERROR_TIERING_WRONG_CLUSTER_NODE Handle = 0x80830005
6187 ERROR_TIERING_ALREADY_PROCESSING Handle = 0x80830006
6188 ERROR_TIERING_CANNOT_PIN_OBJECT Handle = 0x80830007
6189 ERROR_TIERING_FILE_IS_NOT_PINNED Handle = 0x80830008
6190 ERROR_NOT_A_TIERED_VOLUME Handle = 0x80830009
6191 ERROR_ATTRIBUTE_NOT_PRESENT Handle = 0x8083000A
6192 ERROR_SECCORE_INVALID_COMMAND Handle = 0xC0E80000
6193 ERROR_NO_APPLICABLE_APP_LICENSES_FOUND Handle = 0xC0EA0001
6194 ERROR_CLIP_LICENSE_NOT_FOUND Handle = 0xC0EA0002
6195 ERROR_CLIP_DEVICE_LICENSE_MISSING Handle = 0xC0EA0003
6196 ERROR_CLIP_LICENSE_INVALID_SIGNATURE Handle = 0xC0EA0004
6197 ERROR_CLIP_KEYHOLDER_LICENSE_MISSING_OR_INVALID Handle = 0xC0EA0005
6198 ERROR_CLIP_LICENSE_EXPIRED Handle = 0xC0EA0006
6199 ERROR_CLIP_LICENSE_SIGNED_BY_UNKNOWN_SOURCE Handle = 0xC0EA0007
6200 ERROR_CLIP_LICENSE_NOT_SIGNED Handle = 0xC0EA0008
6201 ERROR_CLIP_LICENSE_HARDWARE_ID_OUT_OF_TOLERANCE Handle = 0xC0EA0009
6202 ERROR_CLIP_LICENSE_DEVICE_ID_MISMATCH Handle = 0xC0EA000A
6203 DXGI_STATUS_OCCLUDED Handle = 0x087A0001
6204 DXGI_STATUS_CLIPPED Handle = 0x087A0002
6205 DXGI_STATUS_NO_REDIRECTION Handle = 0x087A0004
6206 DXGI_STATUS_NO_DESKTOP_ACCESS Handle = 0x087A0005
6207 DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE Handle = 0x087A0006
6208 DXGI_STATUS_MODE_CHANGED Handle = 0x087A0007
6209 DXGI_STATUS_MODE_CHANGE_IN_PROGRESS Handle = 0x087A0008
6210 DXGI_ERROR_INVALID_CALL Handle = 0x887A0001
6211 DXGI_ERROR_NOT_FOUND Handle = 0x887A0002
6212 DXGI_ERROR_MORE_DATA Handle = 0x887A0003
6213 DXGI_ERROR_UNSUPPORTED Handle = 0x887A0004
6214 DXGI_ERROR_DEVICE_REMOVED Handle = 0x887A0005
6215 DXGI_ERROR_DEVICE_HUNG Handle = 0x887A0006
6216 DXGI_ERROR_DEVICE_RESET Handle = 0x887A0007
6217 DXGI_ERROR_WAS_STILL_DRAWING Handle = 0x887A000A
6218 DXGI_ERROR_FRAME_STATISTICS_DISJOINT Handle = 0x887A000B
6219 DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE Handle = 0x887A000C
6220 DXGI_ERROR_DRIVER_INTERNAL_ERROR Handle = 0x887A0020
6221 DXGI_ERROR_NONEXCLUSIVE Handle = 0x887A0021
6222 DXGI_ERROR_NOT_CURRENTLY_AVAILABLE Handle = 0x887A0022
6223 DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED Handle = 0x887A0023
6224 DXGI_ERROR_REMOTE_OUTOFMEMORY Handle = 0x887A0024
6225 DXGI_ERROR_ACCESS_LOST Handle = 0x887A0026
6226 DXGI_ERROR_WAIT_TIMEOUT Handle = 0x887A0027
6227 DXGI_ERROR_SESSION_DISCONNECTED Handle = 0x887A0028
6228 DXGI_ERROR_RESTRICT_TO_OUTPUT_STALE Handle = 0x887A0029
6229 DXGI_ERROR_CANNOT_PROTECT_CONTENT Handle = 0x887A002A
6230 DXGI_ERROR_ACCESS_DENIED Handle = 0x887A002B
6231 DXGI_ERROR_NAME_ALREADY_EXISTS Handle = 0x887A002C
6232 DXGI_ERROR_SDK_COMPONENT_MISSING Handle = 0x887A002D
6233 DXGI_ERROR_NOT_CURRENT Handle = 0x887A002E
6234 DXGI_ERROR_HW_PROTECTION_OUTOFMEMORY Handle = 0x887A0030
6235 DXGI_ERROR_DYNAMIC_CODE_POLICY_VIOLATION Handle = 0x887A0031
6236 DXGI_ERROR_NON_COMPOSITED_UI Handle = 0x887A0032
6237 DXGI_STATUS_UNOCCLUDED Handle = 0x087A0009
6238 DXGI_STATUS_DDA_WAS_STILL_DRAWING Handle = 0x087A000A
6239 DXGI_ERROR_MODE_CHANGE_IN_PROGRESS Handle = 0x887A0025
6240 DXGI_STATUS_PRESENT_REQUIRED Handle = 0x087A002F
6241 DXGI_ERROR_CACHE_CORRUPT Handle = 0x887A0033
6242 DXGI_ERROR_CACHE_FULL Handle = 0x887A0034
6243 DXGI_ERROR_CACHE_HASH_COLLISION Handle = 0x887A0035
6244 DXGI_ERROR_ALREADY_EXISTS Handle = 0x887A0036
6245 DXGI_DDI_ERR_WASSTILLDRAWING Handle = 0x887B0001
6246 DXGI_DDI_ERR_UNSUPPORTED Handle = 0x887B0002
6247 DXGI_DDI_ERR_NONEXCLUSIVE Handle = 0x887B0003
6248 D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS Handle = 0x88790001
6249 D3D10_ERROR_FILE_NOT_FOUND Handle = 0x88790002
6250 D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS Handle = 0x887C0001
6251 D3D11_ERROR_FILE_NOT_FOUND Handle = 0x887C0002
6252 D3D11_ERROR_TOO_MANY_UNIQUE_VIEW_OBJECTS Handle = 0x887C0003
6253 D3D11_ERROR_DEFERRED_CONTEXT_MAP_WITHOUT_INITIAL_DISCARD Handle = 0x887C0004
6254 D3D12_ERROR_ADAPTER_NOT_FOUND Handle = 0x887E0001
6255 D3D12_ERROR_DRIVER_VERSION_MISMATCH Handle = 0x887E0002
6256 D2DERR_WRONG_STATE Handle = 0x88990001
6257 D2DERR_NOT_INITIALIZED Handle = 0x88990002
6258 D2DERR_UNSUPPORTED_OPERATION Handle = 0x88990003
6259 D2DERR_SCANNER_FAILED Handle = 0x88990004
6260 D2DERR_SCREEN_ACCESS_DENIED Handle = 0x88990005
6261 D2DERR_DISPLAY_STATE_INVALID Handle = 0x88990006
6262 D2DERR_ZERO_VECTOR Handle = 0x88990007
6263 D2DERR_INTERNAL_ERROR Handle = 0x88990008
6264 D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED Handle = 0x88990009
6265 D2DERR_INVALID_CALL Handle = 0x8899000A
6266 D2DERR_NO_HARDWARE_DEVICE Handle = 0x8899000B
6267 D2DERR_RECREATE_TARGET Handle = 0x8899000C
6268 D2DERR_TOO_MANY_SHADER_ELEMENTS Handle = 0x8899000D
6269 D2DERR_SHADER_COMPILE_FAILED Handle = 0x8899000E
6270 D2DERR_MAX_TEXTURE_SIZE_EXCEEDED Handle = 0x8899000F
6271 D2DERR_UNSUPPORTED_VERSION Handle = 0x88990010
6272 D2DERR_BAD_NUMBER Handle = 0x88990011
6273 D2DERR_WRONG_FACTORY Handle = 0x88990012
6274 D2DERR_LAYER_ALREADY_IN_USE Handle = 0x88990013
6275 D2DERR_POP_CALL_DID_NOT_MATCH_PUSH Handle = 0x88990014
6276 D2DERR_WRONG_RESOURCE_DOMAIN Handle = 0x88990015
6277 D2DERR_PUSH_POP_UNBALANCED Handle = 0x88990016
6278 D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT Handle = 0x88990017
6279 D2DERR_INCOMPATIBLE_BRUSH_TYPES Handle = 0x88990018
6280 D2DERR_WIN32_ERROR Handle = 0x88990019
6281 D2DERR_TARGET_NOT_GDI_COMPATIBLE Handle = 0x8899001A
6282 D2DERR_TEXT_EFFECT_IS_WRONG_TYPE Handle = 0x8899001B
6283 D2DERR_TEXT_RENDERER_NOT_RELEASED Handle = 0x8899001C
6284 D2DERR_EXCEEDS_MAX_BITMAP_SIZE Handle = 0x8899001D
6285 D2DERR_INVALID_GRAPH_CONFIGURATION Handle = 0x8899001E
6286 D2DERR_INVALID_INTERNAL_GRAPH_CONFIGURATION Handle = 0x8899001F
6287 D2DERR_CYCLIC_GRAPH Handle = 0x88990020
6288 D2DERR_BITMAP_CANNOT_DRAW Handle = 0x88990021
6289 D2DERR_OUTSTANDING_BITMAP_REFERENCES Handle = 0x88990022
6290 D2DERR_ORIGINAL_TARGET_NOT_BOUND Handle = 0x88990023
6291 D2DERR_INVALID_TARGET Handle = 0x88990024
6292 D2DERR_BITMAP_BOUND_AS_TARGET Handle = 0x88990025
6293 D2DERR_INSUFFICIENT_DEVICE_CAPABILITIES Handle = 0x88990026
6294 D2DERR_INTERMEDIATE_TOO_LARGE Handle = 0x88990027
6295 D2DERR_EFFECT_IS_NOT_REGISTERED Handle = 0x88990028
6296 D2DERR_INVALID_PROPERTY Handle = 0x88990029
6297 D2DERR_NO_SUBPROPERTIES Handle = 0x8899002A
6298 D2DERR_PRINT_JOB_CLOSED Handle = 0x8899002B
6299 D2DERR_PRINT_FORMAT_NOT_SUPPORTED Handle = 0x8899002C
6300 D2DERR_TOO_MANY_TRANSFORM_INPUTS Handle = 0x8899002D
6301 D2DERR_INVALID_GLYPH_IMAGE Handle = 0x8899002E
6302 DWRITE_E_FILEFORMAT Handle = 0x88985000
6303 DWRITE_E_UNEXPECTED Handle = 0x88985001
6304 DWRITE_E_NOFONT Handle = 0x88985002
6305 DWRITE_E_FILENOTFOUND Handle = 0x88985003
6306 DWRITE_E_FILEACCESS Handle = 0x88985004
6307 DWRITE_E_FONTCOLLECTIONOBSOLETE Handle = 0x88985005
6308 DWRITE_E_ALREADYREGISTERED Handle = 0x88985006
6309 DWRITE_E_CACHEFORMAT Handle = 0x88985007
6310 DWRITE_E_CACHEVERSION Handle = 0x88985008
6311 DWRITE_E_UNSUPPORTEDOPERATION Handle = 0x88985009
6312 DWRITE_E_TEXTRENDERERINCOMPATIBLE Handle = 0x8898500A
6313 DWRITE_E_FLOWDIRECTIONCONFLICTS Handle = 0x8898500B
6314 DWRITE_E_NOCOLOR Handle = 0x8898500C
6315 DWRITE_E_REMOTEFONT Handle = 0x8898500D
6316 DWRITE_E_DOWNLOADCANCELLED Handle = 0x8898500E
6317 DWRITE_E_DOWNLOADFAILED Handle = 0x8898500F
6318 DWRITE_E_TOOMANYDOWNLOADS Handle = 0x88985010
6319 WINCODEC_ERR_WRONGSTATE Handle = 0x88982F04
6320 WINCODEC_ERR_VALUEOUTOFRANGE Handle = 0x88982F05
6321 WINCODEC_ERR_UNKNOWNIMAGEFORMAT Handle = 0x88982F07
6322 WINCODEC_ERR_UNSUPPORTEDVERSION Handle = 0x88982F0B
6323 WINCODEC_ERR_NOTINITIALIZED Handle = 0x88982F0C
6324 WINCODEC_ERR_ALREADYLOCKED Handle = 0x88982F0D
6325 WINCODEC_ERR_PROPERTYNOTFOUND Handle = 0x88982F40
6326 WINCODEC_ERR_PROPERTYNOTSUPPORTED Handle = 0x88982F41
6327 WINCODEC_ERR_PROPERTYSIZE Handle = 0x88982F42
6328 WINCODEC_ERR_CODECPRESENT Handle = 0x88982F43
6329 WINCODEC_ERR_CODECNOTHUMBNAIL Handle = 0x88982F44
6330 WINCODEC_ERR_PALETTEUNAVAILABLE Handle = 0x88982F45
6331 WINCODEC_ERR_CODECTOOMANYSCANLINES Handle = 0x88982F46
6332 WINCODEC_ERR_INTERNALERROR Handle = 0x88982F48
6333 WINCODEC_ERR_SOURCERECTDOESNOTMATCHDIMENSIONS Handle = 0x88982F49
6334 WINCODEC_ERR_COMPONENTNOTFOUND Handle = 0x88982F50
6335 WINCODEC_ERR_IMAGESIZEOUTOFRANGE Handle = 0x88982F51
6336 WINCODEC_ERR_TOOMUCHMETADATA Handle = 0x88982F52
6337 WINCODEC_ERR_BADIMAGE Handle = 0x88982F60
6338 WINCODEC_ERR_BADHEADER Handle = 0x88982F61
6339 WINCODEC_ERR_FRAMEMISSING Handle = 0x88982F62
6340 WINCODEC_ERR_BADMETADATAHEADER Handle = 0x88982F63
6341 WINCODEC_ERR_BADSTREAMDATA Handle = 0x88982F70
6342 WINCODEC_ERR_STREAMWRITE Handle = 0x88982F71
6343 WINCODEC_ERR_STREAMREAD Handle = 0x88982F72
6344 WINCODEC_ERR_STREAMNOTAVAILABLE Handle = 0x88982F73
6345 WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT Handle = 0x88982F80
6346 WINCODEC_ERR_UNSUPPORTEDOPERATION Handle = 0x88982F81
6347 WINCODEC_ERR_INVALIDREGISTRATION Handle = 0x88982F8A
6348 WINCODEC_ERR_COMPONENTINITIALIZEFAILURE Handle = 0x88982F8B
6349 WINCODEC_ERR_INSUFFICIENTBUFFER Handle = 0x88982F8C
6350 WINCODEC_ERR_DUPLICATEMETADATAPRESENT Handle = 0x88982F8D
6351 WINCODEC_ERR_PROPERTYUNEXPECTEDTYPE Handle = 0x88982F8E
6352 WINCODEC_ERR_UNEXPECTEDSIZE Handle = 0x88982F8F
6353 WINCODEC_ERR_INVALIDQUERYREQUEST Handle = 0x88982F90
6354 WINCODEC_ERR_UNEXPECTEDMETADATATYPE Handle = 0x88982F91
6355 WINCODEC_ERR_REQUESTONLYVALIDATMETADATAROOT Handle = 0x88982F92
6356 WINCODEC_ERR_INVALIDQUERYCHARACTER Handle = 0x88982F93
6357 WINCODEC_ERR_WIN32ERROR Handle = 0x88982F94
6358 WINCODEC_ERR_INVALIDPROGRESSIVELEVEL Handle = 0x88982F95
6359 WINCODEC_ERR_INVALIDJPEGSCANINDEX Handle = 0x88982F96
6360 MILERR_OBJECTBUSY Handle = 0x88980001
6361 MILERR_INSUFFICIENTBUFFER Handle = 0x88980002
6362 MILERR_WIN32ERROR Handle = 0x88980003
6363 MILERR_SCANNER_FAILED Handle = 0x88980004
6364 MILERR_SCREENACCESSDENIED Handle = 0x88980005
6365 MILERR_DISPLAYSTATEINVALID Handle = 0x88980006
6366 MILERR_NONINVERTIBLEMATRIX Handle = 0x88980007
6367 MILERR_ZEROVECTOR Handle = 0x88980008
6368 MILERR_TERMINATED Handle = 0x88980009
6369 MILERR_BADNUMBER Handle = 0x8898000A
6370 MILERR_INTERNALERROR Handle = 0x88980080
6371 MILERR_DISPLAYFORMATNOTSUPPORTED Handle = 0x88980084
6372 MILERR_INVALIDCALL Handle = 0x88980085
6373 MILERR_ALREADYLOCKED Handle = 0x88980086
6374 MILERR_NOTLOCKED Handle = 0x88980087
6375 MILERR_DEVICECANNOTRENDERTEXT Handle = 0x88980088
6376 MILERR_GLYPHBITMAPMISSED Handle = 0x88980089
6377 MILERR_MALFORMEDGLYPHCACHE Handle = 0x8898008A
6378 MILERR_GENERIC_IGNORE Handle = 0x8898008B
6379 MILERR_MALFORMED_GUIDELINE_DATA Handle = 0x8898008C
6380 MILERR_NO_HARDWARE_DEVICE Handle = 0x8898008D
6381 MILERR_NEED_RECREATE_AND_PRESENT Handle = 0x8898008E
6382 MILERR_ALREADY_INITIALIZED Handle = 0x8898008F
6383 MILERR_MISMATCHED_SIZE Handle = 0x88980090
6384 MILERR_NO_REDIRECTION_SURFACE_AVAILABLE Handle = 0x88980091
6385 MILERR_REMOTING_NOT_SUPPORTED Handle = 0x88980092
6386 MILERR_QUEUED_PRESENT_NOT_SUPPORTED Handle = 0x88980093
6387 MILERR_NOT_QUEUING_PRESENTS Handle = 0x88980094
6388 MILERR_NO_REDIRECTION_SURFACE_RETRY_LATER Handle = 0x88980095
6389 MILERR_TOOMANYSHADERELEMNTS Handle = 0x88980096
6390 MILERR_MROW_READLOCK_FAILED Handle = 0x88980097
6391 MILERR_MROW_UPDATE_FAILED Handle = 0x88980098
6392 MILERR_SHADER_COMPILE_FAILED Handle = 0x88980099
6393 MILERR_MAX_TEXTURE_SIZE_EXCEEDED Handle = 0x8898009A
6394 MILERR_QPC_TIME_WENT_BACKWARD Handle = 0x8898009B
6395 MILERR_DXGI_ENUMERATION_OUT_OF_SYNC Handle = 0x8898009D
6396 MILERR_ADAPTER_NOT_FOUND Handle = 0x8898009E
6397 MILERR_COLORSPACE_NOT_SUPPORTED Handle = 0x8898009F
6398 MILERR_PREFILTER_NOT_SUPPORTED Handle = 0x889800A0
6399 MILERR_DISPLAYID_ACCESS_DENIED Handle = 0x889800A1
6400 UCEERR_INVALIDPACKETHEADER Handle = 0x88980400
6401 UCEERR_UNKNOWNPACKET Handle = 0x88980401
6402 UCEERR_ILLEGALPACKET Handle = 0x88980402
6403 UCEERR_MALFORMEDPACKET Handle = 0x88980403
6404 UCEERR_ILLEGALHANDLE Handle = 0x88980404
6405 UCEERR_HANDLELOOKUPFAILED Handle = 0x88980405
6406 UCEERR_RENDERTHREADFAILURE Handle = 0x88980406
6407 UCEERR_CTXSTACKFRSTTARGETNULL Handle = 0x88980407
6408 UCEERR_CONNECTIONIDLOOKUPFAILED Handle = 0x88980408
6409 UCEERR_BLOCKSFULL Handle = 0x88980409
6410 UCEERR_MEMORYFAILURE Handle = 0x8898040A
6411 UCEERR_PACKETRECORDOUTOFRANGE Handle = 0x8898040B
6412 UCEERR_ILLEGALRECORDTYPE Handle = 0x8898040C
6413 UCEERR_OUTOFHANDLES Handle = 0x8898040D
6414 UCEERR_UNCHANGABLE_UPDATE_ATTEMPTED Handle = 0x8898040E
6415 UCEERR_NO_MULTIPLE_WORKER_THREADS Handle = 0x8898040F
6416 UCEERR_REMOTINGNOTSUPPORTED Handle = 0x88980410
6417 UCEERR_MISSINGENDCOMMAND Handle = 0x88980411
6418 UCEERR_MISSINGBEGINCOMMAND Handle = 0x88980412
6419 UCEERR_CHANNELSYNCTIMEDOUT Handle = 0x88980413
6420 UCEERR_CHANNELSYNCABANDONED Handle = 0x88980414
6421 UCEERR_UNSUPPORTEDTRANSPORTVERSION Handle = 0x88980415
6422 UCEERR_TRANSPORTUNAVAILABLE Handle = 0x88980416
6423 UCEERR_FEEDBACK_UNSUPPORTED Handle = 0x88980417
6424 UCEERR_COMMANDTRANSPORTDENIED Handle = 0x88980418
6425 UCEERR_GRAPHICSSTREAMUNAVAILABLE Handle = 0x88980419
6426 UCEERR_GRAPHICSSTREAMALREADYOPEN Handle = 0x88980420
6427 UCEERR_TRANSPORTDISCONNECTED Handle = 0x88980421
6428 UCEERR_TRANSPORTOVERLOADED Handle = 0x88980422
6429 UCEERR_PARTITION_ZOMBIED Handle = 0x88980423
6430 MILAVERR_NOCLOCK Handle = 0x88980500
6431 MILAVERR_NOMEDIATYPE Handle = 0x88980501
6432 MILAVERR_NOVIDEOMIXER Handle = 0x88980502
6433 MILAVERR_NOVIDEOPRESENTER Handle = 0x88980503
6434 MILAVERR_NOREADYFRAMES Handle = 0x88980504
6435 MILAVERR_MODULENOTLOADED Handle = 0x88980505
6436 MILAVERR_WMPFACTORYNOTREGISTERED Handle = 0x88980506
6437 MILAVERR_INVALIDWMPVERSION Handle = 0x88980507
6438 MILAVERR_INSUFFICIENTVIDEORESOURCES Handle = 0x88980508
6439 MILAVERR_VIDEOACCELERATIONNOTAVAILABLE Handle = 0x88980509
6440 MILAVERR_REQUESTEDTEXTURETOOBIG Handle = 0x8898050A
6441 MILAVERR_SEEKFAILED Handle = 0x8898050B
6442 MILAVERR_UNEXPECTEDWMPFAILURE Handle = 0x8898050C
6443 MILAVERR_MEDIAPLAYERCLOSED Handle = 0x8898050D
6444 MILAVERR_UNKNOWNHARDWAREERROR Handle = 0x8898050E
6445 MILEFFECTSERR_UNKNOWNPROPERTY Handle = 0x8898060E
6446 MILEFFECTSERR_EFFECTNOTPARTOFGROUP Handle = 0x8898060F
6447 MILEFFECTSERR_NOINPUTSOURCEATTACHED Handle = 0x88980610
6448 MILEFFECTSERR_CONNECTORNOTCONNECTED Handle = 0x88980611
6449 MILEFFECTSERR_CONNECTORNOTASSOCIATEDWITHEFFECT Handle = 0x88980612
6450 MILEFFECTSERR_RESERVED Handle = 0x88980613
6451 MILEFFECTSERR_CYCLEDETECTED Handle = 0x88980614
6452 MILEFFECTSERR_EFFECTINMORETHANONEGRAPH Handle = 0x88980615
6453 MILEFFECTSERR_EFFECTALREADYINAGRAPH Handle = 0x88980616
6454 MILEFFECTSERR_EFFECTHASNOCHILDREN Handle = 0x88980617
6455 MILEFFECTSERR_ALREADYATTACHEDTOLISTENER Handle = 0x88980618
6456 MILEFFECTSERR_NOTAFFINETRANSFORM Handle = 0x88980619
6457 MILEFFECTSERR_EMPTYBOUNDS Handle = 0x8898061A
6458 MILEFFECTSERR_OUTPUTSIZETOOLARGE Handle = 0x8898061B
6459 DWMERR_STATE_TRANSITION_FAILED Handle = 0x88980700
6460 DWMERR_THEME_FAILED Handle = 0x88980701
6461 DWMERR_CATASTROPHIC_FAILURE Handle = 0x88980702
6462 DCOMPOSITION_ERROR_WINDOW_ALREADY_COMPOSED Handle = 0x88980800
6463 DCOMPOSITION_ERROR_SURFACE_BEING_RENDERED Handle = 0x88980801
6464 DCOMPOSITION_ERROR_SURFACE_NOT_BEING_RENDERED Handle = 0x88980802
6465 ONL_E_INVALID_AUTHENTICATION_TARGET Handle = 0x80860001
6466 ONL_E_ACCESS_DENIED_BY_TOU Handle = 0x80860002
6467 ONL_E_INVALID_APPLICATION Handle = 0x80860003
6468 ONL_E_PASSWORD_UPDATE_REQUIRED Handle = 0x80860004
6469 ONL_E_ACCOUNT_UPDATE_REQUIRED Handle = 0x80860005
6470 ONL_E_FORCESIGNIN Handle = 0x80860006
6471 ONL_E_ACCOUNT_LOCKED Handle = 0x80860007
6472 ONL_E_PARENTAL_CONSENT_REQUIRED Handle = 0x80860008
6473 ONL_E_EMAIL_VERIFICATION_REQUIRED Handle = 0x80860009
6474 ONL_E_ACCOUNT_SUSPENDED_COMPROIMISE Handle = 0x8086000A
6475 ONL_E_ACCOUNT_SUSPENDED_ABUSE Handle = 0x8086000B
6476 ONL_E_ACTION_REQUIRED Handle = 0x8086000C
6477 ONL_CONNECTION_COUNT_LIMIT Handle = 0x8086000D
6478 ONL_E_CONNECTED_ACCOUNT_CAN_NOT_SIGNOUT Handle = 0x8086000E
6479 ONL_E_USER_AUTHENTICATION_REQUIRED Handle = 0x8086000F
6480 ONL_E_REQUEST_THROTTLED Handle = 0x80860010
6481 FA_E_MAX_PERSISTED_ITEMS_REACHED Handle = 0x80270220
6482 FA_E_HOMEGROUP_NOT_AVAILABLE Handle = 0x80270222
6483 E_MONITOR_RESOLUTION_TOO_LOW Handle = 0x80270250
6484 E_ELEVATED_ACTIVATION_NOT_SUPPORTED Handle = 0x80270251
6485 E_UAC_DISABLED Handle = 0x80270252
6486 E_FULL_ADMIN_NOT_SUPPORTED Handle = 0x80270253
6487 E_APPLICATION_NOT_REGISTERED Handle = 0x80270254
6488 E_MULTIPLE_EXTENSIONS_FOR_APPLICATION Handle = 0x80270255
6489 E_MULTIPLE_PACKAGES_FOR_FAMILY Handle = 0x80270256
6490 E_APPLICATION_MANAGER_NOT_RUNNING Handle = 0x80270257
6491 S_STORE_LAUNCHED_FOR_REMEDIATION Handle = 0x00270258
6492 S_APPLICATION_ACTIVATION_ERROR_HANDLED_BY_DIALOG Handle = 0x00270259
6493 E_APPLICATION_ACTIVATION_TIMED_OUT Handle = 0x8027025A
6494 E_APPLICATION_ACTIVATION_EXEC_FAILURE Handle = 0x8027025B
6495 E_APPLICATION_TEMPORARY_LICENSE_ERROR Handle = 0x8027025C
6496 E_APPLICATION_TRIAL_LICENSE_EXPIRED Handle = 0x8027025D
6497 E_SKYDRIVE_ROOT_TARGET_FILE_SYSTEM_NOT_SUPPORTED Handle = 0x80270260
6498 E_SKYDRIVE_ROOT_TARGET_OVERLAP Handle = 0x80270261
6499 E_SKYDRIVE_ROOT_TARGET_CANNOT_INDEX Handle = 0x80270262
6500 E_SKYDRIVE_FILE_NOT_UPLOADED Handle = 0x80270263
6501 E_SKYDRIVE_UPDATE_AVAILABILITY_FAIL Handle = 0x80270264
6502 E_SKYDRIVE_ROOT_TARGET_VOLUME_ROOT_NOT_SUPPORTED Handle = 0x80270265
6503 E_SYNCENGINE_FILE_SIZE_OVER_LIMIT Handle = 0x8802B001
6504 E_SYNCENGINE_FILE_SIZE_EXCEEDS_REMAINING_QUOTA Handle = 0x8802B002
6505 E_SYNCENGINE_UNSUPPORTED_FILE_NAME Handle = 0x8802B003
6506 E_SYNCENGINE_FOLDER_ITEM_COUNT_LIMIT_EXCEEDED Handle = 0x8802B004
6507 E_SYNCENGINE_FILE_SYNC_PARTNER_ERROR Handle = 0x8802B005
6508 E_SYNCENGINE_SYNC_PAUSED_BY_SERVICE Handle = 0x8802B006
6509 E_SYNCENGINE_FILE_IDENTIFIER_UNKNOWN Handle = 0x8802C002
6510 E_SYNCENGINE_SERVICE_AUTHENTICATION_FAILED Handle = 0x8802C003
6511 E_SYNCENGINE_UNKNOWN_SERVICE_ERROR Handle = 0x8802C004
6512 E_SYNCENGINE_SERVICE_RETURNED_UNEXPECTED_SIZE Handle = 0x8802C005
6513 E_SYNCENGINE_REQUEST_BLOCKED_BY_SERVICE Handle = 0x8802C006
6514 E_SYNCENGINE_REQUEST_BLOCKED_DUE_TO_CLIENT_ERROR Handle = 0x8802C007
6515 E_SYNCENGINE_FOLDER_INACCESSIBLE Handle = 0x8802D001
6516 E_SYNCENGINE_UNSUPPORTED_FOLDER_NAME Handle = 0x8802D002
6517 E_SYNCENGINE_UNSUPPORTED_MARKET Handle = 0x8802D003
6518 E_SYNCENGINE_PATH_LENGTH_LIMIT_EXCEEDED Handle = 0x8802D004
6519 E_SYNCENGINE_REMOTE_PATH_LENGTH_LIMIT_EXCEEDED Handle = 0x8802D005
6520 E_SYNCENGINE_CLIENT_UPDATE_NEEDED Handle = 0x8802D006
6521 E_SYNCENGINE_PROXY_AUTHENTICATION_REQUIRED Handle = 0x8802D007
6522 E_SYNCENGINE_STORAGE_SERVICE_PROVISIONING_FAILED Handle = 0x8802D008
6523 E_SYNCENGINE_UNSUPPORTED_REPARSE_POINT Handle = 0x8802D009
6524 E_SYNCENGINE_STORAGE_SERVICE_BLOCKED Handle = 0x8802D00A
6525 E_SYNCENGINE_FOLDER_IN_REDIRECTION Handle = 0x8802D00B
6526 EAS_E_POLICY_NOT_MANAGED_BY_OS Handle = 0x80550001
6527 EAS_E_POLICY_COMPLIANT_WITH_ACTIONS Handle = 0x80550002
6528 EAS_E_REQUESTED_POLICY_NOT_ENFORCEABLE Handle = 0x80550003
6529 EAS_E_CURRENT_USER_HAS_BLANK_PASSWORD Handle = 0x80550004
6530 EAS_E_REQUESTED_POLICY_PASSWORD_EXPIRATION_INCOMPATIBLE Handle = 0x80550005
6531 EAS_E_USER_CANNOT_CHANGE_PASSWORD Handle = 0x80550006
6532 EAS_E_ADMINS_HAVE_BLANK_PASSWORD Handle = 0x80550007
6533 EAS_E_ADMINS_CANNOT_CHANGE_PASSWORD Handle = 0x80550008
6534 EAS_E_LOCAL_CONTROLLED_USERS_CANNOT_CHANGE_PASSWORD Handle = 0x80550009
6535 EAS_E_PASSWORD_POLICY_NOT_ENFORCEABLE_FOR_CONNECTED_ADMINS Handle = 0x8055000A
6536 EAS_E_CONNECTED_ADMINS_NEED_TO_CHANGE_PASSWORD Handle = 0x8055000B
6537 EAS_E_PASSWORD_POLICY_NOT_ENFORCEABLE_FOR_CURRENT_CONNECTED_USER Handle = 0x8055000C
6538 EAS_E_CURRENT_CONNECTED_USER_NEED_TO_CHANGE_PASSWORD Handle = 0x8055000D
6539 WEB_E_UNSUPPORTED_FORMAT Handle = 0x83750001
6540 WEB_E_INVALID_XML Handle = 0x83750002
6541 WEB_E_MISSING_REQUIRED_ELEMENT Handle = 0x83750003
6542 WEB_E_MISSING_REQUIRED_ATTRIBUTE Handle = 0x83750004
6543 WEB_E_UNEXPECTED_CONTENT Handle = 0x83750005
6544 WEB_E_RESOURCE_TOO_LARGE Handle = 0x83750006
6545 WEB_E_INVALID_JSON_STRING Handle = 0x83750007
6546 WEB_E_INVALID_JSON_NUMBER Handle = 0x83750008
6547 WEB_E_JSON_VALUE_NOT_FOUND Handle = 0x83750009
6548 HTTP_E_STATUS_UNEXPECTED Handle = 0x80190001
6549 HTTP_E_STATUS_UNEXPECTED_REDIRECTION Handle = 0x80190003
6550 HTTP_E_STATUS_UNEXPECTED_CLIENT_ERROR Handle = 0x80190004
6551 HTTP_E_STATUS_UNEXPECTED_SERVER_ERROR Handle = 0x80190005
6552 HTTP_E_STATUS_AMBIGUOUS Handle = 0x8019012C
6553 HTTP_E_STATUS_MOVED Handle = 0x8019012D
6554 HTTP_E_STATUS_REDIRECT Handle = 0x8019012E
6555 HTTP_E_STATUS_REDIRECT_METHOD Handle = 0x8019012F
6556 HTTP_E_STATUS_NOT_MODIFIED Handle = 0x80190130
6557 HTTP_E_STATUS_USE_PROXY Handle = 0x80190131
6558 HTTP_E_STATUS_REDIRECT_KEEP_VERB Handle = 0x80190133
6559 HTTP_E_STATUS_BAD_REQUEST Handle = 0x80190190
6560 HTTP_E_STATUS_DENIED Handle = 0x80190191
6561 HTTP_E_STATUS_PAYMENT_REQ Handle = 0x80190192
6562 HTTP_E_STATUS_FORBIDDEN Handle = 0x80190193
6563 HTTP_E_STATUS_NOT_FOUND Handle = 0x80190194
6564 HTTP_E_STATUS_BAD_METHOD Handle = 0x80190195
6565 HTTP_E_STATUS_NONE_ACCEPTABLE Handle = 0x80190196
6566 HTTP_E_STATUS_PROXY_AUTH_REQ Handle = 0x80190197
6567 HTTP_E_STATUS_REQUEST_TIMEOUT Handle = 0x80190198
6568 HTTP_E_STATUS_CONFLICT Handle = 0x80190199
6569 HTTP_E_STATUS_GONE Handle = 0x8019019A
6570 HTTP_E_STATUS_LENGTH_REQUIRED Handle = 0x8019019B
6571 HTTP_E_STATUS_PRECOND_FAILED Handle = 0x8019019C
6572 HTTP_E_STATUS_REQUEST_TOO_LARGE Handle = 0x8019019D
6573 HTTP_E_STATUS_URI_TOO_LONG Handle = 0x8019019E
6574 HTTP_E_STATUS_UNSUPPORTED_MEDIA Handle = 0x8019019F
6575 HTTP_E_STATUS_RANGE_NOT_SATISFIABLE Handle = 0x801901A0
6576 HTTP_E_STATUS_EXPECTATION_FAILED Handle = 0x801901A1
6577 HTTP_E_STATUS_SERVER_ERROR Handle = 0x801901F4
6578 HTTP_E_STATUS_NOT_SUPPORTED Handle = 0x801901F5
6579 HTTP_E_STATUS_BAD_GATEWAY Handle = 0x801901F6
6580 HTTP_E_STATUS_SERVICE_UNAVAIL Handle = 0x801901F7
6581 HTTP_E_STATUS_GATEWAY_TIMEOUT Handle = 0x801901F8
6582 HTTP_E_STATUS_VERSION_NOT_SUP Handle = 0x801901F9
6583 E_INVALID_PROTOCOL_OPERATION Handle = 0x83760001
6584 E_INVALID_PROTOCOL_FORMAT Handle = 0x83760002
6585 E_PROTOCOL_EXTENSIONS_NOT_SUPPORTED Handle = 0x83760003
6586 E_SUBPROTOCOL_NOT_SUPPORTED Handle = 0x83760004
6587 E_PROTOCOL_VERSION_NOT_SUPPORTED Handle = 0x83760005
6588 INPUT_E_OUT_OF_ORDER Handle = 0x80400000
6589 INPUT_E_REENTRANCY Handle = 0x80400001
6590 INPUT_E_MULTIMODAL Handle = 0x80400002
6591 INPUT_E_PACKET Handle = 0x80400003
6592 INPUT_E_FRAME Handle = 0x80400004
6593 INPUT_E_HISTORY Handle = 0x80400005
6594 INPUT_E_DEVICE_INFO Handle = 0x80400006
6595 INPUT_E_TRANSFORM Handle = 0x80400007
6596 INPUT_E_DEVICE_PROPERTY Handle = 0x80400008
6597 INET_E_INVALID_URL Handle = 0x800C0002
6598 INET_E_NO_SESSION Handle = 0x800C0003
6599 INET_E_CANNOT_CONNECT Handle = 0x800C0004
6600 INET_E_RESOURCE_NOT_FOUND Handle = 0x800C0005
6601 INET_E_OBJECT_NOT_FOUND Handle = 0x800C0006
6602 INET_E_DATA_NOT_AVAILABLE Handle = 0x800C0007
6603 INET_E_DOWNLOAD_FAILURE Handle = 0x800C0008
6604 INET_E_AUTHENTICATION_REQUIRED Handle = 0x800C0009
6605 INET_E_NO_VALID_MEDIA Handle = 0x800C000A
6606 INET_E_CONNECTION_TIMEOUT Handle = 0x800C000B
6607 INET_E_INVALID_REQUEST Handle = 0x800C000C
6608 INET_E_UNKNOWN_PROTOCOL Handle = 0x800C000D
6609 INET_E_SECURITY_PROBLEM Handle = 0x800C000E
6610 INET_E_CANNOT_LOAD_DATA Handle = 0x800C000F
6611 INET_E_CANNOT_INSTANTIATE_OBJECT Handle = 0x800C0010
6612 INET_E_INVALID_CERTIFICATE Handle = 0x800C0019
6613 INET_E_REDIRECT_FAILED Handle = 0x800C0014
6614 INET_E_REDIRECT_TO_DIR Handle = 0x800C0015
6615 ERROR_DBG_CREATE_PROCESS_FAILURE_LOCKDOWN Handle = 0x80B00001
6616 ERROR_DBG_ATTACH_PROCESS_FAILURE_LOCKDOWN Handle = 0x80B00002
6617 ERROR_DBG_CONNECT_SERVER_FAILURE_LOCKDOWN Handle = 0x80B00003
6618 ERROR_DBG_START_SERVER_FAILURE_LOCKDOWN Handle = 0x80B00004
6619 ERROR_IO_PREEMPTED Handle = 0x89010001
6620 JSCRIPT_E_CANTEXECUTE Handle = 0x89020001
6621 WEP_E_NOT_PROVISIONED_ON_ALL_VOLUMES Handle = 0x88010001
6622 WEP_E_FIXED_DATA_NOT_SUPPORTED Handle = 0x88010002
6623 WEP_E_HARDWARE_NOT_COMPLIANT Handle = 0x88010003
6624 WEP_E_LOCK_NOT_CONFIGURED Handle = 0x88010004
6625 WEP_E_PROTECTION_SUSPENDED Handle = 0x88010005
6626 WEP_E_NO_LICENSE Handle = 0x88010006
6627 WEP_E_OS_NOT_PROTECTED Handle = 0x88010007
6628 WEP_E_UNEXPECTED_FAIL Handle = 0x88010008
6629 WEP_E_BUFFER_TOO_LARGE Handle = 0x88010009
6630 ERROR_SVHDX_ERROR_STORED Handle = 0xC05C0000
6631 ERROR_SVHDX_ERROR_NOT_AVAILABLE Handle = 0xC05CFF00
6632 ERROR_SVHDX_UNIT_ATTENTION_AVAILABLE Handle = 0xC05CFF01
6633 ERROR_SVHDX_UNIT_ATTENTION_CAPACITY_DATA_CHANGED Handle = 0xC05CFF02
6634 ERROR_SVHDX_UNIT_ATTENTION_RESERVATIONS_PREEMPTED Handle = 0xC05CFF03
6635 ERROR_SVHDX_UNIT_ATTENTION_RESERVATIONS_RELEASED Handle = 0xC05CFF04
6636 ERROR_SVHDX_UNIT_ATTENTION_REGISTRATIONS_PREEMPTED Handle = 0xC05CFF05
6637 ERROR_SVHDX_UNIT_ATTENTION_OPERATING_DEFINITION_CHANGED Handle = 0xC05CFF06
6638 ERROR_SVHDX_RESERVATION_CONFLICT Handle = 0xC05CFF07
6639 ERROR_SVHDX_WRONG_FILE_TYPE Handle = 0xC05CFF08
6640 ERROR_SVHDX_VERSION_MISMATCH Handle = 0xC05CFF09
6641 ERROR_VHD_SHARED Handle = 0xC05CFF0A
6642 ERROR_SVHDX_NO_INITIATOR Handle = 0xC05CFF0B
6643 ERROR_VHDSET_BACKING_STORAGE_NOT_FOUND Handle = 0xC05CFF0C
6644 ERROR_SMB_NO_PREAUTH_INTEGRITY_HASH_OVERLAP Handle = 0xC05D0000
6645 ERROR_SMB_BAD_CLUSTER_DIALECT Handle = 0xC05D0001
6646 WININET_E_OUT_OF_HANDLES Handle = 0x80072EE1
6647 WININET_E_TIMEOUT Handle = 0x80072EE2
6648 WININET_E_EXTENDED_ERROR Handle = 0x80072EE3
6649 WININET_E_INTERNAL_ERROR Handle = 0x80072EE4
6650 WININET_E_INVALID_URL Handle = 0x80072EE5
6651 WININET_E_UNRECOGNIZED_SCHEME Handle = 0x80072EE6
6652 WININET_E_NAME_NOT_RESOLVED Handle = 0x80072EE7
6653 WININET_E_PROTOCOL_NOT_FOUND Handle = 0x80072EE8
6654 WININET_E_INVALID_OPTION Handle = 0x80072EE9
6655 WININET_E_BAD_OPTION_LENGTH Handle = 0x80072EEA
6656 WININET_E_OPTION_NOT_SETTABLE Handle = 0x80072EEB
6657 WININET_E_SHUTDOWN Handle = 0x80072EEC
6658 WININET_E_INCORRECT_USER_NAME Handle = 0x80072EED
6659 WININET_E_INCORRECT_PASSWORD Handle = 0x80072EEE
6660 WININET_E_LOGIN_FAILURE Handle = 0x80072EEF
6661 WININET_E_INVALID_OPERATION Handle = 0x80072EF0
6662 WININET_E_OPERATION_CANCELLED Handle = 0x80072EF1
6663 WININET_E_INCORRECT_HANDLE_TYPE Handle = 0x80072EF2
6664 WININET_E_INCORRECT_HANDLE_STATE Handle = 0x80072EF3
6665 WININET_E_NOT_PROXY_REQUEST Handle = 0x80072EF4
6666 WININET_E_REGISTRY_VALUE_NOT_FOUND Handle = 0x80072EF5
6667 WININET_E_BAD_REGISTRY_PARAMETER Handle = 0x80072EF6
6668 WININET_E_NO_DIRECT_ACCESS Handle = 0x80072EF7
6669 WININET_E_NO_CONTEXT Handle = 0x80072EF8
6670 WININET_E_NO_CALLBACK Handle = 0x80072EF9
6671 WININET_E_REQUEST_PENDING Handle = 0x80072EFA
6672 WININET_E_INCORRECT_FORMAT Handle = 0x80072EFB
6673 WININET_E_ITEM_NOT_FOUND Handle = 0x80072EFC
6674 WININET_E_CANNOT_CONNECT Handle = 0x80072EFD
6675 WININET_E_CONNECTION_ABORTED Handle = 0x80072EFE
6676 WININET_E_CONNECTION_RESET Handle = 0x80072EFF
6677 WININET_E_FORCE_RETRY Handle = 0x80072F00
6678 WININET_E_INVALID_PROXY_REQUEST Handle = 0x80072F01
6679 WININET_E_NEED_UI Handle = 0x80072F02
6680 WININET_E_HANDLE_EXISTS Handle = 0x80072F04
6681 WININET_E_SEC_CERT_DATE_INVALID Handle = 0x80072F05
6682 WININET_E_SEC_CERT_CN_INVALID Handle = 0x80072F06
6683 WININET_E_HTTP_TO_HTTPS_ON_REDIR Handle = 0x80072F07
6684 WININET_E_HTTPS_TO_HTTP_ON_REDIR Handle = 0x80072F08
6685 WININET_E_MIXED_SECURITY Handle = 0x80072F09
6686 WININET_E_CHG_POST_IS_NON_SECURE Handle = 0x80072F0A
6687 WININET_E_POST_IS_NON_SECURE Handle = 0x80072F0B
6688 WININET_E_CLIENT_AUTH_CERT_NEEDED Handle = 0x80072F0C
6689 WININET_E_INVALID_CA Handle = 0x80072F0D
6690 WININET_E_CLIENT_AUTH_NOT_SETUP Handle = 0x80072F0E
6691 WININET_E_ASYNC_THREAD_FAILED Handle = 0x80072F0F
6692 WININET_E_REDIRECT_SCHEME_CHANGE Handle = 0x80072F10
6693 WININET_E_DIALOG_PENDING Handle = 0x80072F11
6694 WININET_E_RETRY_DIALOG Handle = 0x80072F12
6695 WININET_E_NO_NEW_CONTAINERS Handle = 0x80072F13
6696 WININET_E_HTTPS_HTTP_SUBMIT_REDIR Handle = 0x80072F14
6697 WININET_E_SEC_CERT_ERRORS Handle = 0x80072F17
6698 WININET_E_SEC_CERT_REV_FAILED Handle = 0x80072F19
6699 WININET_E_HEADER_NOT_FOUND Handle = 0x80072F76
6700 WININET_E_DOWNLEVEL_SERVER Handle = 0x80072F77
6701 WININET_E_INVALID_SERVER_RESPONSE Handle = 0x80072F78
6702 WININET_E_INVALID_HEADER Handle = 0x80072F79
6703 WININET_E_INVALID_QUERY_REQUEST Handle = 0x80072F7A
6704 WININET_E_HEADER_ALREADY_EXISTS Handle = 0x80072F7B
6705 WININET_E_REDIRECT_FAILED Handle = 0x80072F7C
6706 WININET_E_SECURITY_CHANNEL_ERROR Handle = 0x80072F7D
6707 WININET_E_UNABLE_TO_CACHE_FILE Handle = 0x80072F7E
6708 WININET_E_TCPIP_NOT_INSTALLED Handle = 0x80072F7F
6709 WININET_E_DISCONNECTED Handle = 0x80072F83
6710 WININET_E_SERVER_UNREACHABLE Handle = 0x80072F84
6711 WININET_E_PROXY_SERVER_UNREACHABLE Handle = 0x80072F85
6712 WININET_E_BAD_AUTO_PROXY_SCRIPT Handle = 0x80072F86
6713 WININET_E_UNABLE_TO_DOWNLOAD_SCRIPT Handle = 0x80072F87
6714 WININET_E_SEC_INVALID_CERT Handle = 0x80072F89
6715 WININET_E_SEC_CERT_REVOKED Handle = 0x80072F8A
6716 WININET_E_FAILED_DUETOSECURITYCHECK Handle = 0x80072F8B
6717 WININET_E_NOT_INITIALIZED Handle = 0x80072F8C
6718 WININET_E_LOGIN_FAILURE_DISPLAY_ENTITY_BODY Handle = 0x80072F8E
6719 WININET_E_DECODING_FAILED Handle = 0x80072F8F
6720 WININET_E_NOT_REDIRECTED Handle = 0x80072F80
6721 WININET_E_COOKIE_NEEDS_CONFIRMATION Handle = 0x80072F81
6722 WININET_E_COOKIE_DECLINED Handle = 0x80072F82
6723 WININET_E_REDIRECT_NEEDS_CONFIRMATION Handle = 0x80072F88
6724 SQLITE_E_ERROR Handle = 0x87AF0001
6725 SQLITE_E_INTERNAL Handle = 0x87AF0002
6726 SQLITE_E_PERM Handle = 0x87AF0003
6727 SQLITE_E_ABORT Handle = 0x87AF0004
6728 SQLITE_E_BUSY Handle = 0x87AF0005
6729 SQLITE_E_LOCKED Handle = 0x87AF0006
6730 SQLITE_E_NOMEM Handle = 0x87AF0007
6731 SQLITE_E_READONLY Handle = 0x87AF0008
6732 SQLITE_E_INTERRUPT Handle = 0x87AF0009
6733 SQLITE_E_IOERR Handle = 0x87AF000A
6734 SQLITE_E_CORRUPT Handle = 0x87AF000B
6735 SQLITE_E_NOTFOUND Handle = 0x87AF000C
6736 SQLITE_E_FULL Handle = 0x87AF000D
6737 SQLITE_E_CANTOPEN Handle = 0x87AF000E
6738 SQLITE_E_PROTOCOL Handle = 0x87AF000F
6739 SQLITE_E_EMPTY Handle = 0x87AF0010
6740 SQLITE_E_SCHEMA Handle = 0x87AF0011
6741 SQLITE_E_TOOBIG Handle = 0x87AF0012
6742 SQLITE_E_CONSTRAINT Handle = 0x87AF0013
6743 SQLITE_E_MISMATCH Handle = 0x87AF0014
6744 SQLITE_E_MISUSE Handle = 0x87AF0015
6745 SQLITE_E_NOLFS Handle = 0x87AF0016
6746 SQLITE_E_AUTH Handle = 0x87AF0017
6747 SQLITE_E_FORMAT Handle = 0x87AF0018
6748 SQLITE_E_RANGE Handle = 0x87AF0019
6749 SQLITE_E_NOTADB Handle = 0x87AF001A
6750 SQLITE_E_NOTICE Handle = 0x87AF001B
6751 SQLITE_E_WARNING Handle = 0x87AF001C
6752 SQLITE_E_ROW Handle = 0x87AF0064
6753 SQLITE_E_DONE Handle = 0x87AF0065
6754 SQLITE_E_IOERR_READ Handle = 0x87AF010A
6755 SQLITE_E_IOERR_SHORT_READ Handle = 0x87AF020A
6756 SQLITE_E_IOERR_WRITE Handle = 0x87AF030A
6757 SQLITE_E_IOERR_FSYNC Handle = 0x87AF040A
6758 SQLITE_E_IOERR_DIR_FSYNC Handle = 0x87AF050A
6759 SQLITE_E_IOERR_TRUNCATE Handle = 0x87AF060A
6760 SQLITE_E_IOERR_FSTAT Handle = 0x87AF070A
6761 SQLITE_E_IOERR_UNLOCK Handle = 0x87AF080A
6762 SQLITE_E_IOERR_RDLOCK Handle = 0x87AF090A
6763 SQLITE_E_IOERR_DELETE Handle = 0x87AF0A0A
6764 SQLITE_E_IOERR_BLOCKED Handle = 0x87AF0B0A
6765 SQLITE_E_IOERR_NOMEM Handle = 0x87AF0C0A
6766 SQLITE_E_IOERR_ACCESS Handle = 0x87AF0D0A
6767 SQLITE_E_IOERR_CHECKRESERVEDLOCK Handle = 0x87AF0E0A
6768 SQLITE_E_IOERR_LOCK Handle = 0x87AF0F0A
6769 SQLITE_E_IOERR_CLOSE Handle = 0x87AF100A
6770 SQLITE_E_IOERR_DIR_CLOSE Handle = 0x87AF110A
6771 SQLITE_E_IOERR_SHMOPEN Handle = 0x87AF120A
6772 SQLITE_E_IOERR_SHMSIZE Handle = 0x87AF130A
6773 SQLITE_E_IOERR_SHMLOCK Handle = 0x87AF140A
6774 SQLITE_E_IOERR_SHMMAP Handle = 0x87AF150A
6775 SQLITE_E_IOERR_SEEK Handle = 0x87AF160A
6776 SQLITE_E_IOERR_DELETE_NOENT Handle = 0x87AF170A
6777 SQLITE_E_IOERR_MMAP Handle = 0x87AF180A
6778 SQLITE_E_IOERR_GETTEMPPATH Handle = 0x87AF190A
6779 SQLITE_E_IOERR_CONVPATH Handle = 0x87AF1A0A
6780 SQLITE_E_IOERR_VNODE Handle = 0x87AF1A02
6781 SQLITE_E_IOERR_AUTH Handle = 0x87AF1A03
6782 SQLITE_E_LOCKED_SHAREDCACHE Handle = 0x87AF0106
6783 SQLITE_E_BUSY_RECOVERY Handle = 0x87AF0105
6784 SQLITE_E_BUSY_SNAPSHOT Handle = 0x87AF0205
6785 SQLITE_E_CANTOPEN_NOTEMPDIR Handle = 0x87AF010E
6786 SQLITE_E_CANTOPEN_ISDIR Handle = 0x87AF020E
6787 SQLITE_E_CANTOPEN_FULLPATH Handle = 0x87AF030E
6788 SQLITE_E_CANTOPEN_CONVPATH Handle = 0x87AF040E
6789 SQLITE_E_CORRUPT_VTAB Handle = 0x87AF010B
6790 SQLITE_E_READONLY_RECOVERY Handle = 0x87AF0108
6791 SQLITE_E_READONLY_CANTLOCK Handle = 0x87AF0208
6792 SQLITE_E_READONLY_ROLLBACK Handle = 0x87AF0308
6793 SQLITE_E_READONLY_DBMOVED Handle = 0x87AF0408
6794 SQLITE_E_ABORT_ROLLBACK Handle = 0x87AF0204
6795 SQLITE_E_CONSTRAINT_CHECK Handle = 0x87AF0113
6796 SQLITE_E_CONSTRAINT_COMMITHOOK Handle = 0x87AF0213
6797 SQLITE_E_CONSTRAINT_FOREIGNKEY Handle = 0x87AF0313
6798 SQLITE_E_CONSTRAINT_FUNCTION Handle = 0x87AF0413
6799 SQLITE_E_CONSTRAINT_NOTNULL Handle = 0x87AF0513
6800 SQLITE_E_CONSTRAINT_PRIMARYKEY Handle = 0x87AF0613
6801 SQLITE_E_CONSTRAINT_TRIGGER Handle = 0x87AF0713
6802 SQLITE_E_CONSTRAINT_UNIQUE Handle = 0x87AF0813
6803 SQLITE_E_CONSTRAINT_VTAB Handle = 0x87AF0913
6804 SQLITE_E_CONSTRAINT_ROWID Handle = 0x87AF0A13
6805 SQLITE_E_NOTICE_RECOVER_WAL Handle = 0x87AF011B
6806 SQLITE_E_NOTICE_RECOVER_ROLLBACK Handle = 0x87AF021B
6807 SQLITE_E_WARNING_AUTOINDEX Handle = 0x87AF011C
6808 UTC_E_TOGGLE_TRACE_STARTED Handle = 0x87C51001
6809 UTC_E_ALTERNATIVE_TRACE_CANNOT_PREEMPT Handle = 0x87C51002
6810 UTC_E_AOT_NOT_RUNNING Handle = 0x87C51003
6811 UTC_E_SCRIPT_TYPE_INVALID Handle = 0x87C51004
6812 UTC_E_SCENARIODEF_NOT_FOUND Handle = 0x87C51005
6813 UTC_E_TRACEPROFILE_NOT_FOUND Handle = 0x87C51006
6814 UTC_E_FORWARDER_ALREADY_ENABLED Handle = 0x87C51007
6815 UTC_E_FORWARDER_ALREADY_DISABLED Handle = 0x87C51008
6816 UTC_E_EVENTLOG_ENTRY_MALFORMED Handle = 0x87C51009
6817 UTC_E_DIAGRULES_SCHEMAVERSION_MISMATCH Handle = 0x87C5100A
6818 UTC_E_SCRIPT_TERMINATED Handle = 0x87C5100B
6819 UTC_E_INVALID_CUSTOM_FILTER Handle = 0x87C5100C
6820 UTC_E_TRACE_NOT_RUNNING Handle = 0x87C5100D
6821 UTC_E_REESCALATED_TOO_QUICKLY Handle = 0x87C5100E
6822 UTC_E_ESCALATION_ALREADY_RUNNING Handle = 0x87C5100F
6823 UTC_E_PERFTRACK_ALREADY_TRACING Handle = 0x87C51010
6824 UTC_E_REACHED_MAX_ESCALATIONS Handle = 0x87C51011
6825 UTC_E_FORWARDER_PRODUCER_MISMATCH Handle = 0x87C51012
6826 UTC_E_INTENTIONAL_SCRIPT_FAILURE Handle = 0x87C51013
6827 UTC_E_SQM_INIT_FAILED Handle = 0x87C51014
6828 UTC_E_NO_WER_LOGGER_SUPPORTED Handle = 0x87C51015
6829 UTC_E_TRACERS_DONT_EXIST Handle = 0x87C51016
6830 UTC_E_WINRT_INIT_FAILED Handle = 0x87C51017
6831 UTC_E_SCENARIODEF_SCHEMAVERSION_MISMATCH Handle = 0x87C51018
6832 UTC_E_INVALID_FILTER Handle = 0x87C51019
6833 UTC_E_EXE_TERMINATED Handle = 0x87C5101A
6834 UTC_E_ESCALATION_NOT_AUTHORIZED Handle = 0x87C5101B
6835 UTC_E_SETUP_NOT_AUTHORIZED Handle = 0x87C5101C
6836 UTC_E_CHILD_PROCESS_FAILED Handle = 0x87C5101D
6837 UTC_E_COMMAND_LINE_NOT_AUTHORIZED Handle = 0x87C5101E
6838 UTC_E_CANNOT_LOAD_SCENARIO_EDITOR_XML Handle = 0x87C5101F
6839 UTC_E_ESCALATION_TIMED_OUT Handle = 0x87C51020
6840 UTC_E_SETUP_TIMED_OUT Handle = 0x87C51021
6841 UTC_E_TRIGGER_MISMATCH Handle = 0x87C51022
6842 UTC_E_TRIGGER_NOT_FOUND Handle = 0x87C51023
6843 UTC_E_SIF_NOT_SUPPORTED Handle = 0x87C51024
6844 UTC_E_DELAY_TERMINATED Handle = 0x87C51025
6845 UTC_E_DEVICE_TICKET_ERROR Handle = 0x87C51026
6846 UTC_E_TRACE_BUFFER_LIMIT_EXCEEDED Handle = 0x87C51027
6847 UTC_E_API_RESULT_UNAVAILABLE Handle = 0x87C51028
6848 UTC_E_RPC_TIMEOUT Handle = 0x87C51029
6849 UTC_E_RPC_WAIT_FAILED Handle = 0x87C5102A
6850 UTC_E_API_BUSY Handle = 0x87C5102B
6851 UTC_E_TRACE_MIN_DURATION_REQUIREMENT_NOT_MET Handle = 0x87C5102C
6852 UTC_E_EXCLUSIVITY_NOT_AVAILABLE Handle = 0x87C5102D
6853 UTC_E_GETFILE_FILE_PATH_NOT_APPROVED Handle = 0x87C5102E
6854 UTC_E_ESCALATION_DIRECTORY_ALREADY_EXISTS Handle = 0x87C5102F
6855 UTC_E_TIME_TRIGGER_ON_START_INVALID Handle = 0x87C51030
6856 UTC_E_TIME_TRIGGER_ONLY_VALID_ON_SINGLE_TRANSITION Handle = 0x87C51031
6857 UTC_E_TIME_TRIGGER_INVALID_TIME_RANGE Handle = 0x87C51032
6858 UTC_E_MULTIPLE_TIME_TRIGGER_ON_SINGLE_STATE Handle = 0x87C51033
6859 UTC_E_BINARY_MISSING Handle = 0x87C51034
6860 UTC_E_NETWORK_CAPTURE_NOT_ALLOWED Handle = 0x87C51035
6861 UTC_E_FAILED_TO_RESOLVE_CONTAINER_ID Handle = 0x87C51036
6862 UTC_E_UNABLE_TO_RESOLVE_SESSION Handle = 0x87C51037
6863 UTC_E_THROTTLED Handle = 0x87C51038
6864 UTC_E_UNAPPROVED_SCRIPT Handle = 0x87C51039
6865 UTC_E_SCRIPT_MISSING Handle = 0x87C5103A
6866 UTC_E_SCENARIO_THROTTLED Handle = 0x87C5103B
6867 UTC_E_API_NOT_SUPPORTED Handle = 0x87C5103C
6868 UTC_E_GETFILE_EXTERNAL_PATH_NOT_APPROVED Handle = 0x87C5103D
6869 UTC_E_TRY_GET_SCENARIO_TIMEOUT_EXCEEDED Handle = 0x87C5103E
6870 UTC_E_CERT_REV_FAILED Handle = 0x87C5103F
6871 UTC_E_FAILED_TO_START_NDISCAP Handle = 0x87C51040
6872 UTC_E_KERNELDUMP_LIMIT_REACHED Handle = 0x87C51041
6873 UTC_E_MISSING_AGGREGATE_EVENT_TAG Handle = 0x87C51042
6874 UTC_E_INVALID_AGGREGATION_STRUCT Handle = 0x87C51043
6875 UTC_E_ACTION_NOT_SUPPORTED_IN_DESTINATION Handle = 0x87C51044
6876 UTC_E_FILTER_MISSING_ATTRIBUTE Handle = 0x87C51045
6877 UTC_E_FILTER_INVALID_TYPE Handle = 0x87C51046
6878 UTC_E_FILTER_VARIABLE_NOT_FOUND Handle = 0x87C51047
6879 UTC_E_FILTER_FUNCTION_RESTRICTED Handle = 0x87C51048
6880 UTC_E_FILTER_VERSION_MISMATCH Handle = 0x87C51049
6881 UTC_E_FILTER_INVALID_FUNCTION Handle = 0x87C51050
6882 UTC_E_FILTER_INVALID_FUNCTION_PARAMS Handle = 0x87C51051
6883 UTC_E_FILTER_INVALID_COMMAND Handle = 0x87C51052
6884 UTC_E_FILTER_ILLEGAL_EVAL Handle = 0x87C51053
6885 UTC_E_TTTRACER_RETURNED_ERROR Handle = 0x87C51054
6886 UTC_E_AGENT_DIAGNOSTICS_TOO_LARGE Handle = 0x87C51055
6887 UTC_E_FAILED_TO_RECEIVE_AGENT_DIAGNOSTICS Handle = 0x87C51056
6888 UTC_E_SCENARIO_HAS_NO_ACTIONS Handle = 0x87C51057
6889 UTC_E_TTTRACER_STORAGE_FULL Handle = 0x87C51058
6890 UTC_E_INSUFFICIENT_SPACE_TO_START_TRACE Handle = 0x87C51059
6891 UTC_E_ESCALATION_CANCELLED_AT_SHUTDOWN Handle = 0x87C5105A
6892 UTC_E_GETFILEINFOACTION_FILE_NOT_APPROVED Handle = 0x87C5105B
6893 UTC_E_SETREGKEYACTION_TYPE_NOT_APPROVED Handle = 0x87C5105C
6894 WINML_ERR_INVALID_DEVICE Handle = 0x88900001
6895 WINML_ERR_INVALID_BINDING Handle = 0x88900002
6896 WINML_ERR_VALUE_NOTFOUND Handle = 0x88900003
6897 WINML_ERR_SIZE_MISMATCH Handle = 0x88900004
6898 STATUS_WAIT_0 NTStatus = 0x00000000
6899 STATUS_SUCCESS NTStatus = 0x00000000
6900 STATUS_WAIT_1 NTStatus = 0x00000001
6901 STATUS_WAIT_2 NTStatus = 0x00000002
6902 STATUS_WAIT_3 NTStatus = 0x00000003
6903 STATUS_WAIT_63 NTStatus = 0x0000003F
6904 STATUS_ABANDONED NTStatus = 0x00000080
6905 STATUS_ABANDONED_WAIT_0 NTStatus = 0x00000080
6906 STATUS_ABANDONED_WAIT_63 NTStatus = 0x000000BF
6907 STATUS_USER_APC NTStatus = 0x000000C0
6908 STATUS_ALREADY_COMPLETE NTStatus = 0x000000FF
6909 STATUS_KERNEL_APC NTStatus = 0x00000100
6910 STATUS_ALERTED NTStatus = 0x00000101
6911 STATUS_TIMEOUT NTStatus = 0x00000102
6912 STATUS_PENDING NTStatus = 0x00000103
6913 STATUS_REPARSE NTStatus = 0x00000104
6914 STATUS_MORE_ENTRIES NTStatus = 0x00000105
6915 STATUS_NOT_ALL_ASSIGNED NTStatus = 0x00000106
6916 STATUS_SOME_NOT_MAPPED NTStatus = 0x00000107
6917 STATUS_OPLOCK_BREAK_IN_PROGRESS NTStatus = 0x00000108
6918 STATUS_VOLUME_MOUNTED NTStatus = 0x00000109
6919 STATUS_RXACT_COMMITTED NTStatus = 0x0000010A
6920 STATUS_NOTIFY_CLEANUP NTStatus = 0x0000010B
6921 STATUS_NOTIFY_ENUM_DIR NTStatus = 0x0000010C
6922 STATUS_NO_QUOTAS_FOR_ACCOUNT NTStatus = 0x0000010D
6923 STATUS_PRIMARY_TRANSPORT_CONNECT_FAILED NTStatus = 0x0000010E
6924 STATUS_PAGE_FAULT_TRANSITION NTStatus = 0x00000110
6925 STATUS_PAGE_FAULT_DEMAND_ZERO NTStatus = 0x00000111
6926 STATUS_PAGE_FAULT_COPY_ON_WRITE NTStatus = 0x00000112
6927 STATUS_PAGE_FAULT_GUARD_PAGE NTStatus = 0x00000113
6928 STATUS_PAGE_FAULT_PAGING_FILE NTStatus = 0x00000114
6929 STATUS_CACHE_PAGE_LOCKED NTStatus = 0x00000115
6930 STATUS_CRASH_DUMP NTStatus = 0x00000116
6931 STATUS_BUFFER_ALL_ZEROS NTStatus = 0x00000117
6932 STATUS_REPARSE_OBJECT NTStatus = 0x00000118
6933 STATUS_RESOURCE_REQUIREMENTS_CHANGED NTStatus = 0x00000119
6934 STATUS_TRANSLATION_COMPLETE NTStatus = 0x00000120
6935 STATUS_DS_MEMBERSHIP_EVALUATED_LOCALLY NTStatus = 0x00000121
6936 STATUS_NOTHING_TO_TERMINATE NTStatus = 0x00000122
6937 STATUS_PROCESS_NOT_IN_JOB NTStatus = 0x00000123
6938 STATUS_PROCESS_IN_JOB NTStatus = 0x00000124
6939 STATUS_VOLSNAP_HIBERNATE_READY NTStatus = 0x00000125
6940 STATUS_FSFILTER_OP_COMPLETED_SUCCESSFULLY NTStatus = 0x00000126
6941 STATUS_INTERRUPT_VECTOR_ALREADY_CONNECTED NTStatus = 0x00000127
6942 STATUS_INTERRUPT_STILL_CONNECTED NTStatus = 0x00000128
6943 STATUS_PROCESS_CLONED NTStatus = 0x00000129
6944 STATUS_FILE_LOCKED_WITH_ONLY_READERS NTStatus = 0x0000012A
6945 STATUS_FILE_LOCKED_WITH_WRITERS NTStatus = 0x0000012B
6946 STATUS_VALID_IMAGE_HASH NTStatus = 0x0000012C
6947 STATUS_VALID_CATALOG_HASH NTStatus = 0x0000012D
6948 STATUS_VALID_STRONG_CODE_HASH NTStatus = 0x0000012E
6949 STATUS_GHOSTED NTStatus = 0x0000012F
6950 STATUS_DATA_OVERWRITTEN NTStatus = 0x00000130
6951 STATUS_RESOURCEMANAGER_READ_ONLY NTStatus = 0x00000202
6952 STATUS_RING_PREVIOUSLY_EMPTY NTStatus = 0x00000210
6953 STATUS_RING_PREVIOUSLY_FULL NTStatus = 0x00000211
6954 STATUS_RING_PREVIOUSLY_ABOVE_QUOTA NTStatus = 0x00000212
6955 STATUS_RING_NEWLY_EMPTY NTStatus = 0x00000213
6956 STATUS_RING_SIGNAL_OPPOSITE_ENDPOINT NTStatus = 0x00000214
6957 STATUS_OPLOCK_SWITCHED_TO_NEW_HANDLE NTStatus = 0x00000215
6958 STATUS_OPLOCK_HANDLE_CLOSED NTStatus = 0x00000216
6959 STATUS_WAIT_FOR_OPLOCK NTStatus = 0x00000367
6960 STATUS_REPARSE_GLOBAL NTStatus = 0x00000368
6961 STATUS_FLT_IO_COMPLETE NTStatus = 0x001C0001
6962 STATUS_OBJECT_NAME_EXISTS NTStatus = 0x40000000
6963 STATUS_THREAD_WAS_SUSPENDED NTStatus = 0x40000001
6964 STATUS_WORKING_SET_LIMIT_RANGE NTStatus = 0x40000002
6965 STATUS_IMAGE_NOT_AT_BASE NTStatus = 0x40000003
6966 STATUS_RXACT_STATE_CREATED NTStatus = 0x40000004
6967 STATUS_SEGMENT_NOTIFICATION NTStatus = 0x40000005
6968 STATUS_LOCAL_USER_SESSION_KEY NTStatus = 0x40000006
6969 STATUS_BAD_CURRENT_DIRECTORY NTStatus = 0x40000007
6970 STATUS_SERIAL_MORE_WRITES NTStatus = 0x40000008
6971 STATUS_REGISTRY_RECOVERED NTStatus = 0x40000009
6972 STATUS_FT_READ_RECOVERY_FROM_BACKUP NTStatus = 0x4000000A
6973 STATUS_FT_WRITE_RECOVERY NTStatus = 0x4000000B
6974 STATUS_SERIAL_COUNTER_TIMEOUT NTStatus = 0x4000000C
6975 STATUS_NULL_LM_PASSWORD NTStatus = 0x4000000D
6976 STATUS_IMAGE_MACHINE_TYPE_MISMATCH NTStatus = 0x4000000E
6977 STATUS_RECEIVE_PARTIAL NTStatus = 0x4000000F
6978 STATUS_RECEIVE_EXPEDITED NTStatus = 0x40000010
6979 STATUS_RECEIVE_PARTIAL_EXPEDITED NTStatus = 0x40000011
6980 STATUS_EVENT_DONE NTStatus = 0x40000012
6981 STATUS_EVENT_PENDING NTStatus = 0x40000013
6982 STATUS_CHECKING_FILE_SYSTEM NTStatus = 0x40000014
6983 STATUS_FATAL_APP_EXIT NTStatus = 0x40000015
6984 STATUS_PREDEFINED_HANDLE NTStatus = 0x40000016
6985 STATUS_WAS_UNLOCKED NTStatus = 0x40000017
6986 STATUS_SERVICE_NOTIFICATION NTStatus = 0x40000018
6987 STATUS_WAS_LOCKED NTStatus = 0x40000019
6988 STATUS_LOG_HARD_ERROR NTStatus = 0x4000001A
6989 STATUS_ALREADY_WIN32 NTStatus = 0x4000001B
6990 STATUS_WX86_UNSIMULATE NTStatus = 0x4000001C
6991 STATUS_WX86_CONTINUE NTStatus = 0x4000001D
6992 STATUS_WX86_SINGLE_STEP NTStatus = 0x4000001E
6993 STATUS_WX86_BREAKPOINT NTStatus = 0x4000001F
6994 STATUS_WX86_EXCEPTION_CONTINUE NTStatus = 0x40000020
6995 STATUS_WX86_EXCEPTION_LASTCHANCE NTStatus = 0x40000021
6996 STATUS_WX86_EXCEPTION_CHAIN NTStatus = 0x40000022
6997 STATUS_IMAGE_MACHINE_TYPE_MISMATCH_EXE NTStatus = 0x40000023
6998 STATUS_NO_YIELD_PERFORMED NTStatus = 0x40000024
6999 STATUS_TIMER_RESUME_IGNORED NTStatus = 0x40000025
7000 STATUS_ARBITRATION_UNHANDLED NTStatus = 0x40000026
7001 STATUS_CARDBUS_NOT_SUPPORTED NTStatus = 0x40000027
7002 STATUS_WX86_CREATEWX86TIB NTStatus = 0x40000028
7003 STATUS_MP_PROCESSOR_MISMATCH NTStatus = 0x40000029
7004 STATUS_HIBERNATED NTStatus = 0x4000002A
7005 STATUS_RESUME_HIBERNATION NTStatus = 0x4000002B
7006 STATUS_FIRMWARE_UPDATED NTStatus = 0x4000002C
7007 STATUS_DRIVERS_LEAKING_LOCKED_PAGES NTStatus = 0x4000002D
7008 STATUS_MESSAGE_RETRIEVED NTStatus = 0x4000002E
7009 STATUS_SYSTEM_POWERSTATE_TRANSITION NTStatus = 0x4000002F
7010 STATUS_ALPC_CHECK_COMPLETION_LIST NTStatus = 0x40000030
7011 STATUS_SYSTEM_POWERSTATE_COMPLEX_TRANSITION NTStatus = 0x40000031
7012 STATUS_ACCESS_AUDIT_BY_POLICY NTStatus = 0x40000032
7013 STATUS_ABANDON_HIBERFILE NTStatus = 0x40000033
7014 STATUS_BIZRULES_NOT_ENABLED NTStatus = 0x40000034
7015 STATUS_FT_READ_FROM_COPY NTStatus = 0x40000035
7016 STATUS_IMAGE_AT_DIFFERENT_BASE NTStatus = 0x40000036
7017 STATUS_PATCH_DEFERRED NTStatus = 0x40000037
7018 STATUS_HEURISTIC_DAMAGE_POSSIBLE NTStatus = 0x40190001
7019 STATUS_GUARD_PAGE_VIOLATION NTStatus = 0x80000001
7020 STATUS_DATATYPE_MISALIGNMENT NTStatus = 0x80000002
7021 STATUS_BREAKPOINT NTStatus = 0x80000003
7022 STATUS_SINGLE_STEP NTStatus = 0x80000004
7023 STATUS_BUFFER_OVERFLOW NTStatus = 0x80000005
7024 STATUS_NO_MORE_FILES NTStatus = 0x80000006
7025 STATUS_WAKE_SYSTEM_DEBUGGER NTStatus = 0x80000007
7026 STATUS_HANDLES_CLOSED NTStatus = 0x8000000A
7027 STATUS_NO_INHERITANCE NTStatus = 0x8000000B
7028 STATUS_GUID_SUBSTITUTION_MADE NTStatus = 0x8000000C
7029 STATUS_PARTIAL_COPY NTStatus = 0x8000000D
7030 STATUS_DEVICE_PAPER_EMPTY NTStatus = 0x8000000E
7031 STATUS_DEVICE_POWERED_OFF NTStatus = 0x8000000F
7032 STATUS_DEVICE_OFF_LINE NTStatus = 0x80000010
7033 STATUS_DEVICE_BUSY NTStatus = 0x80000011
7034 STATUS_NO_MORE_EAS NTStatus = 0x80000012
7035 STATUS_INVALID_EA_NAME NTStatus = 0x80000013
7036 STATUS_EA_LIST_INCONSISTENT NTStatus = 0x80000014
7037 STATUS_INVALID_EA_FLAG NTStatus = 0x80000015
7038 STATUS_VERIFY_REQUIRED NTStatus = 0x80000016
7039 STATUS_EXTRANEOUS_INFORMATION NTStatus = 0x80000017
7040 STATUS_RXACT_COMMIT_NECESSARY NTStatus = 0x80000018
7041 STATUS_NO_MORE_ENTRIES NTStatus = 0x8000001A
7042 STATUS_FILEMARK_DETECTED NTStatus = 0x8000001B
7043 STATUS_MEDIA_CHANGED NTStatus = 0x8000001C
7044 STATUS_BUS_RESET NTStatus = 0x8000001D
7045 STATUS_END_OF_MEDIA NTStatus = 0x8000001E
7046 STATUS_BEGINNING_OF_MEDIA NTStatus = 0x8000001F
7047 STATUS_MEDIA_CHECK NTStatus = 0x80000020
7048 STATUS_SETMARK_DETECTED NTStatus = 0x80000021
7049 STATUS_NO_DATA_DETECTED NTStatus = 0x80000022
7050 STATUS_REDIRECTOR_HAS_OPEN_HANDLES NTStatus = 0x80000023
7051 STATUS_SERVER_HAS_OPEN_HANDLES NTStatus = 0x80000024
7052 STATUS_ALREADY_DISCONNECTED NTStatus = 0x80000025
7053 STATUS_LONGJUMP NTStatus = 0x80000026
7054 STATUS_CLEANER_CARTRIDGE_INSTALLED NTStatus = 0x80000027
7055 STATUS_PLUGPLAY_QUERY_VETOED NTStatus = 0x80000028
7056 STATUS_UNWIND_CONSOLIDATE NTStatus = 0x80000029
7057 STATUS_REGISTRY_HIVE_RECOVERED NTStatus = 0x8000002A
7058 STATUS_DLL_MIGHT_BE_INSECURE NTStatus = 0x8000002B
7059 STATUS_DLL_MIGHT_BE_INCOMPATIBLE NTStatus = 0x8000002C
7060 STATUS_STOPPED_ON_SYMLINK NTStatus = 0x8000002D
7061 STATUS_CANNOT_GRANT_REQUESTED_OPLOCK NTStatus = 0x8000002E
7062 STATUS_NO_ACE_CONDITION NTStatus = 0x8000002F
7063 STATUS_DEVICE_SUPPORT_IN_PROGRESS NTStatus = 0x80000030
7064 STATUS_DEVICE_POWER_CYCLE_REQUIRED NTStatus = 0x80000031
7065 STATUS_NO_WORK_DONE NTStatus = 0x80000032
7066 STATUS_CLUSTER_NODE_ALREADY_UP NTStatus = 0x80130001
7067 STATUS_CLUSTER_NODE_ALREADY_DOWN NTStatus = 0x80130002
7068 STATUS_CLUSTER_NETWORK_ALREADY_ONLINE NTStatus = 0x80130003
7069 STATUS_CLUSTER_NETWORK_ALREADY_OFFLINE NTStatus = 0x80130004
7070 STATUS_CLUSTER_NODE_ALREADY_MEMBER NTStatus = 0x80130005
7071 STATUS_FLT_BUFFER_TOO_SMALL NTStatus = 0x801C0001
7072 STATUS_FVE_PARTIAL_METADATA NTStatus = 0x80210001
7073 STATUS_FVE_TRANSIENT_STATE NTStatus = 0x80210002
7074 STATUS_CLOUD_FILE_PROPERTY_BLOB_CHECKSUM_MISMATCH NTStatus = 0x8000CF00
7075 STATUS_UNSUCCESSFUL NTStatus = 0xC0000001
7076 STATUS_NOT_IMPLEMENTED NTStatus = 0xC0000002
7077 STATUS_INVALID_INFO_CLASS NTStatus = 0xC0000003
7078 STATUS_INFO_LENGTH_MISMATCH NTStatus = 0xC0000004
7079 STATUS_ACCESS_VIOLATION NTStatus = 0xC0000005
7080 STATUS_IN_PAGE_ERROR NTStatus = 0xC0000006
7081 STATUS_PAGEFILE_QUOTA NTStatus = 0xC0000007
7082 STATUS_INVALID_HANDLE NTStatus = 0xC0000008
7083 STATUS_BAD_INITIAL_STACK NTStatus = 0xC0000009
7084 STATUS_BAD_INITIAL_PC NTStatus = 0xC000000A
7085 STATUS_INVALID_CID NTStatus = 0xC000000B
7086 STATUS_TIMER_NOT_CANCELED NTStatus = 0xC000000C
7087 STATUS_INVALID_PARAMETER NTStatus = 0xC000000D
7088 STATUS_NO_SUCH_DEVICE NTStatus = 0xC000000E
7089 STATUS_NO_SUCH_FILE NTStatus = 0xC000000F
7090 STATUS_INVALID_DEVICE_REQUEST NTStatus = 0xC0000010
7091 STATUS_END_OF_FILE NTStatus = 0xC0000011
7092 STATUS_WRONG_VOLUME NTStatus = 0xC0000012
7093 STATUS_NO_MEDIA_IN_DEVICE NTStatus = 0xC0000013
7094 STATUS_UNRECOGNIZED_MEDIA NTStatus = 0xC0000014
7095 STATUS_NONEXISTENT_SECTOR NTStatus = 0xC0000015
7096 STATUS_MORE_PROCESSING_REQUIRED NTStatus = 0xC0000016
7097 STATUS_NO_MEMORY NTStatus = 0xC0000017
7098 STATUS_CONFLICTING_ADDRESSES NTStatus = 0xC0000018
7099 STATUS_NOT_MAPPED_VIEW NTStatus = 0xC0000019
7100 STATUS_UNABLE_TO_FREE_VM NTStatus = 0xC000001A
7101 STATUS_UNABLE_TO_DELETE_SECTION NTStatus = 0xC000001B
7102 STATUS_INVALID_SYSTEM_SERVICE NTStatus = 0xC000001C
7103 STATUS_ILLEGAL_INSTRUCTION NTStatus = 0xC000001D
7104 STATUS_INVALID_LOCK_SEQUENCE NTStatus = 0xC000001E
7105 STATUS_INVALID_VIEW_SIZE NTStatus = 0xC000001F
7106 STATUS_INVALID_FILE_FOR_SECTION NTStatus = 0xC0000020
7107 STATUS_ALREADY_COMMITTED NTStatus = 0xC0000021
7108 STATUS_ACCESS_DENIED NTStatus = 0xC0000022
7109 STATUS_BUFFER_TOO_SMALL NTStatus = 0xC0000023
7110 STATUS_OBJECT_TYPE_MISMATCH NTStatus = 0xC0000024
7111 STATUS_NONCONTINUABLE_EXCEPTION NTStatus = 0xC0000025
7112 STATUS_INVALID_DISPOSITION NTStatus = 0xC0000026
7113 STATUS_UNWIND NTStatus = 0xC0000027
7114 STATUS_BAD_STACK NTStatus = 0xC0000028
7115 STATUS_INVALID_UNWIND_TARGET NTStatus = 0xC0000029
7116 STATUS_NOT_LOCKED NTStatus = 0xC000002A
7117 STATUS_PARITY_ERROR NTStatus = 0xC000002B
7118 STATUS_UNABLE_TO_DECOMMIT_VM NTStatus = 0xC000002C
7119 STATUS_NOT_COMMITTED NTStatus = 0xC000002D
7120 STATUS_INVALID_PORT_ATTRIBUTES NTStatus = 0xC000002E
7121 STATUS_PORT_MESSAGE_TOO_LONG NTStatus = 0xC000002F
7122 STATUS_INVALID_PARAMETER_MIX NTStatus = 0xC0000030
7123 STATUS_INVALID_QUOTA_LOWER NTStatus = 0xC0000031
7124 STATUS_DISK_CORRUPT_ERROR NTStatus = 0xC0000032
7125 STATUS_OBJECT_NAME_INVALID NTStatus = 0xC0000033
7126 STATUS_OBJECT_NAME_NOT_FOUND NTStatus = 0xC0000034
7127 STATUS_OBJECT_NAME_COLLISION NTStatus = 0xC0000035
7128 STATUS_PORT_DO_NOT_DISTURB NTStatus = 0xC0000036
7129 STATUS_PORT_DISCONNECTED NTStatus = 0xC0000037
7130 STATUS_DEVICE_ALREADY_ATTACHED NTStatus = 0xC0000038
7131 STATUS_OBJECT_PATH_INVALID NTStatus = 0xC0000039
7132 STATUS_OBJECT_PATH_NOT_FOUND NTStatus = 0xC000003A
7133 STATUS_OBJECT_PATH_SYNTAX_BAD NTStatus = 0xC000003B
7134 STATUS_DATA_OVERRUN NTStatus = 0xC000003C
7135 STATUS_DATA_LATE_ERROR NTStatus = 0xC000003D
7136 STATUS_DATA_ERROR NTStatus = 0xC000003E
7137 STATUS_CRC_ERROR NTStatus = 0xC000003F
7138 STATUS_SECTION_TOO_BIG NTStatus = 0xC0000040
7139 STATUS_PORT_CONNECTION_REFUSED NTStatus = 0xC0000041
7140 STATUS_INVALID_PORT_HANDLE NTStatus = 0xC0000042
7141 STATUS_SHARING_VIOLATION NTStatus = 0xC0000043
7142 STATUS_QUOTA_EXCEEDED NTStatus = 0xC0000044
7143 STATUS_INVALID_PAGE_PROTECTION NTStatus = 0xC0000045
7144 STATUS_MUTANT_NOT_OWNED NTStatus = 0xC0000046
7145 STATUS_SEMAPHORE_LIMIT_EXCEEDED NTStatus = 0xC0000047
7146 STATUS_PORT_ALREADY_SET NTStatus = 0xC0000048
7147 STATUS_SECTION_NOT_IMAGE NTStatus = 0xC0000049
7148 STATUS_SUSPEND_COUNT_EXCEEDED NTStatus = 0xC000004A
7149 STATUS_THREAD_IS_TERMINATING NTStatus = 0xC000004B
7150 STATUS_BAD_WORKING_SET_LIMIT NTStatus = 0xC000004C
7151 STATUS_INCOMPATIBLE_FILE_MAP NTStatus = 0xC000004D
7152 STATUS_SECTION_PROTECTION NTStatus = 0xC000004E
7153 STATUS_EAS_NOT_SUPPORTED NTStatus = 0xC000004F
7154 STATUS_EA_TOO_LARGE NTStatus = 0xC0000050
7155 STATUS_NONEXISTENT_EA_ENTRY NTStatus = 0xC0000051
7156 STATUS_NO_EAS_ON_FILE NTStatus = 0xC0000052
7157 STATUS_EA_CORRUPT_ERROR NTStatus = 0xC0000053
7158 STATUS_FILE_LOCK_CONFLICT NTStatus = 0xC0000054
7159 STATUS_LOCK_NOT_GRANTED NTStatus = 0xC0000055
7160 STATUS_DELETE_PENDING NTStatus = 0xC0000056
7161 STATUS_CTL_FILE_NOT_SUPPORTED NTStatus = 0xC0000057
7162 STATUS_UNKNOWN_REVISION NTStatus = 0xC0000058
7163 STATUS_REVISION_MISMATCH NTStatus = 0xC0000059
7164 STATUS_INVALID_OWNER NTStatus = 0xC000005A
7165 STATUS_INVALID_PRIMARY_GROUP NTStatus = 0xC000005B
7166 STATUS_NO_IMPERSONATION_TOKEN NTStatus = 0xC000005C
7167 STATUS_CANT_DISABLE_MANDATORY NTStatus = 0xC000005D
7168 STATUS_NO_LOGON_SERVERS NTStatus = 0xC000005E
7169 STATUS_NO_SUCH_LOGON_SESSION NTStatus = 0xC000005F
7170 STATUS_NO_SUCH_PRIVILEGE NTStatus = 0xC0000060
7171 STATUS_PRIVILEGE_NOT_HELD NTStatus = 0xC0000061
7172 STATUS_INVALID_ACCOUNT_NAME NTStatus = 0xC0000062
7173 STATUS_USER_EXISTS NTStatus = 0xC0000063
7174 STATUS_NO_SUCH_USER NTStatus = 0xC0000064
7175 STATUS_GROUP_EXISTS NTStatus = 0xC0000065
7176 STATUS_NO_SUCH_GROUP NTStatus = 0xC0000066
7177 STATUS_MEMBER_IN_GROUP NTStatus = 0xC0000067
7178 STATUS_MEMBER_NOT_IN_GROUP NTStatus = 0xC0000068
7179 STATUS_LAST_ADMIN NTStatus = 0xC0000069
7180 STATUS_WRONG_PASSWORD NTStatus = 0xC000006A
7181 STATUS_ILL_FORMED_PASSWORD NTStatus = 0xC000006B
7182 STATUS_PASSWORD_RESTRICTION NTStatus = 0xC000006C
7183 STATUS_LOGON_FAILURE NTStatus = 0xC000006D
7184 STATUS_ACCOUNT_RESTRICTION NTStatus = 0xC000006E
7185 STATUS_INVALID_LOGON_HOURS NTStatus = 0xC000006F
7186 STATUS_INVALID_WORKSTATION NTStatus = 0xC0000070
7187 STATUS_PASSWORD_EXPIRED NTStatus = 0xC0000071
7188 STATUS_ACCOUNT_DISABLED NTStatus = 0xC0000072
7189 STATUS_NONE_MAPPED NTStatus = 0xC0000073
7190 STATUS_TOO_MANY_LUIDS_REQUESTED NTStatus = 0xC0000074
7191 STATUS_LUIDS_EXHAUSTED NTStatus = 0xC0000075
7192 STATUS_INVALID_SUB_AUTHORITY NTStatus = 0xC0000076
7193 STATUS_INVALID_ACL NTStatus = 0xC0000077
7194 STATUS_INVALID_SID NTStatus = 0xC0000078
7195 STATUS_INVALID_SECURITY_DESCR NTStatus = 0xC0000079
7196 STATUS_PROCEDURE_NOT_FOUND NTStatus = 0xC000007A
7197 STATUS_INVALID_IMAGE_FORMAT NTStatus = 0xC000007B
7198 STATUS_NO_TOKEN NTStatus = 0xC000007C
7199 STATUS_BAD_INHERITANCE_ACL NTStatus = 0xC000007D
7200 STATUS_RANGE_NOT_LOCKED NTStatus = 0xC000007E
7201 STATUS_DISK_FULL NTStatus = 0xC000007F
7202 STATUS_SERVER_DISABLED NTStatus = 0xC0000080
7203 STATUS_SERVER_NOT_DISABLED NTStatus = 0xC0000081
7204 STATUS_TOO_MANY_GUIDS_REQUESTED NTStatus = 0xC0000082
7205 STATUS_GUIDS_EXHAUSTED NTStatus = 0xC0000083
7206 STATUS_INVALID_ID_AUTHORITY NTStatus = 0xC0000084
7207 STATUS_AGENTS_EXHAUSTED NTStatus = 0xC0000085
7208 STATUS_INVALID_VOLUME_LABEL NTStatus = 0xC0000086
7209 STATUS_SECTION_NOT_EXTENDED NTStatus = 0xC0000087
7210 STATUS_NOT_MAPPED_DATA NTStatus = 0xC0000088
7211 STATUS_RESOURCE_DATA_NOT_FOUND NTStatus = 0xC0000089
7212 STATUS_RESOURCE_TYPE_NOT_FOUND NTStatus = 0xC000008A
7213 STATUS_RESOURCE_NAME_NOT_FOUND NTStatus = 0xC000008B
7214 STATUS_ARRAY_BOUNDS_EXCEEDED NTStatus = 0xC000008C
7215 STATUS_FLOAT_DENORMAL_OPERAND NTStatus = 0xC000008D
7216 STATUS_FLOAT_DIVIDE_BY_ZERO NTStatus = 0xC000008E
7217 STATUS_FLOAT_INEXACT_RESULT NTStatus = 0xC000008F
7218 STATUS_FLOAT_INVALID_OPERATION NTStatus = 0xC0000090
7219 STATUS_FLOAT_OVERFLOW NTStatus = 0xC0000091
7220 STATUS_FLOAT_STACK_CHECK NTStatus = 0xC0000092
7221 STATUS_FLOAT_UNDERFLOW NTStatus = 0xC0000093
7222 STATUS_INTEGER_DIVIDE_BY_ZERO NTStatus = 0xC0000094
7223 STATUS_INTEGER_OVERFLOW NTStatus = 0xC0000095
7224 STATUS_PRIVILEGED_INSTRUCTION NTStatus = 0xC0000096
7225 STATUS_TOO_MANY_PAGING_FILES NTStatus = 0xC0000097
7226 STATUS_FILE_INVALID NTStatus = 0xC0000098
7227 STATUS_ALLOTTED_SPACE_EXCEEDED NTStatus = 0xC0000099
7228 STATUS_INSUFFICIENT_RESOURCES NTStatus = 0xC000009A
7229 STATUS_DFS_EXIT_PATH_FOUND NTStatus = 0xC000009B
7230 STATUS_DEVICE_DATA_ERROR NTStatus = 0xC000009C
7231 STATUS_DEVICE_NOT_CONNECTED NTStatus = 0xC000009D
7232 STATUS_DEVICE_POWER_FAILURE NTStatus = 0xC000009E
7233 STATUS_FREE_VM_NOT_AT_BASE NTStatus = 0xC000009F
7234 STATUS_MEMORY_NOT_ALLOCATED NTStatus = 0xC00000A0
7235 STATUS_WORKING_SET_QUOTA NTStatus = 0xC00000A1
7236 STATUS_MEDIA_WRITE_PROTECTED NTStatus = 0xC00000A2
7237 STATUS_DEVICE_NOT_READY NTStatus = 0xC00000A3
7238 STATUS_INVALID_GROUP_ATTRIBUTES NTStatus = 0xC00000A4
7239 STATUS_BAD_IMPERSONATION_LEVEL NTStatus = 0xC00000A5
7240 STATUS_CANT_OPEN_ANONYMOUS NTStatus = 0xC00000A6
7241 STATUS_BAD_VALIDATION_CLASS NTStatus = 0xC00000A7
7242 STATUS_BAD_TOKEN_TYPE NTStatus = 0xC00000A8
7243 STATUS_BAD_MASTER_BOOT_RECORD NTStatus = 0xC00000A9
7244 STATUS_INSTRUCTION_MISALIGNMENT NTStatus = 0xC00000AA
7245 STATUS_INSTANCE_NOT_AVAILABLE NTStatus = 0xC00000AB
7246 STATUS_PIPE_NOT_AVAILABLE NTStatus = 0xC00000AC
7247 STATUS_INVALID_PIPE_STATE NTStatus = 0xC00000AD
7248 STATUS_PIPE_BUSY NTStatus = 0xC00000AE
7249 STATUS_ILLEGAL_FUNCTION NTStatus = 0xC00000AF
7250 STATUS_PIPE_DISCONNECTED NTStatus = 0xC00000B0
7251 STATUS_PIPE_CLOSING NTStatus = 0xC00000B1
7252 STATUS_PIPE_CONNECTED NTStatus = 0xC00000B2
7253 STATUS_PIPE_LISTENING NTStatus = 0xC00000B3
7254 STATUS_INVALID_READ_MODE NTStatus = 0xC00000B4
7255 STATUS_IO_TIMEOUT NTStatus = 0xC00000B5
7256 STATUS_FILE_FORCED_CLOSED NTStatus = 0xC00000B6
7257 STATUS_PROFILING_NOT_STARTED NTStatus = 0xC00000B7
7258 STATUS_PROFILING_NOT_STOPPED NTStatus = 0xC00000B8
7259 STATUS_COULD_NOT_INTERPRET NTStatus = 0xC00000B9
7260 STATUS_FILE_IS_A_DIRECTORY NTStatus = 0xC00000BA
7261 STATUS_NOT_SUPPORTED NTStatus = 0xC00000BB
7262 STATUS_REMOTE_NOT_LISTENING NTStatus = 0xC00000BC
7263 STATUS_DUPLICATE_NAME NTStatus = 0xC00000BD
7264 STATUS_BAD_NETWORK_PATH NTStatus = 0xC00000BE
7265 STATUS_NETWORK_BUSY NTStatus = 0xC00000BF
7266 STATUS_DEVICE_DOES_NOT_EXIST NTStatus = 0xC00000C0
7267 STATUS_TOO_MANY_COMMANDS NTStatus = 0xC00000C1
7268 STATUS_ADAPTER_HARDWARE_ERROR NTStatus = 0xC00000C2
7269 STATUS_INVALID_NETWORK_RESPONSE NTStatus = 0xC00000C3
7270 STATUS_UNEXPECTED_NETWORK_ERROR NTStatus = 0xC00000C4
7271 STATUS_BAD_REMOTE_ADAPTER NTStatus = 0xC00000C5
7272 STATUS_PRINT_QUEUE_FULL NTStatus = 0xC00000C6
7273 STATUS_NO_SPOOL_SPACE NTStatus = 0xC00000C7
7274 STATUS_PRINT_CANCELLED NTStatus = 0xC00000C8
7275 STATUS_NETWORK_NAME_DELETED NTStatus = 0xC00000C9
7276 STATUS_NETWORK_ACCESS_DENIED NTStatus = 0xC00000CA
7277 STATUS_BAD_DEVICE_TYPE NTStatus = 0xC00000CB
7278 STATUS_BAD_NETWORK_NAME NTStatus = 0xC00000CC
7279 STATUS_TOO_MANY_NAMES NTStatus = 0xC00000CD
7280 STATUS_TOO_MANY_SESSIONS NTStatus = 0xC00000CE
7281 STATUS_SHARING_PAUSED NTStatus = 0xC00000CF
7282 STATUS_REQUEST_NOT_ACCEPTED NTStatus = 0xC00000D0
7283 STATUS_REDIRECTOR_PAUSED NTStatus = 0xC00000D1
7284 STATUS_NET_WRITE_FAULT NTStatus = 0xC00000D2
7285 STATUS_PROFILING_AT_LIMIT NTStatus = 0xC00000D3
7286 STATUS_NOT_SAME_DEVICE NTStatus = 0xC00000D4
7287 STATUS_FILE_RENAMED NTStatus = 0xC00000D5
7288 STATUS_VIRTUAL_CIRCUIT_CLOSED NTStatus = 0xC00000D6
7289 STATUS_NO_SECURITY_ON_OBJECT NTStatus = 0xC00000D7
7290 STATUS_CANT_WAIT NTStatus = 0xC00000D8
7291 STATUS_PIPE_EMPTY NTStatus = 0xC00000D9
7292 STATUS_CANT_ACCESS_DOMAIN_INFO NTStatus = 0xC00000DA
7293 STATUS_CANT_TERMINATE_SELF NTStatus = 0xC00000DB
7294 STATUS_INVALID_SERVER_STATE NTStatus = 0xC00000DC
7295 STATUS_INVALID_DOMAIN_STATE NTStatus = 0xC00000DD
7296 STATUS_INVALID_DOMAIN_ROLE NTStatus = 0xC00000DE
7297 STATUS_NO_SUCH_DOMAIN NTStatus = 0xC00000DF
7298 STATUS_DOMAIN_EXISTS NTStatus = 0xC00000E0
7299 STATUS_DOMAIN_LIMIT_EXCEEDED NTStatus = 0xC00000E1
7300 STATUS_OPLOCK_NOT_GRANTED NTStatus = 0xC00000E2
7301 STATUS_INVALID_OPLOCK_PROTOCOL NTStatus = 0xC00000E3
7302 STATUS_INTERNAL_DB_CORRUPTION NTStatus = 0xC00000E4
7303 STATUS_INTERNAL_ERROR NTStatus = 0xC00000E5
7304 STATUS_GENERIC_NOT_MAPPED NTStatus = 0xC00000E6
7305 STATUS_BAD_DESCRIPTOR_FORMAT NTStatus = 0xC00000E7
7306 STATUS_INVALID_USER_BUFFER NTStatus = 0xC00000E8
7307 STATUS_UNEXPECTED_IO_ERROR NTStatus = 0xC00000E9
7308 STATUS_UNEXPECTED_MM_CREATE_ERR NTStatus = 0xC00000EA
7309 STATUS_UNEXPECTED_MM_MAP_ERROR NTStatus = 0xC00000EB
7310 STATUS_UNEXPECTED_MM_EXTEND_ERR NTStatus = 0xC00000EC
7311 STATUS_NOT_LOGON_PROCESS NTStatus = 0xC00000ED
7312 STATUS_LOGON_SESSION_EXISTS NTStatus = 0xC00000EE
7313 STATUS_INVALID_PARAMETER_1 NTStatus = 0xC00000EF
7314 STATUS_INVALID_PARAMETER_2 NTStatus = 0xC00000F0
7315 STATUS_INVALID_PARAMETER_3 NTStatus = 0xC00000F1
7316 STATUS_INVALID_PARAMETER_4 NTStatus = 0xC00000F2
7317 STATUS_INVALID_PARAMETER_5 NTStatus = 0xC00000F3
7318 STATUS_INVALID_PARAMETER_6 NTStatus = 0xC00000F4
7319 STATUS_INVALID_PARAMETER_7 NTStatus = 0xC00000F5
7320 STATUS_INVALID_PARAMETER_8 NTStatus = 0xC00000F6
7321 STATUS_INVALID_PARAMETER_9 NTStatus = 0xC00000F7
7322 STATUS_INVALID_PARAMETER_10 NTStatus = 0xC00000F8
7323 STATUS_INVALID_PARAMETER_11 NTStatus = 0xC00000F9
7324 STATUS_INVALID_PARAMETER_12 NTStatus = 0xC00000FA
7325 STATUS_REDIRECTOR_NOT_STARTED NTStatus = 0xC00000FB
7326 STATUS_REDIRECTOR_STARTED NTStatus = 0xC00000FC
7327 STATUS_STACK_OVERFLOW NTStatus = 0xC00000FD
7328 STATUS_NO_SUCH_PACKAGE NTStatus = 0xC00000FE
7329 STATUS_BAD_FUNCTION_TABLE NTStatus = 0xC00000FF
7330 STATUS_VARIABLE_NOT_FOUND NTStatus = 0xC0000100
7331 STATUS_DIRECTORY_NOT_EMPTY NTStatus = 0xC0000101
7332 STATUS_FILE_CORRUPT_ERROR NTStatus = 0xC0000102
7333 STATUS_NOT_A_DIRECTORY NTStatus = 0xC0000103
7334 STATUS_BAD_LOGON_SESSION_STATE NTStatus = 0xC0000104
7335 STATUS_LOGON_SESSION_COLLISION NTStatus = 0xC0000105
7336 STATUS_NAME_TOO_LONG NTStatus = 0xC0000106
7337 STATUS_FILES_OPEN NTStatus = 0xC0000107
7338 STATUS_CONNECTION_IN_USE NTStatus = 0xC0000108
7339 STATUS_MESSAGE_NOT_FOUND NTStatus = 0xC0000109
7340 STATUS_PROCESS_IS_TERMINATING NTStatus = 0xC000010A
7341 STATUS_INVALID_LOGON_TYPE NTStatus = 0xC000010B
7342 STATUS_NO_GUID_TRANSLATION NTStatus = 0xC000010C
7343 STATUS_CANNOT_IMPERSONATE NTStatus = 0xC000010D
7344 STATUS_IMAGE_ALREADY_LOADED NTStatus = 0xC000010E
7345 STATUS_ABIOS_NOT_PRESENT NTStatus = 0xC000010F
7346 STATUS_ABIOS_LID_NOT_EXIST NTStatus = 0xC0000110
7347 STATUS_ABIOS_LID_ALREADY_OWNED NTStatus = 0xC0000111
7348 STATUS_ABIOS_NOT_LID_OWNER NTStatus = 0xC0000112
7349 STATUS_ABIOS_INVALID_COMMAND NTStatus = 0xC0000113
7350 STATUS_ABIOS_INVALID_LID NTStatus = 0xC0000114
7351 STATUS_ABIOS_SELECTOR_NOT_AVAILABLE NTStatus = 0xC0000115
7352 STATUS_ABIOS_INVALID_SELECTOR NTStatus = 0xC0000116
7353 STATUS_NO_LDT NTStatus = 0xC0000117
7354 STATUS_INVALID_LDT_SIZE NTStatus = 0xC0000118
7355 STATUS_INVALID_LDT_OFFSET NTStatus = 0xC0000119
7356 STATUS_INVALID_LDT_DESCRIPTOR NTStatus = 0xC000011A
7357 STATUS_INVALID_IMAGE_NE_FORMAT NTStatus = 0xC000011B
7358 STATUS_RXACT_INVALID_STATE NTStatus = 0xC000011C
7359 STATUS_RXACT_COMMIT_FAILURE NTStatus = 0xC000011D
7360 STATUS_MAPPED_FILE_SIZE_ZERO NTStatus = 0xC000011E
7361 STATUS_TOO_MANY_OPENED_FILES NTStatus = 0xC000011F
7362 STATUS_CANCELLED NTStatus = 0xC0000120
7363 STATUS_CANNOT_DELETE NTStatus = 0xC0000121
7364 STATUS_INVALID_COMPUTER_NAME NTStatus = 0xC0000122
7365 STATUS_FILE_DELETED NTStatus = 0xC0000123
7366 STATUS_SPECIAL_ACCOUNT NTStatus = 0xC0000124
7367 STATUS_SPECIAL_GROUP NTStatus = 0xC0000125
7368 STATUS_SPECIAL_USER NTStatus = 0xC0000126
7369 STATUS_MEMBERS_PRIMARY_GROUP NTStatus = 0xC0000127
7370 STATUS_FILE_CLOSED NTStatus = 0xC0000128
7371 STATUS_TOO_MANY_THREADS NTStatus = 0xC0000129
7372 STATUS_THREAD_NOT_IN_PROCESS NTStatus = 0xC000012A
7373 STATUS_TOKEN_ALREADY_IN_USE NTStatus = 0xC000012B
7374 STATUS_PAGEFILE_QUOTA_EXCEEDED NTStatus = 0xC000012C
7375 STATUS_COMMITMENT_LIMIT NTStatus = 0xC000012D
7376 STATUS_INVALID_IMAGE_LE_FORMAT NTStatus = 0xC000012E
7377 STATUS_INVALID_IMAGE_NOT_MZ NTStatus = 0xC000012F
7378 STATUS_INVALID_IMAGE_PROTECT NTStatus = 0xC0000130
7379 STATUS_INVALID_IMAGE_WIN_16 NTStatus = 0xC0000131
7380 STATUS_LOGON_SERVER_CONFLICT NTStatus = 0xC0000132
7381 STATUS_TIME_DIFFERENCE_AT_DC NTStatus = 0xC0000133
7382 STATUS_SYNCHRONIZATION_REQUIRED NTStatus = 0xC0000134
7383 STATUS_DLL_NOT_FOUND NTStatus = 0xC0000135
7384 STATUS_OPEN_FAILED NTStatus = 0xC0000136
7385 STATUS_IO_PRIVILEGE_FAILED NTStatus = 0xC0000137
7386 STATUS_ORDINAL_NOT_FOUND NTStatus = 0xC0000138
7387 STATUS_ENTRYPOINT_NOT_FOUND NTStatus = 0xC0000139
7388 STATUS_CONTROL_C_EXIT NTStatus = 0xC000013A
7389 STATUS_LOCAL_DISCONNECT NTStatus = 0xC000013B
7390 STATUS_REMOTE_DISCONNECT NTStatus = 0xC000013C
7391 STATUS_REMOTE_RESOURCES NTStatus = 0xC000013D
7392 STATUS_LINK_FAILED NTStatus = 0xC000013E
7393 STATUS_LINK_TIMEOUT NTStatus = 0xC000013F
7394 STATUS_INVALID_CONNECTION NTStatus = 0xC0000140
7395 STATUS_INVALID_ADDRESS NTStatus = 0xC0000141
7396 STATUS_DLL_INIT_FAILED NTStatus = 0xC0000142
7397 STATUS_MISSING_SYSTEMFILE NTStatus = 0xC0000143
7398 STATUS_UNHANDLED_EXCEPTION NTStatus = 0xC0000144
7399 STATUS_APP_INIT_FAILURE NTStatus = 0xC0000145
7400 STATUS_PAGEFILE_CREATE_FAILED NTStatus = 0xC0000146
7401 STATUS_NO_PAGEFILE NTStatus = 0xC0000147
7402 STATUS_INVALID_LEVEL NTStatus = 0xC0000148
7403 STATUS_WRONG_PASSWORD_CORE NTStatus = 0xC0000149
7404 STATUS_ILLEGAL_FLOAT_CONTEXT NTStatus = 0xC000014A
7405 STATUS_PIPE_BROKEN NTStatus = 0xC000014B
7406 STATUS_REGISTRY_CORRUPT NTStatus = 0xC000014C
7407 STATUS_REGISTRY_IO_FAILED NTStatus = 0xC000014D
7408 STATUS_NO_EVENT_PAIR NTStatus = 0xC000014E
7409 STATUS_UNRECOGNIZED_VOLUME NTStatus = 0xC000014F
7410 STATUS_SERIAL_NO_DEVICE_INITED NTStatus = 0xC0000150
7411 STATUS_NO_SUCH_ALIAS NTStatus = 0xC0000151
7412 STATUS_MEMBER_NOT_IN_ALIAS NTStatus = 0xC0000152
7413 STATUS_MEMBER_IN_ALIAS NTStatus = 0xC0000153
7414 STATUS_ALIAS_EXISTS NTStatus = 0xC0000154
7415 STATUS_LOGON_NOT_GRANTED NTStatus = 0xC0000155
7416 STATUS_TOO_MANY_SECRETS NTStatus = 0xC0000156
7417 STATUS_SECRET_TOO_LONG NTStatus = 0xC0000157
7418 STATUS_INTERNAL_DB_ERROR NTStatus = 0xC0000158
7419 STATUS_FULLSCREEN_MODE NTStatus = 0xC0000159
7420 STATUS_TOO_MANY_CONTEXT_IDS NTStatus = 0xC000015A
7421 STATUS_LOGON_TYPE_NOT_GRANTED NTStatus = 0xC000015B
7422 STATUS_NOT_REGISTRY_FILE NTStatus = 0xC000015C
7423 STATUS_NT_CROSS_ENCRYPTION_REQUIRED NTStatus = 0xC000015D
7424 STATUS_DOMAIN_CTRLR_CONFIG_ERROR NTStatus = 0xC000015E
7425 STATUS_FT_MISSING_MEMBER NTStatus = 0xC000015F
7426 STATUS_ILL_FORMED_SERVICE_ENTRY NTStatus = 0xC0000160
7427 STATUS_ILLEGAL_CHARACTER NTStatus = 0xC0000161
7428 STATUS_UNMAPPABLE_CHARACTER NTStatus = 0xC0000162
7429 STATUS_UNDEFINED_CHARACTER NTStatus = 0xC0000163
7430 STATUS_FLOPPY_VOLUME NTStatus = 0xC0000164
7431 STATUS_FLOPPY_ID_MARK_NOT_FOUND NTStatus = 0xC0000165
7432 STATUS_FLOPPY_WRONG_CYLINDER NTStatus = 0xC0000166
7433 STATUS_FLOPPY_UNKNOWN_ERROR NTStatus = 0xC0000167
7434 STATUS_FLOPPY_BAD_REGISTERS NTStatus = 0xC0000168
7435 STATUS_DISK_RECALIBRATE_FAILED NTStatus = 0xC0000169
7436 STATUS_DISK_OPERATION_FAILED NTStatus = 0xC000016A
7437 STATUS_DISK_RESET_FAILED NTStatus = 0xC000016B
7438 STATUS_SHARED_IRQ_BUSY NTStatus = 0xC000016C
7439 STATUS_FT_ORPHANING NTStatus = 0xC000016D
7440 STATUS_BIOS_FAILED_TO_CONNECT_INTERRUPT NTStatus = 0xC000016E
7441 STATUS_PARTITION_FAILURE NTStatus = 0xC0000172
7442 STATUS_INVALID_BLOCK_LENGTH NTStatus = 0xC0000173
7443 STATUS_DEVICE_NOT_PARTITIONED NTStatus = 0xC0000174
7444 STATUS_UNABLE_TO_LOCK_MEDIA NTStatus = 0xC0000175
7445 STATUS_UNABLE_TO_UNLOAD_MEDIA NTStatus = 0xC0000176
7446 STATUS_EOM_OVERFLOW NTStatus = 0xC0000177
7447 STATUS_NO_MEDIA NTStatus = 0xC0000178
7448 STATUS_NO_SUCH_MEMBER NTStatus = 0xC000017A
7449 STATUS_INVALID_MEMBER NTStatus = 0xC000017B
7450 STATUS_KEY_DELETED NTStatus = 0xC000017C
7451 STATUS_NO_LOG_SPACE NTStatus = 0xC000017D
7452 STATUS_TOO_MANY_SIDS NTStatus = 0xC000017E
7453 STATUS_LM_CROSS_ENCRYPTION_REQUIRED NTStatus = 0xC000017F
7454 STATUS_KEY_HAS_CHILDREN NTStatus = 0xC0000180
7455 STATUS_CHILD_MUST_BE_VOLATILE NTStatus = 0xC0000181
7456 STATUS_DEVICE_CONFIGURATION_ERROR NTStatus = 0xC0000182
7457 STATUS_DRIVER_INTERNAL_ERROR NTStatus = 0xC0000183
7458 STATUS_INVALID_DEVICE_STATE NTStatus = 0xC0000184
7459 STATUS_IO_DEVICE_ERROR NTStatus = 0xC0000185
7460 STATUS_DEVICE_PROTOCOL_ERROR NTStatus = 0xC0000186
7461 STATUS_BACKUP_CONTROLLER NTStatus = 0xC0000187
7462 STATUS_LOG_FILE_FULL NTStatus = 0xC0000188
7463 STATUS_TOO_LATE NTStatus = 0xC0000189
7464 STATUS_NO_TRUST_LSA_SECRET NTStatus = 0xC000018A
7465 STATUS_NO_TRUST_SAM_ACCOUNT NTStatus = 0xC000018B
7466 STATUS_TRUSTED_DOMAIN_FAILURE NTStatus = 0xC000018C
7467 STATUS_TRUSTED_RELATIONSHIP_FAILURE NTStatus = 0xC000018D
7468 STATUS_EVENTLOG_FILE_CORRUPT NTStatus = 0xC000018E
7469 STATUS_EVENTLOG_CANT_START NTStatus = 0xC000018F
7470 STATUS_TRUST_FAILURE NTStatus = 0xC0000190
7471 STATUS_MUTANT_LIMIT_EXCEEDED NTStatus = 0xC0000191
7472 STATUS_NETLOGON_NOT_STARTED NTStatus = 0xC0000192
7473 STATUS_ACCOUNT_EXPIRED NTStatus = 0xC0000193
7474 STATUS_POSSIBLE_DEADLOCK NTStatus = 0xC0000194
7475 STATUS_NETWORK_CREDENTIAL_CONFLICT NTStatus = 0xC0000195
7476 STATUS_REMOTE_SESSION_LIMIT NTStatus = 0xC0000196
7477 STATUS_EVENTLOG_FILE_CHANGED NTStatus = 0xC0000197
7478 STATUS_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT NTStatus = 0xC0000198
7479 STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT NTStatus = 0xC0000199
7480 STATUS_NOLOGON_SERVER_TRUST_ACCOUNT NTStatus = 0xC000019A
7481 STATUS_DOMAIN_TRUST_INCONSISTENT NTStatus = 0xC000019B
7482 STATUS_FS_DRIVER_REQUIRED NTStatus = 0xC000019C
7483 STATUS_IMAGE_ALREADY_LOADED_AS_DLL NTStatus = 0xC000019D
7484 STATUS_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING NTStatus = 0xC000019E
7485 STATUS_SHORT_NAMES_NOT_ENABLED_ON_VOLUME NTStatus = 0xC000019F
7486 STATUS_SECURITY_STREAM_IS_INCONSISTENT NTStatus = 0xC00001A0
7487 STATUS_INVALID_LOCK_RANGE NTStatus = 0xC00001A1
7488 STATUS_INVALID_ACE_CONDITION NTStatus = 0xC00001A2
7489 STATUS_IMAGE_SUBSYSTEM_NOT_PRESENT NTStatus = 0xC00001A3
7490 STATUS_NOTIFICATION_GUID_ALREADY_DEFINED NTStatus = 0xC00001A4
7491 STATUS_INVALID_EXCEPTION_HANDLER NTStatus = 0xC00001A5
7492 STATUS_DUPLICATE_PRIVILEGES NTStatus = 0xC00001A6
7493 STATUS_NOT_ALLOWED_ON_SYSTEM_FILE NTStatus = 0xC00001A7
7494 STATUS_REPAIR_NEEDED NTStatus = 0xC00001A8
7495 STATUS_QUOTA_NOT_ENABLED NTStatus = 0xC00001A9
7496 STATUS_NO_APPLICATION_PACKAGE NTStatus = 0xC00001AA
7497 STATUS_FILE_METADATA_OPTIMIZATION_IN_PROGRESS NTStatus = 0xC00001AB
7498 STATUS_NOT_SAME_OBJECT NTStatus = 0xC00001AC
7499 STATUS_FATAL_MEMORY_EXHAUSTION NTStatus = 0xC00001AD
7500 STATUS_ERROR_PROCESS_NOT_IN_JOB NTStatus = 0xC00001AE
7501 STATUS_CPU_SET_INVALID NTStatus = 0xC00001AF
7502 STATUS_IO_DEVICE_INVALID_DATA NTStatus = 0xC00001B0
7503 STATUS_IO_UNALIGNED_WRITE NTStatus = 0xC00001B1
7504 STATUS_NETWORK_OPEN_RESTRICTION NTStatus = 0xC0000201
7505 STATUS_NO_USER_SESSION_KEY NTStatus = 0xC0000202
7506 STATUS_USER_SESSION_DELETED NTStatus = 0xC0000203
7507 STATUS_RESOURCE_LANG_NOT_FOUND NTStatus = 0xC0000204
7508 STATUS_INSUFF_SERVER_RESOURCES NTStatus = 0xC0000205
7509 STATUS_INVALID_BUFFER_SIZE NTStatus = 0xC0000206
7510 STATUS_INVALID_ADDRESS_COMPONENT NTStatus = 0xC0000207
7511 STATUS_INVALID_ADDRESS_WILDCARD NTStatus = 0xC0000208
7512 STATUS_TOO_MANY_ADDRESSES NTStatus = 0xC0000209
7513 STATUS_ADDRESS_ALREADY_EXISTS NTStatus = 0xC000020A
7514 STATUS_ADDRESS_CLOSED NTStatus = 0xC000020B
7515 STATUS_CONNECTION_DISCONNECTED NTStatus = 0xC000020C
7516 STATUS_CONNECTION_RESET NTStatus = 0xC000020D
7517 STATUS_TOO_MANY_NODES NTStatus = 0xC000020E
7518 STATUS_TRANSACTION_ABORTED NTStatus = 0xC000020F
7519 STATUS_TRANSACTION_TIMED_OUT NTStatus = 0xC0000210
7520 STATUS_TRANSACTION_NO_RELEASE NTStatus = 0xC0000211
7521 STATUS_TRANSACTION_NO_MATCH NTStatus = 0xC0000212
7522 STATUS_TRANSACTION_RESPONDED NTStatus = 0xC0000213
7523 STATUS_TRANSACTION_INVALID_ID NTStatus = 0xC0000214
7524 STATUS_TRANSACTION_INVALID_TYPE NTStatus = 0xC0000215
7525 STATUS_NOT_SERVER_SESSION NTStatus = 0xC0000216
7526 STATUS_NOT_CLIENT_SESSION NTStatus = 0xC0000217
7527 STATUS_CANNOT_LOAD_REGISTRY_FILE NTStatus = 0xC0000218
7528 STATUS_DEBUG_ATTACH_FAILED NTStatus = 0xC0000219
7529 STATUS_SYSTEM_PROCESS_TERMINATED NTStatus = 0xC000021A
7530 STATUS_DATA_NOT_ACCEPTED NTStatus = 0xC000021B
7531 STATUS_NO_BROWSER_SERVERS_FOUND NTStatus = 0xC000021C
7532 STATUS_VDM_HARD_ERROR NTStatus = 0xC000021D
7533 STATUS_DRIVER_CANCEL_TIMEOUT NTStatus = 0xC000021E
7534 STATUS_REPLY_MESSAGE_MISMATCH NTStatus = 0xC000021F
7535 STATUS_MAPPED_ALIGNMENT NTStatus = 0xC0000220
7536 STATUS_IMAGE_CHECKSUM_MISMATCH NTStatus = 0xC0000221
7537 STATUS_LOST_WRITEBEHIND_DATA NTStatus = 0xC0000222
7538 STATUS_CLIENT_SERVER_PARAMETERS_INVALID NTStatus = 0xC0000223
7539 STATUS_PASSWORD_MUST_CHANGE NTStatus = 0xC0000224
7540 STATUS_NOT_FOUND NTStatus = 0xC0000225
7541 STATUS_NOT_TINY_STREAM NTStatus = 0xC0000226
7542 STATUS_RECOVERY_FAILURE NTStatus = 0xC0000227
7543 STATUS_STACK_OVERFLOW_READ NTStatus = 0xC0000228
7544 STATUS_FAIL_CHECK NTStatus = 0xC0000229
7545 STATUS_DUPLICATE_OBJECTID NTStatus = 0xC000022A
7546 STATUS_OBJECTID_EXISTS NTStatus = 0xC000022B
7547 STATUS_CONVERT_TO_LARGE NTStatus = 0xC000022C
7548 STATUS_RETRY NTStatus = 0xC000022D
7549 STATUS_FOUND_OUT_OF_SCOPE NTStatus = 0xC000022E
7550 STATUS_ALLOCATE_BUCKET NTStatus = 0xC000022F
7551 STATUS_PROPSET_NOT_FOUND NTStatus = 0xC0000230
7552 STATUS_MARSHALL_OVERFLOW NTStatus = 0xC0000231
7553 STATUS_INVALID_VARIANT NTStatus = 0xC0000232
7554 STATUS_DOMAIN_CONTROLLER_NOT_FOUND NTStatus = 0xC0000233
7555 STATUS_ACCOUNT_LOCKED_OUT NTStatus = 0xC0000234
7556 STATUS_HANDLE_NOT_CLOSABLE NTStatus = 0xC0000235
7557 STATUS_CONNECTION_REFUSED NTStatus = 0xC0000236
7558 STATUS_GRACEFUL_DISCONNECT NTStatus = 0xC0000237
7559 STATUS_ADDRESS_ALREADY_ASSOCIATED NTStatus = 0xC0000238
7560 STATUS_ADDRESS_NOT_ASSOCIATED NTStatus = 0xC0000239
7561 STATUS_CONNECTION_INVALID NTStatus = 0xC000023A
7562 STATUS_CONNECTION_ACTIVE NTStatus = 0xC000023B
7563 STATUS_NETWORK_UNREACHABLE NTStatus = 0xC000023C
7564 STATUS_HOST_UNREACHABLE NTStatus = 0xC000023D
7565 STATUS_PROTOCOL_UNREACHABLE NTStatus = 0xC000023E
7566 STATUS_PORT_UNREACHABLE NTStatus = 0xC000023F
7567 STATUS_REQUEST_ABORTED NTStatus = 0xC0000240
7568 STATUS_CONNECTION_ABORTED NTStatus = 0xC0000241
7569 STATUS_BAD_COMPRESSION_BUFFER NTStatus = 0xC0000242
7570 STATUS_USER_MAPPED_FILE NTStatus = 0xC0000243
7571 STATUS_AUDIT_FAILED NTStatus = 0xC0000244
7572 STATUS_TIMER_RESOLUTION_NOT_SET NTStatus = 0xC0000245
7573 STATUS_CONNECTION_COUNT_LIMIT NTStatus = 0xC0000246
7574 STATUS_LOGIN_TIME_RESTRICTION NTStatus = 0xC0000247
7575 STATUS_LOGIN_WKSTA_RESTRICTION NTStatus = 0xC0000248
7576 STATUS_IMAGE_MP_UP_MISMATCH NTStatus = 0xC0000249
7577 STATUS_INSUFFICIENT_LOGON_INFO NTStatus = 0xC0000250
7578 STATUS_BAD_DLL_ENTRYPOINT NTStatus = 0xC0000251
7579 STATUS_BAD_SERVICE_ENTRYPOINT NTStatus = 0xC0000252
7580 STATUS_LPC_REPLY_LOST NTStatus = 0xC0000253
7581 STATUS_IP_ADDRESS_CONFLICT1 NTStatus = 0xC0000254
7582 STATUS_IP_ADDRESS_CONFLICT2 NTStatus = 0xC0000255
7583 STATUS_REGISTRY_QUOTA_LIMIT NTStatus = 0xC0000256
7584 STATUS_PATH_NOT_COVERED NTStatus = 0xC0000257
7585 STATUS_NO_CALLBACK_ACTIVE NTStatus = 0xC0000258
7586 STATUS_LICENSE_QUOTA_EXCEEDED NTStatus = 0xC0000259
7587 STATUS_PWD_TOO_SHORT NTStatus = 0xC000025A
7588 STATUS_PWD_TOO_RECENT NTStatus = 0xC000025B
7589 STATUS_PWD_HISTORY_CONFLICT NTStatus = 0xC000025C
7590 STATUS_PLUGPLAY_NO_DEVICE NTStatus = 0xC000025E
7591 STATUS_UNSUPPORTED_COMPRESSION NTStatus = 0xC000025F
7592 STATUS_INVALID_HW_PROFILE NTStatus = 0xC0000260
7593 STATUS_INVALID_PLUGPLAY_DEVICE_PATH NTStatus = 0xC0000261
7594 STATUS_DRIVER_ORDINAL_NOT_FOUND NTStatus = 0xC0000262
7595 STATUS_DRIVER_ENTRYPOINT_NOT_FOUND NTStatus = 0xC0000263
7596 STATUS_RESOURCE_NOT_OWNED NTStatus = 0xC0000264
7597 STATUS_TOO_MANY_LINKS NTStatus = 0xC0000265
7598 STATUS_QUOTA_LIST_INCONSISTENT NTStatus = 0xC0000266
7599 STATUS_FILE_IS_OFFLINE NTStatus = 0xC0000267
7600 STATUS_EVALUATION_EXPIRATION NTStatus = 0xC0000268
7601 STATUS_ILLEGAL_DLL_RELOCATION NTStatus = 0xC0000269
7602 STATUS_LICENSE_VIOLATION NTStatus = 0xC000026A
7603 STATUS_DLL_INIT_FAILED_LOGOFF NTStatus = 0xC000026B
7604 STATUS_DRIVER_UNABLE_TO_LOAD NTStatus = 0xC000026C
7605 STATUS_DFS_UNAVAILABLE NTStatus = 0xC000026D
7606 STATUS_VOLUME_DISMOUNTED NTStatus = 0xC000026E
7607 STATUS_WX86_INTERNAL_ERROR NTStatus = 0xC000026F
7608 STATUS_WX86_FLOAT_STACK_CHECK NTStatus = 0xC0000270
7609 STATUS_VALIDATE_CONTINUE NTStatus = 0xC0000271
7610 STATUS_NO_MATCH NTStatus = 0xC0000272
7611 STATUS_NO_MORE_MATCHES NTStatus = 0xC0000273
7612 STATUS_NOT_A_REPARSE_POINT NTStatus = 0xC0000275
7613 STATUS_IO_REPARSE_TAG_INVALID NTStatus = 0xC0000276
7614 STATUS_IO_REPARSE_TAG_MISMATCH NTStatus = 0xC0000277
7615 STATUS_IO_REPARSE_DATA_INVALID NTStatus = 0xC0000278
7616 STATUS_IO_REPARSE_TAG_NOT_HANDLED NTStatus = 0xC0000279
7617 STATUS_PWD_TOO_LONG NTStatus = 0xC000027A
7618 STATUS_STOWED_EXCEPTION NTStatus = 0xC000027B
7619 STATUS_CONTEXT_STOWED_EXCEPTION NTStatus = 0xC000027C
7620 STATUS_REPARSE_POINT_NOT_RESOLVED NTStatus = 0xC0000280
7621 STATUS_DIRECTORY_IS_A_REPARSE_POINT NTStatus = 0xC0000281
7622 STATUS_RANGE_LIST_CONFLICT NTStatus = 0xC0000282
7623 STATUS_SOURCE_ELEMENT_EMPTY NTStatus = 0xC0000283
7624 STATUS_DESTINATION_ELEMENT_FULL NTStatus = 0xC0000284
7625 STATUS_ILLEGAL_ELEMENT_ADDRESS NTStatus = 0xC0000285
7626 STATUS_MAGAZINE_NOT_PRESENT NTStatus = 0xC0000286
7627 STATUS_REINITIALIZATION_NEEDED NTStatus = 0xC0000287
7628 STATUS_DEVICE_REQUIRES_CLEANING NTStatus = 0x80000288
7629 STATUS_DEVICE_DOOR_OPEN NTStatus = 0x80000289
7630 STATUS_ENCRYPTION_FAILED NTStatus = 0xC000028A
7631 STATUS_DECRYPTION_FAILED NTStatus = 0xC000028B
7632 STATUS_RANGE_NOT_FOUND NTStatus = 0xC000028C
7633 STATUS_NO_RECOVERY_POLICY NTStatus = 0xC000028D
7634 STATUS_NO_EFS NTStatus = 0xC000028E
7635 STATUS_WRONG_EFS NTStatus = 0xC000028F
7636 STATUS_NO_USER_KEYS NTStatus = 0xC0000290
7637 STATUS_FILE_NOT_ENCRYPTED NTStatus = 0xC0000291
7638 STATUS_NOT_EXPORT_FORMAT NTStatus = 0xC0000292
7639 STATUS_FILE_ENCRYPTED NTStatus = 0xC0000293
7640 STATUS_WAKE_SYSTEM NTStatus = 0x40000294
7641 STATUS_WMI_GUID_NOT_FOUND NTStatus = 0xC0000295
7642 STATUS_WMI_INSTANCE_NOT_FOUND NTStatus = 0xC0000296
7643 STATUS_WMI_ITEMID_NOT_FOUND NTStatus = 0xC0000297
7644 STATUS_WMI_TRY_AGAIN NTStatus = 0xC0000298
7645 STATUS_SHARED_POLICY NTStatus = 0xC0000299
7646 STATUS_POLICY_OBJECT_NOT_FOUND NTStatus = 0xC000029A
7647 STATUS_POLICY_ONLY_IN_DS NTStatus = 0xC000029B
7648 STATUS_VOLUME_NOT_UPGRADED NTStatus = 0xC000029C
7649 STATUS_REMOTE_STORAGE_NOT_ACTIVE NTStatus = 0xC000029D
7650 STATUS_REMOTE_STORAGE_MEDIA_ERROR NTStatus = 0xC000029E
7651 STATUS_NO_TRACKING_SERVICE NTStatus = 0xC000029F
7652 STATUS_SERVER_SID_MISMATCH NTStatus = 0xC00002A0
7653 STATUS_DS_NO_ATTRIBUTE_OR_VALUE NTStatus = 0xC00002A1
7654 STATUS_DS_INVALID_ATTRIBUTE_SYNTAX NTStatus = 0xC00002A2
7655 STATUS_DS_ATTRIBUTE_TYPE_UNDEFINED NTStatus = 0xC00002A3
7656 STATUS_DS_ATTRIBUTE_OR_VALUE_EXISTS NTStatus = 0xC00002A4
7657 STATUS_DS_BUSY NTStatus = 0xC00002A5
7658 STATUS_DS_UNAVAILABLE NTStatus = 0xC00002A6
7659 STATUS_DS_NO_RIDS_ALLOCATED NTStatus = 0xC00002A7
7660 STATUS_DS_NO_MORE_RIDS NTStatus = 0xC00002A8
7661 STATUS_DS_INCORRECT_ROLE_OWNER NTStatus = 0xC00002A9
7662 STATUS_DS_RIDMGR_INIT_ERROR NTStatus = 0xC00002AA
7663 STATUS_DS_OBJ_CLASS_VIOLATION NTStatus = 0xC00002AB
7664 STATUS_DS_CANT_ON_NON_LEAF NTStatus = 0xC00002AC
7665 STATUS_DS_CANT_ON_RDN NTStatus = 0xC00002AD
7666 STATUS_DS_CANT_MOD_OBJ_CLASS NTStatus = 0xC00002AE
7667 STATUS_DS_CROSS_DOM_MOVE_FAILED NTStatus = 0xC00002AF
7668 STATUS_DS_GC_NOT_AVAILABLE NTStatus = 0xC00002B0
7669 STATUS_DIRECTORY_SERVICE_REQUIRED NTStatus = 0xC00002B1
7670 STATUS_REPARSE_ATTRIBUTE_CONFLICT NTStatus = 0xC00002B2
7671 STATUS_CANT_ENABLE_DENY_ONLY NTStatus = 0xC00002B3
7672 STATUS_FLOAT_MULTIPLE_FAULTS NTStatus = 0xC00002B4
7673 STATUS_FLOAT_MULTIPLE_TRAPS NTStatus = 0xC00002B5
7674 STATUS_DEVICE_REMOVED NTStatus = 0xC00002B6
7675 STATUS_JOURNAL_DELETE_IN_PROGRESS NTStatus = 0xC00002B7
7676 STATUS_JOURNAL_NOT_ACTIVE NTStatus = 0xC00002B8
7677 STATUS_NOINTERFACE NTStatus = 0xC00002B9
7678 STATUS_DS_RIDMGR_DISABLED NTStatus = 0xC00002BA
7679 STATUS_DS_ADMIN_LIMIT_EXCEEDED NTStatus = 0xC00002C1
7680 STATUS_DRIVER_FAILED_SLEEP NTStatus = 0xC00002C2
7681 STATUS_MUTUAL_AUTHENTICATION_FAILED NTStatus = 0xC00002C3
7682 STATUS_CORRUPT_SYSTEM_FILE NTStatus = 0xC00002C4
7683 STATUS_DATATYPE_MISALIGNMENT_ERROR NTStatus = 0xC00002C5
7684 STATUS_WMI_READ_ONLY NTStatus = 0xC00002C6
7685 STATUS_WMI_SET_FAILURE NTStatus = 0xC00002C7
7686 STATUS_COMMITMENT_MINIMUM NTStatus = 0xC00002C8
7687 STATUS_REG_NAT_CONSUMPTION NTStatus = 0xC00002C9
7688 STATUS_TRANSPORT_FULL NTStatus = 0xC00002CA
7689 STATUS_DS_SAM_INIT_FAILURE NTStatus = 0xC00002CB
7690 STATUS_ONLY_IF_CONNECTED NTStatus = 0xC00002CC
7691 STATUS_DS_SENSITIVE_GROUP_VIOLATION NTStatus = 0xC00002CD
7692 STATUS_PNP_RESTART_ENUMERATION NTStatus = 0xC00002CE
7693 STATUS_JOURNAL_ENTRY_DELETED NTStatus = 0xC00002CF
7694 STATUS_DS_CANT_MOD_PRIMARYGROUPID NTStatus = 0xC00002D0
7695 STATUS_SYSTEM_IMAGE_BAD_SIGNATURE NTStatus = 0xC00002D1
7696 STATUS_PNP_REBOOT_REQUIRED NTStatus = 0xC00002D2
7697 STATUS_POWER_STATE_INVALID NTStatus = 0xC00002D3
7698 STATUS_DS_INVALID_GROUP_TYPE NTStatus = 0xC00002D4
7699 STATUS_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN NTStatus = 0xC00002D5
7700 STATUS_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN NTStatus = 0xC00002D6
7701 STATUS_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER NTStatus = 0xC00002D7
7702 STATUS_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER NTStatus = 0xC00002D8
7703 STATUS_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER NTStatus = 0xC00002D9
7704 STATUS_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER NTStatus = 0xC00002DA
7705 STATUS_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER NTStatus = 0xC00002DB
7706 STATUS_DS_HAVE_PRIMARY_MEMBERS NTStatus = 0xC00002DC
7707 STATUS_WMI_NOT_SUPPORTED NTStatus = 0xC00002DD
7708 STATUS_INSUFFICIENT_POWER NTStatus = 0xC00002DE
7709 STATUS_SAM_NEED_BOOTKEY_PASSWORD NTStatus = 0xC00002DF
7710 STATUS_SAM_NEED_BOOTKEY_FLOPPY NTStatus = 0xC00002E0
7711 STATUS_DS_CANT_START NTStatus = 0xC00002E1
7712 STATUS_DS_INIT_FAILURE NTStatus = 0xC00002E2
7713 STATUS_SAM_INIT_FAILURE NTStatus = 0xC00002E3
7714 STATUS_DS_GC_REQUIRED NTStatus = 0xC00002E4
7715 STATUS_DS_LOCAL_MEMBER_OF_LOCAL_ONLY NTStatus = 0xC00002E5
7716 STATUS_DS_NO_FPO_IN_UNIVERSAL_GROUPS NTStatus = 0xC00002E6
7717 STATUS_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED NTStatus = 0xC00002E7
7718 STATUS_MULTIPLE_FAULT_VIOLATION NTStatus = 0xC00002E8
7719 STATUS_CURRENT_DOMAIN_NOT_ALLOWED NTStatus = 0xC00002E9
7720 STATUS_CANNOT_MAKE NTStatus = 0xC00002EA
7721 STATUS_SYSTEM_SHUTDOWN NTStatus = 0xC00002EB
7722 STATUS_DS_INIT_FAILURE_CONSOLE NTStatus = 0xC00002EC
7723 STATUS_DS_SAM_INIT_FAILURE_CONSOLE NTStatus = 0xC00002ED
7724 STATUS_UNFINISHED_CONTEXT_DELETED NTStatus = 0xC00002EE
7725 STATUS_NO_TGT_REPLY NTStatus = 0xC00002EF
7726 STATUS_OBJECTID_NOT_FOUND NTStatus = 0xC00002F0
7727 STATUS_NO_IP_ADDRESSES NTStatus = 0xC00002F1
7728 STATUS_WRONG_CREDENTIAL_HANDLE NTStatus = 0xC00002F2
7729 STATUS_CRYPTO_SYSTEM_INVALID NTStatus = 0xC00002F3
7730 STATUS_MAX_REFERRALS_EXCEEDED NTStatus = 0xC00002F4
7731 STATUS_MUST_BE_KDC NTStatus = 0xC00002F5
7732 STATUS_STRONG_CRYPTO_NOT_SUPPORTED NTStatus = 0xC00002F6
7733 STATUS_TOO_MANY_PRINCIPALS NTStatus = 0xC00002F7
7734 STATUS_NO_PA_DATA NTStatus = 0xC00002F8
7735 STATUS_PKINIT_NAME_MISMATCH NTStatus = 0xC00002F9
7736 STATUS_SMARTCARD_LOGON_REQUIRED NTStatus = 0xC00002FA
7737 STATUS_KDC_INVALID_REQUEST NTStatus = 0xC00002FB
7738 STATUS_KDC_UNABLE_TO_REFER NTStatus = 0xC00002FC
7739 STATUS_KDC_UNKNOWN_ETYPE NTStatus = 0xC00002FD
7740 STATUS_SHUTDOWN_IN_PROGRESS NTStatus = 0xC00002FE
7741 STATUS_SERVER_SHUTDOWN_IN_PROGRESS NTStatus = 0xC00002FF
7742 STATUS_NOT_SUPPORTED_ON_SBS NTStatus = 0xC0000300
7743 STATUS_WMI_GUID_DISCONNECTED NTStatus = 0xC0000301
7744 STATUS_WMI_ALREADY_DISABLED NTStatus = 0xC0000302
7745 STATUS_WMI_ALREADY_ENABLED NTStatus = 0xC0000303
7746 STATUS_MFT_TOO_FRAGMENTED NTStatus = 0xC0000304
7747 STATUS_COPY_PROTECTION_FAILURE NTStatus = 0xC0000305
7748 STATUS_CSS_AUTHENTICATION_FAILURE NTStatus = 0xC0000306
7749 STATUS_CSS_KEY_NOT_PRESENT NTStatus = 0xC0000307
7750 STATUS_CSS_KEY_NOT_ESTABLISHED NTStatus = 0xC0000308
7751 STATUS_CSS_SCRAMBLED_SECTOR NTStatus = 0xC0000309
7752 STATUS_CSS_REGION_MISMATCH NTStatus = 0xC000030A
7753 STATUS_CSS_RESETS_EXHAUSTED NTStatus = 0xC000030B
7754 STATUS_PASSWORD_CHANGE_REQUIRED NTStatus = 0xC000030C
7755 STATUS_LOST_MODE_LOGON_RESTRICTION NTStatus = 0xC000030D
7756 STATUS_PKINIT_FAILURE NTStatus = 0xC0000320
7757 STATUS_SMARTCARD_SUBSYSTEM_FAILURE NTStatus = 0xC0000321
7758 STATUS_NO_KERB_KEY NTStatus = 0xC0000322
7759 STATUS_HOST_DOWN NTStatus = 0xC0000350
7760 STATUS_UNSUPPORTED_PREAUTH NTStatus = 0xC0000351
7761 STATUS_EFS_ALG_BLOB_TOO_BIG NTStatus = 0xC0000352
7762 STATUS_PORT_NOT_SET NTStatus = 0xC0000353
7763 STATUS_DEBUGGER_INACTIVE NTStatus = 0xC0000354
7764 STATUS_DS_VERSION_CHECK_FAILURE NTStatus = 0xC0000355
7765 STATUS_AUDITING_DISABLED NTStatus = 0xC0000356
7766 STATUS_PRENT4_MACHINE_ACCOUNT NTStatus = 0xC0000357
7767 STATUS_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER NTStatus = 0xC0000358
7768 STATUS_INVALID_IMAGE_WIN_32 NTStatus = 0xC0000359
7769 STATUS_INVALID_IMAGE_WIN_64 NTStatus = 0xC000035A
7770 STATUS_BAD_BINDINGS NTStatus = 0xC000035B
7771 STATUS_NETWORK_SESSION_EXPIRED NTStatus = 0xC000035C
7772 STATUS_APPHELP_BLOCK NTStatus = 0xC000035D
7773 STATUS_ALL_SIDS_FILTERED NTStatus = 0xC000035E
7774 STATUS_NOT_SAFE_MODE_DRIVER NTStatus = 0xC000035F
7775 STATUS_ACCESS_DISABLED_BY_POLICY_DEFAULT NTStatus = 0xC0000361
7776 STATUS_ACCESS_DISABLED_BY_POLICY_PATH NTStatus = 0xC0000362
7777 STATUS_ACCESS_DISABLED_BY_POLICY_PUBLISHER NTStatus = 0xC0000363
7778 STATUS_ACCESS_DISABLED_BY_POLICY_OTHER NTStatus = 0xC0000364
7779 STATUS_FAILED_DRIVER_ENTRY NTStatus = 0xC0000365
7780 STATUS_DEVICE_ENUMERATION_ERROR NTStatus = 0xC0000366
7781 STATUS_MOUNT_POINT_NOT_RESOLVED NTStatus = 0xC0000368
7782 STATUS_INVALID_DEVICE_OBJECT_PARAMETER NTStatus = 0xC0000369
7783 STATUS_MCA_OCCURED NTStatus = 0xC000036A
7784 STATUS_DRIVER_BLOCKED_CRITICAL NTStatus = 0xC000036B
7785 STATUS_DRIVER_BLOCKED NTStatus = 0xC000036C
7786 STATUS_DRIVER_DATABASE_ERROR NTStatus = 0xC000036D
7787 STATUS_SYSTEM_HIVE_TOO_LARGE NTStatus = 0xC000036E
7788 STATUS_INVALID_IMPORT_OF_NON_DLL NTStatus = 0xC000036F
7789 STATUS_DS_SHUTTING_DOWN NTStatus = 0x40000370
7790 STATUS_NO_SECRETS NTStatus = 0xC0000371
7791 STATUS_ACCESS_DISABLED_NO_SAFER_UI_BY_POLICY NTStatus = 0xC0000372
7792 STATUS_FAILED_STACK_SWITCH NTStatus = 0xC0000373
7793 STATUS_HEAP_CORRUPTION NTStatus = 0xC0000374
7794 STATUS_SMARTCARD_WRONG_PIN NTStatus = 0xC0000380
7795 STATUS_SMARTCARD_CARD_BLOCKED NTStatus = 0xC0000381
7796 STATUS_SMARTCARD_CARD_NOT_AUTHENTICATED NTStatus = 0xC0000382
7797 STATUS_SMARTCARD_NO_CARD NTStatus = 0xC0000383
7798 STATUS_SMARTCARD_NO_KEY_CONTAINER NTStatus = 0xC0000384
7799 STATUS_SMARTCARD_NO_CERTIFICATE NTStatus = 0xC0000385
7800 STATUS_SMARTCARD_NO_KEYSET NTStatus = 0xC0000386
7801 STATUS_SMARTCARD_IO_ERROR NTStatus = 0xC0000387
7802 STATUS_DOWNGRADE_DETECTED NTStatus = 0xC0000388
7803 STATUS_SMARTCARD_CERT_REVOKED NTStatus = 0xC0000389
7804 STATUS_ISSUING_CA_UNTRUSTED NTStatus = 0xC000038A
7805 STATUS_REVOCATION_OFFLINE_C NTStatus = 0xC000038B
7806 STATUS_PKINIT_CLIENT_FAILURE NTStatus = 0xC000038C
7807 STATUS_SMARTCARD_CERT_EXPIRED NTStatus = 0xC000038D
7808 STATUS_DRIVER_FAILED_PRIOR_UNLOAD NTStatus = 0xC000038E
7809 STATUS_SMARTCARD_SILENT_CONTEXT NTStatus = 0xC000038F
7810 STATUS_PER_USER_TRUST_QUOTA_EXCEEDED NTStatus = 0xC0000401
7811 STATUS_ALL_USER_TRUST_QUOTA_EXCEEDED NTStatus = 0xC0000402
7812 STATUS_USER_DELETE_TRUST_QUOTA_EXCEEDED NTStatus = 0xC0000403
7813 STATUS_DS_NAME_NOT_UNIQUE NTStatus = 0xC0000404
7814 STATUS_DS_DUPLICATE_ID_FOUND NTStatus = 0xC0000405
7815 STATUS_DS_GROUP_CONVERSION_ERROR NTStatus = 0xC0000406
7816 STATUS_VOLSNAP_PREPARE_HIBERNATE NTStatus = 0xC0000407
7817 STATUS_USER2USER_REQUIRED NTStatus = 0xC0000408
7818 STATUS_STACK_BUFFER_OVERRUN NTStatus = 0xC0000409
7819 STATUS_NO_S4U_PROT_SUPPORT NTStatus = 0xC000040A
7820 STATUS_CROSSREALM_DELEGATION_FAILURE NTStatus = 0xC000040B
7821 STATUS_REVOCATION_OFFLINE_KDC NTStatus = 0xC000040C
7822 STATUS_ISSUING_CA_UNTRUSTED_KDC NTStatus = 0xC000040D
7823 STATUS_KDC_CERT_EXPIRED NTStatus = 0xC000040E
7824 STATUS_KDC_CERT_REVOKED NTStatus = 0xC000040F
7825 STATUS_PARAMETER_QUOTA_EXCEEDED NTStatus = 0xC0000410
7826 STATUS_HIBERNATION_FAILURE NTStatus = 0xC0000411
7827 STATUS_DELAY_LOAD_FAILED NTStatus = 0xC0000412
7828 STATUS_AUTHENTICATION_FIREWALL_FAILED NTStatus = 0xC0000413
7829 STATUS_VDM_DISALLOWED NTStatus = 0xC0000414
7830 STATUS_HUNG_DISPLAY_DRIVER_THREAD NTStatus = 0xC0000415
7831 STATUS_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE NTStatus = 0xC0000416
7832 STATUS_INVALID_CRUNTIME_PARAMETER NTStatus = 0xC0000417
7833 STATUS_NTLM_BLOCKED NTStatus = 0xC0000418
7834 STATUS_DS_SRC_SID_EXISTS_IN_FOREST NTStatus = 0xC0000419
7835 STATUS_DS_DOMAIN_NAME_EXISTS_IN_FOREST NTStatus = 0xC000041A
7836 STATUS_DS_FLAT_NAME_EXISTS_IN_FOREST NTStatus = 0xC000041B
7837 STATUS_INVALID_USER_PRINCIPAL_NAME NTStatus = 0xC000041C
7838 STATUS_FATAL_USER_CALLBACK_EXCEPTION NTStatus = 0xC000041D
7839 STATUS_ASSERTION_FAILURE NTStatus = 0xC0000420
7840 STATUS_VERIFIER_STOP NTStatus = 0xC0000421
7841 STATUS_CALLBACK_POP_STACK NTStatus = 0xC0000423
7842 STATUS_INCOMPATIBLE_DRIVER_BLOCKED NTStatus = 0xC0000424
7843 STATUS_HIVE_UNLOADED NTStatus = 0xC0000425
7844 STATUS_COMPRESSION_DISABLED NTStatus = 0xC0000426
7845 STATUS_FILE_SYSTEM_LIMITATION NTStatus = 0xC0000427
7846 STATUS_INVALID_IMAGE_HASH NTStatus = 0xC0000428
7847 STATUS_NOT_CAPABLE NTStatus = 0xC0000429
7848 STATUS_REQUEST_OUT_OF_SEQUENCE NTStatus = 0xC000042A
7849 STATUS_IMPLEMENTATION_LIMIT NTStatus = 0xC000042B
7850 STATUS_ELEVATION_REQUIRED NTStatus = 0xC000042C
7851 STATUS_NO_SECURITY_CONTEXT NTStatus = 0xC000042D
7852 STATUS_PKU2U_CERT_FAILURE NTStatus = 0xC000042F
7853 STATUS_BEYOND_VDL NTStatus = 0xC0000432
7854 STATUS_ENCOUNTERED_WRITE_IN_PROGRESS NTStatus = 0xC0000433
7855 STATUS_PTE_CHANGED NTStatus = 0xC0000434
7856 STATUS_PURGE_FAILED NTStatus = 0xC0000435
7857 STATUS_CRED_REQUIRES_CONFIRMATION NTStatus = 0xC0000440
7858 STATUS_CS_ENCRYPTION_INVALID_SERVER_RESPONSE NTStatus = 0xC0000441
7859 STATUS_CS_ENCRYPTION_UNSUPPORTED_SERVER NTStatus = 0xC0000442
7860 STATUS_CS_ENCRYPTION_EXISTING_ENCRYPTED_FILE NTStatus = 0xC0000443
7861 STATUS_CS_ENCRYPTION_NEW_ENCRYPTED_FILE NTStatus = 0xC0000444
7862 STATUS_CS_ENCRYPTION_FILE_NOT_CSE NTStatus = 0xC0000445
7863 STATUS_INVALID_LABEL NTStatus = 0xC0000446
7864 STATUS_DRIVER_PROCESS_TERMINATED NTStatus = 0xC0000450
7865 STATUS_AMBIGUOUS_SYSTEM_DEVICE NTStatus = 0xC0000451
7866 STATUS_SYSTEM_DEVICE_NOT_FOUND NTStatus = 0xC0000452
7867 STATUS_RESTART_BOOT_APPLICATION NTStatus = 0xC0000453
7868 STATUS_INSUFFICIENT_NVRAM_RESOURCES NTStatus = 0xC0000454
7869 STATUS_INVALID_SESSION NTStatus = 0xC0000455
7870 STATUS_THREAD_ALREADY_IN_SESSION NTStatus = 0xC0000456
7871 STATUS_THREAD_NOT_IN_SESSION NTStatus = 0xC0000457
7872 STATUS_INVALID_WEIGHT NTStatus = 0xC0000458
7873 STATUS_REQUEST_PAUSED NTStatus = 0xC0000459
7874 STATUS_NO_RANGES_PROCESSED NTStatus = 0xC0000460
7875 STATUS_DISK_RESOURCES_EXHAUSTED NTStatus = 0xC0000461
7876 STATUS_NEEDS_REMEDIATION NTStatus = 0xC0000462
7877 STATUS_DEVICE_FEATURE_NOT_SUPPORTED NTStatus = 0xC0000463
7878 STATUS_DEVICE_UNREACHABLE NTStatus = 0xC0000464
7879 STATUS_INVALID_TOKEN NTStatus = 0xC0000465
7880 STATUS_SERVER_UNAVAILABLE NTStatus = 0xC0000466
7881 STATUS_FILE_NOT_AVAILABLE NTStatus = 0xC0000467
7882 STATUS_DEVICE_INSUFFICIENT_RESOURCES NTStatus = 0xC0000468
7883 STATUS_PACKAGE_UPDATING NTStatus = 0xC0000469
7884 STATUS_NOT_READ_FROM_COPY NTStatus = 0xC000046A
7885 STATUS_FT_WRITE_FAILURE NTStatus = 0xC000046B
7886 STATUS_FT_DI_SCAN_REQUIRED NTStatus = 0xC000046C
7887 STATUS_OBJECT_NOT_EXTERNALLY_BACKED NTStatus = 0xC000046D
7888 STATUS_EXTERNAL_BACKING_PROVIDER_UNKNOWN NTStatus = 0xC000046E
7889 STATUS_COMPRESSION_NOT_BENEFICIAL NTStatus = 0xC000046F
7890 STATUS_DATA_CHECKSUM_ERROR NTStatus = 0xC0000470
7891 STATUS_INTERMIXED_KERNEL_EA_OPERATION NTStatus = 0xC0000471
7892 STATUS_TRIM_READ_ZERO_NOT_SUPPORTED NTStatus = 0xC0000472
7893 STATUS_TOO_MANY_SEGMENT_DESCRIPTORS NTStatus = 0xC0000473
7894 STATUS_INVALID_OFFSET_ALIGNMENT NTStatus = 0xC0000474
7895 STATUS_INVALID_FIELD_IN_PARAMETER_LIST NTStatus = 0xC0000475
7896 STATUS_OPERATION_IN_PROGRESS NTStatus = 0xC0000476
7897 STATUS_INVALID_INITIATOR_TARGET_PATH NTStatus = 0xC0000477
7898 STATUS_SCRUB_DATA_DISABLED NTStatus = 0xC0000478
7899 STATUS_NOT_REDUNDANT_STORAGE NTStatus = 0xC0000479
7900 STATUS_RESIDENT_FILE_NOT_SUPPORTED NTStatus = 0xC000047A
7901 STATUS_COMPRESSED_FILE_NOT_SUPPORTED NTStatus = 0xC000047B
7902 STATUS_DIRECTORY_NOT_SUPPORTED NTStatus = 0xC000047C
7903 STATUS_IO_OPERATION_TIMEOUT NTStatus = 0xC000047D
7904 STATUS_SYSTEM_NEEDS_REMEDIATION NTStatus = 0xC000047E
7905 STATUS_APPX_INTEGRITY_FAILURE_CLR_NGEN NTStatus = 0xC000047F
7906 STATUS_SHARE_UNAVAILABLE NTStatus = 0xC0000480
7907 STATUS_APISET_NOT_HOSTED NTStatus = 0xC0000481
7908 STATUS_APISET_NOT_PRESENT NTStatus = 0xC0000482
7909 STATUS_DEVICE_HARDWARE_ERROR NTStatus = 0xC0000483
7910 STATUS_FIRMWARE_SLOT_INVALID NTStatus = 0xC0000484
7911 STATUS_FIRMWARE_IMAGE_INVALID NTStatus = 0xC0000485
7912 STATUS_STORAGE_TOPOLOGY_ID_MISMATCH NTStatus = 0xC0000486
7913 STATUS_WIM_NOT_BOOTABLE NTStatus = 0xC0000487
7914 STATUS_BLOCKED_BY_PARENTAL_CONTROLS NTStatus = 0xC0000488
7915 STATUS_NEEDS_REGISTRATION NTStatus = 0xC0000489
7916 STATUS_QUOTA_ACTIVITY NTStatus = 0xC000048A
7917 STATUS_CALLBACK_INVOKE_INLINE NTStatus = 0xC000048B
7918 STATUS_BLOCK_TOO_MANY_REFERENCES NTStatus = 0xC000048C
7919 STATUS_MARKED_TO_DISALLOW_WRITES NTStatus = 0xC000048D
7920 STATUS_NETWORK_ACCESS_DENIED_EDP NTStatus = 0xC000048E
7921 STATUS_ENCLAVE_FAILURE NTStatus = 0xC000048F
7922 STATUS_PNP_NO_COMPAT_DRIVERS NTStatus = 0xC0000490
7923 STATUS_PNP_DRIVER_PACKAGE_NOT_FOUND NTStatus = 0xC0000491
7924 STATUS_PNP_DRIVER_CONFIGURATION_NOT_FOUND NTStatus = 0xC0000492
7925 STATUS_PNP_DRIVER_CONFIGURATION_INCOMPLETE NTStatus = 0xC0000493
7926 STATUS_PNP_FUNCTION_DRIVER_REQUIRED NTStatus = 0xC0000494
7927 STATUS_PNP_DEVICE_CONFIGURATION_PENDING NTStatus = 0xC0000495
7928 STATUS_DEVICE_HINT_NAME_BUFFER_TOO_SMALL NTStatus = 0xC0000496
7929 STATUS_PACKAGE_NOT_AVAILABLE NTStatus = 0xC0000497
7930 STATUS_DEVICE_IN_MAINTENANCE NTStatus = 0xC0000499
7931 STATUS_NOT_SUPPORTED_ON_DAX NTStatus = 0xC000049A
7932 STATUS_FREE_SPACE_TOO_FRAGMENTED NTStatus = 0xC000049B
7933 STATUS_DAX_MAPPING_EXISTS NTStatus = 0xC000049C
7934 STATUS_CHILD_PROCESS_BLOCKED NTStatus = 0xC000049D
7935 STATUS_STORAGE_LOST_DATA_PERSISTENCE NTStatus = 0xC000049E
7936 STATUS_VRF_CFG_ENABLED NTStatus = 0xC000049F
7937 STATUS_PARTITION_TERMINATING NTStatus = 0xC00004A0
7938 STATUS_EXTERNAL_SYSKEY_NOT_SUPPORTED NTStatus = 0xC00004A1
7939 STATUS_ENCLAVE_VIOLATION NTStatus = 0xC00004A2
7940 STATUS_FILE_PROTECTED_UNDER_DPL NTStatus = 0xC00004A3
7941 STATUS_VOLUME_NOT_CLUSTER_ALIGNED NTStatus = 0xC00004A4
7942 STATUS_NO_PHYSICALLY_ALIGNED_FREE_SPACE_FOUND NTStatus = 0xC00004A5
7943 STATUS_APPX_FILE_NOT_ENCRYPTED NTStatus = 0xC00004A6
7944 STATUS_RWRAW_ENCRYPTED_FILE_NOT_ENCRYPTED NTStatus = 0xC00004A7
7945 STATUS_RWRAW_ENCRYPTED_INVALID_EDATAINFO_FILEOFFSET NTStatus = 0xC00004A8
7946 STATUS_RWRAW_ENCRYPTED_INVALID_EDATAINFO_FILERANGE NTStatus = 0xC00004A9
7947 STATUS_RWRAW_ENCRYPTED_INVALID_EDATAINFO_PARAMETER NTStatus = 0xC00004AA
7948 STATUS_FT_READ_FAILURE NTStatus = 0xC00004AB
7949 STATUS_PATCH_CONFLICT NTStatus = 0xC00004AC
7950 STATUS_STORAGE_RESERVE_ID_INVALID NTStatus = 0xC00004AD
7951 STATUS_STORAGE_RESERVE_DOES_NOT_EXIST NTStatus = 0xC00004AE
7952 STATUS_STORAGE_RESERVE_ALREADY_EXISTS NTStatus = 0xC00004AF
7953 STATUS_STORAGE_RESERVE_NOT_EMPTY NTStatus = 0xC00004B0
7954 STATUS_NOT_A_DAX_VOLUME NTStatus = 0xC00004B1
7955 STATUS_NOT_DAX_MAPPABLE NTStatus = 0xC00004B2
7956 STATUS_CASE_DIFFERING_NAMES_IN_DIR NTStatus = 0xC00004B3
7957 STATUS_FILE_NOT_SUPPORTED NTStatus = 0xC00004B4
7958 STATUS_NOT_SUPPORTED_WITH_BTT NTStatus = 0xC00004B5
7959 STATUS_ENCRYPTION_DISABLED NTStatus = 0xC00004B6
7960 STATUS_ENCRYPTING_METADATA_DISALLOWED NTStatus = 0xC00004B7
7961 STATUS_CANT_CLEAR_ENCRYPTION_FLAG NTStatus = 0xC00004B8
7962 STATUS_INVALID_TASK_NAME NTStatus = 0xC0000500
7963 STATUS_INVALID_TASK_INDEX NTStatus = 0xC0000501
7964 STATUS_THREAD_ALREADY_IN_TASK NTStatus = 0xC0000502
7965 STATUS_CALLBACK_BYPASS NTStatus = 0xC0000503
7966 STATUS_UNDEFINED_SCOPE NTStatus = 0xC0000504
7967 STATUS_INVALID_CAP NTStatus = 0xC0000505
7968 STATUS_NOT_GUI_PROCESS NTStatus = 0xC0000506
7969 STATUS_DEVICE_HUNG NTStatus = 0xC0000507
7970 STATUS_CONTAINER_ASSIGNED NTStatus = 0xC0000508
7971 STATUS_JOB_NO_CONTAINER NTStatus = 0xC0000509
7972 STATUS_DEVICE_UNRESPONSIVE NTStatus = 0xC000050A
7973 STATUS_REPARSE_POINT_ENCOUNTERED NTStatus = 0xC000050B
7974 STATUS_ATTRIBUTE_NOT_PRESENT NTStatus = 0xC000050C
7975 STATUS_NOT_A_TIERED_VOLUME NTStatus = 0xC000050D
7976 STATUS_ALREADY_HAS_STREAM_ID NTStatus = 0xC000050E
7977 STATUS_JOB_NOT_EMPTY NTStatus = 0xC000050F
7978 STATUS_ALREADY_INITIALIZED NTStatus = 0xC0000510
7979 STATUS_ENCLAVE_NOT_TERMINATED NTStatus = 0xC0000511
7980 STATUS_ENCLAVE_IS_TERMINATING NTStatus = 0xC0000512
7981 STATUS_SMB1_NOT_AVAILABLE NTStatus = 0xC0000513
7982 STATUS_SMR_GARBAGE_COLLECTION_REQUIRED NTStatus = 0xC0000514
7983 STATUS_INTERRUPTED NTStatus = 0xC0000515
7984 STATUS_THREAD_NOT_RUNNING NTStatus = 0xC0000516
7985 STATUS_FAIL_FAST_EXCEPTION NTStatus = 0xC0000602
7986 STATUS_IMAGE_CERT_REVOKED NTStatus = 0xC0000603
7987 STATUS_DYNAMIC_CODE_BLOCKED NTStatus = 0xC0000604
7988 STATUS_IMAGE_CERT_EXPIRED NTStatus = 0xC0000605
7989 STATUS_STRICT_CFG_VIOLATION NTStatus = 0xC0000606
7990 STATUS_SET_CONTEXT_DENIED NTStatus = 0xC000060A
7991 STATUS_CROSS_PARTITION_VIOLATION NTStatus = 0xC000060B
7992 STATUS_PORT_CLOSED NTStatus = 0xC0000700
7993 STATUS_MESSAGE_LOST NTStatus = 0xC0000701
7994 STATUS_INVALID_MESSAGE NTStatus = 0xC0000702
7995 STATUS_REQUEST_CANCELED NTStatus = 0xC0000703
7996 STATUS_RECURSIVE_DISPATCH NTStatus = 0xC0000704
7997 STATUS_LPC_RECEIVE_BUFFER_EXPECTED NTStatus = 0xC0000705
7998 STATUS_LPC_INVALID_CONNECTION_USAGE NTStatus = 0xC0000706
7999 STATUS_LPC_REQUESTS_NOT_ALLOWED NTStatus = 0xC0000707
8000 STATUS_RESOURCE_IN_USE NTStatus = 0xC0000708
8001 STATUS_HARDWARE_MEMORY_ERROR NTStatus = 0xC0000709
8002 STATUS_THREADPOOL_HANDLE_EXCEPTION NTStatus = 0xC000070A
8003 STATUS_THREADPOOL_SET_EVENT_ON_COMPLETION_FAILED NTStatus = 0xC000070B
8004 STATUS_THREADPOOL_RELEASE_SEMAPHORE_ON_COMPLETION_FAILED NTStatus = 0xC000070C
8005 STATUS_THREADPOOL_RELEASE_MUTEX_ON_COMPLETION_FAILED NTStatus = 0xC000070D
8006 STATUS_THREADPOOL_FREE_LIBRARY_ON_COMPLETION_FAILED NTStatus = 0xC000070E
8007 STATUS_THREADPOOL_RELEASED_DURING_OPERATION NTStatus = 0xC000070F
8008 STATUS_CALLBACK_RETURNED_WHILE_IMPERSONATING NTStatus = 0xC0000710
8009 STATUS_APC_RETURNED_WHILE_IMPERSONATING NTStatus = 0xC0000711
8010 STATUS_PROCESS_IS_PROTECTED NTStatus = 0xC0000712
8011 STATUS_MCA_EXCEPTION NTStatus = 0xC0000713
8012 STATUS_CERTIFICATE_MAPPING_NOT_UNIQUE NTStatus = 0xC0000714
8013 STATUS_SYMLINK_CLASS_DISABLED NTStatus = 0xC0000715
8014 STATUS_INVALID_IDN_NORMALIZATION NTStatus = 0xC0000716
8015 STATUS_NO_UNICODE_TRANSLATION NTStatus = 0xC0000717
8016 STATUS_ALREADY_REGISTERED NTStatus = 0xC0000718
8017 STATUS_CONTEXT_MISMATCH NTStatus = 0xC0000719
8018 STATUS_PORT_ALREADY_HAS_COMPLETION_LIST NTStatus = 0xC000071A
8019 STATUS_CALLBACK_RETURNED_THREAD_PRIORITY NTStatus = 0xC000071B
8020 STATUS_INVALID_THREAD NTStatus = 0xC000071C
8021 STATUS_CALLBACK_RETURNED_TRANSACTION NTStatus = 0xC000071D
8022 STATUS_CALLBACK_RETURNED_LDR_LOCK NTStatus = 0xC000071E
8023 STATUS_CALLBACK_RETURNED_LANG NTStatus = 0xC000071F
8024 STATUS_CALLBACK_RETURNED_PRI_BACK NTStatus = 0xC0000720
8025 STATUS_CALLBACK_RETURNED_THREAD_AFFINITY NTStatus = 0xC0000721
8026 STATUS_LPC_HANDLE_COUNT_EXCEEDED NTStatus = 0xC0000722
8027 STATUS_EXECUTABLE_MEMORY_WRITE NTStatus = 0xC0000723
8028 STATUS_KERNEL_EXECUTABLE_MEMORY_WRITE NTStatus = 0xC0000724
8029 STATUS_ATTACHED_EXECUTABLE_MEMORY_WRITE NTStatus = 0xC0000725
8030 STATUS_TRIGGERED_EXECUTABLE_MEMORY_WRITE NTStatus = 0xC0000726
8031 STATUS_DISK_REPAIR_DISABLED NTStatus = 0xC0000800
8032 STATUS_DS_DOMAIN_RENAME_IN_PROGRESS NTStatus = 0xC0000801
8033 STATUS_DISK_QUOTA_EXCEEDED NTStatus = 0xC0000802
8034 STATUS_DATA_LOST_REPAIR NTStatus = 0x80000803
8035 STATUS_CONTENT_BLOCKED NTStatus = 0xC0000804
8036 STATUS_BAD_CLUSTERS NTStatus = 0xC0000805
8037 STATUS_VOLUME_DIRTY NTStatus = 0xC0000806
8038 STATUS_DISK_REPAIR_REDIRECTED NTStatus = 0x40000807
8039 STATUS_DISK_REPAIR_UNSUCCESSFUL NTStatus = 0xC0000808
8040 STATUS_CORRUPT_LOG_OVERFULL NTStatus = 0xC0000809
8041 STATUS_CORRUPT_LOG_CORRUPTED NTStatus = 0xC000080A
8042 STATUS_CORRUPT_LOG_UNAVAILABLE NTStatus = 0xC000080B
8043 STATUS_CORRUPT_LOG_DELETED_FULL NTStatus = 0xC000080C
8044 STATUS_CORRUPT_LOG_CLEARED NTStatus = 0xC000080D
8045 STATUS_ORPHAN_NAME_EXHAUSTED NTStatus = 0xC000080E
8046 STATUS_PROACTIVE_SCAN_IN_PROGRESS NTStatus = 0xC000080F
8047 STATUS_ENCRYPTED_IO_NOT_POSSIBLE NTStatus = 0xC0000810
8048 STATUS_CORRUPT_LOG_UPLEVEL_RECORDS NTStatus = 0xC0000811
8049 STATUS_FILE_CHECKED_OUT NTStatus = 0xC0000901
8050 STATUS_CHECKOUT_REQUIRED NTStatus = 0xC0000902
8051 STATUS_BAD_FILE_TYPE NTStatus = 0xC0000903
8052 STATUS_FILE_TOO_LARGE NTStatus = 0xC0000904
8053 STATUS_FORMS_AUTH_REQUIRED NTStatus = 0xC0000905
8054 STATUS_VIRUS_INFECTED NTStatus = 0xC0000906
8055 STATUS_VIRUS_DELETED NTStatus = 0xC0000907
8056 STATUS_BAD_MCFG_TABLE NTStatus = 0xC0000908
8057 STATUS_CANNOT_BREAK_OPLOCK NTStatus = 0xC0000909
8058 STATUS_BAD_KEY NTStatus = 0xC000090A
8059 STATUS_BAD_DATA NTStatus = 0xC000090B
8060 STATUS_NO_KEY NTStatus = 0xC000090C
8061 STATUS_FILE_HANDLE_REVOKED NTStatus = 0xC0000910
8062 STATUS_WOW_ASSERTION NTStatus = 0xC0009898
8063 STATUS_INVALID_SIGNATURE NTStatus = 0xC000A000
8064 STATUS_HMAC_NOT_SUPPORTED NTStatus = 0xC000A001
8065 STATUS_AUTH_TAG_MISMATCH NTStatus = 0xC000A002
8066 STATUS_INVALID_STATE_TRANSITION NTStatus = 0xC000A003
8067 STATUS_INVALID_KERNEL_INFO_VERSION NTStatus = 0xC000A004
8068 STATUS_INVALID_PEP_INFO_VERSION NTStatus = 0xC000A005
8069 STATUS_HANDLE_REVOKED NTStatus = 0xC000A006
8070 STATUS_EOF_ON_GHOSTED_RANGE NTStatus = 0xC000A007
8071 STATUS_IPSEC_QUEUE_OVERFLOW NTStatus = 0xC000A010
8072 STATUS_ND_QUEUE_OVERFLOW NTStatus = 0xC000A011
8073 STATUS_HOPLIMIT_EXCEEDED NTStatus = 0xC000A012
8074 STATUS_PROTOCOL_NOT_SUPPORTED NTStatus = 0xC000A013
8075 STATUS_FASTPATH_REJECTED NTStatus = 0xC000A014
8076 STATUS_LOST_WRITEBEHIND_DATA_NETWORK_DISCONNECTED NTStatus = 0xC000A080
8077 STATUS_LOST_WRITEBEHIND_DATA_NETWORK_SERVER_ERROR NTStatus = 0xC000A081
8078 STATUS_LOST_WRITEBEHIND_DATA_LOCAL_DISK_ERROR NTStatus = 0xC000A082
8079 STATUS_XML_PARSE_ERROR NTStatus = 0xC000A083
8080 STATUS_XMLDSIG_ERROR NTStatus = 0xC000A084
8081 STATUS_WRONG_COMPARTMENT NTStatus = 0xC000A085
8082 STATUS_AUTHIP_FAILURE NTStatus = 0xC000A086
8083 STATUS_DS_OID_MAPPED_GROUP_CANT_HAVE_MEMBERS NTStatus = 0xC000A087
8084 STATUS_DS_OID_NOT_FOUND NTStatus = 0xC000A088
8085 STATUS_INCORRECT_ACCOUNT_TYPE NTStatus = 0xC000A089
8086 STATUS_HASH_NOT_SUPPORTED NTStatus = 0xC000A100
8087 STATUS_HASH_NOT_PRESENT NTStatus = 0xC000A101
8088 STATUS_SECONDARY_IC_PROVIDER_NOT_REGISTERED NTStatus = 0xC000A121
8089 STATUS_GPIO_CLIENT_INFORMATION_INVALID NTStatus = 0xC000A122
8090 STATUS_GPIO_VERSION_NOT_SUPPORTED NTStatus = 0xC000A123
8091 STATUS_GPIO_INVALID_REGISTRATION_PACKET NTStatus = 0xC000A124
8092 STATUS_GPIO_OPERATION_DENIED NTStatus = 0xC000A125
8093 STATUS_GPIO_INCOMPATIBLE_CONNECT_MODE NTStatus = 0xC000A126
8094 STATUS_GPIO_INTERRUPT_ALREADY_UNMASKED NTStatus = 0x8000A127
8095 STATUS_CANNOT_SWITCH_RUNLEVEL NTStatus = 0xC000A141
8096 STATUS_INVALID_RUNLEVEL_SETTING NTStatus = 0xC000A142
8097 STATUS_RUNLEVEL_SWITCH_TIMEOUT NTStatus = 0xC000A143
8098 STATUS_SERVICES_FAILED_AUTOSTART NTStatus = 0x4000A144
8099 STATUS_RUNLEVEL_SWITCH_AGENT_TIMEOUT NTStatus = 0xC000A145
8100 STATUS_RUNLEVEL_SWITCH_IN_PROGRESS NTStatus = 0xC000A146
8101 STATUS_NOT_APPCONTAINER NTStatus = 0xC000A200
8102 STATUS_NOT_SUPPORTED_IN_APPCONTAINER NTStatus = 0xC000A201
8103 STATUS_INVALID_PACKAGE_SID_LENGTH NTStatus = 0xC000A202
8104 STATUS_LPAC_ACCESS_DENIED NTStatus = 0xC000A203
8105 STATUS_ADMINLESS_ACCESS_DENIED NTStatus = 0xC000A204
8106 STATUS_APP_DATA_NOT_FOUND NTStatus = 0xC000A281
8107 STATUS_APP_DATA_EXPIRED NTStatus = 0xC000A282
8108 STATUS_APP_DATA_CORRUPT NTStatus = 0xC000A283
8109 STATUS_APP_DATA_LIMIT_EXCEEDED NTStatus = 0xC000A284
8110 STATUS_APP_DATA_REBOOT_REQUIRED NTStatus = 0xC000A285
8111 STATUS_OFFLOAD_READ_FLT_NOT_SUPPORTED NTStatus = 0xC000A2A1
8112 STATUS_OFFLOAD_WRITE_FLT_NOT_SUPPORTED NTStatus = 0xC000A2A2
8113 STATUS_OFFLOAD_READ_FILE_NOT_SUPPORTED NTStatus = 0xC000A2A3
8114 STATUS_OFFLOAD_WRITE_FILE_NOT_SUPPORTED NTStatus = 0xC000A2A4
8115 STATUS_WOF_WIM_HEADER_CORRUPT NTStatus = 0xC000A2A5
8116 STATUS_WOF_WIM_RESOURCE_TABLE_CORRUPT NTStatus = 0xC000A2A6
8117 STATUS_WOF_FILE_RESOURCE_TABLE_CORRUPT NTStatus = 0xC000A2A7
8118 STATUS_FILE_SYSTEM_VIRTUALIZATION_UNAVAILABLE NTStatus = 0xC000CE01
8119 STATUS_FILE_SYSTEM_VIRTUALIZATION_METADATA_CORRUPT NTStatus = 0xC000CE02
8120 STATUS_FILE_SYSTEM_VIRTUALIZATION_BUSY NTStatus = 0xC000CE03
8121 STATUS_FILE_SYSTEM_VIRTUALIZATION_PROVIDER_UNKNOWN NTStatus = 0xC000CE04
8122 STATUS_FILE_SYSTEM_VIRTUALIZATION_INVALID_OPERATION NTStatus = 0xC000CE05
8123 STATUS_CLOUD_FILE_SYNC_ROOT_METADATA_CORRUPT NTStatus = 0xC000CF00
8124 STATUS_CLOUD_FILE_PROVIDER_NOT_RUNNING NTStatus = 0xC000CF01
8125 STATUS_CLOUD_FILE_METADATA_CORRUPT NTStatus = 0xC000CF02
8126 STATUS_CLOUD_FILE_METADATA_TOO_LARGE NTStatus = 0xC000CF03
8127 STATUS_CLOUD_FILE_PROPERTY_BLOB_TOO_LARGE NTStatus = 0x8000CF04
8128 STATUS_CLOUD_FILE_TOO_MANY_PROPERTY_BLOBS NTStatus = 0x8000CF05
8129 STATUS_CLOUD_FILE_PROPERTY_VERSION_NOT_SUPPORTED NTStatus = 0xC000CF06
8130 STATUS_NOT_A_CLOUD_FILE NTStatus = 0xC000CF07
8131 STATUS_CLOUD_FILE_NOT_IN_SYNC NTStatus = 0xC000CF08
8132 STATUS_CLOUD_FILE_ALREADY_CONNECTED NTStatus = 0xC000CF09
8133 STATUS_CLOUD_FILE_NOT_SUPPORTED NTStatus = 0xC000CF0A
8134 STATUS_CLOUD_FILE_INVALID_REQUEST NTStatus = 0xC000CF0B
8135 STATUS_CLOUD_FILE_READ_ONLY_VOLUME NTStatus = 0xC000CF0C
8136 STATUS_CLOUD_FILE_CONNECTED_PROVIDER_ONLY NTStatus = 0xC000CF0D
8137 STATUS_CLOUD_FILE_VALIDATION_FAILED NTStatus = 0xC000CF0E
8138 STATUS_CLOUD_FILE_AUTHENTICATION_FAILED NTStatus = 0xC000CF0F
8139 STATUS_CLOUD_FILE_INSUFFICIENT_RESOURCES NTStatus = 0xC000CF10
8140 STATUS_CLOUD_FILE_NETWORK_UNAVAILABLE NTStatus = 0xC000CF11
8141 STATUS_CLOUD_FILE_UNSUCCESSFUL NTStatus = 0xC000CF12
8142 STATUS_CLOUD_FILE_NOT_UNDER_SYNC_ROOT NTStatus = 0xC000CF13
8143 STATUS_CLOUD_FILE_IN_USE NTStatus = 0xC000CF14
8144 STATUS_CLOUD_FILE_PINNED NTStatus = 0xC000CF15
8145 STATUS_CLOUD_FILE_REQUEST_ABORTED NTStatus = 0xC000CF16
8146 STATUS_CLOUD_FILE_PROPERTY_CORRUPT NTStatus = 0xC000CF17
8147 STATUS_CLOUD_FILE_ACCESS_DENIED NTStatus = 0xC000CF18
8148 STATUS_CLOUD_FILE_INCOMPATIBLE_HARDLINKS NTStatus = 0xC000CF19
8149 STATUS_CLOUD_FILE_PROPERTY_LOCK_CONFLICT NTStatus = 0xC000CF1A
8150 STATUS_CLOUD_FILE_REQUEST_CANCELED NTStatus = 0xC000CF1B
8151 STATUS_CLOUD_FILE_PROVIDER_TERMINATED NTStatus = 0xC000CF1D
8152 STATUS_NOT_A_CLOUD_SYNC_ROOT NTStatus = 0xC000CF1E
8153 STATUS_CLOUD_FILE_REQUEST_TIMEOUT NTStatus = 0xC000CF1F
8154 STATUS_ACPI_INVALID_OPCODE NTStatus = 0xC0140001
8155 STATUS_ACPI_STACK_OVERFLOW NTStatus = 0xC0140002
8156 STATUS_ACPI_ASSERT_FAILED NTStatus = 0xC0140003
8157 STATUS_ACPI_INVALID_INDEX NTStatus = 0xC0140004
8158 STATUS_ACPI_INVALID_ARGUMENT NTStatus = 0xC0140005
8159 STATUS_ACPI_FATAL NTStatus = 0xC0140006
8160 STATUS_ACPI_INVALID_SUPERNAME NTStatus = 0xC0140007
8161 STATUS_ACPI_INVALID_ARGTYPE NTStatus = 0xC0140008
8162 STATUS_ACPI_INVALID_OBJTYPE NTStatus = 0xC0140009
8163 STATUS_ACPI_INVALID_TARGETTYPE NTStatus = 0xC014000A
8164 STATUS_ACPI_INCORRECT_ARGUMENT_COUNT NTStatus = 0xC014000B
8165 STATUS_ACPI_ADDRESS_NOT_MAPPED NTStatus = 0xC014000C
8166 STATUS_ACPI_INVALID_EVENTTYPE NTStatus = 0xC014000D
8167 STATUS_ACPI_HANDLER_COLLISION NTStatus = 0xC014000E
8168 STATUS_ACPI_INVALID_DATA NTStatus = 0xC014000F
8169 STATUS_ACPI_INVALID_REGION NTStatus = 0xC0140010
8170 STATUS_ACPI_INVALID_ACCESS_SIZE NTStatus = 0xC0140011
8171 STATUS_ACPI_ACQUIRE_GLOBAL_LOCK NTStatus = 0xC0140012
8172 STATUS_ACPI_ALREADY_INITIALIZED NTStatus = 0xC0140013
8173 STATUS_ACPI_NOT_INITIALIZED NTStatus = 0xC0140014
8174 STATUS_ACPI_INVALID_MUTEX_LEVEL NTStatus = 0xC0140015
8175 STATUS_ACPI_MUTEX_NOT_OWNED NTStatus = 0xC0140016
8176 STATUS_ACPI_MUTEX_NOT_OWNER NTStatus = 0xC0140017
8177 STATUS_ACPI_RS_ACCESS NTStatus = 0xC0140018
8178 STATUS_ACPI_INVALID_TABLE NTStatus = 0xC0140019
8179 STATUS_ACPI_REG_HANDLER_FAILED NTStatus = 0xC0140020
8180 STATUS_ACPI_POWER_REQUEST_FAILED NTStatus = 0xC0140021
8181 STATUS_CTX_WINSTATION_NAME_INVALID NTStatus = 0xC00A0001
8182 STATUS_CTX_INVALID_PD NTStatus = 0xC00A0002
8183 STATUS_CTX_PD_NOT_FOUND NTStatus = 0xC00A0003
8184 STATUS_CTX_CDM_CONNECT NTStatus = 0x400A0004
8185 STATUS_CTX_CDM_DISCONNECT NTStatus = 0x400A0005
8186 STATUS_CTX_CLOSE_PENDING NTStatus = 0xC00A0006
8187 STATUS_CTX_NO_OUTBUF NTStatus = 0xC00A0007
8188 STATUS_CTX_MODEM_INF_NOT_FOUND NTStatus = 0xC00A0008
8189 STATUS_CTX_INVALID_MODEMNAME NTStatus = 0xC00A0009
8190 STATUS_CTX_RESPONSE_ERROR NTStatus = 0xC00A000A
8191 STATUS_CTX_MODEM_RESPONSE_TIMEOUT NTStatus = 0xC00A000B
8192 STATUS_CTX_MODEM_RESPONSE_NO_CARRIER NTStatus = 0xC00A000C
8193 STATUS_CTX_MODEM_RESPONSE_NO_DIALTONE NTStatus = 0xC00A000D
8194 STATUS_CTX_MODEM_RESPONSE_BUSY NTStatus = 0xC00A000E
8195 STATUS_CTX_MODEM_RESPONSE_VOICE NTStatus = 0xC00A000F
8196 STATUS_CTX_TD_ERROR NTStatus = 0xC00A0010
8197 STATUS_CTX_LICENSE_CLIENT_INVALID NTStatus = 0xC00A0012
8198 STATUS_CTX_LICENSE_NOT_AVAILABLE NTStatus = 0xC00A0013
8199 STATUS_CTX_LICENSE_EXPIRED NTStatus = 0xC00A0014
8200 STATUS_CTX_WINSTATION_NOT_FOUND NTStatus = 0xC00A0015
8201 STATUS_CTX_WINSTATION_NAME_COLLISION NTStatus = 0xC00A0016
8202 STATUS_CTX_WINSTATION_BUSY NTStatus = 0xC00A0017
8203 STATUS_CTX_BAD_VIDEO_MODE NTStatus = 0xC00A0018
8204 STATUS_CTX_GRAPHICS_INVALID NTStatus = 0xC00A0022
8205 STATUS_CTX_NOT_CONSOLE NTStatus = 0xC00A0024
8206 STATUS_CTX_CLIENT_QUERY_TIMEOUT NTStatus = 0xC00A0026
8207 STATUS_CTX_CONSOLE_DISCONNECT NTStatus = 0xC00A0027
8208 STATUS_CTX_CONSOLE_CONNECT NTStatus = 0xC00A0028
8209 STATUS_CTX_SHADOW_DENIED NTStatus = 0xC00A002A
8210 STATUS_CTX_WINSTATION_ACCESS_DENIED NTStatus = 0xC00A002B
8211 STATUS_CTX_INVALID_WD NTStatus = 0xC00A002E
8212 STATUS_CTX_WD_NOT_FOUND NTStatus = 0xC00A002F
8213 STATUS_CTX_SHADOW_INVALID NTStatus = 0xC00A0030
8214 STATUS_CTX_SHADOW_DISABLED NTStatus = 0xC00A0031
8215 STATUS_RDP_PROTOCOL_ERROR NTStatus = 0xC00A0032
8216 STATUS_CTX_CLIENT_LICENSE_NOT_SET NTStatus = 0xC00A0033
8217 STATUS_CTX_CLIENT_LICENSE_IN_USE NTStatus = 0xC00A0034
8218 STATUS_CTX_SHADOW_ENDED_BY_MODE_CHANGE NTStatus = 0xC00A0035
8219 STATUS_CTX_SHADOW_NOT_RUNNING NTStatus = 0xC00A0036
8220 STATUS_CTX_LOGON_DISABLED NTStatus = 0xC00A0037
8221 STATUS_CTX_SECURITY_LAYER_ERROR NTStatus = 0xC00A0038
8222 STATUS_TS_INCOMPATIBLE_SESSIONS NTStatus = 0xC00A0039
8223 STATUS_TS_VIDEO_SUBSYSTEM_ERROR NTStatus = 0xC00A003A
8224 STATUS_PNP_BAD_MPS_TABLE NTStatus = 0xC0040035
8225 STATUS_PNP_TRANSLATION_FAILED NTStatus = 0xC0040036
8226 STATUS_PNP_IRQ_TRANSLATION_FAILED NTStatus = 0xC0040037
8227 STATUS_PNP_INVALID_ID NTStatus = 0xC0040038
8228 STATUS_IO_REISSUE_AS_CACHED NTStatus = 0xC0040039
8229 STATUS_MUI_FILE_NOT_FOUND NTStatus = 0xC00B0001
8230 STATUS_MUI_INVALID_FILE NTStatus = 0xC00B0002
8231 STATUS_MUI_INVALID_RC_CONFIG NTStatus = 0xC00B0003
8232 STATUS_MUI_INVALID_LOCALE_NAME NTStatus = 0xC00B0004
8233 STATUS_MUI_INVALID_ULTIMATEFALLBACK_NAME NTStatus = 0xC00B0005
8234 STATUS_MUI_FILE_NOT_LOADED NTStatus = 0xC00B0006
8235 STATUS_RESOURCE_ENUM_USER_STOP NTStatus = 0xC00B0007
8236 STATUS_FLT_NO_HANDLER_DEFINED NTStatus = 0xC01C0001
8237 STATUS_FLT_CONTEXT_ALREADY_DEFINED NTStatus = 0xC01C0002
8238 STATUS_FLT_INVALID_ASYNCHRONOUS_REQUEST NTStatus = 0xC01C0003
8239 STATUS_FLT_DISALLOW_FAST_IO NTStatus = 0xC01C0004
8240 STATUS_FLT_INVALID_NAME_REQUEST NTStatus = 0xC01C0005
8241 STATUS_FLT_NOT_SAFE_TO_POST_OPERATION NTStatus = 0xC01C0006
8242 STATUS_FLT_NOT_INITIALIZED NTStatus = 0xC01C0007
8243 STATUS_FLT_FILTER_NOT_READY NTStatus = 0xC01C0008
8244 STATUS_FLT_POST_OPERATION_CLEANUP NTStatus = 0xC01C0009
8245 STATUS_FLT_INTERNAL_ERROR NTStatus = 0xC01C000A
8246 STATUS_FLT_DELETING_OBJECT NTStatus = 0xC01C000B
8247 STATUS_FLT_MUST_BE_NONPAGED_POOL NTStatus = 0xC01C000C
8248 STATUS_FLT_DUPLICATE_ENTRY NTStatus = 0xC01C000D
8249 STATUS_FLT_CBDQ_DISABLED NTStatus = 0xC01C000E
8250 STATUS_FLT_DO_NOT_ATTACH NTStatus = 0xC01C000F
8251 STATUS_FLT_DO_NOT_DETACH NTStatus = 0xC01C0010
8252 STATUS_FLT_INSTANCE_ALTITUDE_COLLISION NTStatus = 0xC01C0011
8253 STATUS_FLT_INSTANCE_NAME_COLLISION NTStatus = 0xC01C0012
8254 STATUS_FLT_FILTER_NOT_FOUND NTStatus = 0xC01C0013
8255 STATUS_FLT_VOLUME_NOT_FOUND NTStatus = 0xC01C0014
8256 STATUS_FLT_INSTANCE_NOT_FOUND NTStatus = 0xC01C0015
8257 STATUS_FLT_CONTEXT_ALLOCATION_NOT_FOUND NTStatus = 0xC01C0016
8258 STATUS_FLT_INVALID_CONTEXT_REGISTRATION NTStatus = 0xC01C0017
8259 STATUS_FLT_NAME_CACHE_MISS NTStatus = 0xC01C0018
8260 STATUS_FLT_NO_DEVICE_OBJECT NTStatus = 0xC01C0019
8261 STATUS_FLT_VOLUME_ALREADY_MOUNTED NTStatus = 0xC01C001A
8262 STATUS_FLT_ALREADY_ENLISTED NTStatus = 0xC01C001B
8263 STATUS_FLT_CONTEXT_ALREADY_LINKED NTStatus = 0xC01C001C
8264 STATUS_FLT_NO_WAITER_FOR_REPLY NTStatus = 0xC01C0020
8265 STATUS_FLT_REGISTRATION_BUSY NTStatus = 0xC01C0023
8266 STATUS_SXS_SECTION_NOT_FOUND NTStatus = 0xC0150001
8267 STATUS_SXS_CANT_GEN_ACTCTX NTStatus = 0xC0150002
8268 STATUS_SXS_INVALID_ACTCTXDATA_FORMAT NTStatus = 0xC0150003
8269 STATUS_SXS_ASSEMBLY_NOT_FOUND NTStatus = 0xC0150004
8270 STATUS_SXS_MANIFEST_FORMAT_ERROR NTStatus = 0xC0150005
8271 STATUS_SXS_MANIFEST_PARSE_ERROR NTStatus = 0xC0150006
8272 STATUS_SXS_ACTIVATION_CONTEXT_DISABLED NTStatus = 0xC0150007
8273 STATUS_SXS_KEY_NOT_FOUND NTStatus = 0xC0150008
8274 STATUS_SXS_VERSION_CONFLICT NTStatus = 0xC0150009
8275 STATUS_SXS_WRONG_SECTION_TYPE NTStatus = 0xC015000A
8276 STATUS_SXS_THREAD_QUERIES_DISABLED NTStatus = 0xC015000B
8277 STATUS_SXS_ASSEMBLY_MISSING NTStatus = 0xC015000C
8278 STATUS_SXS_RELEASE_ACTIVATION_CONTEXT NTStatus = 0x4015000D
8279 STATUS_SXS_PROCESS_DEFAULT_ALREADY_SET NTStatus = 0xC015000E
8280 STATUS_SXS_EARLY_DEACTIVATION NTStatus = 0xC015000F
8281 STATUS_SXS_INVALID_DEACTIVATION NTStatus = 0xC0150010
8282 STATUS_SXS_MULTIPLE_DEACTIVATION NTStatus = 0xC0150011
8283 STATUS_SXS_SYSTEM_DEFAULT_ACTIVATION_CONTEXT_EMPTY NTStatus = 0xC0150012
8284 STATUS_SXS_PROCESS_TERMINATION_REQUESTED NTStatus = 0xC0150013
8285 STATUS_SXS_CORRUPT_ACTIVATION_STACK NTStatus = 0xC0150014
8286 STATUS_SXS_CORRUPTION NTStatus = 0xC0150015
8287 STATUS_SXS_INVALID_IDENTITY_ATTRIBUTE_VALUE NTStatus = 0xC0150016
8288 STATUS_SXS_INVALID_IDENTITY_ATTRIBUTE_NAME NTStatus = 0xC0150017
8289 STATUS_SXS_IDENTITY_DUPLICATE_ATTRIBUTE NTStatus = 0xC0150018
8290 STATUS_SXS_IDENTITY_PARSE_ERROR NTStatus = 0xC0150019
8291 STATUS_SXS_COMPONENT_STORE_CORRUPT NTStatus = 0xC015001A
8292 STATUS_SXS_FILE_HASH_MISMATCH NTStatus = 0xC015001B
8293 STATUS_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT NTStatus = 0xC015001C
8294 STATUS_SXS_IDENTITIES_DIFFERENT NTStatus = 0xC015001D
8295 STATUS_SXS_ASSEMBLY_IS_NOT_A_DEPLOYMENT NTStatus = 0xC015001E
8296 STATUS_SXS_FILE_NOT_PART_OF_ASSEMBLY NTStatus = 0xC015001F
8297 STATUS_ADVANCED_INSTALLER_FAILED NTStatus = 0xC0150020
8298 STATUS_XML_ENCODING_MISMATCH NTStatus = 0xC0150021
8299 STATUS_SXS_MANIFEST_TOO_BIG NTStatus = 0xC0150022
8300 STATUS_SXS_SETTING_NOT_REGISTERED NTStatus = 0xC0150023
8301 STATUS_SXS_TRANSACTION_CLOSURE_INCOMPLETE NTStatus = 0xC0150024
8302 STATUS_SMI_PRIMITIVE_INSTALLER_FAILED NTStatus = 0xC0150025
8303 STATUS_GENERIC_COMMAND_FAILED NTStatus = 0xC0150026
8304 STATUS_SXS_FILE_HASH_MISSING NTStatus = 0xC0150027
8305 STATUS_CLUSTER_INVALID_NODE NTStatus = 0xC0130001
8306 STATUS_CLUSTER_NODE_EXISTS NTStatus = 0xC0130002
8307 STATUS_CLUSTER_JOIN_IN_PROGRESS NTStatus = 0xC0130003
8308 STATUS_CLUSTER_NODE_NOT_FOUND NTStatus = 0xC0130004
8309 STATUS_CLUSTER_LOCAL_NODE_NOT_FOUND NTStatus = 0xC0130005
8310 STATUS_CLUSTER_NETWORK_EXISTS NTStatus = 0xC0130006
8311 STATUS_CLUSTER_NETWORK_NOT_FOUND NTStatus = 0xC0130007
8312 STATUS_CLUSTER_NETINTERFACE_EXISTS NTStatus = 0xC0130008
8313 STATUS_CLUSTER_NETINTERFACE_NOT_FOUND NTStatus = 0xC0130009
8314 STATUS_CLUSTER_INVALID_REQUEST NTStatus = 0xC013000A
8315 STATUS_CLUSTER_INVALID_NETWORK_PROVIDER NTStatus = 0xC013000B
8316 STATUS_CLUSTER_NODE_DOWN NTStatus = 0xC013000C
8317 STATUS_CLUSTER_NODE_UNREACHABLE NTStatus = 0xC013000D
8318 STATUS_CLUSTER_NODE_NOT_MEMBER NTStatus = 0xC013000E
8319 STATUS_CLUSTER_JOIN_NOT_IN_PROGRESS NTStatus = 0xC013000F
8320 STATUS_CLUSTER_INVALID_NETWORK NTStatus = 0xC0130010
8321 STATUS_CLUSTER_NO_NET_ADAPTERS NTStatus = 0xC0130011
8322 STATUS_CLUSTER_NODE_UP NTStatus = 0xC0130012
8323 STATUS_CLUSTER_NODE_PAUSED NTStatus = 0xC0130013
8324 STATUS_CLUSTER_NODE_NOT_PAUSED NTStatus = 0xC0130014
8325 STATUS_CLUSTER_NO_SECURITY_CONTEXT NTStatus = 0xC0130015
8326 STATUS_CLUSTER_NETWORK_NOT_INTERNAL NTStatus = 0xC0130016
8327 STATUS_CLUSTER_POISONED NTStatus = 0xC0130017
8328 STATUS_CLUSTER_NON_CSV_PATH NTStatus = 0xC0130018
8329 STATUS_CLUSTER_CSV_VOLUME_NOT_LOCAL NTStatus = 0xC0130019
8330 STATUS_CLUSTER_CSV_READ_OPLOCK_BREAK_IN_PROGRESS NTStatus = 0xC0130020
8331 STATUS_CLUSTER_CSV_AUTO_PAUSE_ERROR NTStatus = 0xC0130021
8332 STATUS_CLUSTER_CSV_REDIRECTED NTStatus = 0xC0130022
8333 STATUS_CLUSTER_CSV_NOT_REDIRECTED NTStatus = 0xC0130023
8334 STATUS_CLUSTER_CSV_VOLUME_DRAINING NTStatus = 0xC0130024
8335 STATUS_CLUSTER_CSV_SNAPSHOT_CREATION_IN_PROGRESS NTStatus = 0xC0130025
8336 STATUS_CLUSTER_CSV_VOLUME_DRAINING_SUCCEEDED_DOWNLEVEL NTStatus = 0xC0130026
8337 STATUS_CLUSTER_CSV_NO_SNAPSHOTS NTStatus = 0xC0130027
8338 STATUS_CSV_IO_PAUSE_TIMEOUT NTStatus = 0xC0130028
8339 STATUS_CLUSTER_CSV_INVALID_HANDLE NTStatus = 0xC0130029
8340 STATUS_CLUSTER_CSV_SUPPORTED_ONLY_ON_COORDINATOR NTStatus = 0xC0130030
8341 STATUS_CLUSTER_CAM_TICKET_REPLAY_DETECTED NTStatus = 0xC0130031
8342 STATUS_TRANSACTIONAL_CONFLICT NTStatus = 0xC0190001
8343 STATUS_INVALID_TRANSACTION NTStatus = 0xC0190002
8344 STATUS_TRANSACTION_NOT_ACTIVE NTStatus = 0xC0190003
8345 STATUS_TM_INITIALIZATION_FAILED NTStatus = 0xC0190004
8346 STATUS_RM_NOT_ACTIVE NTStatus = 0xC0190005
8347 STATUS_RM_METADATA_CORRUPT NTStatus = 0xC0190006
8348 STATUS_TRANSACTION_NOT_JOINED NTStatus = 0xC0190007
8349 STATUS_DIRECTORY_NOT_RM NTStatus = 0xC0190008
8350 STATUS_COULD_NOT_RESIZE_LOG NTStatus = 0x80190009
8351 STATUS_TRANSACTIONS_UNSUPPORTED_REMOTE NTStatus = 0xC019000A
8352 STATUS_LOG_RESIZE_INVALID_SIZE NTStatus = 0xC019000B
8353 STATUS_REMOTE_FILE_VERSION_MISMATCH NTStatus = 0xC019000C
8354 STATUS_CRM_PROTOCOL_ALREADY_EXISTS NTStatus = 0xC019000F
8355 STATUS_TRANSACTION_PROPAGATION_FAILED NTStatus = 0xC0190010
8356 STATUS_CRM_PROTOCOL_NOT_FOUND NTStatus = 0xC0190011
8357 STATUS_TRANSACTION_SUPERIOR_EXISTS NTStatus = 0xC0190012
8358 STATUS_TRANSACTION_REQUEST_NOT_VALID NTStatus = 0xC0190013
8359 STATUS_TRANSACTION_NOT_REQUESTED NTStatus = 0xC0190014
8360 STATUS_TRANSACTION_ALREADY_ABORTED NTStatus = 0xC0190015
8361 STATUS_TRANSACTION_ALREADY_COMMITTED NTStatus = 0xC0190016
8362 STATUS_TRANSACTION_INVALID_MARSHALL_BUFFER NTStatus = 0xC0190017
8363 STATUS_CURRENT_TRANSACTION_NOT_VALID NTStatus = 0xC0190018
8364 STATUS_LOG_GROWTH_FAILED NTStatus = 0xC0190019
8365 STATUS_OBJECT_NO_LONGER_EXISTS NTStatus = 0xC0190021
8366 STATUS_STREAM_MINIVERSION_NOT_FOUND NTStatus = 0xC0190022
8367 STATUS_STREAM_MINIVERSION_NOT_VALID NTStatus = 0xC0190023
8368 STATUS_MINIVERSION_INACCESSIBLE_FROM_SPECIFIED_TRANSACTION NTStatus = 0xC0190024
8369 STATUS_CANT_OPEN_MINIVERSION_WITH_MODIFY_INTENT NTStatus = 0xC0190025
8370 STATUS_CANT_CREATE_MORE_STREAM_MINIVERSIONS NTStatus = 0xC0190026
8371 STATUS_HANDLE_NO_LONGER_VALID NTStatus = 0xC0190028
8372 STATUS_NO_TXF_METADATA NTStatus = 0x80190029
8373 STATUS_LOG_CORRUPTION_DETECTED NTStatus = 0xC0190030
8374 STATUS_CANT_RECOVER_WITH_HANDLE_OPEN NTStatus = 0x80190031
8375 STATUS_RM_DISCONNECTED NTStatus = 0xC0190032
8376 STATUS_ENLISTMENT_NOT_SUPERIOR NTStatus = 0xC0190033
8377 STATUS_RECOVERY_NOT_NEEDED NTStatus = 0x40190034
8378 STATUS_RM_ALREADY_STARTED NTStatus = 0x40190035
8379 STATUS_FILE_IDENTITY_NOT_PERSISTENT NTStatus = 0xC0190036
8380 STATUS_CANT_BREAK_TRANSACTIONAL_DEPENDENCY NTStatus = 0xC0190037
8381 STATUS_CANT_CROSS_RM_BOUNDARY NTStatus = 0xC0190038
8382 STATUS_TXF_DIR_NOT_EMPTY NTStatus = 0xC0190039
8383 STATUS_INDOUBT_TRANSACTIONS_EXIST NTStatus = 0xC019003A
8384 STATUS_TM_VOLATILE NTStatus = 0xC019003B
8385 STATUS_ROLLBACK_TIMER_EXPIRED NTStatus = 0xC019003C
8386 STATUS_TXF_ATTRIBUTE_CORRUPT NTStatus = 0xC019003D
8387 STATUS_EFS_NOT_ALLOWED_IN_TRANSACTION NTStatus = 0xC019003E
8388 STATUS_TRANSACTIONAL_OPEN_NOT_ALLOWED NTStatus = 0xC019003F
8389 STATUS_TRANSACTED_MAPPING_UNSUPPORTED_REMOTE NTStatus = 0xC0190040
8390 STATUS_TXF_METADATA_ALREADY_PRESENT NTStatus = 0x80190041
8391 STATUS_TRANSACTION_SCOPE_CALLBACKS_NOT_SET NTStatus = 0x80190042
8392 STATUS_TRANSACTION_REQUIRED_PROMOTION NTStatus = 0xC0190043
8393 STATUS_CANNOT_EXECUTE_FILE_IN_TRANSACTION NTStatus = 0xC0190044
8394 STATUS_TRANSACTIONS_NOT_FROZEN NTStatus = 0xC0190045
8395 STATUS_TRANSACTION_FREEZE_IN_PROGRESS NTStatus = 0xC0190046
8396 STATUS_NOT_SNAPSHOT_VOLUME NTStatus = 0xC0190047
8397 STATUS_NO_SAVEPOINT_WITH_OPEN_FILES NTStatus = 0xC0190048
8398 STATUS_SPARSE_NOT_ALLOWED_IN_TRANSACTION NTStatus = 0xC0190049
8399 STATUS_TM_IDENTITY_MISMATCH NTStatus = 0xC019004A
8400 STATUS_FLOATED_SECTION NTStatus = 0xC019004B
8401 STATUS_CANNOT_ACCEPT_TRANSACTED_WORK NTStatus = 0xC019004C
8402 STATUS_CANNOT_ABORT_TRANSACTIONS NTStatus = 0xC019004D
8403 STATUS_TRANSACTION_NOT_FOUND NTStatus = 0xC019004E
8404 STATUS_RESOURCEMANAGER_NOT_FOUND NTStatus = 0xC019004F
8405 STATUS_ENLISTMENT_NOT_FOUND NTStatus = 0xC0190050
8406 STATUS_TRANSACTIONMANAGER_NOT_FOUND NTStatus = 0xC0190051
8407 STATUS_TRANSACTIONMANAGER_NOT_ONLINE NTStatus = 0xC0190052
8408 STATUS_TRANSACTIONMANAGER_RECOVERY_NAME_COLLISION NTStatus = 0xC0190053
8409 STATUS_TRANSACTION_NOT_ROOT NTStatus = 0xC0190054
8410 STATUS_TRANSACTION_OBJECT_EXPIRED NTStatus = 0xC0190055
8411 STATUS_COMPRESSION_NOT_ALLOWED_IN_TRANSACTION NTStatus = 0xC0190056
8412 STATUS_TRANSACTION_RESPONSE_NOT_ENLISTED NTStatus = 0xC0190057
8413 STATUS_TRANSACTION_RECORD_TOO_LONG NTStatus = 0xC0190058
8414 STATUS_NO_LINK_TRACKING_IN_TRANSACTION NTStatus = 0xC0190059
8415 STATUS_OPERATION_NOT_SUPPORTED_IN_TRANSACTION NTStatus = 0xC019005A
8416 STATUS_TRANSACTION_INTEGRITY_VIOLATED NTStatus = 0xC019005B
8417 STATUS_TRANSACTIONMANAGER_IDENTITY_MISMATCH NTStatus = 0xC019005C
8418 STATUS_RM_CANNOT_BE_FROZEN_FOR_SNAPSHOT NTStatus = 0xC019005D
8419 STATUS_TRANSACTION_MUST_WRITETHROUGH NTStatus = 0xC019005E
8420 STATUS_TRANSACTION_NO_SUPERIOR NTStatus = 0xC019005F
8421 STATUS_EXPIRED_HANDLE NTStatus = 0xC0190060
8422 STATUS_TRANSACTION_NOT_ENLISTED NTStatus = 0xC0190061
8423 STATUS_LOG_SECTOR_INVALID NTStatus = 0xC01A0001
8424 STATUS_LOG_SECTOR_PARITY_INVALID NTStatus = 0xC01A0002
8425 STATUS_LOG_SECTOR_REMAPPED NTStatus = 0xC01A0003
8426 STATUS_LOG_BLOCK_INCOMPLETE NTStatus = 0xC01A0004
8427 STATUS_LOG_INVALID_RANGE NTStatus = 0xC01A0005
8428 STATUS_LOG_BLOCKS_EXHAUSTED NTStatus = 0xC01A0006
8429 STATUS_LOG_READ_CONTEXT_INVALID NTStatus = 0xC01A0007
8430 STATUS_LOG_RESTART_INVALID NTStatus = 0xC01A0008
8431 STATUS_LOG_BLOCK_VERSION NTStatus = 0xC01A0009
8432 STATUS_LOG_BLOCK_INVALID NTStatus = 0xC01A000A
8433 STATUS_LOG_READ_MODE_INVALID NTStatus = 0xC01A000B
8434 STATUS_LOG_NO_RESTART NTStatus = 0x401A000C
8435 STATUS_LOG_METADATA_CORRUPT NTStatus = 0xC01A000D
8436 STATUS_LOG_METADATA_INVALID NTStatus = 0xC01A000E
8437 STATUS_LOG_METADATA_INCONSISTENT NTStatus = 0xC01A000F
8438 STATUS_LOG_RESERVATION_INVALID NTStatus = 0xC01A0010
8439 STATUS_LOG_CANT_DELETE NTStatus = 0xC01A0011
8440 STATUS_LOG_CONTAINER_LIMIT_EXCEEDED NTStatus = 0xC01A0012
8441 STATUS_LOG_START_OF_LOG NTStatus = 0xC01A0013
8442 STATUS_LOG_POLICY_ALREADY_INSTALLED NTStatus = 0xC01A0014
8443 STATUS_LOG_POLICY_NOT_INSTALLED NTStatus = 0xC01A0015
8444 STATUS_LOG_POLICY_INVALID NTStatus = 0xC01A0016
8445 STATUS_LOG_POLICY_CONFLICT NTStatus = 0xC01A0017
8446 STATUS_LOG_PINNED_ARCHIVE_TAIL NTStatus = 0xC01A0018
8447 STATUS_LOG_RECORD_NONEXISTENT NTStatus = 0xC01A0019
8448 STATUS_LOG_RECORDS_RESERVED_INVALID NTStatus = 0xC01A001A
8449 STATUS_LOG_SPACE_RESERVED_INVALID NTStatus = 0xC01A001B
8450 STATUS_LOG_TAIL_INVALID NTStatus = 0xC01A001C
8451 STATUS_LOG_FULL NTStatus = 0xC01A001D
8452 STATUS_LOG_MULTIPLEXED NTStatus = 0xC01A001E
8453 STATUS_LOG_DEDICATED NTStatus = 0xC01A001F
8454 STATUS_LOG_ARCHIVE_NOT_IN_PROGRESS NTStatus = 0xC01A0020
8455 STATUS_LOG_ARCHIVE_IN_PROGRESS NTStatus = 0xC01A0021
8456 STATUS_LOG_EPHEMERAL NTStatus = 0xC01A0022
8457 STATUS_LOG_NOT_ENOUGH_CONTAINERS NTStatus = 0xC01A0023
8458 STATUS_LOG_CLIENT_ALREADY_REGISTERED NTStatus = 0xC01A0024
8459 STATUS_LOG_CLIENT_NOT_REGISTERED NTStatus = 0xC01A0025
8460 STATUS_LOG_FULL_HANDLER_IN_PROGRESS NTStatus = 0xC01A0026
8461 STATUS_LOG_CONTAINER_READ_FAILED NTStatus = 0xC01A0027
8462 STATUS_LOG_CONTAINER_WRITE_FAILED NTStatus = 0xC01A0028
8463 STATUS_LOG_CONTAINER_OPEN_FAILED NTStatus = 0xC01A0029
8464 STATUS_LOG_CONTAINER_STATE_INVALID NTStatus = 0xC01A002A
8465 STATUS_LOG_STATE_INVALID NTStatus = 0xC01A002B
8466 STATUS_LOG_PINNED NTStatus = 0xC01A002C
8467 STATUS_LOG_METADATA_FLUSH_FAILED NTStatus = 0xC01A002D
8468 STATUS_LOG_INCONSISTENT_SECURITY NTStatus = 0xC01A002E
8469 STATUS_LOG_APPENDED_FLUSH_FAILED NTStatus = 0xC01A002F
8470 STATUS_LOG_PINNED_RESERVATION NTStatus = 0xC01A0030
8471 STATUS_VIDEO_HUNG_DISPLAY_DRIVER_THREAD NTStatus = 0xC01B00EA
8472 STATUS_VIDEO_HUNG_DISPLAY_DRIVER_THREAD_RECOVERED NTStatus = 0x801B00EB
8473 STATUS_VIDEO_DRIVER_DEBUG_REPORT_REQUEST NTStatus = 0x401B00EC
8474 STATUS_MONITOR_NO_DESCRIPTOR NTStatus = 0xC01D0001
8475 STATUS_MONITOR_UNKNOWN_DESCRIPTOR_FORMAT NTStatus = 0xC01D0002
8476 STATUS_MONITOR_INVALID_DESCRIPTOR_CHECKSUM NTStatus = 0xC01D0003
8477 STATUS_MONITOR_INVALID_STANDARD_TIMING_BLOCK NTStatus = 0xC01D0004
8478 STATUS_MONITOR_WMI_DATABLOCK_REGISTRATION_FAILED NTStatus = 0xC01D0005
8479 STATUS_MONITOR_INVALID_SERIAL_NUMBER_MONDSC_BLOCK NTStatus = 0xC01D0006
8480 STATUS_MONITOR_INVALID_USER_FRIENDLY_MONDSC_BLOCK NTStatus = 0xC01D0007
8481 STATUS_MONITOR_NO_MORE_DESCRIPTOR_DATA NTStatus = 0xC01D0008
8482 STATUS_MONITOR_INVALID_DETAILED_TIMING_BLOCK NTStatus = 0xC01D0009
8483 STATUS_MONITOR_INVALID_MANUFACTURE_DATE NTStatus = 0xC01D000A
8484 STATUS_GRAPHICS_NOT_EXCLUSIVE_MODE_OWNER NTStatus = 0xC01E0000
8485 STATUS_GRAPHICS_INSUFFICIENT_DMA_BUFFER NTStatus = 0xC01E0001
8486 STATUS_GRAPHICS_INVALID_DISPLAY_ADAPTER NTStatus = 0xC01E0002
8487 STATUS_GRAPHICS_ADAPTER_WAS_RESET NTStatus = 0xC01E0003
8488 STATUS_GRAPHICS_INVALID_DRIVER_MODEL NTStatus = 0xC01E0004
8489 STATUS_GRAPHICS_PRESENT_MODE_CHANGED NTStatus = 0xC01E0005
8490 STATUS_GRAPHICS_PRESENT_OCCLUDED NTStatus = 0xC01E0006
8491 STATUS_GRAPHICS_PRESENT_DENIED NTStatus = 0xC01E0007
8492 STATUS_GRAPHICS_CANNOTCOLORCONVERT NTStatus = 0xC01E0008
8493 STATUS_GRAPHICS_DRIVER_MISMATCH NTStatus = 0xC01E0009
8494 STATUS_GRAPHICS_PARTIAL_DATA_POPULATED NTStatus = 0x401E000A
8495 STATUS_GRAPHICS_PRESENT_REDIRECTION_DISABLED NTStatus = 0xC01E000B
8496 STATUS_GRAPHICS_PRESENT_UNOCCLUDED NTStatus = 0xC01E000C
8497 STATUS_GRAPHICS_WINDOWDC_NOT_AVAILABLE NTStatus = 0xC01E000D
8498 STATUS_GRAPHICS_WINDOWLESS_PRESENT_DISABLED NTStatus = 0xC01E000E
8499 STATUS_GRAPHICS_PRESENT_INVALID_WINDOW NTStatus = 0xC01E000F
8500 STATUS_GRAPHICS_PRESENT_BUFFER_NOT_BOUND NTStatus = 0xC01E0010
8501 STATUS_GRAPHICS_VAIL_STATE_CHANGED NTStatus = 0xC01E0011
8502 STATUS_GRAPHICS_INDIRECT_DISPLAY_ABANDON_SWAPCHAIN NTStatus = 0xC01E0012
8503 STATUS_GRAPHICS_INDIRECT_DISPLAY_DEVICE_STOPPED NTStatus = 0xC01E0013
8504 STATUS_GRAPHICS_NO_VIDEO_MEMORY NTStatus = 0xC01E0100
8505 STATUS_GRAPHICS_CANT_LOCK_MEMORY NTStatus = 0xC01E0101
8506 STATUS_GRAPHICS_ALLOCATION_BUSY NTStatus = 0xC01E0102
8507 STATUS_GRAPHICS_TOO_MANY_REFERENCES NTStatus = 0xC01E0103
8508 STATUS_GRAPHICS_TRY_AGAIN_LATER NTStatus = 0xC01E0104
8509 STATUS_GRAPHICS_TRY_AGAIN_NOW NTStatus = 0xC01E0105
8510 STATUS_GRAPHICS_ALLOCATION_INVALID NTStatus = 0xC01E0106
8511 STATUS_GRAPHICS_UNSWIZZLING_APERTURE_UNAVAILABLE NTStatus = 0xC01E0107
8512 STATUS_GRAPHICS_UNSWIZZLING_APERTURE_UNSUPPORTED NTStatus = 0xC01E0108
8513 STATUS_GRAPHICS_CANT_EVICT_PINNED_ALLOCATION NTStatus = 0xC01E0109
8514 STATUS_GRAPHICS_INVALID_ALLOCATION_USAGE NTStatus = 0xC01E0110
8515 STATUS_GRAPHICS_CANT_RENDER_LOCKED_ALLOCATION NTStatus = 0xC01E0111
8516 STATUS_GRAPHICS_ALLOCATION_CLOSED NTStatus = 0xC01E0112
8517 STATUS_GRAPHICS_INVALID_ALLOCATION_INSTANCE NTStatus = 0xC01E0113
8518 STATUS_GRAPHICS_INVALID_ALLOCATION_HANDLE NTStatus = 0xC01E0114
8519 STATUS_GRAPHICS_WRONG_ALLOCATION_DEVICE NTStatus = 0xC01E0115
8520 STATUS_GRAPHICS_ALLOCATION_CONTENT_LOST NTStatus = 0xC01E0116
8521 STATUS_GRAPHICS_GPU_EXCEPTION_ON_DEVICE NTStatus = 0xC01E0200
8522 STATUS_GRAPHICS_SKIP_ALLOCATION_PREPARATION NTStatus = 0x401E0201
8523 STATUS_GRAPHICS_INVALID_VIDPN_TOPOLOGY NTStatus = 0xC01E0300
8524 STATUS_GRAPHICS_VIDPN_TOPOLOGY_NOT_SUPPORTED NTStatus = 0xC01E0301
8525 STATUS_GRAPHICS_VIDPN_TOPOLOGY_CURRENTLY_NOT_SUPPORTED NTStatus = 0xC01E0302
8526 STATUS_GRAPHICS_INVALID_VIDPN NTStatus = 0xC01E0303
8527 STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE NTStatus = 0xC01E0304
8528 STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET NTStatus = 0xC01E0305
8529 STATUS_GRAPHICS_VIDPN_MODALITY_NOT_SUPPORTED NTStatus = 0xC01E0306
8530 STATUS_GRAPHICS_MODE_NOT_PINNED NTStatus = 0x401E0307
8531 STATUS_GRAPHICS_INVALID_VIDPN_SOURCEMODESET NTStatus = 0xC01E0308
8532 STATUS_GRAPHICS_INVALID_VIDPN_TARGETMODESET NTStatus = 0xC01E0309
8533 STATUS_GRAPHICS_INVALID_FREQUENCY NTStatus = 0xC01E030A
8534 STATUS_GRAPHICS_INVALID_ACTIVE_REGION NTStatus = 0xC01E030B
8535 STATUS_GRAPHICS_INVALID_TOTAL_REGION NTStatus = 0xC01E030C
8536 STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE_MODE NTStatus = 0xC01E0310
8537 STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET_MODE NTStatus = 0xC01E0311
8538 STATUS_GRAPHICS_PINNED_MODE_MUST_REMAIN_IN_SET NTStatus = 0xC01E0312
8539 STATUS_GRAPHICS_PATH_ALREADY_IN_TOPOLOGY NTStatus = 0xC01E0313
8540 STATUS_GRAPHICS_MODE_ALREADY_IN_MODESET NTStatus = 0xC01E0314
8541 STATUS_GRAPHICS_INVALID_VIDEOPRESENTSOURCESET NTStatus = 0xC01E0315
8542 STATUS_GRAPHICS_INVALID_VIDEOPRESENTTARGETSET NTStatus = 0xC01E0316
8543 STATUS_GRAPHICS_SOURCE_ALREADY_IN_SET NTStatus = 0xC01E0317
8544 STATUS_GRAPHICS_TARGET_ALREADY_IN_SET NTStatus = 0xC01E0318
8545 STATUS_GRAPHICS_INVALID_VIDPN_PRESENT_PATH NTStatus = 0xC01E0319
8546 STATUS_GRAPHICS_NO_RECOMMENDED_VIDPN_TOPOLOGY NTStatus = 0xC01E031A
8547 STATUS_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGESET NTStatus = 0xC01E031B
8548 STATUS_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE NTStatus = 0xC01E031C
8549 STATUS_GRAPHICS_FREQUENCYRANGE_NOT_IN_SET NTStatus = 0xC01E031D
8550 STATUS_GRAPHICS_NO_PREFERRED_MODE NTStatus = 0x401E031E
8551 STATUS_GRAPHICS_FREQUENCYRANGE_ALREADY_IN_SET NTStatus = 0xC01E031F
8552 STATUS_GRAPHICS_STALE_MODESET NTStatus = 0xC01E0320
8553 STATUS_GRAPHICS_INVALID_MONITOR_SOURCEMODESET NTStatus = 0xC01E0321
8554 STATUS_GRAPHICS_INVALID_MONITOR_SOURCE_MODE NTStatus = 0xC01E0322
8555 STATUS_GRAPHICS_NO_RECOMMENDED_FUNCTIONAL_VIDPN NTStatus = 0xC01E0323
8556 STATUS_GRAPHICS_MODE_ID_MUST_BE_UNIQUE NTStatus = 0xC01E0324
8557 STATUS_GRAPHICS_EMPTY_ADAPTER_MONITOR_MODE_SUPPORT_INTERSECTION NTStatus = 0xC01E0325
8558 STATUS_GRAPHICS_VIDEO_PRESENT_TARGETS_LESS_THAN_SOURCES NTStatus = 0xC01E0326
8559 STATUS_GRAPHICS_PATH_NOT_IN_TOPOLOGY NTStatus = 0xC01E0327
8560 STATUS_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_SOURCE NTStatus = 0xC01E0328
8561 STATUS_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_TARGET NTStatus = 0xC01E0329
8562 STATUS_GRAPHICS_INVALID_MONITORDESCRIPTORSET NTStatus = 0xC01E032A
8563 STATUS_GRAPHICS_INVALID_MONITORDESCRIPTOR NTStatus = 0xC01E032B
8564 STATUS_GRAPHICS_MONITORDESCRIPTOR_NOT_IN_SET NTStatus = 0xC01E032C
8565 STATUS_GRAPHICS_MONITORDESCRIPTOR_ALREADY_IN_SET NTStatus = 0xC01E032D
8566 STATUS_GRAPHICS_MONITORDESCRIPTOR_ID_MUST_BE_UNIQUE NTStatus = 0xC01E032E
8567 STATUS_GRAPHICS_INVALID_VIDPN_TARGET_SUBSET_TYPE NTStatus = 0xC01E032F
8568 STATUS_GRAPHICS_RESOURCES_NOT_RELATED NTStatus = 0xC01E0330
8569 STATUS_GRAPHICS_SOURCE_ID_MUST_BE_UNIQUE NTStatus = 0xC01E0331
8570 STATUS_GRAPHICS_TARGET_ID_MUST_BE_UNIQUE NTStatus = 0xC01E0332
8571 STATUS_GRAPHICS_NO_AVAILABLE_VIDPN_TARGET NTStatus = 0xC01E0333
8572 STATUS_GRAPHICS_MONITOR_COULD_NOT_BE_ASSOCIATED_WITH_ADAPTER NTStatus = 0xC01E0334
8573 STATUS_GRAPHICS_NO_VIDPNMGR NTStatus = 0xC01E0335
8574 STATUS_GRAPHICS_NO_ACTIVE_VIDPN NTStatus = 0xC01E0336
8575 STATUS_GRAPHICS_STALE_VIDPN_TOPOLOGY NTStatus = 0xC01E0337
8576 STATUS_GRAPHICS_MONITOR_NOT_CONNECTED NTStatus = 0xC01E0338
8577 STATUS_GRAPHICS_SOURCE_NOT_IN_TOPOLOGY NTStatus = 0xC01E0339
8578 STATUS_GRAPHICS_INVALID_PRIMARYSURFACE_SIZE NTStatus = 0xC01E033A
8579 STATUS_GRAPHICS_INVALID_VISIBLEREGION_SIZE NTStatus = 0xC01E033B
8580 STATUS_GRAPHICS_INVALID_STRIDE NTStatus = 0xC01E033C
8581 STATUS_GRAPHICS_INVALID_PIXELFORMAT NTStatus = 0xC01E033D
8582 STATUS_GRAPHICS_INVALID_COLORBASIS NTStatus = 0xC01E033E
8583 STATUS_GRAPHICS_INVALID_PIXELVALUEACCESSMODE NTStatus = 0xC01E033F
8584 STATUS_GRAPHICS_TARGET_NOT_IN_TOPOLOGY NTStatus = 0xC01E0340
8585 STATUS_GRAPHICS_NO_DISPLAY_MODE_MANAGEMENT_SUPPORT NTStatus = 0xC01E0341
8586 STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE NTStatus = 0xC01E0342
8587 STATUS_GRAPHICS_CANT_ACCESS_ACTIVE_VIDPN NTStatus = 0xC01E0343
8588 STATUS_GRAPHICS_INVALID_PATH_IMPORTANCE_ORDINAL NTStatus = 0xC01E0344
8589 STATUS_GRAPHICS_INVALID_PATH_CONTENT_GEOMETRY_TRANSFORMATION NTStatus = 0xC01E0345
8590 STATUS_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_SUPPORTED NTStatus = 0xC01E0346
8591 STATUS_GRAPHICS_INVALID_GAMMA_RAMP NTStatus = 0xC01E0347
8592 STATUS_GRAPHICS_GAMMA_RAMP_NOT_SUPPORTED NTStatus = 0xC01E0348
8593 STATUS_GRAPHICS_MULTISAMPLING_NOT_SUPPORTED NTStatus = 0xC01E0349
8594 STATUS_GRAPHICS_MODE_NOT_IN_MODESET NTStatus = 0xC01E034A
8595 STATUS_GRAPHICS_DATASET_IS_EMPTY NTStatus = 0x401E034B
8596 STATUS_GRAPHICS_NO_MORE_ELEMENTS_IN_DATASET NTStatus = 0x401E034C
8597 STATUS_GRAPHICS_INVALID_VIDPN_TOPOLOGY_RECOMMENDATION_REASON NTStatus = 0xC01E034D
8598 STATUS_GRAPHICS_INVALID_PATH_CONTENT_TYPE NTStatus = 0xC01E034E
8599 STATUS_GRAPHICS_INVALID_COPYPROTECTION_TYPE NTStatus = 0xC01E034F
8600 STATUS_GRAPHICS_UNASSIGNED_MODESET_ALREADY_EXISTS NTStatus = 0xC01E0350
8601 STATUS_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_PINNED NTStatus = 0x401E0351
8602 STATUS_GRAPHICS_INVALID_SCANLINE_ORDERING NTStatus = 0xC01E0352
8603 STATUS_GRAPHICS_TOPOLOGY_CHANGES_NOT_ALLOWED NTStatus = 0xC01E0353
8604 STATUS_GRAPHICS_NO_AVAILABLE_IMPORTANCE_ORDINALS NTStatus = 0xC01E0354
8605 STATUS_GRAPHICS_INCOMPATIBLE_PRIVATE_FORMAT NTStatus = 0xC01E0355
8606 STATUS_GRAPHICS_INVALID_MODE_PRUNING_ALGORITHM NTStatus = 0xC01E0356
8607 STATUS_GRAPHICS_INVALID_MONITOR_CAPABILITY_ORIGIN NTStatus = 0xC01E0357
8608 STATUS_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE_CONSTRAINT NTStatus = 0xC01E0358
8609 STATUS_GRAPHICS_MAX_NUM_PATHS_REACHED NTStatus = 0xC01E0359
8610 STATUS_GRAPHICS_CANCEL_VIDPN_TOPOLOGY_AUGMENTATION NTStatus = 0xC01E035A
8611 STATUS_GRAPHICS_INVALID_CLIENT_TYPE NTStatus = 0xC01E035B
8612 STATUS_GRAPHICS_CLIENTVIDPN_NOT_SET NTStatus = 0xC01E035C
8613 STATUS_GRAPHICS_SPECIFIED_CHILD_ALREADY_CONNECTED NTStatus = 0xC01E0400
8614 STATUS_GRAPHICS_CHILD_DESCRIPTOR_NOT_SUPPORTED NTStatus = 0xC01E0401
8615 STATUS_GRAPHICS_UNKNOWN_CHILD_STATUS NTStatus = 0x401E042F
8616 STATUS_GRAPHICS_NOT_A_LINKED_ADAPTER NTStatus = 0xC01E0430
8617 STATUS_GRAPHICS_LEADLINK_NOT_ENUMERATED NTStatus = 0xC01E0431
8618 STATUS_GRAPHICS_CHAINLINKS_NOT_ENUMERATED NTStatus = 0xC01E0432
8619 STATUS_GRAPHICS_ADAPTER_CHAIN_NOT_READY NTStatus = 0xC01E0433
8620 STATUS_GRAPHICS_CHAINLINKS_NOT_STARTED NTStatus = 0xC01E0434
8621 STATUS_GRAPHICS_CHAINLINKS_NOT_POWERED_ON NTStatus = 0xC01E0435
8622 STATUS_GRAPHICS_INCONSISTENT_DEVICE_LINK_STATE NTStatus = 0xC01E0436
8623 STATUS_GRAPHICS_LEADLINK_START_DEFERRED NTStatus = 0x401E0437
8624 STATUS_GRAPHICS_NOT_POST_DEVICE_DRIVER NTStatus = 0xC01E0438
8625 STATUS_GRAPHICS_POLLING_TOO_FREQUENTLY NTStatus = 0x401E0439
8626 STATUS_GRAPHICS_START_DEFERRED NTStatus = 0x401E043A
8627 STATUS_GRAPHICS_ADAPTER_ACCESS_NOT_EXCLUDED NTStatus = 0xC01E043B
8628 STATUS_GRAPHICS_DEPENDABLE_CHILD_STATUS NTStatus = 0x401E043C
8629 STATUS_GRAPHICS_OPM_NOT_SUPPORTED NTStatus = 0xC01E0500
8630 STATUS_GRAPHICS_COPP_NOT_SUPPORTED NTStatus = 0xC01E0501
8631 STATUS_GRAPHICS_UAB_NOT_SUPPORTED NTStatus = 0xC01E0502
8632 STATUS_GRAPHICS_OPM_INVALID_ENCRYPTED_PARAMETERS NTStatus = 0xC01E0503
8633 STATUS_GRAPHICS_OPM_NO_PROTECTED_OUTPUTS_EXIST NTStatus = 0xC01E0505
8634 STATUS_GRAPHICS_OPM_INTERNAL_ERROR NTStatus = 0xC01E050B
8635 STATUS_GRAPHICS_OPM_INVALID_HANDLE NTStatus = 0xC01E050C
8636 STATUS_GRAPHICS_PVP_INVALID_CERTIFICATE_LENGTH NTStatus = 0xC01E050E
8637 STATUS_GRAPHICS_OPM_SPANNING_MODE_ENABLED NTStatus = 0xC01E050F
8638 STATUS_GRAPHICS_OPM_THEATER_MODE_ENABLED NTStatus = 0xC01E0510
8639 STATUS_GRAPHICS_PVP_HFS_FAILED NTStatus = 0xC01E0511
8640 STATUS_GRAPHICS_OPM_INVALID_SRM NTStatus = 0xC01E0512
8641 STATUS_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_HDCP NTStatus = 0xC01E0513
8642 STATUS_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_ACP NTStatus = 0xC01E0514
8643 STATUS_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_CGMSA NTStatus = 0xC01E0515
8644 STATUS_GRAPHICS_OPM_HDCP_SRM_NEVER_SET NTStatus = 0xC01E0516
8645 STATUS_GRAPHICS_OPM_RESOLUTION_TOO_HIGH NTStatus = 0xC01E0517
8646 STATUS_GRAPHICS_OPM_ALL_HDCP_HARDWARE_ALREADY_IN_USE NTStatus = 0xC01E0518
8647 STATUS_GRAPHICS_OPM_PROTECTED_OUTPUT_NO_LONGER_EXISTS NTStatus = 0xC01E051A
8648 STATUS_GRAPHICS_OPM_PROTECTED_OUTPUT_DOES_NOT_HAVE_COPP_SEMANTICS NTStatus = 0xC01E051C
8649 STATUS_GRAPHICS_OPM_INVALID_INFORMATION_REQUEST NTStatus = 0xC01E051D
8650 STATUS_GRAPHICS_OPM_DRIVER_INTERNAL_ERROR NTStatus = 0xC01E051E
8651 STATUS_GRAPHICS_OPM_PROTECTED_OUTPUT_DOES_NOT_HAVE_OPM_SEMANTICS NTStatus = 0xC01E051F
8652 STATUS_GRAPHICS_OPM_SIGNALING_NOT_SUPPORTED NTStatus = 0xC01E0520
8653 STATUS_GRAPHICS_OPM_INVALID_CONFIGURATION_REQUEST NTStatus = 0xC01E0521
8654 STATUS_GRAPHICS_I2C_NOT_SUPPORTED NTStatus = 0xC01E0580
8655 STATUS_GRAPHICS_I2C_DEVICE_DOES_NOT_EXIST NTStatus = 0xC01E0581
8656 STATUS_GRAPHICS_I2C_ERROR_TRANSMITTING_DATA NTStatus = 0xC01E0582
8657 STATUS_GRAPHICS_I2C_ERROR_RECEIVING_DATA NTStatus = 0xC01E0583
8658 STATUS_GRAPHICS_DDCCI_VCP_NOT_SUPPORTED NTStatus = 0xC01E0584
8659 STATUS_GRAPHICS_DDCCI_INVALID_DATA NTStatus = 0xC01E0585
8660 STATUS_GRAPHICS_DDCCI_MONITOR_RETURNED_INVALID_TIMING_STATUS_BYTE NTStatus = 0xC01E0586
8661 STATUS_GRAPHICS_DDCCI_INVALID_CAPABILITIES_STRING NTStatus = 0xC01E0587
8662 STATUS_GRAPHICS_MCA_INTERNAL_ERROR NTStatus = 0xC01E0588
8663 STATUS_GRAPHICS_DDCCI_INVALID_MESSAGE_COMMAND NTStatus = 0xC01E0589
8664 STATUS_GRAPHICS_DDCCI_INVALID_MESSAGE_LENGTH NTStatus = 0xC01E058A
8665 STATUS_GRAPHICS_DDCCI_INVALID_MESSAGE_CHECKSUM NTStatus = 0xC01E058B
8666 STATUS_GRAPHICS_INVALID_PHYSICAL_MONITOR_HANDLE NTStatus = 0xC01E058C
8667 STATUS_GRAPHICS_MONITOR_NO_LONGER_EXISTS NTStatus = 0xC01E058D
8668 STATUS_GRAPHICS_ONLY_CONSOLE_SESSION_SUPPORTED NTStatus = 0xC01E05E0
8669 STATUS_GRAPHICS_NO_DISPLAY_DEVICE_CORRESPONDS_TO_NAME NTStatus = 0xC01E05E1
8670 STATUS_GRAPHICS_DISPLAY_DEVICE_NOT_ATTACHED_TO_DESKTOP NTStatus = 0xC01E05E2
8671 STATUS_GRAPHICS_MIRRORING_DEVICES_NOT_SUPPORTED NTStatus = 0xC01E05E3
8672 STATUS_GRAPHICS_INVALID_POINTER NTStatus = 0xC01E05E4
8673 STATUS_GRAPHICS_NO_MONITORS_CORRESPOND_TO_DISPLAY_DEVICE NTStatus = 0xC01E05E5
8674 STATUS_GRAPHICS_PARAMETER_ARRAY_TOO_SMALL NTStatus = 0xC01E05E6
8675 STATUS_GRAPHICS_INTERNAL_ERROR NTStatus = 0xC01E05E7
8676 STATUS_GRAPHICS_SESSION_TYPE_CHANGE_IN_PROGRESS NTStatus = 0xC01E05E8
8677 STATUS_FVE_LOCKED_VOLUME NTStatus = 0xC0210000
8678 STATUS_FVE_NOT_ENCRYPTED NTStatus = 0xC0210001
8679 STATUS_FVE_BAD_INFORMATION NTStatus = 0xC0210002
8680 STATUS_FVE_TOO_SMALL NTStatus = 0xC0210003
8681 STATUS_FVE_FAILED_WRONG_FS NTStatus = 0xC0210004
8682 STATUS_FVE_BAD_PARTITION_SIZE NTStatus = 0xC0210005
8683 STATUS_FVE_FS_NOT_EXTENDED NTStatus = 0xC0210006
8684 STATUS_FVE_FS_MOUNTED NTStatus = 0xC0210007
8685 STATUS_FVE_NO_LICENSE NTStatus = 0xC0210008
8686 STATUS_FVE_ACTION_NOT_ALLOWED NTStatus = 0xC0210009
8687 STATUS_FVE_BAD_DATA NTStatus = 0xC021000A
8688 STATUS_FVE_VOLUME_NOT_BOUND NTStatus = 0xC021000B
8689 STATUS_FVE_NOT_DATA_VOLUME NTStatus = 0xC021000C
8690 STATUS_FVE_CONV_READ_ERROR NTStatus = 0xC021000D
8691 STATUS_FVE_CONV_WRITE_ERROR NTStatus = 0xC021000E
8692 STATUS_FVE_OVERLAPPED_UPDATE NTStatus = 0xC021000F
8693 STATUS_FVE_FAILED_SECTOR_SIZE NTStatus = 0xC0210010
8694 STATUS_FVE_FAILED_AUTHENTICATION NTStatus = 0xC0210011
8695 STATUS_FVE_NOT_OS_VOLUME NTStatus = 0xC0210012
8696 STATUS_FVE_KEYFILE_NOT_FOUND NTStatus = 0xC0210013
8697 STATUS_FVE_KEYFILE_INVALID NTStatus = 0xC0210014
8698 STATUS_FVE_KEYFILE_NO_VMK NTStatus = 0xC0210015
8699 STATUS_FVE_TPM_DISABLED NTStatus = 0xC0210016
8700 STATUS_FVE_TPM_SRK_AUTH_NOT_ZERO NTStatus = 0xC0210017
8701 STATUS_FVE_TPM_INVALID_PCR NTStatus = 0xC0210018
8702 STATUS_FVE_TPM_NO_VMK NTStatus = 0xC0210019
8703 STATUS_FVE_PIN_INVALID NTStatus = 0xC021001A
8704 STATUS_FVE_AUTH_INVALID_APPLICATION NTStatus = 0xC021001B
8705 STATUS_FVE_AUTH_INVALID_CONFIG NTStatus = 0xC021001C
8706 STATUS_FVE_DEBUGGER_ENABLED NTStatus = 0xC021001D
8707 STATUS_FVE_DRY_RUN_FAILED NTStatus = 0xC021001E
8708 STATUS_FVE_BAD_METADATA_POINTER NTStatus = 0xC021001F
8709 STATUS_FVE_OLD_METADATA_COPY NTStatus = 0xC0210020
8710 STATUS_FVE_REBOOT_REQUIRED NTStatus = 0xC0210021
8711 STATUS_FVE_RAW_ACCESS NTStatus = 0xC0210022
8712 STATUS_FVE_RAW_BLOCKED NTStatus = 0xC0210023
8713 STATUS_FVE_NO_AUTOUNLOCK_MASTER_KEY NTStatus = 0xC0210024
8714 STATUS_FVE_MOR_FAILED NTStatus = 0xC0210025
8715 STATUS_FVE_NO_FEATURE_LICENSE NTStatus = 0xC0210026
8716 STATUS_FVE_POLICY_USER_DISABLE_RDV_NOT_ALLOWED NTStatus = 0xC0210027
8717 STATUS_FVE_CONV_RECOVERY_FAILED NTStatus = 0xC0210028
8718 STATUS_FVE_VIRTUALIZED_SPACE_TOO_BIG NTStatus = 0xC0210029
8719 STATUS_FVE_INVALID_DATUM_TYPE NTStatus = 0xC021002A
8720 STATUS_FVE_VOLUME_TOO_SMALL NTStatus = 0xC0210030
8721 STATUS_FVE_ENH_PIN_INVALID NTStatus = 0xC0210031
8722 STATUS_FVE_FULL_ENCRYPTION_NOT_ALLOWED_ON_TP_STORAGE NTStatus = 0xC0210032
8723 STATUS_FVE_WIPE_NOT_ALLOWED_ON_TP_STORAGE NTStatus = 0xC0210033
8724 STATUS_FVE_NOT_ALLOWED_ON_CSV_STACK NTStatus = 0xC0210034
8725 STATUS_FVE_NOT_ALLOWED_ON_CLUSTER NTStatus = 0xC0210035
8726 STATUS_FVE_NOT_ALLOWED_TO_UPGRADE_WHILE_CONVERTING NTStatus = 0xC0210036
8727 STATUS_FVE_WIPE_CANCEL_NOT_APPLICABLE NTStatus = 0xC0210037
8728 STATUS_FVE_EDRIVE_DRY_RUN_FAILED NTStatus = 0xC0210038
8729 STATUS_FVE_SECUREBOOT_DISABLED NTStatus = 0xC0210039
8730 STATUS_FVE_SECUREBOOT_CONFIG_CHANGE NTStatus = 0xC021003A
8731 STATUS_FVE_DEVICE_LOCKEDOUT NTStatus = 0xC021003B
8732 STATUS_FVE_VOLUME_EXTEND_PREVENTS_EOW_DECRYPT NTStatus = 0xC021003C
8733 STATUS_FVE_NOT_DE_VOLUME NTStatus = 0xC021003D
8734 STATUS_FVE_PROTECTION_DISABLED NTStatus = 0xC021003E
8735 STATUS_FVE_PROTECTION_CANNOT_BE_DISABLED NTStatus = 0xC021003F
8736 STATUS_FVE_OSV_KSR_NOT_ALLOWED NTStatus = 0xC0210040
8737 STATUS_FWP_CALLOUT_NOT_FOUND NTStatus = 0xC0220001
8738 STATUS_FWP_CONDITION_NOT_FOUND NTStatus = 0xC0220002
8739 STATUS_FWP_FILTER_NOT_FOUND NTStatus = 0xC0220003
8740 STATUS_FWP_LAYER_NOT_FOUND NTStatus = 0xC0220004
8741 STATUS_FWP_PROVIDER_NOT_FOUND NTStatus = 0xC0220005
8742 STATUS_FWP_PROVIDER_CONTEXT_NOT_FOUND NTStatus = 0xC0220006
8743 STATUS_FWP_SUBLAYER_NOT_FOUND NTStatus = 0xC0220007
8744 STATUS_FWP_NOT_FOUND NTStatus = 0xC0220008
8745 STATUS_FWP_ALREADY_EXISTS NTStatus = 0xC0220009
8746 STATUS_FWP_IN_USE NTStatus = 0xC022000A
8747 STATUS_FWP_DYNAMIC_SESSION_IN_PROGRESS NTStatus = 0xC022000B
8748 STATUS_FWP_WRONG_SESSION NTStatus = 0xC022000C
8749 STATUS_FWP_NO_TXN_IN_PROGRESS NTStatus = 0xC022000D
8750 STATUS_FWP_TXN_IN_PROGRESS NTStatus = 0xC022000E
8751 STATUS_FWP_TXN_ABORTED NTStatus = 0xC022000F
8752 STATUS_FWP_SESSION_ABORTED NTStatus = 0xC0220010
8753 STATUS_FWP_INCOMPATIBLE_TXN NTStatus = 0xC0220011
8754 STATUS_FWP_TIMEOUT NTStatus = 0xC0220012
8755 STATUS_FWP_NET_EVENTS_DISABLED NTStatus = 0xC0220013
8756 STATUS_FWP_INCOMPATIBLE_LAYER NTStatus = 0xC0220014
8757 STATUS_FWP_KM_CLIENTS_ONLY NTStatus = 0xC0220015
8758 STATUS_FWP_LIFETIME_MISMATCH NTStatus = 0xC0220016
8759 STATUS_FWP_BUILTIN_OBJECT NTStatus = 0xC0220017
8760 STATUS_FWP_TOO_MANY_CALLOUTS NTStatus = 0xC0220018
8761 STATUS_FWP_NOTIFICATION_DROPPED NTStatus = 0xC0220019
8762 STATUS_FWP_TRAFFIC_MISMATCH NTStatus = 0xC022001A
8763 STATUS_FWP_INCOMPATIBLE_SA_STATE NTStatus = 0xC022001B
8764 STATUS_FWP_NULL_POINTER NTStatus = 0xC022001C
8765 STATUS_FWP_INVALID_ENUMERATOR NTStatus = 0xC022001D
8766 STATUS_FWP_INVALID_FLAGS NTStatus = 0xC022001E
8767 STATUS_FWP_INVALID_NET_MASK NTStatus = 0xC022001F
8768 STATUS_FWP_INVALID_RANGE NTStatus = 0xC0220020
8769 STATUS_FWP_INVALID_INTERVAL NTStatus = 0xC0220021
8770 STATUS_FWP_ZERO_LENGTH_ARRAY NTStatus = 0xC0220022
8771 STATUS_FWP_NULL_DISPLAY_NAME NTStatus = 0xC0220023
8772 STATUS_FWP_INVALID_ACTION_TYPE NTStatus = 0xC0220024
8773 STATUS_FWP_INVALID_WEIGHT NTStatus = 0xC0220025
8774 STATUS_FWP_MATCH_TYPE_MISMATCH NTStatus = 0xC0220026
8775 STATUS_FWP_TYPE_MISMATCH NTStatus = 0xC0220027
8776 STATUS_FWP_OUT_OF_BOUNDS NTStatus = 0xC0220028
8777 STATUS_FWP_RESERVED NTStatus = 0xC0220029
8778 STATUS_FWP_DUPLICATE_CONDITION NTStatus = 0xC022002A
8779 STATUS_FWP_DUPLICATE_KEYMOD NTStatus = 0xC022002B
8780 STATUS_FWP_ACTION_INCOMPATIBLE_WITH_LAYER NTStatus = 0xC022002C
8781 STATUS_FWP_ACTION_INCOMPATIBLE_WITH_SUBLAYER NTStatus = 0xC022002D
8782 STATUS_FWP_CONTEXT_INCOMPATIBLE_WITH_LAYER NTStatus = 0xC022002E
8783 STATUS_FWP_CONTEXT_INCOMPATIBLE_WITH_CALLOUT NTStatus = 0xC022002F
8784 STATUS_FWP_INCOMPATIBLE_AUTH_METHOD NTStatus = 0xC0220030
8785 STATUS_FWP_INCOMPATIBLE_DH_GROUP NTStatus = 0xC0220031
8786 STATUS_FWP_EM_NOT_SUPPORTED NTStatus = 0xC0220032
8787 STATUS_FWP_NEVER_MATCH NTStatus = 0xC0220033
8788 STATUS_FWP_PROVIDER_CONTEXT_MISMATCH NTStatus = 0xC0220034
8789 STATUS_FWP_INVALID_PARAMETER NTStatus = 0xC0220035
8790 STATUS_FWP_TOO_MANY_SUBLAYERS NTStatus = 0xC0220036
8791 STATUS_FWP_CALLOUT_NOTIFICATION_FAILED NTStatus = 0xC0220037
8792 STATUS_FWP_INVALID_AUTH_TRANSFORM NTStatus = 0xC0220038
8793 STATUS_FWP_INVALID_CIPHER_TRANSFORM NTStatus = 0xC0220039
8794 STATUS_FWP_INCOMPATIBLE_CIPHER_TRANSFORM NTStatus = 0xC022003A
8795 STATUS_FWP_INVALID_TRANSFORM_COMBINATION NTStatus = 0xC022003B
8796 STATUS_FWP_DUPLICATE_AUTH_METHOD NTStatus = 0xC022003C
8797 STATUS_FWP_INVALID_TUNNEL_ENDPOINT NTStatus = 0xC022003D
8798 STATUS_FWP_L2_DRIVER_NOT_READY NTStatus = 0xC022003E
8799 STATUS_FWP_KEY_DICTATOR_ALREADY_REGISTERED NTStatus = 0xC022003F
8800 STATUS_FWP_KEY_DICTATION_INVALID_KEYING_MATERIAL NTStatus = 0xC0220040
8801 STATUS_FWP_CONNECTIONS_DISABLED NTStatus = 0xC0220041
8802 STATUS_FWP_INVALID_DNS_NAME NTStatus = 0xC0220042
8803 STATUS_FWP_STILL_ON NTStatus = 0xC0220043
8804 STATUS_FWP_IKEEXT_NOT_RUNNING NTStatus = 0xC0220044
8805 STATUS_FWP_TCPIP_NOT_READY NTStatus = 0xC0220100
8806 STATUS_FWP_INJECT_HANDLE_CLOSING NTStatus = 0xC0220101
8807 STATUS_FWP_INJECT_HANDLE_STALE NTStatus = 0xC0220102
8808 STATUS_FWP_CANNOT_PEND NTStatus = 0xC0220103
8809 STATUS_FWP_DROP_NOICMP NTStatus = 0xC0220104
8810 STATUS_NDIS_CLOSING NTStatus = 0xC0230002
8811 STATUS_NDIS_BAD_VERSION NTStatus = 0xC0230004
8812 STATUS_NDIS_BAD_CHARACTERISTICS NTStatus = 0xC0230005
8813 STATUS_NDIS_ADAPTER_NOT_FOUND NTStatus = 0xC0230006
8814 STATUS_NDIS_OPEN_FAILED NTStatus = 0xC0230007
8815 STATUS_NDIS_DEVICE_FAILED NTStatus = 0xC0230008
8816 STATUS_NDIS_MULTICAST_FULL NTStatus = 0xC0230009
8817 STATUS_NDIS_MULTICAST_EXISTS NTStatus = 0xC023000A
8818 STATUS_NDIS_MULTICAST_NOT_FOUND NTStatus = 0xC023000B
8819 STATUS_NDIS_REQUEST_ABORTED NTStatus = 0xC023000C
8820 STATUS_NDIS_RESET_IN_PROGRESS NTStatus = 0xC023000D
8821 STATUS_NDIS_NOT_SUPPORTED NTStatus = 0xC02300BB
8822 STATUS_NDIS_INVALID_PACKET NTStatus = 0xC023000F
8823 STATUS_NDIS_ADAPTER_NOT_READY NTStatus = 0xC0230011
8824 STATUS_NDIS_INVALID_LENGTH NTStatus = 0xC0230014
8825 STATUS_NDIS_INVALID_DATA NTStatus = 0xC0230015
8826 STATUS_NDIS_BUFFER_TOO_SHORT NTStatus = 0xC0230016
8827 STATUS_NDIS_INVALID_OID NTStatus = 0xC0230017
8828 STATUS_NDIS_ADAPTER_REMOVED NTStatus = 0xC0230018
8829 STATUS_NDIS_UNSUPPORTED_MEDIA NTStatus = 0xC0230019
8830 STATUS_NDIS_GROUP_ADDRESS_IN_USE NTStatus = 0xC023001A
8831 STATUS_NDIS_FILE_NOT_FOUND NTStatus = 0xC023001B
8832 STATUS_NDIS_ERROR_READING_FILE NTStatus = 0xC023001C
8833 STATUS_NDIS_ALREADY_MAPPED NTStatus = 0xC023001D
8834 STATUS_NDIS_RESOURCE_CONFLICT NTStatus = 0xC023001E
8835 STATUS_NDIS_MEDIA_DISCONNECTED NTStatus = 0xC023001F
8836 STATUS_NDIS_INVALID_ADDRESS NTStatus = 0xC0230022
8837 STATUS_NDIS_INVALID_DEVICE_REQUEST NTStatus = 0xC0230010
8838 STATUS_NDIS_PAUSED NTStatus = 0xC023002A
8839 STATUS_NDIS_INTERFACE_NOT_FOUND NTStatus = 0xC023002B
8840 STATUS_NDIS_UNSUPPORTED_REVISION NTStatus = 0xC023002C
8841 STATUS_NDIS_INVALID_PORT NTStatus = 0xC023002D
8842 STATUS_NDIS_INVALID_PORT_STATE NTStatus = 0xC023002E
8843 STATUS_NDIS_LOW_POWER_STATE NTStatus = 0xC023002F
8844 STATUS_NDIS_REINIT_REQUIRED NTStatus = 0xC0230030
8845 STATUS_NDIS_NO_QUEUES NTStatus = 0xC0230031
8846 STATUS_NDIS_DOT11_AUTO_CONFIG_ENABLED NTStatus = 0xC0232000
8847 STATUS_NDIS_DOT11_MEDIA_IN_USE NTStatus = 0xC0232001
8848 STATUS_NDIS_DOT11_POWER_STATE_INVALID NTStatus = 0xC0232002
8849 STATUS_NDIS_PM_WOL_PATTERN_LIST_FULL NTStatus = 0xC0232003
8850 STATUS_NDIS_PM_PROTOCOL_OFFLOAD_LIST_FULL NTStatus = 0xC0232004
8851 STATUS_NDIS_DOT11_AP_CHANNEL_CURRENTLY_NOT_AVAILABLE NTStatus = 0xC0232005
8852 STATUS_NDIS_DOT11_AP_BAND_CURRENTLY_NOT_AVAILABLE NTStatus = 0xC0232006
8853 STATUS_NDIS_DOT11_AP_CHANNEL_NOT_ALLOWED NTStatus = 0xC0232007
8854 STATUS_NDIS_DOT11_AP_BAND_NOT_ALLOWED NTStatus = 0xC0232008
8855 STATUS_NDIS_INDICATION_REQUIRED NTStatus = 0x40230001
8856 STATUS_NDIS_OFFLOAD_POLICY NTStatus = 0xC023100F
8857 STATUS_NDIS_OFFLOAD_CONNECTION_REJECTED NTStatus = 0xC0231012
8858 STATUS_NDIS_OFFLOAD_PATH_REJECTED NTStatus = 0xC0231013
8859 STATUS_TPM_ERROR_MASK NTStatus = 0xC0290000
8860 STATUS_TPM_AUTHFAIL NTStatus = 0xC0290001
8861 STATUS_TPM_BADINDEX NTStatus = 0xC0290002
8862 STATUS_TPM_BAD_PARAMETER NTStatus = 0xC0290003
8863 STATUS_TPM_AUDITFAILURE NTStatus = 0xC0290004
8864 STATUS_TPM_CLEAR_DISABLED NTStatus = 0xC0290005
8865 STATUS_TPM_DEACTIVATED NTStatus = 0xC0290006
8866 STATUS_TPM_DISABLED NTStatus = 0xC0290007
8867 STATUS_TPM_DISABLED_CMD NTStatus = 0xC0290008
8868 STATUS_TPM_FAIL NTStatus = 0xC0290009
8869 STATUS_TPM_BAD_ORDINAL NTStatus = 0xC029000A
8870 STATUS_TPM_INSTALL_DISABLED NTStatus = 0xC029000B
8871 STATUS_TPM_INVALID_KEYHANDLE NTStatus = 0xC029000C
8872 STATUS_TPM_KEYNOTFOUND NTStatus = 0xC029000D
8873 STATUS_TPM_INAPPROPRIATE_ENC NTStatus = 0xC029000E
8874 STATUS_TPM_MIGRATEFAIL NTStatus = 0xC029000F
8875 STATUS_TPM_INVALID_PCR_INFO NTStatus = 0xC0290010
8876 STATUS_TPM_NOSPACE NTStatus = 0xC0290011
8877 STATUS_TPM_NOSRK NTStatus = 0xC0290012
8878 STATUS_TPM_NOTSEALED_BLOB NTStatus = 0xC0290013
8879 STATUS_TPM_OWNER_SET NTStatus = 0xC0290014
8880 STATUS_TPM_RESOURCES NTStatus = 0xC0290015
8881 STATUS_TPM_SHORTRANDOM NTStatus = 0xC0290016
8882 STATUS_TPM_SIZE NTStatus = 0xC0290017
8883 STATUS_TPM_WRONGPCRVAL NTStatus = 0xC0290018
8884 STATUS_TPM_BAD_PARAM_SIZE NTStatus = 0xC0290019
8885 STATUS_TPM_SHA_THREAD NTStatus = 0xC029001A
8886 STATUS_TPM_SHA_ERROR NTStatus = 0xC029001B
8887 STATUS_TPM_FAILEDSELFTEST NTStatus = 0xC029001C
8888 STATUS_TPM_AUTH2FAIL NTStatus = 0xC029001D
8889 STATUS_TPM_BADTAG NTStatus = 0xC029001E
8890 STATUS_TPM_IOERROR NTStatus = 0xC029001F
8891 STATUS_TPM_ENCRYPT_ERROR NTStatus = 0xC0290020
8892 STATUS_TPM_DECRYPT_ERROR NTStatus = 0xC0290021
8893 STATUS_TPM_INVALID_AUTHHANDLE NTStatus = 0xC0290022
8894 STATUS_TPM_NO_ENDORSEMENT NTStatus = 0xC0290023
8895 STATUS_TPM_INVALID_KEYUSAGE NTStatus = 0xC0290024
8896 STATUS_TPM_WRONG_ENTITYTYPE NTStatus = 0xC0290025
8897 STATUS_TPM_INVALID_POSTINIT NTStatus = 0xC0290026
8898 STATUS_TPM_INAPPROPRIATE_SIG NTStatus = 0xC0290027
8899 STATUS_TPM_BAD_KEY_PROPERTY NTStatus = 0xC0290028
8900 STATUS_TPM_BAD_MIGRATION NTStatus = 0xC0290029
8901 STATUS_TPM_BAD_SCHEME NTStatus = 0xC029002A
8902 STATUS_TPM_BAD_DATASIZE NTStatus = 0xC029002B
8903 STATUS_TPM_BAD_MODE NTStatus = 0xC029002C
8904 STATUS_TPM_BAD_PRESENCE NTStatus = 0xC029002D
8905 STATUS_TPM_BAD_VERSION NTStatus = 0xC029002E
8906 STATUS_TPM_NO_WRAP_TRANSPORT NTStatus = 0xC029002F
8907 STATUS_TPM_AUDITFAIL_UNSUCCESSFUL NTStatus = 0xC0290030
8908 STATUS_TPM_AUDITFAIL_SUCCESSFUL NTStatus = 0xC0290031
8909 STATUS_TPM_NOTRESETABLE NTStatus = 0xC0290032
8910 STATUS_TPM_NOTLOCAL NTStatus = 0xC0290033
8911 STATUS_TPM_BAD_TYPE NTStatus = 0xC0290034
8912 STATUS_TPM_INVALID_RESOURCE NTStatus = 0xC0290035
8913 STATUS_TPM_NOTFIPS NTStatus = 0xC0290036
8914 STATUS_TPM_INVALID_FAMILY NTStatus = 0xC0290037
8915 STATUS_TPM_NO_NV_PERMISSION NTStatus = 0xC0290038
8916 STATUS_TPM_REQUIRES_SIGN NTStatus = 0xC0290039
8917 STATUS_TPM_KEY_NOTSUPPORTED NTStatus = 0xC029003A
8918 STATUS_TPM_AUTH_CONFLICT NTStatus = 0xC029003B
8919 STATUS_TPM_AREA_LOCKED NTStatus = 0xC029003C
8920 STATUS_TPM_BAD_LOCALITY NTStatus = 0xC029003D
8921 STATUS_TPM_READ_ONLY NTStatus = 0xC029003E
8922 STATUS_TPM_PER_NOWRITE NTStatus = 0xC029003F
8923 STATUS_TPM_FAMILYCOUNT NTStatus = 0xC0290040
8924 STATUS_TPM_WRITE_LOCKED NTStatus = 0xC0290041
8925 STATUS_TPM_BAD_ATTRIBUTES NTStatus = 0xC0290042
8926 STATUS_TPM_INVALID_STRUCTURE NTStatus = 0xC0290043
8927 STATUS_TPM_KEY_OWNER_CONTROL NTStatus = 0xC0290044
8928 STATUS_TPM_BAD_COUNTER NTStatus = 0xC0290045
8929 STATUS_TPM_NOT_FULLWRITE NTStatus = 0xC0290046
8930 STATUS_TPM_CONTEXT_GAP NTStatus = 0xC0290047
8931 STATUS_TPM_MAXNVWRITES NTStatus = 0xC0290048
8932 STATUS_TPM_NOOPERATOR NTStatus = 0xC0290049
8933 STATUS_TPM_RESOURCEMISSING NTStatus = 0xC029004A
8934 STATUS_TPM_DELEGATE_LOCK NTStatus = 0xC029004B
8935 STATUS_TPM_DELEGATE_FAMILY NTStatus = 0xC029004C
8936 STATUS_TPM_DELEGATE_ADMIN NTStatus = 0xC029004D
8937 STATUS_TPM_TRANSPORT_NOTEXCLUSIVE NTStatus = 0xC029004E
8938 STATUS_TPM_OWNER_CONTROL NTStatus = 0xC029004F
8939 STATUS_TPM_DAA_RESOURCES NTStatus = 0xC0290050
8940 STATUS_TPM_DAA_INPUT_DATA0 NTStatus = 0xC0290051
8941 STATUS_TPM_DAA_INPUT_DATA1 NTStatus = 0xC0290052
8942 STATUS_TPM_DAA_ISSUER_SETTINGS NTStatus = 0xC0290053
8943 STATUS_TPM_DAA_TPM_SETTINGS NTStatus = 0xC0290054
8944 STATUS_TPM_DAA_STAGE NTStatus = 0xC0290055
8945 STATUS_TPM_DAA_ISSUER_VALIDITY NTStatus = 0xC0290056
8946 STATUS_TPM_DAA_WRONG_W NTStatus = 0xC0290057
8947 STATUS_TPM_BAD_HANDLE NTStatus = 0xC0290058
8948 STATUS_TPM_BAD_DELEGATE NTStatus = 0xC0290059
8949 STATUS_TPM_BADCONTEXT NTStatus = 0xC029005A
8950 STATUS_TPM_TOOMANYCONTEXTS NTStatus = 0xC029005B
8951 STATUS_TPM_MA_TICKET_SIGNATURE NTStatus = 0xC029005C
8952 STATUS_TPM_MA_DESTINATION NTStatus = 0xC029005D
8953 STATUS_TPM_MA_SOURCE NTStatus = 0xC029005E
8954 STATUS_TPM_MA_AUTHORITY NTStatus = 0xC029005F
8955 STATUS_TPM_PERMANENTEK NTStatus = 0xC0290061
8956 STATUS_TPM_BAD_SIGNATURE NTStatus = 0xC0290062
8957 STATUS_TPM_NOCONTEXTSPACE NTStatus = 0xC0290063
8958 STATUS_TPM_20_E_ASYMMETRIC NTStatus = 0xC0290081
8959 STATUS_TPM_20_E_ATTRIBUTES NTStatus = 0xC0290082
8960 STATUS_TPM_20_E_HASH NTStatus = 0xC0290083
8961 STATUS_TPM_20_E_VALUE NTStatus = 0xC0290084
8962 STATUS_TPM_20_E_HIERARCHY NTStatus = 0xC0290085
8963 STATUS_TPM_20_E_KEY_SIZE NTStatus = 0xC0290087
8964 STATUS_TPM_20_E_MGF NTStatus = 0xC0290088
8965 STATUS_TPM_20_E_MODE NTStatus = 0xC0290089
8966 STATUS_TPM_20_E_TYPE NTStatus = 0xC029008A
8967 STATUS_TPM_20_E_HANDLE NTStatus = 0xC029008B
8968 STATUS_TPM_20_E_KDF NTStatus = 0xC029008C
8969 STATUS_TPM_20_E_RANGE NTStatus = 0xC029008D
8970 STATUS_TPM_20_E_AUTH_FAIL NTStatus = 0xC029008E
8971 STATUS_TPM_20_E_NONCE NTStatus = 0xC029008F
8972 STATUS_TPM_20_E_PP NTStatus = 0xC0290090
8973 STATUS_TPM_20_E_SCHEME NTStatus = 0xC0290092
8974 STATUS_TPM_20_E_SIZE NTStatus = 0xC0290095
8975 STATUS_TPM_20_E_SYMMETRIC NTStatus = 0xC0290096
8976 STATUS_TPM_20_E_TAG NTStatus = 0xC0290097
8977 STATUS_TPM_20_E_SELECTOR NTStatus = 0xC0290098
8978 STATUS_TPM_20_E_INSUFFICIENT NTStatus = 0xC029009A
8979 STATUS_TPM_20_E_SIGNATURE NTStatus = 0xC029009B
8980 STATUS_TPM_20_E_KEY NTStatus = 0xC029009C
8981 STATUS_TPM_20_E_POLICY_FAIL NTStatus = 0xC029009D
8982 STATUS_TPM_20_E_INTEGRITY NTStatus = 0xC029009F
8983 STATUS_TPM_20_E_TICKET NTStatus = 0xC02900A0
8984 STATUS_TPM_20_E_RESERVED_BITS NTStatus = 0xC02900A1
8985 STATUS_TPM_20_E_BAD_AUTH NTStatus = 0xC02900A2
8986 STATUS_TPM_20_E_EXPIRED NTStatus = 0xC02900A3
8987 STATUS_TPM_20_E_POLICY_CC NTStatus = 0xC02900A4
8988 STATUS_TPM_20_E_BINDING NTStatus = 0xC02900A5
8989 STATUS_TPM_20_E_CURVE NTStatus = 0xC02900A6
8990 STATUS_TPM_20_E_ECC_POINT NTStatus = 0xC02900A7
8991 STATUS_TPM_20_E_INITIALIZE NTStatus = 0xC0290100
8992 STATUS_TPM_20_E_FAILURE NTStatus = 0xC0290101
8993 STATUS_TPM_20_E_SEQUENCE NTStatus = 0xC0290103
8994 STATUS_TPM_20_E_PRIVATE NTStatus = 0xC029010B
8995 STATUS_TPM_20_E_HMAC NTStatus = 0xC0290119
8996 STATUS_TPM_20_E_DISABLED NTStatus = 0xC0290120
8997 STATUS_TPM_20_E_EXCLUSIVE NTStatus = 0xC0290121
8998 STATUS_TPM_20_E_ECC_CURVE NTStatus = 0xC0290123
8999 STATUS_TPM_20_E_AUTH_TYPE NTStatus = 0xC0290124
9000 STATUS_TPM_20_E_AUTH_MISSING NTStatus = 0xC0290125
9001 STATUS_TPM_20_E_POLICY NTStatus = 0xC0290126
9002 STATUS_TPM_20_E_PCR NTStatus = 0xC0290127
9003 STATUS_TPM_20_E_PCR_CHANGED NTStatus = 0xC0290128
9004 STATUS_TPM_20_E_UPGRADE NTStatus = 0xC029012D
9005 STATUS_TPM_20_E_TOO_MANY_CONTEXTS NTStatus = 0xC029012E
9006 STATUS_TPM_20_E_AUTH_UNAVAILABLE NTStatus = 0xC029012F
9007 STATUS_TPM_20_E_REBOOT NTStatus = 0xC0290130
9008 STATUS_TPM_20_E_UNBALANCED NTStatus = 0xC0290131
9009 STATUS_TPM_20_E_COMMAND_SIZE NTStatus = 0xC0290142
9010 STATUS_TPM_20_E_COMMAND_CODE NTStatus = 0xC0290143
9011 STATUS_TPM_20_E_AUTHSIZE NTStatus = 0xC0290144
9012 STATUS_TPM_20_E_AUTH_CONTEXT NTStatus = 0xC0290145
9013 STATUS_TPM_20_E_NV_RANGE NTStatus = 0xC0290146
9014 STATUS_TPM_20_E_NV_SIZE NTStatus = 0xC0290147
9015 STATUS_TPM_20_E_NV_LOCKED NTStatus = 0xC0290148
9016 STATUS_TPM_20_E_NV_AUTHORIZATION NTStatus = 0xC0290149
9017 STATUS_TPM_20_E_NV_UNINITIALIZED NTStatus = 0xC029014A
9018 STATUS_TPM_20_E_NV_SPACE NTStatus = 0xC029014B
9019 STATUS_TPM_20_E_NV_DEFINED NTStatus = 0xC029014C
9020 STATUS_TPM_20_E_BAD_CONTEXT NTStatus = 0xC0290150
9021 STATUS_TPM_20_E_CPHASH NTStatus = 0xC0290151
9022 STATUS_TPM_20_E_PARENT NTStatus = 0xC0290152
9023 STATUS_TPM_20_E_NEEDS_TEST NTStatus = 0xC0290153
9024 STATUS_TPM_20_E_NO_RESULT NTStatus = 0xC0290154
9025 STATUS_TPM_20_E_SENSITIVE NTStatus = 0xC0290155
9026 STATUS_TPM_COMMAND_BLOCKED NTStatus = 0xC0290400
9027 STATUS_TPM_INVALID_HANDLE NTStatus = 0xC0290401
9028 STATUS_TPM_DUPLICATE_VHANDLE NTStatus = 0xC0290402
9029 STATUS_TPM_EMBEDDED_COMMAND_BLOCKED NTStatus = 0xC0290403
9030 STATUS_TPM_EMBEDDED_COMMAND_UNSUPPORTED NTStatus = 0xC0290404
9031 STATUS_TPM_RETRY NTStatus = 0xC0290800
9032 STATUS_TPM_NEEDS_SELFTEST NTStatus = 0xC0290801
9033 STATUS_TPM_DOING_SELFTEST NTStatus = 0xC0290802
9034 STATUS_TPM_DEFEND_LOCK_RUNNING NTStatus = 0xC0290803
9035 STATUS_TPM_COMMAND_CANCELED NTStatus = 0xC0291001
9036 STATUS_TPM_TOO_MANY_CONTEXTS NTStatus = 0xC0291002
9037 STATUS_TPM_NOT_FOUND NTStatus = 0xC0291003
9038 STATUS_TPM_ACCESS_DENIED NTStatus = 0xC0291004
9039 STATUS_TPM_INSUFFICIENT_BUFFER NTStatus = 0xC0291005
9040 STATUS_TPM_PPI_FUNCTION_UNSUPPORTED NTStatus = 0xC0291006
9041 STATUS_PCP_ERROR_MASK NTStatus = 0xC0292000
9042 STATUS_PCP_DEVICE_NOT_READY NTStatus = 0xC0292001
9043 STATUS_PCP_INVALID_HANDLE NTStatus = 0xC0292002
9044 STATUS_PCP_INVALID_PARAMETER NTStatus = 0xC0292003
9045 STATUS_PCP_FLAG_NOT_SUPPORTED NTStatus = 0xC0292004
9046 STATUS_PCP_NOT_SUPPORTED NTStatus = 0xC0292005
9047 STATUS_PCP_BUFFER_TOO_SMALL NTStatus = 0xC0292006
9048 STATUS_PCP_INTERNAL_ERROR NTStatus = 0xC0292007
9049 STATUS_PCP_AUTHENTICATION_FAILED NTStatus = 0xC0292008
9050 STATUS_PCP_AUTHENTICATION_IGNORED NTStatus = 0xC0292009
9051 STATUS_PCP_POLICY_NOT_FOUND NTStatus = 0xC029200A
9052 STATUS_PCP_PROFILE_NOT_FOUND NTStatus = 0xC029200B
9053 STATUS_PCP_VALIDATION_FAILED NTStatus = 0xC029200C
9054 STATUS_PCP_DEVICE_NOT_FOUND NTStatus = 0xC029200D
9055 STATUS_PCP_WRONG_PARENT NTStatus = 0xC029200E
9056 STATUS_PCP_KEY_NOT_LOADED NTStatus = 0xC029200F
9057 STATUS_PCP_NO_KEY_CERTIFICATION NTStatus = 0xC0292010
9058 STATUS_PCP_KEY_NOT_FINALIZED NTStatus = 0xC0292011
9059 STATUS_PCP_ATTESTATION_CHALLENGE_NOT_SET NTStatus = 0xC0292012
9060 STATUS_PCP_NOT_PCR_BOUND NTStatus = 0xC0292013
9061 STATUS_PCP_KEY_ALREADY_FINALIZED NTStatus = 0xC0292014
9062 STATUS_PCP_KEY_USAGE_POLICY_NOT_SUPPORTED NTStatus = 0xC0292015
9063 STATUS_PCP_KEY_USAGE_POLICY_INVALID NTStatus = 0xC0292016
9064 STATUS_PCP_SOFT_KEY_ERROR NTStatus = 0xC0292017
9065 STATUS_PCP_KEY_NOT_AUTHENTICATED NTStatus = 0xC0292018
9066 STATUS_PCP_KEY_NOT_AIK NTStatus = 0xC0292019
9067 STATUS_PCP_KEY_NOT_SIGNING_KEY NTStatus = 0xC029201A
9068 STATUS_PCP_LOCKED_OUT NTStatus = 0xC029201B
9069 STATUS_PCP_CLAIM_TYPE_NOT_SUPPORTED NTStatus = 0xC029201C
9070 STATUS_PCP_TPM_VERSION_NOT_SUPPORTED NTStatus = 0xC029201D
9071 STATUS_PCP_BUFFER_LENGTH_MISMATCH NTStatus = 0xC029201E
9072 STATUS_PCP_IFX_RSA_KEY_CREATION_BLOCKED NTStatus = 0xC029201F
9073 STATUS_PCP_TICKET_MISSING NTStatus = 0xC0292020
9074 STATUS_PCP_RAW_POLICY_NOT_SUPPORTED NTStatus = 0xC0292021
9075 STATUS_PCP_KEY_HANDLE_INVALIDATED NTStatus = 0xC0292022
9076 STATUS_PCP_UNSUPPORTED_PSS_SALT NTStatus = 0x40292023
9077 STATUS_RTPM_CONTEXT_CONTINUE NTStatus = 0x00293000
9078 STATUS_RTPM_CONTEXT_COMPLETE NTStatus = 0x00293001
9079 STATUS_RTPM_NO_RESULT NTStatus = 0xC0293002
9080 STATUS_RTPM_PCR_READ_INCOMPLETE NTStatus = 0xC0293003
9081 STATUS_RTPM_INVALID_CONTEXT NTStatus = 0xC0293004
9082 STATUS_RTPM_UNSUPPORTED_CMD NTStatus = 0xC0293005
9083 STATUS_TPM_ZERO_EXHAUST_ENABLED NTStatus = 0xC0294000
9084 STATUS_HV_INVALID_HYPERCALL_CODE NTStatus = 0xC0350002
9085 STATUS_HV_INVALID_HYPERCALL_INPUT NTStatus = 0xC0350003
9086 STATUS_HV_INVALID_ALIGNMENT NTStatus = 0xC0350004
9087 STATUS_HV_INVALID_PARAMETER NTStatus = 0xC0350005
9088 STATUS_HV_ACCESS_DENIED NTStatus = 0xC0350006
9089 STATUS_HV_INVALID_PARTITION_STATE NTStatus = 0xC0350007
9090 STATUS_HV_OPERATION_DENIED NTStatus = 0xC0350008
9091 STATUS_HV_UNKNOWN_PROPERTY NTStatus = 0xC0350009
9092 STATUS_HV_PROPERTY_VALUE_OUT_OF_RANGE NTStatus = 0xC035000A
9093 STATUS_HV_INSUFFICIENT_MEMORY NTStatus = 0xC035000B
9094 STATUS_HV_PARTITION_TOO_DEEP NTStatus = 0xC035000C
9095 STATUS_HV_INVALID_PARTITION_ID NTStatus = 0xC035000D
9096 STATUS_HV_INVALID_VP_INDEX NTStatus = 0xC035000E
9097 STATUS_HV_INVALID_PORT_ID NTStatus = 0xC0350011
9098 STATUS_HV_INVALID_CONNECTION_ID NTStatus = 0xC0350012
9099 STATUS_HV_INSUFFICIENT_BUFFERS NTStatus = 0xC0350013
9100 STATUS_HV_NOT_ACKNOWLEDGED NTStatus = 0xC0350014
9101 STATUS_HV_INVALID_VP_STATE NTStatus = 0xC0350015
9102 STATUS_HV_ACKNOWLEDGED NTStatus = 0xC0350016
9103 STATUS_HV_INVALID_SAVE_RESTORE_STATE NTStatus = 0xC0350017
9104 STATUS_HV_INVALID_SYNIC_STATE NTStatus = 0xC0350018
9105 STATUS_HV_OBJECT_IN_USE NTStatus = 0xC0350019
9106 STATUS_HV_INVALID_PROXIMITY_DOMAIN_INFO NTStatus = 0xC035001A
9107 STATUS_HV_NO_DATA NTStatus = 0xC035001B
9108 STATUS_HV_INACTIVE NTStatus = 0xC035001C
9109 STATUS_HV_NO_RESOURCES NTStatus = 0xC035001D
9110 STATUS_HV_FEATURE_UNAVAILABLE NTStatus = 0xC035001E
9111 STATUS_HV_INSUFFICIENT_BUFFER NTStatus = 0xC0350033
9112 STATUS_HV_INSUFFICIENT_DEVICE_DOMAINS NTStatus = 0xC0350038
9113 STATUS_HV_CPUID_FEATURE_VALIDATION_ERROR NTStatus = 0xC035003C
9114 STATUS_HV_CPUID_XSAVE_FEATURE_VALIDATION_ERROR NTStatus = 0xC035003D
9115 STATUS_HV_PROCESSOR_STARTUP_TIMEOUT NTStatus = 0xC035003E
9116 STATUS_HV_SMX_ENABLED NTStatus = 0xC035003F
9117 STATUS_HV_INVALID_LP_INDEX NTStatus = 0xC0350041
9118 STATUS_HV_INVALID_REGISTER_VALUE NTStatus = 0xC0350050
9119 STATUS_HV_INVALID_VTL_STATE NTStatus = 0xC0350051
9120 STATUS_HV_NX_NOT_DETECTED NTStatus = 0xC0350055
9121 STATUS_HV_INVALID_DEVICE_ID NTStatus = 0xC0350057
9122 STATUS_HV_INVALID_DEVICE_STATE NTStatus = 0xC0350058
9123 STATUS_HV_PENDING_PAGE_REQUESTS NTStatus = 0x00350059
9124 STATUS_HV_PAGE_REQUEST_INVALID NTStatus = 0xC0350060
9125 STATUS_HV_INVALID_CPU_GROUP_ID NTStatus = 0xC035006F
9126 STATUS_HV_INVALID_CPU_GROUP_STATE NTStatus = 0xC0350070
9127 STATUS_HV_OPERATION_FAILED NTStatus = 0xC0350071
9128 STATUS_HV_NOT_ALLOWED_WITH_NESTED_VIRT_ACTIVE NTStatus = 0xC0350072
9129 STATUS_HV_INSUFFICIENT_ROOT_MEMORY NTStatus = 0xC0350073
9130 STATUS_HV_NOT_PRESENT NTStatus = 0xC0351000
9131 STATUS_VID_DUPLICATE_HANDLER NTStatus = 0xC0370001
9132 STATUS_VID_TOO_MANY_HANDLERS NTStatus = 0xC0370002
9133 STATUS_VID_QUEUE_FULL NTStatus = 0xC0370003
9134 STATUS_VID_HANDLER_NOT_PRESENT NTStatus = 0xC0370004
9135 STATUS_VID_INVALID_OBJECT_NAME NTStatus = 0xC0370005
9136 STATUS_VID_PARTITION_NAME_TOO_LONG NTStatus = 0xC0370006
9137 STATUS_VID_MESSAGE_QUEUE_NAME_TOO_LONG NTStatus = 0xC0370007
9138 STATUS_VID_PARTITION_ALREADY_EXISTS NTStatus = 0xC0370008
9139 STATUS_VID_PARTITION_DOES_NOT_EXIST NTStatus = 0xC0370009
9140 STATUS_VID_PARTITION_NAME_NOT_FOUND NTStatus = 0xC037000A
9141 STATUS_VID_MESSAGE_QUEUE_ALREADY_EXISTS NTStatus = 0xC037000B
9142 STATUS_VID_EXCEEDED_MBP_ENTRY_MAP_LIMIT NTStatus = 0xC037000C
9143 STATUS_VID_MB_STILL_REFERENCED NTStatus = 0xC037000D
9144 STATUS_VID_CHILD_GPA_PAGE_SET_CORRUPTED NTStatus = 0xC037000E
9145 STATUS_VID_INVALID_NUMA_SETTINGS NTStatus = 0xC037000F
9146 STATUS_VID_INVALID_NUMA_NODE_INDEX NTStatus = 0xC0370010
9147 STATUS_VID_NOTIFICATION_QUEUE_ALREADY_ASSOCIATED NTStatus = 0xC0370011
9148 STATUS_VID_INVALID_MEMORY_BLOCK_HANDLE NTStatus = 0xC0370012
9149 STATUS_VID_PAGE_RANGE_OVERFLOW NTStatus = 0xC0370013
9150 STATUS_VID_INVALID_MESSAGE_QUEUE_HANDLE NTStatus = 0xC0370014
9151 STATUS_VID_INVALID_GPA_RANGE_HANDLE NTStatus = 0xC0370015
9152 STATUS_VID_NO_MEMORY_BLOCK_NOTIFICATION_QUEUE NTStatus = 0xC0370016
9153 STATUS_VID_MEMORY_BLOCK_LOCK_COUNT_EXCEEDED NTStatus = 0xC0370017
9154 STATUS_VID_INVALID_PPM_HANDLE NTStatus = 0xC0370018
9155 STATUS_VID_MBPS_ARE_LOCKED NTStatus = 0xC0370019
9156 STATUS_VID_MESSAGE_QUEUE_CLOSED NTStatus = 0xC037001A
9157 STATUS_VID_VIRTUAL_PROCESSOR_LIMIT_EXCEEDED NTStatus = 0xC037001B
9158 STATUS_VID_STOP_PENDING NTStatus = 0xC037001C
9159 STATUS_VID_INVALID_PROCESSOR_STATE NTStatus = 0xC037001D
9160 STATUS_VID_EXCEEDED_KM_CONTEXT_COUNT_LIMIT NTStatus = 0xC037001E
9161 STATUS_VID_KM_INTERFACE_ALREADY_INITIALIZED NTStatus = 0xC037001F
9162 STATUS_VID_MB_PROPERTY_ALREADY_SET_RESET NTStatus = 0xC0370020
9163 STATUS_VID_MMIO_RANGE_DESTROYED NTStatus = 0xC0370021
9164 STATUS_VID_INVALID_CHILD_GPA_PAGE_SET NTStatus = 0xC0370022
9165 STATUS_VID_RESERVE_PAGE_SET_IS_BEING_USED NTStatus = 0xC0370023
9166 STATUS_VID_RESERVE_PAGE_SET_TOO_SMALL NTStatus = 0xC0370024
9167 STATUS_VID_MBP_ALREADY_LOCKED_USING_RESERVED_PAGE NTStatus = 0xC0370025
9168 STATUS_VID_MBP_COUNT_EXCEEDED_LIMIT NTStatus = 0xC0370026
9169 STATUS_VID_SAVED_STATE_CORRUPT NTStatus = 0xC0370027
9170 STATUS_VID_SAVED_STATE_UNRECOGNIZED_ITEM NTStatus = 0xC0370028
9171 STATUS_VID_SAVED_STATE_INCOMPATIBLE NTStatus = 0xC0370029
9172 STATUS_VID_VTL_ACCESS_DENIED NTStatus = 0xC037002A
9173 STATUS_VID_REMOTE_NODE_PARENT_GPA_PAGES_USED NTStatus = 0x80370001
9174 STATUS_IPSEC_BAD_SPI NTStatus = 0xC0360001
9175 STATUS_IPSEC_SA_LIFETIME_EXPIRED NTStatus = 0xC0360002
9176 STATUS_IPSEC_WRONG_SA NTStatus = 0xC0360003
9177 STATUS_IPSEC_REPLAY_CHECK_FAILED NTStatus = 0xC0360004
9178 STATUS_IPSEC_INVALID_PACKET NTStatus = 0xC0360005
9179 STATUS_IPSEC_INTEGRITY_CHECK_FAILED NTStatus = 0xC0360006
9180 STATUS_IPSEC_CLEAR_TEXT_DROP NTStatus = 0xC0360007
9181 STATUS_IPSEC_AUTH_FIREWALL_DROP NTStatus = 0xC0360008
9182 STATUS_IPSEC_THROTTLE_DROP NTStatus = 0xC0360009
9183 STATUS_IPSEC_DOSP_BLOCK NTStatus = 0xC0368000
9184 STATUS_IPSEC_DOSP_RECEIVED_MULTICAST NTStatus = 0xC0368001
9185 STATUS_IPSEC_DOSP_INVALID_PACKET NTStatus = 0xC0368002
9186 STATUS_IPSEC_DOSP_STATE_LOOKUP_FAILED NTStatus = 0xC0368003
9187 STATUS_IPSEC_DOSP_MAX_ENTRIES NTStatus = 0xC0368004
9188 STATUS_IPSEC_DOSP_KEYMOD_NOT_ALLOWED NTStatus = 0xC0368005
9189 STATUS_IPSEC_DOSP_MAX_PER_IP_RATELIMIT_QUEUES NTStatus = 0xC0368006
9190 STATUS_VOLMGR_INCOMPLETE_REGENERATION NTStatus = 0x80380001
9191 STATUS_VOLMGR_INCOMPLETE_DISK_MIGRATION NTStatus = 0x80380002
9192 STATUS_VOLMGR_DATABASE_FULL NTStatus = 0xC0380001
9193 STATUS_VOLMGR_DISK_CONFIGURATION_CORRUPTED NTStatus = 0xC0380002
9194 STATUS_VOLMGR_DISK_CONFIGURATION_NOT_IN_SYNC NTStatus = 0xC0380003
9195 STATUS_VOLMGR_PACK_CONFIG_UPDATE_FAILED NTStatus = 0xC0380004
9196 STATUS_VOLMGR_DISK_CONTAINS_NON_SIMPLE_VOLUME NTStatus = 0xC0380005
9197 STATUS_VOLMGR_DISK_DUPLICATE NTStatus = 0xC0380006
9198 STATUS_VOLMGR_DISK_DYNAMIC NTStatus = 0xC0380007
9199 STATUS_VOLMGR_DISK_ID_INVALID NTStatus = 0xC0380008
9200 STATUS_VOLMGR_DISK_INVALID NTStatus = 0xC0380009
9201 STATUS_VOLMGR_DISK_LAST_VOTER NTStatus = 0xC038000A
9202 STATUS_VOLMGR_DISK_LAYOUT_INVALID NTStatus = 0xC038000B
9203 STATUS_VOLMGR_DISK_LAYOUT_NON_BASIC_BETWEEN_BASIC_PARTITIONS NTStatus = 0xC038000C
9204 STATUS_VOLMGR_DISK_LAYOUT_NOT_CYLINDER_ALIGNED NTStatus = 0xC038000D
9205 STATUS_VOLMGR_DISK_LAYOUT_PARTITIONS_TOO_SMALL NTStatus = 0xC038000E
9206 STATUS_VOLMGR_DISK_LAYOUT_PRIMARY_BETWEEN_LOGICAL_PARTITIONS NTStatus = 0xC038000F
9207 STATUS_VOLMGR_DISK_LAYOUT_TOO_MANY_PARTITIONS NTStatus = 0xC0380010
9208 STATUS_VOLMGR_DISK_MISSING NTStatus = 0xC0380011
9209 STATUS_VOLMGR_DISK_NOT_EMPTY NTStatus = 0xC0380012
9210 STATUS_VOLMGR_DISK_NOT_ENOUGH_SPACE NTStatus = 0xC0380013
9211 STATUS_VOLMGR_DISK_REVECTORING_FAILED NTStatus = 0xC0380014
9212 STATUS_VOLMGR_DISK_SECTOR_SIZE_INVALID NTStatus = 0xC0380015
9213 STATUS_VOLMGR_DISK_SET_NOT_CONTAINED NTStatus = 0xC0380016
9214 STATUS_VOLMGR_DISK_USED_BY_MULTIPLE_MEMBERS NTStatus = 0xC0380017
9215 STATUS_VOLMGR_DISK_USED_BY_MULTIPLE_PLEXES NTStatus = 0xC0380018
9216 STATUS_VOLMGR_DYNAMIC_DISK_NOT_SUPPORTED NTStatus = 0xC0380019
9217 STATUS_VOLMGR_EXTENT_ALREADY_USED NTStatus = 0xC038001A
9218 STATUS_VOLMGR_EXTENT_NOT_CONTIGUOUS NTStatus = 0xC038001B
9219 STATUS_VOLMGR_EXTENT_NOT_IN_PUBLIC_REGION NTStatus = 0xC038001C
9220 STATUS_VOLMGR_EXTENT_NOT_SECTOR_ALIGNED NTStatus = 0xC038001D
9221 STATUS_VOLMGR_EXTENT_OVERLAPS_EBR_PARTITION NTStatus = 0xC038001E
9222 STATUS_VOLMGR_EXTENT_VOLUME_LENGTHS_DO_NOT_MATCH NTStatus = 0xC038001F
9223 STATUS_VOLMGR_FAULT_TOLERANT_NOT_SUPPORTED NTStatus = 0xC0380020
9224 STATUS_VOLMGR_INTERLEAVE_LENGTH_INVALID NTStatus = 0xC0380021
9225 STATUS_VOLMGR_MAXIMUM_REGISTERED_USERS NTStatus = 0xC0380022
9226 STATUS_VOLMGR_MEMBER_IN_SYNC NTStatus = 0xC0380023
9227 STATUS_VOLMGR_MEMBER_INDEX_DUPLICATE NTStatus = 0xC0380024
9228 STATUS_VOLMGR_MEMBER_INDEX_INVALID NTStatus = 0xC0380025
9229 STATUS_VOLMGR_MEMBER_MISSING NTStatus = 0xC0380026
9230 STATUS_VOLMGR_MEMBER_NOT_DETACHED NTStatus = 0xC0380027
9231 STATUS_VOLMGR_MEMBER_REGENERATING NTStatus = 0xC0380028
9232 STATUS_VOLMGR_ALL_DISKS_FAILED NTStatus = 0xC0380029
9233 STATUS_VOLMGR_NO_REGISTERED_USERS NTStatus = 0xC038002A
9234 STATUS_VOLMGR_NO_SUCH_USER NTStatus = 0xC038002B
9235 STATUS_VOLMGR_NOTIFICATION_RESET NTStatus = 0xC038002C
9236 STATUS_VOLMGR_NUMBER_OF_MEMBERS_INVALID NTStatus = 0xC038002D
9237 STATUS_VOLMGR_NUMBER_OF_PLEXES_INVALID NTStatus = 0xC038002E
9238 STATUS_VOLMGR_PACK_DUPLICATE NTStatus = 0xC038002F
9239 STATUS_VOLMGR_PACK_ID_INVALID NTStatus = 0xC0380030
9240 STATUS_VOLMGR_PACK_INVALID NTStatus = 0xC0380031
9241 STATUS_VOLMGR_PACK_NAME_INVALID NTStatus = 0xC0380032
9242 STATUS_VOLMGR_PACK_OFFLINE NTStatus = 0xC0380033
9243 STATUS_VOLMGR_PACK_HAS_QUORUM NTStatus = 0xC0380034
9244 STATUS_VOLMGR_PACK_WITHOUT_QUORUM NTStatus = 0xC0380035
9245 STATUS_VOLMGR_PARTITION_STYLE_INVALID NTStatus = 0xC0380036
9246 STATUS_VOLMGR_PARTITION_UPDATE_FAILED NTStatus = 0xC0380037
9247 STATUS_VOLMGR_PLEX_IN_SYNC NTStatus = 0xC0380038
9248 STATUS_VOLMGR_PLEX_INDEX_DUPLICATE NTStatus = 0xC0380039
9249 STATUS_VOLMGR_PLEX_INDEX_INVALID NTStatus = 0xC038003A
9250 STATUS_VOLMGR_PLEX_LAST_ACTIVE NTStatus = 0xC038003B
9251 STATUS_VOLMGR_PLEX_MISSING NTStatus = 0xC038003C
9252 STATUS_VOLMGR_PLEX_REGENERATING NTStatus = 0xC038003D
9253 STATUS_VOLMGR_PLEX_TYPE_INVALID NTStatus = 0xC038003E
9254 STATUS_VOLMGR_PLEX_NOT_RAID5 NTStatus = 0xC038003F
9255 STATUS_VOLMGR_PLEX_NOT_SIMPLE NTStatus = 0xC0380040
9256 STATUS_VOLMGR_STRUCTURE_SIZE_INVALID NTStatus = 0xC0380041
9257 STATUS_VOLMGR_TOO_MANY_NOTIFICATION_REQUESTS NTStatus = 0xC0380042
9258 STATUS_VOLMGR_TRANSACTION_IN_PROGRESS NTStatus = 0xC0380043
9259 STATUS_VOLMGR_UNEXPECTED_DISK_LAYOUT_CHANGE NTStatus = 0xC0380044
9260 STATUS_VOLMGR_VOLUME_CONTAINS_MISSING_DISK NTStatus = 0xC0380045
9261 STATUS_VOLMGR_VOLUME_ID_INVALID NTStatus = 0xC0380046
9262 STATUS_VOLMGR_VOLUME_LENGTH_INVALID NTStatus = 0xC0380047
9263 STATUS_VOLMGR_VOLUME_LENGTH_NOT_SECTOR_SIZE_MULTIPLE NTStatus = 0xC0380048
9264 STATUS_VOLMGR_VOLUME_NOT_MIRRORED NTStatus = 0xC0380049
9265 STATUS_VOLMGR_VOLUME_NOT_RETAINED NTStatus = 0xC038004A
9266 STATUS_VOLMGR_VOLUME_OFFLINE NTStatus = 0xC038004B
9267 STATUS_VOLMGR_VOLUME_RETAINED NTStatus = 0xC038004C
9268 STATUS_VOLMGR_NUMBER_OF_EXTENTS_INVALID NTStatus = 0xC038004D
9269 STATUS_VOLMGR_DIFFERENT_SECTOR_SIZE NTStatus = 0xC038004E
9270 STATUS_VOLMGR_BAD_BOOT_DISK NTStatus = 0xC038004F
9271 STATUS_VOLMGR_PACK_CONFIG_OFFLINE NTStatus = 0xC0380050
9272 STATUS_VOLMGR_PACK_CONFIG_ONLINE NTStatus = 0xC0380051
9273 STATUS_VOLMGR_NOT_PRIMARY_PACK NTStatus = 0xC0380052
9274 STATUS_VOLMGR_PACK_LOG_UPDATE_FAILED NTStatus = 0xC0380053
9275 STATUS_VOLMGR_NUMBER_OF_DISKS_IN_PLEX_INVALID NTStatus = 0xC0380054
9276 STATUS_VOLMGR_NUMBER_OF_DISKS_IN_MEMBER_INVALID NTStatus = 0xC0380055
9277 STATUS_VOLMGR_VOLUME_MIRRORED NTStatus = 0xC0380056
9278 STATUS_VOLMGR_PLEX_NOT_SIMPLE_SPANNED NTStatus = 0xC0380057
9279 STATUS_VOLMGR_NO_VALID_LOG_COPIES NTStatus = 0xC0380058
9280 STATUS_VOLMGR_PRIMARY_PACK_PRESENT NTStatus = 0xC0380059
9281 STATUS_VOLMGR_NUMBER_OF_DISKS_INVALID NTStatus = 0xC038005A
9282 STATUS_VOLMGR_MIRROR_NOT_SUPPORTED NTStatus = 0xC038005B
9283 STATUS_VOLMGR_RAID5_NOT_SUPPORTED NTStatus = 0xC038005C
9284 STATUS_BCD_NOT_ALL_ENTRIES_IMPORTED NTStatus = 0x80390001
9285 STATUS_BCD_TOO_MANY_ELEMENTS NTStatus = 0xC0390002
9286 STATUS_BCD_NOT_ALL_ENTRIES_SYNCHRONIZED NTStatus = 0x80390003
9287 STATUS_VHD_DRIVE_FOOTER_MISSING NTStatus = 0xC03A0001
9288 STATUS_VHD_DRIVE_FOOTER_CHECKSUM_MISMATCH NTStatus = 0xC03A0002
9289 STATUS_VHD_DRIVE_FOOTER_CORRUPT NTStatus = 0xC03A0003
9290 STATUS_VHD_FORMAT_UNKNOWN NTStatus = 0xC03A0004
9291 STATUS_VHD_FORMAT_UNSUPPORTED_VERSION NTStatus = 0xC03A0005
9292 STATUS_VHD_SPARSE_HEADER_CHECKSUM_MISMATCH NTStatus = 0xC03A0006
9293 STATUS_VHD_SPARSE_HEADER_UNSUPPORTED_VERSION NTStatus = 0xC03A0007
9294 STATUS_VHD_SPARSE_HEADER_CORRUPT NTStatus = 0xC03A0008
9295 STATUS_VHD_BLOCK_ALLOCATION_FAILURE NTStatus = 0xC03A0009
9296 STATUS_VHD_BLOCK_ALLOCATION_TABLE_CORRUPT NTStatus = 0xC03A000A
9297 STATUS_VHD_INVALID_BLOCK_SIZE NTStatus = 0xC03A000B
9298 STATUS_VHD_BITMAP_MISMATCH NTStatus = 0xC03A000C
9299 STATUS_VHD_PARENT_VHD_NOT_FOUND NTStatus = 0xC03A000D
9300 STATUS_VHD_CHILD_PARENT_ID_MISMATCH NTStatus = 0xC03A000E
9301 STATUS_VHD_CHILD_PARENT_TIMESTAMP_MISMATCH NTStatus = 0xC03A000F
9302 STATUS_VHD_METADATA_READ_FAILURE NTStatus = 0xC03A0010
9303 STATUS_VHD_METADATA_WRITE_FAILURE NTStatus = 0xC03A0011
9304 STATUS_VHD_INVALID_SIZE NTStatus = 0xC03A0012
9305 STATUS_VHD_INVALID_FILE_SIZE NTStatus = 0xC03A0013
9306 STATUS_VIRTDISK_PROVIDER_NOT_FOUND NTStatus = 0xC03A0014
9307 STATUS_VIRTDISK_NOT_VIRTUAL_DISK NTStatus = 0xC03A0015
9308 STATUS_VHD_PARENT_VHD_ACCESS_DENIED NTStatus = 0xC03A0016
9309 STATUS_VHD_CHILD_PARENT_SIZE_MISMATCH NTStatus = 0xC03A0017
9310 STATUS_VHD_DIFFERENCING_CHAIN_CYCLE_DETECTED NTStatus = 0xC03A0018
9311 STATUS_VHD_DIFFERENCING_CHAIN_ERROR_IN_PARENT NTStatus = 0xC03A0019
9312 STATUS_VIRTUAL_DISK_LIMITATION NTStatus = 0xC03A001A
9313 STATUS_VHD_INVALID_TYPE NTStatus = 0xC03A001B
9314 STATUS_VHD_INVALID_STATE NTStatus = 0xC03A001C
9315 STATUS_VIRTDISK_UNSUPPORTED_DISK_SECTOR_SIZE NTStatus = 0xC03A001D
9316 STATUS_VIRTDISK_DISK_ALREADY_OWNED NTStatus = 0xC03A001E
9317 STATUS_VIRTDISK_DISK_ONLINE_AND_WRITABLE NTStatus = 0xC03A001F
9318 STATUS_CTLOG_TRACKING_NOT_INITIALIZED NTStatus = 0xC03A0020
9319 STATUS_CTLOG_LOGFILE_SIZE_EXCEEDED_MAXSIZE NTStatus = 0xC03A0021
9320 STATUS_CTLOG_VHD_CHANGED_OFFLINE NTStatus = 0xC03A0022
9321 STATUS_CTLOG_INVALID_TRACKING_STATE NTStatus = 0xC03A0023
9322 STATUS_CTLOG_INCONSISTENT_TRACKING_FILE NTStatus = 0xC03A0024
9323 STATUS_VHD_METADATA_FULL NTStatus = 0xC03A0028
9324 STATUS_VHD_INVALID_CHANGE_TRACKING_ID NTStatus = 0xC03A0029
9325 STATUS_VHD_CHANGE_TRACKING_DISABLED NTStatus = 0xC03A002A
9326 STATUS_VHD_MISSING_CHANGE_TRACKING_INFORMATION NTStatus = 0xC03A0030
9327 STATUS_VHD_RESIZE_WOULD_TRUNCATE_DATA NTStatus = 0xC03A0031
9328 STATUS_VHD_COULD_NOT_COMPUTE_MINIMUM_VIRTUAL_SIZE NTStatus = 0xC03A0032
9329 STATUS_VHD_ALREADY_AT_OR_BELOW_MINIMUM_VIRTUAL_SIZE NTStatus = 0xC03A0033
9330 STATUS_QUERY_STORAGE_ERROR NTStatus = 0x803A0001
9331 STATUS_GDI_HANDLE_LEAK NTStatus = 0x803F0001
9332 STATUS_RKF_KEY_NOT_FOUND NTStatus = 0xC0400001
9333 STATUS_RKF_DUPLICATE_KEY NTStatus = 0xC0400002
9334 STATUS_RKF_BLOB_FULL NTStatus = 0xC0400003
9335 STATUS_RKF_STORE_FULL NTStatus = 0xC0400004
9336 STATUS_RKF_FILE_BLOCKED NTStatus = 0xC0400005
9337 STATUS_RKF_ACTIVE_KEY NTStatus = 0xC0400006
9338 STATUS_RDBSS_RESTART_OPERATION NTStatus = 0xC0410001
9339 STATUS_RDBSS_CONTINUE_OPERATION NTStatus = 0xC0410002
9340 STATUS_RDBSS_POST_OPERATION NTStatus = 0xC0410003
9341 STATUS_RDBSS_RETRY_LOOKUP NTStatus = 0xC0410004
9342 STATUS_BTH_ATT_INVALID_HANDLE NTStatus = 0xC0420001
9343 STATUS_BTH_ATT_READ_NOT_PERMITTED NTStatus = 0xC0420002
9344 STATUS_BTH_ATT_WRITE_NOT_PERMITTED NTStatus = 0xC0420003
9345 STATUS_BTH_ATT_INVALID_PDU NTStatus = 0xC0420004
9346 STATUS_BTH_ATT_INSUFFICIENT_AUTHENTICATION NTStatus = 0xC0420005
9347 STATUS_BTH_ATT_REQUEST_NOT_SUPPORTED NTStatus = 0xC0420006
9348 STATUS_BTH_ATT_INVALID_OFFSET NTStatus = 0xC0420007
9349 STATUS_BTH_ATT_INSUFFICIENT_AUTHORIZATION NTStatus = 0xC0420008
9350 STATUS_BTH_ATT_PREPARE_QUEUE_FULL NTStatus = 0xC0420009
9351 STATUS_BTH_ATT_ATTRIBUTE_NOT_FOUND NTStatus = 0xC042000A
9352 STATUS_BTH_ATT_ATTRIBUTE_NOT_LONG NTStatus = 0xC042000B
9353 STATUS_BTH_ATT_INSUFFICIENT_ENCRYPTION_KEY_SIZE NTStatus = 0xC042000C
9354 STATUS_BTH_ATT_INVALID_ATTRIBUTE_VALUE_LENGTH NTStatus = 0xC042000D
9355 STATUS_BTH_ATT_UNLIKELY NTStatus = 0xC042000E
9356 STATUS_BTH_ATT_INSUFFICIENT_ENCRYPTION NTStatus = 0xC042000F
9357 STATUS_BTH_ATT_UNSUPPORTED_GROUP_TYPE NTStatus = 0xC0420010
9358 STATUS_BTH_ATT_INSUFFICIENT_RESOURCES NTStatus = 0xC0420011
9359 STATUS_BTH_ATT_UNKNOWN_ERROR NTStatus = 0xC0421000
9360 STATUS_SECUREBOOT_ROLLBACK_DETECTED NTStatus = 0xC0430001
9361 STATUS_SECUREBOOT_POLICY_VIOLATION NTStatus = 0xC0430002
9362 STATUS_SECUREBOOT_INVALID_POLICY NTStatus = 0xC0430003
9363 STATUS_SECUREBOOT_POLICY_PUBLISHER_NOT_FOUND NTStatus = 0xC0430004
9364 STATUS_SECUREBOOT_POLICY_NOT_SIGNED NTStatus = 0xC0430005
9365 STATUS_SECUREBOOT_NOT_ENABLED NTStatus = 0x80430006
9366 STATUS_SECUREBOOT_FILE_REPLACED NTStatus = 0xC0430007
9367 STATUS_SECUREBOOT_POLICY_NOT_AUTHORIZED NTStatus = 0xC0430008
9368 STATUS_SECUREBOOT_POLICY_UNKNOWN NTStatus = 0xC0430009
9369 STATUS_SECUREBOOT_POLICY_MISSING_ANTIROLLBACKVERSION NTStatus = 0xC043000A
9370 STATUS_SECUREBOOT_PLATFORM_ID_MISMATCH NTStatus = 0xC043000B
9371 STATUS_SECUREBOOT_POLICY_ROLLBACK_DETECTED NTStatus = 0xC043000C
9372 STATUS_SECUREBOOT_POLICY_UPGRADE_MISMATCH NTStatus = 0xC043000D
9373 STATUS_SECUREBOOT_REQUIRED_POLICY_FILE_MISSING NTStatus = 0xC043000E
9374 STATUS_SECUREBOOT_NOT_BASE_POLICY NTStatus = 0xC043000F
9375 STATUS_SECUREBOOT_NOT_SUPPLEMENTAL_POLICY NTStatus = 0xC0430010
9376 STATUS_PLATFORM_MANIFEST_NOT_AUTHORIZED NTStatus = 0xC0EB0001
9377 STATUS_PLATFORM_MANIFEST_INVALID NTStatus = 0xC0EB0002
9378 STATUS_PLATFORM_MANIFEST_FILE_NOT_AUTHORIZED NTStatus = 0xC0EB0003
9379 STATUS_PLATFORM_MANIFEST_CATALOG_NOT_AUTHORIZED NTStatus = 0xC0EB0004
9380 STATUS_PLATFORM_MANIFEST_BINARY_ID_NOT_FOUND NTStatus = 0xC0EB0005
9381 STATUS_PLATFORM_MANIFEST_NOT_ACTIVE NTStatus = 0xC0EB0006
9382 STATUS_PLATFORM_MANIFEST_NOT_SIGNED NTStatus = 0xC0EB0007
9383 STATUS_SYSTEM_INTEGRITY_ROLLBACK_DETECTED NTStatus = 0xC0E90001
9384 STATUS_SYSTEM_INTEGRITY_POLICY_VIOLATION NTStatus = 0xC0E90002
9385 STATUS_SYSTEM_INTEGRITY_INVALID_POLICY NTStatus = 0xC0E90003
9386 STATUS_SYSTEM_INTEGRITY_POLICY_NOT_SIGNED NTStatus = 0xC0E90004
9387 STATUS_SYSTEM_INTEGRITY_TOO_MANY_POLICIES NTStatus = 0xC0E90005
9388 STATUS_SYSTEM_INTEGRITY_SUPPLEMENTAL_POLICY_NOT_AUTHORIZED NTStatus = 0xC0E90006
9389 STATUS_NO_APPLICABLE_APP_LICENSES_FOUND NTStatus = 0xC0EA0001
9390 STATUS_CLIP_LICENSE_NOT_FOUND NTStatus = 0xC0EA0002
9391 STATUS_CLIP_DEVICE_LICENSE_MISSING NTStatus = 0xC0EA0003
9392 STATUS_CLIP_LICENSE_INVALID_SIGNATURE NTStatus = 0xC0EA0004
9393 STATUS_CLIP_KEYHOLDER_LICENSE_MISSING_OR_INVALID NTStatus = 0xC0EA0005
9394 STATUS_CLIP_LICENSE_EXPIRED NTStatus = 0xC0EA0006
9395 STATUS_CLIP_LICENSE_SIGNED_BY_UNKNOWN_SOURCE NTStatus = 0xC0EA0007
9396 STATUS_CLIP_LICENSE_NOT_SIGNED NTStatus = 0xC0EA0008
9397 STATUS_CLIP_LICENSE_HARDWARE_ID_OUT_OF_TOLERANCE NTStatus = 0xC0EA0009
9398 STATUS_CLIP_LICENSE_DEVICE_ID_MISMATCH NTStatus = 0xC0EA000A
9399 STATUS_AUDIO_ENGINE_NODE_NOT_FOUND NTStatus = 0xC0440001
9400 STATUS_HDAUDIO_EMPTY_CONNECTION_LIST NTStatus = 0xC0440002
9401 STATUS_HDAUDIO_CONNECTION_LIST_NOT_SUPPORTED NTStatus = 0xC0440003
9402 STATUS_HDAUDIO_NO_LOGICAL_DEVICES_CREATED NTStatus = 0xC0440004
9403 STATUS_HDAUDIO_NULL_LINKED_LIST_ENTRY NTStatus = 0xC0440005
9404 STATUS_SPACES_REPAIRED NTStatus = 0x00E70000
9405 STATUS_SPACES_PAUSE NTStatus = 0x00E70001
9406 STATUS_SPACES_COMPLETE NTStatus = 0x00E70002
9407 STATUS_SPACES_REDIRECT NTStatus = 0x00E70003
9408 STATUS_SPACES_FAULT_DOMAIN_TYPE_INVALID NTStatus = 0xC0E70001
9409 STATUS_SPACES_RESILIENCY_TYPE_INVALID NTStatus = 0xC0E70003
9410 STATUS_SPACES_DRIVE_SECTOR_SIZE_INVALID NTStatus = 0xC0E70004
9411 STATUS_SPACES_DRIVE_REDUNDANCY_INVALID NTStatus = 0xC0E70006
9412 STATUS_SPACES_NUMBER_OF_DATA_COPIES_INVALID NTStatus = 0xC0E70007
9413 STATUS_SPACES_INTERLEAVE_LENGTH_INVALID NTStatus = 0xC0E70009
9414 STATUS_SPACES_NUMBER_OF_COLUMNS_INVALID NTStatus = 0xC0E7000A
9415 STATUS_SPACES_NOT_ENOUGH_DRIVES NTStatus = 0xC0E7000B
9416 STATUS_SPACES_EXTENDED_ERROR NTStatus = 0xC0E7000C
9417 STATUS_SPACES_PROVISIONING_TYPE_INVALID NTStatus = 0xC0E7000D
9418 STATUS_SPACES_ALLOCATION_SIZE_INVALID NTStatus = 0xC0E7000E
9419 STATUS_SPACES_ENCLOSURE_AWARE_INVALID NTStatus = 0xC0E7000F
9420 STATUS_SPACES_WRITE_CACHE_SIZE_INVALID NTStatus = 0xC0E70010
9421 STATUS_SPACES_NUMBER_OF_GROUPS_INVALID NTStatus = 0xC0E70011
9422 STATUS_SPACES_DRIVE_OPERATIONAL_STATE_INVALID NTStatus = 0xC0E70012
9423 STATUS_SPACES_UPDATE_COLUMN_STATE NTStatus = 0xC0E70013
9424 STATUS_SPACES_MAP_REQUIRED NTStatus = 0xC0E70014
9425 STATUS_SPACES_UNSUPPORTED_VERSION NTStatus = 0xC0E70015
9426 STATUS_SPACES_CORRUPT_METADATA NTStatus = 0xC0E70016
9427 STATUS_SPACES_DRT_FULL NTStatus = 0xC0E70017
9428 STATUS_SPACES_INCONSISTENCY NTStatus = 0xC0E70018
9429 STATUS_SPACES_LOG_NOT_READY NTStatus = 0xC0E70019
9430 STATUS_SPACES_NO_REDUNDANCY NTStatus = 0xC0E7001A
9431 STATUS_SPACES_DRIVE_NOT_READY NTStatus = 0xC0E7001B
9432 STATUS_SPACES_DRIVE_SPLIT NTStatus = 0xC0E7001C
9433 STATUS_SPACES_DRIVE_LOST_DATA NTStatus = 0xC0E7001D
9434 STATUS_SPACES_ENTRY_INCOMPLETE NTStatus = 0xC0E7001E
9435 STATUS_SPACES_ENTRY_INVALID NTStatus = 0xC0E7001F
9436 STATUS_SPACES_MARK_DIRTY NTStatus = 0xC0E70020
9437 STATUS_VOLSNAP_BOOTFILE_NOT_VALID NTStatus = 0xC0500003
9438 STATUS_VOLSNAP_ACTIVATION_TIMEOUT NTStatus = 0xC0500004
9439 STATUS_IO_PREEMPTED NTStatus = 0xC0510001
9440 STATUS_SVHDX_ERROR_STORED NTStatus = 0xC05C0000
9441 STATUS_SVHDX_ERROR_NOT_AVAILABLE NTStatus = 0xC05CFF00
9442 STATUS_SVHDX_UNIT_ATTENTION_AVAILABLE NTStatus = 0xC05CFF01
9443 STATUS_SVHDX_UNIT_ATTENTION_CAPACITY_DATA_CHANGED NTStatus = 0xC05CFF02
9444 STATUS_SVHDX_UNIT_ATTENTION_RESERVATIONS_PREEMPTED NTStatus = 0xC05CFF03
9445 STATUS_SVHDX_UNIT_ATTENTION_RESERVATIONS_RELEASED NTStatus = 0xC05CFF04
9446 STATUS_SVHDX_UNIT_ATTENTION_REGISTRATIONS_PREEMPTED NTStatus = 0xC05CFF05
9447 STATUS_SVHDX_UNIT_ATTENTION_OPERATING_DEFINITION_CHANGED NTStatus = 0xC05CFF06
9448 STATUS_SVHDX_RESERVATION_CONFLICT NTStatus = 0xC05CFF07
9449 STATUS_SVHDX_WRONG_FILE_TYPE NTStatus = 0xC05CFF08
9450 STATUS_SVHDX_VERSION_MISMATCH NTStatus = 0xC05CFF09
9451 STATUS_VHD_SHARED NTStatus = 0xC05CFF0A
9452 STATUS_SVHDX_NO_INITIATOR NTStatus = 0xC05CFF0B
9453 STATUS_VHDSET_BACKING_STORAGE_NOT_FOUND NTStatus = 0xC05CFF0C
9454 STATUS_SMB_NO_PREAUTH_INTEGRITY_HASH_OVERLAP NTStatus = 0xC05D0000
9455 STATUS_SMB_BAD_CLUSTER_DIALECT NTStatus = 0xC05D0001
9456 STATUS_SMB_GUEST_LOGON_BLOCKED NTStatus = 0xC05D0002
9457 STATUS_SECCORE_INVALID_COMMAND NTStatus = 0xC0E80000
9458 STATUS_VSM_NOT_INITIALIZED NTStatus = 0xC0450000
9459 STATUS_VSM_DMA_PROTECTION_NOT_IN_USE NTStatus = 0xC0450001
9460 STATUS_APPEXEC_CONDITION_NOT_SATISFIED NTStatus = 0xC0EC0000
9461 STATUS_APPEXEC_HANDLE_INVALIDATED NTStatus = 0xC0EC0001
9462 STATUS_APPEXEC_INVALID_HOST_GENERATION NTStatus = 0xC0EC0002
9463 STATUS_APPEXEC_UNEXPECTED_PROCESS_REGISTRATION NTStatus = 0xC0EC0003
9464 STATUS_APPEXEC_INVALID_HOST_STATE NTStatus = 0xC0EC0004
9465 STATUS_APPEXEC_NO_DONOR NTStatus = 0xC0EC0005
9466 STATUS_APPEXEC_HOST_ID_MISMATCH NTStatus = 0xC0EC0006
9467 STATUS_APPEXEC_UNKNOWN_USER NTStatus = 0xC0EC0007
9468)
diff --git a/vendor/golang.org/x/sys/windows/zknownfolderids_windows.go b/vendor/golang.org/x/sys/windows/zknownfolderids_windows.go
deleted file mode 100644
index 6048ac6..0000000
--- a/vendor/golang.org/x/sys/windows/zknownfolderids_windows.go
+++ /dev/null
@@ -1,149 +0,0 @@
1// Code generated by 'mkknownfolderids.bash'; DO NOT EDIT.
2
3package windows
4
5type KNOWNFOLDERID GUID
6
7var (
8 FOLDERID_NetworkFolder = &KNOWNFOLDERID{0xd20beec4, 0x5ca8, 0x4905, [8]byte{0xae, 0x3b, 0xbf, 0x25, 0x1e, 0xa0, 0x9b, 0x53}}
9 FOLDERID_ComputerFolder = &KNOWNFOLDERID{0x0ac0837c, 0xbbf8, 0x452a, [8]byte{0x85, 0x0d, 0x79, 0xd0, 0x8e, 0x66, 0x7c, 0xa7}}
10 FOLDERID_InternetFolder = &KNOWNFOLDERID{0x4d9f7874, 0x4e0c, 0x4904, [8]byte{0x96, 0x7b, 0x40, 0xb0, 0xd2, 0x0c, 0x3e, 0x4b}}
11 FOLDERID_ControlPanelFolder = &KNOWNFOLDERID{0x82a74aeb, 0xaeb4, 0x465c, [8]byte{0xa0, 0x14, 0xd0, 0x97, 0xee, 0x34, 0x6d, 0x63}}
12 FOLDERID_PrintersFolder = &KNOWNFOLDERID{0x76fc4e2d, 0xd6ad, 0x4519, [8]byte{0xa6, 0x63, 0x37, 0xbd, 0x56, 0x06, 0x81, 0x85}}
13 FOLDERID_SyncManagerFolder = &KNOWNFOLDERID{0x43668bf8, 0xc14e, 0x49b2, [8]byte{0x97, 0xc9, 0x74, 0x77, 0x84, 0xd7, 0x84, 0xb7}}
14 FOLDERID_SyncSetupFolder = &KNOWNFOLDERID{0x0f214138, 0xb1d3, 0x4a90, [8]byte{0xbb, 0xa9, 0x27, 0xcb, 0xc0, 0xc5, 0x38, 0x9a}}
15 FOLDERID_ConflictFolder = &KNOWNFOLDERID{0x4bfefb45, 0x347d, 0x4006, [8]byte{0xa5, 0xbe, 0xac, 0x0c, 0xb0, 0x56, 0x71, 0x92}}
16 FOLDERID_SyncResultsFolder = &KNOWNFOLDERID{0x289a9a43, 0xbe44, 0x4057, [8]byte{0xa4, 0x1b, 0x58, 0x7a, 0x76, 0xd7, 0xe7, 0xf9}}
17 FOLDERID_RecycleBinFolder = &KNOWNFOLDERID{0xb7534046, 0x3ecb, 0x4c18, [8]byte{0xbe, 0x4e, 0x64, 0xcd, 0x4c, 0xb7, 0xd6, 0xac}}
18 FOLDERID_ConnectionsFolder = &KNOWNFOLDERID{0x6f0cd92b, 0x2e97, 0x45d1, [8]byte{0x88, 0xff, 0xb0, 0xd1, 0x86, 0xb8, 0xde, 0xdd}}
19 FOLDERID_Fonts = &KNOWNFOLDERID{0xfd228cb7, 0xae11, 0x4ae3, [8]byte{0x86, 0x4c, 0x16, 0xf3, 0x91, 0x0a, 0xb8, 0xfe}}
20 FOLDERID_Desktop = &KNOWNFOLDERID{0xb4bfcc3a, 0xdb2c, 0x424c, [8]byte{0xb0, 0x29, 0x7f, 0xe9, 0x9a, 0x87, 0xc6, 0x41}}
21 FOLDERID_Startup = &KNOWNFOLDERID{0xb97d20bb, 0xf46a, 0x4c97, [8]byte{0xba, 0x10, 0x5e, 0x36, 0x08, 0x43, 0x08, 0x54}}
22 FOLDERID_Programs = &KNOWNFOLDERID{0xa77f5d77, 0x2e2b, 0x44c3, [8]byte{0xa6, 0xa2, 0xab, 0xa6, 0x01, 0x05, 0x4a, 0x51}}
23 FOLDERID_StartMenu = &KNOWNFOLDERID{0x625b53c3, 0xab48, 0x4ec1, [8]byte{0xba, 0x1f, 0xa1, 0xef, 0x41, 0x46, 0xfc, 0x19}}
24 FOLDERID_Recent = &KNOWNFOLDERID{0xae50c081, 0xebd2, 0x438a, [8]byte{0x86, 0x55, 0x8a, 0x09, 0x2e, 0x34, 0x98, 0x7a}}
25 FOLDERID_SendTo = &KNOWNFOLDERID{0x8983036c, 0x27c0, 0x404b, [8]byte{0x8f, 0x08, 0x10, 0x2d, 0x10, 0xdc, 0xfd, 0x74}}
26 FOLDERID_Documents = &KNOWNFOLDERID{0xfdd39ad0, 0x238f, 0x46af, [8]byte{0xad, 0xb4, 0x6c, 0x85, 0x48, 0x03, 0x69, 0xc7}}
27 FOLDERID_Favorites = &KNOWNFOLDERID{0x1777f761, 0x68ad, 0x4d8a, [8]byte{0x87, 0xbd, 0x30, 0xb7, 0x59, 0xfa, 0x33, 0xdd}}
28 FOLDERID_NetHood = &KNOWNFOLDERID{0xc5abbf53, 0xe17f, 0x4121, [8]byte{0x89, 0x00, 0x86, 0x62, 0x6f, 0xc2, 0xc9, 0x73}}
29 FOLDERID_PrintHood = &KNOWNFOLDERID{0x9274bd8d, 0xcfd1, 0x41c3, [8]byte{0xb3, 0x5e, 0xb1, 0x3f, 0x55, 0xa7, 0x58, 0xf4}}
30 FOLDERID_Templates = &KNOWNFOLDERID{0xa63293e8, 0x664e, 0x48db, [8]byte{0xa0, 0x79, 0xdf, 0x75, 0x9e, 0x05, 0x09, 0xf7}}
31 FOLDERID_CommonStartup = &KNOWNFOLDERID{0x82a5ea35, 0xd9cd, 0x47c5, [8]byte{0x96, 0x29, 0xe1, 0x5d, 0x2f, 0x71, 0x4e, 0x6e}}
32 FOLDERID_CommonPrograms = &KNOWNFOLDERID{0x0139d44e, 0x6afe, 0x49f2, [8]byte{0x86, 0x90, 0x3d, 0xaf, 0xca, 0xe6, 0xff, 0xb8}}
33 FOLDERID_CommonStartMenu = &KNOWNFOLDERID{0xa4115719, 0xd62e, 0x491d, [8]byte{0xaa, 0x7c, 0xe7, 0x4b, 0x8b, 0xe3, 0xb0, 0x67}}
34 FOLDERID_PublicDesktop = &KNOWNFOLDERID{0xc4aa340d, 0xf20f, 0x4863, [8]byte{0xaf, 0xef, 0xf8, 0x7e, 0xf2, 0xe6, 0xba, 0x25}}
35 FOLDERID_ProgramData = &KNOWNFOLDERID{0x62ab5d82, 0xfdc1, 0x4dc3, [8]byte{0xa9, 0xdd, 0x07, 0x0d, 0x1d, 0x49, 0x5d, 0x97}}
36 FOLDERID_CommonTemplates = &KNOWNFOLDERID{0xb94237e7, 0x57ac, 0x4347, [8]byte{0x91, 0x51, 0xb0, 0x8c, 0x6c, 0x32, 0xd1, 0xf7}}
37 FOLDERID_PublicDocuments = &KNOWNFOLDERID{0xed4824af, 0xdce4, 0x45a8, [8]byte{0x81, 0xe2, 0xfc, 0x79, 0x65, 0x08, 0x36, 0x34}}
38 FOLDERID_RoamingAppData = &KNOWNFOLDERID{0x3eb685db, 0x65f9, 0x4cf6, [8]byte{0xa0, 0x3a, 0xe3, 0xef, 0x65, 0x72, 0x9f, 0x3d}}
39 FOLDERID_LocalAppData = &KNOWNFOLDERID{0xf1b32785, 0x6fba, 0x4fcf, [8]byte{0x9d, 0x55, 0x7b, 0x8e, 0x7f, 0x15, 0x70, 0x91}}
40 FOLDERID_LocalAppDataLow = &KNOWNFOLDERID{0xa520a1a4, 0x1780, 0x4ff6, [8]byte{0xbd, 0x18, 0x16, 0x73, 0x43, 0xc5, 0xaf, 0x16}}
41 FOLDERID_InternetCache = &KNOWNFOLDERID{0x352481e8, 0x33be, 0x4251, [8]byte{0xba, 0x85, 0x60, 0x07, 0xca, 0xed, 0xcf, 0x9d}}
42 FOLDERID_Cookies = &KNOWNFOLDERID{0x2b0f765d, 0xc0e9, 0x4171, [8]byte{0x90, 0x8e, 0x08, 0xa6, 0x11, 0xb8, 0x4f, 0xf6}}
43 FOLDERID_History = &KNOWNFOLDERID{0xd9dc8a3b, 0xb784, 0x432e, [8]byte{0xa7, 0x81, 0x5a, 0x11, 0x30, 0xa7, 0x59, 0x63}}
44 FOLDERID_System = &KNOWNFOLDERID{0x1ac14e77, 0x02e7, 0x4e5d, [8]byte{0xb7, 0x44, 0x2e, 0xb1, 0xae, 0x51, 0x98, 0xb7}}
45 FOLDERID_SystemX86 = &KNOWNFOLDERID{0xd65231b0, 0xb2f1, 0x4857, [8]byte{0xa4, 0xce, 0xa8, 0xe7, 0xc6, 0xea, 0x7d, 0x27}}
46 FOLDERID_Windows = &KNOWNFOLDERID{0xf38bf404, 0x1d43, 0x42f2, [8]byte{0x93, 0x05, 0x67, 0xde, 0x0b, 0x28, 0xfc, 0x23}}
47 FOLDERID_Profile = &KNOWNFOLDERID{0x5e6c858f, 0x0e22, 0x4760, [8]byte{0x9a, 0xfe, 0xea, 0x33, 0x17, 0xb6, 0x71, 0x73}}
48 FOLDERID_Pictures = &KNOWNFOLDERID{0x33e28130, 0x4e1e, 0x4676, [8]byte{0x83, 0x5a, 0x98, 0x39, 0x5c, 0x3b, 0xc3, 0xbb}}
49 FOLDERID_ProgramFilesX86 = &KNOWNFOLDERID{0x7c5a40ef, 0xa0fb, 0x4bfc, [8]byte{0x87, 0x4a, 0xc0, 0xf2, 0xe0, 0xb9, 0xfa, 0x8e}}
50 FOLDERID_ProgramFilesCommonX86 = &KNOWNFOLDERID{0xde974d24, 0xd9c6, 0x4d3e, [8]byte{0xbf, 0x91, 0xf4, 0x45, 0x51, 0x20, 0xb9, 0x17}}
51 FOLDERID_ProgramFilesX64 = &KNOWNFOLDERID{0x6d809377, 0x6af0, 0x444b, [8]byte{0x89, 0x57, 0xa3, 0x77, 0x3f, 0x02, 0x20, 0x0e}}
52 FOLDERID_ProgramFilesCommonX64 = &KNOWNFOLDERID{0x6365d5a7, 0x0f0d, 0x45e5, [8]byte{0x87, 0xf6, 0x0d, 0xa5, 0x6b, 0x6a, 0x4f, 0x7d}}
53 FOLDERID_ProgramFiles = &KNOWNFOLDERID{0x905e63b6, 0xc1bf, 0x494e, [8]byte{0xb2, 0x9c, 0x65, 0xb7, 0x32, 0xd3, 0xd2, 0x1a}}
54 FOLDERID_ProgramFilesCommon = &KNOWNFOLDERID{0xf7f1ed05, 0x9f6d, 0x47a2, [8]byte{0xaa, 0xae, 0x29, 0xd3, 0x17, 0xc6, 0xf0, 0x66}}
55 FOLDERID_UserProgramFiles = &KNOWNFOLDERID{0x5cd7aee2, 0x2219, 0x4a67, [8]byte{0xb8, 0x5d, 0x6c, 0x9c, 0xe1, 0x56, 0x60, 0xcb}}
56 FOLDERID_UserProgramFilesCommon = &KNOWNFOLDERID{0xbcbd3057, 0xca5c, 0x4622, [8]byte{0xb4, 0x2d, 0xbc, 0x56, 0xdb, 0x0a, 0xe5, 0x16}}
57 FOLDERID_AdminTools = &KNOWNFOLDERID{0x724ef170, 0xa42d, 0x4fef, [8]byte{0x9f, 0x26, 0xb6, 0x0e, 0x84, 0x6f, 0xba, 0x4f}}
58 FOLDERID_CommonAdminTools = &KNOWNFOLDERID{0xd0384e7d, 0xbac3, 0x4797, [8]byte{0x8f, 0x14, 0xcb, 0xa2, 0x29, 0xb3, 0x92, 0xb5}}
59 FOLDERID_Music = &KNOWNFOLDERID{0x4bd8d571, 0x6d19, 0x48d3, [8]byte{0xbe, 0x97, 0x42, 0x22, 0x20, 0x08, 0x0e, 0x43}}
60 FOLDERID_Videos = &KNOWNFOLDERID{0x18989b1d, 0x99b5, 0x455b, [8]byte{0x84, 0x1c, 0xab, 0x7c, 0x74, 0xe4, 0xdd, 0xfc}}
61 FOLDERID_Ringtones = &KNOWNFOLDERID{0xc870044b, 0xf49e, 0x4126, [8]byte{0xa9, 0xc3, 0xb5, 0x2a, 0x1f, 0xf4, 0x11, 0xe8}}
62 FOLDERID_PublicPictures = &KNOWNFOLDERID{0xb6ebfb86, 0x6907, 0x413c, [8]byte{0x9a, 0xf7, 0x4f, 0xc2, 0xab, 0xf0, 0x7c, 0xc5}}
63 FOLDERID_PublicMusic = &KNOWNFOLDERID{0x3214fab5, 0x9757, 0x4298, [8]byte{0xbb, 0x61, 0x92, 0xa9, 0xde, 0xaa, 0x44, 0xff}}
64 FOLDERID_PublicVideos = &KNOWNFOLDERID{0x2400183a, 0x6185, 0x49fb, [8]byte{0xa2, 0xd8, 0x4a, 0x39, 0x2a, 0x60, 0x2b, 0xa3}}
65 FOLDERID_PublicRingtones = &KNOWNFOLDERID{0xe555ab60, 0x153b, 0x4d17, [8]byte{0x9f, 0x04, 0xa5, 0xfe, 0x99, 0xfc, 0x15, 0xec}}
66 FOLDERID_ResourceDir = &KNOWNFOLDERID{0x8ad10c31, 0x2adb, 0x4296, [8]byte{0xa8, 0xf7, 0xe4, 0x70, 0x12, 0x32, 0xc9, 0x72}}
67 FOLDERID_LocalizedResourcesDir = &KNOWNFOLDERID{0x2a00375e, 0x224c, 0x49de, [8]byte{0xb8, 0xd1, 0x44, 0x0d, 0xf7, 0xef, 0x3d, 0xdc}}
68 FOLDERID_CommonOEMLinks = &KNOWNFOLDERID{0xc1bae2d0, 0x10df, 0x4334, [8]byte{0xbe, 0xdd, 0x7a, 0xa2, 0x0b, 0x22, 0x7a, 0x9d}}
69 FOLDERID_CDBurning = &KNOWNFOLDERID{0x9e52ab10, 0xf80d, 0x49df, [8]byte{0xac, 0xb8, 0x43, 0x30, 0xf5, 0x68, 0x78, 0x55}}
70 FOLDERID_UserProfiles = &KNOWNFOLDERID{0x0762d272, 0xc50a, 0x4bb0, [8]byte{0xa3, 0x82, 0x69, 0x7d, 0xcd, 0x72, 0x9b, 0x80}}
71 FOLDERID_Playlists = &KNOWNFOLDERID{0xde92c1c7, 0x837f, 0x4f69, [8]byte{0xa3, 0xbb, 0x86, 0xe6, 0x31, 0x20, 0x4a, 0x23}}
72 FOLDERID_SamplePlaylists = &KNOWNFOLDERID{0x15ca69b3, 0x30ee, 0x49c1, [8]byte{0xac, 0xe1, 0x6b, 0x5e, 0xc3, 0x72, 0xaf, 0xb5}}
73 FOLDERID_SampleMusic = &KNOWNFOLDERID{0xb250c668, 0xf57d, 0x4ee1, [8]byte{0xa6, 0x3c, 0x29, 0x0e, 0xe7, 0xd1, 0xaa, 0x1f}}
74 FOLDERID_SamplePictures = &KNOWNFOLDERID{0xc4900540, 0x2379, 0x4c75, [8]byte{0x84, 0x4b, 0x64, 0xe6, 0xfa, 0xf8, 0x71, 0x6b}}
75 FOLDERID_SampleVideos = &KNOWNFOLDERID{0x859ead94, 0x2e85, 0x48ad, [8]byte{0xa7, 0x1a, 0x09, 0x69, 0xcb, 0x56, 0xa6, 0xcd}}
76 FOLDERID_PhotoAlbums = &KNOWNFOLDERID{0x69d2cf90, 0xfc33, 0x4fb7, [8]byte{0x9a, 0x0c, 0xeb, 0xb0, 0xf0, 0xfc, 0xb4, 0x3c}}
77 FOLDERID_Public = &KNOWNFOLDERID{0xdfdf76a2, 0xc82a, 0x4d63, [8]byte{0x90, 0x6a, 0x56, 0x44, 0xac, 0x45, 0x73, 0x85}}
78 FOLDERID_ChangeRemovePrograms = &KNOWNFOLDERID{0xdf7266ac, 0x9274, 0x4867, [8]byte{0x8d, 0x55, 0x3b, 0xd6, 0x61, 0xde, 0x87, 0x2d}}
79 FOLDERID_AppUpdates = &KNOWNFOLDERID{0xa305ce99, 0xf527, 0x492b, [8]byte{0x8b, 0x1a, 0x7e, 0x76, 0xfa, 0x98, 0xd6, 0xe4}}
80 FOLDERID_AddNewPrograms = &KNOWNFOLDERID{0xde61d971, 0x5ebc, 0x4f02, [8]byte{0xa3, 0xa9, 0x6c, 0x82, 0x89, 0x5e, 0x5c, 0x04}}
81 FOLDERID_Downloads = &KNOWNFOLDERID{0x374de290, 0x123f, 0x4565, [8]byte{0x91, 0x64, 0x39, 0xc4, 0x92, 0x5e, 0x46, 0x7b}}
82 FOLDERID_PublicDownloads = &KNOWNFOLDERID{0x3d644c9b, 0x1fb8, 0x4f30, [8]byte{0x9b, 0x45, 0xf6, 0x70, 0x23, 0x5f, 0x79, 0xc0}}
83 FOLDERID_SavedSearches = &KNOWNFOLDERID{0x7d1d3a04, 0xdebb, 0x4115, [8]byte{0x95, 0xcf, 0x2f, 0x29, 0xda, 0x29, 0x20, 0xda}}
84 FOLDERID_QuickLaunch = &KNOWNFOLDERID{0x52a4f021, 0x7b75, 0x48a9, [8]byte{0x9f, 0x6b, 0x4b, 0x87, 0xa2, 0x10, 0xbc, 0x8f}}
85 FOLDERID_Contacts = &KNOWNFOLDERID{0x56784854, 0xc6cb, 0x462b, [8]byte{0x81, 0x69, 0x88, 0xe3, 0x50, 0xac, 0xb8, 0x82}}
86 FOLDERID_SidebarParts = &KNOWNFOLDERID{0xa75d362e, 0x50fc, 0x4fb7, [8]byte{0xac, 0x2c, 0xa8, 0xbe, 0xaa, 0x31, 0x44, 0x93}}
87 FOLDERID_SidebarDefaultParts = &KNOWNFOLDERID{0x7b396e54, 0x9ec5, 0x4300, [8]byte{0xbe, 0x0a, 0x24, 0x82, 0xeb, 0xae, 0x1a, 0x26}}
88 FOLDERID_PublicGameTasks = &KNOWNFOLDERID{0xdebf2536, 0xe1a8, 0x4c59, [8]byte{0xb6, 0xa2, 0x41, 0x45, 0x86, 0x47, 0x6a, 0xea}}
89 FOLDERID_GameTasks = &KNOWNFOLDERID{0x054fae61, 0x4dd8, 0x4787, [8]byte{0x80, 0xb6, 0x09, 0x02, 0x20, 0xc4, 0xb7, 0x00}}
90 FOLDERID_SavedGames = &KNOWNFOLDERID{0x4c5c32ff, 0xbb9d, 0x43b0, [8]byte{0xb5, 0xb4, 0x2d, 0x72, 0xe5, 0x4e, 0xaa, 0xa4}}
91 FOLDERID_Games = &KNOWNFOLDERID{0xcac52c1a, 0xb53d, 0x4edc, [8]byte{0x92, 0xd7, 0x6b, 0x2e, 0x8a, 0xc1, 0x94, 0x34}}
92 FOLDERID_SEARCH_MAPI = &KNOWNFOLDERID{0x98ec0e18, 0x2098, 0x4d44, [8]byte{0x86, 0x44, 0x66, 0x97, 0x93, 0x15, 0xa2, 0x81}}
93 FOLDERID_SEARCH_CSC = &KNOWNFOLDERID{0xee32e446, 0x31ca, 0x4aba, [8]byte{0x81, 0x4f, 0xa5, 0xeb, 0xd2, 0xfd, 0x6d, 0x5e}}
94 FOLDERID_Links = &KNOWNFOLDERID{0xbfb9d5e0, 0xc6a9, 0x404c, [8]byte{0xb2, 0xb2, 0xae, 0x6d, 0xb6, 0xaf, 0x49, 0x68}}
95 FOLDERID_UsersFiles = &KNOWNFOLDERID{0xf3ce0f7c, 0x4901, 0x4acc, [8]byte{0x86, 0x48, 0xd5, 0xd4, 0x4b, 0x04, 0xef, 0x8f}}
96 FOLDERID_UsersLibraries = &KNOWNFOLDERID{0xa302545d, 0xdeff, 0x464b, [8]byte{0xab, 0xe8, 0x61, 0xc8, 0x64, 0x8d, 0x93, 0x9b}}
97 FOLDERID_SearchHome = &KNOWNFOLDERID{0x190337d1, 0xb8ca, 0x4121, [8]byte{0xa6, 0x39, 0x6d, 0x47, 0x2d, 0x16, 0x97, 0x2a}}
98 FOLDERID_OriginalImages = &KNOWNFOLDERID{0x2c36c0aa, 0x5812, 0x4b87, [8]byte{0xbf, 0xd0, 0x4c, 0xd0, 0xdf, 0xb1, 0x9b, 0x39}}
99 FOLDERID_DocumentsLibrary = &KNOWNFOLDERID{0x7b0db17d, 0x9cd2, 0x4a93, [8]byte{0x97, 0x33, 0x46, 0xcc, 0x89, 0x02, 0x2e, 0x7c}}
100 FOLDERID_MusicLibrary = &KNOWNFOLDERID{0x2112ab0a, 0xc86a, 0x4ffe, [8]byte{0xa3, 0x68, 0x0d, 0xe9, 0x6e, 0x47, 0x01, 0x2e}}
101 FOLDERID_PicturesLibrary = &KNOWNFOLDERID{0xa990ae9f, 0xa03b, 0x4e80, [8]byte{0x94, 0xbc, 0x99, 0x12, 0xd7, 0x50, 0x41, 0x04}}
102 FOLDERID_VideosLibrary = &KNOWNFOLDERID{0x491e922f, 0x5643, 0x4af4, [8]byte{0xa7, 0xeb, 0x4e, 0x7a, 0x13, 0x8d, 0x81, 0x74}}
103 FOLDERID_RecordedTVLibrary = &KNOWNFOLDERID{0x1a6fdba2, 0xf42d, 0x4358, [8]byte{0xa7, 0x98, 0xb7, 0x4d, 0x74, 0x59, 0x26, 0xc5}}
104 FOLDERID_HomeGroup = &KNOWNFOLDERID{0x52528a6b, 0xb9e3, 0x4add, [8]byte{0xb6, 0x0d, 0x58, 0x8c, 0x2d, 0xba, 0x84, 0x2d}}
105 FOLDERID_HomeGroupCurrentUser = &KNOWNFOLDERID{0x9b74b6a3, 0x0dfd, 0x4f11, [8]byte{0x9e, 0x78, 0x5f, 0x78, 0x00, 0xf2, 0xe7, 0x72}}
106 FOLDERID_DeviceMetadataStore = &KNOWNFOLDERID{0x5ce4a5e9, 0xe4eb, 0x479d, [8]byte{0xb8, 0x9f, 0x13, 0x0c, 0x02, 0x88, 0x61, 0x55}}
107 FOLDERID_Libraries = &KNOWNFOLDERID{0x1b3ea5dc, 0xb587, 0x4786, [8]byte{0xb4, 0xef, 0xbd, 0x1d, 0xc3, 0x32, 0xae, 0xae}}
108 FOLDERID_PublicLibraries = &KNOWNFOLDERID{0x48daf80b, 0xe6cf, 0x4f4e, [8]byte{0xb8, 0x00, 0x0e, 0x69, 0xd8, 0x4e, 0xe3, 0x84}}
109 FOLDERID_UserPinned = &KNOWNFOLDERID{0x9e3995ab, 0x1f9c, 0x4f13, [8]byte{0xb8, 0x27, 0x48, 0xb2, 0x4b, 0x6c, 0x71, 0x74}}
110 FOLDERID_ImplicitAppShortcuts = &KNOWNFOLDERID{0xbcb5256f, 0x79f6, 0x4cee, [8]byte{0xb7, 0x25, 0xdc, 0x34, 0xe4, 0x02, 0xfd, 0x46}}
111 FOLDERID_AccountPictures = &KNOWNFOLDERID{0x008ca0b1, 0x55b4, 0x4c56, [8]byte{0xb8, 0xa8, 0x4d, 0xe4, 0xb2, 0x99, 0xd3, 0xbe}}
112 FOLDERID_PublicUserTiles = &KNOWNFOLDERID{0x0482af6c, 0x08f1, 0x4c34, [8]byte{0x8c, 0x90, 0xe1, 0x7e, 0xc9, 0x8b, 0x1e, 0x17}}
113 FOLDERID_AppsFolder = &KNOWNFOLDERID{0x1e87508d, 0x89c2, 0x42f0, [8]byte{0x8a, 0x7e, 0x64, 0x5a, 0x0f, 0x50, 0xca, 0x58}}
114 FOLDERID_StartMenuAllPrograms = &KNOWNFOLDERID{0xf26305ef, 0x6948, 0x40b9, [8]byte{0xb2, 0x55, 0x81, 0x45, 0x3d, 0x09, 0xc7, 0x85}}
115 FOLDERID_CommonStartMenuPlaces = &KNOWNFOLDERID{0xa440879f, 0x87a0, 0x4f7d, [8]byte{0xb7, 0x00, 0x02, 0x07, 0xb9, 0x66, 0x19, 0x4a}}
116 FOLDERID_ApplicationShortcuts = &KNOWNFOLDERID{0xa3918781, 0xe5f2, 0x4890, [8]byte{0xb3, 0xd9, 0xa7, 0xe5, 0x43, 0x32, 0x32, 0x8c}}
117 FOLDERID_RoamingTiles = &KNOWNFOLDERID{0x00bcfc5a, 0xed94, 0x4e48, [8]byte{0x96, 0xa1, 0x3f, 0x62, 0x17, 0xf2, 0x19, 0x90}}
118 FOLDERID_RoamedTileImages = &KNOWNFOLDERID{0xaaa8d5a5, 0xf1d6, 0x4259, [8]byte{0xba, 0xa8, 0x78, 0xe7, 0xef, 0x60, 0x83, 0x5e}}
119 FOLDERID_Screenshots = &KNOWNFOLDERID{0xb7bede81, 0xdf94, 0x4682, [8]byte{0xa7, 0xd8, 0x57, 0xa5, 0x26, 0x20, 0xb8, 0x6f}}
120 FOLDERID_CameraRoll = &KNOWNFOLDERID{0xab5fb87b, 0x7ce2, 0x4f83, [8]byte{0x91, 0x5d, 0x55, 0x08, 0x46, 0xc9, 0x53, 0x7b}}
121 FOLDERID_SkyDrive = &KNOWNFOLDERID{0xa52bba46, 0xe9e1, 0x435f, [8]byte{0xb3, 0xd9, 0x28, 0xda, 0xa6, 0x48, 0xc0, 0xf6}}
122 FOLDERID_OneDrive = &KNOWNFOLDERID{0xa52bba46, 0xe9e1, 0x435f, [8]byte{0xb3, 0xd9, 0x28, 0xda, 0xa6, 0x48, 0xc0, 0xf6}}
123 FOLDERID_SkyDriveDocuments = &KNOWNFOLDERID{0x24d89e24, 0x2f19, 0x4534, [8]byte{0x9d, 0xde, 0x6a, 0x66, 0x71, 0xfb, 0xb8, 0xfe}}
124 FOLDERID_SkyDrivePictures = &KNOWNFOLDERID{0x339719b5, 0x8c47, 0x4894, [8]byte{0x94, 0xc2, 0xd8, 0xf7, 0x7a, 0xdd, 0x44, 0xa6}}
125 FOLDERID_SkyDriveMusic = &KNOWNFOLDERID{0xc3f2459e, 0x80d6, 0x45dc, [8]byte{0xbf, 0xef, 0x1f, 0x76, 0x9f, 0x2b, 0xe7, 0x30}}
126 FOLDERID_SkyDriveCameraRoll = &KNOWNFOLDERID{0x767e6811, 0x49cb, 0x4273, [8]byte{0x87, 0xc2, 0x20, 0xf3, 0x55, 0xe1, 0x08, 0x5b}}
127 FOLDERID_SearchHistory = &KNOWNFOLDERID{0x0d4c3db6, 0x03a3, 0x462f, [8]byte{0xa0, 0xe6, 0x08, 0x92, 0x4c, 0x41, 0xb5, 0xd4}}
128 FOLDERID_SearchTemplates = &KNOWNFOLDERID{0x7e636bfe, 0xdfa9, 0x4d5e, [8]byte{0xb4, 0x56, 0xd7, 0xb3, 0x98, 0x51, 0xd8, 0xa9}}
129 FOLDERID_CameraRollLibrary = &KNOWNFOLDERID{0x2b20df75, 0x1eda, 0x4039, [8]byte{0x80, 0x97, 0x38, 0x79, 0x82, 0x27, 0xd5, 0xb7}}
130 FOLDERID_SavedPictures = &KNOWNFOLDERID{0x3b193882, 0xd3ad, 0x4eab, [8]byte{0x96, 0x5a, 0x69, 0x82, 0x9d, 0x1f, 0xb5, 0x9f}}
131 FOLDERID_SavedPicturesLibrary = &KNOWNFOLDERID{0xe25b5812, 0xbe88, 0x4bd9, [8]byte{0x94, 0xb0, 0x29, 0x23, 0x34, 0x77, 0xb6, 0xc3}}
132 FOLDERID_RetailDemo = &KNOWNFOLDERID{0x12d4c69e, 0x24ad, 0x4923, [8]byte{0xbe, 0x19, 0x31, 0x32, 0x1c, 0x43, 0xa7, 0x67}}
133 FOLDERID_Device = &KNOWNFOLDERID{0x1c2ac1dc, 0x4358, 0x4b6c, [8]byte{0x97, 0x33, 0xaf, 0x21, 0x15, 0x65, 0x76, 0xf0}}
134 FOLDERID_DevelopmentFiles = &KNOWNFOLDERID{0xdbe8e08e, 0x3053, 0x4bbc, [8]byte{0xb1, 0x83, 0x2a, 0x7b, 0x2b, 0x19, 0x1e, 0x59}}
135 FOLDERID_Objects3D = &KNOWNFOLDERID{0x31c0dd25, 0x9439, 0x4f12, [8]byte{0xbf, 0x41, 0x7f, 0xf4, 0xed, 0xa3, 0x87, 0x22}}
136 FOLDERID_AppCaptures = &KNOWNFOLDERID{0xedc0fe71, 0x98d8, 0x4f4a, [8]byte{0xb9, 0x20, 0xc8, 0xdc, 0x13, 0x3c, 0xb1, 0x65}}
137 FOLDERID_LocalDocuments = &KNOWNFOLDERID{0xf42ee2d3, 0x909f, 0x4907, [8]byte{0x88, 0x71, 0x4c, 0x22, 0xfc, 0x0b, 0xf7, 0x56}}
138 FOLDERID_LocalPictures = &KNOWNFOLDERID{0x0ddd015d, 0xb06c, 0x45d5, [8]byte{0x8c, 0x4c, 0xf5, 0x97, 0x13, 0x85, 0x46, 0x39}}
139 FOLDERID_LocalVideos = &KNOWNFOLDERID{0x35286a68, 0x3c57, 0x41a1, [8]byte{0xbb, 0xb1, 0x0e, 0xae, 0x73, 0xd7, 0x6c, 0x95}}
140 FOLDERID_LocalMusic = &KNOWNFOLDERID{0xa0c69a99, 0x21c8, 0x4671, [8]byte{0x87, 0x03, 0x79, 0x34, 0x16, 0x2f, 0xcf, 0x1d}}
141 FOLDERID_LocalDownloads = &KNOWNFOLDERID{0x7d83ee9b, 0x2244, 0x4e70, [8]byte{0xb1, 0xf5, 0x53, 0x93, 0x04, 0x2a, 0xf1, 0xe4}}
142 FOLDERID_RecordedCalls = &KNOWNFOLDERID{0x2f8b40c2, 0x83ed, 0x48ee, [8]byte{0xb3, 0x83, 0xa1, 0xf1, 0x57, 0xec, 0x6f, 0x9a}}
143 FOLDERID_AllAppMods = &KNOWNFOLDERID{0x7ad67899, 0x66af, 0x43ba, [8]byte{0x91, 0x56, 0x6a, 0xad, 0x42, 0xe6, 0xc5, 0x96}}
144 FOLDERID_CurrentAppMods = &KNOWNFOLDERID{0x3db40b20, 0x2a30, 0x4dbe, [8]byte{0x91, 0x7e, 0x77, 0x1d, 0xd2, 0x1d, 0xd0, 0x99}}
145 FOLDERID_AppDataDesktop = &KNOWNFOLDERID{0xb2c5e279, 0x7add, 0x439f, [8]byte{0xb2, 0x8c, 0xc4, 0x1f, 0xe1, 0xbb, 0xf6, 0x72}}
146 FOLDERID_AppDataDocuments = &KNOWNFOLDERID{0x7be16610, 0x1f7f, 0x44ac, [8]byte{0xbf, 0xf0, 0x83, 0xe1, 0x5f, 0x2f, 0xfc, 0xa1}}
147 FOLDERID_AppDataFavorites = &KNOWNFOLDERID{0x7cfbefbc, 0xde1f, 0x45aa, [8]byte{0xb8, 0x43, 0xa5, 0x42, 0xac, 0x53, 0x6c, 0xc9}}
148 FOLDERID_AppDataProgramData = &KNOWNFOLDERID{0x559d40a3, 0xa036, 0x40fa, [8]byte{0xaf, 0x61, 0x84, 0xcb, 0x43, 0x0a, 0x4d, 0x34}}
149)
diff --git a/vendor/golang.org/x/sys/windows/zsyscall_windows.go b/vendor/golang.org/x/sys/windows/zsyscall_windows.go
deleted file mode 100644
index 146a1f0..0000000
--- a/vendor/golang.org/x/sys/windows/zsyscall_windows.go
+++ /dev/null
@@ -1,4409 +0,0 @@
1// Code generated by 'go generate'; DO NOT EDIT.
2
3package windows
4
5import (
6 "syscall"
7 "unsafe"
8)
9
10var _ unsafe.Pointer
11
12// Do the interface allocations only once for common
13// Errno values.
14const (
15 errnoERROR_IO_PENDING = 997
16)
17
18var (
19 errERROR_IO_PENDING error = syscall.Errno(errnoERROR_IO_PENDING)
20 errERROR_EINVAL error = syscall.EINVAL
21)
22
23// errnoErr returns common boxed Errno values, to prevent
24// allocations at runtime.
25func errnoErr(e syscall.Errno) error {
26 switch e {
27 case 0:
28 return errERROR_EINVAL
29 case errnoERROR_IO_PENDING:
30 return errERROR_IO_PENDING
31 }
32 // TODO: add more here, after collecting data on the common
33 // error values see on Windows. (perhaps when running
34 // all.bat?)
35 return e
36}
37
38var (
39 modCfgMgr32 = NewLazySystemDLL("CfgMgr32.dll")
40 modadvapi32 = NewLazySystemDLL("advapi32.dll")
41 modcrypt32 = NewLazySystemDLL("crypt32.dll")
42 moddnsapi = NewLazySystemDLL("dnsapi.dll")
43 moddwmapi = NewLazySystemDLL("dwmapi.dll")
44 modiphlpapi = NewLazySystemDLL("iphlpapi.dll")
45 modkernel32 = NewLazySystemDLL("kernel32.dll")
46 modmswsock = NewLazySystemDLL("mswsock.dll")
47 modnetapi32 = NewLazySystemDLL("netapi32.dll")
48 modntdll = NewLazySystemDLL("ntdll.dll")
49 modole32 = NewLazySystemDLL("ole32.dll")
50 modpsapi = NewLazySystemDLL("psapi.dll")
51 modsechost = NewLazySystemDLL("sechost.dll")
52 modsecur32 = NewLazySystemDLL("secur32.dll")
53 modsetupapi = NewLazySystemDLL("setupapi.dll")
54 modshell32 = NewLazySystemDLL("shell32.dll")
55 moduser32 = NewLazySystemDLL("user32.dll")
56 moduserenv = NewLazySystemDLL("userenv.dll")
57 modversion = NewLazySystemDLL("version.dll")
58 modwinmm = NewLazySystemDLL("winmm.dll")
59 modwintrust = NewLazySystemDLL("wintrust.dll")
60 modws2_32 = NewLazySystemDLL("ws2_32.dll")
61 modwtsapi32 = NewLazySystemDLL("wtsapi32.dll")
62
63 procCM_Get_DevNode_Status = modCfgMgr32.NewProc("CM_Get_DevNode_Status")
64 procCM_Get_Device_Interface_ListW = modCfgMgr32.NewProc("CM_Get_Device_Interface_ListW")
65 procCM_Get_Device_Interface_List_SizeW = modCfgMgr32.NewProc("CM_Get_Device_Interface_List_SizeW")
66 procCM_MapCrToWin32Err = modCfgMgr32.NewProc("CM_MapCrToWin32Err")
67 procAdjustTokenGroups = modadvapi32.NewProc("AdjustTokenGroups")
68 procAdjustTokenPrivileges = modadvapi32.NewProc("AdjustTokenPrivileges")
69 procAllocateAndInitializeSid = modadvapi32.NewProc("AllocateAndInitializeSid")
70 procBuildSecurityDescriptorW = modadvapi32.NewProc("BuildSecurityDescriptorW")
71 procChangeServiceConfig2W = modadvapi32.NewProc("ChangeServiceConfig2W")
72 procChangeServiceConfigW = modadvapi32.NewProc("ChangeServiceConfigW")
73 procCheckTokenMembership = modadvapi32.NewProc("CheckTokenMembership")
74 procCloseServiceHandle = modadvapi32.NewProc("CloseServiceHandle")
75 procControlService = modadvapi32.NewProc("ControlService")
76 procConvertSecurityDescriptorToStringSecurityDescriptorW = modadvapi32.NewProc("ConvertSecurityDescriptorToStringSecurityDescriptorW")
77 procConvertSidToStringSidW = modadvapi32.NewProc("ConvertSidToStringSidW")
78 procConvertStringSecurityDescriptorToSecurityDescriptorW = modadvapi32.NewProc("ConvertStringSecurityDescriptorToSecurityDescriptorW")
79 procConvertStringSidToSidW = modadvapi32.NewProc("ConvertStringSidToSidW")
80 procCopySid = modadvapi32.NewProc("CopySid")
81 procCreateProcessAsUserW = modadvapi32.NewProc("CreateProcessAsUserW")
82 procCreateServiceW = modadvapi32.NewProc("CreateServiceW")
83 procCreateWellKnownSid = modadvapi32.NewProc("CreateWellKnownSid")
84 procCryptAcquireContextW = modadvapi32.NewProc("CryptAcquireContextW")
85 procCryptGenRandom = modadvapi32.NewProc("CryptGenRandom")
86 procCryptReleaseContext = modadvapi32.NewProc("CryptReleaseContext")
87 procDeleteService = modadvapi32.NewProc("DeleteService")
88 procDeregisterEventSource = modadvapi32.NewProc("DeregisterEventSource")
89 procDuplicateTokenEx = modadvapi32.NewProc("DuplicateTokenEx")
90 procEnumDependentServicesW = modadvapi32.NewProc("EnumDependentServicesW")
91 procEnumServicesStatusExW = modadvapi32.NewProc("EnumServicesStatusExW")
92 procEqualSid = modadvapi32.NewProc("EqualSid")
93 procFreeSid = modadvapi32.NewProc("FreeSid")
94 procGetLengthSid = modadvapi32.NewProc("GetLengthSid")
95 procGetNamedSecurityInfoW = modadvapi32.NewProc("GetNamedSecurityInfoW")
96 procGetSecurityDescriptorControl = modadvapi32.NewProc("GetSecurityDescriptorControl")
97 procGetSecurityDescriptorDacl = modadvapi32.NewProc("GetSecurityDescriptorDacl")
98 procGetSecurityDescriptorGroup = modadvapi32.NewProc("GetSecurityDescriptorGroup")
99 procGetSecurityDescriptorLength = modadvapi32.NewProc("GetSecurityDescriptorLength")
100 procGetSecurityDescriptorOwner = modadvapi32.NewProc("GetSecurityDescriptorOwner")
101 procGetSecurityDescriptorRMControl = modadvapi32.NewProc("GetSecurityDescriptorRMControl")
102 procGetSecurityDescriptorSacl = modadvapi32.NewProc("GetSecurityDescriptorSacl")
103 procGetSecurityInfo = modadvapi32.NewProc("GetSecurityInfo")
104 procGetSidIdentifierAuthority = modadvapi32.NewProc("GetSidIdentifierAuthority")
105 procGetSidSubAuthority = modadvapi32.NewProc("GetSidSubAuthority")
106 procGetSidSubAuthorityCount = modadvapi32.NewProc("GetSidSubAuthorityCount")
107 procGetTokenInformation = modadvapi32.NewProc("GetTokenInformation")
108 procImpersonateSelf = modadvapi32.NewProc("ImpersonateSelf")
109 procInitializeSecurityDescriptor = modadvapi32.NewProc("InitializeSecurityDescriptor")
110 procInitiateSystemShutdownExW = modadvapi32.NewProc("InitiateSystemShutdownExW")
111 procIsTokenRestricted = modadvapi32.NewProc("IsTokenRestricted")
112 procIsValidSecurityDescriptor = modadvapi32.NewProc("IsValidSecurityDescriptor")
113 procIsValidSid = modadvapi32.NewProc("IsValidSid")
114 procIsWellKnownSid = modadvapi32.NewProc("IsWellKnownSid")
115 procLookupAccountNameW = modadvapi32.NewProc("LookupAccountNameW")
116 procLookupAccountSidW = modadvapi32.NewProc("LookupAccountSidW")
117 procLookupPrivilegeValueW = modadvapi32.NewProc("LookupPrivilegeValueW")
118 procMakeAbsoluteSD = modadvapi32.NewProc("MakeAbsoluteSD")
119 procMakeSelfRelativeSD = modadvapi32.NewProc("MakeSelfRelativeSD")
120 procNotifyServiceStatusChangeW = modadvapi32.NewProc("NotifyServiceStatusChangeW")
121 procOpenProcessToken = modadvapi32.NewProc("OpenProcessToken")
122 procOpenSCManagerW = modadvapi32.NewProc("OpenSCManagerW")
123 procOpenServiceW = modadvapi32.NewProc("OpenServiceW")
124 procOpenThreadToken = modadvapi32.NewProc("OpenThreadToken")
125 procQueryServiceConfig2W = modadvapi32.NewProc("QueryServiceConfig2W")
126 procQueryServiceConfigW = modadvapi32.NewProc("QueryServiceConfigW")
127 procQueryServiceDynamicInformation = modadvapi32.NewProc("QueryServiceDynamicInformation")
128 procQueryServiceLockStatusW = modadvapi32.NewProc("QueryServiceLockStatusW")
129 procQueryServiceStatus = modadvapi32.NewProc("QueryServiceStatus")
130 procQueryServiceStatusEx = modadvapi32.NewProc("QueryServiceStatusEx")
131 procRegCloseKey = modadvapi32.NewProc("RegCloseKey")
132 procRegEnumKeyExW = modadvapi32.NewProc("RegEnumKeyExW")
133 procRegNotifyChangeKeyValue = modadvapi32.NewProc("RegNotifyChangeKeyValue")
134 procRegOpenKeyExW = modadvapi32.NewProc("RegOpenKeyExW")
135 procRegQueryInfoKeyW = modadvapi32.NewProc("RegQueryInfoKeyW")
136 procRegQueryValueExW = modadvapi32.NewProc("RegQueryValueExW")
137 procRegisterEventSourceW = modadvapi32.NewProc("RegisterEventSourceW")
138 procRegisterServiceCtrlHandlerExW = modadvapi32.NewProc("RegisterServiceCtrlHandlerExW")
139 procReportEventW = modadvapi32.NewProc("ReportEventW")
140 procRevertToSelf = modadvapi32.NewProc("RevertToSelf")
141 procSetEntriesInAclW = modadvapi32.NewProc("SetEntriesInAclW")
142 procSetKernelObjectSecurity = modadvapi32.NewProc("SetKernelObjectSecurity")
143 procSetNamedSecurityInfoW = modadvapi32.NewProc("SetNamedSecurityInfoW")
144 procSetSecurityDescriptorControl = modadvapi32.NewProc("SetSecurityDescriptorControl")
145 procSetSecurityDescriptorDacl = modadvapi32.NewProc("SetSecurityDescriptorDacl")
146 procSetSecurityDescriptorGroup = modadvapi32.NewProc("SetSecurityDescriptorGroup")
147 procSetSecurityDescriptorOwner = modadvapi32.NewProc("SetSecurityDescriptorOwner")
148 procSetSecurityDescriptorRMControl = modadvapi32.NewProc("SetSecurityDescriptorRMControl")
149 procSetSecurityDescriptorSacl = modadvapi32.NewProc("SetSecurityDescriptorSacl")
150 procSetSecurityInfo = modadvapi32.NewProc("SetSecurityInfo")
151 procSetServiceStatus = modadvapi32.NewProc("SetServiceStatus")
152 procSetThreadToken = modadvapi32.NewProc("SetThreadToken")
153 procSetTokenInformation = modadvapi32.NewProc("SetTokenInformation")
154 procStartServiceCtrlDispatcherW = modadvapi32.NewProc("StartServiceCtrlDispatcherW")
155 procStartServiceW = modadvapi32.NewProc("StartServiceW")
156 procCertAddCertificateContextToStore = modcrypt32.NewProc("CertAddCertificateContextToStore")
157 procCertCloseStore = modcrypt32.NewProc("CertCloseStore")
158 procCertCreateCertificateContext = modcrypt32.NewProc("CertCreateCertificateContext")
159 procCertDeleteCertificateFromStore = modcrypt32.NewProc("CertDeleteCertificateFromStore")
160 procCertDuplicateCertificateContext = modcrypt32.NewProc("CertDuplicateCertificateContext")
161 procCertEnumCertificatesInStore = modcrypt32.NewProc("CertEnumCertificatesInStore")
162 procCertFindCertificateInStore = modcrypt32.NewProc("CertFindCertificateInStore")
163 procCertFindChainInStore = modcrypt32.NewProc("CertFindChainInStore")
164 procCertFindExtension = modcrypt32.NewProc("CertFindExtension")
165 procCertFreeCertificateChain = modcrypt32.NewProc("CertFreeCertificateChain")
166 procCertFreeCertificateContext = modcrypt32.NewProc("CertFreeCertificateContext")
167 procCertGetCertificateChain = modcrypt32.NewProc("CertGetCertificateChain")
168 procCertGetNameStringW = modcrypt32.NewProc("CertGetNameStringW")
169 procCertOpenStore = modcrypt32.NewProc("CertOpenStore")
170 procCertOpenSystemStoreW = modcrypt32.NewProc("CertOpenSystemStoreW")
171 procCertVerifyCertificateChainPolicy = modcrypt32.NewProc("CertVerifyCertificateChainPolicy")
172 procCryptAcquireCertificatePrivateKey = modcrypt32.NewProc("CryptAcquireCertificatePrivateKey")
173 procCryptDecodeObject = modcrypt32.NewProc("CryptDecodeObject")
174 procCryptProtectData = modcrypt32.NewProc("CryptProtectData")
175 procCryptQueryObject = modcrypt32.NewProc("CryptQueryObject")
176 procCryptUnprotectData = modcrypt32.NewProc("CryptUnprotectData")
177 procPFXImportCertStore = modcrypt32.NewProc("PFXImportCertStore")
178 procDnsNameCompare_W = moddnsapi.NewProc("DnsNameCompare_W")
179 procDnsQuery_W = moddnsapi.NewProc("DnsQuery_W")
180 procDnsRecordListFree = moddnsapi.NewProc("DnsRecordListFree")
181 procDwmGetWindowAttribute = moddwmapi.NewProc("DwmGetWindowAttribute")
182 procDwmSetWindowAttribute = moddwmapi.NewProc("DwmSetWindowAttribute")
183 procGetAdaptersAddresses = modiphlpapi.NewProc("GetAdaptersAddresses")
184 procGetAdaptersInfo = modiphlpapi.NewProc("GetAdaptersInfo")
185 procGetBestInterfaceEx = modiphlpapi.NewProc("GetBestInterfaceEx")
186 procGetIfEntry = modiphlpapi.NewProc("GetIfEntry")
187 procAddDllDirectory = modkernel32.NewProc("AddDllDirectory")
188 procAssignProcessToJobObject = modkernel32.NewProc("AssignProcessToJobObject")
189 procCancelIo = modkernel32.NewProc("CancelIo")
190 procCancelIoEx = modkernel32.NewProc("CancelIoEx")
191 procCloseHandle = modkernel32.NewProc("CloseHandle")
192 procClosePseudoConsole = modkernel32.NewProc("ClosePseudoConsole")
193 procConnectNamedPipe = modkernel32.NewProc("ConnectNamedPipe")
194 procCreateDirectoryW = modkernel32.NewProc("CreateDirectoryW")
195 procCreateEventExW = modkernel32.NewProc("CreateEventExW")
196 procCreateEventW = modkernel32.NewProc("CreateEventW")
197 procCreateFileMappingW = modkernel32.NewProc("CreateFileMappingW")
198 procCreateFileW = modkernel32.NewProc("CreateFileW")
199 procCreateHardLinkW = modkernel32.NewProc("CreateHardLinkW")
200 procCreateIoCompletionPort = modkernel32.NewProc("CreateIoCompletionPort")
201 procCreateJobObjectW = modkernel32.NewProc("CreateJobObjectW")
202 procCreateMutexExW = modkernel32.NewProc("CreateMutexExW")
203 procCreateMutexW = modkernel32.NewProc("CreateMutexW")
204 procCreateNamedPipeW = modkernel32.NewProc("CreateNamedPipeW")
205 procCreatePipe = modkernel32.NewProc("CreatePipe")
206 procCreateProcessW = modkernel32.NewProc("CreateProcessW")
207 procCreatePseudoConsole = modkernel32.NewProc("CreatePseudoConsole")
208 procCreateSymbolicLinkW = modkernel32.NewProc("CreateSymbolicLinkW")
209 procCreateToolhelp32Snapshot = modkernel32.NewProc("CreateToolhelp32Snapshot")
210 procDefineDosDeviceW = modkernel32.NewProc("DefineDosDeviceW")
211 procDeleteFileW = modkernel32.NewProc("DeleteFileW")
212 procDeleteProcThreadAttributeList = modkernel32.NewProc("DeleteProcThreadAttributeList")
213 procDeleteVolumeMountPointW = modkernel32.NewProc("DeleteVolumeMountPointW")
214 procDeviceIoControl = modkernel32.NewProc("DeviceIoControl")
215 procDuplicateHandle = modkernel32.NewProc("DuplicateHandle")
216 procExitProcess = modkernel32.NewProc("ExitProcess")
217 procExpandEnvironmentStringsW = modkernel32.NewProc("ExpandEnvironmentStringsW")
218 procFindClose = modkernel32.NewProc("FindClose")
219 procFindCloseChangeNotification = modkernel32.NewProc("FindCloseChangeNotification")
220 procFindFirstChangeNotificationW = modkernel32.NewProc("FindFirstChangeNotificationW")
221 procFindFirstFileW = modkernel32.NewProc("FindFirstFileW")
222 procFindFirstVolumeMountPointW = modkernel32.NewProc("FindFirstVolumeMountPointW")
223 procFindFirstVolumeW = modkernel32.NewProc("FindFirstVolumeW")
224 procFindNextChangeNotification = modkernel32.NewProc("FindNextChangeNotification")
225 procFindNextFileW = modkernel32.NewProc("FindNextFileW")
226 procFindNextVolumeMountPointW = modkernel32.NewProc("FindNextVolumeMountPointW")
227 procFindNextVolumeW = modkernel32.NewProc("FindNextVolumeW")
228 procFindResourceW = modkernel32.NewProc("FindResourceW")
229 procFindVolumeClose = modkernel32.NewProc("FindVolumeClose")
230 procFindVolumeMountPointClose = modkernel32.NewProc("FindVolumeMountPointClose")
231 procFlushFileBuffers = modkernel32.NewProc("FlushFileBuffers")
232 procFlushViewOfFile = modkernel32.NewProc("FlushViewOfFile")
233 procFormatMessageW = modkernel32.NewProc("FormatMessageW")
234 procFreeEnvironmentStringsW = modkernel32.NewProc("FreeEnvironmentStringsW")
235 procFreeLibrary = modkernel32.NewProc("FreeLibrary")
236 procGenerateConsoleCtrlEvent = modkernel32.NewProc("GenerateConsoleCtrlEvent")
237 procGetACP = modkernel32.NewProc("GetACP")
238 procGetActiveProcessorCount = modkernel32.NewProc("GetActiveProcessorCount")
239 procGetCommTimeouts = modkernel32.NewProc("GetCommTimeouts")
240 procGetCommandLineW = modkernel32.NewProc("GetCommandLineW")
241 procGetComputerNameExW = modkernel32.NewProc("GetComputerNameExW")
242 procGetComputerNameW = modkernel32.NewProc("GetComputerNameW")
243 procGetConsoleMode = modkernel32.NewProc("GetConsoleMode")
244 procGetConsoleScreenBufferInfo = modkernel32.NewProc("GetConsoleScreenBufferInfo")
245 procGetCurrentDirectoryW = modkernel32.NewProc("GetCurrentDirectoryW")
246 procGetCurrentProcessId = modkernel32.NewProc("GetCurrentProcessId")
247 procGetCurrentThreadId = modkernel32.NewProc("GetCurrentThreadId")
248 procGetDiskFreeSpaceExW = modkernel32.NewProc("GetDiskFreeSpaceExW")
249 procGetDriveTypeW = modkernel32.NewProc("GetDriveTypeW")
250 procGetEnvironmentStringsW = modkernel32.NewProc("GetEnvironmentStringsW")
251 procGetEnvironmentVariableW = modkernel32.NewProc("GetEnvironmentVariableW")
252 procGetExitCodeProcess = modkernel32.NewProc("GetExitCodeProcess")
253 procGetFileAttributesExW = modkernel32.NewProc("GetFileAttributesExW")
254 procGetFileAttributesW = modkernel32.NewProc("GetFileAttributesW")
255 procGetFileInformationByHandle = modkernel32.NewProc("GetFileInformationByHandle")
256 procGetFileInformationByHandleEx = modkernel32.NewProc("GetFileInformationByHandleEx")
257 procGetFileTime = modkernel32.NewProc("GetFileTime")
258 procGetFileType = modkernel32.NewProc("GetFileType")
259 procGetFinalPathNameByHandleW = modkernel32.NewProc("GetFinalPathNameByHandleW")
260 procGetFullPathNameW = modkernel32.NewProc("GetFullPathNameW")
261 procGetLargePageMinimum = modkernel32.NewProc("GetLargePageMinimum")
262 procGetLastError = modkernel32.NewProc("GetLastError")
263 procGetLogicalDriveStringsW = modkernel32.NewProc("GetLogicalDriveStringsW")
264 procGetLogicalDrives = modkernel32.NewProc("GetLogicalDrives")
265 procGetLongPathNameW = modkernel32.NewProc("GetLongPathNameW")
266 procGetMaximumProcessorCount = modkernel32.NewProc("GetMaximumProcessorCount")
267 procGetModuleFileNameW = modkernel32.NewProc("GetModuleFileNameW")
268 procGetModuleHandleExW = modkernel32.NewProc("GetModuleHandleExW")
269 procGetNamedPipeHandleStateW = modkernel32.NewProc("GetNamedPipeHandleStateW")
270 procGetNamedPipeInfo = modkernel32.NewProc("GetNamedPipeInfo")
271 procGetOverlappedResult = modkernel32.NewProc("GetOverlappedResult")
272 procGetPriorityClass = modkernel32.NewProc("GetPriorityClass")
273 procGetProcAddress = modkernel32.NewProc("GetProcAddress")
274 procGetProcessId = modkernel32.NewProc("GetProcessId")
275 procGetProcessPreferredUILanguages = modkernel32.NewProc("GetProcessPreferredUILanguages")
276 procGetProcessShutdownParameters = modkernel32.NewProc("GetProcessShutdownParameters")
277 procGetProcessTimes = modkernel32.NewProc("GetProcessTimes")
278 procGetProcessWorkingSetSizeEx = modkernel32.NewProc("GetProcessWorkingSetSizeEx")
279 procGetQueuedCompletionStatus = modkernel32.NewProc("GetQueuedCompletionStatus")
280 procGetShortPathNameW = modkernel32.NewProc("GetShortPathNameW")
281 procGetStartupInfoW = modkernel32.NewProc("GetStartupInfoW")
282 procGetStdHandle = modkernel32.NewProc("GetStdHandle")
283 procGetSystemDirectoryW = modkernel32.NewProc("GetSystemDirectoryW")
284 procGetSystemPreferredUILanguages = modkernel32.NewProc("GetSystemPreferredUILanguages")
285 procGetSystemTimeAsFileTime = modkernel32.NewProc("GetSystemTimeAsFileTime")
286 procGetSystemTimePreciseAsFileTime = modkernel32.NewProc("GetSystemTimePreciseAsFileTime")
287 procGetSystemWindowsDirectoryW = modkernel32.NewProc("GetSystemWindowsDirectoryW")
288 procGetTempPathW = modkernel32.NewProc("GetTempPathW")
289 procGetThreadPreferredUILanguages = modkernel32.NewProc("GetThreadPreferredUILanguages")
290 procGetTickCount64 = modkernel32.NewProc("GetTickCount64")
291 procGetTimeZoneInformation = modkernel32.NewProc("GetTimeZoneInformation")
292 procGetUserPreferredUILanguages = modkernel32.NewProc("GetUserPreferredUILanguages")
293 procGetVersion = modkernel32.NewProc("GetVersion")
294 procGetVolumeInformationByHandleW = modkernel32.NewProc("GetVolumeInformationByHandleW")
295 procGetVolumeInformationW = modkernel32.NewProc("GetVolumeInformationW")
296 procGetVolumeNameForVolumeMountPointW = modkernel32.NewProc("GetVolumeNameForVolumeMountPointW")
297 procGetVolumePathNameW = modkernel32.NewProc("GetVolumePathNameW")
298 procGetVolumePathNamesForVolumeNameW = modkernel32.NewProc("GetVolumePathNamesForVolumeNameW")
299 procGetWindowsDirectoryW = modkernel32.NewProc("GetWindowsDirectoryW")
300 procInitializeProcThreadAttributeList = modkernel32.NewProc("InitializeProcThreadAttributeList")
301 procIsWow64Process = modkernel32.NewProc("IsWow64Process")
302 procIsWow64Process2 = modkernel32.NewProc("IsWow64Process2")
303 procLoadLibraryExW = modkernel32.NewProc("LoadLibraryExW")
304 procLoadLibraryW = modkernel32.NewProc("LoadLibraryW")
305 procLoadResource = modkernel32.NewProc("LoadResource")
306 procLocalAlloc = modkernel32.NewProc("LocalAlloc")
307 procLocalFree = modkernel32.NewProc("LocalFree")
308 procLockFileEx = modkernel32.NewProc("LockFileEx")
309 procLockResource = modkernel32.NewProc("LockResource")
310 procMapViewOfFile = modkernel32.NewProc("MapViewOfFile")
311 procModule32FirstW = modkernel32.NewProc("Module32FirstW")
312 procModule32NextW = modkernel32.NewProc("Module32NextW")
313 procMoveFileExW = modkernel32.NewProc("MoveFileExW")
314 procMoveFileW = modkernel32.NewProc("MoveFileW")
315 procMultiByteToWideChar = modkernel32.NewProc("MultiByteToWideChar")
316 procOpenEventW = modkernel32.NewProc("OpenEventW")
317 procOpenMutexW = modkernel32.NewProc("OpenMutexW")
318 procOpenProcess = modkernel32.NewProc("OpenProcess")
319 procOpenThread = modkernel32.NewProc("OpenThread")
320 procPostQueuedCompletionStatus = modkernel32.NewProc("PostQueuedCompletionStatus")
321 procProcess32FirstW = modkernel32.NewProc("Process32FirstW")
322 procProcess32NextW = modkernel32.NewProc("Process32NextW")
323 procProcessIdToSessionId = modkernel32.NewProc("ProcessIdToSessionId")
324 procPulseEvent = modkernel32.NewProc("PulseEvent")
325 procQueryDosDeviceW = modkernel32.NewProc("QueryDosDeviceW")
326 procQueryFullProcessImageNameW = modkernel32.NewProc("QueryFullProcessImageNameW")
327 procQueryInformationJobObject = modkernel32.NewProc("QueryInformationJobObject")
328 procReadConsoleW = modkernel32.NewProc("ReadConsoleW")
329 procReadDirectoryChangesW = modkernel32.NewProc("ReadDirectoryChangesW")
330 procReadFile = modkernel32.NewProc("ReadFile")
331 procReadProcessMemory = modkernel32.NewProc("ReadProcessMemory")
332 procReleaseMutex = modkernel32.NewProc("ReleaseMutex")
333 procRemoveDirectoryW = modkernel32.NewProc("RemoveDirectoryW")
334 procRemoveDllDirectory = modkernel32.NewProc("RemoveDllDirectory")
335 procResetEvent = modkernel32.NewProc("ResetEvent")
336 procResizePseudoConsole = modkernel32.NewProc("ResizePseudoConsole")
337 procResumeThread = modkernel32.NewProc("ResumeThread")
338 procSetCommTimeouts = modkernel32.NewProc("SetCommTimeouts")
339 procSetConsoleCursorPosition = modkernel32.NewProc("SetConsoleCursorPosition")
340 procSetConsoleMode = modkernel32.NewProc("SetConsoleMode")
341 procSetCurrentDirectoryW = modkernel32.NewProc("SetCurrentDirectoryW")
342 procSetDefaultDllDirectories = modkernel32.NewProc("SetDefaultDllDirectories")
343 procSetDllDirectoryW = modkernel32.NewProc("SetDllDirectoryW")
344 procSetEndOfFile = modkernel32.NewProc("SetEndOfFile")
345 procSetEnvironmentVariableW = modkernel32.NewProc("SetEnvironmentVariableW")
346 procSetErrorMode = modkernel32.NewProc("SetErrorMode")
347 procSetEvent = modkernel32.NewProc("SetEvent")
348 procSetFileAttributesW = modkernel32.NewProc("SetFileAttributesW")
349 procSetFileCompletionNotificationModes = modkernel32.NewProc("SetFileCompletionNotificationModes")
350 procSetFileInformationByHandle = modkernel32.NewProc("SetFileInformationByHandle")
351 procSetFilePointer = modkernel32.NewProc("SetFilePointer")
352 procSetFileTime = modkernel32.NewProc("SetFileTime")
353 procSetHandleInformation = modkernel32.NewProc("SetHandleInformation")
354 procSetInformationJobObject = modkernel32.NewProc("SetInformationJobObject")
355 procSetNamedPipeHandleState = modkernel32.NewProc("SetNamedPipeHandleState")
356 procSetPriorityClass = modkernel32.NewProc("SetPriorityClass")
357 procSetProcessPriorityBoost = modkernel32.NewProc("SetProcessPriorityBoost")
358 procSetProcessShutdownParameters = modkernel32.NewProc("SetProcessShutdownParameters")
359 procSetProcessWorkingSetSizeEx = modkernel32.NewProc("SetProcessWorkingSetSizeEx")
360 procSetStdHandle = modkernel32.NewProc("SetStdHandle")
361 procSetVolumeLabelW = modkernel32.NewProc("SetVolumeLabelW")
362 procSetVolumeMountPointW = modkernel32.NewProc("SetVolumeMountPointW")
363 procSizeofResource = modkernel32.NewProc("SizeofResource")
364 procSleepEx = modkernel32.NewProc("SleepEx")
365 procTerminateJobObject = modkernel32.NewProc("TerminateJobObject")
366 procTerminateProcess = modkernel32.NewProc("TerminateProcess")
367 procThread32First = modkernel32.NewProc("Thread32First")
368 procThread32Next = modkernel32.NewProc("Thread32Next")
369 procUnlockFileEx = modkernel32.NewProc("UnlockFileEx")
370 procUnmapViewOfFile = modkernel32.NewProc("UnmapViewOfFile")
371 procUpdateProcThreadAttribute = modkernel32.NewProc("UpdateProcThreadAttribute")
372 procVirtualAlloc = modkernel32.NewProc("VirtualAlloc")
373 procVirtualFree = modkernel32.NewProc("VirtualFree")
374 procVirtualLock = modkernel32.NewProc("VirtualLock")
375 procVirtualProtect = modkernel32.NewProc("VirtualProtect")
376 procVirtualProtectEx = modkernel32.NewProc("VirtualProtectEx")
377 procVirtualQuery = modkernel32.NewProc("VirtualQuery")
378 procVirtualQueryEx = modkernel32.NewProc("VirtualQueryEx")
379 procVirtualUnlock = modkernel32.NewProc("VirtualUnlock")
380 procWTSGetActiveConsoleSessionId = modkernel32.NewProc("WTSGetActiveConsoleSessionId")
381 procWaitForMultipleObjects = modkernel32.NewProc("WaitForMultipleObjects")
382 procWaitForSingleObject = modkernel32.NewProc("WaitForSingleObject")
383 procWriteConsoleW = modkernel32.NewProc("WriteConsoleW")
384 procWriteFile = modkernel32.NewProc("WriteFile")
385 procWriteProcessMemory = modkernel32.NewProc("WriteProcessMemory")
386 procAcceptEx = modmswsock.NewProc("AcceptEx")
387 procGetAcceptExSockaddrs = modmswsock.NewProc("GetAcceptExSockaddrs")
388 procTransmitFile = modmswsock.NewProc("TransmitFile")
389 procNetApiBufferFree = modnetapi32.NewProc("NetApiBufferFree")
390 procNetGetJoinInformation = modnetapi32.NewProc("NetGetJoinInformation")
391 procNetUserGetInfo = modnetapi32.NewProc("NetUserGetInfo")
392 procNtCreateFile = modntdll.NewProc("NtCreateFile")
393 procNtCreateNamedPipeFile = modntdll.NewProc("NtCreateNamedPipeFile")
394 procNtQueryInformationProcess = modntdll.NewProc("NtQueryInformationProcess")
395 procNtQuerySystemInformation = modntdll.NewProc("NtQuerySystemInformation")
396 procNtSetInformationFile = modntdll.NewProc("NtSetInformationFile")
397 procNtSetInformationProcess = modntdll.NewProc("NtSetInformationProcess")
398 procNtSetSystemInformation = modntdll.NewProc("NtSetSystemInformation")
399 procRtlAddFunctionTable = modntdll.NewProc("RtlAddFunctionTable")
400 procRtlDefaultNpAcl = modntdll.NewProc("RtlDefaultNpAcl")
401 procRtlDeleteFunctionTable = modntdll.NewProc("RtlDeleteFunctionTable")
402 procRtlDosPathNameToNtPathName_U_WithStatus = modntdll.NewProc("RtlDosPathNameToNtPathName_U_WithStatus")
403 procRtlDosPathNameToRelativeNtPathName_U_WithStatus = modntdll.NewProc("RtlDosPathNameToRelativeNtPathName_U_WithStatus")
404 procRtlGetCurrentPeb = modntdll.NewProc("RtlGetCurrentPeb")
405 procRtlGetNtVersionNumbers = modntdll.NewProc("RtlGetNtVersionNumbers")
406 procRtlGetVersion = modntdll.NewProc("RtlGetVersion")
407 procRtlInitString = modntdll.NewProc("RtlInitString")
408 procRtlInitUnicodeString = modntdll.NewProc("RtlInitUnicodeString")
409 procRtlNtStatusToDosErrorNoTeb = modntdll.NewProc("RtlNtStatusToDosErrorNoTeb")
410 procCLSIDFromString = modole32.NewProc("CLSIDFromString")
411 procCoCreateGuid = modole32.NewProc("CoCreateGuid")
412 procCoGetObject = modole32.NewProc("CoGetObject")
413 procCoInitializeEx = modole32.NewProc("CoInitializeEx")
414 procCoTaskMemFree = modole32.NewProc("CoTaskMemFree")
415 procCoUninitialize = modole32.NewProc("CoUninitialize")
416 procStringFromGUID2 = modole32.NewProc("StringFromGUID2")
417 procEnumProcessModules = modpsapi.NewProc("EnumProcessModules")
418 procEnumProcessModulesEx = modpsapi.NewProc("EnumProcessModulesEx")
419 procEnumProcesses = modpsapi.NewProc("EnumProcesses")
420 procGetModuleBaseNameW = modpsapi.NewProc("GetModuleBaseNameW")
421 procGetModuleFileNameExW = modpsapi.NewProc("GetModuleFileNameExW")
422 procGetModuleInformation = modpsapi.NewProc("GetModuleInformation")
423 procQueryWorkingSetEx = modpsapi.NewProc("QueryWorkingSetEx")
424 procSubscribeServiceChangeNotifications = modsechost.NewProc("SubscribeServiceChangeNotifications")
425 procUnsubscribeServiceChangeNotifications = modsechost.NewProc("UnsubscribeServiceChangeNotifications")
426 procGetUserNameExW = modsecur32.NewProc("GetUserNameExW")
427 procTranslateNameW = modsecur32.NewProc("TranslateNameW")
428 procSetupDiBuildDriverInfoList = modsetupapi.NewProc("SetupDiBuildDriverInfoList")
429 procSetupDiCallClassInstaller = modsetupapi.NewProc("SetupDiCallClassInstaller")
430 procSetupDiCancelDriverInfoSearch = modsetupapi.NewProc("SetupDiCancelDriverInfoSearch")
431 procSetupDiClassGuidsFromNameExW = modsetupapi.NewProc("SetupDiClassGuidsFromNameExW")
432 procSetupDiClassNameFromGuidExW = modsetupapi.NewProc("SetupDiClassNameFromGuidExW")
433 procSetupDiCreateDeviceInfoListExW = modsetupapi.NewProc("SetupDiCreateDeviceInfoListExW")
434 procSetupDiCreateDeviceInfoW = modsetupapi.NewProc("SetupDiCreateDeviceInfoW")
435 procSetupDiDestroyDeviceInfoList = modsetupapi.NewProc("SetupDiDestroyDeviceInfoList")
436 procSetupDiDestroyDriverInfoList = modsetupapi.NewProc("SetupDiDestroyDriverInfoList")
437 procSetupDiEnumDeviceInfo = modsetupapi.NewProc("SetupDiEnumDeviceInfo")
438 procSetupDiEnumDriverInfoW = modsetupapi.NewProc("SetupDiEnumDriverInfoW")
439 procSetupDiGetClassDevsExW = modsetupapi.NewProc("SetupDiGetClassDevsExW")
440 procSetupDiGetClassInstallParamsW = modsetupapi.NewProc("SetupDiGetClassInstallParamsW")
441 procSetupDiGetDeviceInfoListDetailW = modsetupapi.NewProc("SetupDiGetDeviceInfoListDetailW")
442 procSetupDiGetDeviceInstallParamsW = modsetupapi.NewProc("SetupDiGetDeviceInstallParamsW")
443 procSetupDiGetDeviceInstanceIdW = modsetupapi.NewProc("SetupDiGetDeviceInstanceIdW")
444 procSetupDiGetDevicePropertyW = modsetupapi.NewProc("SetupDiGetDevicePropertyW")
445 procSetupDiGetDeviceRegistryPropertyW = modsetupapi.NewProc("SetupDiGetDeviceRegistryPropertyW")
446 procSetupDiGetDriverInfoDetailW = modsetupapi.NewProc("SetupDiGetDriverInfoDetailW")
447 procSetupDiGetSelectedDevice = modsetupapi.NewProc("SetupDiGetSelectedDevice")
448 procSetupDiGetSelectedDriverW = modsetupapi.NewProc("SetupDiGetSelectedDriverW")
449 procSetupDiOpenDevRegKey = modsetupapi.NewProc("SetupDiOpenDevRegKey")
450 procSetupDiSetClassInstallParamsW = modsetupapi.NewProc("SetupDiSetClassInstallParamsW")
451 procSetupDiSetDeviceInstallParamsW = modsetupapi.NewProc("SetupDiSetDeviceInstallParamsW")
452 procSetupDiSetDeviceRegistryPropertyW = modsetupapi.NewProc("SetupDiSetDeviceRegistryPropertyW")
453 procSetupDiSetSelectedDevice = modsetupapi.NewProc("SetupDiSetSelectedDevice")
454 procSetupDiSetSelectedDriverW = modsetupapi.NewProc("SetupDiSetSelectedDriverW")
455 procSetupUninstallOEMInfW = modsetupapi.NewProc("SetupUninstallOEMInfW")
456 procCommandLineToArgvW = modshell32.NewProc("CommandLineToArgvW")
457 procSHGetKnownFolderPath = modshell32.NewProc("SHGetKnownFolderPath")
458 procShellExecuteW = modshell32.NewProc("ShellExecuteW")
459 procEnumChildWindows = moduser32.NewProc("EnumChildWindows")
460 procEnumWindows = moduser32.NewProc("EnumWindows")
461 procExitWindowsEx = moduser32.NewProc("ExitWindowsEx")
462 procGetClassNameW = moduser32.NewProc("GetClassNameW")
463 procGetDesktopWindow = moduser32.NewProc("GetDesktopWindow")
464 procGetForegroundWindow = moduser32.NewProc("GetForegroundWindow")
465 procGetGUIThreadInfo = moduser32.NewProc("GetGUIThreadInfo")
466 procGetShellWindow = moduser32.NewProc("GetShellWindow")
467 procGetWindowThreadProcessId = moduser32.NewProc("GetWindowThreadProcessId")
468 procIsWindow = moduser32.NewProc("IsWindow")
469 procIsWindowUnicode = moduser32.NewProc("IsWindowUnicode")
470 procIsWindowVisible = moduser32.NewProc("IsWindowVisible")
471 procMessageBoxW = moduser32.NewProc("MessageBoxW")
472 procCreateEnvironmentBlock = moduserenv.NewProc("CreateEnvironmentBlock")
473 procDestroyEnvironmentBlock = moduserenv.NewProc("DestroyEnvironmentBlock")
474 procGetUserProfileDirectoryW = moduserenv.NewProc("GetUserProfileDirectoryW")
475 procGetFileVersionInfoSizeW = modversion.NewProc("GetFileVersionInfoSizeW")
476 procGetFileVersionInfoW = modversion.NewProc("GetFileVersionInfoW")
477 procVerQueryValueW = modversion.NewProc("VerQueryValueW")
478 proctimeBeginPeriod = modwinmm.NewProc("timeBeginPeriod")
479 proctimeEndPeriod = modwinmm.NewProc("timeEndPeriod")
480 procWinVerifyTrustEx = modwintrust.NewProc("WinVerifyTrustEx")
481 procFreeAddrInfoW = modws2_32.NewProc("FreeAddrInfoW")
482 procGetAddrInfoW = modws2_32.NewProc("GetAddrInfoW")
483 procWSACleanup = modws2_32.NewProc("WSACleanup")
484 procWSAEnumProtocolsW = modws2_32.NewProc("WSAEnumProtocolsW")
485 procWSAGetOverlappedResult = modws2_32.NewProc("WSAGetOverlappedResult")
486 procWSAIoctl = modws2_32.NewProc("WSAIoctl")
487 procWSALookupServiceBeginW = modws2_32.NewProc("WSALookupServiceBeginW")
488 procWSALookupServiceEnd = modws2_32.NewProc("WSALookupServiceEnd")
489 procWSALookupServiceNextW = modws2_32.NewProc("WSALookupServiceNextW")
490 procWSARecv = modws2_32.NewProc("WSARecv")
491 procWSARecvFrom = modws2_32.NewProc("WSARecvFrom")
492 procWSASend = modws2_32.NewProc("WSASend")
493 procWSASendTo = modws2_32.NewProc("WSASendTo")
494 procWSASocketW = modws2_32.NewProc("WSASocketW")
495 procWSAStartup = modws2_32.NewProc("WSAStartup")
496 procbind = modws2_32.NewProc("bind")
497 procclosesocket = modws2_32.NewProc("closesocket")
498 procconnect = modws2_32.NewProc("connect")
499 procgethostbyname = modws2_32.NewProc("gethostbyname")
500 procgetpeername = modws2_32.NewProc("getpeername")
501 procgetprotobyname = modws2_32.NewProc("getprotobyname")
502 procgetservbyname = modws2_32.NewProc("getservbyname")
503 procgetsockname = modws2_32.NewProc("getsockname")
504 procgetsockopt = modws2_32.NewProc("getsockopt")
505 proclisten = modws2_32.NewProc("listen")
506 procntohs = modws2_32.NewProc("ntohs")
507 procrecvfrom = modws2_32.NewProc("recvfrom")
508 procsendto = modws2_32.NewProc("sendto")
509 procsetsockopt = modws2_32.NewProc("setsockopt")
510 procshutdown = modws2_32.NewProc("shutdown")
511 procsocket = modws2_32.NewProc("socket")
512 procWTSEnumerateSessionsW = modwtsapi32.NewProc("WTSEnumerateSessionsW")
513 procWTSFreeMemory = modwtsapi32.NewProc("WTSFreeMemory")
514 procWTSQueryUserToken = modwtsapi32.NewProc("WTSQueryUserToken")
515)
516
517func cm_Get_DevNode_Status(status *uint32, problemNumber *uint32, devInst DEVINST, flags uint32) (ret CONFIGRET) {
518 r0, _, _ := syscall.Syscall6(procCM_Get_DevNode_Status.Addr(), 4, uintptr(unsafe.Pointer(status)), uintptr(unsafe.Pointer(problemNumber)), uintptr(devInst), uintptr(flags), 0, 0)
519 ret = CONFIGRET(r0)
520 return
521}
522
523func cm_Get_Device_Interface_List(interfaceClass *GUID, deviceID *uint16, buffer *uint16, bufferLen uint32, flags uint32) (ret CONFIGRET) {
524 r0, _, _ := syscall.Syscall6(procCM_Get_Device_Interface_ListW.Addr(), 5, uintptr(unsafe.Pointer(interfaceClass)), uintptr(unsafe.Pointer(deviceID)), uintptr(unsafe.Pointer(buffer)), uintptr(bufferLen), uintptr(flags), 0)
525 ret = CONFIGRET(r0)
526 return
527}
528
529func cm_Get_Device_Interface_List_Size(len *uint32, interfaceClass *GUID, deviceID *uint16, flags uint32) (ret CONFIGRET) {
530 r0, _, _ := syscall.Syscall6(procCM_Get_Device_Interface_List_SizeW.Addr(), 4, uintptr(unsafe.Pointer(len)), uintptr(unsafe.Pointer(interfaceClass)), uintptr(unsafe.Pointer(deviceID)), uintptr(flags), 0, 0)
531 ret = CONFIGRET(r0)
532 return
533}
534
535func cm_MapCrToWin32Err(configRet CONFIGRET, defaultWin32Error Errno) (ret Errno) {
536 r0, _, _ := syscall.Syscall(procCM_MapCrToWin32Err.Addr(), 2, uintptr(configRet), uintptr(defaultWin32Error), 0)
537 ret = Errno(r0)
538 return
539}
540
541func AdjustTokenGroups(token Token, resetToDefault bool, newstate *Tokengroups, buflen uint32, prevstate *Tokengroups, returnlen *uint32) (err error) {
542 var _p0 uint32
543 if resetToDefault {
544 _p0 = 1
545 }
546 r1, _, e1 := syscall.Syscall6(procAdjustTokenGroups.Addr(), 6, uintptr(token), uintptr(_p0), uintptr(unsafe.Pointer(newstate)), uintptr(buflen), uintptr(unsafe.Pointer(prevstate)), uintptr(unsafe.Pointer(returnlen)))
547 if r1 == 0 {
548 err = errnoErr(e1)
549 }
550 return
551}
552
553func AdjustTokenPrivileges(token Token, disableAllPrivileges bool, newstate *Tokenprivileges, buflen uint32, prevstate *Tokenprivileges, returnlen *uint32) (err error) {
554 var _p0 uint32
555 if disableAllPrivileges {
556 _p0 = 1
557 }
558 r1, _, e1 := syscall.Syscall6(procAdjustTokenPrivileges.Addr(), 6, uintptr(token), uintptr(_p0), uintptr(unsafe.Pointer(newstate)), uintptr(buflen), uintptr(unsafe.Pointer(prevstate)), uintptr(unsafe.Pointer(returnlen)))
559 if r1 == 0 {
560 err = errnoErr(e1)
561 }
562 return
563}
564
565func AllocateAndInitializeSid(identAuth *SidIdentifierAuthority, subAuth byte, subAuth0 uint32, subAuth1 uint32, subAuth2 uint32, subAuth3 uint32, subAuth4 uint32, subAuth5 uint32, subAuth6 uint32, subAuth7 uint32, sid **SID) (err error) {
566 r1, _, e1 := syscall.Syscall12(procAllocateAndInitializeSid.Addr(), 11, uintptr(unsafe.Pointer(identAuth)), uintptr(subAuth), uintptr(subAuth0), uintptr(subAuth1), uintptr(subAuth2), uintptr(subAuth3), uintptr(subAuth4), uintptr(subAuth5), uintptr(subAuth6), uintptr(subAuth7), uintptr(unsafe.Pointer(sid)), 0)
567 if r1 == 0 {
568 err = errnoErr(e1)
569 }
570 return
571}
572
573func buildSecurityDescriptor(owner *TRUSTEE, group *TRUSTEE, countAccessEntries uint32, accessEntries *EXPLICIT_ACCESS, countAuditEntries uint32, auditEntries *EXPLICIT_ACCESS, oldSecurityDescriptor *SECURITY_DESCRIPTOR, sizeNewSecurityDescriptor *uint32, newSecurityDescriptor **SECURITY_DESCRIPTOR) (ret error) {
574 r0, _, _ := syscall.Syscall9(procBuildSecurityDescriptorW.Addr(), 9, uintptr(unsafe.Pointer(owner)), uintptr(unsafe.Pointer(group)), uintptr(countAccessEntries), uintptr(unsafe.Pointer(accessEntries)), uintptr(countAuditEntries), uintptr(unsafe.Pointer(auditEntries)), uintptr(unsafe.Pointer(oldSecurityDescriptor)), uintptr(unsafe.Pointer(sizeNewSecurityDescriptor)), uintptr(unsafe.Pointer(newSecurityDescriptor)))
575 if r0 != 0 {
576 ret = syscall.Errno(r0)
577 }
578 return
579}
580
581func ChangeServiceConfig2(service Handle, infoLevel uint32, info *byte) (err error) {
582 r1, _, e1 := syscall.Syscall(procChangeServiceConfig2W.Addr(), 3, uintptr(service), uintptr(infoLevel), uintptr(unsafe.Pointer(info)))
583 if r1 == 0 {
584 err = errnoErr(e1)
585 }
586 return
587}
588
589func ChangeServiceConfig(service Handle, serviceType uint32, startType uint32, errorControl uint32, binaryPathName *uint16, loadOrderGroup *uint16, tagId *uint32, dependencies *uint16, serviceStartName *uint16, password *uint16, displayName *uint16) (err error) {
590 r1, _, e1 := syscall.Syscall12(procChangeServiceConfigW.Addr(), 11, uintptr(service), uintptr(serviceType), uintptr(startType), uintptr(errorControl), uintptr(unsafe.Pointer(binaryPathName)), uintptr(unsafe.Pointer(loadOrderGroup)), uintptr(unsafe.Pointer(tagId)), uintptr(unsafe.Pointer(dependencies)), uintptr(unsafe.Pointer(serviceStartName)), uintptr(unsafe.Pointer(password)), uintptr(unsafe.Pointer(displayName)), 0)
591 if r1 == 0 {
592 err = errnoErr(e1)
593 }
594 return
595}
596
597func checkTokenMembership(tokenHandle Token, sidToCheck *SID, isMember *int32) (err error) {
598 r1, _, e1 := syscall.Syscall(procCheckTokenMembership.Addr(), 3, uintptr(tokenHandle), uintptr(unsafe.Pointer(sidToCheck)), uintptr(unsafe.Pointer(isMember)))
599 if r1 == 0 {
600 err = errnoErr(e1)
601 }
602 return
603}
604
605func CloseServiceHandle(handle Handle) (err error) {
606 r1, _, e1 := syscall.Syscall(procCloseServiceHandle.Addr(), 1, uintptr(handle), 0, 0)
607 if r1 == 0 {
608 err = errnoErr(e1)
609 }
610 return
611}
612
613func ControlService(service Handle, control uint32, status *SERVICE_STATUS) (err error) {
614 r1, _, e1 := syscall.Syscall(procControlService.Addr(), 3, uintptr(service), uintptr(control), uintptr(unsafe.Pointer(status)))
615 if r1 == 0 {
616 err = errnoErr(e1)
617 }
618 return
619}
620
621func convertSecurityDescriptorToStringSecurityDescriptor(sd *SECURITY_DESCRIPTOR, revision uint32, securityInformation SECURITY_INFORMATION, str **uint16, strLen *uint32) (err error) {
622 r1, _, e1 := syscall.Syscall6(procConvertSecurityDescriptorToStringSecurityDescriptorW.Addr(), 5, uintptr(unsafe.Pointer(sd)), uintptr(revision), uintptr(securityInformation), uintptr(unsafe.Pointer(str)), uintptr(unsafe.Pointer(strLen)), 0)
623 if r1 == 0 {
624 err = errnoErr(e1)
625 }
626 return
627}
628
629func ConvertSidToStringSid(sid *SID, stringSid **uint16) (err error) {
630 r1, _, e1 := syscall.Syscall(procConvertSidToStringSidW.Addr(), 2, uintptr(unsafe.Pointer(sid)), uintptr(unsafe.Pointer(stringSid)), 0)
631 if r1 == 0 {
632 err = errnoErr(e1)
633 }
634 return
635}
636
637func convertStringSecurityDescriptorToSecurityDescriptor(str string, revision uint32, sd **SECURITY_DESCRIPTOR, size *uint32) (err error) {
638 var _p0 *uint16
639 _p0, err = syscall.UTF16PtrFromString(str)
640 if err != nil {
641 return
642 }
643 return _convertStringSecurityDescriptorToSecurityDescriptor(_p0, revision, sd, size)
644}
645
646func _convertStringSecurityDescriptorToSecurityDescriptor(str *uint16, revision uint32, sd **SECURITY_DESCRIPTOR, size *uint32) (err error) {
647 r1, _, e1 := syscall.Syscall6(procConvertStringSecurityDescriptorToSecurityDescriptorW.Addr(), 4, uintptr(unsafe.Pointer(str)), uintptr(revision), uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(size)), 0, 0)
648 if r1 == 0 {
649 err = errnoErr(e1)
650 }
651 return
652}
653
654func ConvertStringSidToSid(stringSid *uint16, sid **SID) (err error) {
655 r1, _, e1 := syscall.Syscall(procConvertStringSidToSidW.Addr(), 2, uintptr(unsafe.Pointer(stringSid)), uintptr(unsafe.Pointer(sid)), 0)
656 if r1 == 0 {
657 err = errnoErr(e1)
658 }
659 return
660}
661
662func CopySid(destSidLen uint32, destSid *SID, srcSid *SID) (err error) {
663 r1, _, e1 := syscall.Syscall(procCopySid.Addr(), 3, uintptr(destSidLen), uintptr(unsafe.Pointer(destSid)), uintptr(unsafe.Pointer(srcSid)))
664 if r1 == 0 {
665 err = errnoErr(e1)
666 }
667 return
668}
669
670func CreateProcessAsUser(token Token, appName *uint16, commandLine *uint16, procSecurity *SecurityAttributes, threadSecurity *SecurityAttributes, inheritHandles bool, creationFlags uint32, env *uint16, currentDir *uint16, startupInfo *StartupInfo, outProcInfo *ProcessInformation) (err error) {
671 var _p0 uint32
672 if inheritHandles {
673 _p0 = 1
674 }
675 r1, _, e1 := syscall.Syscall12(procCreateProcessAsUserW.Addr(), 11, uintptr(token), uintptr(unsafe.Pointer(appName)), uintptr(unsafe.Pointer(commandLine)), uintptr(unsafe.Pointer(procSecurity)), uintptr(unsafe.Pointer(threadSecurity)), uintptr(_p0), uintptr(creationFlags), uintptr(unsafe.Pointer(env)), uintptr(unsafe.Pointer(currentDir)), uintptr(unsafe.Pointer(startupInfo)), uintptr(unsafe.Pointer(outProcInfo)), 0)
676 if r1 == 0 {
677 err = errnoErr(e1)
678 }
679 return
680}
681
682func CreateService(mgr Handle, serviceName *uint16, displayName *uint16, access uint32, srvType uint32, startType uint32, errCtl uint32, pathName *uint16, loadOrderGroup *uint16, tagId *uint32, dependencies *uint16, serviceStartName *uint16, password *uint16) (handle Handle, err error) {
683 r0, _, e1 := syscall.Syscall15(procCreateServiceW.Addr(), 13, uintptr(mgr), uintptr(unsafe.Pointer(serviceName)), uintptr(unsafe.Pointer(displayName)), uintptr(access), uintptr(srvType), uintptr(startType), uintptr(errCtl), uintptr(unsafe.Pointer(pathName)), uintptr(unsafe.Pointer(loadOrderGroup)), uintptr(unsafe.Pointer(tagId)), uintptr(unsafe.Pointer(dependencies)), uintptr(unsafe.Pointer(serviceStartName)), uintptr(unsafe.Pointer(password)), 0, 0)
684 handle = Handle(r0)
685 if handle == 0 {
686 err = errnoErr(e1)
687 }
688 return
689}
690
691func createWellKnownSid(sidType WELL_KNOWN_SID_TYPE, domainSid *SID, sid *SID, sizeSid *uint32) (err error) {
692 r1, _, e1 := syscall.Syscall6(procCreateWellKnownSid.Addr(), 4, uintptr(sidType), uintptr(unsafe.Pointer(domainSid)), uintptr(unsafe.Pointer(sid)), uintptr(unsafe.Pointer(sizeSid)), 0, 0)
693 if r1 == 0 {
694 err = errnoErr(e1)
695 }
696 return
697}
698
699func CryptAcquireContext(provhandle *Handle, container *uint16, provider *uint16, provtype uint32, flags uint32) (err error) {
700 r1, _, e1 := syscall.Syscall6(procCryptAcquireContextW.Addr(), 5, uintptr(unsafe.Pointer(provhandle)), uintptr(unsafe.Pointer(container)), uintptr(unsafe.Pointer(provider)), uintptr(provtype), uintptr(flags), 0)
701 if r1 == 0 {
702 err = errnoErr(e1)
703 }
704 return
705}
706
707func CryptGenRandom(provhandle Handle, buflen uint32, buf *byte) (err error) {
708 r1, _, e1 := syscall.Syscall(procCryptGenRandom.Addr(), 3, uintptr(provhandle), uintptr(buflen), uintptr(unsafe.Pointer(buf)))
709 if r1 == 0 {
710 err = errnoErr(e1)
711 }
712 return
713}
714
715func CryptReleaseContext(provhandle Handle, flags uint32) (err error) {
716 r1, _, e1 := syscall.Syscall(procCryptReleaseContext.Addr(), 2, uintptr(provhandle), uintptr(flags), 0)
717 if r1 == 0 {
718 err = errnoErr(e1)
719 }
720 return
721}
722
723func DeleteService(service Handle) (err error) {
724 r1, _, e1 := syscall.Syscall(procDeleteService.Addr(), 1, uintptr(service), 0, 0)
725 if r1 == 0 {
726 err = errnoErr(e1)
727 }
728 return
729}
730
731func DeregisterEventSource(handle Handle) (err error) {
732 r1, _, e1 := syscall.Syscall(procDeregisterEventSource.Addr(), 1, uintptr(handle), 0, 0)
733 if r1 == 0 {
734 err = errnoErr(e1)
735 }
736 return
737}
738
739func DuplicateTokenEx(existingToken Token, desiredAccess uint32, tokenAttributes *SecurityAttributes, impersonationLevel uint32, tokenType uint32, newToken *Token) (err error) {
740 r1, _, e1 := syscall.Syscall6(procDuplicateTokenEx.Addr(), 6, uintptr(existingToken), uintptr(desiredAccess), uintptr(unsafe.Pointer(tokenAttributes)), uintptr(impersonationLevel), uintptr(tokenType), uintptr(unsafe.Pointer(newToken)))
741 if r1 == 0 {
742 err = errnoErr(e1)
743 }
744 return
745}
746
747func EnumDependentServices(service Handle, activityState uint32, services *ENUM_SERVICE_STATUS, buffSize uint32, bytesNeeded *uint32, servicesReturned *uint32) (err error) {
748 r1, _, e1 := syscall.Syscall6(procEnumDependentServicesW.Addr(), 6, uintptr(service), uintptr(activityState), uintptr(unsafe.Pointer(services)), uintptr(buffSize), uintptr(unsafe.Pointer(bytesNeeded)), uintptr(unsafe.Pointer(servicesReturned)))
749 if r1 == 0 {
750 err = errnoErr(e1)
751 }
752 return
753}
754
755func EnumServicesStatusEx(mgr Handle, infoLevel uint32, serviceType uint32, serviceState uint32, services *byte, bufSize uint32, bytesNeeded *uint32, servicesReturned *uint32, resumeHandle *uint32, groupName *uint16) (err error) {
756 r1, _, e1 := syscall.Syscall12(procEnumServicesStatusExW.Addr(), 10, uintptr(mgr), uintptr(infoLevel), uintptr(serviceType), uintptr(serviceState), uintptr(unsafe.Pointer(services)), uintptr(bufSize), uintptr(unsafe.Pointer(bytesNeeded)), uintptr(unsafe.Pointer(servicesReturned)), uintptr(unsafe.Pointer(resumeHandle)), uintptr(unsafe.Pointer(groupName)), 0, 0)
757 if r1 == 0 {
758 err = errnoErr(e1)
759 }
760 return
761}
762
763func EqualSid(sid1 *SID, sid2 *SID) (isEqual bool) {
764 r0, _, _ := syscall.Syscall(procEqualSid.Addr(), 2, uintptr(unsafe.Pointer(sid1)), uintptr(unsafe.Pointer(sid2)), 0)
765 isEqual = r0 != 0
766 return
767}
768
769func FreeSid(sid *SID) (err error) {
770 r1, _, e1 := syscall.Syscall(procFreeSid.Addr(), 1, uintptr(unsafe.Pointer(sid)), 0, 0)
771 if r1 != 0 {
772 err = errnoErr(e1)
773 }
774 return
775}
776
777func GetLengthSid(sid *SID) (len uint32) {
778 r0, _, _ := syscall.Syscall(procGetLengthSid.Addr(), 1, uintptr(unsafe.Pointer(sid)), 0, 0)
779 len = uint32(r0)
780 return
781}
782
783func getNamedSecurityInfo(objectName string, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION, owner **SID, group **SID, dacl **ACL, sacl **ACL, sd **SECURITY_DESCRIPTOR) (ret error) {
784 var _p0 *uint16
785 _p0, ret = syscall.UTF16PtrFromString(objectName)
786 if ret != nil {
787 return
788 }
789 return _getNamedSecurityInfo(_p0, objectType, securityInformation, owner, group, dacl, sacl, sd)
790}
791
792func _getNamedSecurityInfo(objectName *uint16, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION, owner **SID, group **SID, dacl **ACL, sacl **ACL, sd **SECURITY_DESCRIPTOR) (ret error) {
793 r0, _, _ := syscall.Syscall9(procGetNamedSecurityInfoW.Addr(), 8, uintptr(unsafe.Pointer(objectName)), uintptr(objectType), uintptr(securityInformation), uintptr(unsafe.Pointer(owner)), uintptr(unsafe.Pointer(group)), uintptr(unsafe.Pointer(dacl)), uintptr(unsafe.Pointer(sacl)), uintptr(unsafe.Pointer(sd)), 0)
794 if r0 != 0 {
795 ret = syscall.Errno(r0)
796 }
797 return
798}
799
800func getSecurityDescriptorControl(sd *SECURITY_DESCRIPTOR, control *SECURITY_DESCRIPTOR_CONTROL, revision *uint32) (err error) {
801 r1, _, e1 := syscall.Syscall(procGetSecurityDescriptorControl.Addr(), 3, uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(control)), uintptr(unsafe.Pointer(revision)))
802 if r1 == 0 {
803 err = errnoErr(e1)
804 }
805 return
806}
807
808func getSecurityDescriptorDacl(sd *SECURITY_DESCRIPTOR, daclPresent *bool, dacl **ACL, daclDefaulted *bool) (err error) {
809 var _p0 uint32
810 if *daclPresent {
811 _p0 = 1
812 }
813 var _p1 uint32
814 if *daclDefaulted {
815 _p1 = 1
816 }
817 r1, _, e1 := syscall.Syscall6(procGetSecurityDescriptorDacl.Addr(), 4, uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(&_p0)), uintptr(unsafe.Pointer(dacl)), uintptr(unsafe.Pointer(&_p1)), 0, 0)
818 *daclPresent = _p0 != 0
819 *daclDefaulted = _p1 != 0
820 if r1 == 0 {
821 err = errnoErr(e1)
822 }
823 return
824}
825
826func getSecurityDescriptorGroup(sd *SECURITY_DESCRIPTOR, group **SID, groupDefaulted *bool) (err error) {
827 var _p0 uint32
828 if *groupDefaulted {
829 _p0 = 1
830 }
831 r1, _, e1 := syscall.Syscall(procGetSecurityDescriptorGroup.Addr(), 3, uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(group)), uintptr(unsafe.Pointer(&_p0)))
832 *groupDefaulted = _p0 != 0
833 if r1 == 0 {
834 err = errnoErr(e1)
835 }
836 return
837}
838
839func getSecurityDescriptorLength(sd *SECURITY_DESCRIPTOR) (len uint32) {
840 r0, _, _ := syscall.Syscall(procGetSecurityDescriptorLength.Addr(), 1, uintptr(unsafe.Pointer(sd)), 0, 0)
841 len = uint32(r0)
842 return
843}
844
845func getSecurityDescriptorOwner(sd *SECURITY_DESCRIPTOR, owner **SID, ownerDefaulted *bool) (err error) {
846 var _p0 uint32
847 if *ownerDefaulted {
848 _p0 = 1
849 }
850 r1, _, e1 := syscall.Syscall(procGetSecurityDescriptorOwner.Addr(), 3, uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(owner)), uintptr(unsafe.Pointer(&_p0)))
851 *ownerDefaulted = _p0 != 0
852 if r1 == 0 {
853 err = errnoErr(e1)
854 }
855 return
856}
857
858func getSecurityDescriptorRMControl(sd *SECURITY_DESCRIPTOR, rmControl *uint8) (ret error) {
859 r0, _, _ := syscall.Syscall(procGetSecurityDescriptorRMControl.Addr(), 2, uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(rmControl)), 0)
860 if r0 != 0 {
861 ret = syscall.Errno(r0)
862 }
863 return
864}
865
866func getSecurityDescriptorSacl(sd *SECURITY_DESCRIPTOR, saclPresent *bool, sacl **ACL, saclDefaulted *bool) (err error) {
867 var _p0 uint32
868 if *saclPresent {
869 _p0 = 1
870 }
871 var _p1 uint32
872 if *saclDefaulted {
873 _p1 = 1
874 }
875 r1, _, e1 := syscall.Syscall6(procGetSecurityDescriptorSacl.Addr(), 4, uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(&_p0)), uintptr(unsafe.Pointer(sacl)), uintptr(unsafe.Pointer(&_p1)), 0, 0)
876 *saclPresent = _p0 != 0
877 *saclDefaulted = _p1 != 0
878 if r1 == 0 {
879 err = errnoErr(e1)
880 }
881 return
882}
883
884func getSecurityInfo(handle Handle, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION, owner **SID, group **SID, dacl **ACL, sacl **ACL, sd **SECURITY_DESCRIPTOR) (ret error) {
885 r0, _, _ := syscall.Syscall9(procGetSecurityInfo.Addr(), 8, uintptr(handle), uintptr(objectType), uintptr(securityInformation), uintptr(unsafe.Pointer(owner)), uintptr(unsafe.Pointer(group)), uintptr(unsafe.Pointer(dacl)), uintptr(unsafe.Pointer(sacl)), uintptr(unsafe.Pointer(sd)), 0)
886 if r0 != 0 {
887 ret = syscall.Errno(r0)
888 }
889 return
890}
891
892func getSidIdentifierAuthority(sid *SID) (authority *SidIdentifierAuthority) {
893 r0, _, _ := syscall.Syscall(procGetSidIdentifierAuthority.Addr(), 1, uintptr(unsafe.Pointer(sid)), 0, 0)
894 authority = (*SidIdentifierAuthority)(unsafe.Pointer(r0))
895 return
896}
897
898func getSidSubAuthority(sid *SID, index uint32) (subAuthority *uint32) {
899 r0, _, _ := syscall.Syscall(procGetSidSubAuthority.Addr(), 2, uintptr(unsafe.Pointer(sid)), uintptr(index), 0)
900 subAuthority = (*uint32)(unsafe.Pointer(r0))
901 return
902}
903
904func getSidSubAuthorityCount(sid *SID) (count *uint8) {
905 r0, _, _ := syscall.Syscall(procGetSidSubAuthorityCount.Addr(), 1, uintptr(unsafe.Pointer(sid)), 0, 0)
906 count = (*uint8)(unsafe.Pointer(r0))
907 return
908}
909
910func GetTokenInformation(token Token, infoClass uint32, info *byte, infoLen uint32, returnedLen *uint32) (err error) {
911 r1, _, e1 := syscall.Syscall6(procGetTokenInformation.Addr(), 5, uintptr(token), uintptr(infoClass), uintptr(unsafe.Pointer(info)), uintptr(infoLen), uintptr(unsafe.Pointer(returnedLen)), 0)
912 if r1 == 0 {
913 err = errnoErr(e1)
914 }
915 return
916}
917
918func ImpersonateSelf(impersonationlevel uint32) (err error) {
919 r1, _, e1 := syscall.Syscall(procImpersonateSelf.Addr(), 1, uintptr(impersonationlevel), 0, 0)
920 if r1 == 0 {
921 err = errnoErr(e1)
922 }
923 return
924}
925
926func initializeSecurityDescriptor(absoluteSD *SECURITY_DESCRIPTOR, revision uint32) (err error) {
927 r1, _, e1 := syscall.Syscall(procInitializeSecurityDescriptor.Addr(), 2, uintptr(unsafe.Pointer(absoluteSD)), uintptr(revision), 0)
928 if r1 == 0 {
929 err = errnoErr(e1)
930 }
931 return
932}
933
934func InitiateSystemShutdownEx(machineName *uint16, message *uint16, timeout uint32, forceAppsClosed bool, rebootAfterShutdown bool, reason uint32) (err error) {
935 var _p0 uint32
936 if forceAppsClosed {
937 _p0 = 1
938 }
939 var _p1 uint32
940 if rebootAfterShutdown {
941 _p1 = 1
942 }
943 r1, _, e1 := syscall.Syscall6(procInitiateSystemShutdownExW.Addr(), 6, uintptr(unsafe.Pointer(machineName)), uintptr(unsafe.Pointer(message)), uintptr(timeout), uintptr(_p0), uintptr(_p1), uintptr(reason))
944 if r1 == 0 {
945 err = errnoErr(e1)
946 }
947 return
948}
949
950func isTokenRestricted(tokenHandle Token) (ret bool, err error) {
951 r0, _, e1 := syscall.Syscall(procIsTokenRestricted.Addr(), 1, uintptr(tokenHandle), 0, 0)
952 ret = r0 != 0
953 if !ret {
954 err = errnoErr(e1)
955 }
956 return
957}
958
959func isValidSecurityDescriptor(sd *SECURITY_DESCRIPTOR) (isValid bool) {
960 r0, _, _ := syscall.Syscall(procIsValidSecurityDescriptor.Addr(), 1, uintptr(unsafe.Pointer(sd)), 0, 0)
961 isValid = r0 != 0
962 return
963}
964
965func isValidSid(sid *SID) (isValid bool) {
966 r0, _, _ := syscall.Syscall(procIsValidSid.Addr(), 1, uintptr(unsafe.Pointer(sid)), 0, 0)
967 isValid = r0 != 0
968 return
969}
970
971func isWellKnownSid(sid *SID, sidType WELL_KNOWN_SID_TYPE) (isWellKnown bool) {
972 r0, _, _ := syscall.Syscall(procIsWellKnownSid.Addr(), 2, uintptr(unsafe.Pointer(sid)), uintptr(sidType), 0)
973 isWellKnown = r0 != 0
974 return
975}
976
977func LookupAccountName(systemName *uint16, accountName *uint16, sid *SID, sidLen *uint32, refdDomainName *uint16, refdDomainNameLen *uint32, use *uint32) (err error) {
978 r1, _, e1 := syscall.Syscall9(procLookupAccountNameW.Addr(), 7, uintptr(unsafe.Pointer(systemName)), uintptr(unsafe.Pointer(accountName)), uintptr(unsafe.Pointer(sid)), uintptr(unsafe.Pointer(sidLen)), uintptr(unsafe.Pointer(refdDomainName)), uintptr(unsafe.Pointer(refdDomainNameLen)), uintptr(unsafe.Pointer(use)), 0, 0)
979 if r1 == 0 {
980 err = errnoErr(e1)
981 }
982 return
983}
984
985func LookupAccountSid(systemName *uint16, sid *SID, name *uint16, nameLen *uint32, refdDomainName *uint16, refdDomainNameLen *uint32, use *uint32) (err error) {
986 r1, _, e1 := syscall.Syscall9(procLookupAccountSidW.Addr(), 7, uintptr(unsafe.Pointer(systemName)), uintptr(unsafe.Pointer(sid)), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(nameLen)), uintptr(unsafe.Pointer(refdDomainName)), uintptr(unsafe.Pointer(refdDomainNameLen)), uintptr(unsafe.Pointer(use)), 0, 0)
987 if r1 == 0 {
988 err = errnoErr(e1)
989 }
990 return
991}
992
993func LookupPrivilegeValue(systemname *uint16, name *uint16, luid *LUID) (err error) {
994 r1, _, e1 := syscall.Syscall(procLookupPrivilegeValueW.Addr(), 3, uintptr(unsafe.Pointer(systemname)), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(luid)))
995 if r1 == 0 {
996 err = errnoErr(e1)
997 }
998 return
999}
1000
1001func makeAbsoluteSD(selfRelativeSD *SECURITY_DESCRIPTOR, absoluteSD *SECURITY_DESCRIPTOR, absoluteSDSize *uint32, dacl *ACL, daclSize *uint32, sacl *ACL, saclSize *uint32, owner *SID, ownerSize *uint32, group *SID, groupSize *uint32) (err error) {
1002 r1, _, e1 := syscall.Syscall12(procMakeAbsoluteSD.Addr(), 11, uintptr(unsafe.Pointer(selfRelativeSD)), uintptr(unsafe.Pointer(absoluteSD)), uintptr(unsafe.Pointer(absoluteSDSize)), uintptr(unsafe.Pointer(dacl)), uintptr(unsafe.Pointer(daclSize)), uintptr(unsafe.Pointer(sacl)), uintptr(unsafe.Pointer(saclSize)), uintptr(unsafe.Pointer(owner)), uintptr(unsafe.Pointer(ownerSize)), uintptr(unsafe.Pointer(group)), uintptr(unsafe.Pointer(groupSize)), 0)
1003 if r1 == 0 {
1004 err = errnoErr(e1)
1005 }
1006 return
1007}
1008
1009func makeSelfRelativeSD(absoluteSD *SECURITY_DESCRIPTOR, selfRelativeSD *SECURITY_DESCRIPTOR, selfRelativeSDSize *uint32) (err error) {
1010 r1, _, e1 := syscall.Syscall(procMakeSelfRelativeSD.Addr(), 3, uintptr(unsafe.Pointer(absoluteSD)), uintptr(unsafe.Pointer(selfRelativeSD)), uintptr(unsafe.Pointer(selfRelativeSDSize)))
1011 if r1 == 0 {
1012 err = errnoErr(e1)
1013 }
1014 return
1015}
1016
1017func NotifyServiceStatusChange(service Handle, notifyMask uint32, notifier *SERVICE_NOTIFY) (ret error) {
1018 r0, _, _ := syscall.Syscall(procNotifyServiceStatusChangeW.Addr(), 3, uintptr(service), uintptr(notifyMask), uintptr(unsafe.Pointer(notifier)))
1019 if r0 != 0 {
1020 ret = syscall.Errno(r0)
1021 }
1022 return
1023}
1024
1025func OpenProcessToken(process Handle, access uint32, token *Token) (err error) {
1026 r1, _, e1 := syscall.Syscall(procOpenProcessToken.Addr(), 3, uintptr(process), uintptr(access), uintptr(unsafe.Pointer(token)))
1027 if r1 == 0 {
1028 err = errnoErr(e1)
1029 }
1030 return
1031}
1032
1033func OpenSCManager(machineName *uint16, databaseName *uint16, access uint32) (handle Handle, err error) {
1034 r0, _, e1 := syscall.Syscall(procOpenSCManagerW.Addr(), 3, uintptr(unsafe.Pointer(machineName)), uintptr(unsafe.Pointer(databaseName)), uintptr(access))
1035 handle = Handle(r0)
1036 if handle == 0 {
1037 err = errnoErr(e1)
1038 }
1039 return
1040}
1041
1042func OpenService(mgr Handle, serviceName *uint16, access uint32) (handle Handle, err error) {
1043 r0, _, e1 := syscall.Syscall(procOpenServiceW.Addr(), 3, uintptr(mgr), uintptr(unsafe.Pointer(serviceName)), uintptr(access))
1044 handle = Handle(r0)
1045 if handle == 0 {
1046 err = errnoErr(e1)
1047 }
1048 return
1049}
1050
1051func OpenThreadToken(thread Handle, access uint32, openAsSelf bool, token *Token) (err error) {
1052 var _p0 uint32
1053 if openAsSelf {
1054 _p0 = 1
1055 }
1056 r1, _, e1 := syscall.Syscall6(procOpenThreadToken.Addr(), 4, uintptr(thread), uintptr(access), uintptr(_p0), uintptr(unsafe.Pointer(token)), 0, 0)
1057 if r1 == 0 {
1058 err = errnoErr(e1)
1059 }
1060 return
1061}
1062
1063func QueryServiceConfig2(service Handle, infoLevel uint32, buff *byte, buffSize uint32, bytesNeeded *uint32) (err error) {
1064 r1, _, e1 := syscall.Syscall6(procQueryServiceConfig2W.Addr(), 5, uintptr(service), uintptr(infoLevel), uintptr(unsafe.Pointer(buff)), uintptr(buffSize), uintptr(unsafe.Pointer(bytesNeeded)), 0)
1065 if r1 == 0 {
1066 err = errnoErr(e1)
1067 }
1068 return
1069}
1070
1071func QueryServiceConfig(service Handle, serviceConfig *QUERY_SERVICE_CONFIG, bufSize uint32, bytesNeeded *uint32) (err error) {
1072 r1, _, e1 := syscall.Syscall6(procQueryServiceConfigW.Addr(), 4, uintptr(service), uintptr(unsafe.Pointer(serviceConfig)), uintptr(bufSize), uintptr(unsafe.Pointer(bytesNeeded)), 0, 0)
1073 if r1 == 0 {
1074 err = errnoErr(e1)
1075 }
1076 return
1077}
1078
1079func QueryServiceDynamicInformation(service Handle, infoLevel uint32, dynamicInfo unsafe.Pointer) (err error) {
1080 err = procQueryServiceDynamicInformation.Find()
1081 if err != nil {
1082 return
1083 }
1084 r1, _, e1 := syscall.Syscall(procQueryServiceDynamicInformation.Addr(), 3, uintptr(service), uintptr(infoLevel), uintptr(dynamicInfo))
1085 if r1 == 0 {
1086 err = errnoErr(e1)
1087 }
1088 return
1089}
1090
1091func QueryServiceLockStatus(mgr Handle, lockStatus *QUERY_SERVICE_LOCK_STATUS, bufSize uint32, bytesNeeded *uint32) (err error) {
1092 r1, _, e1 := syscall.Syscall6(procQueryServiceLockStatusW.Addr(), 4, uintptr(mgr), uintptr(unsafe.Pointer(lockStatus)), uintptr(bufSize), uintptr(unsafe.Pointer(bytesNeeded)), 0, 0)
1093 if r1 == 0 {
1094 err = errnoErr(e1)
1095 }
1096 return
1097}
1098
1099func QueryServiceStatus(service Handle, status *SERVICE_STATUS) (err error) {
1100 r1, _, e1 := syscall.Syscall(procQueryServiceStatus.Addr(), 2, uintptr(service), uintptr(unsafe.Pointer(status)), 0)
1101 if r1 == 0 {
1102 err = errnoErr(e1)
1103 }
1104 return
1105}
1106
1107func QueryServiceStatusEx(service Handle, infoLevel uint32, buff *byte, buffSize uint32, bytesNeeded *uint32) (err error) {
1108 r1, _, e1 := syscall.Syscall6(procQueryServiceStatusEx.Addr(), 5, uintptr(service), uintptr(infoLevel), uintptr(unsafe.Pointer(buff)), uintptr(buffSize), uintptr(unsafe.Pointer(bytesNeeded)), 0)
1109 if r1 == 0 {
1110 err = errnoErr(e1)
1111 }
1112 return
1113}
1114
1115func RegCloseKey(key Handle) (regerrno error) {
1116 r0, _, _ := syscall.Syscall(procRegCloseKey.Addr(), 1, uintptr(key), 0, 0)
1117 if r0 != 0 {
1118 regerrno = syscall.Errno(r0)
1119 }
1120 return
1121}
1122
1123func RegEnumKeyEx(key Handle, index uint32, name *uint16, nameLen *uint32, reserved *uint32, class *uint16, classLen *uint32, lastWriteTime *Filetime) (regerrno error) {
1124 r0, _, _ := syscall.Syscall9(procRegEnumKeyExW.Addr(), 8, uintptr(key), uintptr(index), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(nameLen)), uintptr(unsafe.Pointer(reserved)), uintptr(unsafe.Pointer(class)), uintptr(unsafe.Pointer(classLen)), uintptr(unsafe.Pointer(lastWriteTime)), 0)
1125 if r0 != 0 {
1126 regerrno = syscall.Errno(r0)
1127 }
1128 return
1129}
1130
1131func RegNotifyChangeKeyValue(key Handle, watchSubtree bool, notifyFilter uint32, event Handle, asynchronous bool) (regerrno error) {
1132 var _p0 uint32
1133 if watchSubtree {
1134 _p0 = 1
1135 }
1136 var _p1 uint32
1137 if asynchronous {
1138 _p1 = 1
1139 }
1140 r0, _, _ := syscall.Syscall6(procRegNotifyChangeKeyValue.Addr(), 5, uintptr(key), uintptr(_p0), uintptr(notifyFilter), uintptr(event), uintptr(_p1), 0)
1141 if r0 != 0 {
1142 regerrno = syscall.Errno(r0)
1143 }
1144 return
1145}
1146
1147func RegOpenKeyEx(key Handle, subkey *uint16, options uint32, desiredAccess uint32, result *Handle) (regerrno error) {
1148 r0, _, _ := syscall.Syscall6(procRegOpenKeyExW.Addr(), 5, uintptr(key), uintptr(unsafe.Pointer(subkey)), uintptr(options), uintptr(desiredAccess), uintptr(unsafe.Pointer(result)), 0)
1149 if r0 != 0 {
1150 regerrno = syscall.Errno(r0)
1151 }
1152 return
1153}
1154
1155func RegQueryInfoKey(key Handle, class *uint16, classLen *uint32, reserved *uint32, subkeysLen *uint32, maxSubkeyLen *uint32, maxClassLen *uint32, valuesLen *uint32, maxValueNameLen *uint32, maxValueLen *uint32, saLen *uint32, lastWriteTime *Filetime) (regerrno error) {
1156 r0, _, _ := syscall.Syscall12(procRegQueryInfoKeyW.Addr(), 12, uintptr(key), uintptr(unsafe.Pointer(class)), uintptr(unsafe.Pointer(classLen)), uintptr(unsafe.Pointer(reserved)), uintptr(unsafe.Pointer(subkeysLen)), uintptr(unsafe.Pointer(maxSubkeyLen)), uintptr(unsafe.Pointer(maxClassLen)), uintptr(unsafe.Pointer(valuesLen)), uintptr(unsafe.Pointer(maxValueNameLen)), uintptr(unsafe.Pointer(maxValueLen)), uintptr(unsafe.Pointer(saLen)), uintptr(unsafe.Pointer(lastWriteTime)))
1157 if r0 != 0 {
1158 regerrno = syscall.Errno(r0)
1159 }
1160 return
1161}
1162
1163func RegQueryValueEx(key Handle, name *uint16, reserved *uint32, valtype *uint32, buf *byte, buflen *uint32) (regerrno error) {
1164 r0, _, _ := syscall.Syscall6(procRegQueryValueExW.Addr(), 6, uintptr(key), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(reserved)), uintptr(unsafe.Pointer(valtype)), uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(buflen)))
1165 if r0 != 0 {
1166 regerrno = syscall.Errno(r0)
1167 }
1168 return
1169}
1170
1171func RegisterEventSource(uncServerName *uint16, sourceName *uint16) (handle Handle, err error) {
1172 r0, _, e1 := syscall.Syscall(procRegisterEventSourceW.Addr(), 2, uintptr(unsafe.Pointer(uncServerName)), uintptr(unsafe.Pointer(sourceName)), 0)
1173 handle = Handle(r0)
1174 if handle == 0 {
1175 err = errnoErr(e1)
1176 }
1177 return
1178}
1179
1180func RegisterServiceCtrlHandlerEx(serviceName *uint16, handlerProc uintptr, context uintptr) (handle Handle, err error) {
1181 r0, _, e1 := syscall.Syscall(procRegisterServiceCtrlHandlerExW.Addr(), 3, uintptr(unsafe.Pointer(serviceName)), uintptr(handlerProc), uintptr(context))
1182 handle = Handle(r0)
1183 if handle == 0 {
1184 err = errnoErr(e1)
1185 }
1186 return
1187}
1188
1189func ReportEvent(log Handle, etype uint16, category uint16, eventId uint32, usrSId uintptr, numStrings uint16, dataSize uint32, strings **uint16, rawData *byte) (err error) {
1190 r1, _, e1 := syscall.Syscall9(procReportEventW.Addr(), 9, uintptr(log), uintptr(etype), uintptr(category), uintptr(eventId), uintptr(usrSId), uintptr(numStrings), uintptr(dataSize), uintptr(unsafe.Pointer(strings)), uintptr(unsafe.Pointer(rawData)))
1191 if r1 == 0 {
1192 err = errnoErr(e1)
1193 }
1194 return
1195}
1196
1197func RevertToSelf() (err error) {
1198 r1, _, e1 := syscall.Syscall(procRevertToSelf.Addr(), 0, 0, 0, 0)
1199 if r1 == 0 {
1200 err = errnoErr(e1)
1201 }
1202 return
1203}
1204
1205func setEntriesInAcl(countExplicitEntries uint32, explicitEntries *EXPLICIT_ACCESS, oldACL *ACL, newACL **ACL) (ret error) {
1206 r0, _, _ := syscall.Syscall6(procSetEntriesInAclW.Addr(), 4, uintptr(countExplicitEntries), uintptr(unsafe.Pointer(explicitEntries)), uintptr(unsafe.Pointer(oldACL)), uintptr(unsafe.Pointer(newACL)), 0, 0)
1207 if r0 != 0 {
1208 ret = syscall.Errno(r0)
1209 }
1210 return
1211}
1212
1213func SetKernelObjectSecurity(handle Handle, securityInformation SECURITY_INFORMATION, securityDescriptor *SECURITY_DESCRIPTOR) (err error) {
1214 r1, _, e1 := syscall.Syscall(procSetKernelObjectSecurity.Addr(), 3, uintptr(handle), uintptr(securityInformation), uintptr(unsafe.Pointer(securityDescriptor)))
1215 if r1 == 0 {
1216 err = errnoErr(e1)
1217 }
1218 return
1219}
1220
1221func SetNamedSecurityInfo(objectName string, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION, owner *SID, group *SID, dacl *ACL, sacl *ACL) (ret error) {
1222 var _p0 *uint16
1223 _p0, ret = syscall.UTF16PtrFromString(objectName)
1224 if ret != nil {
1225 return
1226 }
1227 return _SetNamedSecurityInfo(_p0, objectType, securityInformation, owner, group, dacl, sacl)
1228}
1229
1230func _SetNamedSecurityInfo(objectName *uint16, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION, owner *SID, group *SID, dacl *ACL, sacl *ACL) (ret error) {
1231 r0, _, _ := syscall.Syscall9(procSetNamedSecurityInfoW.Addr(), 7, uintptr(unsafe.Pointer(objectName)), uintptr(objectType), uintptr(securityInformation), uintptr(unsafe.Pointer(owner)), uintptr(unsafe.Pointer(group)), uintptr(unsafe.Pointer(dacl)), uintptr(unsafe.Pointer(sacl)), 0, 0)
1232 if r0 != 0 {
1233 ret = syscall.Errno(r0)
1234 }
1235 return
1236}
1237
1238func setSecurityDescriptorControl(sd *SECURITY_DESCRIPTOR, controlBitsOfInterest SECURITY_DESCRIPTOR_CONTROL, controlBitsToSet SECURITY_DESCRIPTOR_CONTROL) (err error) {
1239 r1, _, e1 := syscall.Syscall(procSetSecurityDescriptorControl.Addr(), 3, uintptr(unsafe.Pointer(sd)), uintptr(controlBitsOfInterest), uintptr(controlBitsToSet))
1240 if r1 == 0 {
1241 err = errnoErr(e1)
1242 }
1243 return
1244}
1245
1246func setSecurityDescriptorDacl(sd *SECURITY_DESCRIPTOR, daclPresent bool, dacl *ACL, daclDefaulted bool) (err error) {
1247 var _p0 uint32
1248 if daclPresent {
1249 _p0 = 1
1250 }
1251 var _p1 uint32
1252 if daclDefaulted {
1253 _p1 = 1
1254 }
1255 r1, _, e1 := syscall.Syscall6(procSetSecurityDescriptorDacl.Addr(), 4, uintptr(unsafe.Pointer(sd)), uintptr(_p0), uintptr(unsafe.Pointer(dacl)), uintptr(_p1), 0, 0)
1256 if r1 == 0 {
1257 err = errnoErr(e1)
1258 }
1259 return
1260}
1261
1262func setSecurityDescriptorGroup(sd *SECURITY_DESCRIPTOR, group *SID, groupDefaulted bool) (err error) {
1263 var _p0 uint32
1264 if groupDefaulted {
1265 _p0 = 1
1266 }
1267 r1, _, e1 := syscall.Syscall(procSetSecurityDescriptorGroup.Addr(), 3, uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(group)), uintptr(_p0))
1268 if r1 == 0 {
1269 err = errnoErr(e1)
1270 }
1271 return
1272}
1273
1274func setSecurityDescriptorOwner(sd *SECURITY_DESCRIPTOR, owner *SID, ownerDefaulted bool) (err error) {
1275 var _p0 uint32
1276 if ownerDefaulted {
1277 _p0 = 1
1278 }
1279 r1, _, e1 := syscall.Syscall(procSetSecurityDescriptorOwner.Addr(), 3, uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(owner)), uintptr(_p0))
1280 if r1 == 0 {
1281 err = errnoErr(e1)
1282 }
1283 return
1284}
1285
1286func setSecurityDescriptorRMControl(sd *SECURITY_DESCRIPTOR, rmControl *uint8) {
1287 syscall.Syscall(procSetSecurityDescriptorRMControl.Addr(), 2, uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(rmControl)), 0)
1288 return
1289}
1290
1291func setSecurityDescriptorSacl(sd *SECURITY_DESCRIPTOR, saclPresent bool, sacl *ACL, saclDefaulted bool) (err error) {
1292 var _p0 uint32
1293 if saclPresent {
1294 _p0 = 1
1295 }
1296 var _p1 uint32
1297 if saclDefaulted {
1298 _p1 = 1
1299 }
1300 r1, _, e1 := syscall.Syscall6(procSetSecurityDescriptorSacl.Addr(), 4, uintptr(unsafe.Pointer(sd)), uintptr(_p0), uintptr(unsafe.Pointer(sacl)), uintptr(_p1), 0, 0)
1301 if r1 == 0 {
1302 err = errnoErr(e1)
1303 }
1304 return
1305}
1306
1307func SetSecurityInfo(handle Handle, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION, owner *SID, group *SID, dacl *ACL, sacl *ACL) (ret error) {
1308 r0, _, _ := syscall.Syscall9(procSetSecurityInfo.Addr(), 7, uintptr(handle), uintptr(objectType), uintptr(securityInformation), uintptr(unsafe.Pointer(owner)), uintptr(unsafe.Pointer(group)), uintptr(unsafe.Pointer(dacl)), uintptr(unsafe.Pointer(sacl)), 0, 0)
1309 if r0 != 0 {
1310 ret = syscall.Errno(r0)
1311 }
1312 return
1313}
1314
1315func SetServiceStatus(service Handle, serviceStatus *SERVICE_STATUS) (err error) {
1316 r1, _, e1 := syscall.Syscall(procSetServiceStatus.Addr(), 2, uintptr(service), uintptr(unsafe.Pointer(serviceStatus)), 0)
1317 if r1 == 0 {
1318 err = errnoErr(e1)
1319 }
1320 return
1321}
1322
1323func SetThreadToken(thread *Handle, token Token) (err error) {
1324 r1, _, e1 := syscall.Syscall(procSetThreadToken.Addr(), 2, uintptr(unsafe.Pointer(thread)), uintptr(token), 0)
1325 if r1 == 0 {
1326 err = errnoErr(e1)
1327 }
1328 return
1329}
1330
1331func SetTokenInformation(token Token, infoClass uint32, info *byte, infoLen uint32) (err error) {
1332 r1, _, e1 := syscall.Syscall6(procSetTokenInformation.Addr(), 4, uintptr(token), uintptr(infoClass), uintptr(unsafe.Pointer(info)), uintptr(infoLen), 0, 0)
1333 if r1 == 0 {
1334 err = errnoErr(e1)
1335 }
1336 return
1337}
1338
1339func StartServiceCtrlDispatcher(serviceTable *SERVICE_TABLE_ENTRY) (err error) {
1340 r1, _, e1 := syscall.Syscall(procStartServiceCtrlDispatcherW.Addr(), 1, uintptr(unsafe.Pointer(serviceTable)), 0, 0)
1341 if r1 == 0 {
1342 err = errnoErr(e1)
1343 }
1344 return
1345}
1346
1347func StartService(service Handle, numArgs uint32, argVectors **uint16) (err error) {
1348 r1, _, e1 := syscall.Syscall(procStartServiceW.Addr(), 3, uintptr(service), uintptr(numArgs), uintptr(unsafe.Pointer(argVectors)))
1349 if r1 == 0 {
1350 err = errnoErr(e1)
1351 }
1352 return
1353}
1354
1355func CertAddCertificateContextToStore(store Handle, certContext *CertContext, addDisposition uint32, storeContext **CertContext) (err error) {
1356 r1, _, e1 := syscall.Syscall6(procCertAddCertificateContextToStore.Addr(), 4, uintptr(store), uintptr(unsafe.Pointer(certContext)), uintptr(addDisposition), uintptr(unsafe.Pointer(storeContext)), 0, 0)
1357 if r1 == 0 {
1358 err = errnoErr(e1)
1359 }
1360 return
1361}
1362
1363func CertCloseStore(store Handle, flags uint32) (err error) {
1364 r1, _, e1 := syscall.Syscall(procCertCloseStore.Addr(), 2, uintptr(store), uintptr(flags), 0)
1365 if r1 == 0 {
1366 err = errnoErr(e1)
1367 }
1368 return
1369}
1370
1371func CertCreateCertificateContext(certEncodingType uint32, certEncoded *byte, encodedLen uint32) (context *CertContext, err error) {
1372 r0, _, e1 := syscall.Syscall(procCertCreateCertificateContext.Addr(), 3, uintptr(certEncodingType), uintptr(unsafe.Pointer(certEncoded)), uintptr(encodedLen))
1373 context = (*CertContext)(unsafe.Pointer(r0))
1374 if context == nil {
1375 err = errnoErr(e1)
1376 }
1377 return
1378}
1379
1380func CertDeleteCertificateFromStore(certContext *CertContext) (err error) {
1381 r1, _, e1 := syscall.Syscall(procCertDeleteCertificateFromStore.Addr(), 1, uintptr(unsafe.Pointer(certContext)), 0, 0)
1382 if r1 == 0 {
1383 err = errnoErr(e1)
1384 }
1385 return
1386}
1387
1388func CertDuplicateCertificateContext(certContext *CertContext) (dupContext *CertContext) {
1389 r0, _, _ := syscall.Syscall(procCertDuplicateCertificateContext.Addr(), 1, uintptr(unsafe.Pointer(certContext)), 0, 0)
1390 dupContext = (*CertContext)(unsafe.Pointer(r0))
1391 return
1392}
1393
1394func CertEnumCertificatesInStore(store Handle, prevContext *CertContext) (context *CertContext, err error) {
1395 r0, _, e1 := syscall.Syscall(procCertEnumCertificatesInStore.Addr(), 2, uintptr(store), uintptr(unsafe.Pointer(prevContext)), 0)
1396 context = (*CertContext)(unsafe.Pointer(r0))
1397 if context == nil {
1398 err = errnoErr(e1)
1399 }
1400 return
1401}
1402
1403func CertFindCertificateInStore(store Handle, certEncodingType uint32, findFlags uint32, findType uint32, findPara unsafe.Pointer, prevCertContext *CertContext) (cert *CertContext, err error) {
1404 r0, _, e1 := syscall.Syscall6(procCertFindCertificateInStore.Addr(), 6, uintptr(store), uintptr(certEncodingType), uintptr(findFlags), uintptr(findType), uintptr(findPara), uintptr(unsafe.Pointer(prevCertContext)))
1405 cert = (*CertContext)(unsafe.Pointer(r0))
1406 if cert == nil {
1407 err = errnoErr(e1)
1408 }
1409 return
1410}
1411
1412func CertFindChainInStore(store Handle, certEncodingType uint32, findFlags uint32, findType uint32, findPara unsafe.Pointer, prevChainContext *CertChainContext) (certchain *CertChainContext, err error) {
1413 r0, _, e1 := syscall.Syscall6(procCertFindChainInStore.Addr(), 6, uintptr(store), uintptr(certEncodingType), uintptr(findFlags), uintptr(findType), uintptr(findPara), uintptr(unsafe.Pointer(prevChainContext)))
1414 certchain = (*CertChainContext)(unsafe.Pointer(r0))
1415 if certchain == nil {
1416 err = errnoErr(e1)
1417 }
1418 return
1419}
1420
1421func CertFindExtension(objId *byte, countExtensions uint32, extensions *CertExtension) (ret *CertExtension) {
1422 r0, _, _ := syscall.Syscall(procCertFindExtension.Addr(), 3, uintptr(unsafe.Pointer(objId)), uintptr(countExtensions), uintptr(unsafe.Pointer(extensions)))
1423 ret = (*CertExtension)(unsafe.Pointer(r0))
1424 return
1425}
1426
1427func CertFreeCertificateChain(ctx *CertChainContext) {
1428 syscall.Syscall(procCertFreeCertificateChain.Addr(), 1, uintptr(unsafe.Pointer(ctx)), 0, 0)
1429 return
1430}
1431
1432func CertFreeCertificateContext(ctx *CertContext) (err error) {
1433 r1, _, e1 := syscall.Syscall(procCertFreeCertificateContext.Addr(), 1, uintptr(unsafe.Pointer(ctx)), 0, 0)
1434 if r1 == 0 {
1435 err = errnoErr(e1)
1436 }
1437 return
1438}
1439
1440func CertGetCertificateChain(engine Handle, leaf *CertContext, time *Filetime, additionalStore Handle, para *CertChainPara, flags uint32, reserved uintptr, chainCtx **CertChainContext) (err error) {
1441 r1, _, e1 := syscall.Syscall9(procCertGetCertificateChain.Addr(), 8, uintptr(engine), uintptr(unsafe.Pointer(leaf)), uintptr(unsafe.Pointer(time)), uintptr(additionalStore), uintptr(unsafe.Pointer(para)), uintptr(flags), uintptr(reserved), uintptr(unsafe.Pointer(chainCtx)), 0)
1442 if r1 == 0 {
1443 err = errnoErr(e1)
1444 }
1445 return
1446}
1447
1448func CertGetNameString(certContext *CertContext, nameType uint32, flags uint32, typePara unsafe.Pointer, name *uint16, size uint32) (chars uint32) {
1449 r0, _, _ := syscall.Syscall6(procCertGetNameStringW.Addr(), 6, uintptr(unsafe.Pointer(certContext)), uintptr(nameType), uintptr(flags), uintptr(typePara), uintptr(unsafe.Pointer(name)), uintptr(size))
1450 chars = uint32(r0)
1451 return
1452}
1453
1454func CertOpenStore(storeProvider uintptr, msgAndCertEncodingType uint32, cryptProv uintptr, flags uint32, para uintptr) (handle Handle, err error) {
1455 r0, _, e1 := syscall.Syscall6(procCertOpenStore.Addr(), 5, uintptr(storeProvider), uintptr(msgAndCertEncodingType), uintptr(cryptProv), uintptr(flags), uintptr(para), 0)
1456 handle = Handle(r0)
1457 if handle == 0 {
1458 err = errnoErr(e1)
1459 }
1460 return
1461}
1462
1463func CertOpenSystemStore(hprov Handle, name *uint16) (store Handle, err error) {
1464 r0, _, e1 := syscall.Syscall(procCertOpenSystemStoreW.Addr(), 2, uintptr(hprov), uintptr(unsafe.Pointer(name)), 0)
1465 store = Handle(r0)
1466 if store == 0 {
1467 err = errnoErr(e1)
1468 }
1469 return
1470}
1471
1472func CertVerifyCertificateChainPolicy(policyOID uintptr, chain *CertChainContext, para *CertChainPolicyPara, status *CertChainPolicyStatus) (err error) {
1473 r1, _, e1 := syscall.Syscall6(procCertVerifyCertificateChainPolicy.Addr(), 4, uintptr(policyOID), uintptr(unsafe.Pointer(chain)), uintptr(unsafe.Pointer(para)), uintptr(unsafe.Pointer(status)), 0, 0)
1474 if r1 == 0 {
1475 err = errnoErr(e1)
1476 }
1477 return
1478}
1479
1480func CryptAcquireCertificatePrivateKey(cert *CertContext, flags uint32, parameters unsafe.Pointer, cryptProvOrNCryptKey *Handle, keySpec *uint32, callerFreeProvOrNCryptKey *bool) (err error) {
1481 var _p0 uint32
1482 if *callerFreeProvOrNCryptKey {
1483 _p0 = 1
1484 }
1485 r1, _, e1 := syscall.Syscall6(procCryptAcquireCertificatePrivateKey.Addr(), 6, uintptr(unsafe.Pointer(cert)), uintptr(flags), uintptr(parameters), uintptr(unsafe.Pointer(cryptProvOrNCryptKey)), uintptr(unsafe.Pointer(keySpec)), uintptr(unsafe.Pointer(&_p0)))
1486 *callerFreeProvOrNCryptKey = _p0 != 0
1487 if r1 == 0 {
1488 err = errnoErr(e1)
1489 }
1490 return
1491}
1492
1493func CryptDecodeObject(encodingType uint32, structType *byte, encodedBytes *byte, lenEncodedBytes uint32, flags uint32, decoded unsafe.Pointer, decodedLen *uint32) (err error) {
1494 r1, _, e1 := syscall.Syscall9(procCryptDecodeObject.Addr(), 7, uintptr(encodingType), uintptr(unsafe.Pointer(structType)), uintptr(unsafe.Pointer(encodedBytes)), uintptr(lenEncodedBytes), uintptr(flags), uintptr(decoded), uintptr(unsafe.Pointer(decodedLen)), 0, 0)
1495 if r1 == 0 {
1496 err = errnoErr(e1)
1497 }
1498 return
1499}
1500
1501func CryptProtectData(dataIn *DataBlob, name *uint16, optionalEntropy *DataBlob, reserved uintptr, promptStruct *CryptProtectPromptStruct, flags uint32, dataOut *DataBlob) (err error) {
1502 r1, _, e1 := syscall.Syscall9(procCryptProtectData.Addr(), 7, uintptr(unsafe.Pointer(dataIn)), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(optionalEntropy)), uintptr(reserved), uintptr(unsafe.Pointer(promptStruct)), uintptr(flags), uintptr(unsafe.Pointer(dataOut)), 0, 0)
1503 if r1 == 0 {
1504 err = errnoErr(e1)
1505 }
1506 return
1507}
1508
1509func CryptQueryObject(objectType uint32, object unsafe.Pointer, expectedContentTypeFlags uint32, expectedFormatTypeFlags uint32, flags uint32, msgAndCertEncodingType *uint32, contentType *uint32, formatType *uint32, certStore *Handle, msg *Handle, context *unsafe.Pointer) (err error) {
1510 r1, _, e1 := syscall.Syscall12(procCryptQueryObject.Addr(), 11, uintptr(objectType), uintptr(object), uintptr(expectedContentTypeFlags), uintptr(expectedFormatTypeFlags), uintptr(flags), uintptr(unsafe.Pointer(msgAndCertEncodingType)), uintptr(unsafe.Pointer(contentType)), uintptr(unsafe.Pointer(formatType)), uintptr(unsafe.Pointer(certStore)), uintptr(unsafe.Pointer(msg)), uintptr(unsafe.Pointer(context)), 0)
1511 if r1 == 0 {
1512 err = errnoErr(e1)
1513 }
1514 return
1515}
1516
1517func CryptUnprotectData(dataIn *DataBlob, name **uint16, optionalEntropy *DataBlob, reserved uintptr, promptStruct *CryptProtectPromptStruct, flags uint32, dataOut *DataBlob) (err error) {
1518 r1, _, e1 := syscall.Syscall9(procCryptUnprotectData.Addr(), 7, uintptr(unsafe.Pointer(dataIn)), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(optionalEntropy)), uintptr(reserved), uintptr(unsafe.Pointer(promptStruct)), uintptr(flags), uintptr(unsafe.Pointer(dataOut)), 0, 0)
1519 if r1 == 0 {
1520 err = errnoErr(e1)
1521 }
1522 return
1523}
1524
1525func PFXImportCertStore(pfx *CryptDataBlob, password *uint16, flags uint32) (store Handle, err error) {
1526 r0, _, e1 := syscall.Syscall(procPFXImportCertStore.Addr(), 3, uintptr(unsafe.Pointer(pfx)), uintptr(unsafe.Pointer(password)), uintptr(flags))
1527 store = Handle(r0)
1528 if store == 0 {
1529 err = errnoErr(e1)
1530 }
1531 return
1532}
1533
1534func DnsNameCompare(name1 *uint16, name2 *uint16) (same bool) {
1535 r0, _, _ := syscall.Syscall(procDnsNameCompare_W.Addr(), 2, uintptr(unsafe.Pointer(name1)), uintptr(unsafe.Pointer(name2)), 0)
1536 same = r0 != 0
1537 return
1538}
1539
1540func DnsQuery(name string, qtype uint16, options uint32, extra *byte, qrs **DNSRecord, pr *byte) (status error) {
1541 var _p0 *uint16
1542 _p0, status = syscall.UTF16PtrFromString(name)
1543 if status != nil {
1544 return
1545 }
1546 return _DnsQuery(_p0, qtype, options, extra, qrs, pr)
1547}
1548
1549func _DnsQuery(name *uint16, qtype uint16, options uint32, extra *byte, qrs **DNSRecord, pr *byte) (status error) {
1550 r0, _, _ := syscall.Syscall6(procDnsQuery_W.Addr(), 6, uintptr(unsafe.Pointer(name)), uintptr(qtype), uintptr(options), uintptr(unsafe.Pointer(extra)), uintptr(unsafe.Pointer(qrs)), uintptr(unsafe.Pointer(pr)))
1551 if r0 != 0 {
1552 status = syscall.Errno(r0)
1553 }
1554 return
1555}
1556
1557func DnsRecordListFree(rl *DNSRecord, freetype uint32) {
1558 syscall.Syscall(procDnsRecordListFree.Addr(), 2, uintptr(unsafe.Pointer(rl)), uintptr(freetype), 0)
1559 return
1560}
1561
1562func DwmGetWindowAttribute(hwnd HWND, attribute uint32, value unsafe.Pointer, size uint32) (ret error) {
1563 r0, _, _ := syscall.Syscall6(procDwmGetWindowAttribute.Addr(), 4, uintptr(hwnd), uintptr(attribute), uintptr(value), uintptr(size), 0, 0)
1564 if r0 != 0 {
1565 ret = syscall.Errno(r0)
1566 }
1567 return
1568}
1569
1570func DwmSetWindowAttribute(hwnd HWND, attribute uint32, value unsafe.Pointer, size uint32) (ret error) {
1571 r0, _, _ := syscall.Syscall6(procDwmSetWindowAttribute.Addr(), 4, uintptr(hwnd), uintptr(attribute), uintptr(value), uintptr(size), 0, 0)
1572 if r0 != 0 {
1573 ret = syscall.Errno(r0)
1574 }
1575 return
1576}
1577
1578func GetAdaptersAddresses(family uint32, flags uint32, reserved uintptr, adapterAddresses *IpAdapterAddresses, sizePointer *uint32) (errcode error) {
1579 r0, _, _ := syscall.Syscall6(procGetAdaptersAddresses.Addr(), 5, uintptr(family), uintptr(flags), uintptr(reserved), uintptr(unsafe.Pointer(adapterAddresses)), uintptr(unsafe.Pointer(sizePointer)), 0)
1580 if r0 != 0 {
1581 errcode = syscall.Errno(r0)
1582 }
1583 return
1584}
1585
1586func GetAdaptersInfo(ai *IpAdapterInfo, ol *uint32) (errcode error) {
1587 r0, _, _ := syscall.Syscall(procGetAdaptersInfo.Addr(), 2, uintptr(unsafe.Pointer(ai)), uintptr(unsafe.Pointer(ol)), 0)
1588 if r0 != 0 {
1589 errcode = syscall.Errno(r0)
1590 }
1591 return
1592}
1593
1594func getBestInterfaceEx(sockaddr unsafe.Pointer, pdwBestIfIndex *uint32) (errcode error) {
1595 r0, _, _ := syscall.Syscall(procGetBestInterfaceEx.Addr(), 2, uintptr(sockaddr), uintptr(unsafe.Pointer(pdwBestIfIndex)), 0)
1596 if r0 != 0 {
1597 errcode = syscall.Errno(r0)
1598 }
1599 return
1600}
1601
1602func GetIfEntry(pIfRow *MibIfRow) (errcode error) {
1603 r0, _, _ := syscall.Syscall(procGetIfEntry.Addr(), 1, uintptr(unsafe.Pointer(pIfRow)), 0, 0)
1604 if r0 != 0 {
1605 errcode = syscall.Errno(r0)
1606 }
1607 return
1608}
1609
1610func AddDllDirectory(path *uint16) (cookie uintptr, err error) {
1611 r0, _, e1 := syscall.Syscall(procAddDllDirectory.Addr(), 1, uintptr(unsafe.Pointer(path)), 0, 0)
1612 cookie = uintptr(r0)
1613 if cookie == 0 {
1614 err = errnoErr(e1)
1615 }
1616 return
1617}
1618
1619func AssignProcessToJobObject(job Handle, process Handle) (err error) {
1620 r1, _, e1 := syscall.Syscall(procAssignProcessToJobObject.Addr(), 2, uintptr(job), uintptr(process), 0)
1621 if r1 == 0 {
1622 err = errnoErr(e1)
1623 }
1624 return
1625}
1626
1627func CancelIo(s Handle) (err error) {
1628 r1, _, e1 := syscall.Syscall(procCancelIo.Addr(), 1, uintptr(s), 0, 0)
1629 if r1 == 0 {
1630 err = errnoErr(e1)
1631 }
1632 return
1633}
1634
1635func CancelIoEx(s Handle, o *Overlapped) (err error) {
1636 r1, _, e1 := syscall.Syscall(procCancelIoEx.Addr(), 2, uintptr(s), uintptr(unsafe.Pointer(o)), 0)
1637 if r1 == 0 {
1638 err = errnoErr(e1)
1639 }
1640 return
1641}
1642
1643func CloseHandle(handle Handle) (err error) {
1644 r1, _, e1 := syscall.Syscall(procCloseHandle.Addr(), 1, uintptr(handle), 0, 0)
1645 if r1 == 0 {
1646 err = errnoErr(e1)
1647 }
1648 return
1649}
1650
1651func ClosePseudoConsole(console Handle) {
1652 syscall.Syscall(procClosePseudoConsole.Addr(), 1, uintptr(console), 0, 0)
1653 return
1654}
1655
1656func ConnectNamedPipe(pipe Handle, overlapped *Overlapped) (err error) {
1657 r1, _, e1 := syscall.Syscall(procConnectNamedPipe.Addr(), 2, uintptr(pipe), uintptr(unsafe.Pointer(overlapped)), 0)
1658 if r1 == 0 {
1659 err = errnoErr(e1)
1660 }
1661 return
1662}
1663
1664func CreateDirectory(path *uint16, sa *SecurityAttributes) (err error) {
1665 r1, _, e1 := syscall.Syscall(procCreateDirectoryW.Addr(), 2, uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(sa)), 0)
1666 if r1 == 0 {
1667 err = errnoErr(e1)
1668 }
1669 return
1670}
1671
1672func CreateEventEx(eventAttrs *SecurityAttributes, name *uint16, flags uint32, desiredAccess uint32) (handle Handle, err error) {
1673 r0, _, e1 := syscall.Syscall6(procCreateEventExW.Addr(), 4, uintptr(unsafe.Pointer(eventAttrs)), uintptr(unsafe.Pointer(name)), uintptr(flags), uintptr(desiredAccess), 0, 0)
1674 handle = Handle(r0)
1675 if handle == 0 || e1 == ERROR_ALREADY_EXISTS {
1676 err = errnoErr(e1)
1677 }
1678 return
1679}
1680
1681func CreateEvent(eventAttrs *SecurityAttributes, manualReset uint32, initialState uint32, name *uint16) (handle Handle, err error) {
1682 r0, _, e1 := syscall.Syscall6(procCreateEventW.Addr(), 4, uintptr(unsafe.Pointer(eventAttrs)), uintptr(manualReset), uintptr(initialState), uintptr(unsafe.Pointer(name)), 0, 0)
1683 handle = Handle(r0)
1684 if handle == 0 || e1 == ERROR_ALREADY_EXISTS {
1685 err = errnoErr(e1)
1686 }
1687 return
1688}
1689
1690func CreateFileMapping(fhandle Handle, sa *SecurityAttributes, prot uint32, maxSizeHigh uint32, maxSizeLow uint32, name *uint16) (handle Handle, err error) {
1691 r0, _, e1 := syscall.Syscall6(procCreateFileMappingW.Addr(), 6, uintptr(fhandle), uintptr(unsafe.Pointer(sa)), uintptr(prot), uintptr(maxSizeHigh), uintptr(maxSizeLow), uintptr(unsafe.Pointer(name)))
1692 handle = Handle(r0)
1693 if handle == 0 || e1 == ERROR_ALREADY_EXISTS {
1694 err = errnoErr(e1)
1695 }
1696 return
1697}
1698
1699func CreateFile(name *uint16, access uint32, mode uint32, sa *SecurityAttributes, createmode uint32, attrs uint32, templatefile Handle) (handle Handle, err error) {
1700 r0, _, e1 := syscall.Syscall9(procCreateFileW.Addr(), 7, uintptr(unsafe.Pointer(name)), uintptr(access), uintptr(mode), uintptr(unsafe.Pointer(sa)), uintptr(createmode), uintptr(attrs), uintptr(templatefile), 0, 0)
1701 handle = Handle(r0)
1702 if handle == InvalidHandle {
1703 err = errnoErr(e1)
1704 }
1705 return
1706}
1707
1708func CreateHardLink(filename *uint16, existingfilename *uint16, reserved uintptr) (err error) {
1709 r1, _, e1 := syscall.Syscall(procCreateHardLinkW.Addr(), 3, uintptr(unsafe.Pointer(filename)), uintptr(unsafe.Pointer(existingfilename)), uintptr(reserved))
1710 if r1&0xff == 0 {
1711 err = errnoErr(e1)
1712 }
1713 return
1714}
1715
1716func CreateIoCompletionPort(filehandle Handle, cphandle Handle, key uintptr, threadcnt uint32) (handle Handle, err error) {
1717 r0, _, e1 := syscall.Syscall6(procCreateIoCompletionPort.Addr(), 4, uintptr(filehandle), uintptr(cphandle), uintptr(key), uintptr(threadcnt), 0, 0)
1718 handle = Handle(r0)
1719 if handle == 0 {
1720 err = errnoErr(e1)
1721 }
1722 return
1723}
1724
1725func CreateJobObject(jobAttr *SecurityAttributes, name *uint16) (handle Handle, err error) {
1726 r0, _, e1 := syscall.Syscall(procCreateJobObjectW.Addr(), 2, uintptr(unsafe.Pointer(jobAttr)), uintptr(unsafe.Pointer(name)), 0)
1727 handle = Handle(r0)
1728 if handle == 0 {
1729 err = errnoErr(e1)
1730 }
1731 return
1732}
1733
1734func CreateMutexEx(mutexAttrs *SecurityAttributes, name *uint16, flags uint32, desiredAccess uint32) (handle Handle, err error) {
1735 r0, _, e1 := syscall.Syscall6(procCreateMutexExW.Addr(), 4, uintptr(unsafe.Pointer(mutexAttrs)), uintptr(unsafe.Pointer(name)), uintptr(flags), uintptr(desiredAccess), 0, 0)
1736 handle = Handle(r0)
1737 if handle == 0 || e1 == ERROR_ALREADY_EXISTS {
1738 err = errnoErr(e1)
1739 }
1740 return
1741}
1742
1743func CreateMutex(mutexAttrs *SecurityAttributes, initialOwner bool, name *uint16) (handle Handle, err error) {
1744 var _p0 uint32
1745 if initialOwner {
1746 _p0 = 1
1747 }
1748 r0, _, e1 := syscall.Syscall(procCreateMutexW.Addr(), 3, uintptr(unsafe.Pointer(mutexAttrs)), uintptr(_p0), uintptr(unsafe.Pointer(name)))
1749 handle = Handle(r0)
1750 if handle == 0 || e1 == ERROR_ALREADY_EXISTS {
1751 err = errnoErr(e1)
1752 }
1753 return
1754}
1755
1756func CreateNamedPipe(name *uint16, flags uint32, pipeMode uint32, maxInstances uint32, outSize uint32, inSize uint32, defaultTimeout uint32, sa *SecurityAttributes) (handle Handle, err error) {
1757 r0, _, e1 := syscall.Syscall9(procCreateNamedPipeW.Addr(), 8, uintptr(unsafe.Pointer(name)), uintptr(flags), uintptr(pipeMode), uintptr(maxInstances), uintptr(outSize), uintptr(inSize), uintptr(defaultTimeout), uintptr(unsafe.Pointer(sa)), 0)
1758 handle = Handle(r0)
1759 if handle == InvalidHandle {
1760 err = errnoErr(e1)
1761 }
1762 return
1763}
1764
1765func CreatePipe(readhandle *Handle, writehandle *Handle, sa *SecurityAttributes, size uint32) (err error) {
1766 r1, _, e1 := syscall.Syscall6(procCreatePipe.Addr(), 4, uintptr(unsafe.Pointer(readhandle)), uintptr(unsafe.Pointer(writehandle)), uintptr(unsafe.Pointer(sa)), uintptr(size), 0, 0)
1767 if r1 == 0 {
1768 err = errnoErr(e1)
1769 }
1770 return
1771}
1772
1773func CreateProcess(appName *uint16, commandLine *uint16, procSecurity *SecurityAttributes, threadSecurity *SecurityAttributes, inheritHandles bool, creationFlags uint32, env *uint16, currentDir *uint16, startupInfo *StartupInfo, outProcInfo *ProcessInformation) (err error) {
1774 var _p0 uint32
1775 if inheritHandles {
1776 _p0 = 1
1777 }
1778 r1, _, e1 := syscall.Syscall12(procCreateProcessW.Addr(), 10, uintptr(unsafe.Pointer(appName)), uintptr(unsafe.Pointer(commandLine)), uintptr(unsafe.Pointer(procSecurity)), uintptr(unsafe.Pointer(threadSecurity)), uintptr(_p0), uintptr(creationFlags), uintptr(unsafe.Pointer(env)), uintptr(unsafe.Pointer(currentDir)), uintptr(unsafe.Pointer(startupInfo)), uintptr(unsafe.Pointer(outProcInfo)), 0, 0)
1779 if r1 == 0 {
1780 err = errnoErr(e1)
1781 }
1782 return
1783}
1784
1785func createPseudoConsole(size uint32, in Handle, out Handle, flags uint32, pconsole *Handle) (hr error) {
1786 r0, _, _ := syscall.Syscall6(procCreatePseudoConsole.Addr(), 5, uintptr(size), uintptr(in), uintptr(out), uintptr(flags), uintptr(unsafe.Pointer(pconsole)), 0)
1787 if r0 != 0 {
1788 hr = syscall.Errno(r0)
1789 }
1790 return
1791}
1792
1793func CreateSymbolicLink(symlinkfilename *uint16, targetfilename *uint16, flags uint32) (err error) {
1794 r1, _, e1 := syscall.Syscall(procCreateSymbolicLinkW.Addr(), 3, uintptr(unsafe.Pointer(symlinkfilename)), uintptr(unsafe.Pointer(targetfilename)), uintptr(flags))
1795 if r1&0xff == 0 {
1796 err = errnoErr(e1)
1797 }
1798 return
1799}
1800
1801func CreateToolhelp32Snapshot(flags uint32, processId uint32) (handle Handle, err error) {
1802 r0, _, e1 := syscall.Syscall(procCreateToolhelp32Snapshot.Addr(), 2, uintptr(flags), uintptr(processId), 0)
1803 handle = Handle(r0)
1804 if handle == InvalidHandle {
1805 err = errnoErr(e1)
1806 }
1807 return
1808}
1809
1810func DefineDosDevice(flags uint32, deviceName *uint16, targetPath *uint16) (err error) {
1811 r1, _, e1 := syscall.Syscall(procDefineDosDeviceW.Addr(), 3, uintptr(flags), uintptr(unsafe.Pointer(deviceName)), uintptr(unsafe.Pointer(targetPath)))
1812 if r1 == 0 {
1813 err = errnoErr(e1)
1814 }
1815 return
1816}
1817
1818func DeleteFile(path *uint16) (err error) {
1819 r1, _, e1 := syscall.Syscall(procDeleteFileW.Addr(), 1, uintptr(unsafe.Pointer(path)), 0, 0)
1820 if r1 == 0 {
1821 err = errnoErr(e1)
1822 }
1823 return
1824}
1825
1826func deleteProcThreadAttributeList(attrlist *ProcThreadAttributeList) {
1827 syscall.Syscall(procDeleteProcThreadAttributeList.Addr(), 1, uintptr(unsafe.Pointer(attrlist)), 0, 0)
1828 return
1829}
1830
1831func DeleteVolumeMountPoint(volumeMountPoint *uint16) (err error) {
1832 r1, _, e1 := syscall.Syscall(procDeleteVolumeMountPointW.Addr(), 1, uintptr(unsafe.Pointer(volumeMountPoint)), 0, 0)
1833 if r1 == 0 {
1834 err = errnoErr(e1)
1835 }
1836 return
1837}
1838
1839func DeviceIoControl(handle Handle, ioControlCode uint32, inBuffer *byte, inBufferSize uint32, outBuffer *byte, outBufferSize uint32, bytesReturned *uint32, overlapped *Overlapped) (err error) {
1840 r1, _, e1 := syscall.Syscall9(procDeviceIoControl.Addr(), 8, uintptr(handle), uintptr(ioControlCode), uintptr(unsafe.Pointer(inBuffer)), uintptr(inBufferSize), uintptr(unsafe.Pointer(outBuffer)), uintptr(outBufferSize), uintptr(unsafe.Pointer(bytesReturned)), uintptr(unsafe.Pointer(overlapped)), 0)
1841 if r1 == 0 {
1842 err = errnoErr(e1)
1843 }
1844 return
1845}
1846
1847func DuplicateHandle(hSourceProcessHandle Handle, hSourceHandle Handle, hTargetProcessHandle Handle, lpTargetHandle *Handle, dwDesiredAccess uint32, bInheritHandle bool, dwOptions uint32) (err error) {
1848 var _p0 uint32
1849 if bInheritHandle {
1850 _p0 = 1
1851 }
1852 r1, _, e1 := syscall.Syscall9(procDuplicateHandle.Addr(), 7, uintptr(hSourceProcessHandle), uintptr(hSourceHandle), uintptr(hTargetProcessHandle), uintptr(unsafe.Pointer(lpTargetHandle)), uintptr(dwDesiredAccess), uintptr(_p0), uintptr(dwOptions), 0, 0)
1853 if r1 == 0 {
1854 err = errnoErr(e1)
1855 }
1856 return
1857}
1858
1859func ExitProcess(exitcode uint32) {
1860 syscall.Syscall(procExitProcess.Addr(), 1, uintptr(exitcode), 0, 0)
1861 return
1862}
1863
1864func ExpandEnvironmentStrings(src *uint16, dst *uint16, size uint32) (n uint32, err error) {
1865 r0, _, e1 := syscall.Syscall(procExpandEnvironmentStringsW.Addr(), 3, uintptr(unsafe.Pointer(src)), uintptr(unsafe.Pointer(dst)), uintptr(size))
1866 n = uint32(r0)
1867 if n == 0 {
1868 err = errnoErr(e1)
1869 }
1870 return
1871}
1872
1873func FindClose(handle Handle) (err error) {
1874 r1, _, e1 := syscall.Syscall(procFindClose.Addr(), 1, uintptr(handle), 0, 0)
1875 if r1 == 0 {
1876 err = errnoErr(e1)
1877 }
1878 return
1879}
1880
1881func FindCloseChangeNotification(handle Handle) (err error) {
1882 r1, _, e1 := syscall.Syscall(procFindCloseChangeNotification.Addr(), 1, uintptr(handle), 0, 0)
1883 if r1 == 0 {
1884 err = errnoErr(e1)
1885 }
1886 return
1887}
1888
1889func FindFirstChangeNotification(path string, watchSubtree bool, notifyFilter uint32) (handle Handle, err error) {
1890 var _p0 *uint16
1891 _p0, err = syscall.UTF16PtrFromString(path)
1892 if err != nil {
1893 return
1894 }
1895 return _FindFirstChangeNotification(_p0, watchSubtree, notifyFilter)
1896}
1897
1898func _FindFirstChangeNotification(path *uint16, watchSubtree bool, notifyFilter uint32) (handle Handle, err error) {
1899 var _p1 uint32
1900 if watchSubtree {
1901 _p1 = 1
1902 }
1903 r0, _, e1 := syscall.Syscall(procFindFirstChangeNotificationW.Addr(), 3, uintptr(unsafe.Pointer(path)), uintptr(_p1), uintptr(notifyFilter))
1904 handle = Handle(r0)
1905 if handle == InvalidHandle {
1906 err = errnoErr(e1)
1907 }
1908 return
1909}
1910
1911func findFirstFile1(name *uint16, data *win32finddata1) (handle Handle, err error) {
1912 r0, _, e1 := syscall.Syscall(procFindFirstFileW.Addr(), 2, uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(data)), 0)
1913 handle = Handle(r0)
1914 if handle == InvalidHandle {
1915 err = errnoErr(e1)
1916 }
1917 return
1918}
1919
1920func FindFirstVolumeMountPoint(rootPathName *uint16, volumeMountPoint *uint16, bufferLength uint32) (handle Handle, err error) {
1921 r0, _, e1 := syscall.Syscall(procFindFirstVolumeMountPointW.Addr(), 3, uintptr(unsafe.Pointer(rootPathName)), uintptr(unsafe.Pointer(volumeMountPoint)), uintptr(bufferLength))
1922 handle = Handle(r0)
1923 if handle == InvalidHandle {
1924 err = errnoErr(e1)
1925 }
1926 return
1927}
1928
1929func FindFirstVolume(volumeName *uint16, bufferLength uint32) (handle Handle, err error) {
1930 r0, _, e1 := syscall.Syscall(procFindFirstVolumeW.Addr(), 2, uintptr(unsafe.Pointer(volumeName)), uintptr(bufferLength), 0)
1931 handle = Handle(r0)
1932 if handle == InvalidHandle {
1933 err = errnoErr(e1)
1934 }
1935 return
1936}
1937
1938func FindNextChangeNotification(handle Handle) (err error) {
1939 r1, _, e1 := syscall.Syscall(procFindNextChangeNotification.Addr(), 1, uintptr(handle), 0, 0)
1940 if r1 == 0 {
1941 err = errnoErr(e1)
1942 }
1943 return
1944}
1945
1946func findNextFile1(handle Handle, data *win32finddata1) (err error) {
1947 r1, _, e1 := syscall.Syscall(procFindNextFileW.Addr(), 2, uintptr(handle), uintptr(unsafe.Pointer(data)), 0)
1948 if r1 == 0 {
1949 err = errnoErr(e1)
1950 }
1951 return
1952}
1953
1954func FindNextVolumeMountPoint(findVolumeMountPoint Handle, volumeMountPoint *uint16, bufferLength uint32) (err error) {
1955 r1, _, e1 := syscall.Syscall(procFindNextVolumeMountPointW.Addr(), 3, uintptr(findVolumeMountPoint), uintptr(unsafe.Pointer(volumeMountPoint)), uintptr(bufferLength))
1956 if r1 == 0 {
1957 err = errnoErr(e1)
1958 }
1959 return
1960}
1961
1962func FindNextVolume(findVolume Handle, volumeName *uint16, bufferLength uint32) (err error) {
1963 r1, _, e1 := syscall.Syscall(procFindNextVolumeW.Addr(), 3, uintptr(findVolume), uintptr(unsafe.Pointer(volumeName)), uintptr(bufferLength))
1964 if r1 == 0 {
1965 err = errnoErr(e1)
1966 }
1967 return
1968}
1969
1970func findResource(module Handle, name uintptr, resType uintptr) (resInfo Handle, err error) {
1971 r0, _, e1 := syscall.Syscall(procFindResourceW.Addr(), 3, uintptr(module), uintptr(name), uintptr(resType))
1972 resInfo = Handle(r0)
1973 if resInfo == 0 {
1974 err = errnoErr(e1)
1975 }
1976 return
1977}
1978
1979func FindVolumeClose(findVolume Handle) (err error) {
1980 r1, _, e1 := syscall.Syscall(procFindVolumeClose.Addr(), 1, uintptr(findVolume), 0, 0)
1981 if r1 == 0 {
1982 err = errnoErr(e1)
1983 }
1984 return
1985}
1986
1987func FindVolumeMountPointClose(findVolumeMountPoint Handle) (err error) {
1988 r1, _, e1 := syscall.Syscall(procFindVolumeMountPointClose.Addr(), 1, uintptr(findVolumeMountPoint), 0, 0)
1989 if r1 == 0 {
1990 err = errnoErr(e1)
1991 }
1992 return
1993}
1994
1995func FlushFileBuffers(handle Handle) (err error) {
1996 r1, _, e1 := syscall.Syscall(procFlushFileBuffers.Addr(), 1, uintptr(handle), 0, 0)
1997 if r1 == 0 {
1998 err = errnoErr(e1)
1999 }
2000 return
2001}
2002
2003func FlushViewOfFile(addr uintptr, length uintptr) (err error) {
2004 r1, _, e1 := syscall.Syscall(procFlushViewOfFile.Addr(), 2, uintptr(addr), uintptr(length), 0)
2005 if r1 == 0 {
2006 err = errnoErr(e1)
2007 }
2008 return
2009}
2010
2011func FormatMessage(flags uint32, msgsrc uintptr, msgid uint32, langid uint32, buf []uint16, args *byte) (n uint32, err error) {
2012 var _p0 *uint16
2013 if len(buf) > 0 {
2014 _p0 = &buf[0]
2015 }
2016 r0, _, e1 := syscall.Syscall9(procFormatMessageW.Addr(), 7, uintptr(flags), uintptr(msgsrc), uintptr(msgid), uintptr(langid), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(args)), 0, 0)
2017 n = uint32(r0)
2018 if n == 0 {
2019 err = errnoErr(e1)
2020 }
2021 return
2022}
2023
2024func FreeEnvironmentStrings(envs *uint16) (err error) {
2025 r1, _, e1 := syscall.Syscall(procFreeEnvironmentStringsW.Addr(), 1, uintptr(unsafe.Pointer(envs)), 0, 0)
2026 if r1 == 0 {
2027 err = errnoErr(e1)
2028 }
2029 return
2030}
2031
2032func FreeLibrary(handle Handle) (err error) {
2033 r1, _, e1 := syscall.Syscall(procFreeLibrary.Addr(), 1, uintptr(handle), 0, 0)
2034 if r1 == 0 {
2035 err = errnoErr(e1)
2036 }
2037 return
2038}
2039
2040func GenerateConsoleCtrlEvent(ctrlEvent uint32, processGroupID uint32) (err error) {
2041 r1, _, e1 := syscall.Syscall(procGenerateConsoleCtrlEvent.Addr(), 2, uintptr(ctrlEvent), uintptr(processGroupID), 0)
2042 if r1 == 0 {
2043 err = errnoErr(e1)
2044 }
2045 return
2046}
2047
2048func GetACP() (acp uint32) {
2049 r0, _, _ := syscall.Syscall(procGetACP.Addr(), 0, 0, 0, 0)
2050 acp = uint32(r0)
2051 return
2052}
2053
2054func GetActiveProcessorCount(groupNumber uint16) (ret uint32) {
2055 r0, _, _ := syscall.Syscall(procGetActiveProcessorCount.Addr(), 1, uintptr(groupNumber), 0, 0)
2056 ret = uint32(r0)
2057 return
2058}
2059
2060func GetCommTimeouts(handle Handle, timeouts *CommTimeouts) (err error) {
2061 r1, _, e1 := syscall.Syscall(procGetCommTimeouts.Addr(), 2, uintptr(handle), uintptr(unsafe.Pointer(timeouts)), 0)
2062 if r1 == 0 {
2063 err = errnoErr(e1)
2064 }
2065 return
2066}
2067
2068func GetCommandLine() (cmd *uint16) {
2069 r0, _, _ := syscall.Syscall(procGetCommandLineW.Addr(), 0, 0, 0, 0)
2070 cmd = (*uint16)(unsafe.Pointer(r0))
2071 return
2072}
2073
2074func GetComputerNameEx(nametype uint32, buf *uint16, n *uint32) (err error) {
2075 r1, _, e1 := syscall.Syscall(procGetComputerNameExW.Addr(), 3, uintptr(nametype), uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(n)))
2076 if r1 == 0 {
2077 err = errnoErr(e1)
2078 }
2079 return
2080}
2081
2082func GetComputerName(buf *uint16, n *uint32) (err error) {
2083 r1, _, e1 := syscall.Syscall(procGetComputerNameW.Addr(), 2, uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(n)), 0)
2084 if r1 == 0 {
2085 err = errnoErr(e1)
2086 }
2087 return
2088}
2089
2090func GetConsoleMode(console Handle, mode *uint32) (err error) {
2091 r1, _, e1 := syscall.Syscall(procGetConsoleMode.Addr(), 2, uintptr(console), uintptr(unsafe.Pointer(mode)), 0)
2092 if r1 == 0 {
2093 err = errnoErr(e1)
2094 }
2095 return
2096}
2097
2098func GetConsoleScreenBufferInfo(console Handle, info *ConsoleScreenBufferInfo) (err error) {
2099 r1, _, e1 := syscall.Syscall(procGetConsoleScreenBufferInfo.Addr(), 2, uintptr(console), uintptr(unsafe.Pointer(info)), 0)
2100 if r1 == 0 {
2101 err = errnoErr(e1)
2102 }
2103 return
2104}
2105
2106func GetCurrentDirectory(buflen uint32, buf *uint16) (n uint32, err error) {
2107 r0, _, e1 := syscall.Syscall(procGetCurrentDirectoryW.Addr(), 2, uintptr(buflen), uintptr(unsafe.Pointer(buf)), 0)
2108 n = uint32(r0)
2109 if n == 0 {
2110 err = errnoErr(e1)
2111 }
2112 return
2113}
2114
2115func GetCurrentProcessId() (pid uint32) {
2116 r0, _, _ := syscall.Syscall(procGetCurrentProcessId.Addr(), 0, 0, 0, 0)
2117 pid = uint32(r0)
2118 return
2119}
2120
2121func GetCurrentThreadId() (id uint32) {
2122 r0, _, _ := syscall.Syscall(procGetCurrentThreadId.Addr(), 0, 0, 0, 0)
2123 id = uint32(r0)
2124 return
2125}
2126
2127func GetDiskFreeSpaceEx(directoryName *uint16, freeBytesAvailableToCaller *uint64, totalNumberOfBytes *uint64, totalNumberOfFreeBytes *uint64) (err error) {
2128 r1, _, e1 := syscall.Syscall6(procGetDiskFreeSpaceExW.Addr(), 4, uintptr(unsafe.Pointer(directoryName)), uintptr(unsafe.Pointer(freeBytesAvailableToCaller)), uintptr(unsafe.Pointer(totalNumberOfBytes)), uintptr(unsafe.Pointer(totalNumberOfFreeBytes)), 0, 0)
2129 if r1 == 0 {
2130 err = errnoErr(e1)
2131 }
2132 return
2133}
2134
2135func GetDriveType(rootPathName *uint16) (driveType uint32) {
2136 r0, _, _ := syscall.Syscall(procGetDriveTypeW.Addr(), 1, uintptr(unsafe.Pointer(rootPathName)), 0, 0)
2137 driveType = uint32(r0)
2138 return
2139}
2140
2141func GetEnvironmentStrings() (envs *uint16, err error) {
2142 r0, _, e1 := syscall.Syscall(procGetEnvironmentStringsW.Addr(), 0, 0, 0, 0)
2143 envs = (*uint16)(unsafe.Pointer(r0))
2144 if envs == nil {
2145 err = errnoErr(e1)
2146 }
2147 return
2148}
2149
2150func GetEnvironmentVariable(name *uint16, buffer *uint16, size uint32) (n uint32, err error) {
2151 r0, _, e1 := syscall.Syscall(procGetEnvironmentVariableW.Addr(), 3, uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(buffer)), uintptr(size))
2152 n = uint32(r0)
2153 if n == 0 {
2154 err = errnoErr(e1)
2155 }
2156 return
2157}
2158
2159func GetExitCodeProcess(handle Handle, exitcode *uint32) (err error) {
2160 r1, _, e1 := syscall.Syscall(procGetExitCodeProcess.Addr(), 2, uintptr(handle), uintptr(unsafe.Pointer(exitcode)), 0)
2161 if r1 == 0 {
2162 err = errnoErr(e1)
2163 }
2164 return
2165}
2166
2167func GetFileAttributesEx(name *uint16, level uint32, info *byte) (err error) {
2168 r1, _, e1 := syscall.Syscall(procGetFileAttributesExW.Addr(), 3, uintptr(unsafe.Pointer(name)), uintptr(level), uintptr(unsafe.Pointer(info)))
2169 if r1 == 0 {
2170 err = errnoErr(e1)
2171 }
2172 return
2173}
2174
2175func GetFileAttributes(name *uint16) (attrs uint32, err error) {
2176 r0, _, e1 := syscall.Syscall(procGetFileAttributesW.Addr(), 1, uintptr(unsafe.Pointer(name)), 0, 0)
2177 attrs = uint32(r0)
2178 if attrs == INVALID_FILE_ATTRIBUTES {
2179 err = errnoErr(e1)
2180 }
2181 return
2182}
2183
2184func GetFileInformationByHandle(handle Handle, data *ByHandleFileInformation) (err error) {
2185 r1, _, e1 := syscall.Syscall(procGetFileInformationByHandle.Addr(), 2, uintptr(handle), uintptr(unsafe.Pointer(data)), 0)
2186 if r1 == 0 {
2187 err = errnoErr(e1)
2188 }
2189 return
2190}
2191
2192func GetFileInformationByHandleEx(handle Handle, class uint32, outBuffer *byte, outBufferLen uint32) (err error) {
2193 r1, _, e1 := syscall.Syscall6(procGetFileInformationByHandleEx.Addr(), 4, uintptr(handle), uintptr(class), uintptr(unsafe.Pointer(outBuffer)), uintptr(outBufferLen), 0, 0)
2194 if r1 == 0 {
2195 err = errnoErr(e1)
2196 }
2197 return
2198}
2199
2200func GetFileTime(handle Handle, ctime *Filetime, atime *Filetime, wtime *Filetime) (err error) {
2201 r1, _, e1 := syscall.Syscall6(procGetFileTime.Addr(), 4, uintptr(handle), uintptr(unsafe.Pointer(ctime)), uintptr(unsafe.Pointer(atime)), uintptr(unsafe.Pointer(wtime)), 0, 0)
2202 if r1 == 0 {
2203 err = errnoErr(e1)
2204 }
2205 return
2206}
2207
2208func GetFileType(filehandle Handle) (n uint32, err error) {
2209 r0, _, e1 := syscall.Syscall(procGetFileType.Addr(), 1, uintptr(filehandle), 0, 0)
2210 n = uint32(r0)
2211 if n == 0 {
2212 err = errnoErr(e1)
2213 }
2214 return
2215}
2216
2217func GetFinalPathNameByHandle(file Handle, filePath *uint16, filePathSize uint32, flags uint32) (n uint32, err error) {
2218 r0, _, e1 := syscall.Syscall6(procGetFinalPathNameByHandleW.Addr(), 4, uintptr(file), uintptr(unsafe.Pointer(filePath)), uintptr(filePathSize), uintptr(flags), 0, 0)
2219 n = uint32(r0)
2220 if n == 0 {
2221 err = errnoErr(e1)
2222 }
2223 return
2224}
2225
2226func GetFullPathName(path *uint16, buflen uint32, buf *uint16, fname **uint16) (n uint32, err error) {
2227 r0, _, e1 := syscall.Syscall6(procGetFullPathNameW.Addr(), 4, uintptr(unsafe.Pointer(path)), uintptr(buflen), uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(fname)), 0, 0)
2228 n = uint32(r0)
2229 if n == 0 {
2230 err = errnoErr(e1)
2231 }
2232 return
2233}
2234
2235func GetLargePageMinimum() (size uintptr) {
2236 r0, _, _ := syscall.Syscall(procGetLargePageMinimum.Addr(), 0, 0, 0, 0)
2237 size = uintptr(r0)
2238 return
2239}
2240
2241func GetLastError() (lasterr error) {
2242 r0, _, _ := syscall.Syscall(procGetLastError.Addr(), 0, 0, 0, 0)
2243 if r0 != 0 {
2244 lasterr = syscall.Errno(r0)
2245 }
2246 return
2247}
2248
2249func GetLogicalDriveStrings(bufferLength uint32, buffer *uint16) (n uint32, err error) {
2250 r0, _, e1 := syscall.Syscall(procGetLogicalDriveStringsW.Addr(), 2, uintptr(bufferLength), uintptr(unsafe.Pointer(buffer)), 0)
2251 n = uint32(r0)
2252 if n == 0 {
2253 err = errnoErr(e1)
2254 }
2255 return
2256}
2257
2258func GetLogicalDrives() (drivesBitMask uint32, err error) {
2259 r0, _, e1 := syscall.Syscall(procGetLogicalDrives.Addr(), 0, 0, 0, 0)
2260 drivesBitMask = uint32(r0)
2261 if drivesBitMask == 0 {
2262 err = errnoErr(e1)
2263 }
2264 return
2265}
2266
2267func GetLongPathName(path *uint16, buf *uint16, buflen uint32) (n uint32, err error) {
2268 r0, _, e1 := syscall.Syscall(procGetLongPathNameW.Addr(), 3, uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(buf)), uintptr(buflen))
2269 n = uint32(r0)
2270 if n == 0 {
2271 err = errnoErr(e1)
2272 }
2273 return
2274}
2275
2276func GetMaximumProcessorCount(groupNumber uint16) (ret uint32) {
2277 r0, _, _ := syscall.Syscall(procGetMaximumProcessorCount.Addr(), 1, uintptr(groupNumber), 0, 0)
2278 ret = uint32(r0)
2279 return
2280}
2281
2282func GetModuleFileName(module Handle, filename *uint16, size uint32) (n uint32, err error) {
2283 r0, _, e1 := syscall.Syscall(procGetModuleFileNameW.Addr(), 3, uintptr(module), uintptr(unsafe.Pointer(filename)), uintptr(size))
2284 n = uint32(r0)
2285 if n == 0 {
2286 err = errnoErr(e1)
2287 }
2288 return
2289}
2290
2291func GetModuleHandleEx(flags uint32, moduleName *uint16, module *Handle) (err error) {
2292 r1, _, e1 := syscall.Syscall(procGetModuleHandleExW.Addr(), 3, uintptr(flags), uintptr(unsafe.Pointer(moduleName)), uintptr(unsafe.Pointer(module)))
2293 if r1 == 0 {
2294 err = errnoErr(e1)
2295 }
2296 return
2297}
2298
2299func GetNamedPipeHandleState(pipe Handle, state *uint32, curInstances *uint32, maxCollectionCount *uint32, collectDataTimeout *uint32, userName *uint16, maxUserNameSize uint32) (err error) {
2300 r1, _, e1 := syscall.Syscall9(procGetNamedPipeHandleStateW.Addr(), 7, uintptr(pipe), uintptr(unsafe.Pointer(state)), uintptr(unsafe.Pointer(curInstances)), uintptr(unsafe.Pointer(maxCollectionCount)), uintptr(unsafe.Pointer(collectDataTimeout)), uintptr(unsafe.Pointer(userName)), uintptr(maxUserNameSize), 0, 0)
2301 if r1 == 0 {
2302 err = errnoErr(e1)
2303 }
2304 return
2305}
2306
2307func GetNamedPipeInfo(pipe Handle, flags *uint32, outSize *uint32, inSize *uint32, maxInstances *uint32) (err error) {
2308 r1, _, e1 := syscall.Syscall6(procGetNamedPipeInfo.Addr(), 5, uintptr(pipe), uintptr(unsafe.Pointer(flags)), uintptr(unsafe.Pointer(outSize)), uintptr(unsafe.Pointer(inSize)), uintptr(unsafe.Pointer(maxInstances)), 0)
2309 if r1 == 0 {
2310 err = errnoErr(e1)
2311 }
2312 return
2313}
2314
2315func GetOverlappedResult(handle Handle, overlapped *Overlapped, done *uint32, wait bool) (err error) {
2316 var _p0 uint32
2317 if wait {
2318 _p0 = 1
2319 }
2320 r1, _, e1 := syscall.Syscall6(procGetOverlappedResult.Addr(), 4, uintptr(handle), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(done)), uintptr(_p0), 0, 0)
2321 if r1 == 0 {
2322 err = errnoErr(e1)
2323 }
2324 return
2325}
2326
2327func GetPriorityClass(process Handle) (ret uint32, err error) {
2328 r0, _, e1 := syscall.Syscall(procGetPriorityClass.Addr(), 1, uintptr(process), 0, 0)
2329 ret = uint32(r0)
2330 if ret == 0 {
2331 err = errnoErr(e1)
2332 }
2333 return
2334}
2335
2336func GetProcAddress(module Handle, procname string) (proc uintptr, err error) {
2337 var _p0 *byte
2338 _p0, err = syscall.BytePtrFromString(procname)
2339 if err != nil {
2340 return
2341 }
2342 return _GetProcAddress(module, _p0)
2343}
2344
2345func _GetProcAddress(module Handle, procname *byte) (proc uintptr, err error) {
2346 r0, _, e1 := syscall.Syscall(procGetProcAddress.Addr(), 2, uintptr(module), uintptr(unsafe.Pointer(procname)), 0)
2347 proc = uintptr(r0)
2348 if proc == 0 {
2349 err = errnoErr(e1)
2350 }
2351 return
2352}
2353
2354func GetProcessId(process Handle) (id uint32, err error) {
2355 r0, _, e1 := syscall.Syscall(procGetProcessId.Addr(), 1, uintptr(process), 0, 0)
2356 id = uint32(r0)
2357 if id == 0 {
2358 err = errnoErr(e1)
2359 }
2360 return
2361}
2362
2363func getProcessPreferredUILanguages(flags uint32, numLanguages *uint32, buf *uint16, bufSize *uint32) (err error) {
2364 r1, _, e1 := syscall.Syscall6(procGetProcessPreferredUILanguages.Addr(), 4, uintptr(flags), uintptr(unsafe.Pointer(numLanguages)), uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(bufSize)), 0, 0)
2365 if r1 == 0 {
2366 err = errnoErr(e1)
2367 }
2368 return
2369}
2370
2371func GetProcessShutdownParameters(level *uint32, flags *uint32) (err error) {
2372 r1, _, e1 := syscall.Syscall(procGetProcessShutdownParameters.Addr(), 2, uintptr(unsafe.Pointer(level)), uintptr(unsafe.Pointer(flags)), 0)
2373 if r1 == 0 {
2374 err = errnoErr(e1)
2375 }
2376 return
2377}
2378
2379func GetProcessTimes(handle Handle, creationTime *Filetime, exitTime *Filetime, kernelTime *Filetime, userTime *Filetime) (err error) {
2380 r1, _, e1 := syscall.Syscall6(procGetProcessTimes.Addr(), 5, uintptr(handle), uintptr(unsafe.Pointer(creationTime)), uintptr(unsafe.Pointer(exitTime)), uintptr(unsafe.Pointer(kernelTime)), uintptr(unsafe.Pointer(userTime)), 0)
2381 if r1 == 0 {
2382 err = errnoErr(e1)
2383 }
2384 return
2385}
2386
2387func GetProcessWorkingSetSizeEx(hProcess Handle, lpMinimumWorkingSetSize *uintptr, lpMaximumWorkingSetSize *uintptr, flags *uint32) {
2388 syscall.Syscall6(procGetProcessWorkingSetSizeEx.Addr(), 4, uintptr(hProcess), uintptr(unsafe.Pointer(lpMinimumWorkingSetSize)), uintptr(unsafe.Pointer(lpMaximumWorkingSetSize)), uintptr(unsafe.Pointer(flags)), 0, 0)
2389 return
2390}
2391
2392func GetQueuedCompletionStatus(cphandle Handle, qty *uint32, key *uintptr, overlapped **Overlapped, timeout uint32) (err error) {
2393 r1, _, e1 := syscall.Syscall6(procGetQueuedCompletionStatus.Addr(), 5, uintptr(cphandle), uintptr(unsafe.Pointer(qty)), uintptr(unsafe.Pointer(key)), uintptr(unsafe.Pointer(overlapped)), uintptr(timeout), 0)
2394 if r1 == 0 {
2395 err = errnoErr(e1)
2396 }
2397 return
2398}
2399
2400func GetShortPathName(longpath *uint16, shortpath *uint16, buflen uint32) (n uint32, err error) {
2401 r0, _, e1 := syscall.Syscall(procGetShortPathNameW.Addr(), 3, uintptr(unsafe.Pointer(longpath)), uintptr(unsafe.Pointer(shortpath)), uintptr(buflen))
2402 n = uint32(r0)
2403 if n == 0 {
2404 err = errnoErr(e1)
2405 }
2406 return
2407}
2408
2409func getStartupInfo(startupInfo *StartupInfo) {
2410 syscall.Syscall(procGetStartupInfoW.Addr(), 1, uintptr(unsafe.Pointer(startupInfo)), 0, 0)
2411 return
2412}
2413
2414func GetStdHandle(stdhandle uint32) (handle Handle, err error) {
2415 r0, _, e1 := syscall.Syscall(procGetStdHandle.Addr(), 1, uintptr(stdhandle), 0, 0)
2416 handle = Handle(r0)
2417 if handle == InvalidHandle {
2418 err = errnoErr(e1)
2419 }
2420 return
2421}
2422
2423func getSystemDirectory(dir *uint16, dirLen uint32) (len uint32, err error) {
2424 r0, _, e1 := syscall.Syscall(procGetSystemDirectoryW.Addr(), 2, uintptr(unsafe.Pointer(dir)), uintptr(dirLen), 0)
2425 len = uint32(r0)
2426 if len == 0 {
2427 err = errnoErr(e1)
2428 }
2429 return
2430}
2431
2432func getSystemPreferredUILanguages(flags uint32, numLanguages *uint32, buf *uint16, bufSize *uint32) (err error) {
2433 r1, _, e1 := syscall.Syscall6(procGetSystemPreferredUILanguages.Addr(), 4, uintptr(flags), uintptr(unsafe.Pointer(numLanguages)), uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(bufSize)), 0, 0)
2434 if r1 == 0 {
2435 err = errnoErr(e1)
2436 }
2437 return
2438}
2439
2440func GetSystemTimeAsFileTime(time *Filetime) {
2441 syscall.Syscall(procGetSystemTimeAsFileTime.Addr(), 1, uintptr(unsafe.Pointer(time)), 0, 0)
2442 return
2443}
2444
2445func GetSystemTimePreciseAsFileTime(time *Filetime) {
2446 syscall.Syscall(procGetSystemTimePreciseAsFileTime.Addr(), 1, uintptr(unsafe.Pointer(time)), 0, 0)
2447 return
2448}
2449
2450func getSystemWindowsDirectory(dir *uint16, dirLen uint32) (len uint32, err error) {
2451 r0, _, e1 := syscall.Syscall(procGetSystemWindowsDirectoryW.Addr(), 2, uintptr(unsafe.Pointer(dir)), uintptr(dirLen), 0)
2452 len = uint32(r0)
2453 if len == 0 {
2454 err = errnoErr(e1)
2455 }
2456 return
2457}
2458
2459func GetTempPath(buflen uint32, buf *uint16) (n uint32, err error) {
2460 r0, _, e1 := syscall.Syscall(procGetTempPathW.Addr(), 2, uintptr(buflen), uintptr(unsafe.Pointer(buf)), 0)
2461 n = uint32(r0)
2462 if n == 0 {
2463 err = errnoErr(e1)
2464 }
2465 return
2466}
2467
2468func getThreadPreferredUILanguages(flags uint32, numLanguages *uint32, buf *uint16, bufSize *uint32) (err error) {
2469 r1, _, e1 := syscall.Syscall6(procGetThreadPreferredUILanguages.Addr(), 4, uintptr(flags), uintptr(unsafe.Pointer(numLanguages)), uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(bufSize)), 0, 0)
2470 if r1 == 0 {
2471 err = errnoErr(e1)
2472 }
2473 return
2474}
2475
2476func getTickCount64() (ms uint64) {
2477 r0, _, _ := syscall.Syscall(procGetTickCount64.Addr(), 0, 0, 0, 0)
2478 ms = uint64(r0)
2479 return
2480}
2481
2482func GetTimeZoneInformation(tzi *Timezoneinformation) (rc uint32, err error) {
2483 r0, _, e1 := syscall.Syscall(procGetTimeZoneInformation.Addr(), 1, uintptr(unsafe.Pointer(tzi)), 0, 0)
2484 rc = uint32(r0)
2485 if rc == 0xffffffff {
2486 err = errnoErr(e1)
2487 }
2488 return
2489}
2490
2491func getUserPreferredUILanguages(flags uint32, numLanguages *uint32, buf *uint16, bufSize *uint32) (err error) {
2492 r1, _, e1 := syscall.Syscall6(procGetUserPreferredUILanguages.Addr(), 4, uintptr(flags), uintptr(unsafe.Pointer(numLanguages)), uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(bufSize)), 0, 0)
2493 if r1 == 0 {
2494 err = errnoErr(e1)
2495 }
2496 return
2497}
2498
2499func GetVersion() (ver uint32, err error) {
2500 r0, _, e1 := syscall.Syscall(procGetVersion.Addr(), 0, 0, 0, 0)
2501 ver = uint32(r0)
2502 if ver == 0 {
2503 err = errnoErr(e1)
2504 }
2505 return
2506}
2507
2508func GetVolumeInformationByHandle(file Handle, volumeNameBuffer *uint16, volumeNameSize uint32, volumeNameSerialNumber *uint32, maximumComponentLength *uint32, fileSystemFlags *uint32, fileSystemNameBuffer *uint16, fileSystemNameSize uint32) (err error) {
2509 r1, _, e1 := syscall.Syscall9(procGetVolumeInformationByHandleW.Addr(), 8, uintptr(file), uintptr(unsafe.Pointer(volumeNameBuffer)), uintptr(volumeNameSize), uintptr(unsafe.Pointer(volumeNameSerialNumber)), uintptr(unsafe.Pointer(maximumComponentLength)), uintptr(unsafe.Pointer(fileSystemFlags)), uintptr(unsafe.Pointer(fileSystemNameBuffer)), uintptr(fileSystemNameSize), 0)
2510 if r1 == 0 {
2511 err = errnoErr(e1)
2512 }
2513 return
2514}
2515
2516func GetVolumeInformation(rootPathName *uint16, volumeNameBuffer *uint16, volumeNameSize uint32, volumeNameSerialNumber *uint32, maximumComponentLength *uint32, fileSystemFlags *uint32, fileSystemNameBuffer *uint16, fileSystemNameSize uint32) (err error) {
2517 r1, _, e1 := syscall.Syscall9(procGetVolumeInformationW.Addr(), 8, uintptr(unsafe.Pointer(rootPathName)), uintptr(unsafe.Pointer(volumeNameBuffer)), uintptr(volumeNameSize), uintptr(unsafe.Pointer(volumeNameSerialNumber)), uintptr(unsafe.Pointer(maximumComponentLength)), uintptr(unsafe.Pointer(fileSystemFlags)), uintptr(unsafe.Pointer(fileSystemNameBuffer)), uintptr(fileSystemNameSize), 0)
2518 if r1 == 0 {
2519 err = errnoErr(e1)
2520 }
2521 return
2522}
2523
2524func GetVolumeNameForVolumeMountPoint(volumeMountPoint *uint16, volumeName *uint16, bufferlength uint32) (err error) {
2525 r1, _, e1 := syscall.Syscall(procGetVolumeNameForVolumeMountPointW.Addr(), 3, uintptr(unsafe.Pointer(volumeMountPoint)), uintptr(unsafe.Pointer(volumeName)), uintptr(bufferlength))
2526 if r1 == 0 {
2527 err = errnoErr(e1)
2528 }
2529 return
2530}
2531
2532func GetVolumePathName(fileName *uint16, volumePathName *uint16, bufferLength uint32) (err error) {
2533 r1, _, e1 := syscall.Syscall(procGetVolumePathNameW.Addr(), 3, uintptr(unsafe.Pointer(fileName)), uintptr(unsafe.Pointer(volumePathName)), uintptr(bufferLength))
2534 if r1 == 0 {
2535 err = errnoErr(e1)
2536 }
2537 return
2538}
2539
2540func GetVolumePathNamesForVolumeName(volumeName *uint16, volumePathNames *uint16, bufferLength uint32, returnLength *uint32) (err error) {
2541 r1, _, e1 := syscall.Syscall6(procGetVolumePathNamesForVolumeNameW.Addr(), 4, uintptr(unsafe.Pointer(volumeName)), uintptr(unsafe.Pointer(volumePathNames)), uintptr(bufferLength), uintptr(unsafe.Pointer(returnLength)), 0, 0)
2542 if r1 == 0 {
2543 err = errnoErr(e1)
2544 }
2545 return
2546}
2547
2548func getWindowsDirectory(dir *uint16, dirLen uint32) (len uint32, err error) {
2549 r0, _, e1 := syscall.Syscall(procGetWindowsDirectoryW.Addr(), 2, uintptr(unsafe.Pointer(dir)), uintptr(dirLen), 0)
2550 len = uint32(r0)
2551 if len == 0 {
2552 err = errnoErr(e1)
2553 }
2554 return
2555}
2556
2557func initializeProcThreadAttributeList(attrlist *ProcThreadAttributeList, attrcount uint32, flags uint32, size *uintptr) (err error) {
2558 r1, _, e1 := syscall.Syscall6(procInitializeProcThreadAttributeList.Addr(), 4, uintptr(unsafe.Pointer(attrlist)), uintptr(attrcount), uintptr(flags), uintptr(unsafe.Pointer(size)), 0, 0)
2559 if r1 == 0 {
2560 err = errnoErr(e1)
2561 }
2562 return
2563}
2564
2565func IsWow64Process(handle Handle, isWow64 *bool) (err error) {
2566 var _p0 uint32
2567 if *isWow64 {
2568 _p0 = 1
2569 }
2570 r1, _, e1 := syscall.Syscall(procIsWow64Process.Addr(), 2, uintptr(handle), uintptr(unsafe.Pointer(&_p0)), 0)
2571 *isWow64 = _p0 != 0
2572 if r1 == 0 {
2573 err = errnoErr(e1)
2574 }
2575 return
2576}
2577
2578func IsWow64Process2(handle Handle, processMachine *uint16, nativeMachine *uint16) (err error) {
2579 err = procIsWow64Process2.Find()
2580 if err != nil {
2581 return
2582 }
2583 r1, _, e1 := syscall.Syscall(procIsWow64Process2.Addr(), 3, uintptr(handle), uintptr(unsafe.Pointer(processMachine)), uintptr(unsafe.Pointer(nativeMachine)))
2584 if r1 == 0 {
2585 err = errnoErr(e1)
2586 }
2587 return
2588}
2589
2590func LoadLibraryEx(libname string, zero Handle, flags uintptr) (handle Handle, err error) {
2591 var _p0 *uint16
2592 _p0, err = syscall.UTF16PtrFromString(libname)
2593 if err != nil {
2594 return
2595 }
2596 return _LoadLibraryEx(_p0, zero, flags)
2597}
2598
2599func _LoadLibraryEx(libname *uint16, zero Handle, flags uintptr) (handle Handle, err error) {
2600 r0, _, e1 := syscall.Syscall(procLoadLibraryExW.Addr(), 3, uintptr(unsafe.Pointer(libname)), uintptr(zero), uintptr(flags))
2601 handle = Handle(r0)
2602 if handle == 0 {
2603 err = errnoErr(e1)
2604 }
2605 return
2606}
2607
2608func LoadLibrary(libname string) (handle Handle, err error) {
2609 var _p0 *uint16
2610 _p0, err = syscall.UTF16PtrFromString(libname)
2611 if err != nil {
2612 return
2613 }
2614 return _LoadLibrary(_p0)
2615}
2616
2617func _LoadLibrary(libname *uint16) (handle Handle, err error) {
2618 r0, _, e1 := syscall.Syscall(procLoadLibraryW.Addr(), 1, uintptr(unsafe.Pointer(libname)), 0, 0)
2619 handle = Handle(r0)
2620 if handle == 0 {
2621 err = errnoErr(e1)
2622 }
2623 return
2624}
2625
2626func LoadResource(module Handle, resInfo Handle) (resData Handle, err error) {
2627 r0, _, e1 := syscall.Syscall(procLoadResource.Addr(), 2, uintptr(module), uintptr(resInfo), 0)
2628 resData = Handle(r0)
2629 if resData == 0 {
2630 err = errnoErr(e1)
2631 }
2632 return
2633}
2634
2635func LocalAlloc(flags uint32, length uint32) (ptr uintptr, err error) {
2636 r0, _, e1 := syscall.Syscall(procLocalAlloc.Addr(), 2, uintptr(flags), uintptr(length), 0)
2637 ptr = uintptr(r0)
2638 if ptr == 0 {
2639 err = errnoErr(e1)
2640 }
2641 return
2642}
2643
2644func LocalFree(hmem Handle) (handle Handle, err error) {
2645 r0, _, e1 := syscall.Syscall(procLocalFree.Addr(), 1, uintptr(hmem), 0, 0)
2646 handle = Handle(r0)
2647 if handle != 0 {
2648 err = errnoErr(e1)
2649 }
2650 return
2651}
2652
2653func LockFileEx(file Handle, flags uint32, reserved uint32, bytesLow uint32, bytesHigh uint32, overlapped *Overlapped) (err error) {
2654 r1, _, e1 := syscall.Syscall6(procLockFileEx.Addr(), 6, uintptr(file), uintptr(flags), uintptr(reserved), uintptr(bytesLow), uintptr(bytesHigh), uintptr(unsafe.Pointer(overlapped)))
2655 if r1 == 0 {
2656 err = errnoErr(e1)
2657 }
2658 return
2659}
2660
2661func LockResource(resData Handle) (addr uintptr, err error) {
2662 r0, _, e1 := syscall.Syscall(procLockResource.Addr(), 1, uintptr(resData), 0, 0)
2663 addr = uintptr(r0)
2664 if addr == 0 {
2665 err = errnoErr(e1)
2666 }
2667 return
2668}
2669
2670func MapViewOfFile(handle Handle, access uint32, offsetHigh uint32, offsetLow uint32, length uintptr) (addr uintptr, err error) {
2671 r0, _, e1 := syscall.Syscall6(procMapViewOfFile.Addr(), 5, uintptr(handle), uintptr(access), uintptr(offsetHigh), uintptr(offsetLow), uintptr(length), 0)
2672 addr = uintptr(r0)
2673 if addr == 0 {
2674 err = errnoErr(e1)
2675 }
2676 return
2677}
2678
2679func Module32First(snapshot Handle, moduleEntry *ModuleEntry32) (err error) {
2680 r1, _, e1 := syscall.Syscall(procModule32FirstW.Addr(), 2, uintptr(snapshot), uintptr(unsafe.Pointer(moduleEntry)), 0)
2681 if r1 == 0 {
2682 err = errnoErr(e1)
2683 }
2684 return
2685}
2686
2687func Module32Next(snapshot Handle, moduleEntry *ModuleEntry32) (err error) {
2688 r1, _, e1 := syscall.Syscall(procModule32NextW.Addr(), 2, uintptr(snapshot), uintptr(unsafe.Pointer(moduleEntry)), 0)
2689 if r1 == 0 {
2690 err = errnoErr(e1)
2691 }
2692 return
2693}
2694
2695func MoveFileEx(from *uint16, to *uint16, flags uint32) (err error) {
2696 r1, _, e1 := syscall.Syscall(procMoveFileExW.Addr(), 3, uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(to)), uintptr(flags))
2697 if r1 == 0 {
2698 err = errnoErr(e1)
2699 }
2700 return
2701}
2702
2703func MoveFile(from *uint16, to *uint16) (err error) {
2704 r1, _, e1 := syscall.Syscall(procMoveFileW.Addr(), 2, uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(to)), 0)
2705 if r1 == 0 {
2706 err = errnoErr(e1)
2707 }
2708 return
2709}
2710
2711func MultiByteToWideChar(codePage uint32, dwFlags uint32, str *byte, nstr int32, wchar *uint16, nwchar int32) (nwrite int32, err error) {
2712 r0, _, e1 := syscall.Syscall6(procMultiByteToWideChar.Addr(), 6, uintptr(codePage), uintptr(dwFlags), uintptr(unsafe.Pointer(str)), uintptr(nstr), uintptr(unsafe.Pointer(wchar)), uintptr(nwchar))
2713 nwrite = int32(r0)
2714 if nwrite == 0 {
2715 err = errnoErr(e1)
2716 }
2717 return
2718}
2719
2720func OpenEvent(desiredAccess uint32, inheritHandle bool, name *uint16) (handle Handle, err error) {
2721 var _p0 uint32
2722 if inheritHandle {
2723 _p0 = 1
2724 }
2725 r0, _, e1 := syscall.Syscall(procOpenEventW.Addr(), 3, uintptr(desiredAccess), uintptr(_p0), uintptr(unsafe.Pointer(name)))
2726 handle = Handle(r0)
2727 if handle == 0 {
2728 err = errnoErr(e1)
2729 }
2730 return
2731}
2732
2733func OpenMutex(desiredAccess uint32, inheritHandle bool, name *uint16) (handle Handle, err error) {
2734 var _p0 uint32
2735 if inheritHandle {
2736 _p0 = 1
2737 }
2738 r0, _, e1 := syscall.Syscall(procOpenMutexW.Addr(), 3, uintptr(desiredAccess), uintptr(_p0), uintptr(unsafe.Pointer(name)))
2739 handle = Handle(r0)
2740 if handle == 0 {
2741 err = errnoErr(e1)
2742 }
2743 return
2744}
2745
2746func OpenProcess(desiredAccess uint32, inheritHandle bool, processId uint32) (handle Handle, err error) {
2747 var _p0 uint32
2748 if inheritHandle {
2749 _p0 = 1
2750 }
2751 r0, _, e1 := syscall.Syscall(procOpenProcess.Addr(), 3, uintptr(desiredAccess), uintptr(_p0), uintptr(processId))
2752 handle = Handle(r0)
2753 if handle == 0 {
2754 err = errnoErr(e1)
2755 }
2756 return
2757}
2758
2759func OpenThread(desiredAccess uint32, inheritHandle bool, threadId uint32) (handle Handle, err error) {
2760 var _p0 uint32
2761 if inheritHandle {
2762 _p0 = 1
2763 }
2764 r0, _, e1 := syscall.Syscall(procOpenThread.Addr(), 3, uintptr(desiredAccess), uintptr(_p0), uintptr(threadId))
2765 handle = Handle(r0)
2766 if handle == 0 {
2767 err = errnoErr(e1)
2768 }
2769 return
2770}
2771
2772func PostQueuedCompletionStatus(cphandle Handle, qty uint32, key uintptr, overlapped *Overlapped) (err error) {
2773 r1, _, e1 := syscall.Syscall6(procPostQueuedCompletionStatus.Addr(), 4, uintptr(cphandle), uintptr(qty), uintptr(key), uintptr(unsafe.Pointer(overlapped)), 0, 0)
2774 if r1 == 0 {
2775 err = errnoErr(e1)
2776 }
2777 return
2778}
2779
2780func Process32First(snapshot Handle, procEntry *ProcessEntry32) (err error) {
2781 r1, _, e1 := syscall.Syscall(procProcess32FirstW.Addr(), 2, uintptr(snapshot), uintptr(unsafe.Pointer(procEntry)), 0)
2782 if r1 == 0 {
2783 err = errnoErr(e1)
2784 }
2785 return
2786}
2787
2788func Process32Next(snapshot Handle, procEntry *ProcessEntry32) (err error) {
2789 r1, _, e1 := syscall.Syscall(procProcess32NextW.Addr(), 2, uintptr(snapshot), uintptr(unsafe.Pointer(procEntry)), 0)
2790 if r1 == 0 {
2791 err = errnoErr(e1)
2792 }
2793 return
2794}
2795
2796func ProcessIdToSessionId(pid uint32, sessionid *uint32) (err error) {
2797 r1, _, e1 := syscall.Syscall(procProcessIdToSessionId.Addr(), 2, uintptr(pid), uintptr(unsafe.Pointer(sessionid)), 0)
2798 if r1 == 0 {
2799 err = errnoErr(e1)
2800 }
2801 return
2802}
2803
2804func PulseEvent(event Handle) (err error) {
2805 r1, _, e1 := syscall.Syscall(procPulseEvent.Addr(), 1, uintptr(event), 0, 0)
2806 if r1 == 0 {
2807 err = errnoErr(e1)
2808 }
2809 return
2810}
2811
2812func QueryDosDevice(deviceName *uint16, targetPath *uint16, max uint32) (n uint32, err error) {
2813 r0, _, e1 := syscall.Syscall(procQueryDosDeviceW.Addr(), 3, uintptr(unsafe.Pointer(deviceName)), uintptr(unsafe.Pointer(targetPath)), uintptr(max))
2814 n = uint32(r0)
2815 if n == 0 {
2816 err = errnoErr(e1)
2817 }
2818 return
2819}
2820
2821func QueryFullProcessImageName(proc Handle, flags uint32, exeName *uint16, size *uint32) (err error) {
2822 r1, _, e1 := syscall.Syscall6(procQueryFullProcessImageNameW.Addr(), 4, uintptr(proc), uintptr(flags), uintptr(unsafe.Pointer(exeName)), uintptr(unsafe.Pointer(size)), 0, 0)
2823 if r1 == 0 {
2824 err = errnoErr(e1)
2825 }
2826 return
2827}
2828
2829func QueryInformationJobObject(job Handle, JobObjectInformationClass int32, JobObjectInformation uintptr, JobObjectInformationLength uint32, retlen *uint32) (err error) {
2830 r1, _, e1 := syscall.Syscall6(procQueryInformationJobObject.Addr(), 5, uintptr(job), uintptr(JobObjectInformationClass), uintptr(JobObjectInformation), uintptr(JobObjectInformationLength), uintptr(unsafe.Pointer(retlen)), 0)
2831 if r1 == 0 {
2832 err = errnoErr(e1)
2833 }
2834 return
2835}
2836
2837func ReadConsole(console Handle, buf *uint16, toread uint32, read *uint32, inputControl *byte) (err error) {
2838 r1, _, e1 := syscall.Syscall6(procReadConsoleW.Addr(), 5, uintptr(console), uintptr(unsafe.Pointer(buf)), uintptr(toread), uintptr(unsafe.Pointer(read)), uintptr(unsafe.Pointer(inputControl)), 0)
2839 if r1 == 0 {
2840 err = errnoErr(e1)
2841 }
2842 return
2843}
2844
2845func ReadDirectoryChanges(handle Handle, buf *byte, buflen uint32, watchSubTree bool, mask uint32, retlen *uint32, overlapped *Overlapped, completionRoutine uintptr) (err error) {
2846 var _p0 uint32
2847 if watchSubTree {
2848 _p0 = 1
2849 }
2850 r1, _, e1 := syscall.Syscall9(procReadDirectoryChangesW.Addr(), 8, uintptr(handle), uintptr(unsafe.Pointer(buf)), uintptr(buflen), uintptr(_p0), uintptr(mask), uintptr(unsafe.Pointer(retlen)), uintptr(unsafe.Pointer(overlapped)), uintptr(completionRoutine), 0)
2851 if r1 == 0 {
2852 err = errnoErr(e1)
2853 }
2854 return
2855}
2856
2857func readFile(handle Handle, buf []byte, done *uint32, overlapped *Overlapped) (err error) {
2858 var _p0 *byte
2859 if len(buf) > 0 {
2860 _p0 = &buf[0]
2861 }
2862 r1, _, e1 := syscall.Syscall6(procReadFile.Addr(), 5, uintptr(handle), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(done)), uintptr(unsafe.Pointer(overlapped)), 0)
2863 if r1 == 0 {
2864 err = errnoErr(e1)
2865 }
2866 return
2867}
2868
2869func ReadProcessMemory(process Handle, baseAddress uintptr, buffer *byte, size uintptr, numberOfBytesRead *uintptr) (err error) {
2870 r1, _, e1 := syscall.Syscall6(procReadProcessMemory.Addr(), 5, uintptr(process), uintptr(baseAddress), uintptr(unsafe.Pointer(buffer)), uintptr(size), uintptr(unsafe.Pointer(numberOfBytesRead)), 0)
2871 if r1 == 0 {
2872 err = errnoErr(e1)
2873 }
2874 return
2875}
2876
2877func ReleaseMutex(mutex Handle) (err error) {
2878 r1, _, e1 := syscall.Syscall(procReleaseMutex.Addr(), 1, uintptr(mutex), 0, 0)
2879 if r1 == 0 {
2880 err = errnoErr(e1)
2881 }
2882 return
2883}
2884
2885func RemoveDirectory(path *uint16) (err error) {
2886 r1, _, e1 := syscall.Syscall(procRemoveDirectoryW.Addr(), 1, uintptr(unsafe.Pointer(path)), 0, 0)
2887 if r1 == 0 {
2888 err = errnoErr(e1)
2889 }
2890 return
2891}
2892
2893func RemoveDllDirectory(cookie uintptr) (err error) {
2894 r1, _, e1 := syscall.Syscall(procRemoveDllDirectory.Addr(), 1, uintptr(cookie), 0, 0)
2895 if r1 == 0 {
2896 err = errnoErr(e1)
2897 }
2898 return
2899}
2900
2901func ResetEvent(event Handle) (err error) {
2902 r1, _, e1 := syscall.Syscall(procResetEvent.Addr(), 1, uintptr(event), 0, 0)
2903 if r1 == 0 {
2904 err = errnoErr(e1)
2905 }
2906 return
2907}
2908
2909func resizePseudoConsole(pconsole Handle, size uint32) (hr error) {
2910 r0, _, _ := syscall.Syscall(procResizePseudoConsole.Addr(), 2, uintptr(pconsole), uintptr(size), 0)
2911 if r0 != 0 {
2912 hr = syscall.Errno(r0)
2913 }
2914 return
2915}
2916
2917func ResumeThread(thread Handle) (ret uint32, err error) {
2918 r0, _, e1 := syscall.Syscall(procResumeThread.Addr(), 1, uintptr(thread), 0, 0)
2919 ret = uint32(r0)
2920 if ret == 0xffffffff {
2921 err = errnoErr(e1)
2922 }
2923 return
2924}
2925
2926func SetCommTimeouts(handle Handle, timeouts *CommTimeouts) (err error) {
2927 r1, _, e1 := syscall.Syscall(procSetCommTimeouts.Addr(), 2, uintptr(handle), uintptr(unsafe.Pointer(timeouts)), 0)
2928 if r1 == 0 {
2929 err = errnoErr(e1)
2930 }
2931 return
2932}
2933
2934func setConsoleCursorPosition(console Handle, position uint32) (err error) {
2935 r1, _, e1 := syscall.Syscall(procSetConsoleCursorPosition.Addr(), 2, uintptr(console), uintptr(position), 0)
2936 if r1 == 0 {
2937 err = errnoErr(e1)
2938 }
2939 return
2940}
2941
2942func SetConsoleMode(console Handle, mode uint32) (err error) {
2943 r1, _, e1 := syscall.Syscall(procSetConsoleMode.Addr(), 2, uintptr(console), uintptr(mode), 0)
2944 if r1 == 0 {
2945 err = errnoErr(e1)
2946 }
2947 return
2948}
2949
2950func SetCurrentDirectory(path *uint16) (err error) {
2951 r1, _, e1 := syscall.Syscall(procSetCurrentDirectoryW.Addr(), 1, uintptr(unsafe.Pointer(path)), 0, 0)
2952 if r1 == 0 {
2953 err = errnoErr(e1)
2954 }
2955 return
2956}
2957
2958func SetDefaultDllDirectories(directoryFlags uint32) (err error) {
2959 r1, _, e1 := syscall.Syscall(procSetDefaultDllDirectories.Addr(), 1, uintptr(directoryFlags), 0, 0)
2960 if r1 == 0 {
2961 err = errnoErr(e1)
2962 }
2963 return
2964}
2965
2966func SetDllDirectory(path string) (err error) {
2967 var _p0 *uint16
2968 _p0, err = syscall.UTF16PtrFromString(path)
2969 if err != nil {
2970 return
2971 }
2972 return _SetDllDirectory(_p0)
2973}
2974
2975func _SetDllDirectory(path *uint16) (err error) {
2976 r1, _, e1 := syscall.Syscall(procSetDllDirectoryW.Addr(), 1, uintptr(unsafe.Pointer(path)), 0, 0)
2977 if r1 == 0 {
2978 err = errnoErr(e1)
2979 }
2980 return
2981}
2982
2983func SetEndOfFile(handle Handle) (err error) {
2984 r1, _, e1 := syscall.Syscall(procSetEndOfFile.Addr(), 1, uintptr(handle), 0, 0)
2985 if r1 == 0 {
2986 err = errnoErr(e1)
2987 }
2988 return
2989}
2990
2991func SetEnvironmentVariable(name *uint16, value *uint16) (err error) {
2992 r1, _, e1 := syscall.Syscall(procSetEnvironmentVariableW.Addr(), 2, uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(value)), 0)
2993 if r1 == 0 {
2994 err = errnoErr(e1)
2995 }
2996 return
2997}
2998
2999func SetErrorMode(mode uint32) (ret uint32) {
3000 r0, _, _ := syscall.Syscall(procSetErrorMode.Addr(), 1, uintptr(mode), 0, 0)
3001 ret = uint32(r0)
3002 return
3003}
3004
3005func SetEvent(event Handle) (err error) {
3006 r1, _, e1 := syscall.Syscall(procSetEvent.Addr(), 1, uintptr(event), 0, 0)
3007 if r1 == 0 {
3008 err = errnoErr(e1)
3009 }
3010 return
3011}
3012
3013func SetFileAttributes(name *uint16, attrs uint32) (err error) {
3014 r1, _, e1 := syscall.Syscall(procSetFileAttributesW.Addr(), 2, uintptr(unsafe.Pointer(name)), uintptr(attrs), 0)
3015 if r1 == 0 {
3016 err = errnoErr(e1)
3017 }
3018 return
3019}
3020
3021func SetFileCompletionNotificationModes(handle Handle, flags uint8) (err error) {
3022 r1, _, e1 := syscall.Syscall(procSetFileCompletionNotificationModes.Addr(), 2, uintptr(handle), uintptr(flags), 0)
3023 if r1 == 0 {
3024 err = errnoErr(e1)
3025 }
3026 return
3027}
3028
3029func SetFileInformationByHandle(handle Handle, class uint32, inBuffer *byte, inBufferLen uint32) (err error) {
3030 r1, _, e1 := syscall.Syscall6(procSetFileInformationByHandle.Addr(), 4, uintptr(handle), uintptr(class), uintptr(unsafe.Pointer(inBuffer)), uintptr(inBufferLen), 0, 0)
3031 if r1 == 0 {
3032 err = errnoErr(e1)
3033 }
3034 return
3035}
3036
3037func SetFilePointer(handle Handle, lowoffset int32, highoffsetptr *int32, whence uint32) (newlowoffset uint32, err error) {
3038 r0, _, e1 := syscall.Syscall6(procSetFilePointer.Addr(), 4, uintptr(handle), uintptr(lowoffset), uintptr(unsafe.Pointer(highoffsetptr)), uintptr(whence), 0, 0)
3039 newlowoffset = uint32(r0)
3040 if newlowoffset == 0xffffffff {
3041 err = errnoErr(e1)
3042 }
3043 return
3044}
3045
3046func SetFileTime(handle Handle, ctime *Filetime, atime *Filetime, wtime *Filetime) (err error) {
3047 r1, _, e1 := syscall.Syscall6(procSetFileTime.Addr(), 4, uintptr(handle), uintptr(unsafe.Pointer(ctime)), uintptr(unsafe.Pointer(atime)), uintptr(unsafe.Pointer(wtime)), 0, 0)
3048 if r1 == 0 {
3049 err = errnoErr(e1)
3050 }
3051 return
3052}
3053
3054func SetHandleInformation(handle Handle, mask uint32, flags uint32) (err error) {
3055 r1, _, e1 := syscall.Syscall(procSetHandleInformation.Addr(), 3, uintptr(handle), uintptr(mask), uintptr(flags))
3056 if r1 == 0 {
3057 err = errnoErr(e1)
3058 }
3059 return
3060}
3061
3062func SetInformationJobObject(job Handle, JobObjectInformationClass uint32, JobObjectInformation uintptr, JobObjectInformationLength uint32) (ret int, err error) {
3063 r0, _, e1 := syscall.Syscall6(procSetInformationJobObject.Addr(), 4, uintptr(job), uintptr(JobObjectInformationClass), uintptr(JobObjectInformation), uintptr(JobObjectInformationLength), 0, 0)
3064 ret = int(r0)
3065 if ret == 0 {
3066 err = errnoErr(e1)
3067 }
3068 return
3069}
3070
3071func SetNamedPipeHandleState(pipe Handle, state *uint32, maxCollectionCount *uint32, collectDataTimeout *uint32) (err error) {
3072 r1, _, e1 := syscall.Syscall6(procSetNamedPipeHandleState.Addr(), 4, uintptr(pipe), uintptr(unsafe.Pointer(state)), uintptr(unsafe.Pointer(maxCollectionCount)), uintptr(unsafe.Pointer(collectDataTimeout)), 0, 0)
3073 if r1 == 0 {
3074 err = errnoErr(e1)
3075 }
3076 return
3077}
3078
3079func SetPriorityClass(process Handle, priorityClass uint32) (err error) {
3080 r1, _, e1 := syscall.Syscall(procSetPriorityClass.Addr(), 2, uintptr(process), uintptr(priorityClass), 0)
3081 if r1 == 0 {
3082 err = errnoErr(e1)
3083 }
3084 return
3085}
3086
3087func SetProcessPriorityBoost(process Handle, disable bool) (err error) {
3088 var _p0 uint32
3089 if disable {
3090 _p0 = 1
3091 }
3092 r1, _, e1 := syscall.Syscall(procSetProcessPriorityBoost.Addr(), 2, uintptr(process), uintptr(_p0), 0)
3093 if r1 == 0 {
3094 err = errnoErr(e1)
3095 }
3096 return
3097}
3098
3099func SetProcessShutdownParameters(level uint32, flags uint32) (err error) {
3100 r1, _, e1 := syscall.Syscall(procSetProcessShutdownParameters.Addr(), 2, uintptr(level), uintptr(flags), 0)
3101 if r1 == 0 {
3102 err = errnoErr(e1)
3103 }
3104 return
3105}
3106
3107func SetProcessWorkingSetSizeEx(hProcess Handle, dwMinimumWorkingSetSize uintptr, dwMaximumWorkingSetSize uintptr, flags uint32) (err error) {
3108 r1, _, e1 := syscall.Syscall6(procSetProcessWorkingSetSizeEx.Addr(), 4, uintptr(hProcess), uintptr(dwMinimumWorkingSetSize), uintptr(dwMaximumWorkingSetSize), uintptr(flags), 0, 0)
3109 if r1 == 0 {
3110 err = errnoErr(e1)
3111 }
3112 return
3113}
3114
3115func SetStdHandle(stdhandle uint32, handle Handle) (err error) {
3116 r1, _, e1 := syscall.Syscall(procSetStdHandle.Addr(), 2, uintptr(stdhandle), uintptr(handle), 0)
3117 if r1 == 0 {
3118 err = errnoErr(e1)
3119 }
3120 return
3121}
3122
3123func SetVolumeLabel(rootPathName *uint16, volumeName *uint16) (err error) {
3124 r1, _, e1 := syscall.Syscall(procSetVolumeLabelW.Addr(), 2, uintptr(unsafe.Pointer(rootPathName)), uintptr(unsafe.Pointer(volumeName)), 0)
3125 if r1 == 0 {
3126 err = errnoErr(e1)
3127 }
3128 return
3129}
3130
3131func SetVolumeMountPoint(volumeMountPoint *uint16, volumeName *uint16) (err error) {
3132 r1, _, e1 := syscall.Syscall(procSetVolumeMountPointW.Addr(), 2, uintptr(unsafe.Pointer(volumeMountPoint)), uintptr(unsafe.Pointer(volumeName)), 0)
3133 if r1 == 0 {
3134 err = errnoErr(e1)
3135 }
3136 return
3137}
3138
3139func SizeofResource(module Handle, resInfo Handle) (size uint32, err error) {
3140 r0, _, e1 := syscall.Syscall(procSizeofResource.Addr(), 2, uintptr(module), uintptr(resInfo), 0)
3141 size = uint32(r0)
3142 if size == 0 {
3143 err = errnoErr(e1)
3144 }
3145 return
3146}
3147
3148func SleepEx(milliseconds uint32, alertable bool) (ret uint32) {
3149 var _p0 uint32
3150 if alertable {
3151 _p0 = 1
3152 }
3153 r0, _, _ := syscall.Syscall(procSleepEx.Addr(), 2, uintptr(milliseconds), uintptr(_p0), 0)
3154 ret = uint32(r0)
3155 return
3156}
3157
3158func TerminateJobObject(job Handle, exitCode uint32) (err error) {
3159 r1, _, e1 := syscall.Syscall(procTerminateJobObject.Addr(), 2, uintptr(job), uintptr(exitCode), 0)
3160 if r1 == 0 {
3161 err = errnoErr(e1)
3162 }
3163 return
3164}
3165
3166func TerminateProcess(handle Handle, exitcode uint32) (err error) {
3167 r1, _, e1 := syscall.Syscall(procTerminateProcess.Addr(), 2, uintptr(handle), uintptr(exitcode), 0)
3168 if r1 == 0 {
3169 err = errnoErr(e1)
3170 }
3171 return
3172}
3173
3174func Thread32First(snapshot Handle, threadEntry *ThreadEntry32) (err error) {
3175 r1, _, e1 := syscall.Syscall(procThread32First.Addr(), 2, uintptr(snapshot), uintptr(unsafe.Pointer(threadEntry)), 0)
3176 if r1 == 0 {
3177 err = errnoErr(e1)
3178 }
3179 return
3180}
3181
3182func Thread32Next(snapshot Handle, threadEntry *ThreadEntry32) (err error) {
3183 r1, _, e1 := syscall.Syscall(procThread32Next.Addr(), 2, uintptr(snapshot), uintptr(unsafe.Pointer(threadEntry)), 0)
3184 if r1 == 0 {
3185 err = errnoErr(e1)
3186 }
3187 return
3188}
3189
3190func UnlockFileEx(file Handle, reserved uint32, bytesLow uint32, bytesHigh uint32, overlapped *Overlapped) (err error) {
3191 r1, _, e1 := syscall.Syscall6(procUnlockFileEx.Addr(), 5, uintptr(file), uintptr(reserved), uintptr(bytesLow), uintptr(bytesHigh), uintptr(unsafe.Pointer(overlapped)), 0)
3192 if r1 == 0 {
3193 err = errnoErr(e1)
3194 }
3195 return
3196}
3197
3198func UnmapViewOfFile(addr uintptr) (err error) {
3199 r1, _, e1 := syscall.Syscall(procUnmapViewOfFile.Addr(), 1, uintptr(addr), 0, 0)
3200 if r1 == 0 {
3201 err = errnoErr(e1)
3202 }
3203 return
3204}
3205
3206func updateProcThreadAttribute(attrlist *ProcThreadAttributeList, flags uint32, attr uintptr, value unsafe.Pointer, size uintptr, prevvalue unsafe.Pointer, returnedsize *uintptr) (err error) {
3207 r1, _, e1 := syscall.Syscall9(procUpdateProcThreadAttribute.Addr(), 7, uintptr(unsafe.Pointer(attrlist)), uintptr(flags), uintptr(attr), uintptr(value), uintptr(size), uintptr(prevvalue), uintptr(unsafe.Pointer(returnedsize)), 0, 0)
3208 if r1 == 0 {
3209 err = errnoErr(e1)
3210 }
3211 return
3212}
3213
3214func VirtualAlloc(address uintptr, size uintptr, alloctype uint32, protect uint32) (value uintptr, err error) {
3215 r0, _, e1 := syscall.Syscall6(procVirtualAlloc.Addr(), 4, uintptr(address), uintptr(size), uintptr(alloctype), uintptr(protect), 0, 0)
3216 value = uintptr(r0)
3217 if value == 0 {
3218 err = errnoErr(e1)
3219 }
3220 return
3221}
3222
3223func VirtualFree(address uintptr, size uintptr, freetype uint32) (err error) {
3224 r1, _, e1 := syscall.Syscall(procVirtualFree.Addr(), 3, uintptr(address), uintptr(size), uintptr(freetype))
3225 if r1 == 0 {
3226 err = errnoErr(e1)
3227 }
3228 return
3229}
3230
3231func VirtualLock(addr uintptr, length uintptr) (err error) {
3232 r1, _, e1 := syscall.Syscall(procVirtualLock.Addr(), 2, uintptr(addr), uintptr(length), 0)
3233 if r1 == 0 {
3234 err = errnoErr(e1)
3235 }
3236 return
3237}
3238
3239func VirtualProtect(address uintptr, size uintptr, newprotect uint32, oldprotect *uint32) (err error) {
3240 r1, _, e1 := syscall.Syscall6(procVirtualProtect.Addr(), 4, uintptr(address), uintptr(size), uintptr(newprotect), uintptr(unsafe.Pointer(oldprotect)), 0, 0)
3241 if r1 == 0 {
3242 err = errnoErr(e1)
3243 }
3244 return
3245}
3246
3247func VirtualProtectEx(process Handle, address uintptr, size uintptr, newProtect uint32, oldProtect *uint32) (err error) {
3248 r1, _, e1 := syscall.Syscall6(procVirtualProtectEx.Addr(), 5, uintptr(process), uintptr(address), uintptr(size), uintptr(newProtect), uintptr(unsafe.Pointer(oldProtect)), 0)
3249 if r1 == 0 {
3250 err = errnoErr(e1)
3251 }
3252 return
3253}
3254
3255func VirtualQuery(address uintptr, buffer *MemoryBasicInformation, length uintptr) (err error) {
3256 r1, _, e1 := syscall.Syscall(procVirtualQuery.Addr(), 3, uintptr(address), uintptr(unsafe.Pointer(buffer)), uintptr(length))
3257 if r1 == 0 {
3258 err = errnoErr(e1)
3259 }
3260 return
3261}
3262
3263func VirtualQueryEx(process Handle, address uintptr, buffer *MemoryBasicInformation, length uintptr) (err error) {
3264 r1, _, e1 := syscall.Syscall6(procVirtualQueryEx.Addr(), 4, uintptr(process), uintptr(address), uintptr(unsafe.Pointer(buffer)), uintptr(length), 0, 0)
3265 if r1 == 0 {
3266 err = errnoErr(e1)
3267 }
3268 return
3269}
3270
3271func VirtualUnlock(addr uintptr, length uintptr) (err error) {
3272 r1, _, e1 := syscall.Syscall(procVirtualUnlock.Addr(), 2, uintptr(addr), uintptr(length), 0)
3273 if r1 == 0 {
3274 err = errnoErr(e1)
3275 }
3276 return
3277}
3278
3279func WTSGetActiveConsoleSessionId() (sessionID uint32) {
3280 r0, _, _ := syscall.Syscall(procWTSGetActiveConsoleSessionId.Addr(), 0, 0, 0, 0)
3281 sessionID = uint32(r0)
3282 return
3283}
3284
3285func waitForMultipleObjects(count uint32, handles uintptr, waitAll bool, waitMilliseconds uint32) (event uint32, err error) {
3286 var _p0 uint32
3287 if waitAll {
3288 _p0 = 1
3289 }
3290 r0, _, e1 := syscall.Syscall6(procWaitForMultipleObjects.Addr(), 4, uintptr(count), uintptr(handles), uintptr(_p0), uintptr(waitMilliseconds), 0, 0)
3291 event = uint32(r0)
3292 if event == 0xffffffff {
3293 err = errnoErr(e1)
3294 }
3295 return
3296}
3297
3298func WaitForSingleObject(handle Handle, waitMilliseconds uint32) (event uint32, err error) {
3299 r0, _, e1 := syscall.Syscall(procWaitForSingleObject.Addr(), 2, uintptr(handle), uintptr(waitMilliseconds), 0)
3300 event = uint32(r0)
3301 if event == 0xffffffff {
3302 err = errnoErr(e1)
3303 }
3304 return
3305}
3306
3307func WriteConsole(console Handle, buf *uint16, towrite uint32, written *uint32, reserved *byte) (err error) {
3308 r1, _, e1 := syscall.Syscall6(procWriteConsoleW.Addr(), 5, uintptr(console), uintptr(unsafe.Pointer(buf)), uintptr(towrite), uintptr(unsafe.Pointer(written)), uintptr(unsafe.Pointer(reserved)), 0)
3309 if r1 == 0 {
3310 err = errnoErr(e1)
3311 }
3312 return
3313}
3314
3315func writeFile(handle Handle, buf []byte, done *uint32, overlapped *Overlapped) (err error) {
3316 var _p0 *byte
3317 if len(buf) > 0 {
3318 _p0 = &buf[0]
3319 }
3320 r1, _, e1 := syscall.Syscall6(procWriteFile.Addr(), 5, uintptr(handle), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(done)), uintptr(unsafe.Pointer(overlapped)), 0)
3321 if r1 == 0 {
3322 err = errnoErr(e1)
3323 }
3324 return
3325}
3326
3327func WriteProcessMemory(process Handle, baseAddress uintptr, buffer *byte, size uintptr, numberOfBytesWritten *uintptr) (err error) {
3328 r1, _, e1 := syscall.Syscall6(procWriteProcessMemory.Addr(), 5, uintptr(process), uintptr(baseAddress), uintptr(unsafe.Pointer(buffer)), uintptr(size), uintptr(unsafe.Pointer(numberOfBytesWritten)), 0)
3329 if r1 == 0 {
3330 err = errnoErr(e1)
3331 }
3332 return
3333}
3334
3335func AcceptEx(ls Handle, as Handle, buf *byte, rxdatalen uint32, laddrlen uint32, raddrlen uint32, recvd *uint32, overlapped *Overlapped) (err error) {
3336 r1, _, e1 := syscall.Syscall9(procAcceptEx.Addr(), 8, uintptr(ls), uintptr(as), uintptr(unsafe.Pointer(buf)), uintptr(rxdatalen), uintptr(laddrlen), uintptr(raddrlen), uintptr(unsafe.Pointer(recvd)), uintptr(unsafe.Pointer(overlapped)), 0)
3337 if r1 == 0 {
3338 err = errnoErr(e1)
3339 }
3340 return
3341}
3342
3343func GetAcceptExSockaddrs(buf *byte, rxdatalen uint32, laddrlen uint32, raddrlen uint32, lrsa **RawSockaddrAny, lrsalen *int32, rrsa **RawSockaddrAny, rrsalen *int32) {
3344 syscall.Syscall9(procGetAcceptExSockaddrs.Addr(), 8, uintptr(unsafe.Pointer(buf)), uintptr(rxdatalen), uintptr(laddrlen), uintptr(raddrlen), uintptr(unsafe.Pointer(lrsa)), uintptr(unsafe.Pointer(lrsalen)), uintptr(unsafe.Pointer(rrsa)), uintptr(unsafe.Pointer(rrsalen)), 0)
3345 return
3346}
3347
3348func TransmitFile(s Handle, handle Handle, bytesToWrite uint32, bytsPerSend uint32, overlapped *Overlapped, transmitFileBuf *TransmitFileBuffers, flags uint32) (err error) {
3349 r1, _, e1 := syscall.Syscall9(procTransmitFile.Addr(), 7, uintptr(s), uintptr(handle), uintptr(bytesToWrite), uintptr(bytsPerSend), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(transmitFileBuf)), uintptr(flags), 0, 0)
3350 if r1 == 0 {
3351 err = errnoErr(e1)
3352 }
3353 return
3354}
3355
3356func NetApiBufferFree(buf *byte) (neterr error) {
3357 r0, _, _ := syscall.Syscall(procNetApiBufferFree.Addr(), 1, uintptr(unsafe.Pointer(buf)), 0, 0)
3358 if r0 != 0 {
3359 neterr = syscall.Errno(r0)
3360 }
3361 return
3362}
3363
3364func NetGetJoinInformation(server *uint16, name **uint16, bufType *uint32) (neterr error) {
3365 r0, _, _ := syscall.Syscall(procNetGetJoinInformation.Addr(), 3, uintptr(unsafe.Pointer(server)), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(bufType)))
3366 if r0 != 0 {
3367 neterr = syscall.Errno(r0)
3368 }
3369 return
3370}
3371
3372func NetUserGetInfo(serverName *uint16, userName *uint16, level uint32, buf **byte) (neterr error) {
3373 r0, _, _ := syscall.Syscall6(procNetUserGetInfo.Addr(), 4, uintptr(unsafe.Pointer(serverName)), uintptr(unsafe.Pointer(userName)), uintptr(level), uintptr(unsafe.Pointer(buf)), 0, 0)
3374 if r0 != 0 {
3375 neterr = syscall.Errno(r0)
3376 }
3377 return
3378}
3379
3380func NtCreateFile(handle *Handle, access uint32, oa *OBJECT_ATTRIBUTES, iosb *IO_STATUS_BLOCK, allocationSize *int64, attributes uint32, share uint32, disposition uint32, options uint32, eabuffer uintptr, ealength uint32) (ntstatus error) {
3381 r0, _, _ := syscall.Syscall12(procNtCreateFile.Addr(), 11, uintptr(unsafe.Pointer(handle)), uintptr(access), uintptr(unsafe.Pointer(oa)), uintptr(unsafe.Pointer(iosb)), uintptr(unsafe.Pointer(allocationSize)), uintptr(attributes), uintptr(share), uintptr(disposition), uintptr(options), uintptr(eabuffer), uintptr(ealength), 0)
3382 if r0 != 0 {
3383 ntstatus = NTStatus(r0)
3384 }
3385 return
3386}
3387
3388func NtCreateNamedPipeFile(pipe *Handle, access uint32, oa *OBJECT_ATTRIBUTES, iosb *IO_STATUS_BLOCK, share uint32, disposition uint32, options uint32, typ uint32, readMode uint32, completionMode uint32, maxInstances uint32, inboundQuota uint32, outputQuota uint32, timeout *int64) (ntstatus error) {
3389 r0, _, _ := syscall.Syscall15(procNtCreateNamedPipeFile.Addr(), 14, uintptr(unsafe.Pointer(pipe)), uintptr(access), uintptr(unsafe.Pointer(oa)), uintptr(unsafe.Pointer(iosb)), uintptr(share), uintptr(disposition), uintptr(options), uintptr(typ), uintptr(readMode), uintptr(completionMode), uintptr(maxInstances), uintptr(inboundQuota), uintptr(outputQuota), uintptr(unsafe.Pointer(timeout)), 0)
3390 if r0 != 0 {
3391 ntstatus = NTStatus(r0)
3392 }
3393 return
3394}
3395
3396func NtQueryInformationProcess(proc Handle, procInfoClass int32, procInfo unsafe.Pointer, procInfoLen uint32, retLen *uint32) (ntstatus error) {
3397 r0, _, _ := syscall.Syscall6(procNtQueryInformationProcess.Addr(), 5, uintptr(proc), uintptr(procInfoClass), uintptr(procInfo), uintptr(procInfoLen), uintptr(unsafe.Pointer(retLen)), 0)
3398 if r0 != 0 {
3399 ntstatus = NTStatus(r0)
3400 }
3401 return
3402}
3403
3404func NtQuerySystemInformation(sysInfoClass int32, sysInfo unsafe.Pointer, sysInfoLen uint32, retLen *uint32) (ntstatus error) {
3405 r0, _, _ := syscall.Syscall6(procNtQuerySystemInformation.Addr(), 4, uintptr(sysInfoClass), uintptr(sysInfo), uintptr(sysInfoLen), uintptr(unsafe.Pointer(retLen)), 0, 0)
3406 if r0 != 0 {
3407 ntstatus = NTStatus(r0)
3408 }
3409 return
3410}
3411
3412func NtSetInformationFile(handle Handle, iosb *IO_STATUS_BLOCK, inBuffer *byte, inBufferLen uint32, class uint32) (ntstatus error) {
3413 r0, _, _ := syscall.Syscall6(procNtSetInformationFile.Addr(), 5, uintptr(handle), uintptr(unsafe.Pointer(iosb)), uintptr(unsafe.Pointer(inBuffer)), uintptr(inBufferLen), uintptr(class), 0)
3414 if r0 != 0 {
3415 ntstatus = NTStatus(r0)
3416 }
3417 return
3418}
3419
3420func NtSetInformationProcess(proc Handle, procInfoClass int32, procInfo unsafe.Pointer, procInfoLen uint32) (ntstatus error) {
3421 r0, _, _ := syscall.Syscall6(procNtSetInformationProcess.Addr(), 4, uintptr(proc), uintptr(procInfoClass), uintptr(procInfo), uintptr(procInfoLen), 0, 0)
3422 if r0 != 0 {
3423 ntstatus = NTStatus(r0)
3424 }
3425 return
3426}
3427
3428func NtSetSystemInformation(sysInfoClass int32, sysInfo unsafe.Pointer, sysInfoLen uint32) (ntstatus error) {
3429 r0, _, _ := syscall.Syscall(procNtSetSystemInformation.Addr(), 3, uintptr(sysInfoClass), uintptr(sysInfo), uintptr(sysInfoLen))
3430 if r0 != 0 {
3431 ntstatus = NTStatus(r0)
3432 }
3433 return
3434}
3435
3436func RtlAddFunctionTable(functionTable *RUNTIME_FUNCTION, entryCount uint32, baseAddress uintptr) (ret bool) {
3437 r0, _, _ := syscall.Syscall(procRtlAddFunctionTable.Addr(), 3, uintptr(unsafe.Pointer(functionTable)), uintptr(entryCount), uintptr(baseAddress))
3438 ret = r0 != 0
3439 return
3440}
3441
3442func RtlDefaultNpAcl(acl **ACL) (ntstatus error) {
3443 r0, _, _ := syscall.Syscall(procRtlDefaultNpAcl.Addr(), 1, uintptr(unsafe.Pointer(acl)), 0, 0)
3444 if r0 != 0 {
3445 ntstatus = NTStatus(r0)
3446 }
3447 return
3448}
3449
3450func RtlDeleteFunctionTable(functionTable *RUNTIME_FUNCTION) (ret bool) {
3451 r0, _, _ := syscall.Syscall(procRtlDeleteFunctionTable.Addr(), 1, uintptr(unsafe.Pointer(functionTable)), 0, 0)
3452 ret = r0 != 0
3453 return
3454}
3455
3456func RtlDosPathNameToNtPathName(dosName *uint16, ntName *NTUnicodeString, ntFileNamePart *uint16, relativeName *RTL_RELATIVE_NAME) (ntstatus error) {
3457 r0, _, _ := syscall.Syscall6(procRtlDosPathNameToNtPathName_U_WithStatus.Addr(), 4, uintptr(unsafe.Pointer(dosName)), uintptr(unsafe.Pointer(ntName)), uintptr(unsafe.Pointer(ntFileNamePart)), uintptr(unsafe.Pointer(relativeName)), 0, 0)
3458 if r0 != 0 {
3459 ntstatus = NTStatus(r0)
3460 }
3461 return
3462}
3463
3464func RtlDosPathNameToRelativeNtPathName(dosName *uint16, ntName *NTUnicodeString, ntFileNamePart *uint16, relativeName *RTL_RELATIVE_NAME) (ntstatus error) {
3465 r0, _, _ := syscall.Syscall6(procRtlDosPathNameToRelativeNtPathName_U_WithStatus.Addr(), 4, uintptr(unsafe.Pointer(dosName)), uintptr(unsafe.Pointer(ntName)), uintptr(unsafe.Pointer(ntFileNamePart)), uintptr(unsafe.Pointer(relativeName)), 0, 0)
3466 if r0 != 0 {
3467 ntstatus = NTStatus(r0)
3468 }
3469 return
3470}
3471
3472func RtlGetCurrentPeb() (peb *PEB) {
3473 r0, _, _ := syscall.Syscall(procRtlGetCurrentPeb.Addr(), 0, 0, 0, 0)
3474 peb = (*PEB)(unsafe.Pointer(r0))
3475 return
3476}
3477
3478func rtlGetNtVersionNumbers(majorVersion *uint32, minorVersion *uint32, buildNumber *uint32) {
3479 syscall.Syscall(procRtlGetNtVersionNumbers.Addr(), 3, uintptr(unsafe.Pointer(majorVersion)), uintptr(unsafe.Pointer(minorVersion)), uintptr(unsafe.Pointer(buildNumber)))
3480 return
3481}
3482
3483func rtlGetVersion(info *OsVersionInfoEx) (ntstatus error) {
3484 r0, _, _ := syscall.Syscall(procRtlGetVersion.Addr(), 1, uintptr(unsafe.Pointer(info)), 0, 0)
3485 if r0 != 0 {
3486 ntstatus = NTStatus(r0)
3487 }
3488 return
3489}
3490
3491func RtlInitString(destinationString *NTString, sourceString *byte) {
3492 syscall.Syscall(procRtlInitString.Addr(), 2, uintptr(unsafe.Pointer(destinationString)), uintptr(unsafe.Pointer(sourceString)), 0)
3493 return
3494}
3495
3496func RtlInitUnicodeString(destinationString *NTUnicodeString, sourceString *uint16) {
3497 syscall.Syscall(procRtlInitUnicodeString.Addr(), 2, uintptr(unsafe.Pointer(destinationString)), uintptr(unsafe.Pointer(sourceString)), 0)
3498 return
3499}
3500
3501func rtlNtStatusToDosErrorNoTeb(ntstatus NTStatus) (ret syscall.Errno) {
3502 r0, _, _ := syscall.Syscall(procRtlNtStatusToDosErrorNoTeb.Addr(), 1, uintptr(ntstatus), 0, 0)
3503 ret = syscall.Errno(r0)
3504 return
3505}
3506
3507func clsidFromString(lpsz *uint16, pclsid *GUID) (ret error) {
3508 r0, _, _ := syscall.Syscall(procCLSIDFromString.Addr(), 2, uintptr(unsafe.Pointer(lpsz)), uintptr(unsafe.Pointer(pclsid)), 0)
3509 if r0 != 0 {
3510 ret = syscall.Errno(r0)
3511 }
3512 return
3513}
3514
3515func coCreateGuid(pguid *GUID) (ret error) {
3516 r0, _, _ := syscall.Syscall(procCoCreateGuid.Addr(), 1, uintptr(unsafe.Pointer(pguid)), 0, 0)
3517 if r0 != 0 {
3518 ret = syscall.Errno(r0)
3519 }
3520 return
3521}
3522
3523func CoGetObject(name *uint16, bindOpts *BIND_OPTS3, guid *GUID, functionTable **uintptr) (ret error) {
3524 r0, _, _ := syscall.Syscall6(procCoGetObject.Addr(), 4, uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(bindOpts)), uintptr(unsafe.Pointer(guid)), uintptr(unsafe.Pointer(functionTable)), 0, 0)
3525 if r0 != 0 {
3526 ret = syscall.Errno(r0)
3527 }
3528 return
3529}
3530
3531func CoInitializeEx(reserved uintptr, coInit uint32) (ret error) {
3532 r0, _, _ := syscall.Syscall(procCoInitializeEx.Addr(), 2, uintptr(reserved), uintptr(coInit), 0)
3533 if r0 != 0 {
3534 ret = syscall.Errno(r0)
3535 }
3536 return
3537}
3538
3539func CoTaskMemFree(address unsafe.Pointer) {
3540 syscall.Syscall(procCoTaskMemFree.Addr(), 1, uintptr(address), 0, 0)
3541 return
3542}
3543
3544func CoUninitialize() {
3545 syscall.Syscall(procCoUninitialize.Addr(), 0, 0, 0, 0)
3546 return
3547}
3548
3549func stringFromGUID2(rguid *GUID, lpsz *uint16, cchMax int32) (chars int32) {
3550 r0, _, _ := syscall.Syscall(procStringFromGUID2.Addr(), 3, uintptr(unsafe.Pointer(rguid)), uintptr(unsafe.Pointer(lpsz)), uintptr(cchMax))
3551 chars = int32(r0)
3552 return
3553}
3554
3555func EnumProcessModules(process Handle, module *Handle, cb uint32, cbNeeded *uint32) (err error) {
3556 r1, _, e1 := syscall.Syscall6(procEnumProcessModules.Addr(), 4, uintptr(process), uintptr(unsafe.Pointer(module)), uintptr(cb), uintptr(unsafe.Pointer(cbNeeded)), 0, 0)
3557 if r1 == 0 {
3558 err = errnoErr(e1)
3559 }
3560 return
3561}
3562
3563func EnumProcessModulesEx(process Handle, module *Handle, cb uint32, cbNeeded *uint32, filterFlag uint32) (err error) {
3564 r1, _, e1 := syscall.Syscall6(procEnumProcessModulesEx.Addr(), 5, uintptr(process), uintptr(unsafe.Pointer(module)), uintptr(cb), uintptr(unsafe.Pointer(cbNeeded)), uintptr(filterFlag), 0)
3565 if r1 == 0 {
3566 err = errnoErr(e1)
3567 }
3568 return
3569}
3570
3571func enumProcesses(processIds *uint32, nSize uint32, bytesReturned *uint32) (err error) {
3572 r1, _, e1 := syscall.Syscall(procEnumProcesses.Addr(), 3, uintptr(unsafe.Pointer(processIds)), uintptr(nSize), uintptr(unsafe.Pointer(bytesReturned)))
3573 if r1 == 0 {
3574 err = errnoErr(e1)
3575 }
3576 return
3577}
3578
3579func GetModuleBaseName(process Handle, module Handle, baseName *uint16, size uint32) (err error) {
3580 r1, _, e1 := syscall.Syscall6(procGetModuleBaseNameW.Addr(), 4, uintptr(process), uintptr(module), uintptr(unsafe.Pointer(baseName)), uintptr(size), 0, 0)
3581 if r1 == 0 {
3582 err = errnoErr(e1)
3583 }
3584 return
3585}
3586
3587func GetModuleFileNameEx(process Handle, module Handle, filename *uint16, size uint32) (err error) {
3588 r1, _, e1 := syscall.Syscall6(procGetModuleFileNameExW.Addr(), 4, uintptr(process), uintptr(module), uintptr(unsafe.Pointer(filename)), uintptr(size), 0, 0)
3589 if r1 == 0 {
3590 err = errnoErr(e1)
3591 }
3592 return
3593}
3594
3595func GetModuleInformation(process Handle, module Handle, modinfo *ModuleInfo, cb uint32) (err error) {
3596 r1, _, e1 := syscall.Syscall6(procGetModuleInformation.Addr(), 4, uintptr(process), uintptr(module), uintptr(unsafe.Pointer(modinfo)), uintptr(cb), 0, 0)
3597 if r1 == 0 {
3598 err = errnoErr(e1)
3599 }
3600 return
3601}
3602
3603func QueryWorkingSetEx(process Handle, pv uintptr, cb uint32) (err error) {
3604 r1, _, e1 := syscall.Syscall(procQueryWorkingSetEx.Addr(), 3, uintptr(process), uintptr(pv), uintptr(cb))
3605 if r1 == 0 {
3606 err = errnoErr(e1)
3607 }
3608 return
3609}
3610
3611func SubscribeServiceChangeNotifications(service Handle, eventType uint32, callback uintptr, callbackCtx uintptr, subscription *uintptr) (ret error) {
3612 ret = procSubscribeServiceChangeNotifications.Find()
3613 if ret != nil {
3614 return
3615 }
3616 r0, _, _ := syscall.Syscall6(procSubscribeServiceChangeNotifications.Addr(), 5, uintptr(service), uintptr(eventType), uintptr(callback), uintptr(callbackCtx), uintptr(unsafe.Pointer(subscription)), 0)
3617 if r0 != 0 {
3618 ret = syscall.Errno(r0)
3619 }
3620 return
3621}
3622
3623func UnsubscribeServiceChangeNotifications(subscription uintptr) (err error) {
3624 err = procUnsubscribeServiceChangeNotifications.Find()
3625 if err != nil {
3626 return
3627 }
3628 syscall.Syscall(procUnsubscribeServiceChangeNotifications.Addr(), 1, uintptr(subscription), 0, 0)
3629 return
3630}
3631
3632func GetUserNameEx(nameFormat uint32, nameBuffre *uint16, nSize *uint32) (err error) {
3633 r1, _, e1 := syscall.Syscall(procGetUserNameExW.Addr(), 3, uintptr(nameFormat), uintptr(unsafe.Pointer(nameBuffre)), uintptr(unsafe.Pointer(nSize)))
3634 if r1&0xff == 0 {
3635 err = errnoErr(e1)
3636 }
3637 return
3638}
3639
3640func TranslateName(accName *uint16, accNameFormat uint32, desiredNameFormat uint32, translatedName *uint16, nSize *uint32) (err error) {
3641 r1, _, e1 := syscall.Syscall6(procTranslateNameW.Addr(), 5, uintptr(unsafe.Pointer(accName)), uintptr(accNameFormat), uintptr(desiredNameFormat), uintptr(unsafe.Pointer(translatedName)), uintptr(unsafe.Pointer(nSize)), 0)
3642 if r1&0xff == 0 {
3643 err = errnoErr(e1)
3644 }
3645 return
3646}
3647
3648func SetupDiBuildDriverInfoList(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, driverType SPDIT) (err error) {
3649 r1, _, e1 := syscall.Syscall(procSetupDiBuildDriverInfoList.Addr(), 3, uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(driverType))
3650 if r1 == 0 {
3651 err = errnoErr(e1)
3652 }
3653 return
3654}
3655
3656func SetupDiCallClassInstaller(installFunction DI_FUNCTION, deviceInfoSet DevInfo, deviceInfoData *DevInfoData) (err error) {
3657 r1, _, e1 := syscall.Syscall(procSetupDiCallClassInstaller.Addr(), 3, uintptr(installFunction), uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)))
3658 if r1 == 0 {
3659 err = errnoErr(e1)
3660 }
3661 return
3662}
3663
3664func SetupDiCancelDriverInfoSearch(deviceInfoSet DevInfo) (err error) {
3665 r1, _, e1 := syscall.Syscall(procSetupDiCancelDriverInfoSearch.Addr(), 1, uintptr(deviceInfoSet), 0, 0)
3666 if r1 == 0 {
3667 err = errnoErr(e1)
3668 }
3669 return
3670}
3671
3672func setupDiClassGuidsFromNameEx(className *uint16, classGuidList *GUID, classGuidListSize uint32, requiredSize *uint32, machineName *uint16, reserved uintptr) (err error) {
3673 r1, _, e1 := syscall.Syscall6(procSetupDiClassGuidsFromNameExW.Addr(), 6, uintptr(unsafe.Pointer(className)), uintptr(unsafe.Pointer(classGuidList)), uintptr(classGuidListSize), uintptr(unsafe.Pointer(requiredSize)), uintptr(unsafe.Pointer(machineName)), uintptr(reserved))
3674 if r1 == 0 {
3675 err = errnoErr(e1)
3676 }
3677 return
3678}
3679
3680func setupDiClassNameFromGuidEx(classGUID *GUID, className *uint16, classNameSize uint32, requiredSize *uint32, machineName *uint16, reserved uintptr) (err error) {
3681 r1, _, e1 := syscall.Syscall6(procSetupDiClassNameFromGuidExW.Addr(), 6, uintptr(unsafe.Pointer(classGUID)), uintptr(unsafe.Pointer(className)), uintptr(classNameSize), uintptr(unsafe.Pointer(requiredSize)), uintptr(unsafe.Pointer(machineName)), uintptr(reserved))
3682 if r1 == 0 {
3683 err = errnoErr(e1)
3684 }
3685 return
3686}
3687
3688func setupDiCreateDeviceInfoListEx(classGUID *GUID, hwndParent uintptr, machineName *uint16, reserved uintptr) (handle DevInfo, err error) {
3689 r0, _, e1 := syscall.Syscall6(procSetupDiCreateDeviceInfoListExW.Addr(), 4, uintptr(unsafe.Pointer(classGUID)), uintptr(hwndParent), uintptr(unsafe.Pointer(machineName)), uintptr(reserved), 0, 0)
3690 handle = DevInfo(r0)
3691 if handle == DevInfo(InvalidHandle) {
3692 err = errnoErr(e1)
3693 }
3694 return
3695}
3696
3697func setupDiCreateDeviceInfo(deviceInfoSet DevInfo, DeviceName *uint16, classGUID *GUID, DeviceDescription *uint16, hwndParent uintptr, CreationFlags DICD, deviceInfoData *DevInfoData) (err error) {
3698 r1, _, e1 := syscall.Syscall9(procSetupDiCreateDeviceInfoW.Addr(), 7, uintptr(deviceInfoSet), uintptr(unsafe.Pointer(DeviceName)), uintptr(unsafe.Pointer(classGUID)), uintptr(unsafe.Pointer(DeviceDescription)), uintptr(hwndParent), uintptr(CreationFlags), uintptr(unsafe.Pointer(deviceInfoData)), 0, 0)
3699 if r1 == 0 {
3700 err = errnoErr(e1)
3701 }
3702 return
3703}
3704
3705func SetupDiDestroyDeviceInfoList(deviceInfoSet DevInfo) (err error) {
3706 r1, _, e1 := syscall.Syscall(procSetupDiDestroyDeviceInfoList.Addr(), 1, uintptr(deviceInfoSet), 0, 0)
3707 if r1 == 0 {
3708 err = errnoErr(e1)
3709 }
3710 return
3711}
3712
3713func SetupDiDestroyDriverInfoList(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, driverType SPDIT) (err error) {
3714 r1, _, e1 := syscall.Syscall(procSetupDiDestroyDriverInfoList.Addr(), 3, uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(driverType))
3715 if r1 == 0 {
3716 err = errnoErr(e1)
3717 }
3718 return
3719}
3720
3721func setupDiEnumDeviceInfo(deviceInfoSet DevInfo, memberIndex uint32, deviceInfoData *DevInfoData) (err error) {
3722 r1, _, e1 := syscall.Syscall(procSetupDiEnumDeviceInfo.Addr(), 3, uintptr(deviceInfoSet), uintptr(memberIndex), uintptr(unsafe.Pointer(deviceInfoData)))
3723 if r1 == 0 {
3724 err = errnoErr(e1)
3725 }
3726 return
3727}
3728
3729func setupDiEnumDriverInfo(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, driverType SPDIT, memberIndex uint32, driverInfoData *DrvInfoData) (err error) {
3730 r1, _, e1 := syscall.Syscall6(procSetupDiEnumDriverInfoW.Addr(), 5, uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(driverType), uintptr(memberIndex), uintptr(unsafe.Pointer(driverInfoData)), 0)
3731 if r1 == 0 {
3732 err = errnoErr(e1)
3733 }
3734 return
3735}
3736
3737func setupDiGetClassDevsEx(classGUID *GUID, Enumerator *uint16, hwndParent uintptr, Flags DIGCF, deviceInfoSet DevInfo, machineName *uint16, reserved uintptr) (handle DevInfo, err error) {
3738 r0, _, e1 := syscall.Syscall9(procSetupDiGetClassDevsExW.Addr(), 7, uintptr(unsafe.Pointer(classGUID)), uintptr(unsafe.Pointer(Enumerator)), uintptr(hwndParent), uintptr(Flags), uintptr(deviceInfoSet), uintptr(unsafe.Pointer(machineName)), uintptr(reserved), 0, 0)
3739 handle = DevInfo(r0)
3740 if handle == DevInfo(InvalidHandle) {
3741 err = errnoErr(e1)
3742 }
3743 return
3744}
3745
3746func SetupDiGetClassInstallParams(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, classInstallParams *ClassInstallHeader, classInstallParamsSize uint32, requiredSize *uint32) (err error) {
3747 r1, _, e1 := syscall.Syscall6(procSetupDiGetClassInstallParamsW.Addr(), 5, uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(unsafe.Pointer(classInstallParams)), uintptr(classInstallParamsSize), uintptr(unsafe.Pointer(requiredSize)), 0)
3748 if r1 == 0 {
3749 err = errnoErr(e1)
3750 }
3751 return
3752}
3753
3754func setupDiGetDeviceInfoListDetail(deviceInfoSet DevInfo, deviceInfoSetDetailData *DevInfoListDetailData) (err error) {
3755 r1, _, e1 := syscall.Syscall(procSetupDiGetDeviceInfoListDetailW.Addr(), 2, uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoSetDetailData)), 0)
3756 if r1 == 0 {
3757 err = errnoErr(e1)
3758 }
3759 return
3760}
3761
3762func setupDiGetDeviceInstallParams(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, deviceInstallParams *DevInstallParams) (err error) {
3763 r1, _, e1 := syscall.Syscall(procSetupDiGetDeviceInstallParamsW.Addr(), 3, uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(unsafe.Pointer(deviceInstallParams)))
3764 if r1 == 0 {
3765 err = errnoErr(e1)
3766 }
3767 return
3768}
3769
3770func setupDiGetDeviceInstanceId(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, instanceId *uint16, instanceIdSize uint32, instanceIdRequiredSize *uint32) (err error) {
3771 r1, _, e1 := syscall.Syscall6(procSetupDiGetDeviceInstanceIdW.Addr(), 5, uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(unsafe.Pointer(instanceId)), uintptr(instanceIdSize), uintptr(unsafe.Pointer(instanceIdRequiredSize)), 0)
3772 if r1 == 0 {
3773 err = errnoErr(e1)
3774 }
3775 return
3776}
3777
3778func setupDiGetDeviceProperty(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, propertyKey *DEVPROPKEY, propertyType *DEVPROPTYPE, propertyBuffer *byte, propertyBufferSize uint32, requiredSize *uint32, flags uint32) (err error) {
3779 r1, _, e1 := syscall.Syscall9(procSetupDiGetDevicePropertyW.Addr(), 8, uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(unsafe.Pointer(propertyKey)), uintptr(unsafe.Pointer(propertyType)), uintptr(unsafe.Pointer(propertyBuffer)), uintptr(propertyBufferSize), uintptr(unsafe.Pointer(requiredSize)), uintptr(flags), 0)
3780 if r1 == 0 {
3781 err = errnoErr(e1)
3782 }
3783 return
3784}
3785
3786func setupDiGetDeviceRegistryProperty(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, property SPDRP, propertyRegDataType *uint32, propertyBuffer *byte, propertyBufferSize uint32, requiredSize *uint32) (err error) {
3787 r1, _, e1 := syscall.Syscall9(procSetupDiGetDeviceRegistryPropertyW.Addr(), 7, uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(property), uintptr(unsafe.Pointer(propertyRegDataType)), uintptr(unsafe.Pointer(propertyBuffer)), uintptr(propertyBufferSize), uintptr(unsafe.Pointer(requiredSize)), 0, 0)
3788 if r1 == 0 {
3789 err = errnoErr(e1)
3790 }
3791 return
3792}
3793
3794func setupDiGetDriverInfoDetail(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, driverInfoData *DrvInfoData, driverInfoDetailData *DrvInfoDetailData, driverInfoDetailDataSize uint32, requiredSize *uint32) (err error) {
3795 r1, _, e1 := syscall.Syscall6(procSetupDiGetDriverInfoDetailW.Addr(), 6, uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(unsafe.Pointer(driverInfoData)), uintptr(unsafe.Pointer(driverInfoDetailData)), uintptr(driverInfoDetailDataSize), uintptr(unsafe.Pointer(requiredSize)))
3796 if r1 == 0 {
3797 err = errnoErr(e1)
3798 }
3799 return
3800}
3801
3802func setupDiGetSelectedDevice(deviceInfoSet DevInfo, deviceInfoData *DevInfoData) (err error) {
3803 r1, _, e1 := syscall.Syscall(procSetupDiGetSelectedDevice.Addr(), 2, uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), 0)
3804 if r1 == 0 {
3805 err = errnoErr(e1)
3806 }
3807 return
3808}
3809
3810func setupDiGetSelectedDriver(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, driverInfoData *DrvInfoData) (err error) {
3811 r1, _, e1 := syscall.Syscall(procSetupDiGetSelectedDriverW.Addr(), 3, uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(unsafe.Pointer(driverInfoData)))
3812 if r1 == 0 {
3813 err = errnoErr(e1)
3814 }
3815 return
3816}
3817
3818func SetupDiOpenDevRegKey(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, Scope DICS_FLAG, HwProfile uint32, KeyType DIREG, samDesired uint32) (key Handle, err error) {
3819 r0, _, e1 := syscall.Syscall6(procSetupDiOpenDevRegKey.Addr(), 6, uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(Scope), uintptr(HwProfile), uintptr(KeyType), uintptr(samDesired))
3820 key = Handle(r0)
3821 if key == InvalidHandle {
3822 err = errnoErr(e1)
3823 }
3824 return
3825}
3826
3827func SetupDiSetClassInstallParams(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, classInstallParams *ClassInstallHeader, classInstallParamsSize uint32) (err error) {
3828 r1, _, e1 := syscall.Syscall6(procSetupDiSetClassInstallParamsW.Addr(), 4, uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(unsafe.Pointer(classInstallParams)), uintptr(classInstallParamsSize), 0, 0)
3829 if r1 == 0 {
3830 err = errnoErr(e1)
3831 }
3832 return
3833}
3834
3835func SetupDiSetDeviceInstallParams(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, deviceInstallParams *DevInstallParams) (err error) {
3836 r1, _, e1 := syscall.Syscall(procSetupDiSetDeviceInstallParamsW.Addr(), 3, uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(unsafe.Pointer(deviceInstallParams)))
3837 if r1 == 0 {
3838 err = errnoErr(e1)
3839 }
3840 return
3841}
3842
3843func setupDiSetDeviceRegistryProperty(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, property SPDRP, propertyBuffer *byte, propertyBufferSize uint32) (err error) {
3844 r1, _, e1 := syscall.Syscall6(procSetupDiSetDeviceRegistryPropertyW.Addr(), 5, uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(property), uintptr(unsafe.Pointer(propertyBuffer)), uintptr(propertyBufferSize), 0)
3845 if r1 == 0 {
3846 err = errnoErr(e1)
3847 }
3848 return
3849}
3850
3851func SetupDiSetSelectedDevice(deviceInfoSet DevInfo, deviceInfoData *DevInfoData) (err error) {
3852 r1, _, e1 := syscall.Syscall(procSetupDiSetSelectedDevice.Addr(), 2, uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), 0)
3853 if r1 == 0 {
3854 err = errnoErr(e1)
3855 }
3856 return
3857}
3858
3859func SetupDiSetSelectedDriver(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, driverInfoData *DrvInfoData) (err error) {
3860 r1, _, e1 := syscall.Syscall(procSetupDiSetSelectedDriverW.Addr(), 3, uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(unsafe.Pointer(driverInfoData)))
3861 if r1 == 0 {
3862 err = errnoErr(e1)
3863 }
3864 return
3865}
3866
3867func setupUninstallOEMInf(infFileName *uint16, flags SUOI, reserved uintptr) (err error) {
3868 r1, _, e1 := syscall.Syscall(procSetupUninstallOEMInfW.Addr(), 3, uintptr(unsafe.Pointer(infFileName)), uintptr(flags), uintptr(reserved))
3869 if r1 == 0 {
3870 err = errnoErr(e1)
3871 }
3872 return
3873}
3874
3875func commandLineToArgv(cmd *uint16, argc *int32) (argv **uint16, err error) {
3876 r0, _, e1 := syscall.Syscall(procCommandLineToArgvW.Addr(), 2, uintptr(unsafe.Pointer(cmd)), uintptr(unsafe.Pointer(argc)), 0)
3877 argv = (**uint16)(unsafe.Pointer(r0))
3878 if argv == nil {
3879 err = errnoErr(e1)
3880 }
3881 return
3882}
3883
3884func shGetKnownFolderPath(id *KNOWNFOLDERID, flags uint32, token Token, path **uint16) (ret error) {
3885 r0, _, _ := syscall.Syscall6(procSHGetKnownFolderPath.Addr(), 4, uintptr(unsafe.Pointer(id)), uintptr(flags), uintptr(token), uintptr(unsafe.Pointer(path)), 0, 0)
3886 if r0 != 0 {
3887 ret = syscall.Errno(r0)
3888 }
3889 return
3890}
3891
3892func ShellExecute(hwnd Handle, verb *uint16, file *uint16, args *uint16, cwd *uint16, showCmd int32) (err error) {
3893 r1, _, e1 := syscall.Syscall6(procShellExecuteW.Addr(), 6, uintptr(hwnd), uintptr(unsafe.Pointer(verb)), uintptr(unsafe.Pointer(file)), uintptr(unsafe.Pointer(args)), uintptr(unsafe.Pointer(cwd)), uintptr(showCmd))
3894 if r1 <= 32 {
3895 err = errnoErr(e1)
3896 }
3897 return
3898}
3899
3900func EnumChildWindows(hwnd HWND, enumFunc uintptr, param unsafe.Pointer) {
3901 syscall.Syscall(procEnumChildWindows.Addr(), 3, uintptr(hwnd), uintptr(enumFunc), uintptr(param))
3902 return
3903}
3904
3905func EnumWindows(enumFunc uintptr, param unsafe.Pointer) (err error) {
3906 r1, _, e1 := syscall.Syscall(procEnumWindows.Addr(), 2, uintptr(enumFunc), uintptr(param), 0)
3907 if r1 == 0 {
3908 err = errnoErr(e1)
3909 }
3910 return
3911}
3912
3913func ExitWindowsEx(flags uint32, reason uint32) (err error) {
3914 r1, _, e1 := syscall.Syscall(procExitWindowsEx.Addr(), 2, uintptr(flags), uintptr(reason), 0)
3915 if r1 == 0 {
3916 err = errnoErr(e1)
3917 }
3918 return
3919}
3920
3921func GetClassName(hwnd HWND, className *uint16, maxCount int32) (copied int32, err error) {
3922 r0, _, e1 := syscall.Syscall(procGetClassNameW.Addr(), 3, uintptr(hwnd), uintptr(unsafe.Pointer(className)), uintptr(maxCount))
3923 copied = int32(r0)
3924 if copied == 0 {
3925 err = errnoErr(e1)
3926 }
3927 return
3928}
3929
3930func GetDesktopWindow() (hwnd HWND) {
3931 r0, _, _ := syscall.Syscall(procGetDesktopWindow.Addr(), 0, 0, 0, 0)
3932 hwnd = HWND(r0)
3933 return
3934}
3935
3936func GetForegroundWindow() (hwnd HWND) {
3937 r0, _, _ := syscall.Syscall(procGetForegroundWindow.Addr(), 0, 0, 0, 0)
3938 hwnd = HWND(r0)
3939 return
3940}
3941
3942func GetGUIThreadInfo(thread uint32, info *GUIThreadInfo) (err error) {
3943 r1, _, e1 := syscall.Syscall(procGetGUIThreadInfo.Addr(), 2, uintptr(thread), uintptr(unsafe.Pointer(info)), 0)
3944 if r1 == 0 {
3945 err = errnoErr(e1)
3946 }
3947 return
3948}
3949
3950func GetShellWindow() (shellWindow HWND) {
3951 r0, _, _ := syscall.Syscall(procGetShellWindow.Addr(), 0, 0, 0, 0)
3952 shellWindow = HWND(r0)
3953 return
3954}
3955
3956func GetWindowThreadProcessId(hwnd HWND, pid *uint32) (tid uint32, err error) {
3957 r0, _, e1 := syscall.Syscall(procGetWindowThreadProcessId.Addr(), 2, uintptr(hwnd), uintptr(unsafe.Pointer(pid)), 0)
3958 tid = uint32(r0)
3959 if tid == 0 {
3960 err = errnoErr(e1)
3961 }
3962 return
3963}
3964
3965func IsWindow(hwnd HWND) (isWindow bool) {
3966 r0, _, _ := syscall.Syscall(procIsWindow.Addr(), 1, uintptr(hwnd), 0, 0)
3967 isWindow = r0 != 0
3968 return
3969}
3970
3971func IsWindowUnicode(hwnd HWND) (isUnicode bool) {
3972 r0, _, _ := syscall.Syscall(procIsWindowUnicode.Addr(), 1, uintptr(hwnd), 0, 0)
3973 isUnicode = r0 != 0
3974 return
3975}
3976
3977func IsWindowVisible(hwnd HWND) (isVisible bool) {
3978 r0, _, _ := syscall.Syscall(procIsWindowVisible.Addr(), 1, uintptr(hwnd), 0, 0)
3979 isVisible = r0 != 0
3980 return
3981}
3982
3983func MessageBox(hwnd HWND, text *uint16, caption *uint16, boxtype uint32) (ret int32, err error) {
3984 r0, _, e1 := syscall.Syscall6(procMessageBoxW.Addr(), 4, uintptr(hwnd), uintptr(unsafe.Pointer(text)), uintptr(unsafe.Pointer(caption)), uintptr(boxtype), 0, 0)
3985 ret = int32(r0)
3986 if ret == 0 {
3987 err = errnoErr(e1)
3988 }
3989 return
3990}
3991
3992func CreateEnvironmentBlock(block **uint16, token Token, inheritExisting bool) (err error) {
3993 var _p0 uint32
3994 if inheritExisting {
3995 _p0 = 1
3996 }
3997 r1, _, e1 := syscall.Syscall(procCreateEnvironmentBlock.Addr(), 3, uintptr(unsafe.Pointer(block)), uintptr(token), uintptr(_p0))
3998 if r1 == 0 {
3999 err = errnoErr(e1)
4000 }
4001 return
4002}
4003
4004func DestroyEnvironmentBlock(block *uint16) (err error) {
4005 r1, _, e1 := syscall.Syscall(procDestroyEnvironmentBlock.Addr(), 1, uintptr(unsafe.Pointer(block)), 0, 0)
4006 if r1 == 0 {
4007 err = errnoErr(e1)
4008 }
4009 return
4010}
4011
4012func GetUserProfileDirectory(t Token, dir *uint16, dirLen *uint32) (err error) {
4013 r1, _, e1 := syscall.Syscall(procGetUserProfileDirectoryW.Addr(), 3, uintptr(t), uintptr(unsafe.Pointer(dir)), uintptr(unsafe.Pointer(dirLen)))
4014 if r1 == 0 {
4015 err = errnoErr(e1)
4016 }
4017 return
4018}
4019
4020func GetFileVersionInfoSize(filename string, zeroHandle *Handle) (bufSize uint32, err error) {
4021 var _p0 *uint16
4022 _p0, err = syscall.UTF16PtrFromString(filename)
4023 if err != nil {
4024 return
4025 }
4026 return _GetFileVersionInfoSize(_p0, zeroHandle)
4027}
4028
4029func _GetFileVersionInfoSize(filename *uint16, zeroHandle *Handle) (bufSize uint32, err error) {
4030 r0, _, e1 := syscall.Syscall(procGetFileVersionInfoSizeW.Addr(), 2, uintptr(unsafe.Pointer(filename)), uintptr(unsafe.Pointer(zeroHandle)), 0)
4031 bufSize = uint32(r0)
4032 if bufSize == 0 {
4033 err = errnoErr(e1)
4034 }
4035 return
4036}
4037
4038func GetFileVersionInfo(filename string, handle uint32, bufSize uint32, buffer unsafe.Pointer) (err error) {
4039 var _p0 *uint16
4040 _p0, err = syscall.UTF16PtrFromString(filename)
4041 if err != nil {
4042 return
4043 }
4044 return _GetFileVersionInfo(_p0, handle, bufSize, buffer)
4045}
4046
4047func _GetFileVersionInfo(filename *uint16, handle uint32, bufSize uint32, buffer unsafe.Pointer) (err error) {
4048 r1, _, e1 := syscall.Syscall6(procGetFileVersionInfoW.Addr(), 4, uintptr(unsafe.Pointer(filename)), uintptr(handle), uintptr(bufSize), uintptr(buffer), 0, 0)
4049 if r1 == 0 {
4050 err = errnoErr(e1)
4051 }
4052 return
4053}
4054
4055func VerQueryValue(block unsafe.Pointer, subBlock string, pointerToBufferPointer unsafe.Pointer, bufSize *uint32) (err error) {
4056 var _p0 *uint16
4057 _p0, err = syscall.UTF16PtrFromString(subBlock)
4058 if err != nil {
4059 return
4060 }
4061 return _VerQueryValue(block, _p0, pointerToBufferPointer, bufSize)
4062}
4063
4064func _VerQueryValue(block unsafe.Pointer, subBlock *uint16, pointerToBufferPointer unsafe.Pointer, bufSize *uint32) (err error) {
4065 r1, _, e1 := syscall.Syscall6(procVerQueryValueW.Addr(), 4, uintptr(block), uintptr(unsafe.Pointer(subBlock)), uintptr(pointerToBufferPointer), uintptr(unsafe.Pointer(bufSize)), 0, 0)
4066 if r1 == 0 {
4067 err = errnoErr(e1)
4068 }
4069 return
4070}
4071
4072func TimeBeginPeriod(period uint32) (err error) {
4073 r1, _, e1 := syscall.Syscall(proctimeBeginPeriod.Addr(), 1, uintptr(period), 0, 0)
4074 if r1 != 0 {
4075 err = errnoErr(e1)
4076 }
4077 return
4078}
4079
4080func TimeEndPeriod(period uint32) (err error) {
4081 r1, _, e1 := syscall.Syscall(proctimeEndPeriod.Addr(), 1, uintptr(period), 0, 0)
4082 if r1 != 0 {
4083 err = errnoErr(e1)
4084 }
4085 return
4086}
4087
4088func WinVerifyTrustEx(hwnd HWND, actionId *GUID, data *WinTrustData) (ret error) {
4089 r0, _, _ := syscall.Syscall(procWinVerifyTrustEx.Addr(), 3, uintptr(hwnd), uintptr(unsafe.Pointer(actionId)), uintptr(unsafe.Pointer(data)))
4090 if r0 != 0 {
4091 ret = syscall.Errno(r0)
4092 }
4093 return
4094}
4095
4096func FreeAddrInfoW(addrinfo *AddrinfoW) {
4097 syscall.Syscall(procFreeAddrInfoW.Addr(), 1, uintptr(unsafe.Pointer(addrinfo)), 0, 0)
4098 return
4099}
4100
4101func GetAddrInfoW(nodename *uint16, servicename *uint16, hints *AddrinfoW, result **AddrinfoW) (sockerr error) {
4102 r0, _, _ := syscall.Syscall6(procGetAddrInfoW.Addr(), 4, uintptr(unsafe.Pointer(nodename)), uintptr(unsafe.Pointer(servicename)), uintptr(unsafe.Pointer(hints)), uintptr(unsafe.Pointer(result)), 0, 0)
4103 if r0 != 0 {
4104 sockerr = syscall.Errno(r0)
4105 }
4106 return
4107}
4108
4109func WSACleanup() (err error) {
4110 r1, _, e1 := syscall.Syscall(procWSACleanup.Addr(), 0, 0, 0, 0)
4111 if r1 == socket_error {
4112 err = errnoErr(e1)
4113 }
4114 return
4115}
4116
4117func WSAEnumProtocols(protocols *int32, protocolBuffer *WSAProtocolInfo, bufferLength *uint32) (n int32, err error) {
4118 r0, _, e1 := syscall.Syscall(procWSAEnumProtocolsW.Addr(), 3, uintptr(unsafe.Pointer(protocols)), uintptr(unsafe.Pointer(protocolBuffer)), uintptr(unsafe.Pointer(bufferLength)))
4119 n = int32(r0)
4120 if n == -1 {
4121 err = errnoErr(e1)
4122 }
4123 return
4124}
4125
4126func WSAGetOverlappedResult(h Handle, o *Overlapped, bytes *uint32, wait bool, flags *uint32) (err error) {
4127 var _p0 uint32
4128 if wait {
4129 _p0 = 1
4130 }
4131 r1, _, e1 := syscall.Syscall6(procWSAGetOverlappedResult.Addr(), 5, uintptr(h), uintptr(unsafe.Pointer(o)), uintptr(unsafe.Pointer(bytes)), uintptr(_p0), uintptr(unsafe.Pointer(flags)), 0)
4132 if r1 == 0 {
4133 err = errnoErr(e1)
4134 }
4135 return
4136}
4137
4138func WSAIoctl(s Handle, iocc uint32, inbuf *byte, cbif uint32, outbuf *byte, cbob uint32, cbbr *uint32, overlapped *Overlapped, completionRoutine uintptr) (err error) {
4139 r1, _, e1 := syscall.Syscall9(procWSAIoctl.Addr(), 9, uintptr(s), uintptr(iocc), uintptr(unsafe.Pointer(inbuf)), uintptr(cbif), uintptr(unsafe.Pointer(outbuf)), uintptr(cbob), uintptr(unsafe.Pointer(cbbr)), uintptr(unsafe.Pointer(overlapped)), uintptr(completionRoutine))
4140 if r1 == socket_error {
4141 err = errnoErr(e1)
4142 }
4143 return
4144}
4145
4146func WSALookupServiceBegin(querySet *WSAQUERYSET, flags uint32, handle *Handle) (err error) {
4147 r1, _, e1 := syscall.Syscall(procWSALookupServiceBeginW.Addr(), 3, uintptr(unsafe.Pointer(querySet)), uintptr(flags), uintptr(unsafe.Pointer(handle)))
4148 if r1 == socket_error {
4149 err = errnoErr(e1)
4150 }
4151 return
4152}
4153
4154func WSALookupServiceEnd(handle Handle) (err error) {
4155 r1, _, e1 := syscall.Syscall(procWSALookupServiceEnd.Addr(), 1, uintptr(handle), 0, 0)
4156 if r1 == socket_error {
4157 err = errnoErr(e1)
4158 }
4159 return
4160}
4161
4162func WSALookupServiceNext(handle Handle, flags uint32, size *int32, querySet *WSAQUERYSET) (err error) {
4163 r1, _, e1 := syscall.Syscall6(procWSALookupServiceNextW.Addr(), 4, uintptr(handle), uintptr(flags), uintptr(unsafe.Pointer(size)), uintptr(unsafe.Pointer(querySet)), 0, 0)
4164 if r1 == socket_error {
4165 err = errnoErr(e1)
4166 }
4167 return
4168}
4169
4170func WSARecv(s Handle, bufs *WSABuf, bufcnt uint32, recvd *uint32, flags *uint32, overlapped *Overlapped, croutine *byte) (err error) {
4171 r1, _, e1 := syscall.Syscall9(procWSARecv.Addr(), 7, uintptr(s), uintptr(unsafe.Pointer(bufs)), uintptr(bufcnt), uintptr(unsafe.Pointer(recvd)), uintptr(unsafe.Pointer(flags)), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(croutine)), 0, 0)
4172 if r1 == socket_error {
4173 err = errnoErr(e1)
4174 }
4175 return
4176}
4177
4178func WSARecvFrom(s Handle, bufs *WSABuf, bufcnt uint32, recvd *uint32, flags *uint32, from *RawSockaddrAny, fromlen *int32, overlapped *Overlapped, croutine *byte) (err error) {
4179 r1, _, e1 := syscall.Syscall9(procWSARecvFrom.Addr(), 9, uintptr(s), uintptr(unsafe.Pointer(bufs)), uintptr(bufcnt), uintptr(unsafe.Pointer(recvd)), uintptr(unsafe.Pointer(flags)), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(croutine)))
4180 if r1 == socket_error {
4181 err = errnoErr(e1)
4182 }
4183 return
4184}
4185
4186func WSASend(s Handle, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, overlapped *Overlapped, croutine *byte) (err error) {
4187 r1, _, e1 := syscall.Syscall9(procWSASend.Addr(), 7, uintptr(s), uintptr(unsafe.Pointer(bufs)), uintptr(bufcnt), uintptr(unsafe.Pointer(sent)), uintptr(flags), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(croutine)), 0, 0)
4188 if r1 == socket_error {
4189 err = errnoErr(e1)
4190 }
4191 return
4192}
4193
4194func WSASendTo(s Handle, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, to *RawSockaddrAny, tolen int32, overlapped *Overlapped, croutine *byte) (err error) {
4195 r1, _, e1 := syscall.Syscall9(procWSASendTo.Addr(), 9, uintptr(s), uintptr(unsafe.Pointer(bufs)), uintptr(bufcnt), uintptr(unsafe.Pointer(sent)), uintptr(flags), uintptr(unsafe.Pointer(to)), uintptr(tolen), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(croutine)))
4196 if r1 == socket_error {
4197 err = errnoErr(e1)
4198 }
4199 return
4200}
4201
4202func WSASocket(af int32, typ int32, protocol int32, protoInfo *WSAProtocolInfo, group uint32, flags uint32) (handle Handle, err error) {
4203 r0, _, e1 := syscall.Syscall6(procWSASocketW.Addr(), 6, uintptr(af), uintptr(typ), uintptr(protocol), uintptr(unsafe.Pointer(protoInfo)), uintptr(group), uintptr(flags))
4204 handle = Handle(r0)
4205 if handle == InvalidHandle {
4206 err = errnoErr(e1)
4207 }
4208 return
4209}
4210
4211func WSAStartup(verreq uint32, data *WSAData) (sockerr error) {
4212 r0, _, _ := syscall.Syscall(procWSAStartup.Addr(), 2, uintptr(verreq), uintptr(unsafe.Pointer(data)), 0)
4213 if r0 != 0 {
4214 sockerr = syscall.Errno(r0)
4215 }
4216 return
4217}
4218
4219func bind(s Handle, name unsafe.Pointer, namelen int32) (err error) {
4220 r1, _, e1 := syscall.Syscall(procbind.Addr(), 3, uintptr(s), uintptr(name), uintptr(namelen))
4221 if r1 == socket_error {
4222 err = errnoErr(e1)
4223 }
4224 return
4225}
4226
4227func Closesocket(s Handle) (err error) {
4228 r1, _, e1 := syscall.Syscall(procclosesocket.Addr(), 1, uintptr(s), 0, 0)
4229 if r1 == socket_error {
4230 err = errnoErr(e1)
4231 }
4232 return
4233}
4234
4235func connect(s Handle, name unsafe.Pointer, namelen int32) (err error) {
4236 r1, _, e1 := syscall.Syscall(procconnect.Addr(), 3, uintptr(s), uintptr(name), uintptr(namelen))
4237 if r1 == socket_error {
4238 err = errnoErr(e1)
4239 }
4240 return
4241}
4242
4243func GetHostByName(name string) (h *Hostent, err error) {
4244 var _p0 *byte
4245 _p0, err = syscall.BytePtrFromString(name)
4246 if err != nil {
4247 return
4248 }
4249 return _GetHostByName(_p0)
4250}
4251
4252func _GetHostByName(name *byte) (h *Hostent, err error) {
4253 r0, _, e1 := syscall.Syscall(procgethostbyname.Addr(), 1, uintptr(unsafe.Pointer(name)), 0, 0)
4254 h = (*Hostent)(unsafe.Pointer(r0))
4255 if h == nil {
4256 err = errnoErr(e1)
4257 }
4258 return
4259}
4260
4261func getpeername(s Handle, rsa *RawSockaddrAny, addrlen *int32) (err error) {
4262 r1, _, e1 := syscall.Syscall(procgetpeername.Addr(), 3, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
4263 if r1 == socket_error {
4264 err = errnoErr(e1)
4265 }
4266 return
4267}
4268
4269func GetProtoByName(name string) (p *Protoent, err error) {
4270 var _p0 *byte
4271 _p0, err = syscall.BytePtrFromString(name)
4272 if err != nil {
4273 return
4274 }
4275 return _GetProtoByName(_p0)
4276}
4277
4278func _GetProtoByName(name *byte) (p *Protoent, err error) {
4279 r0, _, e1 := syscall.Syscall(procgetprotobyname.Addr(), 1, uintptr(unsafe.Pointer(name)), 0, 0)
4280 p = (*Protoent)(unsafe.Pointer(r0))
4281 if p == nil {
4282 err = errnoErr(e1)
4283 }
4284 return
4285}
4286
4287func GetServByName(name string, proto string) (s *Servent, err error) {
4288 var _p0 *byte
4289 _p0, err = syscall.BytePtrFromString(name)
4290 if err != nil {
4291 return
4292 }
4293 var _p1 *byte
4294 _p1, err = syscall.BytePtrFromString(proto)
4295 if err != nil {
4296 return
4297 }
4298 return _GetServByName(_p0, _p1)
4299}
4300
4301func _GetServByName(name *byte, proto *byte) (s *Servent, err error) {
4302 r0, _, e1 := syscall.Syscall(procgetservbyname.Addr(), 2, uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(proto)), 0)
4303 s = (*Servent)(unsafe.Pointer(r0))
4304 if s == nil {
4305 err = errnoErr(e1)
4306 }
4307 return
4308}
4309
4310func getsockname(s Handle, rsa *RawSockaddrAny, addrlen *int32) (err error) {
4311 r1, _, e1 := syscall.Syscall(procgetsockname.Addr(), 3, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
4312 if r1 == socket_error {
4313 err = errnoErr(e1)
4314 }
4315 return
4316}
4317
4318func Getsockopt(s Handle, level int32, optname int32, optval *byte, optlen *int32) (err error) {
4319 r1, _, e1 := syscall.Syscall6(procgetsockopt.Addr(), 5, uintptr(s), uintptr(level), uintptr(optname), uintptr(unsafe.Pointer(optval)), uintptr(unsafe.Pointer(optlen)), 0)
4320 if r1 == socket_error {
4321 err = errnoErr(e1)
4322 }
4323 return
4324}
4325
4326func listen(s Handle, backlog int32) (err error) {
4327 r1, _, e1 := syscall.Syscall(proclisten.Addr(), 2, uintptr(s), uintptr(backlog), 0)
4328 if r1 == socket_error {
4329 err = errnoErr(e1)
4330 }
4331 return
4332}
4333
4334func Ntohs(netshort uint16) (u uint16) {
4335 r0, _, _ := syscall.Syscall(procntohs.Addr(), 1, uintptr(netshort), 0, 0)
4336 u = uint16(r0)
4337 return
4338}
4339
4340func recvfrom(s Handle, buf []byte, flags int32, from *RawSockaddrAny, fromlen *int32) (n int32, err error) {
4341 var _p0 *byte
4342 if len(buf) > 0 {
4343 _p0 = &buf[0]
4344 }
4345 r0, _, e1 := syscall.Syscall6(procrecvfrom.Addr(), 6, uintptr(s), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
4346 n = int32(r0)
4347 if n == -1 {
4348 err = errnoErr(e1)
4349 }
4350 return
4351}
4352
4353func sendto(s Handle, buf []byte, flags int32, to unsafe.Pointer, tolen int32) (err error) {
4354 var _p0 *byte
4355 if len(buf) > 0 {
4356 _p0 = &buf[0]
4357 }
4358 r1, _, e1 := syscall.Syscall6(procsendto.Addr(), 6, uintptr(s), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(tolen))
4359 if r1 == socket_error {
4360 err = errnoErr(e1)
4361 }
4362 return
4363}
4364
4365func Setsockopt(s Handle, level int32, optname int32, optval *byte, optlen int32) (err error) {
4366 r1, _, e1 := syscall.Syscall6(procsetsockopt.Addr(), 5, uintptr(s), uintptr(level), uintptr(optname), uintptr(unsafe.Pointer(optval)), uintptr(optlen), 0)
4367 if r1 == socket_error {
4368 err = errnoErr(e1)
4369 }
4370 return
4371}
4372
4373func shutdown(s Handle, how int32) (err error) {
4374 r1, _, e1 := syscall.Syscall(procshutdown.Addr(), 2, uintptr(s), uintptr(how), 0)
4375 if r1 == socket_error {
4376 err = errnoErr(e1)
4377 }
4378 return
4379}
4380
4381func socket(af int32, typ int32, protocol int32) (handle Handle, err error) {
4382 r0, _, e1 := syscall.Syscall(procsocket.Addr(), 3, uintptr(af), uintptr(typ), uintptr(protocol))
4383 handle = Handle(r0)
4384 if handle == InvalidHandle {
4385 err = errnoErr(e1)
4386 }
4387 return
4388}
4389
4390func WTSEnumerateSessions(handle Handle, reserved uint32, version uint32, sessions **WTS_SESSION_INFO, count *uint32) (err error) {
4391 r1, _, e1 := syscall.Syscall6(procWTSEnumerateSessionsW.Addr(), 5, uintptr(handle), uintptr(reserved), uintptr(version), uintptr(unsafe.Pointer(sessions)), uintptr(unsafe.Pointer(count)), 0)
4392 if r1 == 0 {
4393 err = errnoErr(e1)
4394 }
4395 return
4396}
4397
4398func WTSFreeMemory(ptr uintptr) {
4399 syscall.Syscall(procWTSFreeMemory.Addr(), 1, uintptr(ptr), 0, 0)
4400 return
4401}
4402
4403func WTSQueryUserToken(session uint32, token *Token) (err error) {
4404 r1, _, e1 := syscall.Syscall(procWTSQueryUserToken.Addr(), 2, uintptr(session), uintptr(unsafe.Pointer(token)), 0)
4405 if r1 == 0 {
4406 err = errnoErr(e1)
4407 }
4408 return
4409}