IN INT YStart,
IN UINT fuOptions,
IN OPTIONAL PRECTL lprc,
- IN LPWSTR String,
+ IN LPCWSTR String,
IN INT Count,
IN OPTIONAL LPINT Dx,
IN DWORD dwCodePage)
RECTL SafeRect;
BYTE LocalBuffer[STACK_TEXT_BUFFER_SIZE];
PVOID Buffer = LocalBuffer;
- LPWSTR SafeString = NULL;
+ LPCWSTR SafeString = NULL;
LPINT SafeDx = NULL;
ULONG BufSize, StringSize, DxSize = 0;
_SEH2_TRY
{
/* Put the Dx before the String to assure alignment of 4 */
- SafeString = (LPWSTR)(((ULONG_PTR)Buffer) + DxSize);
+ SafeString = (LPCWSTR)(((ULONG_PTR)Buffer) + DxSize);
/* Probe and copy the string */
ProbeForRead(UnsafeString, StringSize, 1);
BOOL FASTCALL ftGdiRealizationInfo(PFONTGDI,PREALIZATION_INFO);
DWORD FASTCALL ftGdiGetKerningPairs(PFONTGDI,DWORD,LPKERNINGPAIR);
BOOL NTAPI GreExtTextOutW(IN HDC,IN INT,IN INT,IN UINT,IN OPTIONAL RECTL*,
- IN LPWSTR, IN INT, IN OPTIONAL LPINT, IN DWORD);
+ IN LPCWSTR, IN INT, IN OPTIONAL LPINT, IN DWORD);
DWORD FASTCALL IntGetCharDimensions(HDC, PTEXTMETRICW, PDWORD);
-BOOL FASTCALL GreGetTextExtentW(HDC,LPWSTR,INT,LPSIZE,UINT);
-BOOL FASTCALL GreGetTextExtentExW(HDC,LPWSTR,ULONG,ULONG,PULONG,PULONG,LPSIZE,FLONG);
+BOOL FASTCALL GreGetTextExtentW(HDC,LPCWSTR,INT,LPSIZE,UINT);
+BOOL FASTCALL GreGetTextExtentExW(HDC,LPCWSTR,ULONG,ULONG,PULONG,PULONG,LPSIZE,FLONG);
BOOL FASTCALL GreTextOutW(HDC,int,int,LPCWSTR,int);
HFONT FASTCALL GreCreateFontIndirectW( LOGFONTW * );
BOOL WINAPI GreGetTextMetricsW( _In_ HDC hdc, _Out_ LPTEXTMETRICW lptm);
if (lpstr[j] == '\t') break;
/* get the extent of the normal character part */
#ifdef _WIN32K_
- GreGetTextExtentW( hdc, (LPWSTR)lpstr + i, j - i , &extent, 0 );
+ GreGetTextExtentW( hdc, lpstr + i, j - i , &extent, 0 );
#else
GetTextExtentPointW( hdc, lpstr + i, j - i , &extent );
#endif
r.bottom = y + extent.cy;
#ifdef _WIN32K_
GreExtTextOutW( hdc, x0, y, GreGetBkMode(hdc) == OPAQUE ? ETO_OPAQUE : 0,
- &r, (LPWSTR)lpstr + i, j - i, NULL, 0 );
+ &r, lpstr + i, j - i, NULL, 0 );
#else
ExtTextOutW( hdc, x0, y, GetBkMode(hdc) == OPAQUE ? ETO_OPAQUE : 0,
&r, lpstr + i, j - i, NULL );
HPEN hpen;
HPEN oldPen;
#ifdef _WIN32K_
- GreGetTextExtentW (hdc, (LPWSTR)str, offset, &size, 0);
+ GreGetTextExtentW (hdc, str, offset, &size, 0);
#else
GetTextExtentPointW (hdc, str, offset, &size);
#endif
prefix_x = x + size.cx;
#ifdef _WIN32K_
- GreGetTextExtentW (hdc, (LPWSTR)str, offset+1, &size, 0);
+ GreGetTextExtentW (hdc, str, offset+1, &size, 0);
#else
GetTextExtentPointW (hdc, str, offset+1, &size);
#endif
len_seg = p - str;
if (len_seg != len &&
#ifdef _WIN32K_
- !GreGetTextExtentW(hdc, (LPWSTR)str, len_seg, &size, 0))
+ !GreGetTextExtentW(hdc, str, len_seg, &size, 0))
#else
!GetTextExtentPointW(hdc, str, len_seg, &size))
#endif
if (!GreExtTextOutW( hdc, xseg, y,
((flags & DT_NOCLIP) ? 0 : ETO_CLIPPED) |
((flags & DT_RTLREADING) ? ETO_RTLREADING : 0),
- rect, (LPWSTR)str, len_seg, NULL, 0 ))
+ rect, str, len_seg, NULL, 0 ))
#else
if (!ExtTextOutW( hdc, xseg, y,
((flags & DT_NOCLIP) ? 0 : ETO_CLIPPED) |