SHGetIDListFromObject

[DllImport("shell32.dll")]
public static extern int SHGetIDListFromObject(
   object punk,
   out IntPtr ppidl
);

Microsoft documentation: Link

Last updated