home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2009 June / maximum-cd-2009-06.iso / DiscContents / digsby_setup.exe / lib / gui / native / win / winfullscreen.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-02-26  |  816 b   |  25 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.5)
  3.  
  4. from util.ffi import cimport
  5. from ctypes import c_int, byref, WinError, windll
  6. from gui.native.win.winutil import is_vista
  7.  
  8. try:
  9.     SHQueryUserNotificationState = windll.shell32.SHQueryUserNotificationState
  10. except AttributeError:
  11.     enabled = False
  12.  
  13. enabled = True
  14.  
  15. def get_accepts_notifications():
  16.     state = c_int()
  17.     if SHQueryUserNotificationState(byref(state)):
  18.         raise WinError()
  19.     
  20.     return state.value == 5
  21.  
  22. if __name__ == '__main__':
  23.     print get_accepts_notifications()
  24.  
  25.