I think this is the right place to post and not in the windows programming forum, since my question is more about the syntax..
Well I'm using GetModuleFileName to get the complete path to the file. As a result I get this: C:\project\program.exe
Is there a way to isolate the "program.exe"? All I'm trying to do is get the process name so I can get his PID, I know how to do it if I know the name, but if someone renames it I can't. Thats why I'm trying to isolate the program.exe so I can always know the name.
Thanks <3