get the file info of the process . use GetFileVersionInfoExW
api . it will return a HashMap<String,String>
including a lot of infomation.
you can get value throught CompanyName
FileDescription
OriginalFilename
ProductName
ProductVersion
PrivateBuild
InternalName
LegalCopyright
FileVersion
keys.
get the process io counter , it will return a IoCounter
if cant get the io counter , it will return a zero IoCounter
get process memory info . it will return a MemoryCounter
struct .
get the process command line params . it will return String
.
get process parrent id from pid , it will return a Option<u32>
get process full path from pid , it will return String
which is the location of process.
get the process sid and domain/user name from pid . it will return a tuple consisting of (domain/user,sid)
. if the privilege is not enough , it will return the failed reson.
get process thread id from pid , it will return Vec<u32>
.
get process time , including Start time , Exit time , Kernel time and User time . it will return a tuple
which is (start_time,exit_time,CpuTime)
get process handle counter . return u32
judge the process is running on wow64 or not , it will return a Option<bool>
(you must consider the situation that OpenProcess cannot be used)