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:
wj32
2008-12-24 07:26:47 +00:00
parent 956a83fc23
commit 23e974deb5
28 changed files with 1446 additions and 316 deletions
@@ -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
{ }