So for some reason, my program cant find a application even though I have the correct name entered in the FindWindow function (I even use winspy++ to confirm), so I'm thinking about just do a drop down option (or something to display all the active running apps like in CheatEgine), but I don't know how to do it and I don't know what to type in google to look it up. Any ideas?
also here is the code I was talking about
HWND hWnd = FindWindow(NULL, "Keygen");
So I ran a test code of that just to see if the program shows up, but it doesn't. How is that possible? also how can I make it so that the program is detected by my program?
Is it running as a privileged user? I've noticed that you can't really interact much between permission levels. Try running the enumeration program as an administrator if you're not sure.
Hmm, you can always use something like GetForegroundWindow() to find the frontmost window on a delay- or if you need to find it programmatically you could maaaaybe use GetWindowLong() to find some value- or you could use GetClassName() and try to find the class name (especially if it's a custom window, this could be unique)
from there, I scan for the program PID, but the name came up empty EXCEPT for the class https://gyazo.com/9760f776b54f92320523c1760cd0a771.png from there I been trying to find out how to change the program name, but I should have been looking for how to change TITLE name, which then found this
https://www.murgee.com/window-title-changer/
and then I locate the program by the class name found in the code and change the title. Then did a FindWindow() for the program and BAM, it catches it!bobobobo[/I][/SIZE][/COLOR][/FONT]