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

Method is_wow64

pydevd_attach_to_process/winappdbg/process.py:689–722  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

687 win32.DebugBreakProcess(self.get_handle())
688
689 def is_wow64(self):
690 """
691 Determines if the process is running under WOW64.
692
693 @rtype: bool
694 @return:
695 C{True} if the process is running under WOW64. That is, a 32-bit
696 application running in a 64-bit Windows.
697
698 C{False} if the process is either a 32-bit application running in
699 a 32-bit Windows, or a 64-bit application running in a 64-bit
700 Windows.
701
702 @raise WindowsError: On error an exception is raised.
703
704 @see: U{http://msdn.microsoft.com/en-us/library/aa384249(VS.85).aspx}
705 """
706 try:
707 wow64 = self.__wow64
708 except AttributeError:
709 if win32.bits == 32 and not win32.wow64:
710 wow64 = False
711 else:
712 if win32.PROCESS_ALL_ACCESS == win32.PROCESS_ALL_ACCESS_VISTA:
713 dwAccess = win32.PROCESS_QUERY_LIMITED_INFORMATION
714 else:
715 dwAccess = win32.PROCESS_QUERY_INFORMATION
716 hProcess = self.get_handle(dwAccess)
717 try:
718 wow64 = win32.IsWow64Process(hProcess)
719 except AttributeError:
720 wow64 = False
721 self.__wow64 = wow64
722 return wow64
723
724 def get_arch(self):
725 """

Callers 2

get_archMethod · 0.95
get_bitsMethod · 0.95

Calls 1

get_handleMethod · 0.95

Tested by

no test coverage detected