Ignore:
Timestamp:
Feb 21, 2001, 8:47:59 AM (25 years ago)
Author:
bird
Message:

CallGate changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/lib/libInit.c

    r4787 r5224  
    1 /* $Id: libInit.c,v 1.3 2000-12-11 06:53:54 bird Exp $
     1/* $Id: libInit.c,v 1.4 2001-02-21 07:47:58 bird Exp $
    22 *
    33 * Inits the Win32k library functions.
    44 *
    5  * Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@mynd.no)
     5 * Copyright (c) 2000-2001 knut st. osmundsen (knut.stange.osmundsen@mynd.no)
    66 *
    77 * Project Odin Software License can be found in LICENSE.TXT
     
    2323#include <os2.h>
    2424
     25#include "win32k.h"
     26#include "libPrivate.h"
    2527
    2628/*******************************************************************************
     
    5658
    5759        fInited = rc == NO_ERROR;
     60
     61        /*
     62         * Get the callgate selector.
     63         */
     64        if (fInited)
     65        {
     66            K32QUERYCALLGATE    Param;
     67            ULONG               cbParam = sizeof(Param);
     68            ULONG               cbData = 0UL;
     69
     70            Param.hdr.cb    = sizeof(Param);
     71            Param.hdr.rc    = ERROR_NOT_SUPPORTED;
     72            Param.pusCGSelector = &usCGSelector;
     73
     74            rc = DosDevIOCtl(hWin32k,
     75                             IOCTL_W32K_K32,
     76                             K32_QUERYCALLGATE,
     77                             &Param, sizeof(Param), &cbParam,
     78                             "", 1, &cbData);
     79            if (rc != NO_ERROR || Param.hdr.rc != NO_ERROR)
     80            {
     81                usCGSelector = 0;       /* Just to be 100% it isn't set on a failure */
     82                                        /* since we checks if it's 0 to see if it's usable */
     83                rc = NO_ERROR;          /* This isn't a fatal error, we may still use the IOCtls. */
     84            }
     85        }
    5886    }
    5987    else
Note: See TracChangeset for help on using the changeset viewer.