Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

48 lines
2.2 KiB

/******************************************************************************\
* 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.
\*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*\
| 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.
\*---------------------------------------------------------------------------*/
BOOL FAR AllocWindowInfo(HWND hWnd, WORD wSize);
/*---------------------------------------------------------------------------*\
| 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.
\*---------------------------------------------------------------------------*/
PVOID FAR LockWindowInfo(HWND hWnd);
/*---------------------------------------------------------------------------*\
| UNLOCK WINDOW INFO
| This routine unlocks the memory the caller has previously locked.
\*---------------------------------------------------------------------------*/
BOOL FAR UnlockWindowInfo(HWND hWnd);
/*---------------------------------------------------------------------------*\
| FREE WINDOW INFO
| This routine frees the object memory associated with the window.
\*---------------------------------------------------------------------------*/
BOOL FAR FreeWindowInfo(HWND hWnd);