1 /* $Id: stubsw.c,v 1.25 2004/03/23 00:18:54 gvg Exp $
3 * reactos/lib/gdi32/misc/stubs.c
5 * GDI32.DLL Stubs for Unicode functions
7 * When you implement one of these functions,
8 * remove its stub from this file.
15 #include <win32k/kapi.h>
22 AddFontResourceExW ( LPCWSTR lpszFilename
, DWORD fl
, PVOID pvReserved
)
24 UNICODE_STRING Filename
;
26 /* FIXME handle fl parameter */
27 RtlInitUnicodeString(&Filename
, lpszFilename
);
28 return NtGdiAddFontResource ( &Filename
, fl
);
36 AddFontResourceW ( LPCWSTR lpszFilename
)
38 return AddFontResourceExW ( lpszFilename
, 0, 0 );
51 CONST DEVMODEW
* lpdvmInit
54 UNICODE_STRING Driver
, Device
, Output
;
57 RtlInitUnicodeString(&Driver
, lpszDriver
);
59 RtlInitUnicodeString(&Device
, lpszDevice
);
61 RtlInitUnicodeString(&Output
, lpszOutput
);
62 return NtGdiCreateIC ((lpszDriver
? &Driver
: NULL
),
63 (lpszDevice
? &Device
: NULL
),
64 (lpszOutput
? &Output
: NULL
),
65 (CONST PDEVMODEW
)lpdvmInit
);
74 CreateScalableFontResourceW(
78 LPCWSTR lpszCurrentPath
81 return NtGdiCreateScalableFontResource ( fdwHidden
,
93 DeviceCapabilitiesExW(
98 CONST DEVMODEW
*pDevMode
102 /* FIXME no NtGdiDeviceCapabilities???? */
103 return NtGdiDeviceCapabilities ( pDevice
,
109 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
123 FONTENUMPROCW FontFunc
,
128 return NtGdiEnumFonts ( hDC
, lpFaceName
, FontFunc
, lParam
);
130 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
148 return NtGdiGetCharWidth ( hdc
, iFirstChar
, iLastChar
, lpBuffer
);
164 return NtGdiGetCharWidth32 ( hdc
, iFirstChar
, iLastChar
, lpBuffer
);
180 return NtGdiGetCharWidthFloat ( hdc
, iFirstChar
, iLastChar
, pxBuffer
);
196 return NtGdiGetCharABCWidths ( hdc
, uFirstChar
, uLastChar
, lpabc
);
205 GetCharABCWidthsFloatW(
212 return NtGdiGetCharABCWidthsFloat ( hdc
, iFirstChar
, iLastChar
, lpABCF
);
231 return NtGdiGetGlyphOutline ( hdc
, uChar
, uFormat
, lpgm
, cbBuffer
, lpvBuffer
, (CONST LPMAT2
)lpmat2
);
240 GetOutlineTextMetricsW(
243 LPOUTLINETEXTMETRICW lpOTM
246 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
256 GetTextExtentExPointW(
266 return NtGdiGetTextExtentExPoint (
267 hdc
, lpszStr
, cchString
, nMaxExtent
, lpnFit
, alpDx
, lpSize
);
276 GetCharacterPlacementW(
285 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
297 CONST DEVMODEW
*lpInitData
300 return NtGdiResetDC ( hdc
, lpInitData
);
313 return NtGdiRemoveFontResource ( lpFileName
);
327 return NtGdiStartDoc ( hdc
, (CONST PDOCINFOW
)a1
);
342 return NtGdiGetObject ( a0
, a1
, a2
);
357 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
373 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
389 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
405 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
418 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
430 DWORD a1
, /* MS says LPDWORD! */
434 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
449 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
461 ICMENUMPROCW lpEnumICMProfilesFunc
,
466 * FIXME - call NtGdiEnumICMProfiles with NULL for lpstrBuffer
467 * to find out how big a buffer we need. Then allocate that buffer
468 * and call NtGdiEnumICMProfiles again to have the buffer filled.
470 * Finally, step through the buffer ( MULTI-SZ recommended for format ),
471 * and call the user's callback function until we run out of strings or
472 * the user returns FALSE
474 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
491 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
509 LPGLYPHMETRICSFLOAT a7
512 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
529 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
534 /* === AFTER THIS POINT I GUESS... =========
535 * (based on stack size in Norlander's .def)
536 * === WHERE ARE THEY DEFINED? =============
545 GetFontResourceInfoW(
552 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);