public static int SetUserNotification(int handle, UserNotificationTrigger trigger, UserNotification notification)
        {
            int num = NativeMethods.CeSetUserNotificationEx(handle, trigger, notification);

            if (num == 0)
            {
                throw new Win32Exception(Marshal.GetLastWin32Error(), "Error setting UserNotification");
            }
            return(num);
        }
 internal static extern int CeSetUserNotificationEx(int hNotification, UserNotificationTrigger lpTrigger, UserNotification lpUserNotification);
Example #3
0
 public static int SetUserNotification(int handle, UserNotificationTrigger trigger, UserNotification notification)
 {
     int num = NativeMethods.CeSetUserNotificationEx(handle, trigger, notification);
     if (num == 0)
     {
         throw new Win32Exception(Marshal.GetLastWin32Error(), "Error setting UserNotification");
     }
     return num;
 }