flat assembler
Message board for the users of flat assembler.
Index
> Windows > How do i modify a icon or dialog info? |
Author |
|
Kenneth 26 May 2006, 06:21
For title, FindWindow or EnumWindows, and SendMessage with WM_SETTEXT.
For icon, I'd guess WM_SETICON. |
|||
26 May 2006, 06:21 |
|
sylwek32 26 May 2006, 07:24
Thanks.
But i donĀ“t wanted such a function.. I thinked about a "patcher".. |
|||
26 May 2006, 07:24 |
|
zhak 26 May 2006, 09:41
You should provide more information of what exactly you wanna do.
For example, you can just inject those messages (WM_SETTEXT, WM_SETICON) into a target program, then redirect programs flow to your code and return back then. Else you can apply 'hardcode' patch (find references to resources you wanna change with disasm and patch them) - this will give you program-dependend patcher. To make universal patcher... 1. create process of a program to be patched 2. get text of window to be changed 3. if it is set via API call then find the place this API is called from and patch the reference to the text. 4. if it is hardcoded in the resources then you should patch resources (or inject your proc to change windowtext at init time) |
|||
26 May 2006, 09:41 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.