Debian Codegraph @

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

raw
1 #[cfg(feature = "Win32_Foundation")]
2 ::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn EmptyWorkingSet(hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL);
3 #[cfg(feature = "Win32_Foundation")]
4 ::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn EnumDeviceDrivers(lpimagebase : *mut *mut ::core::ffi::c_void, cb : u32, lpcbneeded : *mut u32) -> super::super::Foundation:: BOOL);
5 #[cfg(feature = "Win32_Foundation")]
6 ::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn EnumPageFilesA(pcallbackroutine : PENUM_PAGE_FILE_CALLBACKA, pcontext : *mut ::core::ffi::c_void) -> super::super::Foundation:: BOOL);
7 #[cfg(feature = "Win32_Foundation")]
8 ::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn EnumPageFilesW(pcallbackroutine : PENUM_PAGE_FILE_CALLBACKW, pcontext : *mut ::core::ffi::c_void) -> super::super::Foundation:: BOOL);
9 #[cfg(feature = "Win32_Foundation")]
10 ::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn EnumProcessModules(hprocess : super::super::Foundation:: HANDLE, lphmodule : *mut super::super::Foundation:: HMODULE, cb : u32, lpcbneeded : *mut u32) -> super::super::Foundation:: BOOL);
11 #[cfg(feature = "Win32_Foundation")]
12 ::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn EnumProcessModulesEx(hprocess : super::super::Foundation:: HANDLE, lphmodule : *mut super::super::Foundation:: HMODULE, cb : u32, lpcbneeded : *mut u32, dwfilterflag : ENUM_PROCESS_MODULES_EX_FLAGS) -> super::super::Foundation:: BOOL);
13 #[cfg(feature = "Win32_Foundation")]
14 ::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn EnumProcesses(lpidprocess : *mut u32, cb : u32, lpcbneeded : *mut u32) -> super::super::Foundation:: BOOL);
15 ::windows_targets::link!("psapi.dll" "system" fn GetDeviceDriverBaseNameA(imagebase : *const ::core::ffi::c_void, lpfilename : ::windows_sys::core::PSTR, nsize : u32) -> u32);
16 ::windows_targets::link!("psapi.dll" "system" fn GetDeviceDriverBaseNameW(imagebase : *const ::core::ffi::c_void, lpbasename : ::windows_sys::core::PWSTR, nsize : u32) -> u32);
17 ::windows_targets::link!("psapi.dll" "system" fn GetDeviceDriverFileNameA(imagebase : *const ::core::ffi::c_void, lpfilename : ::windows_sys::core::PSTR, nsize : u32) -> u32);
18 ::windows_targets::link!("psapi.dll" "system" fn GetDeviceDriverFileNameW(imagebase : *const ::core::ffi::c_void, lpfilename : ::windows_sys::core::PWSTR, nsize : u32) -> u32);
19 #[cfg(feature = "Win32_Foundation")]
20 ::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetMappedFileNameA(hprocess : super::super::Foundation:: HANDLE, lpv : *const ::core::ffi::c_void, lpfilename : ::windows_sys::core::PSTR, nsize : u32) -> u32);
21 #[cfg(feature = "Win32_Foundation")]
22 ::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetMappedFileNameW(hprocess : super::super::Foundation:: HANDLE, lpv : *const ::core::ffi::c_void, lpfilename : ::windows_sys::core::PWSTR, nsize : u32) -> u32);
23 #[cfg(feature = "Win32_Foundation")]
24 ::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetModuleBaseNameA(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpbasename : ::windows_sys::core::PSTR, nsize : u32) -> u32);
25 #[cfg(feature = "Win32_Foundation")]
26 ::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetModuleBaseNameW(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpbasename : ::windows_sys::core::PWSTR, nsize : u32) -> u32);
27 #[cfg(feature = "Win32_Foundation")]
28 ::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetModuleFileNameExA(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpfilename : ::windows_sys::core::PSTR, nsize : u32) -> u32);
29 #[cfg(feature = "Win32_Foundation")]
30 ::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetModuleFileNameExW(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpfilename : ::windows_sys::core::PWSTR, nsize : u32) -> u32);
31 #[cfg(feature = "Win32_Foundation")]
32 ::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetModuleInformation(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpmodinfo : *mut MODULEINFO, cb : u32) -> super::super::Foundation:: BOOL);
33 #[cfg(feature = "Win32_Foundation")]
34 ::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetPerformanceInfo(pperformanceinformation : *mut PERFORMANCE_INFORMATION, cb : u32) -> super::super::Foundation:: BOOL);
35 #[cfg(feature = "Win32_Foundation")]
36 ::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetProcessImageFileNameA(hprocess : super::super::Foundation:: HANDLE, lpimagefilename : ::windows_sys::core::PSTR, nsize : u32) -> u32);
37 #[cfg(feature = "Win32_Foundation")]
38 ::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetProcessImageFileNameW(hprocess : super::super::Foundation:: HANDLE, lpimagefilename : ::windows_sys::core::PWSTR, nsize : u32) -> u32);
39 #[cfg(feature = "Win32_Foundation")]
40 ::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetProcessMemoryInfo(process : super::super::Foundation:: HANDLE, ppsmemcounters : *mut PROCESS_MEMORY_COUNTERS, cb : u32) -> super::super::Foundation:: BOOL);
41 #[cfg(feature = "Win32_Foundation")]
42 ::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetWsChanges(hprocess : super::super::Foundation:: HANDLE, lpwatchinfo : *mut PSAPI_WS_WATCH_INFORMATION, cb : u32) -> super::super::Foundation:: BOOL);
43 #[cfg(feature = "Win32_Foundation")]
44 ::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetWsChangesEx(hprocess : super::super::Foundation:: HANDLE, lpwatchinfoex : *mut PSAPI_WS_WATCH_INFORMATION_EX, cb : *mut u32) -> super::super::Foundation:: BOOL);
45 #[cfg(feature = "Win32_Foundation")]
46 ::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn InitializeProcessForWsWatch(hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL);
47 #[cfg(feature = "Win32_Foundation")]
48 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32EmptyWorkingSet(hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL);
49 #[cfg(feature = "Win32_Foundation")]
50 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32EnumDeviceDrivers(lpimagebase : *mut *mut ::core::ffi::c_void, cb : u32, lpcbneeded : *mut u32) -> super::super::Foundation:: BOOL);
51 #[cfg(feature = "Win32_Foundation")]
52 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32EnumPageFilesA(pcallbackroutine : PENUM_PAGE_FILE_CALLBACKA, pcontext : *mut ::core::ffi::c_void) -> super::super::Foundation:: BOOL);
53 #[cfg(feature = "Win32_Foundation")]
54 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32EnumPageFilesW(pcallbackroutine : PENUM_PAGE_FILE_CALLBACKW, pcontext : *mut ::core::ffi::c_void) -> super::super::Foundation:: BOOL);
55 #[cfg(feature = "Win32_Foundation")]
56 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32EnumProcessModules(hprocess : super::super::Foundation:: HANDLE, lphmodule : *mut super::super::Foundation:: HMODULE, cb : u32, lpcbneeded : *mut u32) -> super::super::Foundation:: BOOL);
57 #[cfg(feature = "Win32_Foundation")]
58 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32EnumProcessModulesEx(hprocess : super::super::Foundation:: HANDLE, lphmodule : *mut super::super::Foundation:: HMODULE, cb : u32, lpcbneeded : *mut u32, dwfilterflag : u32) -> super::super::Foundation:: BOOL);
59 #[cfg(feature = "Win32_Foundation")]
60 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32EnumProcesses(lpidprocess : *mut u32, cb : u32, lpcbneeded : *mut u32) -> super::super::Foundation:: BOOL);
61 ::windows_targets::link!("kernel32.dll" "system" fn K32GetDeviceDriverBaseNameA(imagebase : *const ::core::ffi::c_void, lpfilename : ::windows_sys::core::PSTR, nsize : u32) -> u32);
62 ::windows_targets::link!("kernel32.dll" "system" fn K32GetDeviceDriverBaseNameW(imagebase : *const ::core::ffi::c_void, lpbasename : ::windows_sys::core::PWSTR, nsize : u32) -> u32);
63 ::windows_targets::link!("kernel32.dll" "system" fn K32GetDeviceDriverFileNameA(imagebase : *const ::core::ffi::c_void, lpfilename : ::windows_sys::core::PSTR, nsize : u32) -> u32);
64 ::windows_targets::link!("kernel32.dll" "system" fn K32GetDeviceDriverFileNameW(imagebase : *const ::core::ffi::c_void, lpfilename : ::windows_sys::core::PWSTR, nsize : u32) -> u32);
65 #[cfg(feature = "Win32_Foundation")]
66 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32GetMappedFileNameA(hprocess : super::super::Foundation:: HANDLE, lpv : *const ::core::ffi::c_void, lpfilename : ::windows_sys::core::PSTR, nsize : u32) -> u32);
67 #[cfg(feature = "Win32_Foundation")]
68 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32GetMappedFileNameW(hprocess : super::super::Foundation:: HANDLE, lpv : *const ::core::ffi::c_void, lpfilename : ::windows_sys::core::PWSTR, nsize : u32) -> u32);
69 #[cfg(feature = "Win32_Foundation")]
70 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32GetModuleBaseNameA(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpbasename : ::windows_sys::core::PSTR, nsize : u32) -> u32);
71 #[cfg(feature = "Win32_Foundation")]
72 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32GetModuleBaseNameW(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpbasename : ::windows_sys::core::PWSTR, nsize : u32) -> u32);
73 #[cfg(feature = "Win32_Foundation")]
74 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32GetModuleFileNameExA(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpfilename : ::windows_sys::core::PSTR, nsize : u32) -> u32);
75 #[cfg(feature = "Win32_Foundation")]
76 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32GetModuleFileNameExW(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpfilename : ::windows_sys::core::PWSTR, nsize : u32) -> u32);
77 #[cfg(feature = "Win32_Foundation")]
78 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32GetModuleInformation(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpmodinfo : *mut MODULEINFO, cb : u32) -> super::super::Foundation:: BOOL);
79 #[cfg(feature = "Win32_Foundation")]
80 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32GetPerformanceInfo(pperformanceinformation : *mut PERFORMANCE_INFORMATION, cb : u32) -> super::super::Foundation:: BOOL);
81 #[cfg(feature = "Win32_Foundation")]
82 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32GetProcessImageFileNameA(hprocess : super::super::Foundation:: HANDLE, lpimagefilename : ::windows_sys::core::PSTR, nsize : u32) -> u32);
83 #[cfg(feature = "Win32_Foundation")]
84 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32GetProcessImageFileNameW(hprocess : super::super::Foundation:: HANDLE, lpimagefilename : ::windows_sys::core::PWSTR, nsize : u32) -> u32);
85 #[cfg(feature = "Win32_Foundation")]
86 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32GetProcessMemoryInfo(process : super::super::Foundation:: HANDLE, ppsmemcounters : *mut PROCESS_MEMORY_COUNTERS, cb : u32) -> super::super::Foundation:: BOOL);
87 #[cfg(feature = "Win32_Foundation")]
88 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32GetWsChanges(hprocess : super::super::Foundation:: HANDLE, lpwatchinfo : *mut PSAPI_WS_WATCH_INFORMATION, cb : u32) -> super::super::Foundation:: BOOL);
89 #[cfg(feature = "Win32_Foundation")]
90 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32GetWsChangesEx(hprocess : super::super::Foundation:: HANDLE, lpwatchinfoex : *mut PSAPI_WS_WATCH_INFORMATION_EX, cb : *mut u32) -> super::super::Foundation:: BOOL);
91 #[cfg(feature = "Win32_Foundation")]
92 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32InitializeProcessForWsWatch(hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL);
93 #[cfg(feature = "Win32_Foundation")]
94 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32QueryWorkingSet(hprocess : super::super::Foundation:: HANDLE, pv : *mut ::core::ffi::c_void, cb : u32) -> super::super::Foundation:: BOOL);
95 #[cfg(feature = "Win32_Foundation")]
96 ::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32QueryWorkingSetEx(hprocess : super::super::Foundation:: HANDLE, pv : *mut ::core::ffi::c_void, cb : u32) -> super::super::Foundation:: BOOL);
97 #[cfg(feature = "Win32_Foundation")]
98 ::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn QueryWorkingSet(hprocess : super::super::Foundation:: HANDLE, pv : *mut ::core::ffi::c_void, cb : u32) -> super::super::Foundation:: BOOL);
99 #[cfg(feature = "Win32_Foundation")]
100 ::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn QueryWorkingSetEx(hprocess : super::super::Foundation:: HANDLE, pv : *mut ::core::ffi::c_void, cb : u32) -> super::super::Foundation:: BOOL);
101 pub const LIST_MODULES_32BIT: ENUM_PROCESS_MODULES_EX_FLAGS = 1u32;
102 pub const LIST_MODULES_64BIT: ENUM_PROCESS_MODULES_EX_FLAGS = 2u32;
103 pub const LIST_MODULES_ALL: ENUM_PROCESS_MODULES_EX_FLAGS = 3u32;
104 pub const LIST_MODULES_DEFAULT: ENUM_PROCESS_MODULES_EX_FLAGS = 0u32;
105 pub const PSAPI_VERSION: u32 = 2u32;
106 pub type ENUM_PROCESS_MODULES_EX_FLAGS = u32;
107 #[repr(C)]
108 pub struct ENUM_PAGE_FILE_INFORMATION {
109 pub cb: u32,
110 pub Reserved: u32,
111 pub TotalSize: usize,
112 pub TotalInUse: usize,
113 pub PeakUsage: usize,
114 }
115 impl ::core::marker::Copy for ENUM_PAGE_FILE_INFORMATION {}
116 impl ::core::clone::Clone for ENUM_PAGE_FILE_INFORMATION {
117 fn clone(&self) -> Self {
118 *self
119 }
120 }
121 #[repr(C)]
122 pub struct MODULEINFO {
123 pub lpBaseOfDll: *mut ::core::ffi::c_void,
124 pub SizeOfImage: u32,
125 pub EntryPoint: *mut ::core::ffi::c_void,
126 }
127 impl ::core::marker::Copy for MODULEINFO {}
128 impl ::core::clone::Clone for MODULEINFO {
129 fn clone(&self) -> Self {
130 *self
131 }
132 }
133 #[repr(C)]
134 pub struct PERFORMANCE_INFORMATION {
135 pub cb: u32,
136 pub CommitTotal: usize,
137 pub CommitLimit: usize,
138 pub CommitPeak: usize,
139 pub PhysicalTotal: usize,
140 pub PhysicalAvailable: usize,
141 pub SystemCache: usize,
142 pub KernelTotal: usize,
143 pub KernelPaged: usize,
144 pub KernelNonpaged: usize,
145 pub PageSize: usize,
146 pub HandleCount: u32,
147 pub ProcessCount: u32,
148 pub ThreadCount: u32,
149 }
150 impl ::core::marker::Copy for PERFORMANCE_INFORMATION {}
151 impl ::core::clone::Clone for PERFORMANCE_INFORMATION {
152 fn clone(&self) -> Self {
153 *self
154 }
155 }
156 #[repr(C)]
157 pub struct PROCESS_MEMORY_COUNTERS {
158 pub cb: u32,
159 pub PageFaultCount: u32,
160 pub PeakWorkingSetSize: usize,
161 pub WorkingSetSize: usize,
162 pub QuotaPeakPagedPoolUsage: usize,
163 pub QuotaPagedPoolUsage: usize,
164 pub QuotaPeakNonPagedPoolUsage: usize,
165 pub QuotaNonPagedPoolUsage: usize,
166 pub PagefileUsage: usize,
167 pub PeakPagefileUsage: usize,
168 }
169 impl ::core::marker::Copy for PROCESS_MEMORY_COUNTERS {}
170 impl ::core::clone::Clone for PROCESS_MEMORY_COUNTERS {
171 fn clone(&self) -> Self {
172 *self
173 }
174 }
175 #[repr(C)]
176 pub struct PROCESS_MEMORY_COUNTERS_EX {
177 pub cb: u32,
178 pub PageFaultCount: u32,
179 pub PeakWorkingSetSize: usize,
180 pub WorkingSetSize: usize,
181 pub QuotaPeakPagedPoolUsage: usize,
182 pub QuotaPagedPoolUsage: usize,
183 pub QuotaPeakNonPagedPoolUsage: usize,
184 pub QuotaNonPagedPoolUsage: usize,
185 pub PagefileUsage: usize,
186 pub PeakPagefileUsage: usize,
187 pub PrivateUsage: usize,
188 }
189 impl ::core::marker::Copy for PROCESS_MEMORY_COUNTERS_EX {}
190 impl ::core::clone::Clone for PROCESS_MEMORY_COUNTERS_EX {
191 fn clone(&self) -> Self {
192 *self
193 }
194 }
195 #[repr(C)]
196 pub union PSAPI_WORKING_SET_BLOCK {
197 pub Flags: usize,
198 pub Anonymous: PSAPI_WORKING_SET_BLOCK_0,
199 }
200 impl ::core::marker::Copy for PSAPI_WORKING_SET_BLOCK {}
201 impl ::core::clone::Clone for PSAPI_WORKING_SET_BLOCK {
202 fn clone(&self) -> Self {
203 *self
204 }
205 }
206 #[repr(C)]
207 pub struct PSAPI_WORKING_SET_BLOCK_0 {
208 pub _bitfield: usize,
209 }
210 impl ::core::marker::Copy for PSAPI_WORKING_SET_BLOCK_0 {}
211 impl ::core::clone::Clone for PSAPI_WORKING_SET_BLOCK_0 {
212 fn clone(&self) -> Self {
213 *self
214 }
215 }
216 #[repr(C)]
217 pub union PSAPI_WORKING_SET_EX_BLOCK {
218 pub Flags: usize,
219 pub Anonymous: PSAPI_WORKING_SET_EX_BLOCK_0,
220 }
221 impl ::core::marker::Copy for PSAPI_WORKING_SET_EX_BLOCK {}
222 impl ::core::clone::Clone for PSAPI_WORKING_SET_EX_BLOCK {
223 fn clone(&self) -> Self {
224 *self
225 }
226 }
227 #[repr(C)]
228 pub union PSAPI_WORKING_SET_EX_BLOCK_0 {
229 pub Anonymous: PSAPI_WORKING_SET_EX_BLOCK_0_0,
230 pub Invalid: PSAPI_WORKING_SET_EX_BLOCK_0_1,
231 }
232 impl ::core::marker::Copy for PSAPI_WORKING_SET_EX_BLOCK_0 {}
233 impl ::core::clone::Clone for PSAPI_WORKING_SET_EX_BLOCK_0 {
234 fn clone(&self) -> Self {
235 *self
236 }
237 }
238 #[repr(C)]
239 pub struct PSAPI_WORKING_SET_EX_BLOCK_0_0 {
240 pub _bitfield: usize,
241 }
242 impl ::core::marker::Copy for PSAPI_WORKING_SET_EX_BLOCK_0_0 {}
243 impl ::core::clone::Clone for PSAPI_WORKING_SET_EX_BLOCK_0_0 {
244 fn clone(&self) -> Self {
245 *self
246 }
247 }
248 #[repr(C)]
249 pub struct PSAPI_WORKING_SET_EX_BLOCK_0_1 {
250 pub _bitfield: usize,
251 }
252 impl ::core::marker::Copy for PSAPI_WORKING_SET_EX_BLOCK_0_1 {}
253 impl ::core::clone::Clone for PSAPI_WORKING_SET_EX_BLOCK_0_1 {
254 fn clone(&self) -> Self {
255 *self
256 }
257 }
258 #[repr(C)]
259 pub struct PSAPI_WORKING_SET_EX_INFORMATION {
260 pub VirtualAddress: *mut ::core::ffi::c_void,
261 pub VirtualAttributes: PSAPI_WORKING_SET_EX_BLOCK,
262 }
263 impl ::core::marker::Copy for PSAPI_WORKING_SET_EX_INFORMATION {}
264 impl ::core::clone::Clone for PSAPI_WORKING_SET_EX_INFORMATION {
265 fn clone(&self) -> Self {
266 *self
267 }
268 }
269 #[repr(C)]
270 pub struct PSAPI_WORKING_SET_INFORMATION {
271 pub NumberOfEntries: usize,
272 pub WorkingSetInfo: [PSAPI_WORKING_SET_BLOCK; 1],
273 }
274 impl ::core::marker::Copy for PSAPI_WORKING_SET_INFORMATION {}
275 impl ::core::clone::Clone for PSAPI_WORKING_SET_INFORMATION {
276 fn clone(&self) -> Self {
277 *self
278 }
279 }
280 #[repr(C)]
281 pub struct PSAPI_WS_WATCH_INFORMATION {
282 pub FaultingPc: *mut ::core::ffi::c_void,
283 pub FaultingVa: *mut ::core::ffi::c_void,
284 }
285 impl ::core::marker::Copy for PSAPI_WS_WATCH_INFORMATION {}
286 impl ::core::clone::Clone for PSAPI_WS_WATCH_INFORMATION {
287 fn clone(&self) -> Self {
288 *self
289 }
290 }
291 #[repr(C)]
292 pub struct PSAPI_WS_WATCH_INFORMATION_EX {
293 pub BasicInfo: PSAPI_WS_WATCH_INFORMATION,
294 pub FaultingThreadId: usize,
295 pub Flags: usize,
296 }
297 impl ::core::marker::Copy for PSAPI_WS_WATCH_INFORMATION_EX {}
298 impl ::core::clone::Clone for PSAPI_WS_WATCH_INFORMATION_EX {
299 fn clone(&self) -> Self {
300 *self
301 }
302 }
303 #[doc = "Required features: `\"Win32_Foundation\"`"]
304 #[cfg(feature = "Win32_Foundation")]
305 pub type PENUM_PAGE_FILE_CALLBACKA = ::core::option::Option<unsafe extern "system" fn(pcontext: *mut ::core::ffi::c_void, ppagefileinfo: *mut ENUM_PAGE_FILE_INFORMATION, lpfilename: ::windows_sys::core::PCSTR) -> super::super::Foundation::BOOL>;
306 #[doc = "Required features: `\"Win32_Foundation\"`"]
307 #[cfg(feature = "Win32_Foundation")]
308 pub type PENUM_PAGE_FILE_CALLBACKW = ::core::option::Option<unsafe extern "system" fn(pcontext: *mut ::core::ffi::c_void, ppagefileinfo: *mut ENUM_PAGE_FILE_INFORMATION, lpfilename: ::windows_sys::core::PCWSTR) -> super::super::Foundation::BOOL>;