Inheritance: Microsoft.Win32.SafeHandles.CriticalHandleZeroOrMinusOneIsInvalid
示例#1
0
        public virtual bool BeginAccess()
        {
            if (m_Open)
                return false;

            m_Process = NativeMethods.OpenProcess(ProcessAllAccess, 0, ProcessID);
            m_Open = true;

            return true;
        }
示例#2
0
        public virtual bool BeginAccess()
        {
            if (m_Open)
            {
                return(false);
            }

            m_Process = NativeMethods.OpenProcess(ProcessAllAccess, 0, ProcessID);
            m_Open    = true;

            return(true);
        }
 public static unsafe extern int WriteProcessMemory(ClientProcessHandle process, int baseAddress, void *buffer, int size, int nullMe);
 public static unsafe extern int ReadProcessMemory(ClientProcessHandle process, int baseAddress, void *buffer, int size, ref int op);
 public static extern int CloseHandle(ClientProcessHandle handle);
 public static extern ClientProcessHandle OpenProcess(int desiredAccess, int inheritClientHandle, ClientProcessHandle processID);
 public static extern int GetWindowThreadProcessId(ClientWindowHandle window, ref ClientProcessHandle processID);
示例#8
0
		public static extern unsafe int WriteProcessMemory(
			ClientProcessHandle process, int baseAddress, void* buffer, int size, int nullMe);
示例#9
0
		public static extern unsafe int ReadProcessMemory(
			ClientProcessHandle process, int baseAddress, void* buffer, int size, ref int op);
示例#10
0
		public static extern int CloseHandle(ClientProcessHandle handle);
示例#11
0
		public static extern ClientProcessHandle OpenProcess(
			int desiredAccess, int inheritClientHandle, ClientProcessHandle processID);
示例#12
0
		public static extern int GetWindowThreadProcessId(ClientWindowHandle window, ref ClientProcessHandle processID);
		public WindowProcessStream( ClientWindowHandle window )
		{
			m_Window = window;
			m_ProcessID = ClientProcessHandle.Invalid;
		}
示例#14
0
 public WindowProcessStream(ClientWindowHandle window)
 {
     m_Window    = window;
     m_ProcessID = ClientProcessHandle.Invalid;
 }