Lazy WinAPI
Macros | Functions
clipboard.h File Reference

Header of Clipboard module. More...

#include <stdbool.h>
#include <stdint.h>
#include <wchar.h>
#include <windows.h>

Go to the source code of this file.

Macros

#define Clipboard_get_seq_num()   GetClipboardSequenceNumber()
 Alias to GetClipboardSequenceNumber(). More...
 
#define Clipboard_next_avail_format()   EnumClipboardFormats(0)
 Alias to EnumClipboardFormats(0). More...
 
#define Clipboard_count_avail_formats()   CountClipboardFormats()
 Alias to CountClipboardFormats(). More...
 

Functions

bool Clipboard_open ()
 Opens clipboard for use in the current thread. More...
 
bool Clipboard_close ()
 Closes clipboard. More...
 
bool Clipboard_empty ()
 Empties clipboard. More...
 
size_t Clipboard_get_size (UINT format)
 Retrieves size in bytes of clipboard content. More...
 
size_t Clipboard_get (UINT format, uint8_t *ptr, size_t size)
 Gets clipboard content of specific format. More...
 
bool Clipboard_set (UINT format, const uint8_t *ptr, size_t size)
 Sets clipboard content of specific format. More...
 
bool Clipboard_set_wide_string (const wchar_t *text)
 Sets string onto clipboard as format CF_UNICODETEXT. More...
 
bool Clipboard_set_string (const char *text)
 Sets wide string onto clipboard as format CF_TEXT. More...
 
bool Clipboard_is_format_avail (UINT format)
 
UINT Clipboard_register_format (const wchar_t *name)
 Registers new clipboard format. More...
 
int Clipboard_get_format_name (UINT format, wchar_t *buffer, size_t size)
 Retrieves the name of clipboard format. More...
 

Detailed Description

Header of Clipboard module.