Added handler.
Added WM_QUERYENDSESSION message handler for correct closing log-file.
This commit is contained in:
@@ -290,6 +290,14 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
}
|
||||
break;
|
||||
|
||||
case WM_QUERYENDSESSION:
|
||||
{
|
||||
diag_log(L"Recieved WM_QUERYENDSESSION message, lParam =", lParam);
|
||||
CloseLogFile();
|
||||
return TRUE;
|
||||
break;
|
||||
}
|
||||
|
||||
case WM_DESTROY:
|
||||
{
|
||||
PostQuitMessage(0);
|
||||
|
||||
Reference in New Issue
Block a user