Re: WinAPI Function to modify EXE resources

From: Eugene Mayevski [SecureBlackbox] (mayevski_at_eldos.org)
Date: 01/24/04


Date: Sat, 24 Jan 2004 18:21:16 +0200

Richard Cox wrote:

> Is there a WinAPI function which modifies resources (e.g. resource strings,
> bitmaps, icons etc.)? There are plenty for reading them (LoadResource and so
> on) but I cannot find any which modify the contents of a resource. Clearly
> it must be possible to do this, since resource editors exist which modify
> EXE files.

They handle PE files in code and parse/assemble resources internally.
WinNT/2K/XP has BeginUpdateResource/EndUpdateResource/UpdateResource
functions, but Win9x doesn't. IIRC Madshi had some implementation of
these functions which work on both Win9x and NT-based OS. Sorry, I don't
remember the URL.

-- 
Eugene Mayevski
EldoS Corp., CTO
Security and networking solutions
http://www.eldos.com


Relevant Pages

  • Re: WTL CCombobox with CBS_DROPDOWNLIST style
    ... "Properties/Behavior" in resource editor... ... At the moment all of my controls are initialized with DDX_CONTROL_HANDLE ... I would like to modify the Combobox control from default DROPDOWN style ...
    (microsoft.public.vc.atl)
  • Re: Creating a conference room resource in Exchange 2007?
    ... - originator and office manager can ... I created a conference room resource in exchange 2007 through the ... I was curious if there is an easier way to modify some of the ...
    (microsoft.public.exchange.admin)
  • Re: Create a self contained CDialog, (no .rc/resource.h files)
    ... If I do copy-paste, I have an *editable* dialog that I can modify using the ... existing tools, including adding handlers for the new controls, adding variables for the ... If I have to modify a template, I have to do all this "by hand". ... copy a dialog that had no resource file. ...
    (microsoft.public.vc.mfc)
  • Re: Is there any way to make a section in executable.. ??
    ... An external resource is not a bad idea, but you might run into race ... conditions that could crash all running instances of your application using ... >> that you can come to would be to have another application modify your ... >> loaded into memory completely. ...
    (microsoft.public.vc.mfc)
  • Re: Open Files - Open Mode - No Access
    ... means user is Denied access, as in No read, no write, no copy, no delete, no modify, no nothing. ... Jon in Canby Or. ... So far I only see it on .exe files. ...
    (microsoft.public.win2000.general)

Loading