Dominik,
How does KeePass find the private configuration folder? Does it resolve the %APPDATA% environment variable, or does it use some other method?
KeePass calls Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData). For this, .NET internally calls the SHGetFolderPath Windows API function. https://docs.microsoft.com/en-us/dotnet/api/system.environment.getfolderpath https://docs.microsoft.com/en-us/windows/desktop/api/shlobj_core/nf-shlobj_core-shgetfolderpathw
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
SHGetFolderPath
Best regards, Dominik
Thanks
Log in to post a comment.
Dominik,
How does KeePass find the private configuration folder? Does it resolve the %APPDATA% environment variable, or does it use some other method?
KeePass calls
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
. For this, .NET internally calls theSHGetFolderPath
Windows API function.https://docs.microsoft.com/en-us/dotnet/api/system.environment.getfolderpath
https://docs.microsoft.com/en-us/windows/desktop/api/shlobj_core/nf-shlobj_core-shgetfolderpathw
Best regards,
Dominik
Thanks