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

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 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)
 

Variables

static const char * CF_STANDARD_STRINGS [CF_MAX]
 

Macro Definition Documentation

◆ TAG

#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

◆ ClipboardCountFormats()

UINT32 ClipboardCountFormats ( wClipboard *  clipboard)
Here is the call graph for this function:

◆ ClipboardCountRegisteredFormats()

UINT32 ClipboardCountRegisteredFormats ( wClipboard *  clipboard)

◆ ClipboardCreate()

wClipboard* ClipboardCreate ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClipboardDestroy()

void ClipboardDestroy ( wClipboard *  clipboard)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClipboardEmpty()

BOOL ClipboardEmpty ( wClipboard *  clipboard)
Here is the caller graph for this function:

◆ ClipboardFindFormat()

static wClipboardFormat* ClipboardFindFormat ( wClipboard *  clipboard,
UINT32  formatId,
const char *  name 
)
static
Here is the caller graph for this function:

◆ ClipboardFindSynthesizer()

static wClipboardSynthesizer* ClipboardFindSynthesizer ( wClipboardFormat *  format,
UINT32  formatId 
)
static
Here is the caller graph for this function:

◆ ClipboardGetData()

void* ClipboardGetData ( wClipboard *  clipboard,
UINT32  formatId,
UINT32 *  pSize 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClipboardGetDelegate()

wClipboardDelegate* ClipboardGetDelegate ( wClipboard *  clipboard)
Here is the caller graph for this function:

◆ ClipboardGetFormatId()

UINT32 ClipboardGetFormatId ( wClipboard *  clipboard,
const char *  name 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClipboardGetFormatIds()

UINT32 ClipboardGetFormatIds ( wClipboard *  clipboard,
UINT32 **  ppFormatIds 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClipboardGetFormatName()

const char* ClipboardGetFormatName ( wClipboard *  clipboard,
UINT32  formatId 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClipboardGetOwner()

UINT64 ClipboardGetOwner ( wClipboard *  clipboard)

◆ ClipboardGetRegisteredFormatIds()

UINT32 ClipboardGetRegisteredFormatIds ( wClipboard *  clipboard,
UINT32 **  ppFormatIds 
)
Here is the caller graph for this function:

◆ ClipboardInitFormats()

static BOOL ClipboardInitFormats ( wClipboard *  clipboard)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClipboardInitLocalFileSubsystem()

static void ClipboardInitLocalFileSubsystem ( wClipboard *  clipboard)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClipboardLock()

void ClipboardLock ( wClipboard *  clipboard)
Here is the call graph for this function:

◆ ClipboardRegisterFormat()

UINT32 ClipboardRegisterFormat ( wClipboard *  clipboard,
const char *  name 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClipboardRegisterSynthesizer()

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:

◆ ClipboardSetData()

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:

◆ ClipboardSetOwner()

void ClipboardSetOwner ( wClipboard *  clipboard,
UINT64  ownerId 
)

◆ ClipboardUnlock()

void ClipboardUnlock ( wClipboard *  clipboard)
Here is the call graph for this function:

Variable Documentation

◆ CF_STANDARD_STRINGS

const char* CF_STANDARD_STRINGS[CF_MAX]
static
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/