src/Common/Lsa/Process.h

Go to the documentation of this file.
00001 #pragma once
00002 
00003 namespace AppSecInc 
00004 {
00005     namespace LSA
00006     {
00008         class Process
00009         {
00010         private:
00011             HANDLE m_h;
00012         public:
00013             Process();
00014             virtual ~Process();
00016             void Open(DWORD processid, DWORD access = PROCESS_ALL_ACCESS, BOOL inherit = FALSE);
00018             void Open(const std::wstring& name, DWORD access = PROCESS_ALL_ACCESS, BOOL inherit = FALSE);
00020             void Close();
00022             bool IsOpen() const { return m_h != NULL; }
00024             HANDLE GetHandle() const { return m_h; }
00025         };
00026     }
00027 }
00028 


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