Changeset 5224 for trunk/src/win32k/lib/libInit.c
- Timestamp:
- Feb 21, 2001, 8:47:59 AM (25 years ago)
- 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:54bird Exp $1 /* $Id: libInit.c,v 1.4 2001-02-21 07:47:58 bird Exp $ 2 2 * 3 3 * Inits the Win32k library functions. 4 4 * 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) 6 6 * 7 7 * Project Odin Software License can be found in LICENSE.TXT … … 23 23 #include <os2.h> 24 24 25 #include "win32k.h" 26 #include "libPrivate.h" 25 27 26 28 /******************************************************************************* … … 56 58 57 59 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 } 58 86 } 59 87 else
Note:
See TracChangeset
for help on using the changeset viewer.