HitTestThemeBackground
[DllImport("uxtheme.dll", SetLastError = true)]
public static extern HRESULT HitTestThemeBackground(
IntPtr hTheme,
HDC hdc,
int iPartId,
int iStateId,
uint dwOptions,
ref RECT pRect,
IntPtr hrgn,
POINT ptTest,
out HITTESTCODE pHitTestCode
);
Microsoft documentation: Link
Last updated