SHOpenFolderAndSelectItems

[DllImport("shell32.dll")]
public static extern int SHOpenFolderAndSelectItems(
   IntPtr pidlFolder,
   uint cidl,
   [MarshalAs(UnmanagedType.LPArray)] IntPtr[] apidl,
   uint dwFlags
);

Microsoft documentation: Link

Last updated