using System; using System.Runtime.InteropServices; namespace TweetLib.Communication.Utils{ static class NativeMethods{ public static readonly IntPtr HWND_BROADCAST = new IntPtr(0xFFFF); [DllImport("user32.dll")] public static extern bool PostMessage(IntPtr hWnd, uint msg, UIntPtr wParam, IntPtr lParam); [DllImport("user32.dll")] public static extern uint RegisterWindowMessage(string messageName); } }