code: def get_dep_policy(self):
          
          hProcess = self.get_handle(win32.PROCESS_QUERY_INFORMATION)
          try:
              return win32.kernel32.GetProcessDEPPolicy(hProcess)
          except AttributeError:
              msg = "This method is only available in Windows XP SP3 and above."
              raise NotImplementedError(msg)
docs: Retrieves the DEP (Data Execution Prevention) policy for this process.
  
          @note: This method is only available in Windows XP SP3 and above, and
              only for 32 bit processes. It will fail in any other circumstance.
  
          @see: U{http://msdn.microsoft.com/en-us/library/bb736297(v=vs.85).aspx}
  
          @rtype:  tuple(int, int)
          @return:
              The first member of the tuple is the DEP flags. It can be a
              combination of the following values:
               - 0: DEP is disabled for this process.
               - 1: DEP is enabled for this process. (C{PROCESS_DEP_ENABLE})
               - 2: DEP-ATL thunk emulation is disabled for this process.
                    (C{PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION})
  
              The second member of the tuple is the permanent flag. If C{TRUE}
              the DEP settings cannot be changed in runtime for this process.
  
          @raise WindowsError: On error an exception is raised.