Changeset 1269 for trunk/src/win32k/include/ldr.h
- Timestamp:
- Oct 14, 1999, 3:16:50 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/include/ldr.h
r847 r1269 1 /* $Id: ldr.h,v 1. 1 1999-09-06 02:19:58bird Exp $1 /* $Id: ldr.h,v 1.2 1999-10-14 01:16:49 bird Exp $ 2 2 * 3 3 * ldr - loader header file. … … 19 19 #define MAX_FILE_HANDLES 0x10000 20 20 21 extern unsigned char a hStates[MAX_FILE_HANDLES/4];21 extern unsigned char achHandleStates[MAX_FILE_HANDLES/8]; 22 22 23 #define HSTATE_UNUSED 0x00 /* nowhere */ 24 #define HSTATE_CHECK 0x01 /* look in uncertain files */ 25 #define HSTATE_NOT_PE 0x02 /* nowhere */ 26 #define HSTATE_PE 0x03 /* look in PE handles */ 27 #define HSTATE_MASK 0xFC 28 #define HSTATE_UMASK 0x03 23 #define HSTATE_UNUSED 0x00 /* Handle not used (or OS/2). */ 24 #define HSTATE_OS2 0x00 /* OS/2 module filehandle. */ 25 #define HSTATE_OUR 0x01 /* Our module filehandle. */ 26 #define HSTATE_MASK 0xFE 27 #define HSTATE_UMASK 0x01 29 28 30 #define GetState(a) (HSTATE_UMASK & (ahStates[a/4] >> (a%4)*2)) 31 #define SetState(a,b) (ahStates[a/4] = (ahStates[a/4] & (HSTATE_MASK << (a%4)*2 | HSTATE_MASK >> 8-(a%4)*2) | b << (a%4)*2)) 32 33 34 35 /*********************/ 36 /* uncertain file(s) */ 37 /*********************/ 38 #define MAX_UNCERTAIN_FILES 0x10 /* probably never more that one uncertain file at the time */ 39 40 typedef struct _uncertain 41 { 42 SFN hFile; 43 ULONG offsetNEHdr; 44 PSZ pszName; 45 unsigned int fMZ:1; 46 unsigned int fPE:1; 47 } UNCERTAIN, *PUNCERTAIN; 48 49 extern UNCERTAIN ahUncertain[MAX_UNCERTAIN_FILES]; 50 51 ULONG getFreeUncertainEntry(void); 52 ULONG freeUncertainEntry(SFN hFile); 53 ULONG findUncertainEntry(SFN hFile); 29 #define GetState(a) (HSTATE_UMASK & (achHandleStates[(a)/8] >> ((a)%8))) 30 #define SetState(a,b) (achHandleStates[(a)/8] = (achHandleStates[(a)/8] & (HSTATE_MASK << ((a)%8) | HSTATE_MASK >> 8-((a)%8)) | ((b) & 0x1) << ((a)%8))) 54 31 55 32 … … 69 46 PMTE pMTE; /* pointer to MTE if we got one - may be NULL */ 70 47 71 /* LXFileobject */72 LXFile lxfile;48 /* Pe2Lx object */ 49 Pe2Lx *pPe2Lx; 73 50 } PENODE, *PPENODE; 74 51 … … 76 53 77 54 ULONG insertNode(PPENODE pNode); 78 ULONG deleteNode(SFN key); 55 ULONG deleteNode(SFN key); /* removes from tree and freeNode */ 79 56 PPENODE getNodePtr(SFN key); 80 57 PPENODE findNodePtr(const char *pszFilename); 81 58 ULONG depthPE(void); 82 59 PPENODE allocateNode(void); 60 ULONG freeNode(PPENODE pNode); /* don't remove from tree! */ 83 61 84 62 /* if sequential insertion - this will give a lower tree. */
Note:
See TracChangeset
for help on using the changeset viewer.