mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
Small improvments
This commit is contained in:
@@ -177,6 +177,10 @@ class SymbolType(object):
|
||||
windows.winproxy.LocalFree(res)
|
||||
return newres
|
||||
|
||||
@property
|
||||
def module(self):
|
||||
return self.resolver.get_module(self.modbase)
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
return self._get_type_info(gdef.TI_GET_SYMNAME)
|
||||
|
||||
+5
-1
@@ -169,8 +169,12 @@ def get_current_process_syswow_peb():
|
||||
|
||||
class CurrentProcessReadSyswow(process.Process):
|
||||
bitness = 64
|
||||
|
||||
def _get_handle(self):
|
||||
return winproxy.OpenProcess(dwProcessId=windows.current_process.pid)
|
||||
return winproxy.GetCurrentProcess()
|
||||
|
||||
def __del__(self):
|
||||
pass
|
||||
|
||||
def read_memory(self, addr, size):
|
||||
buffer_addr = ctypes.create_string_buffer(size)
|
||||
|
||||
@@ -377,6 +377,7 @@ class ImprovedEVT_VARIANT(gdef.EVT_VARIANT):
|
||||
gdef.EvtVarTypeUInt16 + gdef.EVT_VARIANT_TYPE_ARRAY : "UInt16Arr",
|
||||
gdef.EvtVarTypeUInt32 + gdef.EVT_VARIANT_TYPE_ARRAY : "UInt32Arr",
|
||||
gdef.EvtVarTypeUInt64 + gdef.EVT_VARIANT_TYPE_ARRAY : "UInt64Arr",
|
||||
gdef.EvtVarTypeHexInt64 + gdef.EVT_VARIANT_TYPE_ARRAY : "UInt64Arr",
|
||||
}
|
||||
NoneValue = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user