Executable name of currently executing program.
Posted on 2003-03-13
I need to retrieve the path and filename of the program currently executing. For example, a user could rename an exe, or execute it from anywhere. I cannot use GetCurrentDirectory because this can be different than the folder the app was executed from. I assume there is a way to get the path and filename from an Instance Handle… or a way to get a Module handle from an Instance Handle.
Anyone know how?