GetTextColor

[DllImport("coredll.dll", SetLastError = true)]
public static extern uint GetTextColor(
   IntPtr hdc
);

Microsoft documentation: Link

Last updated