Re: LoadLibraryEx (as datafile) and MorIcons.dll - extracting icons



William DePalo [MVP VC++] <willd.no.spam@xxxxxxxx> schreef in berichtnieuws
en$sAcNYFHA.2572@xxxxxxxxxxxxxxxxxxxxxxx

Hello William,

[Snip]

> > Still, it's strange that I can't seem to access, with Windows own
> > functions,
> > resources in files that Windows offers in a default install ...
>
> Well, there Windows can mean 16, 32, or 64 bit Windows. The 32 bit
> LoadLibary() only loads 32 bit DLLs and executables.

.... And there is no way to load a NE-type exe or dll, although Windows has
got not problem executing/using them ... (shown by the fact that
"MorIcons.dll" is used for what it's name allready indicates : "more icons"
:-) )

> > Any idea what I can do to access resources in NE-style executables
(DLL's,
> > EXE's) too ?
>
> Well, in a 16 bit application you could use the 16 bit Windows API.

Sorry, there seems to be not 16-bit LoadLibrary function available (as far
as I can see in the header-files I've got ...

> In a 32 bit application, my _guess_ is that you would have to open the DLL
> as a datafile and use knowledge of the NE format to advance to the icons
and
> read the file for the correct number of bytes.

Yes, that's certainly doable (in fact I've allready done as much in another
app), but that doesn't remove my queezy feeling about Windows being able to
execute/use the NE-style files, while I cannot reach, by way of standard
calls, any of the resources in them.

Thanks for your response though.

Regards,
Rudy Wieser



.



Relevant Pages

  • Re: Problem loading localized resources
    ... > We have the app that has localized resources for each language. ... on English UK Windows XP still US resources are ... initialization routine for the resource DLL. ...
    (microsoft.public.vc.mfc)
  • Re: Device Mgr. mistakes wireless card for PCI device
    ... Resources tab. ... Windows 2000 attempts to flag the associated device that is ... Although multithreading helps to alleviate this problem, it may not resolve ... Windows 2000 device driver for the ISA device. ...
    (microsoft.public.win2000.general)
  • Re: Event ID 1500 and 1508 - user cannot login
    ... It's not common in my experience. ... Resource cleanup with Windows 2003 TS should only become a factor due to specific misbehaving applications, drivers, etc and should be addressed at the level. ... reboot the server pretty consistently to clean up resources. ... Profile> Do not ...
    (microsoft.public.windows.terminal_services)
  • Re: Boots up in safe mode-graphics card message.
    ... Brian A. Wrote:- ... Why can't it find enough resources and exactly which other ... How to manage devices in Windows XP ... graphic drivers for your device or the Standard VGA drivers. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: increasing handles | large VM consumption | windows service on Win2k server
    ... you may be able to guess which interface pointers are really leaked. ... > cleanup of these resources. ... > the same work running under a windows service as it is when it runs as a ... >>> console ...
    (microsoft.public.win32.programmer.wmi)