Module clipboard_win::raw
source · Expand description
Raw bindings to Windows clipboard.
General information
All pre & post conditions are stated in description of functions.
Open clipboard
To access any information inside clipboard it is necessary to open it by means of open().
After that Clipboard cannot be opened any more until close() is called.
Structs
Enumerator over available clipboard formats.
Functions
Closes clipboard.
Retrieves number of currently available formats on clipboard.
Empties clipboard.
Returns format name based on it’s code.
Returns format name based on it’s code (allocating variant suitable for big names)
Copies raw bytes from clipboard with specified
format
Reads bitmap image, appending image to the
out
vector and returning number of bytes read on
success.Retrieves raw pointer to clipboard data.
Retrieves file list from clipboard, appending each element to the provided storage.
Retrieves the window handle of the current owner of the clipboard.
Copies raw bytes from clipboard with specified
format
, appending to out
buffer.Copies raw bytes from clipboard with specified
format
, appending to out
buffer.Determines whenever provided clipboard format is available on clipboard or not.
Opens clipboard.
Opens clipboard associating it with specified window handle.
Registers a new clipboard format with specified name.
Registers a new clipboard format with specified name as C wide string (meaning it must have null
char at the end).
Retrieves clipboard sequence number.
Copies raw bytes onto clipboard with specified
format
, returning whether it was successful.Sets bitmap (header + RGB) onto clipboard, from raw bytes.
Set list of file paths to clipboard.
Copies unicode string onto clipboard, performing necessary conversions, returning true on
success.
Copies raw bytes onto the clipboard with the specified
format
, returning whether it was successful.Retrieves size of clipboard data for specified format.
Retrieves size of clipboard data for specified format.