DrawText

[DllImport("user32.dll", SetLastError = true)]
public static extern int DrawTextA(IntPtr hdc,
   string lpchText,
   int cchText,
   ref RECT lprc,
   uint format
);

Microsoft documentation: Link

Last updated