- Timestamp:
- Feb 10, 2001, 12:11:48 PM (25 years ago)
- Location:
- trunk/src/win32k
- Files:
-
- 1 added
- 1 deleted
- 33 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/api/api.cpp
r5008 r5086 1 /* $Id: api.cpp,v 1. 4 2001-01-22 08:06:38bird Exp $1 /* $Id: api.cpp,v 1.5 2001-02-10 11:11:41 bird Exp $ 2 2 * 3 3 * API Overload Init and Helper Function. … … 48 48 #define IOSftClose(hFile) DosClose(hFile) 49 49 #define rmalloc malloc 50 #define r eallocrealloc50 #define rrealloc realloc 51 51 #define rfree free 52 52 #undef kprintf -
trunk/src/win32k/dev16/mkcalltab.c
r4347 r5086 1 /* $Id: mkcalltab.c,v 1. 1 2000-10-01 02:58:15bird Exp $1 /* $Id: mkcalltab.c,v 1.2 2001-02-10 11:11:41 bird Exp $ 2 2 * 3 3 * Description: Generates the calltab.asm from aImportTab. … … 25 25 #define INCL_DOS 26 26 #define INCL_NOPMAPI 27 #define INCL_OS2KRNL_LDR 27 28 28 29 /******************************************************************************* … … 112 113 * Write Start of file. 113 114 */ 114 printf16("; $Id: mkcalltab.c,v 1. 1 2000-10-01 02:58:15bird Exp $\n"115 printf16("; $Id: mkcalltab.c,v 1.2 2001-02-10 11:11:41 bird Exp $\n" 115 116 ";\n" 116 117 "; Autogenerated calltab file.\n" … … 334 335 * Write Start of file. 335 336 */ 336 printf16("/* $Id: mkcalltab.c,v 1. 1 2000-10-01 02:58:15bird Exp $\n"337 printf16("/* $Id: mkcalltab.c,v 1.2 2001-02-10 11:11:41 bird Exp $\n" 337 338 " *\n" 338 339 " * Autogenerated TstFakers.c file.\n" -
trunk/src/win32k/dev16/probkrnl.c
r4781 r5086 1 /* $Id: probkrnl.c,v 1.3 0 2000-12-11 06:34:44bird Exp $1 /* $Id: probkrnl.c,v 1.31 2001-02-10 11:11:42 bird Exp $ 2 2 * 3 3 * Description: Autoprobes the os2krnl file and os2krnl[*].sym files. … … 51 51 #define INCL_DOS 52 52 #define INCL_NOPMAPI 53 #define INCL_OS2KRNL_LDR 53 54 54 55 /******************************************************************************* -
trunk/src/win32k/dev32/d32init.c
r5049 r5086 1 /* $Id: d32init.c,v 1.3 1 2001-02-02 08:27:16bird Exp $1 /* $Id: d32init.c,v 1.32 2001-02-10 11:11:42 bird Exp $ 2 2 * 3 3 * d32init.c - 32-bits init routines. … … 31 31 #define LDR_INCL_INITONLY 32 32 #define INCL_OS2KRNL_ALL 33 #define INCL_OS2KRNL_LDR 33 34 34 35 /******************************************************************************* … … 50 51 #include "malloc.h" 51 52 #include "ldr.h" 52 #include "ldrCalls.h"53 53 #include "macros.h" 54 54 #include "errors.h" -
trunk/src/win32k/elf2lx/elf2lx.cpp
r4787 r5086 1 /* $Id: elf2lx.cpp,v 1. 5 2000-12-11 06:53:48bird Exp $1 /* $Id: elf2lx.cpp,v 1.6 2001-02-10 11:11:42 bird Exp $ 2 2 * 3 3 * Elf2Lx - implementation. … … 16 16 #define INCL_DOSERRORS /* DOS Error codes. */ 17 17 #ifdef RING0 18 #define INCL_OS2KRNL_LDR /* LdrRead */ 18 19 #define INCL_NOAPI /* RING0: No apis. */ 19 20 #else /*RING3*/ … … 43 44 #include "dev32.h" /* 32-Bit part of the device driver. (SSToDS) */ 44 45 #include "OS2Krnl.h" /* kernel structs. (SFN) */ 45 #ifdef RING046 #include "ldrCalls.h" /* ldr* calls. (ldrRead) */47 #endif48 46 49 47 #include "elf.h" /* Elf binary format definitions. */ -
trunk/src/win32k/include/OS2KVM.h
r4787 r5086 1 /* $Id: OS2KVM.h,v 1. 8 2000-12-11 06:53:50bird Exp $1 /* $Id: OS2KVM.h,v 1.9 2001-02-10 11:11:43 bird Exp $ 2 2 * 3 3 * OS/2 kernel VM functions. … … 183 183 PUSHORT pushPTDA); 184 184 185 #ifdef _OS2KLDR_H_ 185 186 PMTE KRNLCALL VMPseudoHandleMap( 186 187 HMTE hMTE); 187 188 #endif 189 190 #endif -
trunk/src/win32k/include/OS2Krnl.h
r4347 r5086 1 /* $Id: OS2Krnl.h,v 1. 9 2000-10-01 02:58:17bird Exp $1 /* $Id: OS2Krnl.h,v 1.10 2001-02-10 11:11:43 bird Exp $ 2 2 * 3 3 * OS/2 kernel structures, typedefs and macros. … … 12 12 #define _OS2Krnl_h_ 13 13 14 15 16 /* 17 * "OS2KDefs.h" 18 */ 14 19 #if !defined(OS2_INCLUDED) 15 20 /* when used with h2inc.exe */ … … 22 27 23 28 24 #pragma pack(1) 25 29 /* 30 * Handles 31 */ 32 typedef USHORT HMTE, *PHMTE; /* Module Table Entry (MTE) handle */ 33 typedef USHORT HPTDA, *PHPTDA; /* Per-Task Data Area (PTDA) handle */ 26 34 #ifdef RING0 27 typedef USHORT SFN, *PSFN; /* system file number*/35 typedef USHORT SFN, *PSFN; /* System File Number (SFN) - ie. file handle. */ 28 36 #else 29 37 #define SFN HFILE … … 31 39 #endif 32 40 33 typedef struct OTE34 {35 ULONG ote_size; /* Object virtual size */36 ULONG ote_base; /* Object base virtual address */37 ULONG ote_flags; /* Attribute flags */38 ULONG ote_pagemap; /* Object page map index */39 ULONG ote_mapsize; /* Num of entries in obj page map */40 /*ULONG ote_reserved;*/41 USHORT ote_sel; /* Object Selector */42 USHORT ote_hob; /* Object Handle */43 } OTE, *POTE;44 41 45 42 46 /* ote_flags */47 #ifndef __EXE386__48 #define OBJREAD 0x00000001L /* Readable Object */49 #define OBJWRITE 0x00000002L /* Writeable Object */50 #define OBJEXEC 0x00000004L /* Executable Object */51 #define OBJRSRC 0x00000008L /* Resource Object */52 #define OBJDISCARD 0x00000010L /* Object is Discardable */53 #define OBJSHARED 0x00000020L /* Object is Shared */54 #define OBJPRELOAD 0x00000040L /* Object has preload pages */55 #define OBJINVALID 0x00000080L /* Object has invalid pages */56 #endif57 #define OBJZEROFIL 0x00000100L /* Object has zero-filled pages */58 #ifndef __EXE386__59 #define OBJRESIDENT 0x00000200L /* Object is resident */60 #define OBJCONTIG 0x00000300L /* Object is resident and contiguous */61 #define OBJDYNAMIC 0x00000400L /* Object is permanent and long locable */62 #define OBJTYPEMASK 0x00000700L /* Object type mask */63 #define OBJALIAS16 0x00001000L /* 16:16 alias required */64 #define OBJBIGDEF 0x00002000L /* Big/Default bit setting */65 #define OBJCONFORM 0x00004000L /* Object is conforming for code */66 #define OBJIOPL 0x00008000L /* Object I/O privilege level */67 #endif68 #define OBJMADEPRIV 0x40000000L /* Object is made private for debug (now obsolete) */69 #define OBJALLOC 0x80000000L /* Object is allocated used by loader */70 71 72 73 74 75 76 /*************************/77 /* warp 3.0 AS SMTEs */78 /* Swap ModuleTableEntry */79 /*************************/80 typedef struct SMTE81 {82 /* lxheader fields */83 /*- magic,border,worder,level,cpu,os,ver,mflags */84 ULONG smte_mpages; /* 00 Module # pages */85 ULONG smte_startobj; /* 04 Object # for instruction */86 ULONG smte_eip; /* 08 Extended instruction pointer */87 ULONG smte_stackobj; /* 0c Object # for stack pointer */88 ULONG smte_esp; /* 10 Extended stack pointer */89 /*- pagesize*/90 ULONG smte_pageshift; /* 14 Page alignment shift in .EXE */91 ULONG smte_fixupsize; /* 18 Fixup section size */92 /*- fixupsum,ldrsize,ldrsum*/93 POTE smte_objtab; /* 1c Object table offset - POINTER */94 ULONG smte_objcnt; /* 20 Number of objects in module */95 ULONG smte_objmap; /* 24 Object page map offset - POINTER */96 ULONG smte_itermap; /* 28 Object iterated data map offset */97 ULONG smte_rsrctab; /* 2c Offset of Resource Table */98 ULONG smte_rsrccnt; /* 30 Number of resource entries */99 ULONG smte_restab; /* 34 Offset of resident name table - POINTER */100 ULONG smte_enttab; /* 38 Offset of Entry Table - POINTER */101 ULONG smte_fpagetab; /* 3c Offset of Fixup Page Table - POINTER */102 ULONG smte_frectab; /* 40 Offset of Fixup Record Table - POINTER */103 ULONG smte_impmod; /* 44 Offset of Import Module Name Table - POINTER */104 /*- impmodcnt*/105 ULONG smte_impproc; /* 48 Offset of Imp Procedure Name Tab - POINTER */106 /*- pagesum*/107 ULONG smte_datapage; /* 4c Offset of Enumerated Data Pages */108 /*- preload*/109 ULONG smte_nrestab; /* 50 Offset of Non-resident Names Table */110 ULONG smte_cbnrestab; /* 54 Size of Non-resident Name Table */111 /*- nressum*/112 ULONG smte_autods; /* 58 Object # for automatic data object */113 ULONG smte_debuginfo; /* 5c Offset of the debugging info */114 ULONG smte_debuglen; /* 60 The len of the debug info in */115 /*- instpreload,instdemand*/116 ULONG smte_heapsize; /* 64 use for converted 16-bit modules */117 /*- res3*/118 /* extra */119 PCHAR smte_path; /* 68 full pathname - POINTER */120 USHORT smte_semcount; /* 6c Count of threads waiting on MTE semaphore. 0 => semaphore is free */121 USHORT smte_semowner; /* 6e Slot number of the owner of MTE semahore */122 ULONG smte_pfilecache; /* 70 Pointer to file cache for Dos32CacheModule */123 ULONG smte_stacksize; /* 74 Thread 1 Stack size from the exe header */124 USHORT smte_alignshift; /* 78 use for converted 16-bit modules */125 USHORT smte_NEexpver; /* 7a expver from NE header */126 USHORT smte_pathlen; /* 7c length of full pathname */127 USHORT smte_NEexetype; /* 7e exetype from NE header */128 USHORT smte_csegpack; /* 80 count of segs to pack */129 } SMTE, *PSMTE;130 131 132 133 134 135 136 137 138 /********************/139 /* warp 3.0 GA MTEs */140 /* ModuleTableEntry */141 /********************/142 typedef struct MTE143 {144 USHORT mte_flags2;145 USHORT mte_handle;146 PSMTE mte_swapmte; /* handle for swapmte */147 struct MTE * mte_link;148 ULONG mte_flags1;149 ULONG mte_impmodcnt; /* number of entries in Import Module Name Table*/150 SFN mte_sfn; /*"filehandle"*/151 USHORT mte_usecnt; /* (.EXE only) - use count */152 CHAR mte_modname[8];153 } MTE,*PMTE,**PPMTE;154 155 typedef USHORT HMTE, *PHMTE;156 typedef USHORT HPTDA, *PHPTDA;157 158 159 /***********/160 /* flags 1 */161 /***********/162 #define NOAUTODS 0x00000000 /* No Auto DS exists */163 #define SOLO 0x00000001 /* Auto DS is shared */164 #define INSTANCEDS 0x00000002 /* Auto DS is not shared */165 #define INSTLIBINIT 0x00000004 /* Perinstance Libinit */166 #define GINISETUP 0x00000008 /* Global Init has been setup */167 #define NOINTERNFIXUPS 0x00000010 /* internal fixups in .EXE.DLL applied */168 #define NOEXTERNFIXUPS 0x00000020 /* external fixups in .EXE.DLL applied */169 #define CLASS_PROGRAM 0x00000040 /* Program class */170 #define CLASS_GLOBAL 0x00000080 /* Global class */171 #define CLASS_SPECIFIC 0x000000C0 /* Specific class, as against global */172 #define CLASS_ALL 0x00000000 /* nonspecific class all modules */173 #define CLASS_MASK 0x000000C0 /* */174 #define MTEPROCESSED 0x00000100 /* MTE being loaded */175 #define USED 0x00000200 /* MTE is referenced see ldrgc.c */176 #define DOSLIB 0x00000400 /* set if DOSCALL1 */177 #define DOSMOD 0x00000800 /* set if DOSCALLS */178 #define MTE_MEDIAFIXED 0x00001000 /* File Media permits discarding */179 #define LDRINVALID 0x00002000 /* module not loadable */180 #define PROGRAMMOD 0x00000000 /* program module */181 #define DEVDRVMOD 0x00004000 /* device driver module */182 #define LIBRARYMOD 0x00008000 /* DLL module */183 #define VDDMOD 0x00010000 /* VDD module */184 #define MVDMMOD 0x00020000 /* Set if VDD Helper MTE (MVDM.DLL) */185 #define INGRAPH 0x00040000 /* In Module Graph see ldrgc.c */186 #define GINIDONE 0x00080000 /* Global Init has finished */187 #define MTEADDRALLOCED 0x00100000 /* Allocate specific or not */188 #define FSDMOD 0x00200000 /* FSD MTE */189 #define FSHMOD 0x00400000 /* FS helper MTE */190 #define MTELONGNAMES 0x00800000 /* Module supports longnames */191 #define MTE_MEDIACONTIG 0x01000000 /* File Media contiguous memory req */192 #define MTE_MEDIA16M 0x02000000 /* File Media requires mem below 16M */193 #define MTESWAPONLOAD 0x04000000 /* make code pages swap on load */194 #define MTEPORTHOLE 0x08000000 /* porthole module */195 #define MTEMODPROT 0x10000000 /* Module has shared memory protected */196 #define MTENEWMOD 0x20000000 /* Newly added module */197 #define MTEDLLTERM 0x40000000 /* Gets instance termination */198 #define MTESYMLOADED 0x80000000 /* Set if debugger symbols loaded */199 200 201 /***********/202 /* flags 2 */203 /***********/204 #define MTEFORMATMASK 0x0003 /* Module format mask */205 #define MTEFORMATR1 0x0000 /* Module format reserved */206 #define MTEFORMATNE 0x0001 /* Module format NE */207 #define MTEFORMATLX 0x0002 /* Module format LX */208 #define MTEFORMATR2 0x0003 /* Module format reserved */209 #define MTESYSTEMDLL 0x0004 /* DLL exists in system list */210 #define MTELOADORATTACH 0x0008 /* Module under load or attach for init */211 #define MTECIRCLEREF 0x0010 /* Module circular reference detection */212 #define MTEFREEFIXUPS 0x0020 /* Free system mte's fixup flag d#98488 */213 #define MTEPRELOADED 0x0040 /* MTE Preload completed */214 #define MTEGETMTEDONE 0x0080 /* GetMTE already resolved */215 #define MTEPACKSEGDONE 0x0100 /* Segment packed memory allocated */216 #define MTE20LIELIST 0x0200 /* Name present in version20 lie list */217 #define MTESYSPROCESSED 0x0400 /* System DLL already processed */218 #define MTEDLLONEXTLST 0x1000 /* DLL has term routine on exit list #74177 */219 220 221 222 223 224 #pragma pack()225 43 226 44 /* … … 242 60 #define INCL_OS2KRNL_IO 243 61 #define INCL_OS2KRNL_VM 62 #define INCL_OS2KRNL_SM 244 63 #define INCL_OS2KRNL_SEM 245 64 #define INCL_OS2KRNL_TK … … 247 66 #define INCL_OS2KRNL_TCB 248 67 #define INCL_OS2KRNL_SEC 68 #define INCL_OS2KRNL_LDR 249 69 #endif 250 70 … … 259 79 #ifdef INCL_OS2KRNL_VM 260 80 #include <OS2KVM.h> 81 #endif 82 83 #ifdef INCL_OS2KRNL_PG 84 #include <OS2KPG.h> 85 #endif 86 87 #ifdef INCL_OS2KRNL_SM 88 #include <OS2KSM.h> 261 89 #endif 262 90 … … 277 105 #endif 278 106 107 #ifdef INCL_OS2KRNL_LDR 108 #include <OS2KLDR.h> 109 #endif 110 279 111 #ifdef INCL_OS2KRNL_SEC 280 112 #include <OS2KSEC.h> -
trunk/src/win32k/include/dev1632.h
r4164 r5086 1 /* $Id: dev1632.h,v 1. 6 2000-09-02 21:08:00bird Exp $1 /* $Id: dev1632.h,v 1.7 2001-02-10 11:11:43 bird Exp $ 2 2 * dev1632.h - Common header file for 16-bit and 32-bit C 3 3 * … … 44 44 45 45 46 #ifdef _OS2K rnl_h_46 #ifdef _OS2KLDR_H_ 47 47 48 48 -
trunk/src/win32k/include/dev32.h
r4164 r5086 1 /* $Id: dev32.h,v 1. 9 2000-09-02 21:08:00bird Exp $1 /* $Id: dev32.h,v 1.10 2001-02-10 11:11:43 bird Exp $ 2 2 * 3 3 * dev32 - header file for 32-bit part of the driver. … … 61 61 USHORT _loadds _Far32 _Pascal Win32kIOCtl(PRP32GENIOCTL pRpIOCtl); 62 62 #endif 63 #ifdef _OS2K rnl_h_63 #ifdef _OS2KLDR_H_ 64 64 PMTE _System GetOS2KrnlMTE(void); /* (devfirst.asm) */ 65 65 #endif -
trunk/src/win32k/k32/k32ProcessReadWrite.cpp
r4347 r5086 1 /* $Id: k32ProcessReadWrite.cpp,v 1. 1 2000-10-01 02:58:18bird Exp $1 /* $Id: k32ProcessReadWrite.cpp,v 1.2 2001-02-10 11:11:44 bird Exp $ 2 2 * 3 3 * k32ProcessReadWrite - Read or write to another process. … … 20 20 #define INCL_OS2KRNL_VM 21 21 #define INCL_OS2KRNL_SEM 22 #define INCL_OS2KRNL_LDR 22 23 #define NO_WIN32K_LIB_FUNCTIONS 23 24 … … 29 30 #include "devSegDf.h" /* Win32k segment definitions. */ 30 31 #include "OS2Krnl.h" 31 #include "ldrCalls.h"32 32 #include "win32k.h" 33 33 #include "k32.h" -
trunk/src/win32k/k32/k32QueryOTEs.cpp
r4164 r5086 1 /* $Id: k32QueryOTEs.cpp,v 1. 2 2000-09-02 21:08:05bird Exp $1 /* $Id: k32QueryOTEs.cpp,v 1.3 2001-02-10 11:11:44 bird Exp $ 2 2 * 3 3 * k32QueryOTEs - Get's the object table entries (OTEs) for a given … … 19 19 #define INCL_OS2KRNL_TK 20 20 #define INCL_OS2KRNL_SEM 21 #define INCL_OS2KRNL_LDR 21 22 22 23 #define NO_WIN32K_LIB_FUNCTIONS … … 28 29 #include "devSegDf.h" /* Win32k segment definitions. */ 29 30 #include "OS2Krnl.h" 30 #include "ldrCalls.h"31 31 #include "win32k.h" 32 32 #include "k32.h" -
trunk/src/win32k/k32/k32QueryOptionsStatus.cpp
r5051 r5086 1 /* $Id: k32QueryOptionsStatus.cpp,v 1. 5 2001-02-02 08:38:34 bird Exp $1 /* $Id: k32QueryOptionsStatus.cpp,v 1.6 2001-02-10 11:11:44 bird Exp $ 2 2 * 3 3 * k32QueryOptionsStatus - Queries the options and/or the status of … … 20 20 #define INCL_OS2KRNL_TK 21 21 #define INCL_OS2KRNL_SEM 22 #define INCL_OS2KRNL_LDR 22 23 23 24 #define NO_WIN32K_LIB_FUNCTIONS … … 47 48 #include "dev32.h" /* 32-Bit part of the device driver. (SSToDS) */ 48 49 #include "OS2Krnl.h" /* kernel structs. (SFN) */ 49 #include "ldrCalls.h" /* ldr* calls. (ldrRead) */50 50 #include "log.h" /* Logging. */ 51 51 #include "avl.h" /* AVL tree. (ldr.h need it) */ -
trunk/src/win32k/k32/k32SetOptions.cpp
r5051 r5086 1 /* $Id: k32SetOptions.cpp,v 1. 5 2001-02-02 08:38:34 bird Exp $1 /* $Id: k32SetOptions.cpp,v 1.6 2001-02-10 11:11:44 bird Exp $ 2 2 * 3 3 * k32SetOptions - Sets the changable options of win32k.sys the options. … … 19 19 #define INCL_OS2KRNL_TK 20 20 #define INCL_OS2KRNL_SEM 21 #define INCL_OS2KRNL_LDR 21 22 22 23 #define NO_WIN32K_LIB_FUNCTIONS … … 46 47 #include "dev32.h" /* 32-Bit part of the device driver. (SSToDS) */ 47 48 #include "OS2Krnl.h" /* kernel structs. (SFN) */ 48 #include "ldrCalls.h" /* ldr* calls. (ldrRead) */49 49 #include "log.h" /* Logging. */ 50 50 #include "avl.h" /* AVL tree. (ldr.h need it) */ -
trunk/src/win32k/ldr/ModuleBase.cpp
r4787 r5086 1 /* $Id: ModuleBase.cpp,v 1. 6 2000-12-11 06:53:53bird Exp $1 /* $Id: ModuleBase.cpp,v 1.7 2001-02-10 11:11:44 bird Exp $ 2 2 * 3 3 * ModuleBase - Implementetation. … … 18 18 #define INCL_DOSFILEMGR /* RING3: DOS File api. */ 19 19 #endif 20 #define INCL_OS2KRNL_LDR 20 21 21 22 … … 34 35 #include "dev32.h" /* 32-Bit part of the device driver. (SSToDS) */ 35 36 #include "OS2Krnl.h" /* kernel structs. (SFN) */ 36 #include "ldrCalls.h" /* ldrOpenPath and ldrlv_t. */37 37 #include "modulebase.h" /* ModuleBase class definitions, ++. */ 38 38 -
trunk/src/win32k/ldr/ldr.cpp
r4785 r5086 1 /* $Id: ldr.cpp,v 1. 9 2000-12-11 06:44:34bird Exp $1 /* $Id: ldr.cpp,v 1.10 2001-02-10 11:11:45 bird Exp $ 2 2 * 3 3 * ldr.cpp - Loader helpers. … … 16 16 #define INCL_OS2KRNL_SEM 17 17 #define INCL_OS2KRNL_PTDA 18 #define INCL_OS2KRNL_LDR 18 19 19 20 /******************************************************************************* … … 36 37 #include "OS2Krnl.h" 37 38 #include "ldr.h" 38 #include "ldrCalls.h"39 39 #include "ModuleBase.h" 40 40 #include "pe2lx.h" -
trunk/src/win32k/ldr/myLDRGetProcAddr.cpp
r4827 r5086 1 /* $Id: myLDRGetProcAddr.cpp,v 1. 1 2000-12-17 22:44:46bird Exp $1 /* $Id: myLDRGetProcAddr.cpp,v 1.2 2001-02-10 11:11:45 bird Exp $ 2 2 * 3 3 * LDRGetProcAddr - Get an entry point to a module. … … 16 16 #define INCL_NOPMAPI 17 17 #define INCL_OS2KRNL_PTDA 18 #define INCL_OS2KRNL_LDR 18 19 19 20 /******************************************************************************* … … 34 35 #include "dev32.h" 35 36 #include "ldr.h" 36 #include "ldrCalls.h"37 37 #include "options.h" 38 38 -
trunk/src/win32k/ldr/myLDRQAppType.cpp
r4164 r5086 1 /* $Id: myLDRQAppType.cpp,v 1. 4 2000-09-02 21:08:07bird Exp $1 /* $Id: myLDRQAppType.cpp,v 1.5 2001-02-10 11:11:45 bird Exp $ 2 2 * 3 3 * _myLDRQAppType - _LDRQAppType overload. … … 17 17 #define INCL_OS2KRNL_PTDA 18 18 #define INCL_OS2KRNL_SEM 19 #define INCL_OS2KRNL_LDR 19 20 20 21 /******************************************************************************* … … 27 28 #include "avl.h" 28 29 #include "ldr.h" 29 #include "ldrCalls.h"30 30 #include "log.h" 31 31 -
trunk/src/win32k/ldr/myVMAllocMem.cpp
r4787 r5086 1 /* $Id: myVMAllocMem.cpp,v 1. 2 2000-12-11 06:53:53bird Exp $1 /* $Id: myVMAllocMem.cpp,v 1.3 2001-02-10 11:11:45 bird Exp $ 2 2 * 3 3 * Debug module - overloads VMAllocMem to analyse input parameters.... … … 14 14 #define INCL_DOSERRORS 15 15 #define INCL_NOPMAPI 16 #define INCL_OS2KRNL_LDR 16 17 17 18 /******************************************************************************* … … 24 25 #include "avl.h" 25 26 #include "ldr.h" 26 #include "ldrCalls.h"27 27 28 28 -
trunk/src/win32k/ldr/myldrCheckInternalName.cpp
r4879 r5086 1 /* $Id: myldrCheckInternalName.cpp,v 1. 2 2001-01-08 18:04:23bird Exp $1 /* $Id: myldrCheckInternalName.cpp,v 1.3 2001-02-10 11:11:45 bird Exp $ 2 2 * 3 3 * ldrCheckInternalName - ldrCheckInternalName replacement with support for … … 16 16 #define INCL_DOSERRORS 17 17 #define INCL_NOPMAPI 18 #define INCL_OS2KRNL_LDR 18 19 19 20 … … 35 36 #include "dev32.h" 36 37 #include "ldr.h" 37 #include "ldrCalls.h"38 38 #include "options.h" 39 39 -
trunk/src/win32k/ldr/myldrClose.cpp
r4164 r5086 1 /* $Id: myldrClose.cpp,v 1. 6 2000-09-02 21:08:07bird Exp $1 /* $Id: myldrClose.cpp,v 1.7 2001-02-10 11:11:46 bird Exp $ 2 2 * 3 3 * myldrClose - ldrClose … … 14 14 #define INCL_DOSERRORS 15 15 #define INCL_NOPMAPI 16 #define INCL_OS2KRNL_LDR 16 17 17 18 /******************************************************************************* … … 30 31 #include "OS2Krnl.h" 31 32 #include "ldr.h" 32 #include "ldrCalls.h"33 33 #include "ModuleBase.h" 34 34 #include "Pe2Lx.h" -
trunk/src/win32k/ldr/myldrEnum32bitRelRecs.cpp
r4787 r5086 1 /* $Id: myldrEnum32bitRelRecs.cpp,v 1. 4 2000-12-11 06:53:53bird Exp $1 /* $Id: myldrEnum32bitRelRecs.cpp,v 1.5 2001-02-10 11:11:46 bird Exp $ 2 2 * 3 3 * myldrEnum32bitRelRecs - ldrEnum32bitRelRecs … … 14 14 #define INCL_DOSERRORS 15 15 #define INCL_NOPMAPI 16 #define INCL_OS2KRNL_LDR 16 17 17 18 … … 31 32 #include "OS2Krnl.h" 32 33 #include "ldr.h" 33 #include "ldrCalls.h"34 34 #include "ModuleBase.h" 35 35 -
trunk/src/win32k/ldr/myldrFindModule.cpp
r4779 r5086 1 /* $Id: myldrFindModule.cpp,v 1. 1 2000-12-11 06:32:06 bird Exp $1 /* $Id: myldrFindModule.cpp,v 1.2 2001-02-10 11:11:46 bird Exp $ 2 2 * 3 3 * ldrFindModule - ldrFindModule replacement with support for long DLL names … … 15 15 #define INCL_DOSERRORS 16 16 #define INCL_NOPMAPI 17 #define INCL_OS2KRNL_LDR 17 18 18 19 /******************************************************************************* … … 33 34 #include "dev32.h" 34 35 #include "ldr.h" 35 #include "ldrCalls.h"36 36 #include "ModuleBase.h" 37 37 #include "options.h" -
trunk/src/win32k/ldr/myldrOpen.cpp
r4778 r5086 1 /* $Id: myldrOpen.cpp,v 1.1 3 2000-12-11 06:30:59bird Exp $1 /* $Id: myldrOpen.cpp,v 1.14 2001-02-10 11:11:46 bird Exp $ 2 2 * 3 3 * myldrOpen - ldrOpen. … … 20 20 #define INCL_OS2KRNL_SEM 21 21 #define INCL_OS2KRNL_SEC 22 #define INCL_OS2KRNL_LDR 22 23 23 24 /******************************************************************************* … … 43 44 #include "dev32.h" 44 45 #include "ldr.h" 45 #include "ldrCalls.h"46 46 #include "ModuleBase.h" 47 47 #include "pe2lx.h" -
trunk/src/win32k/ldr/myldrOpenPath.cpp
r4778 r5086 1 /* $Id: myldrOpenPath.cpp,v 1. 4 2000-12-11 06:30:59bird Exp $1 /* $Id: myldrOpenPath.cpp,v 1.5 2001-02-10 11:11:46 bird Exp $ 2 2 * 3 3 * myldrOpenPath - ldrOpenPath used to open executables we'll override … … 17 17 #define INCL_OS2KRNL_TCB 18 18 #define INCL_OS2KRNL_PTDA 19 #define INCL_OS2KRNL_LDR 19 20 20 21 /******************************************************************************* … … 34 35 #include "OS2Krnl.h" 35 36 #include "avl.h" 36 #include "ldrCalls.h"37 37 #include "ldr.h" 38 38 #include "ModuleBase.h" -
trunk/src/win32k/ldr/myldrRead.cpp
r4787 r5086 1 /* $Id: myldrRead.cpp,v 1. 8 2000-12-11 06:53:53bird Exp $1 /* $Id: myldrRead.cpp,v 1.9 2001-02-10 11:11:47 bird Exp $ 2 2 * 3 3 * myldrRead - ldrRead. … … 14 14 #define INCL_DOSERRORS 15 15 #define INCL_NOPMAPI 16 #define INCL_OS2KRNL_LDR 16 17 17 18 /******************************************************************************* … … 30 31 #include <exe386.h> 31 32 #include "OS2Krnl.h" 32 #include "ldrCalls.h"33 33 #include "ldr.h" 34 34 #include "ModuleBase.h" -
trunk/src/win32k/ldr/myldrSetVMflags.cpp
r4227 r5086 1 /* $Id: myldrSetVMflags.cpp,v 1. 1 2000-09-08 21:34:12bird Exp $1 /* $Id: myldrSetVMflags.cpp,v 1.2 2001-02-10 11:11:47 bird Exp $ 2 2 * 3 3 * myldrSetVMflags - ldrSetVMflags … … 16 16 17 17 #define INCL_OS2KRNL_VM 18 #define INCL_OS2KRNL_LDR 18 19 19 20 /******************************************************************************* … … 32 33 #include "OS2Krnl.h" 33 34 #include "ldr.h" 34 #include "ldrCalls.h"35 35 36 36 -
trunk/src/win32k/ldr/myldrWasLoadModuled.cpp
r4827 r5086 1 /* $Id: myldrWasLoadModuled.cpp,v 1. 1 2000-12-17 22:44:45bird Exp $1 /* $Id: myldrWasLoadModuled.cpp,v 1.2 2001-02-10 11:11:47 bird Exp $ 2 2 * 3 3 * ldrWasLoadModuled - Tells OS/2 that the executable module was LoadModuled … … 17 17 #define INCL_NOPMAPI 18 18 #define INCL_OS2KRNL_PTDA 19 #define INCL_OS2KRNL_LDR 19 20 20 21 /******************************************************************************* … … 35 36 #include "dev32.h" 36 37 #include "ldr.h" 37 #include "ldrCalls.h"38 38 #include "options.h" 39 39 -
trunk/src/win32k/misc/env.c
r4787 r5086 1 /* $Id: env.c,v 1. 4 2000-12-11 06:53:54bird Exp $1 /* $Id: env.c,v 1.5 2001-02-10 11:11:47 bird Exp $ 2 2 * 3 3 * Environment access functions … … 14 14 #define INCL_DOSERRORS /* Error codes */ 15 15 #define INCL_OS2KRNL_VM /* OS2KRNL: Virtual Memory Management */ 16 #define INCL_OS2KRNL_PTDA /* OS2K NRL: (per)ProcessTaskDataArea */16 #define INCL_OS2KRNL_PTDA /* OS2KRNL: (per)ProcessTaskDataArea */ 17 17 18 18 /******************************************************************************* -
trunk/src/win32k/pe2lx/pe2lx.cpp
r5050 r5086 1 /* $Id: pe2lx.cpp,v 1.2 4 2001-02-02 08:35:54bird Exp $1 /* $Id: pe2lx.cpp,v 1.25 2001-02-10 11:11:47 bird Exp $ 2 2 * 3 3 * Pe2Lx class implementation. Ring 0 and Ring 3 … … 17 17 #define FOR_EXEHDR 1 /* To make all object flags OBJ???. */ 18 18 #define INCL_DOSERRORS /* DOS Error codes. */ 19 #define INCL_OS2KRNL_LDR /* Loader definitions. */ 19 20 #ifdef RING0 20 21 #define INCL_NOAPI /* RING0: No apis. */ 21 22 #else /*RING3*/ 22 23 #define INCL_DOSPROCESS /* RING3: DosSleep. */ 24 #define INCL_OS2KRNL_LDR_NOAPIS /* No apis */ 23 25 #endif 24 26 … … 96 98 #include "OS2Krnl.h" /* kernel structs. (SFN) */ 97 99 #ifdef RING0 98 #include "ldrCalls.h" /* ldr* calls. (ldrRead) */99 100 #include "avl.h" /* AVL tree. (ldr.h need it) */ 100 101 #include "ldr.h" /* ldr helpers. (ldrGetExePath) */ … … 558 559 * alignment which is not a multiple of 64Kb. The sections are concatenated into one big object. */ 559 560 /* TODO! this test has to be enhanced a bit. WWPack32, new Borland++ depends on image layout. */ 560 fAllInOneObject = !isPEOneObjectDisabled() 561 fAllInOneObject = !isPEOneObjectDisabled() 561 562 && ( isPEOneObjectForced() 562 563 || (pNtHdrs->FileHeader.Characteristics & IMAGE_FILE_RELOCS_STRIPPED) == IMAGE_FILE_RELOCS_STRIPPED -
trunk/src/win32k/pe2lx/pe2lxmain.cpp
r5050 r5086 1 /* $Id: pe2lxmain.cpp,v 1. 6 2001-02-02 08:35:54bird Exp $1 /* $Id: pe2lxmain.cpp,v 1.7 2001-02-10 11:11:48 bird Exp $ 2 2 * 3 3 * Pe2Lx main program. (Ring 3 only!) … … 16 16 #define INCL_DOSFILEMGR 17 17 #define INCL_DOSERRORS 18 #define INCL_OS2KRNL_LDR 18 19 19 20 #define DATA16_GLOBAL … … 76 77 PCSZ psz; 77 78 int argi; 79 80 /* special edition for Dave Evans */ 81 options.fPEOneObject = FLAGS_PEOO_DISABLED; 78 82 79 83 /* read parameters */ -
trunk/src/win32k/test/fake.c
r4810 r5086 1 /* $Id: fake.c,v 1. 6 2000-12-16 23:03:31bird Exp $1 /* $Id: fake.c,v 1.7 2001-02-10 11:11:48 bird Exp $ 2 2 * 3 3 * Fake stubs for the ldr and kernel functions we imports or overloads. … … 34 34 #include "OS2Krnl.h" 35 35 #include "dev32.h" 36 #include "ldrcalls.h"37 36 #include "test.h" 38 37 #include "macros.h" -
trunk/src/win32k/test/win32ktst.c
r4972 r5086 1 /* $Id: win32ktst.c,v 1. 6 2001-01-19 02:28:33bird Exp $1 /* $Id: win32ktst.c,v 1.7 2001-02-10 11:11:48 bird Exp $ 2 2 * 3 3 * Win32k test module. … … 50 50 #include "avl.h" 51 51 #include "ldr.h" 52 #include "ldrCalls.h"53 52 #include "test.h" 54 53 #include "asmutils.h" -
trunk/src/win32k/utils/makefile
r4715 r5086 1 # $Id: makefile,v 1. 5 2000-12-02 23:32:41bird Exp $1 # $Id: makefile,v 1.6 2001-02-10 11:11:48 bird Exp $ 2 2 3 3 # … … 13 13 EXETARGET=1 14 14 ADDITIONAL_DEP = mydep 15 WIN32KAPI = ..\api 16 WIN32KMISC = ..\misc 15 17 WIN32KINCLUDE = ..\include 16 18 … … 38 40 # 39 41 OBJS = \ 40 $(OBJDIR)\Win32kCC.obj 42 $(OBJDIR)\Win32kCC.obj 43 #$(OBJDIR)\api.obj \ 44 #$(OBJDIR)\locks.obj 41 45 42 46 … … 75 79 $(DEPEND) -a -o$$(OBJDIR) $(CINCLUDES) $(WIN32KINCLUDE)\*.h 76 80 81 82 # 83 # Extra rules to build api.obj and locks.obj 84 # 85 !if "$(VAC3)" == "1" | "$(VAC36)" == "1" 86 $(OBJDIR)\api.obj: $(WIN32KAPI)\api.cpp 87 $(CC) -c $(CXXFLAGS) $(CDEFINES) $(CINCLUDES) -Fo$(OBJDIR)\$(@B).obj $** 88 89 $(OBJDIR)\locks.obj: $(WIN32KMISC)\locks.asm 90 $(AS) $(ASFLAGS) -I:$(WIN32KINCLUDE) -Fdo:$(OBJDIR) $** 91 !else 92 !error "not ready for this compiler yet" 93 !endif 94 95 96 97
Note:
See TracChangeset
for help on using the changeset viewer.