parameters: (appName, eventLogType = "Application")
docstring: Removes a source of messages from the event log.
docstring_summary: Removes a source of messages from the event log.
docstring_tokens: Removes a source of messages from the event log .
function: def RemoveSourceFromRegistry(appName, eventLogType = "Application"):
      """Removes a source of messages from the event log.
      """
  
      # Delete our key
      try:
          win32api.RegDeleteKey(win32con.HKEY_LOCAL_MACHINE, \
                       "SYSTEM\\CurrentControlSet\\Services\\EventLog\\%s\\%s" % (eventLogType, appName))
      except win32api.error, exc:
          if exc.winerror != winerror.ERROR_FILE_NOT_FOUND:
              raise
function_tokens: def RemoveSourceFromRegistry ( appName , eventLogType = "Application" ) : # Delete our key try : win32api . RegDeleteKey ( win32con . HKEY_LOCAL_MACHINE , "SYSTEM\\CurrentControlSet\\Services\\EventLog\\%s\\%s" % ( eventLogType , appName ) ) except win32api . error , exc : if exc . winerror != winerror . ERROR_FILE_NOT_FOUND : raise