flat assembler
Message board for the users of flat assembler.

Index > Windows > How do i modify a icon or dialog info?

Author
Thread Post new topic Reply to topic
sylwek32



Joined: 27 Apr 2006
Posts: 339
sylwek32 26 May 2006, 05:34
Hi,

how can i programm a programm in fasm which changes dialogs or icons ?

e.g.

The notepad title..
The notepad icon.. etc.

Can somebody help me ?

I am a assembler newbie...
Post 26 May 2006, 05:34
View user's profile Send private message Reply with quote
Kenneth



Joined: 16 Nov 2005
Posts: 38
Location: United States of America
Kenneth 26 May 2006, 06:21
For title, FindWindow or EnumWindows, and SendMessage with WM_SETTEXT.
For icon, I'd guess WM_SETICON.
Post 26 May 2006, 06:21
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
sylwek32



Joined: 27 Apr 2006
Posts: 339
sylwek32 26 May 2006, 07:24
Thanks.
But i donĀ“t wanted such a function..

I thinked about a "patcher"..
Post 26 May 2006, 07:24
View user's profile Send private message Reply with quote
zhak



Joined: 12 Apr 2005
Posts: 501
Location: Belarus
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)
Post 26 May 2006, 09:41
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.