|
string | GetFileDescription (string filePath) |
| Gets the description of the file from the specified file path.
|
|
◆ ProcessNode()
Plugin.Main.ProcessNode.ProcessNode |
( |
Process | process, |
|
|
string | filePath ) |
|
inline |
◆ GetFileDescription()
string Plugin.Main.ProcessNode.GetFileDescription |
( |
string | filePath | ) |
|
|
inlineprivate |
Gets the description of the file from the specified file path.
- Parameters
-
filePath | The path of the file for which the description is to be retrieved. |
- Returns
- The description of the file, or "Unknown" if the file path is null or empty, or if an error occurs while retrieving the file description.
This method retrieves the file version information using the System.Diagnostics.FileVersionInfo.GetVersionInfo(string) method. If the file description is null, it returns "Unknown". If an exception occurs during the process, it also returns "Unknown".
◆ Children
◆ FileDescription
string Plugin.Main.ProcessNode.FileDescription |
|
get |
◆ FilePath
string Plugin.Main.ProcessNode.FilePath |
|
get |
◆ Name
string Plugin.Main.ProcessNode.Name |
|
get |
◆ PID
int Plugin.Main.ProcessNode.PID |
|
get |
◆ Process
Process Plugin.Main.ProcessNode.Process |
|
get |
The documentation for this class was generated from the following file:
- /Users/sumansaurabh/Documents/my-startup/xeno-rat/Plugins/ProcessManager/ProcessManager.cs