--- q_a/samples/simpldll/loadtest.c 2018/08/09 18:29:28 1.1.1.2 +++ q_a/samples/simpldll/loadtest.c 2018/08/09 18:29:50 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: LOADTEST.C @@ -10,10 +21,6 @@ * ThreadProc - makes a single call into "THE_DLL.DLL" * AboutDlgProc- processes about dialog messages * -* -* Microsoft Developer Support -* Copyright (c) 1992 Microsoft Corporation -* \******************************************************************************/ #include @@ -40,7 +47,7 @@ int WINAPI WinMain (HANDLE hInstance,HAN { WNDCLASS wc; - wc.style = NULL; + wc.style = 0; wc.lpfnWndProc = (WNDPROC)MainWndProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; @@ -64,11 +71,11 @@ int WINAPI WinMain (HANDLE hInstance,HAN CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, hInstance, NULL))) - return (NULL); + return (0); ShowWindow (ghwndMain, nCmdShow); - while (GetMessage (&msg, NULL, NULL, NULL)) + while (GetMessage (&msg, NULL, 0, 0)) { TranslateMessage (&msg); DispatchMessage (&msg); @@ -168,7 +175,7 @@ LRESULT CALLBACK MainWndProc (HWND hwnd, if (gpfnDLLFunction1) CreateThread (NULL, 0, (LPTHREAD_START_ROUTINE) - ThreadProc, NULL, NULL, &tid); + ThreadProc, NULL, 0, &tid); break; } @@ -227,14 +234,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); }