MCPcopy Create free account
hub / github.com/AHXR/ghost / WinMain

Function WinMain

_src/server/server.cpp:56–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54#pragma comment (lib, "user32.lib") // Windows functions
55
56int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pScmdline, int iCmdshow)
57{
58 b_gui_active = true;
59 h_gui = CreateThread(0, 0, t_gui, 0, 0, 0);
60 CreateThread(0, 0, t_window, 0, 0, 0);
61
62 while (b_gui_active) // This is to prevent this program from closing; but instead, run in the background.
63 Sleep(1000);
64 return 0;
65}
66
67DWORD WINAPI t_window(LPVOID params) {
68 System::Windows::Forms::Application::EnableVisualStyles();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected