SetSysColors

[DllImport("coredll.dll", SetLastError = true)]
public static extern bool SetSysColors(
   int cElements,
   int[] lpaElements,
   int[] lpaRgbValues
);

Microsoft documentation: Link

Last updated