MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / is_wow64

Method is_wow64

pydevd_attach_to_process/winappdbg/thread.py:840–865  ·  view source on GitHub ↗

Determines if the thread is running under WOW64. @rtype: bool @return: C{True} if the thread is running under WOW64. That is, it belongs to a 32-bit application running in a 64-bit Windows. C{False} if the thread belongs to either a 32-

(self)

Source from the content-addressed store, hash-verified

838 # ------------------------------------------------------------------------------
839
840 def is_wow64(self):
841 """
842 Determines if the thread is running under WOW64.
843
844 @rtype: bool
845 @return:
846 C{True} if the thread is running under WOW64. That is, it belongs
847 to a 32-bit application running in a 64-bit Windows.
848
849 C{False} if the thread belongs to either a 32-bit application
850 running in a 32-bit Windows, or a 64-bit application running in a
851 64-bit Windows.
852
853 @raise WindowsError: On error an exception is raised.
854
855 @see: U{http://msdn.microsoft.com/en-us/library/aa384249(VS.85).aspx}
856 """
857 try:
858 wow64 = self.__wow64
859 except AttributeError:
860 if win32.bits == 32 and not win32.wow64:
861 wow64 = False
862 else:
863 wow64 = self.get_process().is_wow64()
864 self.__wow64 = wow64
865 return wow64
866
867 def get_arch(self):
868 """

Callers 3

suspendMethod · 0.95
get_contextMethod · 0.95
set_contextMethod · 0.95

Calls 1

get_processMethod · 0.95

Tested by

no test coverage detected