AllocConsole CreateFile CreatePopupMenu DestroyMenu DestroyWindow FindWindowEx GetClassName GetCurrentThreadId GetPwrCapabilities GetWindowThreadProcessId HMENU InsertMenu PostQuitMessage SendMessage SetConsoleCtrlHandler SetForegroundWindow SetStdHandle SetThreadExecutionState TrackPopupMenuEx WM_CLOSE WM_COMMAND WM_GETTEXT WM_USER