Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
5.6 KiB

  1. //--------------------------------------------------------------------------------------------
  2. //
  3. // Copyright (c) Microsoft Corporation, 1996
  4. //
  5. // Description:
  6. //
  7. // Microsoft LDAP Client.
  8. //
  9. // Client error codes.
  10. //
  11. // Authors:
  12. //
  13. // Robert Carney
  14. // davidsan 04/23/96 converted to real HRESULTS
  15. //
  16. //--------------------------------------------------------------------------------------------
  17. #ifndef _LDAPERR_H
  18. #define _LDAPERR_H
  19. //--------------------------------------------------------------------------------------------
  20. //
  21. // New HRESULTS for use with LDAP. We use FACILITY_ITF rather than obtaining our own
  22. // facility for the time being; this might change, but it probably won't.
  23. //
  24. //--------------------------------------------------------------------------------------------
  25. #define LDAP_E_VERSION MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8000)
  26. #define LDAP_E_NOTCONNECTED MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8001)
  27. #define LDAP_E_SOCKETCLOSED MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8002)
  28. #define LDAP_E_HOSTNOTFOUND MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8003)
  29. #define LDAP_E_INVALIDSOCKET MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8004)
  30. #define LDAP_E_CANTCONNECT MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8005)
  31. #define LDAP_E_HOSTDROPPED MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8006)
  32. #define LDAP_E_NODATA MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8007)
  33. #define LDAP_E_CANTSEND MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8008)
  34. #define LDAP_E_NOTLOGGEDON MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8009)
  35. #define LDAP_E_NETWORKDOWN MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x800a)
  36. #define LDAP_E_LOSTCONNECTION MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x800b)
  37. #define LDAP_E_ALREADYCONNECTED MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x800c)
  38. #define LDAP_E_INVALIDXID MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x800d)
  39. #define LDAP_E_INVALIDXTYPE MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x800e)
  40. #define LDAP_E_TIMEOUT MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x800f)
  41. #define LDAP_E_CANCELLED MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8010)
  42. #define LDAP_E_UNEXPECTEDDATA MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8011)
  43. #define LDAP_E_NOTENOUGHDATA MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8012)
  44. #define LDAP_E_AUTHNOTAVAIL MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8013)
  45. #define LDAP_E_BUFFERTOOSMALL MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8014)
  46. #define LDAP_E_OUTOFSEQUENCE MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8015)
  47. #define LDAP_S_TIMEEXCEEDED MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x8016)
  48. #define LDAP_S_SIZEEXCEEDED MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x8017)
  49. #define LDAP_E_OPERATIONS MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8020)
  50. #define LDAP_E_PROTOCOL MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8021)
  51. #define LDAP_E_AUTHMETHOD MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8022)
  52. #define LDAP_E_STRONGAUTHREQUIRED MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8023)
  53. #define LDAP_E_NOSUCHATTRIBUTE MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8024)
  54. #define LDAP_E_UNDEFINEDTYPE MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8025)
  55. #define LDAP_E_MATCHING MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8026)
  56. #define LDAP_E_CONSTRAINT MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8027)
  57. #define LDAP_E_ATTRIBORVALEXISTS MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8028)
  58. #define LDAP_E_SYNTAX MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8029)
  59. #define LDAP_E_NOSUCHOBJECT MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x802a)
  60. #define LDAP_E_ALIAS MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x802b)
  61. #define LDAP_E_DNSYNTAX MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x802c)
  62. #define LDAP_E_ISLEAF MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x802d)
  63. #define LDAP_E_ALIASDEREF MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x802e)
  64. #define LDAP_E_AUTH MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x802f)
  65. #define LDAP_E_CREDENTIALS MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8030)
  66. #define LDAP_E_RIGHTS MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8031)
  67. #define LDAP_E_BUSY MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8032)
  68. #define LDAP_E_UNAVAILABLE MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8033)
  69. #define LDAP_E_UNWILLING MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8034)
  70. #define LDAP_E_LOOP MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8035)
  71. #define LDAP_E_NAMING MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8036)
  72. #define LDAP_E_OBJECTCLASS MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8037)
  73. #define LDAP_E_NOTALLOWEDONNONLEAF MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8038)
  74. #define LDAP_E_NOTALLOWEDONRDN MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8039)
  75. #define LDAP_E_ALREADYEXISTS MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x803a)
  76. #define LDAP_E_NOOBJECTCLASSMODS MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x803b)
  77. #define LDAP_E_RESULTSTOOLARGE MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x803c)
  78. #define LDAP_E_OTHER MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x803d)
  79. #define LDAP_E_SERVERDOWN MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x803e)
  80. #define LDAP_E_LOCAL MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x803f)
  81. #define LDAP_E_ENCODING MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8040)
  82. #define LDAP_E_DECODING MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8041)
  83. #define LDAP_E_AUTHUNKNOWN MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8042)
  84. #define LDAP_E_FILTER MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8043)
  85. #define LDAP_E_USERCANCELLED MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x8044)
  86. #endif // _LDAPERR_H