Changeset 1872 for trunk/src/kernel32/winimagelx.cpp
- Timestamp:
- Nov 29, 1999, 1:05:03 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winimagelx.cpp
r1844 r1872 1 /* $Id: winimagelx.cpp,v 1. 4 1999-11-26 00:05:19 sandervlExp $ */1 /* $Id: winimagelx.cpp,v 1.5 1999-11-29 00:04:06 bird Exp $ */ 2 2 3 3 /* … … 40 40 //****************************************************************************** 41 41 //****************************************************************************** 42 Win32LxImage::Win32LxImage(HINSTANCE hInstance, PVOID pResData) 42 Win32LxImage::Win32LxImage(HINSTANCE hInstance, PVOID pResData) 43 43 : Win32ImageBase(hInstance) 44 44 { … … 56 56 pResDir = (PIMAGE_RESOURCE_DIRECTORY)pResData; 57 57 58 // pResourceSectionStartcontains the virtual address of the imagebase in the PE header58 //ulRVAResourceSection contains the virtual address of the imagebase in the PE header 59 59 //for the resource section (images loaded by the pe.exe) 60 60 //For LX images, this is 0 as OffsetToData contains a relative offset 61 pResourceSectionStart= 0;61 ulRVAResourceSection = 0; 62 62 } 63 63 //****************************************************************************** … … 74 74 75 75 rc = DosQueryProcAddr(hinstance, 0, name, (PFN *)&apiaddr); 76 if(rc) 76 if(rc) 77 77 { 78 if(rc == ERROR_INVALID_HANDLE) 78 if(rc == ERROR_INVALID_HANDLE) 79 79 {//handle invalid for some silly reason, so load module again (initterm entrypoint not called twice) 80 80 char szErrName[CCHMAXPATH]; … … 97 97 rc = DosQueryProcAddr(hinstance, ordinal, NULL, (PFN *)&apiaddr); 98 98 if(rc) { 99 if(rc == ERROR_INVALID_HANDLE) 100 {//handle invalid for some silly reason, so load module again (initterm entrypoint not called twice) 99 if(rc == ERROR_INVALID_HANDLE) 100 {//SvL(?): handle invalid for some silly reason, so load module again (initterm entrypoint not called twice) 101 //KSO: AFAIK you'll have to load the module calling DosLoadModule to use it's handle in API calls. 102 // CPREF->DosGetResource->hmod: ... A value other than zero is a module handle that was returned by DosLoadModule. 103 // You may consider adding a DosLoadModule call during RegisterLxDll or somewhere. 101 104 char szErrName[CCHMAXPATH]; 102 105
Note:
See TracChangeset
for help on using the changeset viewer.