Changeset 6841 for branches/splittup/src/win32k/k32/k32SetOptions.cpp
- Timestamp:
- Sep 27, 2001, 5:08:35 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/splittup/src/win32k/k32/k32SetOptions.cpp
r5118 r6841 1 /* $Id: k32SetOptions.cpp,v 1.7 2001-02-11 23:43:00bird Exp $1 /* $Id: k32SetOptions.cpp,v 1.7.2.1 2001-09-27 03:08:23 bird Exp $ 2 2 * 3 3 * k32SetOptions - Sets the changable options of win32k.sys the options. … … 20 20 #define INCL_OS2KRNL_SEM 21 21 #define INCL_OS2KRNL_LDR 22 23 22 #define NO_WIN32K_LIB_FUNCTIONS 23 #define INCL_KKL_LOG 24 #define INCL_KKL_AVL 24 25 25 26 /******************************************************************************* … … 31 32 #include <newexe.h> /* OS/2 NE structs and definitions. */ 32 33 #include <exe386.h> /* OS/2 LX structs and definitions. */ 34 #include <OS2Krnl.h> 35 #include <kKrnlLib.h> 33 36 34 37 #include "devSegDf.h" /* Win32k segment definitions. */ 35 36 #include "malloc.h" /* win32k malloc (resident). Not C library! */37 #include "smalloc.h" /* win32k swappable heap. */38 #include "rmalloc.h" /* win32k resident heap. */39 38 40 39 #include <string.h> /* C library string.h. */ … … 43 42 #include <stdarg.h> /* C library stdarg.h. */ 44 43 45 #include "vprintf.h" /* win32k printf and vprintf. Not C library! */46 44 #include "dev1632.h" /* Common 16- and 32-bit parts */ 47 45 #include "dev32.h" /* 32-Bit part of the device driver. (SSToDS) */ 48 #include "OS2Krnl.h" /* kernel structs. (SFN) */49 #include "log.h" /* Logging. */50 #include "avl.h" /* AVL tree. (ldr.h need it) */51 46 #include "ldr.h" /* ldr helpers. (ldrGetExePath) */ 52 #include "env.h" /* Environment helpers. */47 #include "env.h" //todo /* Environment helpers. */ 53 48 #include "modulebase.h" /* ModuleBase class definitions, ++. */ 54 49 #include "pe2lx.h" /* Pe2Lx class definitions, ++. */ … … 56 51 #include "options.h" /* Win32k options. */ 57 52 58 #include "ProbKrnl.h" /* ProbKrnl variables and definitions. */59 53 #include "win32k.h" /* Win32k API structures. */ 60 54 #include "k32.h" /* Internal Win32k API structures. */ … … 103 97 * Validate contents. 104 98 */ 99 #if 0 105 100 if ( TmpOptions.usCom != OUTPUT_COM1 106 101 && TmpOptions.usCom != OUTPUT_COM2 … … 108 103 && TmpOptions.usCom != OUTPUT_COM4) 109 104 return ERROR_INVALID_PARAMETER; 105 #endif 110 106 if (TmpOptions.fLogging > 1) 111 107 return ERROR_INVALID_PARAMETER; … … 136 132 if (TmpOptions.fApiEnh > 1) 137 133 return ERROR_INVALID_PARAMETER; 134 #if 0 138 135 if (TmpOptions.cbSwpHeapMax > (32768*1024) || TmpOptions.cbSwpHeapMax < options.cbSwpHeapInit) 139 136 return ERROR_INVALID_PARAMETER; 140 137 if (TmpOptions.cbResHeapMax > (32768*1024) || TmpOptions.cbResHeapMax < options.cbResHeapInit) 141 138 return ERROR_INVALID_PARAMETER; 139 #endif 142 140 143 141 /* … … 155 153 * Apply changes 156 154 */ 155 #if 0 157 156 options.usCom = TmpOptions.usCom; /* Output port no. */ 157 #endif 158 158 options.fLogging = (USHORT)TmpOptions.fLogging;/* Logging. */ 159 159 options.fPE = TmpOptions.fPE; /* Flags set the type of conversion. */ … … 170 170 options.fApiEnh = TmpOptions.fApiEnh; /* Enables the API enhancements */ 171 171 172 #if 0 172 173 options.cbSwpHeapMax = TmpOptions.cbSwpHeapMax; /* Maximum heapsize. */ 173 174 cbSwpHeapMax = (unsigned)options.cbSwpHeapMax; 174 175 options.cbResHeapMax = TmpOptions.cbResHeapMax; /* Maxiumem residentheapsize. */ 175 176 cbResHeapMax = (unsigned)options.cbResHeapMax; 177 #endif 176 178 177 179 /*
Note:
See TracChangeset
for help on using the changeset viewer.
