Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
 internal static extern int CeSetUserNotificationEx(int hNotification, UserNotificationTrigger lpTrigger, UserNotification lpUserNotification);
Ejemplo n.º 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;
 }