--- q_a/samples/getdev/getdev.c 2018/08/09 18:29:30 1.1.1.2 +++ q_a/samples/getdev/getdev.c 2018/08/09 18:29:53 1.1.1.3 @@ -1,8 +1,17 @@ + +/******************************************************************************\ +* 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. +\******************************************************************************/ + /**************************************************************************\ * getdev.c -- sample program demonstrating the getdev... APIs * -* written March 92 by Steve Firebaugh -* * In this sample the main window is a dialog box. There is no need to * register a new window class or create a new window. Instead just call * DialogBox() and use the template defined in the .RC file. All of the @@ -27,7 +36,7 @@ * input parameters: c.f. generic sample * \**************************************************************************/ -int APIENTRY WinMain(HANDLE hInstance, HANDLE hPrevInstance, +int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { int ret; @@ -94,6 +103,7 @@ LONG APIENTRY MainDlgProc(HWND hwnd, UIN default: return FALSE; } /* end switch(message) */ + return 0; }