Question: I'd like to get the filename of the process that is currently executing? Solution: A call to GetModuleName will return the name of the file that is currently executing your code. You will need to pass it the correct handle to the module in order for it to correctly return the filename that it is associated with, specifically hInstance. Below is some sample code to return the filename:
|
Last Modified: 30-JUL-02