SHGetPathFromIDList

[DllImport("shell32.dll", CharSet = CharSet.Unicode)]
public static extern bool SHGetPathFromIDList(
   IntPtr pidl,
   StringBuilder pszPath
);

Microsoft documentation: Link

Last updated