FreeRDP
clipboard.c File Reference
#include <winpr/crt.h>
#include <winpr/collections.h>
#include <winpr/wlog.h>
#include <winpr/clipboard.h>
#include "clipboard.h"
#include "../log.h"

Macros

#define TAG   WINPR_TAG("clipboard")
 

Functions

wClipboardFormat * ClipboardFindFormat (wClipboard *clipboard, UINT32 formatId, const char *name)
 
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)
 
BOOL ClipboardInitFormats (wClipboard *clipboard)
 
UINT32 ClipboardGetFormatId (wClipboard *clipboard, const char *name)
 
const char * ClipboardGetFormatName (wClipboard *clipboard, UINT32 formatId)
 
voidClipboardGetData (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)
 
void ClipboardInitLocalFileSubsystem (wClipboard *clipboard)
 
wClipboard * ClipboardCreate ()
 
void ClipboardDestroy (wClipboard *clipboard)
 

Variables

const char * CF_STANDARD_STRINGS [CF_MAX]
 

Macro Definition Documentation

#define TAG   WINPR_TAG("clipboard")

WinPR: Windows Portable Runtime Clipboard Functions

Copyright 2014 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.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.

Function Documentation

UINT32 ClipboardCountFormats ( wClipboard *  clipboard)

Here is the call graph for this function:

UINT32 ClipboardCountRegisteredFormats ( wClipboard *  clipboard)
wClipboard* ClipboardCreate ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void ClipboardDestroy ( wClipboard *  clipboard)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL ClipboardEmpty ( wClipboard *  clipboard)

Here is the caller graph for this function:

wClipboardFormat* ClipboardFindFormat ( wClipboard *  clipboard,
UINT32  formatId,
const char *  name 
)

Here is the caller graph for this function:

wClipboardSynthesizer* ClipboardFindSynthesizer ( wClipboardFormat *  format,
UINT32  formatId 
)

Here is the caller graph for this function:

void* ClipboardGetData ( wClipboard *  clipboard,
UINT32  formatId,
UINT32 pSize 
)

Here is the call graph for this function:

Here is the caller graph for this function:

wClipboardDelegate* ClipboardGetDelegate ( wClipboard *  clipboard)

Here is the caller graph for this function:

UINT32 ClipboardGetFormatId ( wClipboard *  clipboard,
const char *  name 
)

Here is the call graph for this function:

Here is the caller graph for this function:

UINT32 ClipboardGetFormatIds ( wClipboard *  clipboard,
UINT32 **  ppFormatIds 
)

Here is the call graph for this function:

Here is the caller graph for this function:

const char* ClipboardGetFormatName ( wClipboard *  clipboard,
UINT32  formatId 
)

Here is the call graph for this function:

Here is the caller graph for this function:

UINT64 ClipboardGetOwner ( wClipboard *  clipboard)
UINT32 ClipboardGetRegisteredFormatIds ( wClipboard *  clipboard,
UINT32 **  ppFormatIds 
)

Here is the caller graph for this function:

BOOL ClipboardInitFormats ( wClipboard *  clipboard)

Here is the call graph for this function:

Here is the caller graph for this function:

void ClipboardInitLocalFileSubsystem ( wClipboard *  clipboard)

Here is the call graph for this function:

Here is the caller graph for this function:

void ClipboardLock ( wClipboard *  clipboard)

Here is the call graph for this function:

UINT32 ClipboardRegisterFormat ( wClipboard *  clipboard,
const char *  name 
)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL ClipboardRegisterSynthesizer ( wClipboard *  clipboard,
UINT32  formatId,
UINT32  syntheticId,
CLIPBOARD_SYNTHESIZE_FN  pfnSynthesize 
)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL ClipboardSetData ( wClipboard *  clipboard,
UINT32  formatId,
const void data,
UINT32  size 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void ClipboardSetOwner ( wClipboard *  clipboard,
UINT64  ownerId 
)
void ClipboardUnlock ( wClipboard *  clipboard)

Here is the call graph for this function:

Variable Documentation

const char* CF_STANDARD_STRINGS[CF_MAX]
Initial value:
=
{
"CF_RAW",
"CF_TEXT",
"CF_BITMAP",
"CF_METAFILEPICT",
"CF_SYLK",
"CF_DIF",
"CF_TIFF",
"CF_OEMTEXT",
"CF_DIB",
"CF_PALETTE",
"CF_PENDATA",
"CF_RIFF",
"CF_WAVE",
"CF_UNICODETEXT",
"CF_ENHMETAFILE",
"CF_HDROP",
"CF_LOCALE",
"CF_DIBV5"
}

Clipboard (Windows): msdn.microsoft.com/en-us/library/windows/desktop/ms648709/

W3C Clipboard API and events: http://www.w3.org/TR/clipboard-apis/