#include <win32k.h>
#include <debug.h>
Go to the source code of this file.
◆ NDEBUG
◆ _Success_()
Definition at line 41 of file wingl.c.
50{
55
57
59 if (!pdc)
60 {
62 return 0;
63 }
64
65 if (!pdc->ipfdDevMax)
66 {
68 {
69
71 }
72 }
73
75 {
76 Ret = pdc->ipfdDevMax;
78 }
79
80 if ((
ipfd < 1) || (
ipfd > pdc->ipfdDevMax))
81 {
84 }
85
86 ppdev = pdc->ppdev;
87
89 {
92 }
93
95 {
99 sizeof(pfdSafe),
100 &pfdSafe);
101 }
102
104 {
106 {
110 }
112 {
114 }
116 }
117
120 return Ret;
121}
FORCEINLINE VOID DC_UnlockDc(PDC pdc)
FORCEINLINE PDC DC_LockDc(HDC hdc)
#define ERROR_INVALID_PARAMETER
#define ERROR_INVALID_HANDLE
VOID NTAPI ProbeForWrite(IN PVOID Address, IN SIZE_T Length, IN ULONG Alignment)
#define EXCEPTION_EXECUTE_HANDLER
static INT FASTCALL IntGetipfdDevMax(PDC pdc)
#define _SEH2_GetExceptionCode()
#define _SEH2_EXCEPT(...)
PFN_DrvDescribePixelFormat DescribePixelFormat
DRIVER_FUNCTIONS DriverFunctions
#define RtlCopyMemory(Destination, Source, Length)
VOID FASTCALL SetLastNtError(_In_ NTSTATUS Status)
ENGAPI VOID APIENTRY EngSetLastError(_In_ ULONG iError)
_In_ LONG _In_ ULONG cjpfd
_In_ LONG _In_ ULONG _Out_opt_ PIXELFORMATDESCRIPTOR * ppfd
◆ IntGetipfdDevMax()
Definition at line 17 of file wingl.c.
18{
21
23 {
24 return 0;
25 }
26
28 {
31 1,
32 0,
34 }
35
36 if (Ret) pdc->ipfdDevMax = Ret;
37
38 return Ret;
39}
Referenced by _Success_(), and NtGdiSetPixelFormat().
◆ NtGdiSetPixelFormat()
Definition at line 126 of file wingl.c.
129{
136
137 DPRINT1(
"Setting pixel format from win32k!\n");
138
140 if (!pdc)
141 {
144 }
145
146 if (!pdc->ipfdDevMax)
148
150 ipfd > pdc->ipfdDevMax )
151 {
154 }
155
159
161 {
164 }
165
166 ppdev = pdc->ppdev;
167
168
169
170
171 if (pWndObj)
173 else
174 {
177 }
178
180 {
183 }
184
186 {
191 }
192
195 return Ret;
196}
HWND FASTCALL UserGethWnd(HDC, PWNDOBJ *)
VOID FASTCALL UserLeave(VOID)
VOID FASTCALL UserEnterExclusive(VOID)
PFN_DrvSetPixelFormat SetPixelFormat
_In_ HANDLE _In_ SURFOBJ * pso
#define ERROR_INVALID_PIXEL_FORMAT
#define ERROR_INVALID_WINDOW_STYLE
◆ NtGdiSwapBuffers()
Definition at line 200 of file wingl.c.
202{
209
211 if (!pdc)
212 {
215 }
216
220
222 {
225 }
226
227 ppdev = pdc->ppdev;
228
229
230
231
232 if (pWndObj)
234 else
235 {
238 }
239
241 {
244 }
245
247 {
249 }
250
253 return Ret;
254}
PFN_DrvSwapBuffers SwapBuffers