BWAPI
trunk/bwapi/Util/Source/Util/RemoteProcess.h
Go to the documentation of this file.
00001 #pragma once
00002 
00003 //  A priviledged system handle to a remote process                   //
00004 //                                                                    //
00006 
00007 namespace Util { class RemoteProcess; }
00008 
00009 #include "RemoteProcessID.h"
00010 #define WIN32_LEAN_AND_MEAN
00011 #include "windows.h"
00012 
00013 namespace Util
00014 {
00015   class RemoteProcess
00016   {
00017   public:
00018     RemoteProcess();
00019     ~RemoteProcess();
00020 
00021     bool acquire(RemoteProcessID, bool moreAccess = false);
00022     int exportOwnHandle();
00023     void importHandle(int handle);
00024     void release();
00025     HANDLE getHandle();
00026     bool isValid();
00027 
00028   private:
00029     HANDLE processHandle;
00030   };
00031 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines