SHNOTIFICATIONDATA

This structure contains notification data.

typedef struct _SHNOTIFICATIONDATA {
  DWORD cbStruct;
  DWORD dwID;
  SHNP npPriority;
  DWORD csDuration;
  HICON hicon;
  DWORD grfFlags;
  CLSID clsid;
  HWND hwndSink;
  LPCTSTR pszHTML;
  LPCTSTR pszTitle;
  LPARAM lParam;
} SHNOTIFICATIONDATA;

Members

  • cbStruct
    Use for verification and versioning.
  • dwID
    Identifier for this particular notification.
  • npPriority
    Priority for the notification. The following table shows the possible priority values.
    Value Description
    SHNP_INFORM Bubble shown for duration, then goes away.
    SHNP_ICONIC No bubble, icon shown for duration then goes away.
  • csDuration
    Duration of the notification. The usage depends on the priority. Time is in seconds.
  • hicon
    Handle to the icon for the notification.
  • grfFlags
    Determines which members in the structure are valid or active. The following table shows the possible flag values.
    Flag Description
    SHNUM_PRIORITY The npPriority member is active.
    SHNUM_DURATION The csDuration member is active.
    SHNUM_ICON The hicon member is active.
    SHNUM_HTML The pszHTML member is active.
    SHNUM_TITLE The pszTitle member is active.
  • clsid
    Unique identifier for the notification class.
  • hwndSink
    Handle to the window to receive command choices, dismiss, and so on.
  • pszHTML
    HTML content for the notification bubble.
  • pszTitle
    String that contains the optional title for notification bubble.
  • lParam
    User-defined parameter.

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: AYGShell.h.

See Also

AYGShell Structures | SHNotificationAdd | SHNotificationGetData | SHNotificationUpdate

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.