5 #undef WIN32_LEAN_AND_MEAN
9 #include <win32k/kapi.h>
21 UNICODE_STRING StringU;
26 RtlInitAnsiString(&StringA, (LPSTR)String);
27 RtlAnsiStringToUnicodeString(&StringU, &StringA, TRUE);
29 StringU.Buffer = NULL;
31 ret = TextOutW(hDC, XStart, YStart, StringU.Buffer, Count);
32 RtlFreeUnicodeString(&StringU);
45 return W32kTextOut(hDC, XStart, YStart, String, Count);
49 SetTextColor(HDC hDC, COLORREF color)
51 return(W32kSetTextColor(hDC, color));
61 return W32kGetTextMetrics(hdc, (LPTEXTMETRICW) tm);
71 return W32kGetTextMetrics(hdc, tm);
84 UNICODE_STRING StringU;
87 RtlInitAnsiString(&StringA, (LPSTR)String);
88 RtlAnsiStringToUnicodeString(&StringU, &StringA, TRUE);
90 ret = GetTextExtentPointW(hDC, StringU.Buffer, Count, Size);
92 RtlFreeUnicodeString(&StringU);
106 return W32kGetTextExtentPoint(hDC, String, Count, Size);
123 UNICODE_STRING StringU;
126 RtlInitAnsiString(&StringA, (LPSTR)String);
127 RtlAnsiStringToUnicodeString(&StringU, &StringA, TRUE);
129 ret = ExtTextOutW(hDC, X, Y, Options, Rect, StringU.Buffer, Count, Spacings);
131 RtlFreeUnicodeString(&StringU);
149 return W32kTextOut(hDC, X, Y, String, Count);
159 UNICODE_STRING StringU;
163 RtlInitAnsiString(&StringA, (LPSTR)lf->lfFaceName);
164 RtlAnsiStringToUnicodeString(&StringU, &StringA, TRUE);
165 memcpy(&tlf, lf, sizeof(LOGFONTA));
166 memcpy(&tlf.lfFaceName, &StringU.Buffer, StringU.Length);
168 ret = CreateFontIndirectW(&tlf);
170 RtlFreeUnicodeString(&StringU);
181 return W32kCreateFontIndirect((CONST LPLOGFONTW)lf);
196 DWORD OutputPrecision,
199 DWORD PitchAndFamily,
204 UNICODE_STRING StringU;
207 RtlInitAnsiString(&StringA, (LPSTR)Face);
208 RtlAnsiStringToUnicodeString(&StringU, &StringA, TRUE);
210 ret = CreateFontW(Height, Width, Escapement, Orientation, Weight, Italic, Underline, StrikeOut,
211 CharSet, OutputPrecision, ClipPrecision, Quality, PitchAndFamily, StringU.Buffer);
213 RtlFreeUnicodeString(&StringU);
230 DWORD OutputPrecision,
233 DWORD PitchAndFamily,
237 return W32kCreateFont(Height, Width, Escapement, Orientation, Weight, Italic, Underline, StrikeOut,
238 CharSet, OutputPrecision, ClipPrecision, Quality, PitchAndFamily, Face);