32 lines
577 B
C++
32 lines
577 B
C++
|
#include <windows.h>
|
|||
|
#include <iostream>
|
|||
|
#include <thread>
|
|||
|
#include <chrono>
|
|||
|
|
|||
|
#pragma warning(disable: 4996)
|
|||
|
|
|||
|
// ReSharper disable CppDeprecatedEntity
|
|||
|
// ReSharper disable CppClangTidyCertErr33C
|
|||
|
|
|||
|
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
|
|||
|
{
|
|||
|
using namespace std::chrono_literals;
|
|||
|
|
|||
|
AllocConsole();
|
|||
|
|
|||
|
freopen("CONOUT$", "w", stdout);
|
|||
|
|
|||
|
SetConsoleTitle("FocusIME");
|
|||
|
|
|||
|
std::cout << "Hello, FocusIME!" << std::endl;
|
|||
|
|
|||
|
std::this_thread::sleep_for(3s);
|
|||
|
|
|||
|
FreeConsole();
|
|||
|
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
// ReSharper restore CppDeprecatedEntity
|
|||
|
// ReSharper restore CppClangTidyCertErr33C
|