home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dsstlkt5.zip / dssos2tk / dss / DSSERR.H < prev    next >
Text File  |  1998-05-08  |  4KB  |  69 lines

  1. /**************************************************************************/
  2. /*                                                                        */
  3. /*              IBM OS/2(tm) Directory and Security Services (DSS)        */
  4. /*                            Version 5.0                                 */
  5. /*                   (C) Copyright IBM Corp. 1995                         */
  6. /*                  Licensed Materials - Property of IBM                  */
  7. /*                                                                        */
  8. /**************************************************************************/
  9.  
  10. /*
  11.  *
  12.  *      dsserr.h - DSS error definitions
  13.  *
  14.  */
  15.  
  16.  
  17.  
  18. #define BASE_COMMON            0
  19. #define BASE_APPLY           100
  20.  
  21. /*------------------------------------------------------------------------
  22. **
  23. ** Common Error Codes
  24. **
  25. **------------------------------------------------------------------------
  26. */
  27. #define DSS_Success           (BASE_COMMON)        // Success
  28.  
  29. #define DSS_ParamIsNULL       (BASE_COMMON + 1)    // Required parameter is NULL
  30. // information message        (BASE_COMMON + 2)
  31. #define DSS_InvalidSyntax     (BASE_COMMON + 3)    // Invalid command line syntax.
  32. #define DSS_PathNotFound      (BASE_COMMON + 4)    // Path not found.
  33. #define DSS_AccessDenied      (BASE_COMMON + 5)    // Access denied.
  34. #define DSS_RegistryNotFound  (BASE_COMMON + 6)    // Unable to contact registry.
  35. // unused                     (BASE_COMMON + 7)
  36. #define DSS_NotEnoughMemory   (BASE_COMMON + 8)    // Unable to allocate memory.
  37.  
  38. /*------------------------------------------------------------------------
  39. **
  40. ** ACL Apply Error Codes
  41. **
  42. **------------------------------------------------------------------------
  43. */
  44. #define DSS_ApplyExecuteDenied            (BASE_APPLY)       // Permission to execute the apply rpc is denied.
  45. #define DSS_ApplyInvalidParm_max_errors   (BASE_APPLY + 1)   // max_errors must be greater than zero.
  46. #define DSS_ApplyContainerInvalid         (BASE_APPLY + 2)   // pszContainer must be in the form of "x:<path>".
  47. #define DSS_ApplyContainerNotDirectory    (BASE_APPLY + 3)   // pszContainer must point to a directory.
  48. #define DSS_ApplyDriveNotLocalOrFixed     (BASE_APPLY + 4)   // Apply is not supported on redirected drives or removale media.
  49. #define DSS_ApplyEmptyManipList           (BASE_APPLY + 5)   // The manipulate command list must contain at least one entry.
  50. #define DSS_ApplyInvalidACL               (BASE_APPLY + 6)   // The ACL must contain at least one entry that provides control permission.
  51. #define DSS_ApplyInvalidACLType           (BASE_APPLY + 7)   // sec_acl_type is not valid.
  52. #define DSS_ApplyInvalidPermBits          (BASE_APPLY + 8)   // Invalid permission bits specified.
  53. #define DSS_ApplyInvalidACLEntryType      (BASE_APPLY + 9)   // Unsupported ACL entry type.
  54. #define DSS_ApplyInvalidActionCode        (BASE_APPLY + 10)  // Invalid action code.
  55. #define DSS_ApplyIDNotFound               (BASE_APPLY + 11)  // ID not found in registry.
  56. #define DSS_ApplyForeignIDFormat          (BASE_APPLY + 12)  // Foreign ID cell and name are not in the same format.
  57. #define DSS_ApplyMultipleTarget           (BASE_APPLY + 13)  // Target specified multiple times...
  58. #define DSS_ApplyErrorBufferFull          (BASE_APPLY + 14)  // An error occurred and the error buffer is full.
  59. #define DSS_ApplyInterrupted              (BASE_APPLY + 15)  // Apply operation aborted.
  60. #define DSS_ApplyIUnexpectedError         (BASE_APPLY + 16)  // Unexpected error.
  61. #define DSS_ApplyIACLWrite                (BASE_APPLY + 17)  // Error writing to to ACL database.
  62. #define DSS_ApplyIACLRead                 (BASE_APPLY + 18)  // Error reading from ACL database.
  63. // informational message                  (BASE_APPLY + 19)
  64. // ...
  65. // informational message                  (BASE_APPLY + 27)
  66. #define DSS_ApplyErrorLoggedOnServer      (BASE_APPLY + 28)  // Apply error logged on server.
  67. #define DSS_ApplyInvalidParm_tolerance    (BASE_APPLY + 29)  // Incorrect value specified for tolerance.
  68.  
  69.