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

Method context_syswow

windows/winobject/process.py:816–829  ·  view source on GitHub ↗

The 64 bits context of a syswow thread. :type: :class:`windows.exception.ECONTEXT64`

(self)

Source from the content-addressed store, hash-verified

814
815 @property
816 def context_syswow(self):
817 """The 64 bits context of a syswow thread.
818
819 :type: :class:`windows.exception.ECONTEXT64`
820 """
821 if not self.owner.is_wow_64:
822 raise ValueError("Not a syswow process")
823 x = exception.ECONTEXT64.new_aligned()
824 x.ContextFlags = CONTEXT_ALL
825 if windows.current_process.bitness == 64:
826 winproxy.GetThreadContext(self.handle, x)
827 else:
828 windows.syswow64.NtGetContextThread_32_to_64(self.handle, x)
829 return x
830
831
832 def set_context(self, context):

Callers

nothing calls this directly

Calls 1

new_alignedMethod · 0.80

Tested by

no test coverage detected