- Timestamp:
- Feb 27, 2000, 3:16:43 AM (26 years ago)
- Location:
- trunk/src/win32k/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/include/ModuleBase.h
r2501 r2925 1 /* $Id: ModuleBase.h,v 1. 2 2000-01-22 18:20:58bird Exp $1 /* $Id: ModuleBase.h,v 1.3 2000-02-27 02:16:43 bird Exp $ 2 2 * 3 3 * ModuleBase - Declaration of the Basic module class. … … 31 31 * Note: Aligment must be a 2**n number. */ 32 32 33 #define PAGESHIFT 12 /* bytes to pages or pages to bytes shift value. */ 34 #ifndef PAGESIZE 35 #define PAGESIZE 0x1000 /* pagesize on i386 */ 36 #endif 37 #define PAGEOFFSET(addr) ((addr) & (PAGESIZE-1)) /* Gets the offset into the page addr points into. */ 38 #define PAGESTART(addr) ((addr) & ~(PAGESIZE-1)) /* Gets the address of the page addr points into. */ 39 40 33 41 /* 34 42 * Output macros. … … 60 68 61 69 /* 62 * Misc 70 * Read macros. 71 * ReadAt: Reads from a file, hFile, at a given offset, ulOffset, into a buffer, pvBuffer, 72 * an amount of bytes, cbToRead. 73 * RING0: Map this to ldrRead with 0UL as flFlags. 74 * RING3: Implementes this function as a static function, ReadAt. 75 * ReadAtF: Same as ReadAt but two extra parameters; an additional flag and a pointer to an MTE. 76 * Used in the read method. 77 * RING0: Map directly to ldrRead. 78 * RING3: Map to ReadAt, ignoring the two extra parameters. 63 79 */ 64 #define PAGESIZE 0x1000 80 #ifdef RING0 81 #define ReadAt(hFile, ulOffset, pvBuffer, cbToRead) \ 82 ldrRead(hFile, ulOffset, pvBuffer, 0UL, cbToRead, NULL) 83 #define ReadAtF(hFile, ulOffset, pvBuffer, cbToRead, flFlags, pMTE) \ 84 ldrRead(hFile, ulOffset, pvBuffer, flFlags, cbToRead, pMTE) 85 #else 86 #define ReadAtF(hFile, ulOffset, pvBuffer, cbToRead, flFlags, pMTE) \ 87 ReadAt(hFile, ulOffset, pvBuffer, cbToRead) 88 #endif 65 89 90 91 /******************************************************************************* 92 * Functions * 93 *******************************************************************************/ 94 #ifndef RING0 95 APIRET ReadAt(SFN hFile, ULONG ulOffset, PVOID pvBuffer, ULONG cbToRead); 96 #endif 66 97 67 98 -
trunk/src/win32k/include/pe2lx.h
r2541 r2925 1 /* $Id: pe2lx.h,v 1. 8 2000-01-27 23:48:14bird Exp $1 /* $Id: pe2lx.h,v 1.9 2000-02-27 02:16:43 bird Exp $ 2 2 * 3 3 * Pe2Lx class declarations. Ring 0 and Ring 3 … … 68 68 #ifndef RING0 69 69 ULONG testApplyFixups(); 70 ULONG write LxFile(PCSZ pszLXFilename);70 ULONG writeFile(PCSZ pszLXFilename); 71 71 #endif 72 72
Note:
See TracChangeset
for help on using the changeset viewer.