public static extern bool DispatchMessage(ref MSG msg); [DllImport("User32.dll", CharSet=CharSet.Auto)]