Process.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace AppSecInc
4 {
5  namespace LSA
6  {
8  class Process
9  {
10  private:
11  HANDLE m_h;
12  public:
13  Process();
14  virtual ~Process();
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);
20  void Close();
22  bool IsOpen() const { return m_h != NULL; }
24  HANDLE GetHandle() const { return m_h; }
25  };
26  }
27 }
28 
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


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com