GetModuleFileName always return lowercase in service

606 Views Asked by At

i need to get path to current executable in service, but when using GetModuleFileNameW or global variable _pgmptr i always get lowercase path, which is incorrect for me.

example: original path is C:/MyApp/app.exe and GetModuleFileNameW always returns c:/myapp/app.exe

problem doesnt occur in desktop applications, only services. how can i get the correct case path?

0

There are 0 best solutions below