|
From: Paul M. <pf_...@ya...> - 2004-09-09 20:07:02
|
Danny Smith <dan...@cl...> writes: > | Paul Moore wrote: > | > | > Sorry - maybe I wasn't clear. I am not building from source, but > | > editing an existing executable. I don't have an easy way of > | > rebuilding the application, so I just need to change the > | > subsystem flag. > > If you have the MS utility editbin, then try editbin /? I do have editbin, at work anyway, but I was hoping to find an open source equivalent... Christof Petig <chr...@pe...> writes: > Earnie Boyd schrieb: >> I don't remember which byte in the executable header; but it is >> possible to do the binary edit. It has been discussed on this list >> many many months and into years ago. > > this is the program we (MAGuS project) use to switch it. Thanks - that helps a lot. With this, I can write something to do what I want, and it's simple enough that it isn't an issue to do so. Earnie - I did try searching the archives, but I didn't manage to find the right combination of search terms to locate anything... [Later] Actually, a bit more experimenting leaves me somewhat puzzled. It doesn't seem that simple. For example, I have a program (gnudoit.exe) which displays as a console app using MS's DUMPBIN or Mingw's objdump, but which has a zero at offset 0xdc. MSDN documents a PE format which looks a bit more complex than just a fixed-offset format. This is starting to look harder, which is why I was hoping that it already existed - but if it doesn't, I'll either do without or write something for myself. Thanks for the information, anyway. Paul. -- I don't know anything about music. In my line you don't have to. -- Elvis Presley |