16 void Open(DWORD processid, DWORD access = PROCESS_ALL_ACCESS, BOOL inherit = FALSE);
18 void Open(
const std::wstring& name, DWORD access = PROCESS_ALL_ACCESS, BOOL inherit = FALSE);
22 bool IsOpen()
const {
return m_h != NULL; }
void Close()
close a process handle
Definition: Process.cpp:57
bool IsOpen() const
returns true if process handle is open
Definition: Process.h:22
Process()
Definition: Process.cpp:7
A process.
Definition: Process.h:8
void Open(DWORD processid, DWORD access=PROCESS_ALL_ACCESS, BOOL inherit=FALSE)
open a process handle
Definition: Process.cpp:13
HANDLE GetHandle() const
returns the process handle
Definition: Process.h:24
virtual ~Process()
Definition: Process.cpp:49