Changeset 5224 for trunk/src/win32k/lib
- Timestamp:
- Feb 21, 2001, 8:47:59 AM (25 years ago)
- Location:
- trunk/src/win32k/lib
- Files:
-
- 2 added
- 11 edited
-
libCallThruCallGate.asm (added)
-
libDosAllocMemEx.c (modified) (4 diffs)
-
libInit.c (modified) (3 diffs)
-
libPrivate.h (added)
-
libTerm.c (modified) (2 diffs)
-
libW32kHandleSystemEvent.c (modified) (4 diffs)
-
libW32kProcessReadWrite.c (modified) (5 diffs)
-
libW32kQueryOTEs.c (modified) (4 diffs)
-
libW32kQuerySystemMemInfo.c (modified) (4 diffs)
-
libWin32kInstalled.c (modified) (2 diffs)
-
libWin32kQueryOptionsStatus.c (modified) (4 diffs)
-
libWin32kSetOptions.c (modified) (4 diffs)
-
makefile (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/lib/libDosAllocMemEx.c
r5201 r5224 1 /* $Id: libDosAllocMemEx.c,v 1. 7 2001-02-20 04:57:28 bird Exp $1 /* $Id: libDosAllocMemEx.c,v 1.8 2001-02-21 07:47:58 bird Exp $ 2 2 * 3 3 * DosAllocMemEx - Extened Edition of DosAllocMem. 4 4 * Allows you to suggest an address of the memory. 5 5 * 6 * Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@mynd.no)6 * Copyright (c) 2000-2001 knut st. osmundsen (knut.stange.osmundsen@mynd.no) 7 7 * 8 8 * Project Odin Software License can be found in LICENSE.TXT … … 24 24 #include <os2.h> 25 25 #include "win32k.h" 26 27 28 /******************************************************************************* 29 * Global Variables * 30 *******************************************************************************/ 31 extern BOOL fInited; 32 extern HFILE hWin32k; 33 26 #include "libPrivate.h" 34 27 35 28 … … 45 38 ULONG cbData = 0UL; 46 39 40 Param.hdr.cb = sizeof(Param); 41 Param.hdr.rc = ERROR_NOT_SUPPORTED; 47 42 Param.ppv = ppv; 48 43 Param.cb = cb; 49 44 Param.flFlags = flag; 50 Param.rc = 0;51 45 Param.ulCS = libHelperGetCS(); 52 46 Param.ulEIP = *(PULONG)((int)(&ppv) - 4); 53 47 48 if (usCGSelector) 49 return libCallThruCallGate(K32_ALLOCMEMEX, &Param); 54 50 rc = DosDevIOCtl(hWin32k, 55 51 IOCTL_W32K_K32, … … 58 54 "", 1, &cbData); 59 55 if (rc == NO_ERROR) 60 { 61 rc = Param.rc; 62 } 56 rc = Param.hdr.rc; 63 57 } 64 58 else -
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 -
trunk/src/win32k/lib/libTerm.c
r4787 r5224 1 /* $Id: libTerm.c,v 1. 3 2000-12-11 06:53:54bird Exp $1 /* $Id: libTerm.c,v 1.4 2001-02-21 07:47:58 bird Exp $ 2 2 * 3 3 * Terminates 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 … … 22 22 *******************************************************************************/ 23 23 #include <os2.h> 24 25 26 /******************************************************************************* 27 * Global Variables * 28 *******************************************************************************/ 29 extern BOOL fInited; 30 extern HFILE hWin32k; 24 #include "libPrivate.h" 31 25 32 26 -
trunk/src/win32k/lib/libW32kHandleSystemEvent.c
r5167 r5224 1 /* $Id: libW32kHandleSystemEvent.c,v 1. 1 2001-02-18 14:46:31bird Exp $1 /* $Id: libW32kHandleSystemEvent.c,v 1.2 2001-02-21 07:47:58 bird Exp $ 2 2 * 3 3 * libW32kHandleSystemEvent - Override system events like Ctrl-Alt-Delete … … 24 24 #include <os2.h> 25 25 #include "win32k.h" 26 27 28 /******************************************************************************* 29 * Global Variables * 30 *******************************************************************************/ 31 extern BOOL fInited; 32 extern HFILE hWin32k; 26 #include "libPrivate.h" 33 27 34 28 … … 64 58 ULONG cbData = 0UL; 65 59 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; 70 65 66 if (usCGSelector) 67 return libCallThruCallGate(K32_HANDLESYSTEMEVENT, &Param); 71 68 rc = DosDevIOCtl(hWin32k, 72 69 IOCTL_W32K_K32, … … 76 73 77 74 if (rc == NO_ERROR) 78 rc = Param. rc;75 rc = Param.hdr.rc; 79 76 } 80 77 else -
trunk/src/win32k/lib/libW32kProcessReadWrite.c
r4347 r5224 1 /* $Id: libW32kProcessReadWrite.c,v 1. 1 2000-10-01 02:58:20bird Exp $1 /* $Id: libW32kProcessReadWrite.c,v 1.2 2001-02-21 07:47:58 bird Exp $ 2 2 * 3 3 * libW32kProcessReadWrite - Read or write to another process. 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 #include "win32k.h" 25 26 27 /******************************************************************************* 28 * Global Variables * 29 *******************************************************************************/ 30 extern BOOL fInited; 31 extern HFILE hWin32k; 32 25 #include "libPrivate.h" 33 26 34 27 … … 55 48 ULONG cbData = 0UL; 56 49 50 Param.hdr.cb = sizeof(Param); 51 Param.hdr.rc = ERROR_NOT_SUPPORTED; 57 52 Param.pid = pid; 58 53 Param.cb = cb; … … 60 55 Param.pvTarget = pvTarget; 61 56 Param.fRead = fRead; 62 Param.rc = ERROR_INVALID_PARAMETER;63 57 58 if (usCGSelector) 59 return libCallThruCallGate(K32_PROCESSREADWRITE, &Param); 64 60 rc = DosDevIOCtl(hWin32k, 65 61 IOCTL_W32K_K32, … … 69 65 70 66 if (rc == NO_ERROR) 71 rc = Param. rc;67 rc = Param.hdr.rc; 72 68 } 73 69 else -
trunk/src/win32k/lib/libW32kQueryOTEs.c
r4164 r5224 1 /* $Id: libW32kQueryOTEs.c,v 1. 2 2000-09-02 21:08:11bird Exp $1 /* $Id: libW32kQueryOTEs.c,v 1.3 2001-02-21 07:47:59 bird Exp $ 2 2 * 3 3 * libW32kQueryOTEs - Get's the object table entries (OTEs) for a given 4 4 * module (given by a module handle). 5 5 * 6 * Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@mynd.no)6 * Copyright (c) 2000-2001 knut st. osmundsen (knut.stange.osmundsen@mynd.no) 7 7 * 8 8 * Project Odin Software License can be found in LICENSE.TXT … … 24 24 #include <os2.h> 25 25 #include "win32k.h" 26 27 28 /******************************************************************************* 29 * Global Variables * 30 *******************************************************************************/ 31 extern BOOL fInited; 32 extern HFILE hWin32k; 26 #include "libPrivate.h" 33 27 34 28 … … 53 47 ULONG cbData = 0UL; 54 48 55 Param.hMTE = hMTE; 56 Param.pQOte = pQOte; 49 Param.hdr.cb = sizeof(Param); 50 Param.hdr.rc = ERROR_NOT_SUPPORTED; 51 Param.hMTE = hMTE; 52 Param.pQOte = pQOte; 57 53 Param.cbQOte = cbQOte; 58 Param.rc = ERROR_INVALID_PARAMETER;59 54 55 if (usCGSelector) 56 return libCallThruCallGate(K32_QUERYOTES, &Param); 60 57 rc = DosDevIOCtl(hWin32k, 61 58 IOCTL_W32K_K32, … … 65 62 66 63 if (rc == NO_ERROR) 67 rc = Param. rc;64 rc = Param.hdr.rc; 68 65 } 69 66 else -
trunk/src/win32k/lib/libW32kQuerySystemMemInfo.c
r5108 r5224 1 /* $Id: libW32kQuerySystemMemInfo.c,v 1. 1 2001-02-11 15:24:04bird Exp $1 /* $Id: libW32kQuerySystemMemInfo.c,v 1.2 2001-02-21 07:47:59 bird Exp $ 2 2 * 3 3 * libW32kQuerySystemMemInfo - Collects more or less useful information on the … … 24 24 #include <os2.h> 25 25 #include "win32k.h" 26 27 28 /******************************************************************************* 29 * Global Variables * 30 *******************************************************************************/ 31 extern BOOL fInited; 32 extern HFILE hWin32k; 26 #include "libPrivate.h" 33 27 34 28 … … 54 48 ULONG cbData = 0UL; 55 49 56 Param.pMemInfo = pMemInfo; 57 Param.rc = ERROR_INVALID_PARAMETER; 50 Param.hdr.cb = sizeof(Param); 51 Param.hdr.rc = ERROR_NOT_SUPPORTED; 52 Param.pMemInfo = pMemInfo; 58 53 54 if (usCGSelector) 55 return libCallThruCallGate(K32_QUERYSYSTEMMEMINFO, &Param); 59 56 rc = DosDevIOCtl(hWin32k, 60 57 IOCTL_W32K_K32, … … 64 61 65 62 if (rc == NO_ERROR) 66 rc = Param. rc;63 rc = Param.hdr.rc; 67 64 } 68 65 else -
trunk/src/win32k/lib/libWin32kInstalled.c
r4164 r5224 1 /* $Id: libWin32kInstalled.c,v 1. 2 2000-09-02 21:08:11bird Exp $1 /* $Id: libWin32kInstalled.c,v 1.3 2001-02-21 07:47:59 bird Exp $ 2 2 * 3 3 * libWin32kInstalled - checks if Win32k is installed or not. … … 21 21 #include <os2.h> 22 22 #include "win32k.h" 23 24 25 /******************************************************************************* 26 * Global Variables * 27 *******************************************************************************/ 28 extern BOOL fInited; 23 #include "libPrivate.h" 29 24 30 25 -
trunk/src/win32k/lib/libWin32kQueryOptionsStatus.c
r4164 r5224 1 /* $Id: libWin32kQueryOptionsStatus.c,v 1. 2 2000-09-02 21:08:12bird Exp $1 /* $Id: libWin32kQueryOptionsStatus.c,v 1.3 2001-02-21 07:47:59 bird Exp $ 2 2 * 3 3 * libWin32kQueryOptionsStatus - Queries the options and/or the status of 4 4 * Win32k.sys driver. 5 5 * 6 * Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@mynd.no)6 * Copyright (c) 2000-2001 knut st. osmundsen (knut.stange.osmundsen@mynd.no) 7 7 * 8 8 * Project Odin Software License can be found in LICENSE.TXT … … 24 24 #include <os2.h> 25 25 #include "win32k.h" 26 27 28 /******************************************************************************* 29 * Global Variables * 30 *******************************************************************************/ 31 extern BOOL fInited; 32 extern HFILE hWin32k; 26 #include "libPrivate.h" 33 27 34 28 … … 71 65 ULONG cbData = 0UL; 72 66 67 Param.hdr.cb = sizeof(Param); 68 Param.hdr.rc = ERROR_NOT_SUPPORTED; 73 69 Param.pOptions = pOptions; 74 70 Param.pStatus = pStatus; 75 Param.rc = ERROR_INVALID_PARAMETER;76 71 72 if (usCGSelector) 73 return libCallThruCallGate(K32_QUERYOPTIONSSTATUS, &Param); 77 74 rc = DosDevIOCtl(hWin32k, 78 75 IOCTL_W32K_K32, … … 82 79 83 80 if (rc == NO_ERROR) 84 rc = Param. rc;81 rc = Param.hdr.rc; 85 82 } 86 83 else -
trunk/src/win32k/lib/libWin32kSetOptions.c
r5131 r5224 1 /* $Id: libWin32kSetOptions.c,v 1. 3 2001-02-14 12:46:56bird Exp $1 /* $Id: libWin32kSetOptions.c,v 1.4 2001-02-21 07:47:59 bird Exp $ 2 2 * 3 3 * libWin32kSetOptions - Sets the changable options of win32k.sys the options. 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 #include "win32k.h" 25 26 27 /******************************************************************************* 28 * Global Variables * 29 *******************************************************************************/ 30 extern BOOL fInited; 31 extern HFILE hWin32k; 25 #include "libPrivate.h" 32 26 33 27 … … 65 59 ULONG cbData = 0UL; 66 60 61 Param.hdr.cb = sizeof(Param); 62 Param.hdr.rc = ERROR_NOT_SUPPORTED; 67 63 Param.pOptions = pOptions; 68 Param.rc = ERROR_INVALID_PARAMETER;69 64 65 if (usCGSelector) 66 return libCallThruCallGate(K32_SETOPTIONS, &Param); 70 67 rc = DosDevIOCtl(hWin32k, 71 68 IOCTL_W32K_K32, … … 75 72 76 73 if (rc == NO_ERROR) 77 rc = Param. rc;74 rc = Param.hdr.rc; 78 75 } 79 76 else -
trunk/src/win32k/lib/makefile
r5168 r5224 1 # $Id: makefile,v 1.1 1 2001-02-18 14:49:04bird Exp $1 # $Id: makefile,v 1.12 2001-02-21 07:47:59 bird Exp $ 2 2 3 3 # … … 46 46 $(OBJDIR)\libW32kQuerySystemMemInfo.obj \ 47 47 $(OBJDIR)\libW32kProcessReadWrite.obj \ 48 $(OBJDIR)\libGetCS.obj 48 $(OBJDIR)\libGetCS.obj \ 49 $(OBJDIR)\libCallThruCallGate.obj 49 50 50 51
Note:
See TracChangeset
for help on using the changeset viewer.
