[Previous] [Contents] [Index] [Next]

PhClipboardCopyString()

Copy string-only data to the clipboard

Synopsis:

int PhClipboardCopyString( unsigned short ig, 
                           const char *string );

Description:

This function is a simple cover function for copying string-only data to the clipboard. It builds a PhClipHeader entry:

{ "TEXT", strlen(string), string }

and then calls PhClipboardCopy() to perform the operation. The string must end with \0.

Each input group has its own private clipboard, which you can select through the ig parameter. You can determine the current input group as follows:

Returns:

0
Successful completion.
-1
An error occurred.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PhClipboardCopy(), PhClipboardPasteFinish(), PhClipboardPasteStart(), PhClipboardPasteString(), PhClipboardPasteType(), PhClipboardPasteTypeN(), PhClipHeader


[Previous] [Contents] [Index] [Next]