finished win32k skeleton

svn path=/trunk/; revision=601
This commit is contained in:
Rex Jolliff 1999-07-23 19:57:18 +00:00
parent b3995a1493
commit c69899317f
23 changed files with 1161 additions and 266 deletions

View file

@ -18,6 +18,9 @@ HBITMAP W32kCreateBitmap(INT Width,
UINT Planes,
UINT BitsPerPel,
CONST VOID *Bits);
HBITMAP W32kCreateCompatibleBitmap(HDC hDC,
INT Width,
INT Height);
HBITMAP W32kCreateBitmapIndirect(CONST BITMAP *BM);
HBITMAP W32kCreateDIBitmap(HDC hDC,
CONST BITMAPINFOHEADER *bmih,

View file

@ -122,7 +122,12 @@ HDC STDCALL W32kCreateDC(LPCWSTR Driver,
LPCWSTR Device,
LPCWSTR Output,
CONST PDEVMODEW InitData);
HDC STDCALL W32kCreateIC(LPCWSTR Driver,
LPCWSTR Device,
LPCWSTR Output,
CONST PDEVMODEW DevMode);
BOOL STDCALL W32kDeleteDC(HDC hDC);
BOOL STDCALL W32kDeleteObject(HGDIOBJ hObject);
INT STDCALL W32kDrawEscape(HDC hDC,
INT nEscape,
INT cbInput,
@ -145,9 +150,14 @@ BOOL STDCALL W32kGetCurrentPositionEx(HDC hDC, LPPOINT currentPosition);
BOOL STDCALL W32kGetDCOrgEx(HDC hDC, LPPOINT Point);
INT STDCALL W32kGetDeviceCaps(HDC hDC, INT Index);
INT STDCALL W32kGetMapMode(HDC hDC);
INT STDCALL W32kGetObject(HGDIOBJ hGDIObj,
INT BufSize,
LPVOID Object);
DWORD STDCALL W32kGetObjectType(HGDIOBJ hGDIObj);
INT STDCALL W32kGetPolyFillMode(HDC hDC);
INT STDCALL W32kGetRelAbs(HDC hDC);
INT STDCALL W32kGetROP2(HDC hDC);
HGDIOBJ STDCALL W32kGetStockObject(INT Object);
INT STDCALL W32kGetStretchBltMode(HDC hDC);
COLORREF STDCALL W32kGetTextColor(HDC hDC);
UINT STDCALL W32kGetTextAlign(HDC hDC);

View file

@ -0,0 +1,53 @@
#ifndef __WIN32K_ICM_H
#define __WIN32K_ICM_H
BOOL W32kCheckColorsInGamut(HDC hDC,
LPVOID RGBTriples,
LPVOID Buffer,
UINT Count);
BOOL W32kColorMatchToTarget(HDC hDC,
HDC hDCTarget,
DWORD Action);
HCOLORSPACE W32kCreateColorSpace(LPLOGCOLORSPACE LogColorSpace);
BOOL W32kDeleteColorSpace(HCOLORSPACE hColorSpace);
INT W32kEnumICMProfiles(HDC hDC,
ICMENUMPROC EnumICMProfilesFunc,
LPARAM lParam);
HCOLORSPACE W32kGetColorSpace(HDC hDC);
BOOL W32kGetDeviceGammaRamp(HDC hDC,
LPVOID Ramp);
BOOL W32kGetICMProfile(HDC hDC,
LPDWORD NameSize,
LPWSTR Filename);
BOOL W32kGetLogColorSpace(HCOLORSPACE hColorSpace,
LPLOGCOLORSPACE Buffer,
DWORD Size);
HCOLORSPACE W32kSetColorSpace(HDC hDC,
HCOLORSPACE hColorSpace);
BOOL W32kSetDeviceGammaRamp(HDC hDC,
LPVOID Ramp);
INT W32kSetICMMode(HDC hDC,
INT EnableICM);
BOOL W32kSetICMProfile(HDC hDC,
LPWSTR Filename);
BOOL W32kUpdateICMRegKey(DWORD Reserved,
LPWSTR CMID,
LPWSTR Filename,
UINT Command);
#endif

View file

@ -7,17 +7,17 @@ HENHMETAFILE W32kCloseEnhMetaFile(HDC hDC);
HMETAFILE W32kCloseMetaFile(HDC hDC);
HENHMETAFILE W32kCopyEnhMetaFile(HENHMETAFILE Src,
LPCTSTR File);
LPCWSTR File);
HMETAFILE W32kCopyMetaFile(HMETAFILE Src,
LPCTSTR File);
LPCWSTR File);
HDC W32kCreateEnhMetaFile(HDC hDCRef,
LPCTSTR File,
LPCWSTR File,
CONST LPRECT Rect,
LPCTSTR Description);
LPCWSTR Description);
HDC W32kCreateMetaFile(LPCTSTR File);
HDC W32kCreateMetaFile(LPCWSTR File);
BOOL W32kDeleteEnhMetaFile(HENHMETAFILE emf);
@ -38,8 +38,63 @@ BOOL W32kGdiComment(HDC hDC,
UINT Size,
CONST LPBYTE Data);
HENHMETAFILE W32kGetEnhMetaFile(LPCTSTR MetaFile);
HENHMETAFILE W32kGetEnhMetaFile(LPCWSTR MetaFile);
UINT W32kGetEnhMetaFileBits(HENHMETAFILE hemf,
UINT BufSize,
LPBYTE Buffer);
UINT W32kGetEnhMetaFileDescription(HENHMETAFILE hemf,
UINT BufSize,
LPWSTR Description);
UINT W32kGetEnhMetaFileHeader(HENHMETAFILE hemf,
UINT BufSize,
LPENHMETAHEADER emh);
UINT W32kGetEnhMetaFilePaletteEntries(HENHMETAFILE hemf,
UINT Entries,
LPPALETTEENTRY pe);
HMETAFILE W32kGetMetaFile(LPCWSTR MetaFile);
UINT W32kGetMetaFileBitsEx(HMETAFILE hmf,
UINT Size,
LPVOID Data);
UINT W32kGetWinMetaFileBits(HENHMETAFILE hemf,
UINT BufSize,
LPBYTE Buffer,
INT MapMode,
HDC Ref);
BOOL W32kPlayEnhMetaFile(HDC hDC,
HENHMETAFILE hemf,
CONST PRECT Rect);
BOOL W32kPlayEnhMetaFileRecord(HDC hDC,
LPHANDLETABLE Handletable,
CONST ENHMETARECORD *EnhMetaRecord,
UINT Handles);
BOOL W32kPlayMetaFile(HDC hDC,
HMETAFILE hmf);
BOOL W32kPlayMetaFileRecord(HDC hDC,
LPHANDLETABLE Handletable,
LPMETARECORD MetaRecord,
UINT Handles);
HENHMETAFILE W32kSetEnhMetaFileBits(UINT BufSize,
CONST PBYTE Data);
HMETAFILE W32kSetMetaFileBitsEx(UINT Size,
CONST PBYTE Data);
HENHMETAFILE W32kSetWinMetaFileBits(UINT BufSize,
CONST PBYTE Buffer,
HDC Ref,
CONST METAFILEPICT *mfp);
#endif

View file

