Go to the source code of this file.
|
| WINE_DEFAULT_DEBUG_CHANNEL (user32) |
|
HANDLE WINAPI | GdiConvertMetaFilePict (HANDLE) |
|
HANDLE WINAPI | GdiConvertEnhMetaFile (HANDLE) |
|
HANDLE WINAPI | GdiCreateLocalEnhMetaFile (HANDLE) |
|
HANDLE WINAPI | GdiCreateLocalMetaFilePict (HANDLE) |
|
BOOL WINAPI | OpenClipboard (HWND hWndNewOwner) |
|
UINT WINAPI | EnumClipboardFormats (UINT format) |
|
INT WINAPI | GetClipboardFormatNameA (UINT format, LPSTR lpszFormatName, int cchMaxCount) |
|
INT WINAPI | GetClipboardFormatNameW (UINT uFormat, LPWSTR lpszFormatName, INT cchMaxCount) |
|
UINT WINAPI | RegisterClipboardFormatA (LPCSTR lpszFormat) |
|
UINT WINAPI | RegisterClipboardFormatW (LPCWSTR lpszFormat) |
|
static PVOID WINAPI | IntSynthesizeMultiByte (PVOID pwStr, DWORD cbStr, BOOL bOem) |
|
static PVOID WINAPI | IntSynthesizeWideChar (PVOID pwStr, DWORD cbStr, BOOL bOem) |
|
HANDLE WINAPI | GetClipboardData (UINT uFormat) |
|
HANDLE WINAPI | SetClipboardData (UINT uFormat, HANDLE hMem) |
|
BOOL WINAPI | AddClipboardFormatListener (HWND hwnd) |
|
BOOL WINAPI | RemoveClipboardFormatListener (HWND hwnd) |
|
BOOL WINAPI | GetUpdatedClipboardFormats (PUINT lpuiFormats, UINT cFormats, PUINT pcFormatsOut) |
|
◆ NDEBUG
◆ AddClipboardFormatListener()
◆ EnumClipboardFormats()
Definition at line 39 of file clipboard.c.
40{
43}
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
EXTINLINE UINT NtUserxEnumClipboardFormats(UINT format)
◆ GdiConvertEnhMetaFile()
◆ 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().
◆ GdiCreateLocalEnhMetaFile()
Definition at line 74 of file enhmfile.c.
75{
76 HENHMETAFILE hEMF;
80
84
85
89
90
94
96 {
98
103
107 }
108 else
109 {
113 }
114
116
119 return hEMF;
120}
__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)
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
HENHMETAFILE WINAPI SetEnhMetaFileBits(_In_ UINT nSize, _In_reads_bytes_(nSize) const BYTE *pb)
HENHMETAFILE WINAPI SetWinMetaFileBits(_In_ UINT nSize, _In_reads_bytes_(nSize) const BYTE *lpMeta16Data, _In_opt_ HDC hdcRef, _In_opt_ const METAFILEPICT *lpMFP)
Referenced by GetClipboardData().
◆ 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)
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)
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().
◆ GetClipboardData()
Definition at line 198 of file clipboard.c.
199{
204
206 if (!hData)
208
209 switch (uFormat)
210 {
217 }
218
219 if (
gcd.fGlobalHandle)
220 {
222
227 hData = hGlobal;
228 }
229
230 if (
gcd.uFmtRet != uFormat)
231 {
235
236
237 switch (uFormat)
238 {
242 else
244 break;
248 else
250 break;
253 break;
254 default:
255 FIXME(
"Format: %u != %u\n", uFormat,
gcd.uFmtRet);
256 }
257
258
259 if (pNewData)
261
262 if (hNewData)
263 {
264
266 {
269 }
270 hData = hNewData;
272 }
273
274
276 {
278
282 }
283 else if (hData)
285 }
286
287
290
291 return hData;
292}
#define CF_DSPENHMETAFILE
#define CF_DSPMETAFILEPICT
HGLOBAL NTAPI GlobalHandle(LPCVOID pMem)
SIZE_T NTAPI GlobalSize(HGLOBAL hMem)
HANDLE NTAPI NtUserSetClipboardData(UINT fmt, HANDLE hMem, PSETCLIPBDATA scd)
HANDLE NTAPI NtUserConvertMemHandle(PVOID pData, DWORD cbData)
HANDLE NTAPI NtUserGetClipboardData(UINT fmt, PGETCLIPBDATA pgcd)
NTSTATUS NTAPI NtUserCreateLocalMemHandle(HANDLE hMem, PVOID pData, DWORD cbData, DWORD *pcbData)
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
HANDLE WINAPI GdiCreateLocalMetaFilePict(HANDLE)
static PVOID WINAPI IntSynthesizeWideChar(PVOID pwStr, DWORD cbStr, BOOL bOem)
HANDLE WINAPI GdiCreateLocalEnhMetaFile(HANDLE)
static PVOID WINAPI IntSynthesizeMultiByte(PVOID pwStr, DWORD cbStr, BOOL bOem)
BOOL WINAPI CharToOemBuffA(_In_ LPCSTR lpszSrc, _Out_writes_(cchDstLength) LPSTR lpszDst, _In_ DWORD cchDstLength)
BOOL WINAPI OemToCharBuffA(_In_ LPCSTR lpszSrc, _Out_writes_(cchDstLength) LPSTR lpszDst, _In_ DWORD cchDstLength)
◆ GetClipboardFormatNameA()
Definition at line 50 of file clipboard.c.
53{
56
59 {
61 return 0;
62 }
63
64
66
68 {
70 {
71
73 }
75 }
76
79}
PVOID NTAPI RtlAllocateHeap(IN PVOID HeapHandle, IN ULONG Flags, IN SIZE_T Size)
BOOLEAN NTAPI RtlFreeHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID HeapBase)
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
#define WideCharToMultiByte
INT NTAPI NtUserGetClipboardFormatName(UINT uFormat, LPWSTR lpszFormatName, INT cchMaxCount)
_In_ ULONG _In_ ULONG _In_ ULONG Length
◆ GetClipboardFormatNameW()
◆ GetUpdatedClipboardFormats()
◆ IntSynthesizeMultiByte()
◆ IntSynthesizeWideChar()
Definition at line 175 of file clipboard.c.
176{
180
182 0, pwStr, cbStr,
NULL, 0) *
sizeof(
WCHAR);
184 if (!hGlobal)
186
189 0, pwStr, cbStr, pGlobal, cbGlobal);
190 return pGlobal;
191}
#define MultiByteToWideChar
Referenced by GetClipboardData().
◆ OpenClipboard()
Definition at line 29 of file clipboard.c.
30{
32}
BOOL NTAPI NtUserOpenClipboard(HWND hWnd, DWORD Unknown1)
◆ RegisterClipboardFormatA()
Definition at line 98 of file clipboard.c.
99{
102
103 if (lpszFormat ==
NULL)
104 {
106 return 0;
107 }
108
110 {
112 return 0;
113 }
114
116 {
118 return 0;
119 }
120
122
124
126}
#define ERROR_NOT_ENOUGH_MEMORY
#define ERROR_INVALID_PARAMETER
#define ERROR_INVALID_NAME
UINT NTAPI NtUserRegisterWindowMessage(PUNICODE_STRING MessageName)
NTSYSAPI BOOLEAN NTAPI RtlCreateUnicodeStringFromAsciiz(_Out_ PUNICODE_STRING Destination, _In_ PCSZ Source)
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
◆ RegisterClipboardFormatW()
Definition at line 133 of file clipboard.c.
134{
136
137 if (lpszFormat ==
NULL)
138 {
140 return 0;
141 }
142
144 {
146 return 0;
147 }
148
151}
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
◆ RemoveClipboardFormatListener()
◆ SetClipboardData()
Definition at line 299 of file clipboard.c.
300{
306
307
310
313
316
318 {
321 if (hRet == hTemp) hRet = hMem;
322 }
324 {
327 if (hRet == hTemp) hRet = hMem;
328 }
329 else
330 {
331
334
335 if (pMem || uFormat ==
CF_DIB || uFormat == CF_DIBV5 ||
339 {
340 if (pMem)
341 {
342
344
345
347
348
349 if (hGlobal)
350 {
351
354 }
355
356
357
358 if (hRet == hGlobal)
359 hRet = hMem;
360 }
361 else
363 }
364 else
365 {
366
368 }
369 }
370
371 if (!hRet)
372 ERR(
"SetClipboardData(%u, %p) failed\n", uFormat, hMem);
373
374 return hRet;
375}
#define ERROR_INVALID_HANDLE
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
HANDLE WINAPI GdiConvertMetaFilePict(HANDLE)
HANDLE WINAPI GdiConvertEnhMetaFile(HANDLE)
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
user32 |
| ) |
|