[CMAKE]
[reactos.git] / subsystems / win32 / win32k / objects / metafile.c
1 /*
2 * PROJECT: ReactOS Win32k Subsystem
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: win32k/objects/metafile.c
5 * PURPOSE: Metafile Implementation
6 * PROGRAMMERS: ...
7 */
8
9 /* INCLUDES ******************************************************************/
10
11 #include <win32k.h>
12
13 #define NDEBUG
14 #include <debug.h>
15
16 /* System Service Calls ******************************************************/
17
18 /*
19 * @unimplemented
20 */
21 LONG
22 APIENTRY
23 NtGdiConvertMetafileRect(IN HDC hDC,
24 IN OUT PRECTL pRect)
25 {
26 UNIMPLEMENTED;
27 return 0;
28 }
29
30 /*
31 * @implemented
32 */
33 HDC
34 APIENTRY
35 NtGdiCreateMetafileDC(IN HDC hdc)
36 {
37 PDC pDc;
38 HDC ret = NULL;
39
40 if (hdc)
41 {
42 pDc = DC_LockDc(hdc);
43 if (pDc)
44 { // Not sure this is right for getting the HDEV handle, maybe Timo could help or just if'ed it out.
45 ret = IntGdiCreateDisplayDC(pDc->ppdev->BaseObject.hHmgr, DC_TYPE_INFO, TRUE);
46 DC_UnlockDc(pDc);
47 }
48 }
49 else
50 {
51 ret = UserGetDesktopDC(DC_TYPE_INFO, TRUE, FALSE);
52 }
53 return ret;
54 }
55
56 /*
57 * @unimplemented
58 */
59 HANDLE
60 APIENTRY
61 NtGdiCreateServerMetaFile(IN DWORD iType,
62 IN ULONG cjData,
63 IN PBYTE pjData,
64 IN DWORD mm,
65 IN DWORD xExt,
66 IN DWORD yExt)
67 {
68 UNIMPLEMENTED;
69 return NULL;
70 }
71
72 /*
73 * @unimplemented
74 */
75 ULONG
76 APIENTRY
77 NtGdiGetServerMetaFileBits(IN HANDLE hmo,
78 IN ULONG cjData,
79 OUT OPTIONAL PBYTE pjData,
80 OUT PDWORD piType,
81 OUT PDWORD pmm,
82 OUT PDWORD pxExt,
83 OUT PDWORD pyExt)
84 {
85 UNIMPLEMENTED;
86 return 0;
87 }
88
89 /* EOF */