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)
| 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 | """ |
no test coverage detected