5 #undef WIN32_LEAN_AND_MEAN
8 #include <win32k/kapi.h>
11 GetStockObject(int Index)
13 return(W32kGetStockObject(Index));
18 GetClipBox(HDC hDc, LPRECT Rect)
20 return(W32kGetClipBox(hDc, Rect));
29 return W32kGetPolyFillMode(a0);
38 CONST DEVMODEA * lpInitData
41 ANSI_STRING DriverA, DeviceA, OutputA;
42 UNICODE_STRING DriverU, DeviceU, OutputU;
44 DEVMODEW *lpInitDataW;
47 * If needed, convert to Unicode
48 * any string parameter.
51 if (NULL != lpszDriver)
53 RtlInitAnsiString(&DriverA, (LPSTR)lpszDriver);
54 RtlAnsiStringToUnicodeString(&DriverU, &DriverA, TRUE);
56 DriverU.Buffer = NULL;
57 if (NULL != lpszDevice)
59 RtlInitAnsiString(&DeviceA, (LPSTR)lpszDevice);
60 RtlAnsiStringToUnicodeString(&DeviceU, &DeviceA, TRUE);
62 DeviceU.Buffer = NULL;
63 if (NULL != lpszOutput)
65 RtlInitAnsiString(&OutputA, (LPSTR)lpszOutput);
66 RtlAnsiStringToUnicodeString(&OutputU, &OutputA, TRUE);
68 OutputU.Buffer = NULL;
70 if (NULL != lpInitData)
72 // lpInitDataW = HeapAllocMem(
77 * Call the Unicode version
88 * Free Unicode parameters.
90 RtlFreeUnicodeString(&DriverU);
91 RtlFreeUnicodeString(&DeviceU);
92 RtlFreeUnicodeString(&OutputU);
95 * Return the possible DC handle.
107 CONST DEVMODEW * lpInitData
110 return W32kCreateDC (
114 (PDEVMODEW)lpInitData
118 BOOL STDCALL DeleteDC( HDC hDC )
120 return W32kDeleteDC( hDC );
130 return W32kCreateCompatableDC(hDC);
140 return W32kSelectObject(hDC, hGDIObj);
150 return W32kSetMapMode( a0, a1 );
162 return W32kSetViewportOrgEx( a0, a1, a2, a3 );
174 return W32kSetWindowOrgEx( a0, a1, a2, a3 );
184 return W32kDeleteObject(a0);
195 return W32kSelectPalette( a0, a1,a2 );
204 return W32kRealizePalette( a0 );
216 return W32kLPtoDP(a0, a1, a2);
226 return W32kSetPolyFillMode(a0, a1);