mirror of
https://github.com/reactos/reactos.git
synced 2024-11-19 05:22:59 +00:00
1542 lines
22 KiB
C
1542 lines
22 KiB
C
/*
|
|
* Stubs for unimplemented WIN32K.SYS exports
|
|
*/
|
|
|
|
#include <win32k.h>
|
|
#undef XFORMOBJ
|
|
|
|
#define UNIMPLEMENTED DbgPrint("(%s:%i) WIN32K: %s UNIMPLEMENTED\n", __FILE__, __LINE__, __FUNCTION__ )
|
|
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
EngTextOut(
|
|
SURFOBJ *pso,
|
|
STROBJ *pstro,
|
|
FONTOBJ *pfo,
|
|
CLIPOBJ *pco,
|
|
RECTL *prclExtra,
|
|
RECTL *prclOpaque,
|
|
BRUSHOBJ *pboFore,
|
|
BRUSHOBJ *pboOpaque,
|
|
POINTL *pptlOrg,
|
|
MIX mix)
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_4tgn.htm
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
PATHOBJ*
|
|
APIENTRY
|
|
CLIPOBJ_ppoGetPath(IN CLIPOBJ *pco)
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_6hbb.htm
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
EngCheckAbort(IN SURFOBJ *pso)
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_3u7b.htm
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
FD_GLYPHSET*
|
|
APIENTRY
|
|
EngComputeGlyphSet(
|
|
IN INT nCodePage,
|
|
IN INT nFirstChar,
|
|
IN INT cChars)
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_9607.htm
|
|
UNIMPLEMENTED;
|
|
return NULL;
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
EngEnumForms(
|
|
IN HANDLE hPrinter,
|
|
IN DWORD Level,
|
|
OUT LPBYTE pForm,
|
|
IN DWORD cbBuf,
|
|
OUT LPDWORD pcbNeeded,
|
|
OUT LPDWORD pcReturned)
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_5e07.htm
|
|
EngSetLastError(ERROR_NOT_SUPPORTED);
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
EngFillPath(
|
|
IN SURFOBJ *pso,
|
|
IN PATHOBJ *ppo,
|
|
IN CLIPOBJ *pco,
|
|
IN BRUSHOBJ *pbo,
|
|
IN POINTL *pptlBrushOrg,
|
|
IN MIX mix,
|
|
IN FLONG flOptions)
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_9pyf.htm
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
PVOID
|
|
APIENTRY
|
|
EngFindResource(
|
|
IN HANDLE h,
|
|
IN int iName,
|
|
IN int iType,
|
|
OUT PULONG pulSize)
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_7rjb.htm
|
|
UNIMPLEMENTED;
|
|
return NULL;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
EngGetFileChangeTime(
|
|
IN HANDLE h,
|
|
OUT LARGE_INTEGER *pChangeTime)
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_1i1z.htm
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
EngGetFilePath(
|
|
IN HANDLE h,
|
|
OUT WCHAR (*pDest)[MAX_PATH + 1])
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_5g2v.htm
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
EngGetForm(
|
|
IN HANDLE hPrinter,
|
|
IN LPWSTR pFormName,
|
|
IN DWORD Level,
|
|
OUT LPBYTE pForm,
|
|
IN DWORD cbBuf,
|
|
OUT LPDWORD pcbNeeded)
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_5vvr.htm
|
|
EngSetLastError(ERROR_NOT_SUPPORTED);
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
EngGetPrinter(
|
|
IN HANDLE hPrinter,
|
|
IN DWORD dwLevel,
|
|
OUT LPBYTE pPrinter,
|
|
IN DWORD cbBuf,
|
|
OUT LPDWORD pcbNeeded)
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_50h3.htm
|
|
EngSetLastError(ERROR_NOT_SUPPORTED);
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
DWORD
|
|
APIENTRY
|
|
EngGetPrinterData(
|
|
IN HANDLE hPrinter,
|
|
IN LPWSTR pValueName,
|
|
OUT LPDWORD pType,
|
|
OUT LPBYTE pData,
|
|
IN DWORD nSize,
|
|
OUT LPDWORD pcbNeeded)
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_8t5z.htm
|
|
EngSetLastError(ERROR_NOT_SUPPORTED);
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
LPWSTR
|
|
APIENTRY
|
|
EngGetPrinterDataFileName(IN HDEV hdev)
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_2giv.htm
|
|
UNIMPLEMENTED;
|
|
return NULL;
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
EngGetType1FontList(
|
|
IN HDEV hdev,
|
|
OUT TYPE1_FONT *pType1Buffer,
|
|
IN ULONG cjType1Buffer,
|
|
OUT PULONG pulLocalFonts,
|
|
OUT PULONG pulRemoteFonts,
|
|
OUT LARGE_INTEGER *pLastModified)
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_6e5j.htm
|
|
EngSetLastError(ERROR_NOT_SUPPORTED);
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
EngMarkBandingSurface(IN HSURF hsurf)
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_2jon.htm
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
INT
|
|
APIENTRY
|
|
EngMultiByteToWideChar(
|
|
IN UINT CodePage,
|
|
OUT LPWSTR WideCharString,
|
|
IN INT BytesInWideCharString,
|
|
IN LPSTR MultiByteString,
|
|
IN INT BytesInMultiByteString)
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_32cn.htm
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
VOID
|
|
APIENTRY
|
|
EngQueryLocalTime(
|
|
_Out_ PENG_TIME_FIELDS ptf)
|
|
{
|
|
LARGE_INTEGER liSystemTime, liLocalTime;
|
|
NT_ASSERT(ptf != NULL);
|
|
|
|
/* Query the system time */
|
|
KeQuerySystemTime(&liSystemTime);
|
|
|
|
/* Convert it to local time */
|
|
ExSystemTimeToLocalTime(&liSystemTime, &liLocalTime);
|
|
|
|
/* Convert the local time into time fields
|
|
(note that ENG_TIME_FIELDS is identical to TIME_FIELDS) */
|
|
RtlTimeToTimeFields(&liLocalTime, (PTIME_FIELDS)ptf);
|
|
}
|
|
|
|
ULONG
|
|
APIENTRY
|
|
EngQueryPalette(
|
|
IN HPALETTE hPal,
|
|
OUT ULONG *piMode,
|
|
IN ULONG cColors,
|
|
OUT ULONG *pulColors)
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_21t3.htm
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
DWORD
|
|
APIENTRY
|
|
EngSetPrinterData(
|
|
IN HANDLE hPrinter,
|
|
IN LPWSTR pType,
|
|
IN DWORD dwType,
|
|
IN LPBYTE lpbPrinterData,
|
|
IN DWORD cjPrinterData)
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_8drb.htm
|
|
EngSetLastError(ERROR_NOT_SUPPORTED);
|
|
return 0;
|
|
}
|
|
|
|
BOOL
|
|
APIENTRY
|
|
EngStrokeAndFillPath(
|
|
IN SURFOBJ *pso,
|
|
IN PATHOBJ *ppo,
|
|
IN CLIPOBJ *pco,
|
|
IN XFORMOBJ *pxo,
|
|
IN BRUSHOBJ *pboStroke,
|
|
IN LINEATTRS *plineattrs,
|
|
IN BRUSHOBJ *pboFill,
|
|
IN POINTL *pptlBrushOrg,
|
|
IN MIX mixFill,
|
|
IN FLONG flOptions)
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_2xwn.htm
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
BOOL
|
|
APIENTRY
|
|
EngStrokePath(
|
|
IN SURFOBJ *pso,
|
|
IN PATHOBJ *ppo,
|
|
IN CLIPOBJ *pco,
|
|
IN XFORMOBJ *pxo,
|
|
IN BRUSHOBJ *pbo,
|
|
IN POINTL *pptlBrushOrg,
|
|
IN LINEATTRS *plineattrs,
|
|
IN MIX mix)
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_4yaw.htm
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
INT
|
|
APIENTRY
|
|
EngWideCharToMultiByte(
|
|
IN UINT CodePage,
|
|
IN LPWSTR WideCharString,
|
|
IN INT BytesInWideCharString,
|
|
OUT LPSTR MultiByteString,
|
|
IN INT BytesInMultiByteString)
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_35wn.htm
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
BOOL
|
|
APIENTRY
|
|
EngWritePrinter(
|
|
IN HANDLE hPrinter,
|
|
IN LPVOID pBuf,
|
|
IN DWORD cbBuf,
|
|
OUT LPDWORD pcWritten)
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_9v6v.htm
|
|
EngSetLastError(ERROR_NOT_SUPPORTED);
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
ULONG
|
|
APIENTRY
|
|
FONTOBJ_cGetAllGlyphHandles(
|
|
IN FONTOBJ *FontObj,
|
|
IN HGLYPH *Glyphs)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
ULONG
|
|
APIENTRY
|
|
FONTOBJ_cGetGlyphs(
|
|
IN FONTOBJ *FontObj,
|
|
IN ULONG Mode,
|
|
IN ULONG NumGlyphs,
|
|
IN HGLYPH *GlyphHandles,
|
|
IN PVOID *OutGlyphs)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
IFIMETRICS*
|
|
APIENTRY
|
|
FONTOBJ_pifi(IN FONTOBJ *FontObj)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return NULL;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
_Ret_opt_bytecount_(*pcjFile)
|
|
ENGAPI
|
|
PVOID
|
|
APIENTRY
|
|
FONTOBJ_pvTrueTypeFontFile(
|
|
_In_ FONTOBJ *pfo,
|
|
_Out_ ULONG *pcjFile)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return NULL;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
XFORMOBJ*
|
|
APIENTRY
|
|
FONTOBJ_pxoGetXform(IN FONTOBJ *FontObj)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return NULL;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
VOID
|
|
APIENTRY
|
|
FONTOBJ_vGetInfo(
|
|
IN FONTOBJ *FontObj,
|
|
IN ULONG InfoSize,
|
|
OUT PFONTINFO FontInfo)
|
|
{
|
|
UNIMPLEMENTED;
|
|
}
|
|
|
|
LONG
|
|
APIENTRY
|
|
HT_ComputeRGBGammaTable(
|
|
IN USHORT GammaTableEntries,
|
|
IN USHORT GammaTableType,
|
|
IN USHORT RedGamma,
|
|
IN USHORT GreenGamma,
|
|
IN USHORT BlueGamma,
|
|
OUT LPBYTE pGammaTable)
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_9dpj.htm
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
LONG
|
|
APIENTRY
|
|
HT_Get8BPPFormatPalette(
|
|
OUT LPPALETTEENTRY pPaletteEntry,
|
|
IN USHORT RedGamma,
|
|
IN USHORT GreenGamma,
|
|
IN USHORT BlueGamma)
|
|
{
|
|
// www.osr.com/ddk/graphics/gdifncs_8kvb.htm
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
ULONG
|
|
APIENTRY
|
|
EngDitherColor(
|
|
IN HDEV hdev,
|
|
IN ULONG iMode,
|
|
IN ULONG rgb,
|
|
OUT ULONG *pul)
|
|
{
|
|
*pul = 0;
|
|
return DCR_SOLID;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
HANDLE
|
|
APIENTRY
|
|
BRUSHOBJ_hGetColorTransform(
|
|
IN BRUSHOBJ *Brush)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return NULL;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
EngDeleteFile(
|
|
IN LPWSTR FileName)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
EngGetPrinterDriver(
|
|
IN HANDLE Printer,
|
|
IN LPWSTR Environment,
|
|
IN DWORD Level,
|
|
OUT BYTE *DrvInfo,
|
|
IN DWORD Buf,
|
|
OUT DWORD *Needed)
|
|
{
|
|
EngSetLastError(ERROR_NOT_SUPPORTED);
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
ULONG
|
|
APIENTRY
|
|
EngHangNotification(
|
|
IN HDEV Dev,
|
|
IN PVOID Reserved)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return EHN_ERROR;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
EngLpkInstalled(VOID)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
EngPlgBlt(
|
|
IN SURFOBJ *Dest,
|
|
IN SURFOBJ *Source,
|
|
IN SURFOBJ *Mask,
|
|
IN CLIPOBJ *Clip,
|
|
IN XLATEOBJ *Xlate,
|
|
IN COLORADJUSTMENT *ColorAdjustment,
|
|
IN POINTL *BrusOrigin,
|
|
IN POINTFIX *DestPoints,
|
|
IN RECTL *SourceRect,
|
|
IN POINTL *MaskPoint,
|
|
IN ULONG Mode)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
LARGE_INTEGER
|
|
APIENTRY
|
|
EngQueryFileTimeStamp(IN LPWSTR FileName)
|
|
{
|
|
LARGE_INTEGER FileTime;
|
|
FileTime.QuadPart = 0;
|
|
UNIMPLEMENTED;
|
|
return FileTime;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
FD_GLYPHSET *
|
|
APIENTRY
|
|
FONTOBJ_pfdg(
|
|
IN FONTOBJ *FontObj)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return NULL;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
_Ret_opt_bytecount_(*pcjTable)
|
|
ENGAPI
|
|
PBYTE
|
|
APIENTRY
|
|
FONTOBJ_pjOpenTypeTablePointer(
|
|
_In_ FONTOBJ *pfo,
|
|
_In_ ULONG ulTag,
|
|
_Out_ ULONG *pcjTable)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return NULL;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
PFD_GLYPHATTR
|
|
APIENTRY
|
|
FONTOBJ_pQueryGlyphAttrs(
|
|
IN FONTOBJ *FontObj,
|
|
IN ULONG Mode)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return NULL;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
LPWSTR
|
|
APIENTRY
|
|
FONTOBJ_pwszFontFilePaths(
|
|
IN FONTOBJ *FontObj,
|
|
OUT ULONG *PathLength)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return NULL;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
LONG
|
|
APIENTRY
|
|
HT_Get8BPPMaskPalette(
|
|
IN OUT LPPALETTEENTRY PaletteEntry,
|
|
IN BOOL Use8BPPMaskPal,
|
|
IN BYTE CMYMask,
|
|
IN USHORT RedGamma,
|
|
IN USHORT GreenGamma,
|
|
IN USHORT BlueGamma)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiAnyLinkedFonts(VOID)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiEnableEudc(BOOL enable)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiAddRemoteFontToDC(
|
|
IN HDC hdc,
|
|
IN PVOID pvBuffer,
|
|
IN ULONG cjBuffer,
|
|
IN OPTIONAL PUNIVERSAL_FONT_ID pufi)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiRemoveMergeFont(
|
|
IN HDC hdc,
|
|
IN UNIVERSAL_FONT_ID *pufi)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiAddRemoteMMInstanceToDC(
|
|
IN HDC hdc,
|
|
IN DOWNLOADDESIGNVECTOR *pddv,
|
|
IN ULONG cjDDV)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiFontIsLinked(IN HDC hdc)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiCheckBitmapBits(
|
|
IN HDC hdc,
|
|
IN HANDLE hColorTransform,
|
|
IN PVOID pvBits,
|
|
IN ULONG bmFormat,
|
|
IN DWORD dwWidth,
|
|
IN DWORD dwHeight,
|
|
IN DWORD dwStride,
|
|
OUT PBYTE paResults)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
HBITMAP
|
|
APIENTRY
|
|
NtGdiClearBitmapAttributes(
|
|
IN HBITMAP hbm,
|
|
IN DWORD dwFlags)
|
|
{
|
|
if ( dwFlags & SC_BB_STOCKOBJ )
|
|
{
|
|
if (GDIOBJ_ConvertFromStockObj((HGDIOBJ*)&hbm))
|
|
{
|
|
return hbm;
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiGetUFI(
|
|
IN HDC hdc,
|
|
OUT PUNIVERSAL_FONT_ID pufi,
|
|
OUT OPTIONAL DESIGNVECTOR *pdv,
|
|
OUT ULONG *pcjDV,
|
|
OUT ULONG *pulBaseCheckSum,
|
|
OUT FLONG *pfl)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
ULONG
|
|
APIENTRY
|
|
NtGdiColorCorrectPalette(
|
|
IN HDC hdc,
|
|
IN HPALETTE hpal,
|
|
IN ULONG FirstEntry,
|
|
IN ULONG NumberOfEntries,
|
|
IN OUT PALETTEENTRY *ppalEntry,
|
|
IN ULONG Command)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
HANDLE
|
|
APIENTRY
|
|
NtGdiCreateColorTransform(
|
|
IN HDC hdc,
|
|
IN LPLOGCOLORSPACEW pLogColorSpaceW,
|
|
IN OPTIONAL PVOID pvSrcProfile,
|
|
IN ULONG cjSrcProfile,
|
|
IN OPTIONAL PVOID pvDestProfile,
|
|
IN ULONG cjDestProfile,
|
|
IN OPTIONAL PVOID pvTargetProfile,
|
|
IN ULONG cjTargetProfile)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return NULL;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiComputeXformCoefficients(IN HDC hdc)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiConsoleTextOut(
|
|
IN HDC hdc,
|
|
IN POLYTEXTW *lpto,
|
|
IN UINT nStrings,
|
|
IN RECTL *prclBounds)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiDeleteColorTransform(
|
|
IN HDC hdc,
|
|
IN HANDLE hColorTransform)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
ULONG
|
|
APIENTRY
|
|
NtGdiGetPerBandInfo(
|
|
IN HDC hdc,
|
|
IN OUT PERBANDINFO *ppbi)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiDoBanding(
|
|
IN HDC hdc,
|
|
IN BOOL bStart,
|
|
OUT POINTL *pptl,
|
|
OUT PSIZE pSize)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiEnumFontChunk(
|
|
IN HDC hdc,
|
|
IN ULONG_PTR idEnum,
|
|
IN ULONG cjEfdw,
|
|
OUT ULONG *pcjEfdw,
|
|
OUT PENUMFONTDATAW pefdw)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiEnumFontClose(
|
|
IN ULONG_PTR idEnum)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
ULONG_PTR
|
|
APIENTRY
|
|
NtGdiEnumFontOpen(
|
|
IN HDC hdc,
|
|
IN ULONG iEnumType,
|
|
IN FLONG flWin31Compat,
|
|
IN ULONG cwchMax,
|
|
IN OPTIONAL LPWSTR pwszFaceName,
|
|
IN ULONG lfCharSet,
|
|
OUT ULONG *pulCount)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiEudcLoadUnloadLink(
|
|
IN OPTIONAL LPCWSTR pBaseFaceName,
|
|
IN UINT cwcBaseFaceName,
|
|
IN LPCWSTR pEudcFontPath,
|
|
IN UINT cwcEudcFontPath,
|
|
IN INT iPriority,
|
|
IN INT iFontLinkType,
|
|
IN BOOL bLoadLin)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiForceUFIMapping(
|
|
IN HDC hdc,
|
|
IN PUNIVERSAL_FONT_ID pufi)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
NTSTATUS
|
|
APIENTRY
|
|
NtGdiFullscreenControl(
|
|
IN FULLSCREENCONTROL FullscreenCommand,
|
|
IN PVOID FullscreenInput,
|
|
IN DWORD FullscreenInputLength,
|
|
OUT PVOID FullscreenOutput,
|
|
IN OUT PULONG FullscreenOutputLength)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiGetCharWidthInfo(
|
|
IN HDC hdc,
|
|
OUT PCHWIDTHINFO pChWidthInfo)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
ULONG_PTR
|
|
APIENTRY
|
|
NtGdiGetColorSpaceforBitmap(
|
|
IN HBITMAP hsurf)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiGetETM(
|
|
IN HDC hdc,
|
|
OUT EXTTEXTMETRIC *petm)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
ULONG
|
|
APIENTRY
|
|
NtGdiGetEudcTimeStampEx(
|
|
IN OPTIONAL LPWSTR lpBaseFaceName,
|
|
IN ULONG cwcBaseFaceName,
|
|
IN BOOL bSystemTimeStamp)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiInitSpool(VOID)
|
|
{
|
|
EngSetLastError(ERROR_NOT_SUPPORTED);
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
INT
|
|
APIENTRY
|
|
NtGdiQueryFonts(
|
|
OUT PUNIVERSAL_FONT_ID pufiFontList,
|
|
IN ULONG nBufferSize,
|
|
OUT PLARGE_INTEGER pTimeStamp)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
INT
|
|
APIENTRY
|
|
NtGdiGetSpoolMessage(
|
|
DWORD u1,
|
|
DWORD u2,
|
|
DWORD u3,
|
|
DWORD u4)
|
|
{
|
|
/* FIXME: The prototypes */
|
|
EngSetLastError(ERROR_NOT_SUPPORTED);
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
DWORD
|
|
APIENTRY
|
|
NtGdiGetGlyphIndicesWInternal(
|
|
IN HDC hdc,
|
|
IN OPTIONAL LPWSTR pwc,
|
|
IN INT cwc,
|
|
OUT OPTIONAL LPWORD pgi,
|
|
IN DWORD iMode,
|
|
IN BOOL bSubset)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
INT
|
|
APIENTRY
|
|
NtGdiGetLinkedUFIs(
|
|
IN HDC hdc,
|
|
OUT OPTIONAL PUNIVERSAL_FONT_ID pufiLinkedUFIs,
|
|
IN INT BufferSize)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiGetMonitorID(
|
|
IN HDC hdc,
|
|
IN DWORD dwSize,
|
|
OUT LPWSTR pszMonitorID)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiDrawStream(
|
|
IN HDC hdcDst,
|
|
IN ULONG cjIn,
|
|
IN VOID *pvIn)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiUpdateTransform(IN HDC hdc)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
ULONG
|
|
APIENTRY
|
|
NtGdiQueryFontAssocInfo(
|
|
IN HDC hdc)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
UINT
|
|
APIENTRY
|
|
NtGdiGetStringBitmapW(
|
|
IN HDC hdc,
|
|
IN LPWSTR pwsz,
|
|
IN UINT cwc,
|
|
OUT BYTE *lpSB,
|
|
IN UINT cj)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiRemoveFontResourceW(
|
|
IN WCHAR *pwszFiles,
|
|
IN ULONG cwc,
|
|
IN ULONG cFiles,
|
|
IN ULONG fl,
|
|
IN DWORD dwPidTid,
|
|
IN OPTIONAL DESIGNVECTOR *pdv)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiPolyTextOutW(
|
|
IN HDC hdc,
|
|
IN POLYTEXTW *pptw,
|
|
IN UINT cStr,
|
|
IN DWORD dwCodePage)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
NTSTATUS
|
|
APIENTRY
|
|
NtGdiGetStats(
|
|
IN HANDLE hProcess,
|
|
IN INT iIndex,
|
|
IN INT iPidType,
|
|
OUT PVOID pResults,
|
|
IN UINT cjResultSize)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return STATUS_NOT_IMPLEMENTED;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
INT
|
|
APIENTRY
|
|
NtGdiSetupPublicCFONT(
|
|
IN HDC hdc,
|
|
IN OPTIONAL HFONT hf,
|
|
IN ULONG ulAve)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiGetEmbUFI(
|
|
IN HDC hdc,
|
|
OUT PUNIVERSAL_FONT_ID pufi,
|
|
OUT OPTIONAL DESIGNVECTOR *pdv,
|
|
OUT ULONG *pcjDV,
|
|
OUT ULONG *pulBaseCheckSum,
|
|
OUT FLONG *pfl,
|
|
OUT KERNEL_PVOID *embFontID)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiGetUFIPathname(
|
|
IN PUNIVERSAL_FONT_ID pufi,
|
|
OUT OPTIONAL ULONG* pcwc,
|
|
OUT OPTIONAL LPWSTR pwszPathname,
|
|
OUT OPTIONAL ULONG* pcNumFiles,
|
|
IN FLONG fl,
|
|
OUT OPTIONAL BOOL *pbMemFont,
|
|
OUT OPTIONAL ULONG *pcjView,
|
|
OUT OPTIONAL PVOID pvView,
|
|
OUT OPTIONAL BOOL *pbTTC,
|
|
OUT OPTIONAL ULONG *piTTC)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
ULONG
|
|
APIENTRY
|
|
NtGdiGetEmbedFonts(
|
|
VOID)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiChangeGhostFont(
|
|
IN KERNEL_PVOID *pfontID,
|
|
IN BOOL bLoad)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiAddEmbFontToDC(
|
|
IN HDC hdc,
|
|
IN VOID **pFontID)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiGetWidthTable(
|
|
IN HDC hdc,
|
|
IN ULONG cSpecial,
|
|
IN WCHAR *pwc,
|
|
IN ULONG cwc,
|
|
OUT USHORT *psWidth,
|
|
OUT OPTIONAL WIDTHDATA *pwd,
|
|
OUT FLONG *pflInfo)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiIcmBrushInfo(
|
|
IN HDC hdc,
|
|
IN HBRUSH hbrush,
|
|
IN OUT PBITMAPINFO pbmiDIB,
|
|
IN OUT PVOID pvBits,
|
|
IN OUT ULONG *pulBits,
|
|
OUT OPTIONAL DWORD *piUsage,
|
|
OUT OPTIONAL BOOL *pbAlreadyTran,
|
|
IN ULONG Command)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
ULONG
|
|
APIENTRY
|
|
NtGdiMakeFontDir(
|
|
IN FLONG flEmbed,
|
|
OUT PBYTE pjFontDir,
|
|
IN unsigned cjFontDir,
|
|
IN LPWSTR pwszPathname,
|
|
IN unsigned cjPathname)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiMonoBitmap(
|
|
IN HBITMAP hbm)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
HBITMAP
|
|
APIENTRY
|
|
NtGdiSetBitmapAttributes(
|
|
IN HBITMAP hbm,
|
|
IN DWORD dwFlags)
|
|
{
|
|
if ( dwFlags & SC_BB_STOCKOBJ )
|
|
{
|
|
if (GDIOBJ_ConvertToStockObj((HGDIOBJ*)&hbm))
|
|
{
|
|
return hbm;
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
ULONG
|
|
APIENTRY
|
|
NtGdiSetFontEnumeration(
|
|
IN ULONG ulType)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiSetFontXform(
|
|
IN HDC hdc,
|
|
IN DWORD dwxScale,
|
|
IN DWORD dwyScale)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiSetLinkedUFIs(
|
|
IN HDC hdc,
|
|
IN PUNIVERSAL_FONT_ID pufiLinks,
|
|
IN ULONG uNumUFIs)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiSetMagicColors(
|
|
IN HDC hdc,
|
|
IN PALETTEENTRY peMagic,
|
|
IN ULONG Index)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiUnloadPrinterDriver(
|
|
IN LPWSTR pDriverName,
|
|
IN ULONG cbDriverName)
|
|
{
|
|
EngSetLastError(ERROR_NOT_SUPPORTED);
|
|
return FALSE;
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
BOOL
|
|
APIENTRY
|
|
NtGdiUnmapMemFont(
|
|
IN PVOID pvView)
|
|
{
|
|
return TRUE;
|
|
}
|
|
|
|
BOOL
|
|
APIENTRY
|
|
EngControlSprites(
|
|
IN WNDOBJ *pwo,
|
|
IN FLONG fl)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
_Must_inspect_result_
|
|
_Ret_opt_bytecap_(cjSize)
|
|
ENGAPI
|
|
PVOID
|
|
APIENTRY
|
|
EngFntCacheAlloc(
|
|
_In_ ULONG ulFastCheckSum,
|
|
_In_ ULONG cjSize)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return NULL;
|
|
}
|
|
|
|
VOID
|
|
APIENTRY
|
|
EngFntCacheFault(
|
|
IN ULONG ulFastCheckSum,
|
|
IN ULONG iFaultMode)
|
|
{
|
|
UNIMPLEMENTED;
|
|
}
|
|
|
|
PVOID
|
|
APIENTRY
|
|
EngFntCacheLookUp(
|
|
IN ULONG FastCheckSum,
|
|
OUT PULONG pulSize)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return NULL;
|
|
}
|
|
|
|
BOOLEAN
|
|
APIENTRY
|
|
EngNineGrid(
|
|
IN SURFOBJ* pDestSurfaceObj,
|
|
IN SURFOBJ* pSourceSurfaceObj,
|
|
IN CLIPOBJ* pClipObj,
|
|
IN XLATEOBJ* pXlateObj,
|
|
IN RECTL* prclSource,
|
|
IN RECTL* prclDest,
|
|
PVOID pvUnknown1,
|
|
PVOID pvUnknown2,
|
|
DWORD dwReserved)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return FALSE;
|
|
}
|
|
|
|
/* EOF */
|