--- q_a/samples/timers/timers.c 2018/08/09 18:29:37 1.1.1.2 +++ q_a/samples/timers/timers.c 2018/08/09 18:30:03 1.1.1.3 @@ -1,3 +1,14 @@ + +/******************************************************************************\ +* This is a part of the Microsoft Source Code Samples. +* Copyright (C) 1993 Microsoft Corporation. +* All rights reserved. +* This source code is only intended as a supplement to +* Microsoft Development Tools and/or WinHelp documentation. +* See these sources for detailed information regarding the +* Microsoft samples programs. +\******************************************************************************/ + /******************************************************************************\ * * PROGRAM: TIMERS.C @@ -17,10 +28,6 @@ * the client area) is inverted each time a WM_TIMER is * received or each timer the TimerFunc() is called. * -* -* Microsoft Developer Support -* Copyright (c) 1992 Microsoft Corporation -* \******************************************************************************/ #include @@ -74,11 +81,11 @@ int WINAPI WinMain (HANDLE hInstance,HAN CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, ghInst, NULL))) - return (NULL); + return (0); ShowWindow (hwnd, nCmdShow); - while (GetMessage (&msg, NULL, NULL, NULL)) + while (GetMessage (&msg, NULL, 0,0)) { TranslateMessage (&msg); DispatchMessage (&msg); @@ -211,14 +218,14 @@ LRESULT CALLBACK MainWndProc (HWND hwnd, case WM_DESTROY: - PostQuitMessage(NULL); + PostQuitMessage(0); break; default: return (DefWindowProc(hwnd, message, wParam, lParam)); } - return (NULL); + return (0); }