How do I get an application's .exe name
-
I have an application, prog B, that starts minimized. Another program, let's say winamp, currently has the focus. My program - prog B should be able to retrieve the .exe name based on whichever application that currently has the focus, in this case, winamp. I'm not sure how to go about and tackle this problem. Can somebody please help me out? Environment - Windows 2000 Thanks in advance,
-
I have an application, prog B, that starts minimized. Another program, let's say winamp, currently has the focus. My program - prog B should be able to retrieve the .exe name based on whichever application that currently has the focus, in this case, winamp. I'm not sure how to go about and tackle this problem. Can somebody please help me out? Environment - Windows 2000 Thanks in advance,
The
GetWindowModuleFileName
function retrieves the full path and file name of the module associated with the specified window handle.