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));
30 CONST DEVMODEA * lpInitData
33 ANSI_STRING DriverA, DeviceA, OutputA;
34 UNICODE_STRING DriverU, DeviceU, OutputU;
36 DEVMODEW *lpInitDataW;
39 * If needed, convert to Unicode
40 * any string parameter.
43 if (NULL != lpszDriver)
45 RtlInitAnsiString(&DriverA, (LPSTR)lpszDriver);
46 RtlAnsiStringToUnicodeString(&DriverU, &DriverA, TRUE);
48 DriverU.Buffer = NULL;
49 if (NULL != lpszDevice)
51 RtlInitAnsiString(&DeviceA, (LPSTR)lpszDevice);
52 RtlAnsiStringToUnicodeString(&DeviceU, &DeviceA, TRUE);
54 DeviceU.Buffer = NULL;
55 if (NULL != lpszOutput)
57 RtlInitAnsiString(&OutputA, (LPSTR)lpszOutput);
58 RtlAnsiStringToUnicodeString(&OutputU, &OutputA, TRUE);
60 OutputU.Buffer = NULL;
62 if (NULL != lpInitData)
64 // lpInitDataW = HeapAllocMem(
69 * Call the Unicode version
80 * Free Unicode parameters.
82 RtlFreeUnicodeString(&DriverU);
83 RtlFreeUnicodeString(&DeviceU);
84 RtlFreeUnicodeString(&OutputU);
87 * Return the possible DC handle.
99 CONST DEVMODEW * lpInitData
102 return W32kCreateDC (
106 (PDEVMODEW)lpInitData
110 BOOL STDCALL DeleteDC( HDC hDC )
112 return W32kDeleteDC( hDC );
122 return W32kCreateCompatableDC(hDC);
132 return W32kSelectObject(hDC, hGDIObj);
142 return W32kSetMapMode( a0, a1 );
154 return W32kSetViewportOrgEx( a0, a1, a2, a3 );
166 return W32kSetWindowOrgEx( a0, a1, a2, a3 );
176 return W32kDeleteObject(a0);
187 return W32kSelectPalette( a0, a1,a2 );
196 return W32kRealizePalette( a0 );