SHGetSpecialFolderLocation

[DllImport("shell32.dll")]
public static extern int SHGetSpecialFolderLocation(
   IntPtr hwnd,
   int nFolder,
   out IntPtr ppidl
);

Microsoft documentation: Link

Last updated