public NotificationWindow(ShellNotificationListener parent)
 {
     SHChangeNotifyEntry notify = new SHChangeNotifyEntry();
     notify.pidl = ShellItem.Desktop.Pidl;
     notify.fRecursive = true;
     m_NotifyId = Shell32.SHChangeNotifyRegister(this.Handle,
         SHCNRF.InterruptLevel | SHCNRF.ShellLevel,
         SHCNE.ALLEVENTS, WM_SHNOTIFY, 1, ref notify);
     m_Parent = parent;
 }
 public static extern uint SHChangeNotifyRegister(IntPtr hWnd,
                                                  SHCNRF fSources, SHCNE fEvents, uint wMsg, int cEntries,
                                                  ref SHChangeNotifyEntry pFsne);
Exemple #3
0
 public static extern uint SHChangeNotifyRegister(IntPtr hWnd,
     SHCNRF fSources, SHCNE fEvents, uint wMsg, int cEntries,
     ref SHChangeNotifyEntry pFsne);