We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a9430c commit df50220Copy full SHA for df50220
src/process/mod.rs
@@ -97,5 +97,18 @@ impl Process
97
/// let attached = process.is_attached();
98
/// ```
99
pub fn is_attached(&self) -> bool {return self.process_data.borrow().attached;}
100
-}
101
+ /// Returns file path of the processes' executable
102
+ ///
103
+ /// # Examples
104
105
+ /// ```
106
+ /// use mem_rs::prelude::*;
107
108
+ /// let mut process = Process::new("name_of_process.exe");
109
+ /// process.refresh().unwrap();
110
111
+ /// println!("{}", process.get_path());
112
113
+ pub fn get_path(&self) -> String {return self.process_data.borrow().path.clone();}
114
+}
0 commit comments