DrawThemeBackgroundEx
[DllImport("uxtheme.dll", SetLastError = true)]
public static extern HRESULT DrawThemeBackgroundEx(
IntPtr hTheme,
HDC hdc,
int iPartId,
int iStateId,
ref RECT pRect,
ref DTBGOPTS pOptions
);
Microsoft documentation: Link
Last updated