@ -0,0 +1,56 @@
#ifndef __WIN32K_PAINT_H
#define __WIN32K_PAINT_H
BOOL W32kGdiFlush(VOID);
DWORD W32kGdiGetBatchLimit(VOID);
DWORD W32kGdiSetBatchLimit(DWORD Limit);
UINT W32kGetBoundsRect(HDC hDC,
LPRECT Bounds,
UINT Flags);
COLORREF W32kSetBkColor(HDC hDC,
COLORREF Color);
UINT W32kSetBoundsRect(HDC hDC,
CONST PRECT Bounds,
UINT Flags);
BOOL W32kAbortPath(HDC hDC);
BOOL W32kBeginPath(HDC hDC);
BOOL W32kCloseFigure(HDC hDC);
BOOL W32kEndPath(HDC hDC);
BOOL W32kFillPath(HDC hDC);
BOOL W32kFlattenPath(HDC hDC);
BOOL W32kGetMiterLimit(HDC hDC, PFLOAT Limit);
INT W32kGetPath(HDC hDC,
PPOINT Points,
PBYTE Types,
INT Size);
HRGN W32kPathToRegion(HDC hDC);
BOOL W32kSetMiterLimit(HDC hDC,
FLOAT NewLimit,
PFLOAT OldLimit);
BOOL W32kStrokeAndFillPath(HDC hDC);
BOOL W32kStrokePath(HDC hDC);
BOOL W32kWidenPath(HDC hDC);
#endif

View file

@ -0,0 +1,18 @@
#ifndef __WIN32K_PEN_H
#define __WIN32K_PEN_H
HPEN W32kCreatePen(INT PenStyle,
INT Width,
COLORREF Color);
HPEN W32kCreatePenIndirect(CONST PLOGPEN lgpn);
HPEN W32kExtCreatePen(DWORD PenStyle,
DWORD Width,
CONST PLOGBRUSH lb,
DWORD StyleCount,
CONST PDWORD Style);
#endif

View file

@ -0,0 +1,32 @@
#ifndef __WIN32K_PRINT_H
#define __WIN32K_PRINT_H
INT W32kAbortDoc(HDC hDC);
INT W32kEndDoc(HDC hDC);
INT W32kEndPage(HDC hDC);
INT W32kEscape(HDC hDC,
INT Escape,
INT InSize,
LPCSTR InData,
LPVOID OutData);
INT W32kExtEscape(HDC hDC,
INT Escape,
INT InSize,
LPCSTR InData,
INT OutSize,
LPSTR OutData);
INT W32kSetAbortProc(HDC hDC,
ABORTPROC AbortProc);
INT W32kStartDoc(HDC hDC,
CONST PDOCINFO di);
INT W32kStartPage(HDC hDC);
#endif

View file

@ -0,0 +1,84 @@
#ifndef __WIN32K_REGION_H
#define __WIN32K_REGION_H
INT W32kCombineRgn(HRGN hDest,
HRGN hSrc1,
HRGN hSrc2,
INT CombineMode);
HRGN W32kCreateEllipticRgn(INT LeftRect,
INT TopRect,
INT RightRect,
INT BottomRect);
HRGN W32kCreateEllipticRgnIndirect(CONST PRECT rc);
HRGN W32kCreatePolygonRgn(CONST PPOINT pt,
INT Count,
INT PolyFillMode);
HRGN W32kCreatePolyPolygonRgn(CONST PPOINT pt,
CONST PINT PolyCounts,
INT Count,
INT PolyFillMode);
HRGN W32kCreateRectRgn(INT LeftRect,
INT TopRect,
INT RightRect,
INT BottomRect);
HRGN W32kCreateRectRgnIndirect(CONST PRECT rc);
HRGN W32kCreateRoundRectRgn(INT LeftRect,
INT TopRect,
INT RightRect,
INT BottomRect,
INT WidthEllipse,
INT HeightEllipse);
BOOL W32kEqualRgn(HRGN hSrcRgn1,
HRGN hSrcRgn2);
HRGN W32kExtCreateRegion(CONST PXFORM Xform,
DWORD Count,
CONST PRGNDATA RgnData);
BOOL W32kFillRgn(HDC hDC,
HRGN hRgn,
HBRUSH hBrush);
BOOL W32kFrameRgn(HDC hDC,
HRGN hRgn,
HBRUSH hBrush,
INT Width,
INT Height);
INT W32kGetRgnBox(HRGN hRgn,
LPRECT Rect);
BOOL W32kInvertRgn(HDC hDC,
HRGN hRgn);
INT W32kOffsetRgn(HRGN hRgn,
INT XOffset,
INT YOffset);
BOOL W32kPaintRgn(HDC hDC,
HRGN hRgn);
BOOL W32kPtInRegion(HRGN hRgn,
INT X,
INT Y);
BOOL W32kRectInRegion(HRGN hRgn,
CONST LPRECT rc);
BOOL W32kSetRectRgn(HRGN hRgn,
INT LeftRect,
INT TopRect,
INT RightRect,
INT BottomRect);
#endif

View file

