FreeRDP
|
#include <winpr/config.h>
#include <winpr/crt.h>
#include <winpr/collections.h>
#include <winpr/wlog.h>
#include <winpr/clipboard.h>
#include "clipboard.h"
#include "synthetic_file.h"
#include "../log.h"
Macros | |
#define | TAG WINPR_TAG("clipboard") |
Functions | |
const char * | ClipboardGetFormatIdString (UINT32 formatId) |
static wClipboardFormat * | ClipboardFindFormat (wClipboard *clipboard, UINT32 formatId, const char *name) |
static wClipboardSynthesizer * | ClipboardFindSynthesizer (wClipboardFormat *format, UINT32 formatId) |
void | ClipboardLock (wClipboard *clipboard) |
void | ClipboardUnlock (wClipboard *clipboard) |
BOOL | ClipboardEmpty (wClipboard *clipboard) |
UINT32 | ClipboardCountRegisteredFormats (wClipboard *clipboard) |
UINT32 | ClipboardGetRegisteredFormatIds (wClipboard *clipboard, UINT32 **ppFormatIds) |
UINT32 | ClipboardRegisterFormat (wClipboard *clipboard, const char *name) |
BOOL | ClipboardRegisterSynthesizer (wClipboard *clipboard, UINT32 formatId, UINT32 syntheticId, CLIPBOARD_SYNTHESIZE_FN pfnSynthesize) |
UINT32 | ClipboardCountFormats (wClipboard *clipboard) |
UINT32 | ClipboardGetFormatIds (wClipboard *clipboard, UINT32 **ppFormatIds) |
static void | ClipboardUninitFormats (wClipboard *clipboard) |
static BOOL | ClipboardInitFormats (wClipboard *clipboard) |
UINT32 | ClipboardGetFormatId (wClipboard *clipboard, const char *name) |
const char * | ClipboardGetFormatName (wClipboard *clipboard, UINT32 formatId) |
void * | ClipboardGetData (wClipboard *clipboard, UINT32 formatId, UINT32 *pSize) |
BOOL | ClipboardSetData (wClipboard *clipboard, UINT32 formatId, const void *data, UINT32 size) |
UINT64 | ClipboardGetOwner (wClipboard *clipboard) |
void | ClipboardSetOwner (wClipboard *clipboard, UINT64 ownerId) |
wClipboardDelegate * | ClipboardGetDelegate (wClipboard *clipboard) |
static void | ClipboardInitLocalFileSubsystem (wClipboard *clipboard) |
wClipboard * | ClipboardCreate (void) |
void | ClipboardDestroy (wClipboard *clipboard) |
static BOOL | is_dos_drive (const char *path, size_t len) |
char * | parse_uri_to_local_file (const char *uri, size_t uri_len) |
Variables | |
const char * | mime_text_plain = "text/plain" |
static const char * | CF_STANDARD_STRINGS [] |
#define TAG WINPR_TAG("clipboard") |
WinPR: Windows Portable Runtime Clipboard Functions
Copyright 2014 Marc-Andre Moreau marca ndre .more au@g mail. com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
UINT32 ClipboardCountFormats | ( | wClipboard * | clipboard | ) |
UINT32 ClipboardCountRegisteredFormats | ( | wClipboard * | clipboard | ) |
wClipboard* ClipboardCreate | ( | void | ) |
void ClipboardDestroy | ( | wClipboard * | clipboard | ) |
BOOL ClipboardEmpty | ( | wClipboard * | clipboard | ) |
|
static |
|
static |
void* ClipboardGetData | ( | wClipboard * | clipboard, |
UINT32 | formatId, | ||
UINT32 * | pSize | ||
) |
wClipboardDelegate* ClipboardGetDelegate | ( | wClipboard * | clipboard | ) |
UINT32 ClipboardGetFormatId | ( | wClipboard * | clipboard, |
const char * | name | ||
) |
UINT32 ClipboardGetFormatIds | ( | wClipboard * | clipboard, |
UINT32 ** | ppFormatIds | ||
) |
const char* ClipboardGetFormatIdString | ( | UINT32 | formatId | ) |
const char* ClipboardGetFormatName | ( | wClipboard * | clipboard, |
UINT32 | formatId | ||
) |
UINT64 ClipboardGetOwner | ( | wClipboard * | clipboard | ) |
UINT32 ClipboardGetRegisteredFormatIds | ( | wClipboard * | clipboard, |
UINT32 ** | ppFormatIds | ||
) |
|
static |
|
static |
void ClipboardLock | ( | wClipboard * | clipboard | ) |
UINT32 ClipboardRegisterFormat | ( | wClipboard * | clipboard, |
const char * | name | ||
) |
BOOL ClipboardRegisterSynthesizer | ( | wClipboard * | clipboard, |
UINT32 | formatId, | ||
UINT32 | syntheticId, | ||
CLIPBOARD_SYNTHESIZE_FN | pfnSynthesize | ||
) |
BOOL ClipboardSetData | ( | wClipboard * | clipboard, |
UINT32 | formatId, | ||
const void * | data, | ||
UINT32 | size | ||
) |
void ClipboardSetOwner | ( | wClipboard * | clipboard, |
UINT64 | ownerId | ||
) |
|
static |
void ClipboardUnlock | ( | wClipboard * | clipboard | ) |
|
static |
char* parse_uri_to_local_file | ( | const char * | uri, |
size_t | uri_len | ||
) |
|
static |
Clipboard (Windows): msdn.microsoft.com/en-us/library/windows/desktop/ms648709/
W3C Clipboard API and events: http://www.w3.org/TR/clipboard-apis/
const char* mime_text_plain = "text/plain" |