Package winappdbg :: Module system :: Class FileHandle
[hide private]
[frames] | no frames]

Class FileHandle


Win32 file handle.


See Also: Handle

Instance Methods [hide private]
str, None
get_filename(self)
Returns: Name of the open file, or None on error.
Handle
__copy__(self)
Duplicates the win32 handle when copying the python object. (Inherited from winappdbg.system.Handle)
Handle
__deepcopy__(self)
Duplicates the win32 handle when copying the python object. (Inherited from winappdbg.system.Handle)
 
__del__(self)
Closes the win32 handle when the python object is destroyed. (Inherited from winappdbg.system.Handle)
 
__init__(self, aHandle=None, bOwnership=True)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature (Inherited from winappdbg.system.Handle)
Handle
dup(self)
Returns: A new handle to the same win32 object. (Inherited from winappdbg.system.Handle)
 
wait(self, dwMilliseconds=None)
Wait for the win32 object to be signaled. (Inherited from winappdbg.system.Handle)

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods [hide private]
str
pathname_to_filename(pathname)
Returns: Relative path.
str
filename_to_pathname(filename)
Returns: Absolute path.
bool
path_is_relative(path)
Returns: True if the path is relative, False if it's absolute.
bool
path_is_absolute(path)
Returns: True if the path is absolute, False if it's relative.
tuple( str, str )
split_extension(pathname)
Returns: Tuple containing the file and extension components of the filename.
tuple( str, str )
split_filename(pathname)
Returns: Tuple containing the path to the file and the base filename.
list( str... )
split_path(path)
Returns: List of path components.
str
join_path(*components)
Returns: Absolute or relative path.
str
native_to_win32_pathname(name)
Returns: Win32 absolute pathname.
Properties [hide private]
  _as_parameter_
Compatibility with ctypes. (Inherited from winappdbg.system.Handle)

Inherited from object: __class__

Method Details [hide private]

get_filename(self)

 
Returns: str, None
Name of the open file, or None on error.

pathname_to_filename(pathname)
Static Method

 
Parameters:
  • pathname (str) - Absolute path.
Returns: str
Relative path.

filename_to_pathname(filename)
Static Method

 
Parameters:
  • filename (str) - Relative path.
Returns: str
Absolute path.

path_is_relative(path)
Static Method

 
Parameters:
  • path (str) - Absolute or relative path.
Returns: bool
True if the path is relative, False if it's absolute.

See Also: path_is_absolute

path_is_absolute(path)
Static Method

 
Parameters:
  • path (str) - Absolute or relative path.
Returns: bool
True if the path is absolute, False if it's relative.

See Also: path_is_relative

split_extension(pathname)
Static Method

 
Parameters:
  • pathname (str) - Absolute path.
Returns: tuple( str, str )
Tuple containing the file and extension components of the filename.

split_filename(pathname)
Static Method

 
Parameters:
  • pathname (str) - Absolute path.
Returns: tuple( str, str )
Tuple containing the path to the file and the base filename.

split_path(path)
Static Method

 
Parameters:
  • path (str) - Absolute or relative path.
Returns: list( str... )
List of path components.

See Also: join_path

join_path(*components)
Static Method

 
Parameters:
  • components (tuple( str... )) - Path components.
Returns: str
Absolute or relative path.

See Also: split_path

native_to_win32_pathname(name)
Static Method

 
Parameters:
  • name (str) - Native (NT) absolute pathname.
Returns: str
Win32 absolute pathname.