mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
added module provider
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@406 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
@@ -48,6 +48,7 @@ namespace ProcessHacker
|
||||
public Win32.TokenHandle TokenQueryHandle;
|
||||
public Win32.ProcessHandle ProcessQueryHandle;
|
||||
public Win32.ProcessHandle ProcessQueryLimitedHandle;
|
||||
public Win32.ProcessHandle ProcessQueryLimitedVmReadHandle;
|
||||
}
|
||||
|
||||
public class ProcessProvider : Provider<int, ProcessItem>
|
||||
@@ -239,10 +240,11 @@ namespace ProcessHacker
|
||||
|
||||
try
|
||||
{
|
||||
using (Win32.ProcessHandle phandle =
|
||||
item.ProcessQueryLimitedVmReadHandle =
|
||||
new Win32.ProcessHandle(pid,
|
||||
Program.MinProcessQueryRights | Win32.PROCESS_RIGHTS.PROCESS_VM_READ))
|
||||
item.CmdLine = phandle.GetCommandLine();
|
||||
Program.MinProcessQueryRights | Win32.PROCESS_RIGHTS.PROCESS_VM_READ);
|
||||
|
||||
item.CmdLine = item.ProcessQueryLimitedVmReadHandle.GetCommandLine();
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
Reference in New Issue
Block a user