454fb6518714a7568641805ccf42f58c36520d78
5 #undef WIN32_LEAN_AND_MEAN
8 #include <win32k/kapi.h>
11 GetClipBox(HDC hDc
, LPRECT Rect
)
13 return(W32kGetClipBox(hDc
, Rect
));
23 CONST DEVMODEA
* lpInitData
26 ANSI_STRING DriverA
, DeviceA
, OutputA
;
27 UNICODE_STRING DriverU
, DeviceU
, OutputU
;
29 DEVMODEW
*lpInitDataW
;
32 * If needed, convert to Unicode
33 * any string parameter.
36 if (NULL
!= lpszDriver
)
38 RtlInitAnsiString(&DriverA
, (LPSTR
)lpszDriver
);
39 RtlAnsiStringToUnicodeString(&DriverU
, &DriverA
, TRUE
);
41 DriverU
.Buffer
= NULL
;
42 if (NULL
!= lpszDevice
)
44 RtlInitAnsiString(&DeviceA
, (LPSTR
)lpszDevice
);
45 RtlAnsiStringToUnicodeString(&DeviceU
, &DeviceA
, TRUE
);
47 DeviceU
.Buffer
= NULL
;
48 if (NULL
!= lpszOutput
)
50 RtlInitAnsiString(&OutputA
, (LPSTR
)lpszOutput
);
51 RtlAnsiStringToUnicodeString(&OutputU
, &OutputA
, TRUE
);
53 OutputU
.Buffer
= NULL
;
55 if (NULL
!= lpInitData
)
57 // lpInitDataW = HeapAllocMem(
62 * Call the Unicode version
73 * Free Unicode parameters.
75 RtlFreeUnicodeString(&DriverU
);
76 RtlFreeUnicodeString(&DeviceU
);
77 RtlFreeUnicodeString(&OutputU
);
80 * Return the possible DC handle.
92 CONST DEVMODEW
* lpInitData
103 BOOL STDCALL
DeleteDC( HDC hDC
)
105 return W32kDeleteDC( hDC
);
115 return W32kCreateCompatableDC(hDC
);
125 return W32kSelectObject(hDC
, hGDIObj
);
135 return W32kSetMapMode( a0
, a1
);
147 return W32kSetViewportOrgEx( a0
, a1
, a2
, a3
);
159 return W32kSetWindowOrgEx( a0
, a1
, a2
, a3
);
169 return W32kDeleteObject(a0
);