Ignore:
Timestamp:
Sep 27, 2001, 5:08:35 AM (24 years ago)
Author:
bird
Message:

Win32k/kKrnlLib splittup: done the major stuff.

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:00 bird Exp $
     1/* $Id: k32SetOptions.cpp,v 1.7.2.1 2001-09-27 03:08:23 bird Exp $
    22 *
    33 * k32SetOptions - Sets the changable options of win32k.sys the options.
     
    2020#define INCL_OS2KRNL_SEM
    2121#define INCL_OS2KRNL_LDR
    22 
    2322#define NO_WIN32K_LIB_FUNCTIONS
     23#define INCL_KKL_LOG
     24#define INCL_KKL_AVL
    2425
    2526/*******************************************************************************
     
    3132#include <newexe.h>                     /* OS/2 NE structs and definitions. */
    3233#include <exe386.h>                     /* OS/2 LX structs and definitions. */
     34#include <OS2Krnl.h>
     35#include <kKrnlLib.h>
    3336
    3437#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. */
    3938
    4039#include <string.h>                     /* C library string.h. */
     
    4342#include <stdarg.h>                     /* C library stdarg.h. */
    4443
    45 #include "vprintf.h"                    /* win32k printf and vprintf. Not C library! */
    4644#include "dev1632.h"                    /* Common 16- and 32-bit parts */
    4745#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) */
    5146#include "ldr.h"                        /* ldr helpers. (ldrGetExePath) */
    52 #include "env.h"                        /* Environment helpers. */
     47#include "env.h" //todo                       /* Environment helpers. */
    5348#include "modulebase.h"                 /* ModuleBase class definitions, ++. */
    5449#include "pe2lx.h"                      /* Pe2Lx class definitions, ++. */
     
    5651#include "options.h"                    /* Win32k options. */
    5752
    58 #include "ProbKrnl.h"                   /* ProbKrnl variables and definitions. */
    5953#include "win32k.h"                     /* Win32k API structures.  */
    6054#include "k32.h"                        /* Internal Win32k API structures.  */
     
    10397         * Validate contents.
    10498         */
     99        #if 0
    105100        if (    TmpOptions.usCom != OUTPUT_COM1
    106101            &&  TmpOptions.usCom != OUTPUT_COM2
     
    108103            &&  TmpOptions.usCom != OUTPUT_COM4)
    109104            return ERROR_INVALID_PARAMETER;
     105        #endif
    110106        if (TmpOptions.fLogging > 1)
    111107            return ERROR_INVALID_PARAMETER;
     
    136132        if (TmpOptions.fApiEnh > 1)
    137133            return ERROR_INVALID_PARAMETER;
     134        #if 0
    138135        if (TmpOptions.cbSwpHeapMax > (32768*1024) || TmpOptions.cbSwpHeapMax < options.cbSwpHeapInit)
    139136            return ERROR_INVALID_PARAMETER;
    140137        if (TmpOptions.cbResHeapMax > (32768*1024) || TmpOptions.cbResHeapMax < options.cbResHeapInit)
    141138            return ERROR_INVALID_PARAMETER;
     139        #endif
    142140
    143141        /*
     
    155153         * Apply changes
    156154         */
     155        #if 0
    157156        options.usCom       = TmpOptions.usCom;         /* Output port no. */
     157        #endif
    158158        options.fLogging    = (USHORT)TmpOptions.fLogging;/* Logging. */
    159159        options.fPE         = TmpOptions.fPE;           /* Flags set the type of conversion. */
     
    170170        options.fApiEnh     = TmpOptions.fApiEnh;       /* Enables the API enhancements */
    171171
     172        #if 0
    172173        options.cbSwpHeapMax = TmpOptions.cbSwpHeapMax; /* Maximum heapsize. */
    173174        cbSwpHeapMax = (unsigned)options.cbSwpHeapMax;
    174175        options.cbResHeapMax = TmpOptions.cbResHeapMax; /* Maxiumem residentheapsize. */
    175176        cbResHeapMax = (unsigned)options.cbResHeapMax;
     177        #endif
    176178
    177179        /*
Note: See TracChangeset for help on using the changeset viewer.