Changeset 4018 for branches/GRACE/src
- Timestamp:
- Aug 15, 2000, 9:03:27 AM (25 years ago)
- Location:
- branches/GRACE/src/win32k
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GRACE/src/win32k/dev16/probkrnl.c
r4017 r4018 1 /* $Id: probkrnl.c,v 1.20.4. 4 2000-08-15 06:15:59bird Exp $1 /* $Id: probkrnl.c,v 1.20.4.5 2000-08-15 07:03:23 bird Exp $ 2 2 * 3 3 * Description: Autoprobes the os2krnl file and os2krnl[*].sym files. … … 119 119 {FALSE, -1, 10, "ptda_start", -1, -1, -1, -1, EPT_VARIMPORT16}, /* 28 */ 120 120 {FALSE, -1, 12, "ptda_environ", -1, -1, -1, -1, EPT_VARIMPORT16}, /* 29 */ 121 {FALSE, -1, 11, "ptda_module", -1, -1, -1, -1, EPT_VARIMPORT16}, /* 29 */ 121 122 122 123 }; … … 1660 1661 int i; 1661 1662 1662 printf16("/* $Id: probkrnl.c,v 1.20.4. 4 2000-08-15 06:15:59bird Exp $\n"1663 printf16("/* $Id: probkrnl.c,v 1.20.4.5 2000-08-15 07:03:23 bird Exp $\n" 1663 1664 "*\n" 1664 1665 "* Autogenerated kernel symbol database.\n" -
branches/GRACE/src/win32k/dev32/d32init.c
r4017 r4018 1 /* $Id: d32init.c,v 1.19.4. 3 2000-08-15 06:16:01bird Exp $1 /* $Id: d32init.c,v 1.19.4.4 2000-08-15 07:03:25 bird Exp $ 2 2 * 3 3 * d32init.c - 32-bits init routines. … … 1154 1154 0, /* 27 */ 1155 1155 0, /* 28 */ 1156 0 /* 29 */ 1156 0, /* 29 */ 1157 0 /* 30 */ 1157 1158 }; 1158 1159 int i; -
branches/GRACE/src/win32k/include/OS2KPTDA.h
r3829 r4018 1 /* $Id: OS2KPTDA.h,v 1.1 2000-07-16 22:21:19bird Exp $1 /* $Id: OS2KPTDA.h,v 1.1.2.1 2000-08-15 07:03:25 bird Exp $ 2 2 * 3 3 * PTDA access functions. … … 55 55 56 56 USHORT ptdaGet_ptda_environ(PPTDA pPTDA); 57 57 USHORT ptdaGet_ptda_module(PPTDA pPTDA); 58 58 59 59 #ifdef __cplusplus -
branches/GRACE/src/win32k/include/probkrnl.h
r4010 r4018 1 /* $Id: probkrnl.h,v 1.13.4. 2 2000-08-14 08:57:07bird Exp $1 /* $Id: probkrnl.h,v 1.13.4.3 2000-08-15 07:03:25 bird Exp $ 2 2 * 3 3 * Include file for ProbKrnl. … … 16 16 * Defined Constants And Macros * 17 17 *******************************************************************************/ 18 #define NBR_OF_KRNLIMPORTS 3 0/* When this is changed make sure to */18 #define NBR_OF_KRNLIMPORTS 31 /* When this is changed make sure to */ 19 19 /* update the arrays in d32init.c and */ 20 20 /* probkrnl.c */ -
branches/GRACE/src/win32k/ldr/myldrOpenPath.cpp
r4017 r4018 1 /* $Id: myldrOpenPath.cpp,v 1.1.2. 1 2000-08-15 06:16:04bird Exp $1 /* $Id: myldrOpenPath.cpp,v 1.1.2.2 2000-08-15 07:03:26 bird Exp $ 2 2 * 3 3 * myldrOpenPath - ldrOpenPath used to open executables we'll override … … 16 16 #define INCL_NOPMAPI 17 17 #define INCL_OS2KRNL_TCB 18 #define INCL_OS2KRNL_PTDA 18 19 19 20 /******************************************************************************* … … 134 135 else 135 136 { 136 struct InfoSegLDT *pInfoSeg; 137 pInfoSeg = (struct InfoSegLDT *)D32Hlp_GetDOSVar(DHGETDOSV_LOCINFOSEG, 0); 138 if (pInfoSeg != NULL) 137 PPTDA pPTDA = ptdaGetCur(); 138 if (pPTDA) 139 139 { 140 pExe = getModuleByhMTE(p InfoSeg->LIS_DI); /* LIS_DI is the same as hmod in LINFOSEG from bsedos16.h. */140 pExe = getModuleByhMTE(ptdaGet_ptda_module(pPTDA)); 141 141 #ifdef DEBUG /* While testing! */ 142 142 kprintf(("myldrOpenPath: getModuleByhMTE returned 0x%x08 for hmod=0x%04\n", 143 pExe, p InfoSeg->LIS_DI));143 pExe, ptdaGet_ptda_module(pPTDA))); 144 144 #endif 145 145 } 146 #ifdef DEBUG /* While testing! */147 else148 dprintf(("myldrOpenPath: D32Hlp_GetDOSVar(DHGETDOSV_LOCINFOSEG) failed.\n"));149 #endif150 146 } 151 147 -
branches/GRACE/src/win32k/misc/OS2KPTDA.c
r3829 r4018 1 /* $Id: OS2KPTDA.c,v 1.1 2000-07-16 22:21:17 bird Exp $1 /* $Id: OS2KPTDA.c,v 1.1.2.1 2000-08-15 07:03:27 bird Exp $ 2 2 * 3 3 * PTDA access functions. … … 28 28 extern ULONG pptda_start; 29 29 extern ULONG pptda_environ; 30 extern ULONG pptda_module; 30 31 31 32 … … 35 36 * @returns Content of the pPTDA->ptda_environ member. 36 37 * @param pPTDA PTDA Pointer. (NULL is not allowed!) 37 * @sketch38 38 */ 39 39 USHORT ptdaGet_ptda_environ(PPTDA pPTDA) … … 42 42 } 43 43 44 45 /** 46 * Gets the ptda_module PTDA member. This member holds the MTE handle of the process's 47 * executable image. 48 * @returns Content of the pPTDA->ptda_module member. 49 * @param pPTDA PTDA Pointer. (NULL is not allowed!) 50 */ 51 USHORT ptdaGet_ptda_module(PPTDA pPTDA) 52 { 53 return *(PUSHORT)(void*)(((char*)(void*)pPTDA) + (pptda_module - pptda_start)); 54 } 55
Note:
See TracChangeset
for help on using the changeset viewer.