Monitor Default-monitor For Windows 10 X64 -
RegisterClass(&wc); HWND hwnd = CreateWindowEx(0, CLASS_NAME, "MonitorWatcher", 0, 0, 0, 0, 0, HWND_MESSAGE, NULL, wc.hInstance, NULL);
// Initial print PrintDefaultMonitorInfo(); monitor default-monitor for windows 10 x64
// Register a simple window class to receive system messages const char CLASS_NAME[] = "MonitorWatcherClass"; WNDCLASS wc = {}; wc.lpfnWndProc = WndProc; wc.hInstance = GetModuleHandle(NULL); wc.lpszClassName = CLASS_NAME; HWND hwnd = CreateWindowEx(0
return DefWindowProc(hwnd, msg, wParam, lParam); // Initial print PrintDefaultMonitorInfo()