code: def open_handle(self, dwDesiredAccess = win32.PROCESS_ALL_ACCESS):
          
          hProcess = win32.OpenProcess(dwDesiredAccess, win32.FALSE, self.dwProcessId)
  
          try:
              self.close_handle()
          except Exception:
              warnings.warn(
                  "Failed to close process handle: %s" % traceback.format_exc())
  
          self.hProcess = hProcess
docs: Opens a new handle to the process.
  
          The new handle is stored in the L{hProcess} property.
  
          @warn: Normally you should call L{get_handle} instead, since it's much
              "smarter" and tries to reuse handles and merge access rights.
  
          @type  dwDesiredAccess: int
          @param dwDesiredAccess: Desired access rights.
              Defaults to L{win32.PROCESS_ALL_ACCESS}.
              See: U{http://msdn.microsoft.com/en-us/library/windows/desktop/ms684880(v=vs.85).aspx}
  
          @raise WindowsError: It's not possible to open a handle to the process
              with the requested access rights. This tipically happens because
              the target process is a system process and the debugger is not
              runnning with administrative rights.