|
GEMLIB
0.44.0
|
interprocess cut & paste operations More...
Macros | |
| #define | scrp_clear() mt_scrp_clear(aes_global) |
| #define | scrp_read(a) mt_scrp_read(a,aes_global) |
| #define | scrp_write(a) mt_scrp_write(a,aes_global) |
Functions | |
| short | mt_scrp_clear (short *global_aes) |
| short | mt_scrp_read (char *Scrappath, short *global_aes) |
| short | mt_scrp_write (const char *Scrappath, short *global_aes) |
interprocess cut & paste operations
The Scrap Library is used to maintain the location of the clipboard directory used for interprocess data exchange.
| #define scrp_clear | ( | ) | mt_scrp_clear(aes_global) |
single-thread version of mt_scrp_clear()
| #define scrp_read | ( | a | ) | mt_scrp_read(a,aes_global) |
single-thread version of mt_scrp_read()
| #define scrp_write | ( | a | ) | mt_scrp_write(a,aes_global) |
single-thread version of mt_scrp_write()
| short mt_scrp_clear | ( | short * | global_aes | ) |
clear the content of the clipboard directory
| global_aes | global AES array |
This function deletes all the files in the clipboard directory, (not only files named 'SCRAP.*').
| short mt_scrp_read | ( | char * | Scrappath, |
| short * | global_aes | ||
| ) |
returns the location of the current clipboard directory.
| Scrappath | is a pointer to a character buffer of at least 128 bytes into which the clipboard path will be placed. |
| global_aes | global AES array |
The system scrap directory is a global resource. Some programs incorrectly call mt_scrp_write() with a path and filename when only a pathname should be used. The following is an example of a correctly formatted Scrappath argument:
C:\CLIPBRD\
Unfortunately, not all programs adhere exactly to this standard. For this reason, programs reading this information from mt_scrp_read() should be especially careful that the information returned is parsed correctly. In addition, don't count on a trailing backslash or the existence of a drive specification.
If a value of 0 is returned and the application wishes to write a scrap to the clipboard you should follow these steps:
'\CLIPBRD\' on the root directory of the user's boot drive ('C:' or 'A:').'SCRAP.???' where '???' signifies the type of information contained in the file."C:\\CLIPBRD\\". | short mt_scrp_write | ( | const char * | Scrappath, |
| short * | global_aes | ||
| ) |
sets the location of the clipboard directory.
| Scrappath | points to a NULL-terminated path string containing a valid drive and path specification with a closing backslash. The following is an example of a correctly formatted Scrappath argument: C:\CLIPBRD\ |
| global_aes | global AES array |
The scrap directory is a global resource. This call should only be used in two circumstances as follows: when used to set the default location of the scrap directory using a CPX or accessory at bootup or by the user's request.
1.8.9.1