Sdk 8.1: Windows
if (hwnd == NULL) return 0;
HWND hwnd = CreateWindowEx( 0, L"MyWindowClass", L"Windows SDK 8.1 Desktop App", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 800, 600, NULL, NULL, hInstance, NULL ); windows sdk 8.1
MSG msg; while (GetMessage(&msg, NULL, 0, 0)) if (hwnd == NULL) return 0; HWND hwnd
If you are migrating from the Windows 8 SDK, several major API additions were introduced: if (hwnd == NULL) return 0