MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / MakePtr64

Function MakePtr64

windows/remotectypes.py:435–445  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

433
434# ctypes 32 -> 64 methods
435def MakePtr64(type):
436 class PointerToStruct64(Remote_c_void_p64):
437 _sub_ctypes_ = (type)
438
439 @property
440 def contents(self):
441 return RemoteStructurePointer64.from_buffer_with_target_and_ptr_type(bytearray(self), target=self.target, ptr_type=self).contents
442
443 def __repr__(self):
444 return "<RemotePtr64 to struct {0}>".format(type.__name__)
445 return PointerToStruct64
446
447def transform_structure_to_remote64bits(structcls):
448 """Create a remote structure for a 64bits target process"""

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected