I use x64dbg and IDA Pro the process is 32bit. I'm not sure if I'm doing this right or not because I'm getting a crash which I'm not sure if it's caused by me doing something wrong or the startup process of the application failing for some reason because it can't find the window.
Basically what I'm trying to do is change the window title of some application on startup. I'm trying to achieve this by setting a break point on the user32 function CreateWindowExA
and then attempting to change the lpWindowName
parameter.
Here is what execution looks like when the bp is hit:
Where you see the string "Title possibly" originally contained what was the windows title, so I assume that's the location I need to change. When changing at that address is when I get the error though.
Sorry for any ignorance, I'm new to this and practicing. Thanks.
Edit: I worked on this a little more and made a dummy program to help me figure out what was happening. So the CreateWindowExA
function in this application used the same pointer for both lpClassName
and lpWindowName
args. So patching the program to push just a string instead of that pointer successfully achieved what I was aiming for.
0/
(if I need to include it?) unless it's a wide char I guess. Not exactly sure how I would confirm that though sorrycall user32.76F8AA9C
down the bottom the functions prologue and then the actual call the function being called? That's kind of the conclusion I came to and all thedword ptr ss
pushes abovecall user32.76F8AA9C
being the functions parameters?