| 1 |
#[cfg(feature = "Win32_Foundation")] |
| 2 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn CreateToolhelp32Snapshot(dwflags : CREATE_TOOLHELP_SNAPSHOT_FLAGS, th32processid : u32) -> super::super::super::Foundation:: HANDLE); |
| 3 |
#[cfg(feature = "Win32_Foundation")] |
| 4 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn Heap32First(lphe : *mut HEAPENTRY32, th32processid : u32, th32heapid : usize) -> super::super::super::Foundation:: BOOL); |
| 5 |
#[cfg(feature = "Win32_Foundation")] |
| 6 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn Heap32ListFirst(hsnapshot : super::super::super::Foundation:: HANDLE, lphl : *mut HEAPLIST32) -> super::super::super::Foundation:: BOOL); |
| 7 |
#[cfg(feature = "Win32_Foundation")] |
| 8 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn Heap32ListNext(hsnapshot : super::super::super::Foundation:: HANDLE, lphl : *mut HEAPLIST32) -> super::super::super::Foundation:: BOOL); |
| 9 |
#[cfg(feature = "Win32_Foundation")] |
| 10 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn Heap32Next(lphe : *mut HEAPENTRY32) -> super::super::super::Foundation:: BOOL); |
| 11 |
#[cfg(feature = "Win32_Foundation")] |
| 12 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn Module32First(hsnapshot : super::super::super::Foundation:: HANDLE, lpme : *mut MODULEENTRY32) -> super::super::super::Foundation:: BOOL); |
| 13 |
#[cfg(feature = "Win32_Foundation")] |
| 14 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn Module32FirstW(hsnapshot : super::super::super::Foundation:: HANDLE, lpme : *mut MODULEENTRY32W) -> super::super::super::Foundation:: BOOL); |
| 15 |
#[cfg(feature = "Win32_Foundation")] |
| 16 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn Module32Next(hsnapshot : super::super::super::Foundation:: HANDLE, lpme : *mut MODULEENTRY32) -> super::super::super::Foundation:: BOOL); |
| 17 |
#[cfg(feature = "Win32_Foundation")] |
| 18 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn Module32NextW(hsnapshot : super::super::super::Foundation:: HANDLE, lpme : *mut MODULEENTRY32W) -> super::super::super::Foundation:: BOOL); |
| 19 |
#[cfg(feature = "Win32_Foundation")] |
| 20 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn Process32First(hsnapshot : super::super::super::Foundation:: HANDLE, lppe : *mut PROCESSENTRY32) -> super::super::super::Foundation:: BOOL); |
| 21 |
#[cfg(feature = "Win32_Foundation")] |
| 22 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn Process32FirstW(hsnapshot : super::super::super::Foundation:: HANDLE, lppe : *mut PROCESSENTRY32W) -> super::super::super::Foundation:: BOOL); |
| 23 |
#[cfg(feature = "Win32_Foundation")] |
| 24 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn Process32Next(hsnapshot : super::super::super::Foundation:: HANDLE, lppe : *mut PROCESSENTRY32) -> super::super::super::Foundation:: BOOL); |
| 25 |
#[cfg(feature = "Win32_Foundation")] |
| 26 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn Process32NextW(hsnapshot : super::super::super::Foundation:: HANDLE, lppe : *mut PROCESSENTRY32W) -> super::super::super::Foundation:: BOOL); |
| 27 |
#[cfg(feature = "Win32_Foundation")] |
| 28 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn Thread32First(hsnapshot : super::super::super::Foundation:: HANDLE, lpte : *mut THREADENTRY32) -> super::super::super::Foundation:: BOOL); |
| 29 |
#[cfg(feature = "Win32_Foundation")] |
| 30 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn Thread32Next(hsnapshot : super::super::super::Foundation:: HANDLE, lpte : *mut THREADENTRY32) -> super::super::super::Foundation:: BOOL); |
| 31 |
#[cfg(feature = "Win32_Foundation")] |
| 32 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn Toolhelp32ReadProcessMemory(th32processid : u32, lpbaseaddress : *const ::core::ffi::c_void, lpbuffer : *mut ::core::ffi::c_void, cbread : usize, lpnumberofbytesread : *mut usize) -> super::super::super::Foundation:: BOOL); |
| 33 |
pub const HF32_DEFAULT: u32 = 1u32; |
| 34 |
pub const HF32_SHARED: u32 = 2u32; |
| 35 |
pub const LF32_FIXED: HEAPENTRY32_FLAGS = 1u32; |
| 36 |
pub const LF32_FREE: HEAPENTRY32_FLAGS = 2u32; |
| 37 |
pub const LF32_MOVEABLE: HEAPENTRY32_FLAGS = 4u32; |
| 38 |
pub const MAX_MODULE_NAME32: u32 = 255u32; |
| 39 |
pub const TH32CS_INHERIT: CREATE_TOOLHELP_SNAPSHOT_FLAGS = 2147483648u32; |
| 40 |
pub const TH32CS_SNAPALL: CREATE_TOOLHELP_SNAPSHOT_FLAGS = 15u32; |
| 41 |
pub const TH32CS_SNAPHEAPLIST: CREATE_TOOLHELP_SNAPSHOT_FLAGS = 1u32; |
| 42 |
pub const TH32CS_SNAPMODULE: CREATE_TOOLHELP_SNAPSHOT_FLAGS = 8u32; |
| 43 |
pub const TH32CS_SNAPMODULE32: CREATE_TOOLHELP_SNAPSHOT_FLAGS = 16u32; |
| 44 |
pub const TH32CS_SNAPPROCESS: CREATE_TOOLHELP_SNAPSHOT_FLAGS = 2u32; |
| 45 |
pub const TH32CS_SNAPTHREAD: CREATE_TOOLHELP_SNAPSHOT_FLAGS = 4u32; |
| 46 |
pub type CREATE_TOOLHELP_SNAPSHOT_FLAGS = u32; |
| 47 |
pub type HEAPENTRY32_FLAGS = u32; |
| 48 |
#[repr(C)] |
| 49 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 50 |
#[cfg(feature = "Win32_Foundation")] |
| 51 |
pub struct HEAPENTRY32 { |
| 52 |
pub dwSize: usize, |
| 53 |
pub hHandle: super::super::super::Foundation::HANDLE, |
| 54 |
pub dwAddress: usize, |
| 55 |
pub dwBlockSize: usize, |
| 56 |
pub dwFlags: HEAPENTRY32_FLAGS, |
| 57 |
pub dwLockCount: u32, |
| 58 |
pub dwResvd: u32, |
| 59 |
pub th32ProcessID: u32, |
| 60 |
pub th32HeapID: usize, |
| 61 |
} |
| 62 |
#[cfg(feature = "Win32_Foundation")] |
| 63 |
impl ::core::marker::Copy for HEAPENTRY32 {} |
| 64 |
#[cfg(feature = "Win32_Foundation")] |
| 65 |
impl ::core::clone::Clone for HEAPENTRY32 { |
| 66 |
fn clone(&self) -> Self { |
| 67 |
*self |
| 68 |
} |
| 69 |
} |
| 70 |
#[repr(C)] |
| 71 |
pub struct HEAPLIST32 { |
| 72 |
pub dwSize: usize, |
| 73 |
pub th32ProcessID: u32, |
| 74 |
pub th32HeapID: usize, |
| 75 |
pub dwFlags: u32, |
| 76 |
} |
| 77 |
impl ::core::marker::Copy for HEAPLIST32 {} |
| 78 |
impl ::core::clone::Clone for HEAPLIST32 { |
| 79 |
fn clone(&self) -> Self { |
| 80 |
*self |
| 81 |
} |
| 82 |
} |
| 83 |
#[repr(C)] |
| 84 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 85 |
#[cfg(feature = "Win32_Foundation")] |
| 86 |
pub struct MODULEENTRY32 { |
| 87 |
pub dwSize: u32, |
| 88 |
pub th32ModuleID: u32, |
| 89 |
pub th32ProcessID: u32, |
| 90 |
pub GlblcntUsage: u32, |
| 91 |
pub ProccntUsage: u32, |
| 92 |
pub modBaseAddr: *mut u8, |
| 93 |
pub modBaseSize: u32, |
| 94 |
pub hModule: super::super::super::Foundation::HMODULE, |
| 95 |
pub szModule: [u8; 256], |
| 96 |
pub szExePath: [u8; 260], |
| 97 |
} |
| 98 |
#[cfg(feature = "Win32_Foundation")] |
| 99 |
impl ::core::marker::Copy for MODULEENTRY32 {} |
| 100 |
#[cfg(feature = "Win32_Foundation")] |
| 101 |
impl ::core::clone::Clone for MODULEENTRY32 { |
| 102 |
fn clone(&self) -> Self { |
| 103 |
*self |
| 104 |
} |
| 105 |
} |
| 106 |
#[repr(C)] |
| 107 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 108 |
#[cfg(feature = "Win32_Foundation")] |
| 109 |
pub struct MODULEENTRY32W { |
| 110 |
pub dwSize: u32, |
| 111 |
pub th32ModuleID: u32, |
| 112 |
pub th32ProcessID: u32, |
| 113 |
pub GlblcntUsage: u32, |
| 114 |
pub ProccntUsage: u32, |
| 115 |
pub modBaseAddr: *mut u8, |
| 116 |
pub modBaseSize: u32, |
| 117 |
pub hModule: super::super::super::Foundation::HMODULE, |
| 118 |
pub szModule: [u16; 256], |
| 119 |
pub szExePath: [u16; 260], |
| 120 |
} |
| 121 |
#[cfg(feature = "Win32_Foundation")] |
| 122 |
impl ::core::marker::Copy for MODULEENTRY32W {} |
| 123 |
#[cfg(feature = "Win32_Foundation")] |
| 124 |
impl ::core::clone::Clone for MODULEENTRY32W { |
| 125 |
fn clone(&self) -> Self { |
| 126 |
*self |
| 127 |
} |
| 128 |
} |
| 129 |
#[repr(C)] |
| 130 |
pub struct PROCESSENTRY32 { |
| 131 |
pub dwSize: u32, |
| 132 |
pub cntUsage: u32, |
| 133 |
pub th32ProcessID: u32, |
| 134 |
pub th32DefaultHeapID: usize, |
| 135 |
pub th32ModuleID: u32, |
| 136 |
pub cntThreads: u32, |
| 137 |
pub th32ParentProcessID: u32, |
| 138 |
pub pcPriClassBase: i32, |
| 139 |
pub dwFlags: u32, |
| 140 |
pub szExeFile: [u8; 260], |
| 141 |
} |
| 142 |
impl ::core::marker::Copy for PROCESSENTRY32 {} |
| 143 |
impl ::core::clone::Clone for PROCESSENTRY32 { |
| 144 |
fn clone(&self) -> Self { |
| 145 |
*self |
| 146 |
} |
| 147 |
} |
| 148 |
#[repr(C)] |
| 149 |
pub struct PROCESSENTRY32W { |
| 150 |
pub dwSize: u32, |
| 151 |
pub cntUsage: u32, |
| 152 |
pub th32ProcessID: u32, |
| 153 |
pub th32DefaultHeapID: usize, |
| 154 |
pub th32ModuleID: u32, |
| 155 |
pub cntThreads: u32, |
| 156 |
pub th32ParentProcessID: u32, |
| 157 |
pub pcPriClassBase: i32, |
| 158 |
pub dwFlags: u32, |
| 159 |
pub szExeFile: [u16; 260], |
| 160 |
} |
| 161 |
impl ::core::marker::Copy for PROCESSENTRY32W {} |
| 162 |
impl ::core::clone::Clone for PROCESSENTRY32W { |
| 163 |
fn clone(&self) -> Self { |
| 164 |
*self |
| 165 |
} |
| 166 |
} |
| 167 |
#[repr(C)] |
| 168 |
pub struct THREADENTRY32 { |
| 169 |
pub dwSize: u32, |
| 170 |
pub cntUsage: u32, |
| 171 |
pub th32ThreadID: u32, |
| 172 |
pub th32OwnerProcessID: u32, |
| 173 |
pub tpBasePri: i32, |
| 174 |
pub tpDeltaPri: i32, |
| 175 |
pub dwFlags: u32, |
| 176 |
} |
| 177 |
impl ::core::marker::Copy for THREADENTRY32 {} |
| 178 |
impl ::core::clone::Clone for THREADENTRY32 { |
| 179 |
fn clone(&self) -> Self { |
| 180 |
*self |
| 181 |
} |
| 182 |
} |