@ -2,7 +2,7 @@
#ifndef __WIN32K_TEXT_H
#define __WIN32K_TEXT_H
int W32kAddFontResource(LPCTSTR Filename);
int W32kAddFontResource(LPCWSTR Filename);
HFONT W32kCreateFont(int Height,
int Width,
@ -17,17 +17,17 @@ HFONT W32kCreateFont(int Height,
DWORD ClipPrecision,
DWORD Quality,
DWORD PitchAndFamily,
LPCTSTR Face);
LPCWSTR Face);
HFONT W32kCreateFontIndirect(CONST LPLOGFONT lf);
BOOL W32kCreateScalableFontResource(DWORD Hidden,
LPCTSTR FontRes,
LPCTSTR FontFile,
LPCTSTR CurrentPath);
LPCWSTR FontRes,
LPCWSTR FontFile,
LPCWSTR CurrentPath);
int W32kEnumFontFamilies(HDC hDC,
LPCTSTR Family,
LPCWSTR Family,
FONTENUMPROC EnumFontFamProc,
LPARAM lParam);
@ -38,7 +38,7 @@ int W32kEnumFontFamiliesEx(HDC hDC,
DWORD Flags);
int W32kEnumFonts(HDC hDC,
LPCTSTR FaceName,
LPCWSTR FaceName,
FONTENUMPROC FontFunc,
LPARAM lParam);
@ -47,7 +47,7 @@ BOOL W32kExtTextOut(HDC hDC,
int Y,
UINT Options,
CONST LPRECT rc,
LPCTSTR String,
LPCWSTR String,
UINT Count,
CONST LPINT Dx);
@ -65,7 +65,7 @@ BOOL W32kGetCharABCWidthsFloat(HDC hDC,
LPABCFLOAT abcF);
DWORD W32kGetCharacterPlacement(HDC hDC,
LPCTSTR String,
LPCWSTR String,
int Count,
int MaxExtent,
LPGCP_RESULTS Results,
@ -107,8 +107,14 @@ UINT W32kGetOutlineTextMetrics(HDC hDC,
BOOL W32kGetRasterizerCaps(LPRASTERIZER_STATUS rs,
UINT Size);
UINT W32kGetTextCharset(HDC hDC);
UINT W32kGetTextCharsetInfo(HDC hDC,
LPFONTSIGNATURE Sig,
DWORD Flags);
BOOL W32kGetTextExtentExPoint(HDC hDC,
LPCTSTR String,
LPCWSTR String,
int Count,
int MaxExtent,
LPINT Fit,
@ -116,18 +122,18 @@ BOOL W32kGetTextExtentExPoint(HDC hDC,
LPSIZE Size);
BOOL W32kGetTextExtentPoint(HDC hDC,
LPCTSTR String,
LPCWSTR String,
int Count,
LPSIZE Size);
BOOL W32kGetTextExtentPoint32(HDC hDC,
LPCTSTR String,
LPCWSTR String,
int Count,
LPSIZE Size);
int W32kGetTextFace(HDC hDC,
int Count,
LPTSTR FaceName);
LPWSTR FaceName);
BOOL W32kGetTextMetrics(HDC hDC,
LPTEXTMETRIC tm);
@ -136,7 +142,7 @@ BOOL W32kPolyTextOut(HDC hDC,
CONST LPPOLYTEXT txt,
int Count);
BOOL W32kRemoveFontResource(LPCTSTR FileName);
BOOL W32kRemoveFontResource(LPCWSTR FileName);
DWORD W32kSetMapperFlags(HDC hDC,
DWORD Flag);
@ -154,8 +160,12 @@ BOOL W32kSetTextJustification(HDC hDC,
BOOL W32kTextOut(HDC hDC,
int XStart,
int YStart,
LPCTSTR String,
LPCWSTR String,
int Count);
UINT W32kTranslateCharsetInfo(PDWORD Src,
LPCHARSETINFO CSI,
DWORD Flags);
#endif

View file

@ -6,6 +6,13 @@
#include <win32k/coord.h>
#include <win32k/dc.h>
#include <win32k/fillshap.h>
#include <win32k/icm.h>
#include <win32k/line.h>
#include <win32k/metafile.h>
#include <win32k/paint.h>
#include <win32k/pen.h>
#include <win32k/print.h>
#include <win32k/region.h>
#include <win32k/text.h>
#include <win32k/wingl.h>

View file

@ -0,0 +1,26 @@
#ifndef __WIN32K_WINGL_H
#define __WIN32K_WINGL_H
INT W32kChoosePixelFormat(HDC hDC,
CONST PPIXELFORMATDESCRIPTOR pfd);
INT W32kDescribePixelFormat(HDC hDC,
INT PixelFormat,
UINT BufSize,
PPIXELFORMATDESCRIPTOR pfd);
UINT W32kGetEnhMetaFilePixelFormat(HENHMETAFILE hEMF,
DWORD BufSize,
CONST PPIXELFORMATDESCRIPTOR pfd);
INT W32kGetPixelFormat(HDC hDC);
BOOL W32kSetPixelFormat(HDC hDC,
INT PixelFormat,
CONST PPIXELFORMATDESCRIPTOR pfd);
BOOL W32kSwapBuffers(HDC hDC);
#endif

View file

@ -11,46 +11,38 @@
#include <win32k/win32k.h>
/*
* WARNING: whoever you are, do NOT rely on the order of this table.
* I'll change it just to spite ya.
*/
SERVICE_TABLE W32kServiceTable[] =
{
#if 0
{?, (ULONG) W32kAbortDoc},
{?, (ULONG) W32kAbortPath},
#endif
{4, (ULONG) W32kAbortDoc},
{4, (ULONG) W32kAbortPath},
{4, (ULONG) W32kAddFontResource},
{24, (ULONG) W32kAngleArc},
{16, (ULONG) W32kAnimatePalette},
{36, (ULONG) W32kArc},
{36, (ULONG) W32kArcTo},
#if 0
{?, (ULONG) W32kBeginPath},
#endif
{4, (ULONG) W32kBeginPath},
{36, (ULONG) W32kBitBlt},
{4, (ULONG) W32kCancelDC},
#if 0
{?, (ULONG) W32kCheckColorsInGamut},
{?, (ULONG) W32kChoosePixelFormat},
#endif
{16, (ULONG) W32kCheckColorsInGamut},
{2, (ULONG) W32kChoosePixelFormat},
{36, (ULONG) W32kChord},
{4, (ULONG) W32kCloseEnhMetaFile},
#if 0
{?, (ULONG) W32kCloseFigure},
#endif
{4, (ULONG) W32kCloseFigure},
{4, (ULONG) W32kCloseMetaFile},
#if 0
{?, (ULONG) W32kColorMatchToTarget},
{?, (ULONG) W32kCombineRgn},
#endif
{12, (ULONG) W32kColorMatchToTarget},
{16, (ULONG) W32kCombineRgn},
{12, (ULONG) W32kCombineTransform},
{8, (ULONG) W32kCopyEnhMetaFile},
{8, (ULONG) W32kCopyMetaFile},
{20, (ULONG) W32kCreateBitmap},
{4, (ULONG) W32kCreateBitmapIndirect},
{4, (ULONG) W32kCreateBrushIndirect},
#if 0
{?, (ULONG) W32kCreateColorSpace},
{?, (ULONG) W32kCreateCompatibleBitmap},
#endif
{4, (ULONG) W32kCreateColorSpace},
{12, (ULONG) W32kCreateCompatibleBitmap},
{4, (ULONG) W32kCreateCompatableDC},
{16, (ULONG) W32kCreateDC},
{24, (ULONG) W32kCreateDIBitmap},
@ -58,103 +50,76 @@ SERVICE_TABLE W32kServiceTable[] =
{8, (ULONG) W32kCreateDIBPatternBrushPt},
{24, (ULONG) W32kCreateDIBSection},
{12, (ULONG) W32kCreateDiscardableBitmap},
#if 0
{?, (ULONG) W32kCreateEllipticRgn},
{?, (ULONG) W32kCreateEllipticRgnIndirect},
#endif
{16, (ULONG) W32kCreateEllipticRgn},
{4, (ULONG) W32kCreateEllipticRgnIndirect},
{16, (ULONG) W32kCreateEnhMetaFile},
{56, (ULONG) W32kCreateFont},
{4, (ULONG) W32kCreateFontIndirect},
{4, (ULONG) W32kCreateHalftonePalette},
{8, (ULONG) W32kCreateHatchBrush},
#if 0
{?, (ULONG) W32kCreateIC},
#endif
{16, (ULONG) W32kCreateIC},
{4, (ULONG) W32kCreateMetaFile},
{4, (ULONG) W32kCreatePalette},
{4, (ULONG) W32kCreatePatternBrush},
#if 0
{?, (ULONG) W32kCreatePen},
{?, (ULONG) W32kCreatePenIndirect},
{?, (ULONG) W32kCreatePolyPolygonRgn},
{?, (ULONG) W32kCreatePolygonRgn},
{?, (ULONG) W32kCreateRectRgn},
{?, (ULONG) W32kCreateRectRgnIndirect},
{?, (ULONG) W32kCreateRoundRectRgn},
#endif
{12, (ULONG) W32kCreatePen},
{4, (ULONG) W32kCreatePenIndirect},
{12, (ULONG) W32kCreatePolygonRgn},
{16, (ULONG) W32kCreatePolyPolygonRgn},
{16, (ULONG) W32kCreateRectRgn},
{4, (ULONG) W32kCreateRectRgnIndirect},
{24, (ULONG) W32kCreateRoundRectRgn},
{16, (ULONG) W32kCreateScalableFontResource},
{4, (ULONG) W32kCreateSolidBrush},
{12, (ULONG) W32kDPtoLP},
#if 0
{?, (ULONG) W32kDeleteColorSpace},
#endif
{4, (ULONG) W32kDeleteColorSpace},
{4, (ULONG) W32kDeleteDC},
{4, (ULONG) W32kDeleteEnhMetaFile},
{4, (ULONG) W32kDeleteMetaFile},
#if 0
{?, (ULONG) W32kDeleteObject},
{?, (ULONG) W32kDescribePixelFormat},
{?, (ULONG) W32kDeviceCapabilitiesEx},
#endif
{4, (ULONG) W32kDeleteObject},
{16, (ULONG) W32kDescribePixelFormat},
// FIXME: {?, (ULONG) W32kDeviceCapabilitiesEx},
{16, (ULONG) W32kDrawEscape},
{20, (ULONG) W32kEllipse},
#if 0
{?, (ULONG) W32kEndDoc},
{?, (ULONG) W32kEndPage},
{?, (ULONG) W32kEndPath},
#endif
{4, (ULONG) W32kEndDoc},
{4, (ULONG) W32kEndPage},
{4, (ULONG) W32kEndPath},
{20, (ULONG) W32kEnumEnhMetaFile},
{16, (ULONG) W32kEnumFontFamilies},
{20, (ULONG) W32kEnumFontFamiliesEx},
{16, (ULONG) W32kEnumFonts},
#if 0
{?, (ULONG) W32kEnumICMProfiles},
#endif
{12, (ULONG) W32kEnumICMProfiles},
{16, (ULONG) W32kEnumMetaFile},
{16, (ULONG) W32kEnumObjects},
#if 0
{?, (ULONG) W32kEqualRgn},
{?, (ULONG) W32kEscape},
#endif
{8, (ULONG) W32kEqualRgn},
{20, (ULONG) W32kEscape},
{20, (ULONG) W32kExcludeClipRect},
#if 0
{?, (ULONG) W32kExtCreatePen},
{?, (ULONG) W32kExtCreateRegion},
{?, (ULONG) W32kExtEscape},
#endif
{20, (ULONG) W32kExtCreatePen},
{12, (ULONG) W32kExtCreateRegion},
{24, (ULONG) W32kExtEscape},
{20, (ULONG) W32kExtFloodFill},
{12, (ULONG) W32kExtSelectClipRgn},
{32, (ULONG) W32kExtTextOut},
#if 0
{?, (ULONG) W32kFillPath},
{?, (ULONG) W32kFillRgn},
#endif
{4, (ULONG) W32kFillPath},
{12, (ULONG) W32kFillRgn},
{0, (ULONG) W32kFixBrushOrgEx},
#if 0
{?, (ULONG) W32kFlattenPath},
#endif
{4, (ULONG) W32kFlattenPath},
{16, (ULONG) W32kFloodFill},
#if 0
{?, (ULONG) W32kFrameRgn},
#endif
{20, (ULONG) W32kFrameRgn},
{12, (ULONG) W32kGdiComment},
#if 0
{?, (ULONG) W32kGdiFlush},
{?, (ULONG) W32kGdiGetBatchLimit},
{?, (ULONG) W32kGdiPlayDCScript},
{?, (ULONG) W32kGdiPlayJournal},
{?, (ULONG) W32kGdiPlayScript},
{?, (ULONG) W32kGdiSetBatchLimit},
#endif
{0, (ULONG) W32kGdiFlush},
{0, (ULONG) W32kGdiGetBatchLimit},
// FIXME: {?, (ULONG) W32kGdiPlayDCScript},
// FIXME: {?, (ULONG) W32kGdiPlayJournal},
// FIXME: {?, (ULONG) W32kGdiPlayScript},
// FIXME: {?, (ULONG) W32kGdiPlaySpoolStream},
{4, (ULONG) W32kGdiSetBatchLimit},
{4, (ULONG) W32kGetArcDirection},
{8, (ULONG) W32kGetAspectRatioFilterEx},
{12, (ULONG) W32kGetBitmapBits},
{8, (ULONG) W32kGetBitmapDimensionEx},
{4, (ULONG) W32kGetBkColor},
{4, (ULONG) W32kGetBkMode},
#if 0
{?, (ULONG) W32kGetBoundsRect},
#endif
{12, (ULONG) W32kGetBoundsRect},
{8, (ULONG) W32kGetBrushOrgEx},
{16, (ULONG) W32kGetCharABCWidths},
{16, (ULONG) W32kGetCharABCWidthsFloat},
@ -165,85 +130,55 @@ SERVICE_TABLE W32kServiceTable[] =
{8, (ULONG) W32kGetClipBox},
{4, (ULONG) W32kGetClipRgn},
{8, (ULONG) W32kGetColorAdjustment},
#if 0
{?, (ULONG) W32kGetColorSpace},
#endif
{4, (ULONG) W32kGetColorSpace},
{8, (ULONG) W32kGetCurrentObject},
{8, (ULONG) W32kGetCurrentPositionEx},
{8, (ULONG) W32kGetDCOrgEx},
{16, (ULONG) W32kGetDIBColorTable},
{28, (ULONG) W32kGetDIBits},
{8, (ULONG) W32kGetDeviceCaps},
#if 0
{?, (ULONG) W32kGetDeviceGammaRamp},
#endif
{8, (ULONG) W32kGetDeviceGammaRamp},
{4, (ULONG) W32kGetEnhMetaFile},
#if 0
{?, (ULONG) W32kGetEnhMetaFileBits},
{?, (ULONG) W32kGetEnhMetaFileDescription},
{?, (ULONG) W32kGetEnhMetaFileHeader},
{?, (ULONG) W32kGetEnhMetaFilePaletteEntries},
{?, (ULONG) W32kGetEnhMetaFilePixelFormat},
#endif
{12, (ULONG) W32kGetEnhMetaFileBits},
{12, (ULONG) W32kGetEnhMetaFileDescription},
{12, (ULONG) W32kGetEnhMetaFileHeader},
{12, (ULONG) W32kGetEnhMetaFilePaletteEntries},
{12, (ULONG) W32kGetEnhMetaFilePixelFormat},
{4, (ULONG) W32kGetFontLanguageInfo},
#if 0
{?, (ULONG) W32kGetFontResourceInfo},
#endif
// FIXME: {?, (ULONG) W32kGetFontResourceInfo},
{28, (ULONG) W32kGetGlyphOutline},
#if 0
{?, (ULONG) W32kGetGlyphOutlineWow},
#endif
// FIXME: {?, (ULONG) W32kGetGlyphOutlineWow},
{4, (ULONG) W32kGetGraphicsMode},
#if 0
{?, (ULONG) W32kGetICMProfile},
#endif
{12, (ULONG) W32kGetICMProfile},
{12, (ULONG) W32kGetKerningPairs},
#if 0
{?, (ULONG) W32kGetLogColorSpace},
#endif
{12, (ULONG) W32kGetLogColorSpace},
{4, (ULONG) W32kGetMapMode},
#if 0
{?, (ULONG) W32kGetMetaFileBitsEx},
{?, (ULONG) W32kGetMetaFile},
#endif
{4, (ULONG) W32kGetMetaFile},
{12, (ULONG) W32kGetMetaFileBitsEx},
{8, (ULONG) W32kGetMetaRgn},
#if 0
{?, (ULONG) W32kGetMiterLimit},
#endif
{8, (ULONG) W32kGetMiterLimit},
{8, (ULONG) W32kGetNearestColor},
{8, (ULONG) W32kGetNearestPaletteIndex},
#if 0
{?, (ULONG) W32kGetObject},
{?, (ULONG) W32kGetObjectType},
#endif
{12, (ULONG) W32kGetObject},
{4, (ULONG) W32kGetObjectType},
{12, (ULONG) W32kGetOutlineTextMetrics},
{16, (ULONG) W32kGetPaletteEntries},
#if 0
{?, (ULONG) W32kGetPath},
#endif
{16, (ULONG) W32kGetPath},
{4, (ULONG) W32kGetPixel},
#if 0
{?, (ULONG) W32kGetPixelFormat},
#endif
{4, (ULONG) W32kGetPixelFormat},
{4, (ULONG) W32kGetPolyFillMode},
{4, (ULONG) W32kGetROP2},
#if 0
{?, (ULONG) W32kGetRandomRgn},
#endif
// FIXME: {?, (ULONG) W32kGetRandomRgn},
{8, (ULONG) W32kGetRasterizerCaps},
{4, (ULONG) W32kGetRelAbs},
#if 0
{?, (ULONG) W32kGetRgnBox},
{?, (ULONG) W32kGetStockObject},
#endif
{8, (ULONG) W32kGetRgnBox},
{4, (ULONG) W32kGetStockObject},
{4, (ULONG) W32kGetStretchBltMode},
{16, (ULONG) W32kGetSystemPaletteEntries},
{4, (ULONG) W32kGetSystemPaletteUse},
{4, (ULONG) W32kGetTextAlign},
#if 0
{?, (ULONG) W32kGetTextCharset},
{?, (ULONG) W32kGetTextCharsetInfo},
#endif
{4, (ULONG) W32kGetTextCharset},
{12, (ULONG) W32kGetTextCharsetInfo},
{4, (ULONG) W32kGetTextColor},
{28, (ULONG) W32kGetTextExtentExPoint},
{16, (ULONG) W32kGetTextExtentPoint},
@ -252,41 +187,29 @@ SERVICE_TABLE W32kServiceTable[] =
{8, (ULONG) W32kGetTextMetrics},
{8, (ULONG) W32kGetViewportExtEx},
{8, (ULONG) W32kGetViewportOrgEx},
#if 0
{?, (ULONG) W32kGetWinMetaFileBits},
#endif
{20, (ULONG) W32kGetWinMetaFileBits},
{8, (ULONG) W32kGetWindowExtEx},
{8, (ULONG) W32kGetWindowOrgEx},
{8, (ULONG) W32kGetWorldTransform},
{20, (ULONG) W32kIntersectClipRect},
#if 0
{?, (ULONG) W32kInvertRgn},
#endif
{8, (ULONG) W32kInvertRgn},
{12, (ULONG) W32kLPtoDP},
{12, (ULONG) W32kLineTo},
{48, (ULONG) W32kMaskBlt},
{12, (ULONG) W32kModifyWorldTransform},
{16, (ULONG) W32kMoveToEx},
{12, (ULONG) W32kOffsetClipRgn},
#if 0
{?, (ULONG) W32kOffsetRgn},
#endif
{12, (ULONG) W32kOffsetRgn},
{16, (ULONG) W32kOffsetViewportOrgEx},
{16, (ULONG) W32kOffsetWindowOrgEx},
#if 0
{?, (ULONG) W32kPaintRgn},
#endif
{8, (ULONG) W32kPaintRgn},
{24, (ULONG) W32kPatBlt},
#if 0
{?, (ULONG) W32kPathToRegion},
#endif
{4, (ULONG) W32kPathToRegion},
{36, (ULONG) W32kPie},
#if 0
{?, (ULONG) W32kPlayEnhMetaFile},
{?, (ULONG) W32kPlayEnhMetaFileRecord},
{?, (ULONG) W32kPlayMetaFile},
{?, (ULONG) W32kPlayMetaFileRecord},
#endif
{12, (ULONG) W32kPlayEnhMetaFile},
{16, (ULONG) W32kPlayEnhMetaFileRecord},
{8, (ULONG) W32kPlayMetaFile},
{16, (ULONG) W32kPlayMetaFileRecord},
{40, (ULONG) W32kPlgBlt},
{12, (ULONG) W32kPolyBezier},
{12, (ULONG) W32kPolyBezierTo},
@ -297,14 +220,10 @@ SERVICE_TABLE W32kServiceTable[] =
{12, (ULONG) W32kPolyTextOut},
{12, (ULONG) W32kPolygon},
{16, (ULONG) W32kPolyPolygon},
#if 0
{?, (ULONG) W32kPtInRegion},
#endif
{12, (ULONG) W32kPtInRegion},
{12, (ULONG) W32kPtVisible},
{4, (ULONG) W32kRealizePalette},
#if 0
{?, (ULONG) W32kRectInRegion},
#endif
{8, (ULONG) W32kRectInRegion},
{8, (ULONG) W32kRectVisible},
{20, (ULONG) W32kRectangle},
{4, (ULONG) W32kRemoveFontResource},
@ -315,67 +234,43 @@ SERVICE_TABLE W32kServiceTable[] =
{4, (ULONG) W32kSaveDC},
{24, (ULONG) W32kScaleViewportExtEx},
{24, (ULONG) W32kScaleWindowExtEx},
#if 0
{?, (ULONG) W32kSelectBrushLocal},
#endif
// FIXME: {?, (ULONG) W32kSelectBrushLocal},
{8, (ULONG) W32kSelectClipPath},
{8, (ULONG) W32kSelectClipRgn},
#if 0
{?, (ULONG) W32kSelectFontLocal},
#endif
// FIXME: {?, (ULONG) W32kSelectFontLocal},
{8, (ULONG) W32kSelectObject},
{12, (ULONG) W32kSelectPalette},
#if 0
{?, (ULONG) W32kSetAbortProc},
#endif
{8, (ULONG) W32kSetAbortProc},
{8, (ULONG) W32kSetArcDirection},
{12, (ULONG) W32kSetBitmapBits},
{16, (ULONG) W32kSetBitmapDimensionEx},
#if 0
{?, (ULONG) W32kSetBkColor},
#endif
{8, (ULONG) W32kSetBkColor},
{8, (ULONG) W32kSetBkMode},
#if 0
{?, (ULONG) W32kSetBoundsRect},
#endif
{12, (ULONG) W32kSetBoundsRect},
{16, (ULONG) W32kSetBrushOrgEx},
{8, (ULONG) W32kSetColorAdjustment},
#if 0
{?, (ULONG) W32kSetColorSpace},
#endif
{8, (ULONG) W32kSetColorSpace},
{16, (ULONG) W32kSetDIBColorTable},
{28, (ULONG) W32kSetDIBits},
{48, (ULONG) W32kSetDIBitsToDevice},
#if 0
{?, (ULONG) W32kSetDeviceGammaRamp},
{?, (ULONG) W32kSetEnhMetaFileBits},
{?, (ULONG) W32kSetFontEnumeration},
#endif
{8, (ULONG) W32kSetDeviceGammaRamp},
{8, (ULONG) W32kSetEnhMetaFileBits},
// FIXME: {?, (ULONG) W32kSetFontEnumeration},
{8, (ULONG) W32kSetGraphicsMode},
#if 0
{?, (ULONG) W32kSetICMMode},
{?, (ULONG) W32kSetICMProfile},
#endif
{8, (ULONG) W32kSetICMMode},
{8, (ULONG) W32kSetICMProfile},
{8, (ULONG) W32kSetMapMode},
{8, (ULONG) W32kSetMapperFlags},
#if 0
{?, (ULONG) W32kSetMetaFileBitsEx},
#if 0
{8, (ULONG) W32kSetMetaFileBitsEx},
{4, (ULONG) W32kSetMetaRgn},
#endif
{?, (ULONG) W32kSetMiterLimit},
#endif
{12, (ULONG) W32kSetMiterLimit},
{16, (ULONG) W32kSetPaletteEntries},
{16, (ULONG) W32kSetPixel},
#if 0
{?, (ULONG) W32kSetPixelFormat},
#endif
{12, (ULONG) W32kSetPixelFormat},
{16, (ULONG) W32kSetPixelV},
{8, (ULONG) W32kSetPolyFillMode},
{8, (ULONG) W32kSetROP2},
#if 0
{?, (ULONG) W32kSetRectRgn},
#endif
{20, (ULONG) W32kSetRectRgn},
// {8, (ULONG) W32kSetRelAbs},
{8, (ULONG) W32kSetStretchBltMode},
{8, (ULONG) W32kSetSystemPaletteUse},
@ -384,34 +279,23 @@ SERVICE_TABLE W32kServiceTable[] =
{12, (ULONG) W32kSetTextJustification},
{16, (ULONG) W32kSetViewportExtEx},
{16, (ULONG) W32kSetViewportOrgEx},
#if 0
{?, (ULONG) W32kSetWinMetaFileBits},
#endif
{4, (ULONG) W32kSetWinMetaFileBits},
{16, (ULONG) W32kSetWindowExtEx},
{16, (ULONG) W32kSetWindowOrgEx},
{8, (ULONG) W32kSetWorldTransform},
#if 0
{?, (ULONG) W32kStartDoc},
{?, (ULONG) W32kStartPage},
#endif
{8, (ULONG) W32kStartDoc},
{4, (ULONG) W32kStartPage},
{44, (ULONG) W32kStretchBlt},
{52, (ULONG) W32kStretchDIBits},
#if 0
{?, (ULONG) W32kStrokeAndFillPath},
{?, (ULONG) W32kStrokePath},
{?, (ULONG) W32kSwapBuffers},
#endif
{4, (ULONG) W32kStrokeAndFillPath},
{4, (ULONG) W32kStrokePath},
{4, (ULONG) W32kSwapBuffers},
{20, (ULONG) W32kTextOut},
#if 0
{?, (ULONG) W32kTranslateCharsetInfo},
#endif
{12, (ULONG) W32kTranslateCharsetInfo},
{8, (ULONG) W32kUnrealizeObject},
{4, (ULONG) W32kUpdateColors},
#if 0
{?, (ULONG) W32kUpdateICMRegKey},
{?, (ULONG) W32kWidenPath},
{?, (ULONG) W32kgdiPlaySpoolStream},
#endif
{16, (ULONG) W32kUpdateICMRegKey},
{4, (ULONG) W32kWidenPath},
};
WINBOOL STDCALL DllMain(VOID)

View file

@ -6,7 +6,10 @@ MAIN_OBJECTS = main/dllmain.o
MISC_OBJECTS = misc/driver.o
OBJECTS_OBJECTS = objects/bitmaps.o objects/brush.o objects/cliprgn.o \
objects/color.o objects/coord.o objects/dc.o \
objects/fillshap.o objects/line.o objects/text.o
objects/fillshap.o objects/icm.o objects/line.o \
objects/metafile.o objects/pen.o \
objects/print.o objects/region.o objects/text.o \
objects/wingl.o
RESOURCE_OBJECT = win32k.coff
STUBS_OBJECTS = stubs/stubs.o

View file

@ -29,6 +29,13 @@ HBITMAP W32kCreateBitmap(INT Width,
UNIMPLEMENTED;
}
HBITMAP W32kCreateCompatibleBitmap(HDC hDC,
INT Width,
INT Height)
{
UNIMPLEMENTED;
}
HBITMAP W32kCreateBitmapIndirect(CONST BITMAP *BM)
{
UNIMPLEMENTED;

View file

@ -167,6 +167,14 @@ Failure:
return NULL;
}
HDC STDCALL W32kCreateIC(LPCWSTR Driver,
LPCWSTR Device,
LPCWSTR Output,
CONST PDEVMODEW DevMode)
{
UNIMPLEMENTED;
}
BOOL STDCALL W32kDeleteDC(HDC DCHandle)
{
PDC DCToDelete;
@ -182,6 +190,11 @@ BOOL STDCALL W32kDeleteDC(HDC DCHandle)
return STATUS_SUCCESS;
}
BOOL STDCALL W32kDeleteObject(HGDIOBJ hObject)
{
UNIMPLEMENTED;
}
INT W32kDrawEscape(HDC hDC,
INT nEscape,
INT cbInput,
@ -225,9 +238,28 @@ INT W32kGetDeviceCaps(HDC hDC,
DC_GET_VAL( INT, W32kGetMapMode, w.MapMode )
DC_GET_VAL( INT, W32kGetPolyFillMode, w.polyFillMode )
INT STDCALL W32kGetObject(HGDIOBJ hGDIObj,
INT BufSize,
LPVOID Object)
{
UNIMPLEMENTED;
}
DWORD STDCALL W32kGetObjectType(HGDIOBJ hGDIObj)
{
UNIMPLEMENTED;
}
DC_GET_VAL( INT, W32kGetRelAbs, w.relAbsMode )
DC_GET_VAL( INT, W32kGetROP2, w.ROPmode )
DC_GET_VAL( INT, W32kGetStretchBltMode, w.stretchBltMode )
HGDIOBJ STDCALL W32kGetStockObject(INT Object)
{
UNIMPLEMENTED;
}
DC_GET_VAL( UINT, W32kGetTextAlign, w.textAlign )
DC_GET_VAL( COLORREF, W32kGetTextColor, w.textColor )
DC_GET_VAL_EX( W32kGetViewportExtEx, vportExtX, vportExtY, SIZE )

View file

@ -0,0 +1,99 @@
#undef WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <win32k/icm.h>
// #define NDEBUG
#include <internal/debug.h>
BOOL W32kCheckColorsInGamut(HDC hDC,
LPVOID RGBTriples,
LPVOID Buffer,
UINT Count)
{
UNIMPLEMENTED;
}
BOOL W32kColorMatchToTarget(HDC hDC,
HDC hDCTarget,
DWORD Action)
{
UNIMPLEMENTED;
}
HCOLORSPACE W32kCreateColorSpace(LPLOGCOLORSPACE LogColorSpace)
{
UNIMPLEMENTED;
}
BOOL W32kDeleteColorSpace(HCOLORSPACE hColorSpace)
{
UNIMPLEMENTED;
}
INT W32kEnumICMProfiles(HDC hDC,
ICMENUMPROC EnumICMProfilesFunc,
LPARAM lParam)
{
UNIMPLEMENTED;
}
HCOLORSPACE W32kGetColorSpace(HDC hDC)
{
UNIMPLEMENTED;
}
BOOL W32kGetDeviceGammaRamp(HDC hDC,
LPVOID Ramp)
{
UNIMPLEMENTED;
}
BOOL W32kGetICMProfile(HDC hDC,
LPDWORD NameSize,
LPWSTR Filename)
{
UNIMPLEMENTED;
}
BOOL W32kGetLogColorSpace(HCOLORSPACE hColorSpace,
LPLOGCOLORSPACE Buffer,
DWORD Size)
{
UNIMPLEMENTED;
}
HCOLORSPACE W32kSetColorSpace(HDC hDC,
HCOLORSPACE hColorSpace)
{
UNIMPLEMENTED;
}
BOOL W32kSetDeviceGammaRamp(HDC hDC,
LPVOID Ramp)
{
UNIMPLEMENTED;
}
INT W32kSetICMMode(HDC hDC,
INT EnableICM)
{
UNIMPLEMENTED;
}
BOOL W32kSetICMProfile(HDC hDC,
LPWSTR Filename)
{
UNIMPLEMENTED;
}
BOOL W32kUpdateICMRegKey(DWORD Reserved,
LPWSTR CMID,
LPWSTR Filename,
UINT Command)
{
UNIMPLEMENTED;
}

View file

@ -18,26 +18,26 @@ HMETAFILE W32kCloseMetaFile(HDC hDC)
}
HENHMETAFILE W32kCopyEnhMetaFile(HENHMETAFILE Src,
LPCTSTR File)
LPCWSTR File)
{
UNIMPLEMENTED;
}
HMETAFILE W32kCopyMetaFile(HMETAFILE Src,
LPCTSTR File)
LPCWSTR File)
{
UNIMPLEMENTED;
}
HDC W32kCreateEnhMetaFile(HDC hDCRef,
LPCTSTR File,
LPCWSTR File,
CONST LPRECT Rect,
LPCTSTR Description)
LPCWSTR Description)
{
UNIMPLEMENTED;
}
HDC W32kCreateMetaFile(LPCTSTR File)
HDC W32kCreateMetaFile(LPCWSTR File)
{
UNIMPLEMENTED;
}
@ -76,7 +76,105 @@ BOOL W32kGdiComment(HDC hDC,
UNIMPLEMENTED;
}
HENHMETAFILE W32kGetEnhMetaFile(LPCTSTR MetaFile)
HENHMETAFILE W32kGetEnhMetaFile(LPCWSTR MetaFile)
{
UNIMPLEMENTED;
}
UINT W32kGetEnhMetaFileBits(HENHMETAFILE hemf,
UINT BufSize,
LPBYTE Buffer)
{
UNIMPLEMENTED;
}
UINT W32kGetEnhMetaFileDescription(HENHMETAFILE hemf,
UINT BufSize,
LPWSTR Description)
{
UNIMPLEMENTED;
}
UINT W32kGetEnhMetaFileHeader(HENHMETAFILE hemf,
UINT BufSize,
LPENHMETAHEADER emh)
{
UNIMPLEMENTED;
}
UINT W32kGetEnhMetaFilePaletteEntries(HENHMETAFILE hemf,
UINT Entries,
LPPALETTEENTRY pe)
{
UNIMPLEMENTED;
}
HMETAFILE W32kGetMetaFile(LPCWSTR MetaFile)
{
UNIMPLEMENTED;
}
UINT W32kGetMetaFileBitsEx(HMETAFILE hmf,
UINT Size,
LPVOID Data)
{
UNIMPLEMENTED;
}
UINT W32kGetWinMetaFileBits(HENHMETAFILE hemf,
UINT BufSize,
LPBYTE Buffer,
INT MapMode,
HDC Ref)
{
UNIMPLEMENTED;
}
BOOL W32kPlayEnhMetaFile(HDC hDC,
HENHMETAFILE hemf,
CONST PRECT Rect)
{
UNIMPLEMENTED;
}
BOOL W32kPlayEnhMetaFileRecord(HDC hDC,
LPHANDLETABLE Handletable,
CONST ENHMETARECORD *EnhMetaRecord,
UINT Handles)
{
UNIMPLEMENTED;
}
BOOL W32kPlayMetaFile(HDC hDC,
HMETAFILE hmf)
{
UNIMPLEMENTED;
}
BOOL W32kPlayMetaFileRecord(HDC hDC,
LPHANDLETABLE Handletable,
LPMETARECORD MetaRecord,
UINT Handles)
{
UNIMPLEMENTED;
}
HENHMETAFILE W32kSetEnhMetaFileBits(UINT BufSize,
CONST PBYTE Data)
{
UNIMPLEMENTED;
}
HMETAFILE W32kSetMetaFileBitsEx(UINT Size,
CONST PBYTE Data)
{
UNIMPLEMENTED;
}
HENHMETAFILE W32kSetWinMetaFileBits(UINT BufSize,
CONST PBYTE Buffer,
HDC Ref,
CONST METAFILEPICT *mfp)
{
UNIMPLEMENTED;
}

View file

@ -0,0 +1,115 @@
#undef WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <win32k/paint.h>
// #define NDEBUG
#include <internal/debug.h>
BOOL W32kGdiFlush(VOID)
{
UNIMPLEMENTED;
}
DWORD GdiGetBatchLimit(VOID)
{
UNIMPLEMENTED;
}
DWORD W32kGdiSetBatchLimit(DWORD Limit)
{
UNIMPLEMENTED;
}
UINT W32kGetBoundsRect(HDC hDC,
LPRECT Bounds,
UINT Flags)
{
UNIMPLEMENTED;
}
COLORREF W32kSetBkColor(HDC hDC,
COLORREF Color)
{
UNIMPLEMENTED;
}
UINT W32kSetBoundsRect(HDC hDC,
CONST PRECT Bounds,
UINT Flags)
{
UNIMPLEMENTED;
}
BOOL W32kAbortPath(HDC hDC)
{
UNIMPLEMENTED;
}
BOOL W32kBeginPath(HDC hDC)
{
UNIMPLEMENTED;
}
BOOL W32kCloseFigure(HDC hDC)
{
UNIMPLEMENTED;
}
BOOL W32kEndPath(HDC hDC)
{
UNIMPLEMENTED;
}
BOOL W32kFillPath(HDC hDC)
{
UNIMPLEMENTED;
}
BOOL W32kFlattenPath(HDC hDC)
{
UNIMPLEMENTED;
}
BOOL W32kGetMiterLimit(HDC hDC, PFLOAT Limit)
{
UNIMPLEMENTED;
}
INT W32kGetPath(HDC hDC,
PPOINT Points,
PBYTE Types,
INT Size)
{
UNIMPLEMENTED;
}
HRGN W32kPathToRegion(HDC hDC)
{
UNIMPLEMENTED;
}
BOOL W32kSetMiterLimit(HDC hDC,
FLOAT NewLimit,
PFLOAT OldLimit)
{
UNIMPLEMENTED;
}
BOOL W32kStrokeAndFillPath(HDC hDC)
{
UNIMPLEMENTED;
}
BOOL W32kStrokePath(HDC hDC)
{
UNIMPLEMENTED;
}
BOOL W32kWidenPath(HDC hDC)
{
UNIMPLEMENTED;
}

View file

@ -0,0 +1,32 @@
#undef WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <win32k/pen.h>
// #define NDEBUG
#include <internal/debug.h>
HPEN W32kCreatePen(INT PenStyle,
INT Width,
COLORREF Color)
{
UNIMPLEMENTED;
}
HPEN W32kCreatePenIndirect(CONST PLOGPEN lgpn)
{
UNIMPLEMENTED;
}
HPEN W32kExtCreatePen(DWORD PenStyle,
DWORD Width,
CONST PLOGBRUSH lb,
DWORD StyleCount,
CONST PDWORD Style)
{
UNIMPLEMENTED;
}

View file

@ -0,0 +1,60 @@
#undef WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <win32k/print.h>
// #define NDEBUG
#include <internal/debug.h>
INT W32kAbortDoc(HDC hDC)
{
UNIMPLEMENTED;
}
INT W32kEndDoc(HDC hDC)
{
UNIMPLEMENTED;
}
INT W32kEndPage(HDC hDC)
{
UNIMPLEMENTED;
}
INT W32kEscape(HDC hDC,
INT Escape,
INT InSize,
LPCSTR InData,
LPVOID OutData)
{
UNIMPLEMENTED;
}
INT W32kExtEscape(HDC hDC,
INT Escape,
INT InSize,
LPCSTR InData,
INT OutSize,
LPSTR OutData)
{
UNIMPLEMENTED;
}
INT W32kSetAbortProc(HDC hDC,
ABORTPROC AbortProc)
{
UNIMPLEMENTED;
}
INT W32kStartDoc(HDC hDC,
CONST PDOCINFO di)
{
UNIMPLEMENTED;
}
INT W32kStartPage(HDC hDC)
{
UNIMPLEMENTED;
}

View file

@ -0,0 +1,144 @@
#undef WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <win32k/region.h>
// #define NDEBUG
#include <internal/debug.h>
INT W32kCombineRgn(HRGN hDest,
HRGN hSrc1,
HRGN hSrc2,
INT CombineMode)
{
UNIMPLEMENTED;
}
HRGN W32kCreateEllipticRgn(INT LeftRect,
INT TopRect,
INT RightRect,
INT BottomRect)
{
UNIMPLEMENTED;
}
HRGN W32kCreateEllipticRgnIndirect(CONST PRECT rc)
{
UNIMPLEMENTED;
}
HRGN W32kCreatePolygonRgn(CONST PPOINT pt,
INT Count,
INT PolyFillMode)
{
UNIMPLEMENTED;
}
HRGN W32kCreatePolyPolygonRgn(CONST PPOINT pt,
CONST PINT PolyCounts,
INT Count,
INT PolyFillMode)
{
UNIMPLEMENTED;
}
HRGN W32kCreateRectRgn(INT LeftRect,
INT TopRect,
INT RightRect,
INT BottomRect)
{
UNIMPLEMENTED;
}
HRGN W32kCreateRectRgnIndirect(CONST PRECT rc)
{
UNIMPLEMENTED;
}
HRGN W32kCreateRoundRectRgn(INT LeftRect,
INT TopRect,
INT RightRect,
INT BottomRect,
INT WidthEllipse,
INT HeightEllipse)
{
UNIMPLEMENTED;
}
BOOL W32kEqualRgn(HRGN hSrcRgn1,
HRGN hSrcRgn2)
{
UNIMPLEMENTED;
}
HRGN W32kExtCreateRegion(CONST PXFORM Xform,
DWORD Count,
CONST PRGNDATA RgnData)
{
UNIMPLEMENTED;
}
BOOL W32kFillRgn(HDC hDC,
HRGN hRgn,
HBRUSH hBrush)
{
UNIMPLEMENTED;
}
BOOL W32kFrameRgn(HDC hDC,
HRGN hRgn,
HBRUSH hBrush,
INT Width,
INT Height)
{
UNIMPLEMENTED;
}
INT W32kGetRgnBox(HRGN hRgn,
LPRECT hRect)
{
UNIMPLEMENTED;
}
BOOL W32kInvertRgn(HDC hDC,
HRGN hRgn)
{
UNIMPLEMENTED;
}
INT W32kOffsetRgn(HRGN hRgn,
INT XOffset,
INT YOffset)
{
UNIMPLEMENTED;
}
BOOL W32kPaintRgn(HDC hDC,
HRGN hRgn)
{
UNIMPLEMENTED;
}
BOOL W32kPtInRegion(HRGN hRgn,
INT X,
INT Y)
{
UNIMPLEMENTED;
}
BOOL W32kRectInRegion(HRGN hRgn,
CONST LPRECT rc)
{
UNIMPLEMENTED;
}
BOOL W32kSetRectRgn(HRGN hRgn,
INT LeftRect,
INT TopRect,
INT RightRect,
INT BottomRect)
{
UNIMPLEMENTED;
}

View file

@ -7,7 +7,7 @@
// #define NDEBUG
#include <internal/debug.h>
int W32kAddFontResource(LPCTSTR Filename)
int W32kAddFontResource(LPCWSTR Filename)
{
UNIMPLEMENTED;
}
@ -25,7 +25,7 @@ HFONT W32kCreateFont(int Height,
DWORD ClipPrecision,
DWORD Quality,
DWORD PitchAndFamily,
LPCTSTR Face)
LPCWSTR Face)
{
UNIMPLEMENTED;
}
@ -36,15 +36,15 @@ HFONT W32kCreateFontIndirect(CONST LPLOGFONT lf)
}
BOOL W32kCreateScalableFontResource(DWORD Hidden,
LPCTSTR FontRes,
LPCTSTR FontFile,
LPCTSTR CurrentPath)
LPCWSTR FontRes,
LPCWSTR FontFile,
LPCWSTR CurrentPath)
{
UNIMPLEMENTED;
}
int W32kEnumFontFamilies(HDC hDC,
LPCTSTR Family,
LPCWSTR Family,
FONTENUMPROC EnumFontFamProc,
LPARAM lParam)
{
@ -61,7 +61,7 @@ int W32kEnumFontFamiliesEx(HDC hDC,
}
int W32kEnumFonts(HDC hDC,
LPCTSTR FaceName,
LPCWSTR FaceName,
FONTENUMPROC FontFunc,
LPARAM lParam)
{
@ -73,7 +73,7 @@ BOOL W32kExtTextOut(HDC hDC,
int Y,
UINT Options,
CONST LPRECT rc,
LPCTSTR String,
LPCWSTR String,
UINT Count,
CONST LPINT Dx)
{
@ -103,7 +103,7 @@ BOOL W32kGetCharABCWidthsFloat(HDC hDC,
}
DWORD W32kGetCharacterPlacement(HDC hDC,
LPCTSTR String,
LPCWSTR String,
int Count,
int MaxExtent,
LPGCP_RESULTS Results,
@ -172,8 +172,20 @@ BOOL W32kGetRasterizerCaps(LPRASTERIZER_STATUS rs,
UNIMPLEMENTED;
}
UINT W32kGetTextCharset(HDC hDC)
{
UNIMPLEMENTED;
}
UINT W32kGetTextCharsetInfo(HDC hDC,
LPFONTSIGNATURE Sig,
DWORD Flags)
{
UNIMPLEMENTED;
}
BOOL W32kGetTextExtentExPoint(HDC hDC,
LPCTSTR String,
LPCWSTR String,
int Count,
int MaxExtent,
LPINT Fit,
@ -184,7 +196,7 @@ BOOL W32kGetTextExtentExPoint(HDC hDC,
}
BOOL W32kGetTextExtentPoint(HDC hDC,
LPCTSTR String,
LPCWSTR String,
int Count,
LPSIZE Size)
{
@ -192,7 +204,7 @@ BOOL W32kGetTextExtentPoint(HDC hDC,
}
BOOL W32kGetTextExtentPoint32(HDC hDC,
LPCTSTR String,
LPCWSTR String,
int Count,
LPSIZE Size)
{
@ -201,7 +213,7 @@ BOOL W32kGetTextExtentPoint32(HDC hDC,
int W32kGetTextFace(HDC hDC,
int Count,
LPTSTR FaceName)
LPWSTR FaceName)
{
UNIMPLEMENTED;
}
@ -219,7 +231,7 @@ BOOL W32kPolyTextOut(HDC hDC,
UNIMPLEMENTED;
}
BOOL W32kRemoveFontResource(LPCTSTR FileName)
BOOL W32kRemoveFontResource(LPCWSTR FileName)
{
UNIMPLEMENTED;
}
@ -252,9 +264,16 @@ BOOL W32kSetTextJustification(HDC hDC,
BOOL W32kTextOut(HDC hDC,
int XStart,
int YStart,
LPCTSTR String,
LPCWSTR String,
int Count)
{
UNIMPLEMENTED;
}
UINT W32kTranslateCharsetInfo(PDWORD Src,
LPCHARSETINFO CSI,
DWORD Flags)
{
UNIMPLEMENTED;
}

View file

@ -0,0 +1,48 @@
#undef WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <win32k/wingl.h>
// #define NDEBUG
#include <internal/debug.h>
INT W32kChoosePixelFormat(HDC hDC,
CONST PPIXELFORMATDESCRIPTOR pfd)
{
UNIMPLEMENTED;
}
INT W32kDescribePixelFormat(HDC hDC,
INT PixelFormat,
UINT BufSize,
LPPIXELFORMATDESCRIPTOR pfd)
{
UNIMPLEMENTED;
}
UINT W32kGetEnhMetaFilePixelFormat(HENHMETAFILE hEMF,
DWORD BufSize,
CONST PPIXELFORMATDESCRIPTOR pfd)
{
UNIMPLEMENTED;
}
INT W32kGetPixelFormat(HDC hDC)
{
UNIMPLEMENTED;
}
BOOL W32kSetPixelFormat(HDC hDC,
INT PixelFormat,
CONST PPIXELFORMATDESCRIPTOR pfd)
{
UNIMPLEMENTED;
}
BOOL W32kSwapBuffers(HDC hDC)
{
UNIMPLEMENTED;
}