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 /* FIXME handle fl parameter */
25 return NtGdiAddFontResource ( lpszFilename );
33 AddFontResourceW ( LPCWSTR lpszFilename )
35 return AddFontResourceExW ( lpszFilename, 0, 0 );
49 return NtGdiCopyMetaFile ( Src, File );
62 CONST DEVMODEW * lpdvmInit
65 return NtGdiCreateIC ( lpszDriver,
68 (CONST PDEVMODEW)lpdvmInit );
81 return NtGdiCreateMetaFile ( lpszFile );
90 CreateScalableFontResourceW(
94 LPCWSTR lpszCurrentPath
97 return NtGdiCreateScalableFontResource ( fdwHidden,
109 DeviceCapabilitiesExW(
114 CONST DEVMODEW *pDevMode
118 /* FIXME no NtGdiDeviceCapabilities???? */
119 return NtGdiDeviceCapabilities ( pDevice,
125 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
138 LPLOGFONTW lpLogFont,
139 FONTENUMEXPROCW lpEnumFontFamProc,
145 return NtGdiEnumFontFamiliesEx ( hdc, lpLogFont, lpEnumFontFamProc, lParam, dwFlags );
147 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
161 FONTENUMPROCW lpEnumFontFamProc,
166 return NtGdiEnumFontFamilies ( hdc, lpszFamily, lpEnumFontFamProc, lParam );
168 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
182 FONTENUMPROCW FontFunc,
187 return NtGdiEnumFonts ( hDC, lpFaceName, FontFunc, lParam );
189 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
207 return NtGdiGetCharWidth ( hdc, iFirstChar, iLastChar, lpBuffer );
223 return NtGdiGetCharWidth32 ( hdc, iFirstChar, iLastChar, lpBuffer );
239 return NtGdiGetCharWidthFloat ( hdc, iFirstChar, iLastChar, pxBuffer );
255 return NtGdiGetCharABCWidths ( hdc, uFirstChar, uLastChar, lpabc );
264 GetCharABCWidthsFloatW(
271 return NtGdiGetCharABCWidthsFloat ( hdc, iFirstChar, iLastChar, lpABCF );
290 return NtGdiGetGlyphOutline ( hdc, uChar, uFormat, lpgm, cbBuffer, lpvBuffer, (CONST LPMAT2)lpmat2 );
303 return NtGdiGetMetaFile ( lpszMetaFile );
312 GetOutlineTextMetricsW(
315 LPOUTLINETEXTMETRICW lpOTM
318 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
328 GetTextExtentExPointW(
338 return NtGdiGetTextExtentExPoint (
339 hdc, lpszStr, cchString, nMaxExtent, lpnFit, alpDx, lpSize );
348 GetCharacterPlacementW(
357 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
369 CONST DEVMODEW *lpInitData
372 return NtGdiResetDC ( hdc, lpInitData );
385 return NtGdiRemoveFontResource ( lpFileName );
395 HENHMETAFILE hemfSrc,
399 return NtGdiCopyEnhMetaFile ( hemfSrc, lpszFile );
412 LPCWSTR lpDescription
415 return NtGdiCreateEnhMetaFile ( hdc, lpFileName, (CONST LPRECT)lpRect, lpDescription );
428 return NtGdiGetEnhMetaFile ( lpszMetaFile );
437 GetEnhMetaFileDescriptionW(
440 LPWSTR lpszDescription
443 return NtGdiGetEnhMetaFileDescription ( hemf, cchBuffer, lpszDescription );
457 return NtGdiStartDoc ( hdc, (CONST PDOCINFOW)a1 );
472 return NtGdiGetObject ( a0, a1, a2 );
487 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
503 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
519 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
535 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
548 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
560 DWORD a1, /* MS says LPDWORD! */
564 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
579 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
591 ICMENUMPROCW lpEnumICMProfilesFunc,
596 * FIXME - call NtGdiEnumICMProfiles with NULL for lpstrBuffer
597 * to find out how big a buffer we need. Then allocate that buffer
598 * and call NtGdiEnumICMProfiles again to have the buffer filled.
600 * Finally, step through the buffer ( MULTI-SZ recommended for format ),
601 * and call the user's callback function until we run out of strings or
602 * the user returns FALSE
604 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
621 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
639 LPGLYPHMETRICSFLOAT a7
642 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
659 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
664 /* === AFTER THIS POINT I GUESS... =========
665 * (based on stack size in Norlander's .def)
666 * === WHERE ARE THEY DEFINED? =============
675 GetFontResourceInfoW(
682 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);