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/libW32kHandleSystemEvent.c

    r5167 r5224  
    1 /* $Id: libW32kHandleSystemEvent.c,v 1.1 2001-02-18 14:46:31 bird Exp $
     1/* $Id: libW32kHandleSystemEvent.c,v 1.2 2001-02-21 07:47:58 bird Exp $
    22 *
    33 * libW32kHandleSystemEvent - Override system events like Ctrl-Alt-Delete
     
    2424#include <os2.h>
    2525#include "win32k.h"
    26 
    27 
    28 /*******************************************************************************
    29 *   Global Variables                                                           *
    30 *******************************************************************************/
    31 extern BOOL     fInited;
    32 extern HFILE    hWin32k;
     26#include "libPrivate.h"
    3327
    3428
     
    6458        ULONG                   cbData = 0UL;
    6559
    66         Param.ulEvent = ulEvent;
    67         Param.hev = hev;
    68         Param.fHandle = fHandle;
    69         Param.rc = ERROR_INVALID_PARAMETER;
     60        Param.hdr.cb    = sizeof(Param);
     61        Param.hdr.rc    = ERROR_NOT_SUPPORTED;
     62        Param.ulEvent   = ulEvent;
     63        Param.hev       = hev;
     64        Param.fHandle   = fHandle;
    7065
     66        if (usCGSelector)
     67            return libCallThruCallGate(K32_HANDLESYSTEMEVENT, &Param);
    7168        rc = DosDevIOCtl(hWin32k,
    7269                         IOCTL_W32K_K32,
     
    7673
    7774        if (rc == NO_ERROR)
    78             rc = Param.rc;
     75            rc = Param.hdr.rc;
    7976    }
    8077    else
Note: See TracChangeset for help on using the changeset viewer.