Could there be any problems with calling GetModuleFileNameEx on your own process?

added by DotNetKicks
8/13/2019 12:52:07 PM

1 Kicks, 199 Views

In response to my discussion of why you can get an ERROR_INVALID_HANDLE fromGet­Module­File­Name­Ex even though the process handle is valid, Joshua asks, " Calling such methods as these on your own process has no such caveats, right?" Well, one of the issues is that the process you are querying from hasn't yet completed its initialization.