39 HANDLE clipboard_handle;
42 if (OpenClipboard(NULL)) {
43 clipboard_handle = GetClipboardData(CF_UNICODETEXT);
44 if (clipboard_handle != NULL) {
45 content = GlobalLock(clipboard_handle);
53 required_len = WideCharToMultiByte(
63 *
buffer = malloc(required_len);
64 *length = WideCharToMultiByte(
74 GlobalUnlock(clipboard_handle);
100 if (OpenClipboard(NULL)) {
102 content_len = MultiByteToWideChar(CP_UTF8,
107 hglbCopy = GlobalAlloc(GMEM_MOVEABLE,
108 ((content_len + 1) *
sizeof(
wchar_t)));
109 if (hglbCopy != NULL) {
110 content = GlobalLock(hglbCopy);
111 MultiByteToWideChar(CP_UTF8,
117 GlobalUnlock(hglbCopy);
118 SetClipboardData(CF_UNICODETEXT, hglbCopy);
static osspriteop_area * buffer
The buffer characteristics.
Interface to platform-specific clipboard operations.
Content which corresponds to a single URL.
function table for clipboard operations.
void(* get)(char **buffer, size_t *length)
Core asks front end for clipboard contents.
static void gui_set_clipboard(const char *buffer, size_t length, nsclipboard_styles styles[], int n_styles)
Core tells front end to put given text in clipboard.
static void gui_get_clipboard(char **buffer, size_t *length)
Core asks front end for clipboard contents.
static struct gui_clipboard_table clipboard_table
struct gui_clipboard_table * win32_clipboard_table
The clipboard operation function table for win32.