public void RegisterNotificationEvent(SystemTrayNotificationEventHandler eventHandler) { systemTrayNotification += eventHandler; User32.ShowWindow(oldTaskbar, 0); User32.SetWindowPos(windowHandle, new(0), 0, 0, 0, 0, 0x0010 | 0x0002 | 0x0008 | 0x0400 | 0x0001); if (!User32.PostMessage(new(HWND_BROADCAST), (uint)WM_TASKBARCREATED, 0, 0)) { Debugger.Break(); } }
public void UnregisterNotificationEvent(SystemTrayNotificationEventHandler eventHandler) { systemTrayNotification -= eventHandler; }