SHGetSpecialFolderPath
[DllImport("shell32.dll", CharSet = CharSet.Unicode)]
public static extern bool SHGetSpecialFolderPath(
IntPtr hwndOwner,
StringBuilder lpszPath,
int nFolder,
bool fCreate
);
Microsoft documentation: Link
Last updated