As far as I understand _wgetcwd
returns pointer to string(wchar_t*) to application directory(directory from exe is).
When I run Visual Studio(2012) debug _wgetcwd
returns project directory not the one that contains executed exe file.
Is it expected? Is there any other prefered method that returns directory containing ran executable?