Package winappdbg :: Package win32 :: Module kernel32 :: Class ProcessHandle
[hide private]
[frames] | no frames]

Class ProcessHandle

source code


Win32 process handle.


See Also: Handle

Instance Methods [hide private]
 
__init__(self, aHandle=None, bOwnership=True, dwAccess=2097151)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
int
get_pid(self)
Returns: Process global ID.
source code
Handle
__copy__(self)
Duplicates the Win32 handle when copying the Python object. (Inherited from winappdbg.win32.kernel32.Handle)
source code
Handle
__deepcopy__(self)
Duplicates the Win32 handle when copying the Python object. (Inherited from winappdbg.win32.kernel32.Handle)
source code
 
__del__(self)
Closes the Win32 handle when the Python object is destroyed. (Inherited from winappdbg.win32.kernel32.Handle)
source code
 
__enter__(self)
Compatibility with the "with" Python statement. (Inherited from winappdbg.win32.kernel32.Handle)
source code
 
__exit__(self, type, value, traceback)
Compatibility with the "with" Python statement. (Inherited from winappdbg.win32.kernel32.Handle)
source code
 
__repr__(self)
repr(x) (Inherited from winappdbg.win32.kernel32.Handle)
source code
 
_close(self)
Low-level close method. (Inherited from winappdbg.win32.kernel32.Handle)
source code
 
close(self)
Closes the Win32 handle. (Inherited from winappdbg.win32.kernel32.Handle)
source code
Handle
dup(self)
Returns: A new handle to the same Win32 object. (Inherited from winappdbg.win32.kernel32.Handle)
source code
 
wait(self, dwMilliseconds=None)
Wait for the Win32 object to be signaled. (Inherited from winappdbg.win32.kernel32.Handle)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
_normalize(value)
Normalize handle values. (Inherited from winappdbg.win32.kernel32.Handle)
 
from_param(value)
Compatibility with ctypes. (Inherited from winappdbg.win32.kernel32.Handle)
Instance Variables [hide private]
int dwAccess
Current access flags to this handle.
bool inherit
True if the handle is to be inherited by child processes, False otherwise. (Inherited from winappdbg.win32.kernel32.Handle)
bool protectFromClose
Set to True to prevent the handle from being closed. (Inherited from winappdbg.win32.kernel32.Handle)
Properties [hide private]
  _as_parameter_
Compatibility with ctypes. (Inherited from winappdbg.win32.kernel32.Handle)
  value (Inherited from winappdbg.win32.kernel32.Handle)

Inherited from object: __class__

Method Details [hide private]

__init__(self, aHandle=None, bOwnership=True, dwAccess=2097151)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • aHandle (int) - Win32 handle value.
  • bOwnership (bool) - True if we own the handle and we need to close it. False if someone else will be calling CloseHandle.
  • dwAccess (int) - Current access flags to this handle. This is the same value passed to OpenProcess. Can only be None if aHandle is also None. Defaults to PROCESS_ALL_ACCESS.
Overrides: object.__init__

get_pid(self)

source code 
Returns: int
Process global ID.

Instance Variable Details [hide private]

dwAccess

Current access flags to this handle. This is the same value passed to OpenProcess. Can only be None if aHandle is also None. Defaults to PROCESS_ALL_ACCESS.
Type:
int