Ignore:
Timestamp:
Nov 29, 1999, 1:05:03 AM (26 years ago)
Author:
bird
Message:

Implemented EnumResourceNamesA/W.

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 sandervl Exp $ */
     1/* $Id: winimagelx.cpp,v 1.5 1999-11-29 00:04:06 bird Exp $ */
    22
    33/*
     
    4040//******************************************************************************
    4141//******************************************************************************
    42 Win32LxImage::Win32LxImage(HINSTANCE hInstance, PVOID pResData) 
     42Win32LxImage::Win32LxImage(HINSTANCE hInstance, PVOID pResData)
    4343               : Win32ImageBase(hInstance)
    4444{
     
    5656  pResDir = (PIMAGE_RESOURCE_DIRECTORY)pResData;
    5757
    58   //pResourceSectionStart contains the virtual address of the imagebase in the PE header
     58  //ulRVAResourceSection contains the virtual address of the imagebase in the PE header
    5959  //for the resource section (images loaded by the pe.exe)
    6060  //For LX images, this is 0 as OffsetToData contains a relative offset
    61   pResourceSectionStart = 0;
     61  ulRVAResourceSection = 0;
    6262}
    6363//******************************************************************************
     
    7474
    7575  rc = DosQueryProcAddr(hinstance, 0, name, (PFN *)&apiaddr);
    76   if(rc) 
     76  if(rc)
    7777  {
    78         if(rc == ERROR_INVALID_HANDLE) 
     78        if(rc == ERROR_INVALID_HANDLE)
    7979        {//handle invalid for some silly reason, so load module again (initterm entrypoint not called twice)
    8080                char szErrName[CCHMAXPATH];
     
    9797  rc = DosQueryProcAddr(hinstance, ordinal, NULL, (PFN *)&apiaddr);
    9898  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.
    101104                char szErrName[CCHMAXPATH];
    102105
Note: See TracChangeset for help on using the changeset viewer.