mirror of
https://github.com/joaoviictorti/shadow-rs.git
synced 2026-01-16 05:54:26 +01:00
refactor(client): changing variable names for clarity
This commit is contained in:
@@ -6,7 +6,7 @@ use {
|
||||
PS_PROTECTED_SIGNER, PS_PROTECTED_TYPE,
|
||||
},
|
||||
shared::{
|
||||
vars::MAX_PIDS,
|
||||
vars::MAX_PID,
|
||||
structs::{
|
||||
EnumerateInfoInput, ProcessInfoHide, ProcessListInfo,
|
||||
ProcessSignature, TargetProcess, ProcessProtection
|
||||
@@ -120,7 +120,7 @@ impl Process {
|
||||
}
|
||||
|
||||
pub fn enumerate_process(&mut self, ioctl_code: u32, option: &Options) {
|
||||
let mut info_process: [ProcessListInfo; MAX_PIDS] = unsafe { std::mem::zeroed() };
|
||||
let mut info_process: [ProcessListInfo; MAX_PID] = unsafe { std::mem::zeroed() };
|
||||
let mut enumeration_input = EnumerateInfoInput {
|
||||
options: option.to_shared(),
|
||||
};
|
||||
|
||||
@@ -3,7 +3,7 @@ use {
|
||||
log::*,
|
||||
shared::{
|
||||
structs::{EnumerateInfoInput, TargetThread, ThreadListInfo},
|
||||
vars::MAX_TIDS,
|
||||
vars::MAX_TID,
|
||||
},
|
||||
std::{ffi::c_void, mem::size_of, ptr::null_mut},
|
||||
windows_sys::Win32::{
|
||||
@@ -89,7 +89,7 @@ impl Thread {
|
||||
|
||||
pub fn enumerate_thread(self, ioctl_code: u32, option: &Options) {
|
||||
debug!("Attempting to open the driver for thread enumeration");
|
||||
let mut info_thread: [ThreadListInfo; MAX_TIDS] = unsafe { std::mem::zeroed() };
|
||||
let mut info_thread: [ThreadListInfo; MAX_TID] = unsafe { std::mem::zeroed() };
|
||||
let mut enumeration_input = EnumerateInfoInput {
|
||||
options: option.to_shared(),
|
||||
};
|
||||
|
||||
@@ -26,7 +26,7 @@ use {
|
||||
/// - `file` - A string reference representing the file path.
|
||||
///
|
||||
/// # Returns
|
||||
|
||||
///
|
||||
/// - `true` if the file exists, `false` otherwise.
|
||||
pub fn check_file(file: &String) -> bool {
|
||||
let file = Path::new(file);
|
||||
|
||||
Reference in New Issue
Block a user