private void CreateMessagePump() { //Main2(System.Diagnostics.Process.GetCurrentProcess().Handle, IntPtr.Zero, string.Empty, (int)ShowWindowCommands.Normal); MessagePump messagePump = new MessagePump(); messagePump.CreateMessagePump(IntPtr.Zero, IntPtr.Zero, "some string", 0); }