--- mstools/samples/gdidemo/wininfo.c 2018/08/09 18:20:01 1.1 +++ mstools/samples/gdidemo/wininfo.c 2018/08/09 18:23:50 1.1.1.2 @@ -1,14 +1,20 @@ + +/******************************************************************************\ +* 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. +\******************************************************************************/ + /*---------------------------------------------------------------------------*\ | WINDOW INFORMATION MODULE | This module contains the routines which deal with obtaining the extra | object information associated with a window. For these to work, the | window class must reserve the 0th word of the win-class object to be | used to hold global-memory handle. -| -| segment: _TEXT (DOS16) -| created: 22-Aug-90 -| history: 22-Aug-90 created. -| \*---------------------------------------------------------------------------*/ #include @@ -18,10 +24,6 @@ | ALLOC WINDOW INFO | This routine allocates memory out of the application heap for storing | extra memory for the window. It is alway referenced as offset 0. -| -| created: 20-Aug-90 -| history: 20-Aug-90 created. -| \*---------------------------------------------------------------------------*/ BOOL FAR AllocWindowInfo(HWND hWnd, WORD wSize) { @@ -41,10 +43,6 @@ BOOL FAR AllocWindowInfo(HWND hWnd, WORD | LOCK WINDOW INFO | This routine de-references the extra-memory associated with the window. | it locks the object and gives the caller a pointer to the memory. -| -| created: 20-Aug-90 -| history: 20-Aug-90 created. -| \*---------------------------------------------------------------------------*/ PVOID FAR LockWindowInfo(HWND hWnd) { @@ -63,10 +61,6 @@ PVOID FAR LockWindowInfo(HWND hWnd) /*---------------------------------------------------------------------------*\ | UNLOCK WINDOW INFO | This routine unlocks the memory the caller has previously locked. -| -| created: 20-Aug-90 -| history: 20-Aug-90 created. -| \*---------------------------------------------------------------------------*/ BOOL FAR UnlockWindowInfo(HWND hWnd) { @@ -84,10 +78,6 @@ BOOL FAR UnlockWindowInfo(HWND hWnd) /*---------------------------------------------------------------------------*\ | FREE WINDOW INFO | This routine frees the object memory associated with the window. -| -| created: 20-Aug-90 -| history: 20-Aug-90 created. -| \*---------------------------------------------------------------------------*/ BOOL FAR FreeWindowInfo(HWND hWnd) {