diff options
Diffstat (limited to 'vendor/windows-sys/src/Windows/Win32/System/ProcessStatus/mod.rs')
-rw-r--r-- | vendor/windows-sys/src/Windows/Win32/System/ProcessStatus/mod.rs | 308 |
1 files changed, 308 insertions, 0 deletions
diff --git a/vendor/windows-sys/src/Windows/Win32/System/ProcessStatus/mod.rs b/vendor/windows-sys/src/Windows/Win32/System/ProcessStatus/mod.rs new file mode 100644 index 0000000..1cdfa50 --- /dev/null +++ b/vendor/windows-sys/src/Windows/Win32/System/ProcessStatus/mod.rs @@ -0,0 +1,308 @@ +#[cfg(feature = "Win32_Foundation")] +::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn EmptyWorkingSet(hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +::windows_targets::link!("psapi.dll" "system" fn GetDeviceDriverBaseNameA(imagebase : *const ::core::ffi::c_void, lpfilename : ::windows_sys::core::PSTR, nsize : u32) -> u32); +::windows_targets::link!("psapi.dll" "system" fn GetDeviceDriverBaseNameW(imagebase : *const ::core::ffi::c_void, lpbasename : ::windows_sys::core::PWSTR, nsize : u32) -> u32); +::windows_targets::link!("psapi.dll" "system" fn GetDeviceDriverFileNameA(imagebase : *const ::core::ffi::c_void, lpfilename : ::windows_sys::core::PSTR, nsize : u32) -> u32); +::windows_targets::link!("psapi.dll" "system" fn GetDeviceDriverFileNameW(imagebase : *const ::core::ffi::c_void, lpfilename : ::windows_sys::core::PWSTR, nsize : u32) -> u32); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetPerformanceInfo(pperformanceinformation : *mut PERFORMANCE_INFORMATION, cb : u32) -> super::super::Foundation:: BOOL); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::windows_targets::link!("psapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn InitializeProcessForWsWatch(hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +#[cfg(feature = "Win32_Foundation")] +::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32EmptyWorkingSet(hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +::windows_targets::link!("kernel32.dll" "system" fn K32GetDeviceDriverBaseNameA(imagebase : *const ::core::ffi::c_void, lpfilename : ::windows_sys::core::PSTR, nsize : u32) -> u32); +::windows_targets::link!("kernel32.dll" "system" fn K32GetDeviceDriverBaseNameW(imagebase : *const ::core::ffi::c_void, lpbasename : ::windows_sys::core::PWSTR, nsize : u32) -> u32); +::windows_targets::link!("kernel32.dll" "system" fn K32GetDeviceDriverFileNameA(imagebase : *const ::core::ffi::c_void, lpfilename : ::windows_sys::core::PSTR, nsize : u32) -> u32); +::windows_targets::link!("kernel32.dll" "system" fn K32GetDeviceDriverFileNameW(imagebase : *const ::core::ffi::c_void, lpfilename : ::windows_sys::core::PWSTR, nsize : u32) -> u32); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32GetPerformanceInfo(pperformanceinformation : *mut PERFORMANCE_INFORMATION, cb : u32) -> super::super::Foundation:: BOOL); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn K32InitializeProcessForWsWatch(hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +#[cfg(feature = "Win32_Foundation")] +::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); +pub const LIST_MODULES_32BIT: ENUM_PROCESS_MODULES_EX_FLAGS = 1u32; +pub const LIST_MODULES_64BIT: ENUM_PROCESS_MODULES_EX_FLAGS = 2u32; +pub const LIST_MODULES_ALL: ENUM_PROCESS_MODULES_EX_FLAGS = 3u32; +pub const LIST_MODULES_DEFAULT: ENUM_PROCESS_MODULES_EX_FLAGS = 0u32; +pub const PSAPI_VERSION: u32 = 2u32; +pub type ENUM_PROCESS_MODULES_EX_FLAGS = u32; +#[repr(C)] +pub struct ENUM_PAGE_FILE_INFORMATION { + pub cb: u32, + pub Reserved: u32, + pub TotalSize: usize, + pub TotalInUse: usize, + pub PeakUsage: usize, +} +impl ::core::marker::Copy for ENUM_PAGE_FILE_INFORMATION {} +impl ::core::clone::Clone for ENUM_PAGE_FILE_INFORMATION { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct MODULEINFO { + pub lpBaseOfDll: *mut ::core::ffi::c_void, + pub SizeOfImage: u32, + pub EntryPoint: *mut ::core::ffi::c_void, +} +impl ::core::marker::Copy for MODULEINFO {} +impl ::core::clone::Clone for MODULEINFO { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct PERFORMANCE_INFORMATION { + pub cb: u32, + pub CommitTotal: usize, + pub CommitLimit: usize, + pub CommitPeak: usize, + pub PhysicalTotal: usize, + pub PhysicalAvailable: usize, + pub SystemCache: usize, + pub KernelTotal: usize, + pub KernelPaged: usize, + pub KernelNonpaged: usize, + pub PageSize: usize, + pub HandleCount: u32, + pub ProcessCount: u32, + pub ThreadCount: u32, +} +impl ::core::marker::Copy for PERFORMANCE_INFORMATION {} +impl ::core::clone::Clone for PERFORMANCE_INFORMATION { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct PROCESS_MEMORY_COUNTERS { + pub cb: u32, + pub PageFaultCount: u32, + pub PeakWorkingSetSize: usize, + pub WorkingSetSize: usize, + pub QuotaPeakPagedPoolUsage: usize, + pub QuotaPagedPoolUsage: usize, + pub QuotaPeakNonPagedPoolUsage: usize, + pub QuotaNonPagedPoolUsage: usize, + pub PagefileUsage: usize, + pub PeakPagefileUsage: usize, +} +impl ::core::marker::Copy for PROCESS_MEMORY_COUNTERS {} +impl ::core::clone::Clone for PROCESS_MEMORY_COUNTERS { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct PROCESS_MEMORY_COUNTERS_EX { + pub cb: u32, + pub PageFaultCount: u32, + pub PeakWorkingSetSize: usize, + pub WorkingSetSize: usize, + pub QuotaPeakPagedPoolUsage: usize, + pub QuotaPagedPoolUsage: usize, + pub QuotaPeakNonPagedPoolUsage: usize, + pub QuotaNonPagedPoolUsage: usize, + pub PagefileUsage: usize, + pub PeakPagefileUsage: usize, + pub PrivateUsage: usize, +} +impl ::core::marker::Copy for PROCESS_MEMORY_COUNTERS_EX {} +impl ::core::clone::Clone for PROCESS_MEMORY_COUNTERS_EX { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub union PSAPI_WORKING_SET_BLOCK { + pub Flags: usize, + pub Anonymous: PSAPI_WORKING_SET_BLOCK_0, +} +impl ::core::marker::Copy for PSAPI_WORKING_SET_BLOCK {} +impl ::core::clone::Clone for PSAPI_WORKING_SET_BLOCK { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct PSAPI_WORKING_SET_BLOCK_0 { + pub _bitfield: usize, +} +impl ::core::marker::Copy for PSAPI_WORKING_SET_BLOCK_0 {} +impl ::core::clone::Clone for PSAPI_WORKING_SET_BLOCK_0 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub union PSAPI_WORKING_SET_EX_BLOCK { + pub Flags: usize, + pub Anonymous: PSAPI_WORKING_SET_EX_BLOCK_0, +} +impl ::core::marker::Copy for PSAPI_WORKING_SET_EX_BLOCK {} +impl ::core::clone::Clone for PSAPI_WORKING_SET_EX_BLOCK { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub union PSAPI_WORKING_SET_EX_BLOCK_0 { + pub Anonymous: PSAPI_WORKING_SET_EX_BLOCK_0_0, + pub Invalid: PSAPI_WORKING_SET_EX_BLOCK_0_1, +} +impl ::core::marker::Copy for PSAPI_WORKING_SET_EX_BLOCK_0 {} +impl ::core::clone::Clone for PSAPI_WORKING_SET_EX_BLOCK_0 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct PSAPI_WORKING_SET_EX_BLOCK_0_0 { + pub _bitfield: usize, +} +impl ::core::marker::Copy for PSAPI_WORKING_SET_EX_BLOCK_0_0 {} +impl ::core::clone::Clone for PSAPI_WORKING_SET_EX_BLOCK_0_0 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct PSAPI_WORKING_SET_EX_BLOCK_0_1 { + pub _bitfield: usize, +} +impl ::core::marker::Copy for PSAPI_WORKING_SET_EX_BLOCK_0_1 {} +impl ::core::clone::Clone for PSAPI_WORKING_SET_EX_BLOCK_0_1 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct PSAPI_WORKING_SET_EX_INFORMATION { + pub VirtualAddress: *mut ::core::ffi::c_void, + pub VirtualAttributes: PSAPI_WORKING_SET_EX_BLOCK, +} +impl ::core::marker::Copy for PSAPI_WORKING_SET_EX_INFORMATION {} +impl ::core::clone::Clone for PSAPI_WORKING_SET_EX_INFORMATION { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct PSAPI_WORKING_SET_INFORMATION { + pub NumberOfEntries: usize, + pub WorkingSetInfo: [PSAPI_WORKING_SET_BLOCK; 1], +} +impl ::core::marker::Copy for PSAPI_WORKING_SET_INFORMATION {} +impl ::core::clone::Clone for PSAPI_WORKING_SET_INFORMATION { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct PSAPI_WS_WATCH_INFORMATION { + pub FaultingPc: *mut ::core::ffi::c_void, + pub FaultingVa: *mut ::core::ffi::c_void, +} +impl ::core::marker::Copy for PSAPI_WS_WATCH_INFORMATION {} +impl ::core::clone::Clone for PSAPI_WS_WATCH_INFORMATION { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct PSAPI_WS_WATCH_INFORMATION_EX { + pub BasicInfo: PSAPI_WS_WATCH_INFORMATION, + pub FaultingThreadId: usize, + pub Flags: usize, +} +impl ::core::marker::Copy for PSAPI_WS_WATCH_INFORMATION_EX {} +impl ::core::clone::Clone for PSAPI_WS_WATCH_INFORMATION_EX { + fn clone(&self) -> Self { + *self + } +} +#[doc = "Required features: `\"Win32_Foundation\"`"] +#[cfg(feature = "Win32_Foundation")] +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>; +#[doc = "Required features: `\"Win32_Foundation\"`"] +#[cfg(feature = "Win32_Foundation")] +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>; |