diff options
Diffstat (limited to 'win32/droplet/rliberr.h')
-rw-r--r-- | win32/droplet/rliberr.h | 136 |
1 files changed, 136 insertions, 0 deletions
diff --git a/win32/droplet/rliberr.h b/win32/droplet/rliberr.h new file mode 100644 index 0000000..8fe3a80 --- /dev/null +++ b/win32/droplet/rliberr.h @@ -0,0 +1,136 @@ +/* + * AUTHOR + * N. Nielsen + * + * VERSION + * 2.2.0b + * + * LICENSE + * This software is in the public domain. + * + * The software is provided "as is", without warranty of any kind, + * express or implied, including but not limited to the warranties + * of merchantability, fitness for a particular purpose, and + * noninfringement. In no event shall the author(s) be liable for any + * claim, damages, or other liability, whether in an action of + * contract, tort, or otherwise, arising from, out of, or in connection + * with the software or the use or other dealings in the software. + * + * SUPPORT + * Send bug reports to: <nielsen@memberwebs.com> + */ + +#ifndef _RLIBERR_H_ +#define _RLIBERR_H_ + +#ifndef _WINERROR_ + #error Include winerror.h first. +#endif + +#define HRESULT_FROM_RLIB(code) \ + MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RLIB, abs(code)) + +/* ------------------------------------------------------------------------ *\ + Rlib Errors +\* ------------------------------------------------------------------------ */ +// +// Values are 32 bit values layed out as follows: +// +// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 +// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 +// +---+-+-+-----------------------+-------------------------------+ +// |Sev|C|R| Facility | Code | +// +---+-+-+-----------------------+-------------------------------+ +// +// where +// +// Sev - is the severity code +// +// 00 - Success +// 01 - Informational +// 10 - Warning +// 11 - Error +// +// C - is the Customer code flag +// +// R - is a reserved bit +// +// Facility - is the facility code +// +// Code - is the facility's status code +// +// +// Define the facility codes +// +#define FACILITY_RLIB 0x196 + + +// +// Define the severity codes +// + + +// +// MessageId: RLIB_E_NOMEM +// +// MessageText: +// +// Out of Memory. +// +#define RLIB_E_NOMEM ((HRESULT)0x81960001L) + +// +// MessageId: RLIB_E_SYNTAX +// +// MessageText: +// +// Rep script syntax error. +// +#define RLIB_E_SYNTAX ((HRESULT)0x81960002L) + +// +// MessageId: RLIB_E_REGEXP +// +// MessageText: +// +// Regular expression syntax error. +// +#define RLIB_E_REGEXP ((HRESULT)0x81960003L) + +// +// MessageId: RLIB_E_LOOP +// +// MessageText: +// +// Rep encountered an endless loop. +// +#define RLIB_E_LOOP ((HRESULT)0x81960004L) + +// +// MessageId: RLIB_E_USER +// +// MessageText: +// +// User defined error. +// +#define RLIB_E_USER ((HRESULT)0x81960005L) + +// +// MessageId: RLIB_E_IOERR +// +// MessageText: +// +// There was an error reading or writing the data. +// +#define RLIB_E_IOERR ((HRESULT)0x81960006L) + +// +// MessageId: RLIB_E_INVARG +// +// MessageText: +// +// Programmer Error: Invalid argument. +// +#define RLIB_E_INVARG ((HRESULT)0x8196000AL) + +#endif // _RLIBERR_H_
\ No newline at end of file |