5 #undef WIN32_LEAN_AND_MEAN
8 #include <win32k/kapi.h>
16 CONST DEVMODEA
* lpInitData
19 ANSI_STRING DriverA
, DeviceA
, OutputA
;
20 UNICODE_STRING DriverU
, DeviceU
, OutputU
;
22 DEVMODEW
*lpInitDataW
;
25 * If needed, convert to Unicode
26 * any string parameter.
29 if (NULL
!= lpszDriver
)
31 RtlInitAnsiString(&DriverA
, (LPSTR
)lpszDriver
);
32 RtlAnsiStringToUnicodeString(&DriverU
, &DriverA
, TRUE
);
34 DriverU
.Buffer
= NULL
;
35 if (NULL
!= lpszDevice
)
37 RtlInitAnsiString(&DeviceA
, (LPSTR
)lpszDevice
);
38 RtlAnsiStringToUnicodeString(&DeviceU
, &DeviceA
, TRUE
);
40 DeviceU
.Buffer
= NULL
;
41 if (NULL
!= lpszOutput
)
43 RtlInitAnsiString(&OutputA
, (LPSTR
)lpszOutput
);
44 RtlAnsiStringToUnicodeString(&OutputU
, &OutputA
, TRUE
);
46 OutputU
.Buffer
= NULL
;
48 if (NULL
!= lpInitData
)
50 // lpInitDataW = HeapAllocMem(
55 * Call the Unicode version
66 * Free Unicode parameters.
68 RtlFreeUnicodeString(&DriverU
);
69 RtlFreeUnicodeString(&DeviceU
);
70 RtlFreeUnicodeString(&OutputU
);
73 * Return the possible DC handle.
85 CONST DEVMODEW
* lpInitData
96 BOOL STDCALL
DeleteDC( HDC hDC
)
98 return W32kDeleteDC( hDC
);
108 return W32kCreateCompatableDC(hDC
);
118 return W32kSelectObject(hDC
, hGDIObj
);
128 return W32kSetMapMode( a0
, a1
);
140 return W32kSetViewportOrgEx( a0
, a1
, a2
, a3
);
152 return W32kSetWindowOrgEx( a0
, a1
, a2
, a3
);