is there a way to get the application directory while being in dllinit / loader lock? Currently I know only the way presented here. Since this approach potentially loads the Shell32.dll, I assume it is not safe during dllinit.
Any advice / other way to do it?
Clarification: I'm searching the AppData directory, not for the directory where the executable resides.