-/* $Id: stubsa.c,v 1.9 2003/03/25 22:35:19 gvg Exp $
+/* $Id$
*
* reactos/lib/gdi32/misc/stubs.c
*
* remove its stub from this file.
*
*/
-#ifdef UNICODE
-#undef UNICODE
-#endif
-#undef WIN32_LEAN_AND_MEAN
-#include <windows.h>
-#include <ddk/ntddk.h>
+#include "precomp.h"
-int
-STDCALL
-AddFontResourceA(
- LPCSTR a0
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
-
-
-HMETAFILE
-STDCALL
-CopyMetaFileA(
- HMETAFILE a0,
- LPCSTR a1
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
-
-HDC
-STDCALL
-CreateICA(
- LPCSTR a0,
- LPCSTR a1,
- LPCSTR a2,
- CONST DEVMODEA * a3
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
-
-
-HDC
-STDCALL
-CreateMetaFileA(
- LPCSTR a0
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
-
-
-BOOL
-STDCALL
-CreateScalableFontResourceA(
- DWORD a0,
- LPCSTR a1,
- LPCSTR a2,
- LPCSTR a3
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return FALSE;
-}
+#define UNIMPLEMENTED DbgPrint("GDI32: %s is unimplemented, please try again later.\n", __FUNCTION__);
+/*
+ * @unimplemented
+ */
int
STDCALL
DeviceCapabilitiesExA(
- LPCSTR a0,
- LPCSTR a1,
- WORD a2,
- LPSTR a3,
- CONST DEVMODEA *a4
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
-
-
-int
-STDCALL
-EnumFontFamiliesExA(
- HDC a0,
- LPLOGFONT a1,
- FONTENUMEXPROC a2,
- LPARAM a3,
- DWORD a4
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
-
-
-int
-STDCALL
-EnumFontFamiliesA(
- HDC a0,
- LPCSTR a1,
- FONTENUMPROC a2,
- LPARAM a3
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
-
-
-int
-STDCALL
-EnumFontsA(
- HDC a0,
- LPCSTR a1,
- ENUMFONTSPROC a2,
- LPARAM a3
+ LPCSTR pDevice,
+ LPCSTR pPort,
+ WORD fwCapability,
+ LPSTR pOutput,
+ CONST DEVMODEA *pDevMode
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
-
-
-BOOL
-STDCALL
-GetCharWidthA(
- HDC a0,
- UINT a1,
- UINT a2,
- LPINT a3
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return FALSE;
-}
-
-
-BOOL
-STDCALL
-GetCharWidth32A(
- HDC a0,
- UINT a1,
- UINT a2,
- LPINT a3
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return FALSE;
-}
-
-
-BOOL
-APIENTRY
-GetCharWidthFloatA(
- HDC a0,
- UINT a1,
- UINT a2,
- PFLOAT a3
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return FALSE;
-}
-
-
-BOOL
-APIENTRY
-GetCharABCWidthsA(
- HDC a0,
- UINT a1,
- UINT a2,
- LPABC a3
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return FALSE;
+ UNIMPLEMENTED;
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
}
-
-BOOL
-APIENTRY
-GetCharABCWidthsFloatA(
- HDC a0,
- UINT a1,
- UINT a2,
- LPABCFLOAT a3
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return FALSE;
-}
-
-
-DWORD
-STDCALL
-GetGlyphOutlineA(
- HDC a0,
- UINT a1,
- UINT a2,
- LPGLYPHMETRICS a3,
- DWORD a4,
- LPVOID a5,
- CONST MAT2 *a6
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
-
-
-HMETAFILE
-STDCALL
-GetMetaFileA(
- LPCSTR a0
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
-
-
+/*
+ * @unimplemented
+ */
UINT
APIENTRY
GetOutlineTextMetricsA(
- HDC a0,
- UINT a1,
- LPOUTLINETEXTMETRICA a2
+ HDC hdc,
+ UINT cbData,
+ LPOUTLINETEXTMETRICA lpOTM
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
-
-
-BOOL
-APIENTRY
-GetTextExtentPoint32A(
- HDC hDc,
- LPCSTR a1,
- int a2,
- LPSIZE a3
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return FALSE;
-}
-
-
-BOOL
-APIENTRY
-GetTextExtentExPointA(
- HDC hDc,
- LPCSTR a1,
- int a2,
- int a3,
- LPINT a4,
- LPINT a5,
- LPSIZE a6
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return FALSE;
+ UNIMPLEMENTED;
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
}
+/*
+ * @unimplemented
+ */
DWORD
STDCALL
GetCharacterPlacementA(
LPCSTR a1,
int a2,
int a3,
- LPGCP_RESULTS a4,
+ LPGCP_RESULTSA a4,
DWORD a5
)
{
+ UNIMPLEMENTED;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
-HDC
-STDCALL
-ResetDCA(
- HDC a0,
- CONST DEVMODEA *a1
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
-
-
-BOOL
-STDCALL
-RemoveFontResourceA(
- LPCSTR a0
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return FALSE;
-}
-
-
-HENHMETAFILE
-STDCALL
-CopyEnhMetaFileA(
- HENHMETAFILE a0,
- LPCSTR a1
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
-
-
-HDC
-STDCALL
-CreateEnhMetaFileA(
- HDC a0,
- LPCSTR a1,
- CONST RECT *a2,
- LPCSTR a3
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
-
-
-HENHMETAFILE
-STDCALL
-GetEnhMetaFileA(
- LPCSTR a0
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
-
-
-UINT
-STDCALL
-GetEnhMetaFileDescriptionA(
- HENHMETAFILE a0,
- UINT a1,
- LPSTR a2
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
-
-
+/*
+ * @unimplemented
+ */
int
STDCALL
StartDocA(
HDC hdc,
- CONST DOCINFO *a1
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
-
-
-int
-STDCALL
-GetObjectA(
- HGDIOBJ a0,
- int a1,
- LPVOID a2
+ CONST DOCINFOA *a1
)
{
+ UNIMPLEMENTED;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
+/*
+ * @unimplemented
+ */
BOOL
STDCALL
PolyTextOutA(
HDC hdc,
- CONST POLYTEXT *a1,
+ CONST POLYTEXTA *a1,
int a2
)
{
+ UNIMPLEMENTED;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
-int
-STDCALL
-GetTextFaceA(
- HDC a0,
- int a1,
- LPSTR a2
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return FALSE;
-}
-
-
+/*
+ * @unimplemented
+ */
DWORD
STDCALL
GetKerningPairsA(
LPKERNINGPAIR a2
)
{
+ UNIMPLEMENTED;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
+/*
+ * @unimplemented
+ */
BOOL
STDCALL
GetLogColorSpaceA(
HCOLORSPACE a0,
- LPLOGCOLORSPACE a1,
+ LPLOGCOLORSPACEA a1,
DWORD a2
)
{
+ UNIMPLEMENTED;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
+/*
+ * @unimplemented
+ */
HCOLORSPACE
STDCALL
CreateColorSpaceA(
- LPLOGCOLORSPACE a0
+ LPLOGCOLORSPACEA a0
)
{
+ UNIMPLEMENTED;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
-WINBOOL
+/*
+ * @unimplemented
+ */
+BOOL
STDCALL
GetICMProfileA(
HDC a0,
LPSTR a2
)
{
+ UNIMPLEMENTED;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
+/*
+ * @unimplemented
+ */
BOOL
STDCALL
SetICMProfileA(
LPSTR a1
)
{
+ UNIMPLEMENTED;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
+/*
+ * @unimplemented
+ */
int
STDCALL
EnumICMProfilesA(
HDC a0,
- ICMENUMPROC a1,
+ ICMENUMPROCA a1,
LPARAM a2
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
+ /*
+ * FIXME - call NtGdiEnumICMProfiles with NULL for lpstrBuffer
+ * to find out how big a buffer we need. Then allocate that buffer
+ * and call NtGdiEnumICMProfiles again to have the buffer filled.
+ *
+ * Finally, step through the buffer ( MULTI-SZ recommended for format ),
+ * and convert each string to ANSI, calling the user's callback function
+ * until we run out of strings or the user returns FALSE
+ */
+
+ UNIMPLEMENTED;
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
}
+/*
+ * @unimplemented
+ */
BOOL
STDCALL
wglUseFontBitmapsA(
DWORD a3
)
{
+ UNIMPLEMENTED;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
+/*
+ * @unimplemented
+ */
BOOL
STDCALL
wglUseFontOutlinesA(
LPGLYPHMETRICSFLOAT a7
)
{
+ UNIMPLEMENTED;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
-WINBOOL
+/*
+ * @unimplemented
+ */
+BOOL
STDCALL
UpdateICMRegKeyA(
DWORD a0,
UINT a3
)
{
+ UNIMPLEMENTED;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
+/*
+ * @unimplemented
+ */
+BOOL
+STDCALL
+RemoveFontResourceExA(
+ LPCSTR lpFileName,
+ DWORD fl,
+ PVOID pdv
+)
+{
+ UNIMPLEMENTED;
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
+}
+
+
+/*
+ * @unimplemented
+ */
+HFONT
+STDCALL
+CreateFontIndirectExA(const ENUMLOGFONTEXDVA *elfexd)
+{
+ UNIMPLEMENTED;
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
+}
+
+/*
+ * @unimplemented
+ */
+DWORD
+STDCALL
+GetGlyphIndicesA(
+ HDC hdc,
+ LPCSTR lpstr,
+ int c,
+ LPWORD pgi,
+ DWORD fl
+)
+{
+ UNIMPLEMENTED;
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
+}
+
+/*
+ * @unimplemented
+ */
+UINT
+STDCALL
+GetStringBitmapA(HDC hdc,LPSTR psz,BOOL unknown,UINT cj,BYTE *lpSB)
+{
+ UNIMPLEMENTED;
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
+}
+
+
/* EOF */