Changeset 2904


Ignore:
Timestamp:
Feb 26, 2000, 6:48:23 PM (25 years ago)
Author:
bird
Message:

Win32k library.

Location:
trunk/src/win32k/lib
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/win32k/lib/libDosAllocMemEx.c

    r2823 r2904  
    1 /* $Id: libDosAllocMemEx.c,v 1.1 2000-02-18 19:27:31 bird Exp $
     1/* $Id: libDosAllocMemEx.c,v 1.2 2000-02-26 17:48:22 bird Exp $
    22 *
    33 * DosAllocMemEx - Extened Edition of DosAllocMem.
     
    1414*   Header Files                                                               *
    1515*******************************************************************************/
    16 #define INCL_DOSERROR
     16#define INCL_DOSERRORS
    1717#define INCL_DOSFILEMGR
    1818#define INCL_DOSDEVICES
     
    3030*   Global Variables                                                           *
    3131*******************************************************************************/
    32 static BOOL fInited = FALSE;
    33 HFILE       hWin32k = NULLHANDLE;
     32extern BOOL    fInited = FALSE;
     33extern HFILE    hWin32k = NULLHANDLE;
    3434
    3535
     
    4343    {
    4444        K32ALLOCMEMEX Param;
     45        ULONG         cbParam = sizeof(Param);
     46        ULONG         cbData = 0UL;
    4547        Param.pv = *ppv;
    4648        Param.cb = cb;
    4749        Param.flFlags = flag;
    4850        Param.rc = 0;
    49         Param.ulCS = ;
    50         Param.ulEIP = ;
     51        Param.ulCS = -1;
     52        Param.ulEIP = -1;
    5153
    52         param.pRpInitIn = pRpIn;
    5354        rc = DosDevIOCtl(hWin32k,
    5455                         IOCTL_W32K_K32,
  • TabularUnified trunk/src/win32k/lib/libInit.c

    r2823 r2904  
    1 /* $Id: libInit.c,v 1.1 2000-02-18 19:27:31 bird Exp $
     1/* $Id: libInit.c,v 1.2 2000-02-26 17:48:22 bird Exp $
    22 *
    33 * Inits the Win32k library functions.
     
    1313*   Header Files                                                               *
    1414*******************************************************************************/
    15 #define INCL_DOSERROR
     15#define INCL_DOSERRORS
    1616#define INCL_DOSFILEMGR
    1717#define INCL_DOSDEVICES
     
    2727*   Global Variables                                                           *
    2828*******************************************************************************/
    29 static BOOL fInited = FALSE;
    30 HFILE       hWin32k = NULLHANDLE;
     29BOOL    fInited = FALSE;
     30HFILE   hWin32k = NULLHANDLE;
    3131
    3232
  • TabularUnified trunk/src/win32k/lib/libTerm.c

    r2830 r2904  
    1 /* $Id: libTerm.c,v 1.1 2000-02-19 16:52:38 bird Exp $
     1/* $Id: libTerm.c,v 1.2 2000-02-26 17:48:23 bird Exp $
    22 *
    33 * Terminates the Win32k library functions.
     
    1313*   Header Files                                                               *
    1414*******************************************************************************/
    15 #define INCL_DOSERROR
     15#define INCL_DOSERRORS
    1616#define INCL_DOSFILEMGR
    1717#define INCL_DOSDEVICES
     
    2727*   Global Variables                                                           *
    2828*******************************************************************************/
    29 extern static BOOL fInited;
     29extern BOOL        fInited;
    3030extern HFILE       hWin32k;
    3131
     
    3939APIRET APIENTRY  libWin32kTerm(void)
    4040{
     41    APIRET rc = NO_ERROR;
     42
    4143    if (fInited)
    42         DosClose(hWin32k);
    43     hWin32k = NULLHANDLE;
    44     fInited = FALSE;
    45     return NO_ERROR;
     44        rc = DosClose(hWin32k);
     45
     46    if (rc == NO_ERROR)
     47    {
     48        hWin32k = NULLHANDLE;
     49        fInited = FALSE;
     50    }
     51    return rc;
    4652}
    4753
Note: See TracChangeset for help on using the changeset viewer.