code: def is_debugged(self):
          
          # FIXME the MSDN docs don't say what access rights are needed here!
          hProcess = self.get_handle(win32.PROCESS_QUERY_INFORMATION)
          return win32.CheckRemoteDebuggerPresent(hProcess)
docs: Tries to determine if the process is being debugged by another process.
          It may detect other debuggers besides WinAppDbg.
  
          @rtype:  bool
          @return: C{True} if the process has a debugger attached.
  
          @warning:
              May return inaccurate results when some anti-debug techniques are
              used by the target process.
  
          @note: To know if a process currently being debugged by a L{Debug}
              object, call L{Debug.is_debugee} instead.