DuplicateIcon

[DllImport("shell32.dll")]
public static extern IntPtr DuplicateIcon(
   IntPtr hInst,
   IntPtr hIcon
);

Microsoft documentation: Link

Last updated