| 135 | } |
| 136 | |
| 137 | int APIENTRY wWinMain(_In_ HINSTANCE hInstance, |
| 138 | _In_opt_ HINSTANCE hPrevInstance, |
| 139 | _In_ LPWSTR lpCmdLine, |
| 140 | _In_ int nCmdShow) |
| 141 | { |
| 142 | UNREFERENCED_PARAMETER(hPrevInstance); |
| 143 | UNREFERENCED_PARAMETER(lpCmdLine); |
| 144 | |
| 145 | // Initialize global strings |
| 146 | LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); |
| 147 | LoadStringW(hInstance, IDC_VALIDATIONTESTSWIN32, szWindowClass, MAX_LOADSTRING); |
| 148 | MyRegisterClass(hInstance); |
| 149 | |
| 150 | // Perform application initialization: |
| 151 | if (!InitInstance(hInstance, nCmdShow)) |
| 152 | { |
| 153 | return FALSE; |
| 154 | } |
| 155 | |
| 156 | HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_VALIDATIONTESTSWIN32)); |
| 157 | |
| 158 | MSG msg; |
| 159 | |
| 160 | // Main message loop: |
| 161 | while (GetMessage(&msg, nullptr, 0, 0)) |
| 162 | { |
| 163 | if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) |
| 164 | { |
| 165 | TranslateMessage(&msg); |
| 166 | DispatchMessage(&msg); |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | return (int)msg.wParam; |
| 171 | } |
| 172 | |
| 173 | // |
| 174 | // FUNCTION: MyRegisterClass() |
nothing calls this directly
no test coverage detected