Changeset 550 for trunk/include
- Timestamp:
- Aug 18, 1999, 7:18:01 PM (26 years ago)
- Location:
- trunk/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/nameid.h
r10 r550 1 /* $Id: nameid.h,v 1. 2 1999-05-27 15:17:58 phallerExp $ */1 /* $Id: nameid.h,v 1.3 1999-08-18 17:16:05 sandervl Exp $ */ 2 2 3 3 /* … … 17 17 int SYSTEM ConvertNameId(ULONG hModule, char *); 18 18 19 void SYSTEM UpCase(char *mixedcase);20 21 19 #ifndef ULONG 22 20 #define ULONG unsigned long … … 24 22 25 23 ULONG GetOS2ModuleHandle(ULONG hmod); 24 char *StripPath(char *path); 26 25 27 26 #ifdef __cplusplus -
trunk/include/windll.h
r544 r550 1 /* $Id: windll.h,v 1. 4 1999-08-18 12:24:52sandervl Exp $ */1 /* $Id: windll.h,v 1.5 1999-08-18 17:16:05 sandervl Exp $ */ 2 2 3 3 /* … … 17 17 #include "winimage.h" 18 18 19 #ifndef CCHMAXPATH20 #define CCHMAXPATH 26021 #endif22 19 #ifndef HINSTANCE 23 20 #define HINSTANCE ULONG … … 89 86 private: 90 87 ULONG referenced; 91 char szModule[CCHMAXPATH];92 93 char *StripPath(char *path);94 88 95 89 -
trunk/include/winimage.h
r544 r550 1 /* $Id: winimage.h,v 1. 5 1999-08-18 12:24:53sandervl Exp $ */1 /* $Id: winimage.h,v 1.6 1999-08-18 17:16:05 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #endif 28 28 29 #ifndef CCHMAXPATH 30 #define CCHMAXPATH 260 31 #endif 29 32 30 33 //SvL: Amount of memory the peldr dll reserves for win32 exes without fixups … … 125 128 char *getFullPath() { return fullpath; }; 126 129 130 char *getModuleName() { return szModule; }; 131 127 132 HRSRC findResourceA(LPCSTR lpszName, LPSTR lpszType); 128 133 HRSRC findResourceW(LPWSTR lpszName, LPWSTR lpszType); … … 163 168 Section *findSectionByAddr(ULONG addr); 164 169 165 BOOL storeSections( );170 BOOL storeSections(char *win32file); 166 171 BOOL setMemFlags(); 167 172 BOOL setFixups(PIMAGE_BASE_RELOCATION prel); … … 182 187 Win32Resource *winres; 183 188 184 185 189 IMAGE_OPTIONAL_HEADER oh; 190 IMAGE_FILE_HEADER fh; 186 191 187 192 ULONG errorState, entryPoint; … … 193 198 ULONG nrsections, imageSize, imageVirtBase, imageVirtEnd; 194 199 //OS/2 virtual base address 195 ULONG baseAddress,realBaseAddress;200 ULONG realBaseAddress; 196 201 Section section[MAX_SECTION]; 197 202 198 203 char *szFileName, *fullpath; 204 char szModule[CCHMAXPATH]; 199 205 200 206 HINSTANCE hinstance; … … 226 232 extern ofstream fout; 227 233 234 //SvL: This structure is placed at the end of the first page of the image (header 235 // page), so we can determine the Win32Image pointer from a HINSTANCE variable 236 // (which is actually the address of the win32 module) 237 typedef struct 238 { 239 Win32Image *image; 240 ULONG magic; 241 } WINIMAGE_LOOKUP; 242 243 #define WINIMAGE_LOOKUPADDR(a) (WINIMAGE_LOOKUP *)((ULONG)a + PAGE_SIZE - sizeof(WINIMAGE_LOOKUP)) 244 228 245 #endif //__PE2LX__ 229 246
Note:
See TracChangeset
for help on using the changeset viewer.