Mercurial > servermonitor
comparison ServerMonitor/Win32Helpers.cs @ 8:052aa62cb42a
Single instance. Add autorun option. Add icons. General enhancements.
author | Brad Greco <brad@bgreco.net> |
---|---|
date | Sat, 09 Mar 2019 20:14:03 -0500 |
parents | 3142e52cbe69 |
children | 68d7834dc28e |
comparison
equal
deleted
inserted
replaced
7:8486ab7d2357 | 8:052aa62cb42a |
---|---|
21 public IntPtr hwnd; | 21 public IntPtr hwnd; |
22 public UInt32 dwFlags; | 22 public UInt32 dwFlags; |
23 public UInt32 uCount; | 23 public UInt32 uCount; |
24 public UInt32 dwTimeout; | 24 public UInt32 dwTimeout; |
25 } | 25 } |
26 | |
27 public const int HWND_BROADCAST = 0xffff; | |
28 public static readonly int WM_SHOWMONITOR = RegisterWindowMessage("WM_SHOWMONITOR"); | |
29 [DllImport("user32")] | |
30 public static extern bool PostMessage(IntPtr hwnd, int msg, IntPtr wparam, IntPtr lparam); | |
31 [DllImport("user32")] | |
32 public static extern int RegisterWindowMessage(string message); | |
26 | 33 |
27 public enum FlashWindowFlags : uint | 34 public enum FlashWindowFlags : uint |
28 { | 35 { |
29 /// <summary> | 36 /// <summary> |
30 /// Stop flashing. The system restores the window to its original state. | 37 /// Stop flashing. The system restores the window to its original state. |