| #define CBERR_BADNAME 1 | 
| #define CBERR_NOMEM 2 | 
| #define CBERR_OK 0 | 
| #define CBNAME_TEXT ("text") | 
| #define CBOP_APPEND 1 | 
| #define LEN_CLIPBOARD_NAME 15 | 
| int GUIAPI CreateClipBoard | ( | const char * | cb_name, | |
| size_t | size | |||
| ) | 
Creates a new clipboard.
This function creates a new clipboard with the name cb_name. MiniGUI itself creates a clipboard for text copying/pasting called CBNAME_TEXT.
| cb_name | The name of the new clipboard. | |
| size | The size of the clipboard. | 
| CBERR_OK | The clipboard created. | |
| CBERR_BADNAME | Duplicated clipboard name. | |
| CBERR_NOMEM | No enough memory. | 
| int GUIAPI DestroyClipBoard | ( | const char * | cb_name | ) | 
Destroys a new clipboard.
This function destroys a clipboard with the name cb_name.
| cb_name | The name of the clipboard. | 
| CBERR_OK | The clipboard has been destroyed. | |
| CBERR_BADNAME | Can not find the clipboard with the name. | 
| int GUIAPI GetClipBoardByte | ( | const char * | cb_name, | |
| int | index, | |||
| unsigned char * | byte | |||
| ) | 
Gets a byte from a clipboard.
This function gets a byte from the clipboard named cb_name.
| cb_name | The name of the clipboard. | |
| index | The index of the byte. | |
| byte | The buffer saving the returned byte. | 
| CBERR_OK | Success. | |
| CBERR_BADNAME | Bad clipboard name. | |
| CBERR_NOMEM | The index is beyond the data in the clipboard. | 
| size_t GUIAPI GetClipBoardData | ( | const char * | cb_name, | |
| void * | data, | |||
| size_t | n | |||
| ) | 
Gets the data of a clipboard.
This function gets the all data from the clipboard named cb_name.
| cb_name | The name of the clipboard. | |
| data | The pointer to a buffer will save the data. | |
| n | The length of the buffer. | 
| size_t GUIAPI GetClipBoardDataLen | ( | const char * | cb_name | ) | 
Gets the length of the data of a clipboard.
This function gets the data length of the clipboard named cb_name.
| cb_name | The name of the clipboard. | 
| int GUIAPI SetClipBoardData | ( | const char * | cb_name, | |
| void * | data, | |||
| size_t | n, | |||
| int | cbop | |||
| ) | 
Sets the data of a clipboard.
This function sets the data into the clipboard named cb_name.
| cb_name | The name of the clipboard. | |
| data | The pointer to the data. | |
| n | The length of the data. | |
| cbop | Type of clipboard operations, can be one of the following values:
  | 
| CBERR_OK | Success. | |
| CBERR_BADNAME | Bad clipboard name. | |
| CBERR_NOMEM | No enough memory. | 
 1.6.3