home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / header45.zip / ulserrno.h < prev    next >
C/C++ Source or Header  |  1999-03-15  |  2KB  |  55 lines

  1. /*
  2.  * COMPONENT_NAME: wp.ulspc
  3.  *
  4.  * FUNCTIONS: ULS return codes
  5.  *
  6.  * (C) COPYRIGHT International Business Machines Corp. 1995
  7.  * All Rights Reserved
  8.  * Licensed Materials - Property of IBM
  9.  *
  10.  * US Government Users Restricted Rights - Use, duplication or
  11.  * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  12.  */
  13. #ifndef _ULS_ERRNO
  14. #define _ULS_ERRNO
  15.  
  16. #ifdef __cplusplus
  17.    extern "C" {
  18. #endif
  19.  
  20. #define ULS_API_ERROR_BASE                      0x00020400
  21. #define ULS_API_ERROR(x)                        (ULS_API_ERROR_BASE | (x))
  22.  
  23. typedef enum _uls_return_codes {
  24.      ULS_SUCCESS           =  0x00000000,
  25.      ULS_OTHER             =  ULS_API_ERROR(1),
  26.      ULS_ILLEGALSEQUENCE   =  ULS_API_ERROR(2),
  27.      ULS_MAXFILESPERPROC   =  ULS_API_ERROR(3),
  28.      ULS_MAXFILES          =  ULS_API_ERROR(4),
  29.      ULS_NOOP              =  ULS_API_ERROR(5),
  30.      ULS_TOOMANYKBD        =  ULS_API_ERROR(6),
  31.      ULS_KBDNOTFOUND       =  ULS_API_ERROR(7),
  32.      ULS_BADHANDLE         =  ULS_API_ERROR(8),
  33.      ULS_NODEAD            =  ULS_API_ERROR(9),
  34.      ULS_NOSCAN            =  ULS_API_ERROR(10),
  35.      ULS_INVALIDSCAN       =  ULS_API_ERROR(11),
  36.      ULS_NOTIMPLEMENTED    =  ULS_API_ERROR(12),
  37.      ULS_NOMEMORY          =  ULS_API_ERROR(13),
  38.      ULS_INVALID           =  ULS_API_ERROR(14),
  39.      ULS_BADOBJECT         =  ULS_API_ERROR(15),
  40.      ULS_NOTOKEN           =  ULS_API_ERROR(16),
  41.      ULS_NOMATCH           =  ULS_API_ERROR(17),
  42.      ULS_BUFFERFULL        =  ULS_API_ERROR(18),
  43.      ULS_RANGE             =  ULS_API_ERROR(19),
  44.      ULS_UNSUPPORTED       =  ULS_API_ERROR(20),
  45.      ULS_BADATTR           =  ULS_API_ERROR(21),
  46.      ULS_VERSION           =  ULS_API_ERROR(22)
  47. } uls_error_t;
  48.  
  49.  
  50. #ifdef __cplusplus
  51.    }
  52. #endif
  53.  
  54. #endif            /* _ULS_ERRNO */
  55.