Debian Codegraph @

.cargo/vendor/windows-sys/src/Windows/Win32/System/Kernel/mod.rs

raw
1 ::windows_targets::link!("ntdll.dll" "system" fn RtlFirstEntrySList(listhead : *const SLIST_HEADER) -> *mut SLIST_ENTRY);
2 ::windows_targets::link!("ntdll.dll" "system" fn RtlInitializeSListHead(listhead : *mut SLIST_HEADER) -> ());
3 ::windows_targets::link!("ntdll.dll" "system" fn RtlInterlockedFlushSList(listhead : *mut SLIST_HEADER) -> *mut SLIST_ENTRY);
4 ::windows_targets::link!("ntdll.dll" "system" fn RtlInterlockedPopEntrySList(listhead : *mut SLIST_HEADER) -> *mut SLIST_ENTRY);
5 ::windows_targets::link!("ntdll.dll" "system" fn RtlInterlockedPushEntrySList(listhead : *mut SLIST_HEADER, listentry : *mut SLIST_ENTRY) -> *mut SLIST_ENTRY);
6 ::windows_targets::link!("ntdll.dll" "system" fn RtlInterlockedPushListSListEx(listhead : *mut SLIST_HEADER, list : *mut SLIST_ENTRY, listend : *mut SLIST_ENTRY, count : u32) -> *mut SLIST_ENTRY);
7 ::windows_targets::link!("ntdll.dll" "system" fn RtlQueryDepthSList(listhead : *const SLIST_HEADER) -> u16);
8 pub const BackOffice: SUITE_TYPE = 2i32;
9 pub const Blade: SUITE_TYPE = 10i32;
10 pub const CommunicationServer: SUITE_TYPE = 3i32;
11 pub const ComputeServer: SUITE_TYPE = 14i32;
12 pub const DEFAULT_COMPARTMENT_ID: COMPARTMENT_ID = 1i32;
13 pub const DataCenter: SUITE_TYPE = 7i32;
14 pub const EmbeddedNT: SUITE_TYPE = 6i32;
15 pub const EmbeddedRestricted: SUITE_TYPE = 11i32;
16 pub const Enterprise: SUITE_TYPE = 1i32;
17 pub const ExceptionCollidedUnwind: EXCEPTION_DISPOSITION = 3i32;
18 pub const ExceptionContinueExecution: EXCEPTION_DISPOSITION = 0i32;
19 pub const ExceptionContinueSearch: EXCEPTION_DISPOSITION = 1i32;
20 pub const ExceptionNestedException: EXCEPTION_DISPOSITION = 2i32;
21 pub const MAXUCHAR: u32 = 255u32;
22 pub const MAXULONG: u32 = 4294967295u32;
23 pub const MAXUSHORT: u32 = 65535u32;
24 pub const MaxSuiteType: SUITE_TYPE = 18i32;
25 pub const MultiUserTS: SUITE_TYPE = 17i32;
26 pub const NULL64: u32 = 0u32;
27 pub const NotificationEvent: EVENT_TYPE = 0i32;
28 pub const NotificationTimer: TIMER_TYPE = 0i32;
29 pub const NtProductLanManNt: NT_PRODUCT_TYPE = 2i32;
30 pub const NtProductServer: NT_PRODUCT_TYPE = 3i32;
31 pub const NtProductWinNt: NT_PRODUCT_TYPE = 1i32;
32 pub const OBJ_CASE_INSENSITIVE: i32 = 64i32;
33 pub const OBJ_DONT_REPARSE: i32 = 4096i32;
34 pub const OBJ_EXCLUSIVE: i32 = 32i32;
35 pub const OBJ_FORCE_ACCESS_CHECK: i32 = 1024i32;
36 pub const OBJ_HANDLE_TAGBITS: i32 = 3i32;
37 pub const OBJ_IGNORE_IMPERSONATED_DEVICEMAP: i32 = 2048i32;
38 pub const OBJ_INHERIT: i32 = 2i32;
39 pub const OBJ_KERNEL_HANDLE: i32 = 512i32;
40 pub const OBJ_OPENIF: i32 = 128i32;
41 pub const OBJ_OPENLINK: i32 = 256i32;
42 pub const OBJ_PERMANENT: i32 = 16i32;
43 pub const OBJ_VALID_ATTRIBUTES: i32 = 8178i32;
44 pub const Personal: SUITE_TYPE = 9i32;
45 pub const PhoneNT: SUITE_TYPE = 16i32;
46 pub const RTL_BALANCED_NODE_RESERVED_PARENT_MASK: u32 = 3u32;
47 pub const SecurityAppliance: SUITE_TYPE = 12i32;
48 pub const SingleUserTS: SUITE_TYPE = 8i32;
49 pub const SmallBusiness: SUITE_TYPE = 0i32;
50 pub const SmallBusinessRestricted: SUITE_TYPE = 5i32;
51 pub const StorageServer: SUITE_TYPE = 13i32;
52 pub const SynchronizationEvent: EVENT_TYPE = 1i32;
53 pub const SynchronizationTimer: TIMER_TYPE = 1i32;
54 pub const TerminalServer: SUITE_TYPE = 4i32;
55 pub const UNSPECIFIED_COMPARTMENT_ID: COMPARTMENT_ID = 0i32;
56 pub const WHServer: SUITE_TYPE = 15i32;
57 pub const WaitAll: WAIT_TYPE = 0i32;
58 pub const WaitAny: WAIT_TYPE = 1i32;
59 pub const WaitDequeue: WAIT_TYPE = 3i32;
60 pub const WaitDpc: WAIT_TYPE = 4i32;
61 pub const WaitNotification: WAIT_TYPE = 2i32;
62 pub type COMPARTMENT_ID = i32;
63 pub type EVENT_TYPE = i32;
64 pub type EXCEPTION_DISPOSITION = i32;
65 pub type NT_PRODUCT_TYPE = i32;
66 pub type SUITE_TYPE = i32;
67 pub type TIMER_TYPE = i32;
68 pub type WAIT_TYPE = i32;
69 #[repr(C)]
70 pub struct CSTRING {
71 pub Length: u16,
72 pub MaximumLength: u16,
73 pub Buffer: ::windows_sys::core::PCSTR,
74 }
75 impl ::core::marker::Copy for CSTRING {}
76 impl ::core::clone::Clone for CSTRING {
77 fn clone(&self) -> Self {
78 *self
79 }
80 }
81 #[repr(C)]
82 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Diagnostics_Debug\"`"]
83 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Diagnostics_Debug"))]
84 pub struct EXCEPTION_REGISTRATION_RECORD {
85 pub Next: *mut EXCEPTION_REGISTRATION_RECORD,
86 pub Handler: EXCEPTION_ROUTINE,
87 }
88 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Diagnostics_Debug"))]
89 impl ::core::marker::Copy for EXCEPTION_REGISTRATION_RECORD {}
90 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Diagnostics_Debug"))]
91 impl ::core::clone::Clone for EXCEPTION_REGISTRATION_RECORD {
92 fn clone(&self) -> Self {
93 *self
94 }
95 }
96 #[repr(C)]
97 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
98 pub struct FLOATING_SAVE_AREA {
99 pub ControlWord: u32,
100 pub StatusWord: u32,
101 pub TagWord: u32,
102 pub ErrorOffset: u32,
103 pub ErrorSelector: u32,
104 pub DataOffset: u32,
105 pub DataSelector: u32,
106 pub RegisterArea: [u8; 80],
107 pub Cr0NpxState: u32,
108 }
109 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
110 impl ::core::marker::Copy for FLOATING_SAVE_AREA {}
111 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
112 impl ::core::clone::Clone for FLOATING_SAVE_AREA {
113 fn clone(&self) -> Self {
114 *self
115 }
116 }
117 #[repr(C)]
118 #[cfg(target_arch = "x86")]
119 pub struct FLOATING_SAVE_AREA {
120 pub ControlWord: u32,
121 pub StatusWord: u32,
122 pub TagWord: u32,
123 pub ErrorOffset: u32,
124 pub ErrorSelector: u32,
125 pub DataOffset: u32,
126 pub DataSelector: u32,
127 pub RegisterArea: [u8; 80],
128 pub Spare0: u32,
129 }
130 #[cfg(target_arch = "x86")]
131 impl ::core::marker::Copy for FLOATING_SAVE_AREA {}
132 #[cfg(target_arch = "x86")]
133 impl ::core::clone::Clone for FLOATING_SAVE_AREA {
134 fn clone(&self) -> Self {
135 *self
136 }
137 }
138 #[repr(C)]
139 pub struct LIST_ENTRY {
140 pub Flink: *mut LIST_ENTRY,
141 pub Blink: *mut LIST_ENTRY,
142 }
143 impl ::core::marker::Copy for LIST_ENTRY {}
144 impl ::core::clone::Clone for LIST_ENTRY {
145 fn clone(&self) -> Self {
146 *self
147 }
148 }
149 #[repr(C)]
150 pub struct LIST_ENTRY32 {
151 pub Flink: u32,
152 pub Blink: u32,
153 }
154 impl ::core::marker::Copy for LIST_ENTRY32 {}
155 impl ::core::clone::Clone for LIST_ENTRY32 {
156 fn clone(&self) -> Self {
157 *self
158 }
159 }
160 #[repr(C)]
161 pub struct LIST_ENTRY64 {
162 pub Flink: u64,
163 pub Blink: u64,
164 }
165 impl ::core::marker::Copy for LIST_ENTRY64 {}
166 impl ::core::clone::Clone for LIST_ENTRY64 {
167 fn clone(&self) -> Self {
168 *self
169 }
170 }
171 #[repr(C)]
172 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Diagnostics_Debug\"`"]
173 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Diagnostics_Debug"))]
174 pub struct NT_TIB {
175 pub ExceptionList: *mut EXCEPTION_REGISTRATION_RECORD,
176 pub StackBase: *mut ::core::ffi::c_void,
177 pub StackLimit: *mut ::core::ffi::c_void,
178 pub SubSystemTib: *mut ::core::ffi::c_void,
179 pub Anonymous: NT_TIB_0,
180 pub ArbitraryUserPointer: *mut ::core::ffi::c_void,
181 pub Self_: *mut NT_TIB,
182 }
183 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Diagnostics_Debug"))]
184 impl ::core::marker::Copy for NT_TIB {}
185 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Diagnostics_Debug"))]
186 impl ::core::clone::Clone for NT_TIB {
187 fn clone(&self) -> Self {
188 *self
189 }
190 }
191 #[repr(C)]
192 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Diagnostics_Debug\"`"]
193 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Diagnostics_Debug"))]
194 pub union NT_TIB_0 {
195 pub FiberData: *mut ::core::ffi::c_void,
196 pub Version: u32,
197 }
198 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Diagnostics_Debug"))]
199 impl ::core::marker::Copy for NT_TIB_0 {}
200 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Diagnostics_Debug"))]
201 impl ::core::clone::Clone for NT_TIB_0 {
202 fn clone(&self) -> Self {
203 *self
204 }
205 }
206 #[repr(C)]
207 pub struct OBJECTID {
208 pub Lineage: ::windows_sys::core::GUID,
209 pub Uniquifier: u32,
210 }
211 impl ::core::marker::Copy for OBJECTID {}
212 impl ::core::clone::Clone for OBJECTID {
213 fn clone(&self) -> Self {
214 *self
215 }
216 }
217 #[repr(C)]
218 pub struct PROCESSOR_NUMBER {
219 pub Group: u16,
220 pub Number: u8,
221 pub Reserved: u8,
222 }
223 impl ::core::marker::Copy for PROCESSOR_NUMBER {}
224 impl ::core::clone::Clone for PROCESSOR_NUMBER {
225 fn clone(&self) -> Self {
226 *self
227 }
228 }
229 #[repr(C)]
230 pub struct QUAD {
231 pub Anonymous: QUAD_0,
232 }
233 impl ::core::marker::Copy for QUAD {}
234 impl ::core::clone::Clone for QUAD {
235 fn clone(&self) -> Self {
236 *self
237 }
238 }
239 #[repr(C)]
240 pub union QUAD_0 {
241 pub UseThisFieldToCopy: i64,
242 pub DoNotUseThisField: f64,
243 }
244 impl ::core::marker::Copy for QUAD_0 {}
245 impl ::core::clone::Clone for QUAD_0 {
246 fn clone(&self) -> Self {
247 *self
248 }
249 }
250 #[repr(C)]
251 pub struct RTL_BALANCED_NODE {
252 pub Anonymous1: RTL_BALANCED_NODE_0,
253 pub Anonymous2: RTL_BALANCED_NODE_1,
254 }
255 impl ::core::marker::Copy for RTL_BALANCED_NODE {}
256 impl ::core::clone::Clone for RTL_BALANCED_NODE {
257 fn clone(&self) -> Self {
258 *self
259 }
260 }
261 #[repr(C)]
262 pub union RTL_BALANCED_NODE_0 {
263 pub Children: [*mut RTL_BALANCED_NODE; 2],
264 pub Anonymous: RTL_BALANCED_NODE_0_0,
265 }
266 impl ::core::marker::Copy for RTL_BALANCED_NODE_0 {}
267 impl ::core::clone::Clone for RTL_BALANCED_NODE_0 {
268 fn clone(&self) -> Self {
269 *self
270 }
271 }
272 #[repr(C)]
273 pub struct RTL_BALANCED_NODE_0_0 {
274 pub Left: *mut RTL_BALANCED_NODE,
275 pub Right: *mut RTL_BALANCED_NODE,
276 }
277 impl ::core::marker::Copy for RTL_BALANCED_NODE_0_0 {}
278 impl ::core::clone::Clone for RTL_BALANCED_NODE_0_0 {
279 fn clone(&self) -> Self {
280 *self
281 }
282 }
283 #[repr(C)]
284 pub union RTL_BALANCED_NODE_1 {
285 pub _bitfield: u8,
286 pub ParentValue: usize,
287 }
288 impl ::core::marker::Copy for RTL_BALANCED_NODE_1 {}
289 impl ::core::clone::Clone for RTL_BALANCED_NODE_1 {
290 fn clone(&self) -> Self {
291 *self
292 }
293 }
294 #[repr(C)]
295 pub struct SINGLE_LIST_ENTRY {
296 pub Next: *mut SINGLE_LIST_ENTRY,
297 }
298 impl ::core::marker::Copy for SINGLE_LIST_ENTRY {}
299 impl ::core::clone::Clone for SINGLE_LIST_ENTRY {
300 fn clone(&self) -> Self {
301 *self
302 }
303 }
304 #[repr(C)]
305 pub struct SINGLE_LIST_ENTRY32 {
306 pub Next: u32,
307 }
308 impl ::core::marker::Copy for SINGLE_LIST_ENTRY32 {}
309 impl ::core::clone::Clone for SINGLE_LIST_ENTRY32 {
310 fn clone(&self) -> Self {
311 *self
312 }
313 }
314 #[repr(C)]
315 pub struct SLIST_ENTRY {
316 pub Next: *mut SLIST_ENTRY,
317 }
318 impl ::core::marker::Copy for SLIST_ENTRY {}
319 impl ::core::clone::Clone for SLIST_ENTRY {
320 fn clone(&self) -> Self {
321 *self
322 }
323 }
324 #[repr(C)]
325 #[cfg(target_arch = "aarch64")]
326 pub union SLIST_HEADER {
327 pub Anonymous: SLIST_HEADER_0,
328 pub HeaderArm64: SLIST_HEADER_1,
329 }
330 #[cfg(target_arch = "aarch64")]
331 impl ::core::marker::Copy for SLIST_HEADER {}
332 #[cfg(target_arch = "aarch64")]
333 impl ::core::clone::Clone for SLIST_HEADER {
334 fn clone(&self) -> Self {
335 *self
336 }
337 }
338 #[repr(C)]
339 #[cfg(target_arch = "aarch64")]
340 pub struct SLIST_HEADER_0 {
341 pub Alignment: u64,
342 pub Region: u64,
343 }
344 #[cfg(target_arch = "aarch64")]
345 impl ::core::marker::Copy for SLIST_HEADER_0 {}
346 #[cfg(target_arch = "aarch64")]
347 impl ::core::clone::Clone for SLIST_HEADER_0 {
348 fn clone(&self) -> Self {
349 *self
350 }
351 }
352 #[repr(C)]
353 #[cfg(target_arch = "aarch64")]
354 pub struct SLIST_HEADER_1 {
355 pub _bitfield1: u64,
356 pub _bitfield2: u64,
357 }
358 #[cfg(target_arch = "aarch64")]
359 impl ::core::marker::Copy for SLIST_HEADER_1 {}
360 #[cfg(target_arch = "aarch64")]
361 impl ::core::clone::Clone for SLIST_HEADER_1 {
362 fn clone(&self) -> Self {
363 *self
364 }
365 }
366 #[repr(C)]
367 #[cfg(target_arch = "x86_64")]
368 pub union SLIST_HEADER {
369 pub Anonymous: SLIST_HEADER_0,
370 pub HeaderX64: SLIST_HEADER_1,
371 }
372 #[cfg(target_arch = "x86_64")]
373 impl ::core::marker::Copy for SLIST_HEADER {}
374 #[cfg(target_arch = "x86_64")]
375 impl ::core::clone::Clone for SLIST_HEADER {
376 fn clone(&self) -> Self {
377 *self
378 }
379 }
380 #[repr(C)]
381 #[cfg(target_arch = "x86_64")]
382 pub struct SLIST_HEADER_0 {
383 pub Alignment: u64,
384 pub Region: u64,
385 }
386 #[cfg(target_arch = "x86_64")]
387 impl ::core::marker::Copy for SLIST_HEADER_0 {}
388 #[cfg(target_arch = "x86_64")]
389 impl ::core::clone::Clone for SLIST_HEADER_0 {
390 fn clone(&self) -> Self {
391 *self
392 }
393 }
394 #[repr(C)]
395 #[cfg(target_arch = "x86_64")]
396 pub struct SLIST_HEADER_1 {
397 pub _bitfield1: u64,
398 pub _bitfield2: u64,
399 }
400 #[cfg(target_arch = "x86_64")]
401 impl ::core::marker::Copy for SLIST_HEADER_1 {}
402 #[cfg(target_arch = "x86_64")]
403 impl ::core::clone::Clone for SLIST_HEADER_1 {
404 fn clone(&self) -> Self {
405 *self
406 }
407 }
408 #[repr(C)]
409 #[cfg(target_arch = "x86")]
410 pub union SLIST_HEADER {
411 pub Alignment: u64,
412 pub Anonymous: SLIST_HEADER_0,
413 }
414 #[cfg(target_arch = "x86")]
415 impl ::core::marker::Copy for SLIST_HEADER {}
416 #[cfg(target_arch = "x86")]
417 impl ::core::clone::Clone for SLIST_HEADER {
418 fn clone(&self) -> Self {
419 *self
420 }
421 }
422 #[repr(C)]
423 #[cfg(target_arch = "x86")]
424 pub struct SLIST_HEADER_0 {
425 pub Next: SINGLE_LIST_ENTRY,
426 pub Depth: u16,
427 pub CpuId: u16,
428 }
429 #[cfg(target_arch = "x86")]
430 impl ::core::marker::Copy for SLIST_HEADER_0 {}
431 #[cfg(target_arch = "x86")]
432 impl ::core::clone::Clone for SLIST_HEADER_0 {
433 fn clone(&self) -> Self {
434 *self
435 }
436 }
437 #[repr(C)]
438 pub struct STRING {
439 pub Length: u16,
440 pub MaximumLength: u16,
441 pub Buffer: ::windows_sys::core::PSTR,
442 }
443 impl ::core::marker::Copy for STRING {}
444 impl ::core::clone::Clone for STRING {
445 fn clone(&self) -> Self {
446 *self
447 }
448 }
449 #[repr(C)]
450 pub struct STRING32 {
451 pub Length: u16,
452 pub MaximumLength: u16,
453 pub Buffer: u32,
454 }
455 impl ::core::marker::Copy for STRING32 {}
456 impl ::core::clone::Clone for STRING32 {
457 fn clone(&self) -> Self {
458 *self
459 }
460 }
461 #[repr(C)]
462 pub struct STRING64 {
463 pub Length: u16,
464 pub MaximumLength: u16,
465 pub Buffer: u64,
466 }
467 impl ::core::marker::Copy for STRING64 {}
468 impl ::core::clone::Clone for STRING64 {
469 fn clone(&self) -> Self {
470 *self
471 }
472 }
473 #[repr(C)]
474 pub struct WNF_STATE_NAME {
475 pub Data: [u32; 2],
476 }
477 impl ::core::marker::Copy for WNF_STATE_NAME {}
478 impl ::core::clone::Clone for WNF_STATE_NAME {
479 fn clone(&self) -> Self {
480 *self
481 }
482 }
483 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Diagnostics_Debug\"`"]
484 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Diagnostics_Debug"))]
485 pub type EXCEPTION_ROUTINE = ::core::option::Option<unsafe extern "system" fn(exceptionrecord: *mut super::Diagnostics::Debug::EXCEPTION_RECORD, establisherframe: *const ::core::ffi::c_void, contextrecord: *mut super::Diagnostics::Debug::CONTEXT, dispatchercontext: *const ::core::ffi::c_void) -> EXCEPTION_DISPOSITION>;