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