From a0f95571d310961b4ea0d4a95ca783dd17ee297a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o?= Date: Fri, 26 Jul 2024 22:09:44 -0300 Subject: [PATCH] Readjusting comments --- driver/src/utils/mod.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/driver/src/utils/mod.rs b/driver/src/utils/mod.rs index 9898971..9812510 100644 --- a/driver/src/utils/mod.rs +++ b/driver/src/utils/mod.rs @@ -261,10 +261,10 @@ pub unsafe fn get_process_by_name(process_name: &str) -> Option { /// Retrieves the syscall index for a given function name. /// /// # Parameters -/// * `function_name` - The name of the function to retrieve the syscall index for. +/// - `function_name`: The name of the function to retrieve the syscall index for. /// /// # Returns -/// `Option` - The syscall index if found, or `None` if an error occurs or the function is not found. +/// - `Option`: The syscall index if found, or `None` if an error occurs or the function is not found. /// pub unsafe fn get_syscall_index(function_name: &str) -> Option { let mut section_handle = null_mut(); @@ -396,14 +396,14 @@ pub unsafe fn find_zw_function(name: &str) -> Option { /// Initializes the OBJECT_ATTRIBUTES structure. /// /// # Parameters -/// * `object_name` - The name of the object (optional). -/// * `attributes` - The attributes of the object. -/// * `root_directory` - The root directory (optional). -/// * `security_descriptor` - The security descriptor (optional). -/// * `security_quality_of_service` - The security quality of service (optional). +/// - `object_name`: The name of the object (optional). +/// - `attributes`: The attributes of the object. +/// - `root_directory`: The root directory (optional). +/// - `security_descriptor`: The security descriptor (optional). +/// - `security_quality_of_service`: The security quality of service (optional). /// /// # Returns -/// `OBJECT_ATTRIBUTES` - The initialized OBJECT_ATTRIBUTES structure +/// - `OBJECT_ATTRIBUTES`>: The initialized OBJECT_ATTRIBUTES structure /// #[allow(non_snake_case)] pub fn InitializeObjectAttributes( @@ -426,10 +426,10 @@ pub fn InitializeObjectAttributes( /// Reads the content of a file given its path. /// /// # Arguments -/// * `path` - The path to the file. +/// - `path`: The path to the file. /// /// # Returns -/// `Result, NTSTATUS>` - The content of the file as a vector of bytes if successful, or an NTSTATUS error code if an error occurs. +/// - `Result, NTSTATUS>`: The content of the file as a vector of bytes if successful, or an NTSTATUS error code if an error occurs. /// pub fn read_file(path: &String) -> Result, NTSTATUS> { let mut path_nt = String::new();