I placed an api hook over WriteProcessMemory (so I got a memory HANDLE), and now I need to see if this writing command is directed at a certain program of which I have only have the window name and filename/path (preferred method would be to check through the filepath somehow).
I would also like to keep the code win 9x compatible

thanks in advance