MCPcopy Create free account
hub / github.com/qilingframework/qiling / Handle

Class Handle

qiling/os/windows/handle.py:11–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9from qiling.os.windows.const import STD_ERROR_HANDLE, STD_INPUT_HANDLE, STD_OUTPUT_HANDLE
10
11class Handle:
12 ID = 0xa0000000
13
14 def __init__(self, id: Optional[int] = None, obj: Any = None, name: Optional[str] = None, permissions: Optional[int] = None):
15 if id is None:
16 id = Handle.ID
17 Handle.ID += 1
18
19 self.id = id
20 self.obj = obj
21 self.name = name
22 self.permissions = permissions
23
24 # overload "=="
25 def __eq__(self, other: 'Handle'):
26 return self.id == other.id
27
28
29class HandleManager:

Callers 15

__init__Method · 0.90
hook__wfopen_sFunction · 0.90
_ShellExecuteFunction · 0.90
hook_GetConsoleWindowFunction · 0.90
hook_FindFirstFileAFunction · 0.90
_CreateFileFunction · 0.90
_CreateFileMappingFunction · 0.90
hook_MapViewOfFileFunction · 0.90
hook_InitializeSListHeadFunction · 0.90
__CreateMutexFunction · 0.90
__CreateEventFunction · 0.90
hook_CreateThreadFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected