/// <summary> /// Initializes a new instance of the <see cref="Notification"/> class. /// </summary> /// <remarks>This class is not supported on the Smartphone or other Windows CE devices that are not Pocket PCs. /// You can create multiple notifications, such as an array of notifications, and display them as needed with the Visible property.</remarks> public Notification() { m_data = new SHNOTIFICATIONDATA(); m_data.clsid = clsid; m_data.hwndSink = msgwnd.Hwnd; m_data.dwID = id; m_data.cbStruct = Marshal.SizeOf(m_data); notifications.Add(id, this); id++; }
private static extern int SHNotificationUpdate(int grnumUpdateMask, ref SHNOTIFICATIONDATA shinfo);
private static extern int SHNotificationGetData(ref Guid clsid, int dwID, ref SHNOTIFICATIONDATA shinfo);
private static extern int SHNotificationAdd(ref SHNOTIFICATIONDATA shinfo);