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.

103 lines
3.4 KiB

  1. //***************************************************************************
  2. //
  3. // NLBERR.H
  4. //
  5. // Purpose: A list of NLB-specific error codes that are visible
  6. // externally, via WMI.
  7. //
  8. // Copyright (c)2001 Microsoft Corporation, All Rights Reserved
  9. //
  10. // History:
  11. //
  12. // 08/01/01 JosephJ Created
  13. //
  14. //***************************************************************************
  15. #pragma once
  16. /*
  17. NLB ERRORs are reported in two UINTs.
  18. The first UINT identifies the error "meta-type" -- WBEM rror, wlbscrl error,
  19. or errro defined here itself.
  20. The second UINT is specific to the meta-type.
  21. */
  22. typedef UINT NLBMETAERROR;
  23. //
  24. // It's values are one of the NLBMETAERR_XXX constants below.
  25. //
  26. typedef UINT NLBERROR;
  27. //
  28. // It's values are one of the NLBERR_XXX constants below.
  29. //
  30. #define NLBMETAERR_OK 0 // NO ERROR -- SUCCESS
  31. #define NLBMETAERR_NLBERR 1 // One of the NLBERR_XXX constants below
  32. #define NLBMETAERR_WLBSCTRL 2 // A WLBS error defined in wlbsctrl.h
  33. #define NLBMETAERR_WIN32 3 // A Win32 Error
  34. #define NLBMETAERR_HRESULT 4 // A HRESULT Error (includes WBEMSTATUS)
  35. //
  36. // Utility macros. NOTE: NLBERR_NO_CHANGE is considered an error by
  37. // these macros. The return value of the few APIs that return NLBERR_NO_CHANGE
  38. // need to be processed specially.
  39. //
  40. #define NLBOK(_nlberr) ( (_nlberr) == NLBERR_OK)
  41. #define NLBFAILED(_nlberr) (!NLBOK(_nlberr))
  42. #define NLBERR_OK 0
  43. //
  44. // General errors
  45. //
  46. #define NLBERR_INTERNAL_ERROR 100
  47. #define NLBERR_RESOURCE_ALLOCATION_FAILURE 101
  48. #define NLBERR_LLAPI_FAILURE 102
  49. #define NLBERR_UNIMPLEMENTED 103
  50. #define NLBERR_NOT_FOUND 104
  51. #define NLBERR_ACCESS_DENIED 105
  52. #define NLBERR_NO_CHANGE 106
  53. #define NLBERR_INITIALIZATION_FAILURE 107
  54. #define NLBERR_CANCELLED 108
  55. #define NLBERR_BUSY 109
  56. #define NLBERR_OPERATION_FAILED 110
  57. //
  58. // Errors related to analyze and update-configuration.
  59. //
  60. #define NLBERR_OTHER_UPDATE_ONGOING 200
  61. #define NLBERR_UPDATE_PENDING 201
  62. #define NLBERR_INVALID_CLUSTER_SPECIFICATION 202
  63. #define NLBERR_INVALID_IP_ADDRESS_SPECIFICATION 203
  64. #define NLBERR_COULD_NOT_MODIFY_IP_ADDRESSES 204
  65. #define NLBERR_SUBNET_MISMATCH 205
  66. #define NLBERR_NLB_NOT_INSTALLED 306
  67. #define NLBERR_CLUSTER_IP_ALREADY_EXISTS 307
  68. #define NLBERR_INTERFACE_NOT_FOUND 308
  69. #define NLBERR_INTERFACE_NOT_BOUND_TO_NLB 309
  70. #define NLBERR_INTERFACE_NOT_COMPATIBLE_WITH_NLB 310
  71. #define NLBERR_INTERFACE_DISABLED 311
  72. #define NLBERR_HOST_NOT_FOUND 312
  73. //
  74. // Errors related to remote configuration through WMI
  75. //
  76. #define NLBERR_AUTHENTICATION_FAILURE 400
  77. #define NLBERR_RPC_FAILURE 401
  78. #define NLBERR_PING_HOSTUNREACHABLE 402
  79. #define NLBERR_PING_CANTRESOLVE 403
  80. #define NLBERR_PING_TIMEOUT 404
  81. //
  82. // Errors related to cluster-wide analysis
  83. //
  84. #define NLBERR_INCONSISTANT_CLUSTER_CONFIGURATION 501
  85. #define NLBERR_MISMATCHED_PORTRULES 502
  86. #define NLBERR_HOSTS_PARTITIONED 503