home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyo (Python 2.5)
-
- from util.ffi import cimport
- from ctypes import c_int, byref, WinError, windll
- from gui.native.win.winutil import is_vista
-
- try:
- SHQueryUserNotificationState = windll.shell32.SHQueryUserNotificationState
- except AttributeError:
- enabled = False
-
- enabled = True
-
- def get_accepts_notifications():
- state = c_int()
- if SHQueryUserNotificationState(byref(state)):
- raise WinError()
-
- return state.value == 5
-
- if __name__ == '__main__':
- print get_accepts_notifications()
-
-