find process by filename
i can find a window with
hw = FindWindow("windowname",NULL);
but how can i find the window name from the .exe filename?
say i wanted to find "game.exe"'s window name, how would i do that?
this is because i use task manager to find the windowname but my program wont pick up the window name from cod4, so maybe if i made it find the window name of iwmp3.exe?
thx in advance for the help.
hw = FindWindow("windowname",NULL);
but how can i find the window name from the .exe filename?
say i wanted to find "game.exe"'s window name, how would i do that?
this is because i use task manager to find the windowname but my program wont pick up the window name from cod4, so maybe if i made it find the window name of iwmp3.exe?
thx in advance for the help.
