Share via


CeSetUserNotification (Compact 2013)

3/28/2014

This function creates a new user notification or modifies an existing one. Use the CeSetUserNotificationEx function instead.

Syntax

HANDLE CeSetUserNotification(
  HANDLE hNotification, 
  TCHAR* pwszAppName, 
  SYSTEMTIME* lpTime, 
  PCE_USER_NOTIFICATION lpUserNotification 
); 

Parameters

  • hNotification
    [in] Handle to the notification to overwrite, or zero to add a new notification.
  • pwszAppName
    [in] Pointer to a null-terminated string that specifies the name of the application that owns this notification. The system uses the application's primary icon as the taskbar annunciator for the notification. The user can start the application by selecting the annunciator.
  • lpTime
    [in] Long pointer to the SYSTEMTIME structure that specifies the time when the notification should occur.
  • lpUserNotification
    [in] Long pointer to the CE_USER_NOTIFICATION structure that describes the events that are to occur when the notification time is reached.

Return Value

The handle to the notification indicates success. This handle can then be used with the other Notify functions. Zero indicates failure.

Remarks

Requirements

Header

notify.h

Library

coredll.lib

See Also

Reference

Notify Functions
CeHandleAppNotifications

Other Resources

IOCTL_KLIB_GETALARMRESOLUTION