Debian Codegraph @

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

raw
1 #[cfg(feature = "Win32_Foundation")]
2 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn BindIoCompletionCallback(filehandle : super::super::Foundation:: HANDLE, function : LPOVERLAPPED_COMPLETION_ROUTINE, flags : u32) -> super::super::Foundation:: BOOL);
3 #[cfg(feature = "Win32_Foundation")]
4 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn CancelIo(hfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL);
5 #[cfg(feature = "Win32_Foundation")]
6 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn CancelIoEx(hfile : super::super::Foundation:: HANDLE, lpoverlapped : *const OVERLAPPED) -> super::super::Foundation:: BOOL);
7 #[cfg(feature = "Win32_Foundation")]
8 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn CancelSynchronousIo(hthread : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL);
9 #[cfg(feature = "Win32_Foundation")]
10 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn CreateIoCompletionPort(filehandle : super::super::Foundation:: HANDLE, existingcompletionport : super::super::Foundation:: HANDLE, completionkey : usize, numberofconcurrentthreads : u32) -> super::super::Foundation:: HANDLE);
11 #[cfg(feature = "Win32_Foundation")]
12 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn DeviceIoControl(hdevice : super::super::Foundation:: HANDLE, dwiocontrolcode : u32, lpinbuffer : *const ::core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut ::core::ffi::c_void, noutbuffersize : u32, lpbytesreturned : *mut u32, lpoverlapped : *mut OVERLAPPED) -> super::super::Foundation:: BOOL);
13 #[cfg(feature = "Win32_Foundation")]
14 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetOverlappedResult(hfile : super::super::Foundation:: HANDLE, lpoverlapped : *const OVERLAPPED, lpnumberofbytestransferred : *mut u32, bwait : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL);
15 #[cfg(feature = "Win32_Foundation")]
16 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetOverlappedResultEx(hfile : super::super::Foundation:: HANDLE, lpoverlapped : *const OVERLAPPED, lpnumberofbytestransferred : *mut u32, dwmilliseconds : u32, balertable : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL);
17 #[cfg(feature = "Win32_Foundation")]
18 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetQueuedCompletionStatus(completionport : super::super::Foundation:: HANDLE, lpnumberofbytestransferred : *mut u32, lpcompletionkey : *mut usize, lpoverlapped : *mut *mut OVERLAPPED, dwmilliseconds : u32) -> super::super::Foundation:: BOOL);
19 #[cfg(feature = "Win32_Foundation")]
20 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetQueuedCompletionStatusEx(completionport : super::super::Foundation:: HANDLE, lpcompletionportentries : *mut OVERLAPPED_ENTRY, ulcount : u32, ulnumentriesremoved : *mut u32, dwmilliseconds : u32, falertable : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL);
21 #[cfg(feature = "Win32_Foundation")]
22 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn PostQueuedCompletionStatus(completionport : super::super::Foundation:: HANDLE, dwnumberofbytestransferred : u32, dwcompletionkey : usize, lpoverlapped : *const OVERLAPPED) -> super::super::Foundation:: BOOL);
23 #[repr(C)]
24 #[doc = "Required features: `\"Win32_Foundation\"`"]
25 #[cfg(feature = "Win32_Foundation")]
26 pub struct IO_STATUS_BLOCK {
27 pub Anonymous: IO_STATUS_BLOCK_0,
28 pub Information: usize,
29 }
30 #[cfg(feature = "Win32_Foundation")]
31 impl ::core::marker::Copy for IO_STATUS_BLOCK {}
32 #[cfg(feature = "Win32_Foundation")]
33 impl ::core::clone::Clone for IO_STATUS_BLOCK {
34 fn clone(&self) -> Self {
35 *self
36 }
37 }
38 #[repr(C)]
39 #[doc = "Required features: `\"Win32_Foundation\"`"]
40 #[cfg(feature = "Win32_Foundation")]
41 pub union IO_STATUS_BLOCK_0 {
42 pub Status: super::super::Foundation::NTSTATUS,
43 pub Pointer: *mut ::core::ffi::c_void,
44 }
45 #[cfg(feature = "Win32_Foundation")]
46 impl ::core::marker::Copy for IO_STATUS_BLOCK_0 {}
47 #[cfg(feature = "Win32_Foundation")]
48 impl ::core::clone::Clone for IO_STATUS_BLOCK_0 {
49 fn clone(&self) -> Self {
50 *self
51 }
52 }
53 #[repr(C)]
54 #[doc = "Required features: `\"Win32_Foundation\"`"]
55 #[cfg(feature = "Win32_Foundation")]
56 pub struct OVERLAPPED {
57 pub Internal: usize,
58 pub InternalHigh: usize,
59 pub Anonymous: OVERLAPPED_0,
60 pub hEvent: super::super::Foundation::HANDLE,
61 }
62 #[cfg(feature = "Win32_Foundation")]
63 impl ::core::marker::Copy for OVERLAPPED {}
64 #[cfg(feature = "Win32_Foundation")]
65 impl ::core::clone::Clone for OVERLAPPED {
66 fn clone(&self) -> Self {
67 *self
68 }
69 }
70 #[repr(C)]
71 #[doc = "Required features: `\"Win32_Foundation\"`"]
72 #[cfg(feature = "Win32_Foundation")]
73 pub union OVERLAPPED_0 {
74 pub Anonymous: OVERLAPPED_0_0,
75 pub Pointer: *mut ::core::ffi::c_void,
76 }
77 #[cfg(feature = "Win32_Foundation")]
78 impl ::core::marker::Copy for OVERLAPPED_0 {}
79 #[cfg(feature = "Win32_Foundation")]
80 impl ::core::clone::Clone for OVERLAPPED_0 {
81 fn clone(&self) -> Self {
82 *self
83 }
84 }
85 #[repr(C)]
86 #[doc = "Required features: `\"Win32_Foundation\"`"]
87 #[cfg(feature = "Win32_Foundation")]
88 pub struct OVERLAPPED_0_0 {
89 pub Offset: u32,
90 pub OffsetHigh: u32,
91 }
92 #[cfg(feature = "Win32_Foundation")]
93 impl ::core::marker::Copy for OVERLAPPED_0_0 {}
94 #[cfg(feature = "Win32_Foundation")]
95 impl ::core::clone::Clone for OVERLAPPED_0_0 {
96 fn clone(&self) -> Self {
97 *self
98 }
99 }
100 #[repr(C)]
101 #[doc = "Required features: `\"Win32_Foundation\"`"]
102 #[cfg(feature = "Win32_Foundation")]
103 pub struct OVERLAPPED_ENTRY {
104 pub lpCompletionKey: usize,
105 pub lpOverlapped: *mut OVERLAPPED,
106 pub Internal: usize,
107 pub dwNumberOfBytesTransferred: u32,
108 }
109 #[cfg(feature = "Win32_Foundation")]
110 impl ::core::marker::Copy for OVERLAPPED_ENTRY {}
111 #[cfg(feature = "Win32_Foundation")]
112 impl ::core::clone::Clone for OVERLAPPED_ENTRY {
113 fn clone(&self) -> Self {
114 *self
115 }
116 }
117 #[doc = "Required features: `\"Win32_Foundation\"`"]
118 #[cfg(feature = "Win32_Foundation")]
119 pub type LPOVERLAPPED_COMPLETION_ROUTINE = ::core::option::Option<unsafe extern "system" fn(dwerrorcode: u32, dwnumberofbytestransfered: u32, lpoverlapped: *mut OVERLAPPED) -> ()>;
120 #[doc = "Required features: `\"Win32_Foundation\"`"]
121 #[cfg(feature = "Win32_Foundation")]
122 pub type PIO_APC_ROUTINE = ::core::option::Option<unsafe extern "system" fn(apccontext: *mut ::core::ffi::c_void, iostatusblock: *mut IO_STATUS_BLOCK, reserved: u32) -> ()>;