| 54 | #pragma comment (lib, "user32.lib") // Windows functions |
| 55 | |
| 56 | int 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 | |
| 67 | DWORD WINAPI t_window(LPVOID params) { |
| 68 | System::Windows::Forms::Application::EnableVisualStyles(); |
nothing calls this directly
no outgoing calls
no test coverage detected