#include <precomp.h>
#include <debug.h>
Go to the source code of this file.
◆ NDEBUG
◆ GdiConvertMetaFilePict()
Definition at line 201 of file metafile.c.
202{
203 HMETAFILE hMF;
208
209
213
214
216
217
221
222
226
227
231
233
235
236 if (pInfo)
240 return hmo;
241}
LPVOID NTAPI GlobalLock(HGLOBAL hMem)
BOOL NTAPI GlobalUnlock(HGLOBAL hMem)
HLOCAL NTAPI LocalAlloc(UINT uFlags, SIZE_T dwBytes)
HLOCAL NTAPI LocalFree(HLOCAL hMem)
__kernel_entry W32KAPI HANDLE APIENTRY NtGdiCreateServerMetaFile(_In_ DWORD iType, _In_ ULONG cjData, _In_reads_bytes_(cjData) LPBYTE pjData, _In_ DWORD mm, _In_ DWORD xExt, _In_ DWORD yExt)
*nSize LPSTR _Inout_ LPDWORD nSize
UINT WINAPI GetMetaFileBitsEx(_In_ HMETAFILE hMF, _In_ UINT cbBuffer, _Out_writes_bytes_opt_(cbBuffer) LPVOID lpData)
Referenced by SetClipboardData().
◆ GdiCreateLocalMetaFilePict()
Definition at line 95 of file metafile.c.
96{
105
106
107
108
109
114
116
117
121
122
126
128 {
129 static const WCHAR szDisplayW[] = {
'D',
'I',
'S',
'P',
'L',
'A',
'Y',
'\0' };
130 HENHMETAFILE hEMF;
132
136
138 {
141 }
142
146
149 {
151 if (cSize)
152 {
154 if (BufNew)
155 {
158 {
161 }
162 }
163 }
165 }
167
170 }
171
172
176
177
179
181
184 if (pInfo)
187 {
188
190 hMetaFilePict =
NULL;
191 }
192
193 return hMetaFilePict;
194}
HGLOBAL NTAPI GlobalFree(HGLOBAL hMem)
HGLOBAL NTAPI GlobalAlloc(UINT uFlags, SIZE_T dwBytes)
__kernel_entry W32KAPI ULONG APIENTRY NtGdiGetServerMetaFileBits(_In_ HANDLE hmo, _In_ ULONG cjData, _Out_writes_bytes_opt_(cjData) LPBYTE pjData, _Out_ PDWORD piType, _Out_ PDWORD pmm, _Out_ PDWORD pxExt, _Out_ PDWORD pyExt)
BOOL WINAPI DeleteEnhMetaFile(_In_opt_ HENHMETAFILE)
UINT WINAPI GetWinMetaFileBits(_In_ HENHMETAFILE hemf, _In_ UINT cbData16, _Out_writes_bytes_opt_(cbData16) LPBYTE pData16, _In_ INT iMapMode, _In_ HDC hdcRef)
HMETAFILE WINAPI SetMetaFileBitsEx(_In_ UINT cbBuffer, _In_reads_bytes_(cbBuffer) CONST BYTE *lpData)
HENHMETAFILE WINAPI SetEnhMetaFileBits(_In_ UINT nSize, _In_reads_bytes_(nSize) const BYTE *pb)
UINT WINAPI GetEnhMetaFileHeader(_In_ HENHMETAFILE hemf, _In_ UINT nSize, _Out_writes_bytes_opt_(nSize) LPENHMETAHEADER lpEnhMetaHeader)
BOOL WINAPI DeleteDC(_In_ HDC)
HDC WINAPI CreateDCW(_In_opt_ LPCWSTR pszDriver, _In_opt_ LPCWSTR pszDevice, _In_opt_ LPCWSTR psz, _In_opt_ const DEVMODEW *pdmInit)
Referenced by GetClipboardData().
◆ GdiIsMetaFileDC()
Definition at line 36 of file metafile.c.
37{
39
42 {
44 }
45
47 {
49 if ( !pLDC )
50 {
53 }
55 }
56
58}
#define ERROR_INVALID_HANDLE
PLDC FASTCALL GdiGetLDC(HDC hDC)
#define GDI_HANDLE_GET_TYPE(h)
@ GDILoObjType_LO_METADC16_TYPE
@ GDILoObjType_LO_ALTDC_TYPE
◆ GdiIsMetaPrintDC()
Definition at line 65 of file metafile.c.
66{
68
70 {
73 else
74 {
76 if ( !pLDC )
77 {
80 }
82 }
83 }
85}
@ GDILoObjType_LO_DC_TYPE
◆ GdiIsPlayMetafileDC()
Definition at line 20 of file metafile.c.
21{
23
24 if ( pdcattr )
25 {
27 }
29}
FORCEINLINE PDC_ATTR GdiGetDcAttr(HDC hdc)