DrawThemeIcon

[DllImport("uxtheme.dll", SetLastError = true)]
public static extern HRESULT DrawThemeIcon(
   IntPtr hTheme,
   HDC hdc,
   int iPartId,
   int iStateId,
   ref RECT pRect,
   HIMAGELIST himl,
   int iImageIndex
);

Microsoft documentation: Link

Last updated