xref: /reactos/win32ss/gdi/ntgdi/device.c (revision c2c66aff)
1 /*
2  * COPYRIGHT:         See COPYING in the top level directory
3  * PROJECT:           ReactOS kernel
4  * PURPOSE:           Functions for creation and destruction of DCs
5  * FILE:              win32ss/gdi/ntgdi/device.c
6  * PROGRAMER:         Timo Kreuzer (timo.kreuzer@rectos.org)
7  */
8 
9 #include <win32k.h>
10 
11 #define NDEBUG
12 #include <debug.h>
13 
14 PDC defaultDCstate = NULL;
15 
16 VOID FASTCALL
17 IntGdiReferencePdev(PPDEVOBJ ppdev)
18 {
19     UNIMPLEMENTED;
20 }
21 
22 VOID FASTCALL
23 IntGdiUnreferencePdev(PPDEVOBJ ppdev, DWORD CleanUpType)
24 {
25     UNIMPLEMENTED;
26 }
27 
28 BOOL FASTCALL
29 IntCreatePrimarySurface(VOID)
30 {
31     /* Create surface */
32     PDEVOBJ_pSurface(gppdevPrimary);
33 
34     DPRINT("IntCreatePrimarySurface, gppdevPrimary=%p, gppdevPrimary->pSurface = %p\n",
35         gppdevPrimary, gppdevPrimary->pSurface);
36 
37     // Init Primary Displays Device Capabilities.
38     PDEVOBJ_vGetDeviceCaps(gppdevPrimary, &GdiHandleTable->DevCaps);
39 
40     return TRUE;
41 }
42 
43 VOID FASTCALL
44 IntDestroyPrimarySurface(VOID)
45 {
46     UNIMPLEMENTED;
47 }
48 
49 PPDEVOBJ FASTCALL
50 IntEnumHDev(VOID)
51 {
52 // I guess we will soon have more than one primary surface.
53 // This will do for now.
54     return gppdevPrimary;
55 }
56 
57 
58 INT
59 APIENTRY
60 NtGdiDrawEscape(
61     IN HDC hdc,
62     IN INT iEsc,
63     IN INT cjIn,
64     IN OPTIONAL LPSTR pjIn)
65 {
66     UNIMPLEMENTED;
67     return 0;
68 }
69 
70 
71