Hi everyone:
It seems to be very easy but somehow I'm stuck in the middle of it. The GetModuleFileName(hModule, pFileName, nSz) returns NULL if hModule refers to console app (and probably 16bit app too). There's absolutely no way around it as I need to get file path from the window handle.
Any suggestions?
It seems to be very easy but somehow I'm stuck in the middle of it. The GetModuleFileName(hModule, pFileName, nSz) returns NULL if hModule refers to console app (and probably 16bit app too). There's absolutely no way around it as I need to get file path from the window handle.
Any suggestions?