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.

53 lines
2.0 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: N C E R R O R . H
  7. //
  8. // Contents: NetCfg specific error codes.
  9. //
  10. // Notes:
  11. //
  12. // Author: danielwe 25 Feb 1997
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #ifndef _NCERROR_H_
  17. #define _NCERROR_H_
  18. #include <winerror.h>
  19. //
  20. // Error codes are arbitrarily numbered starting at A000.
  21. //
  22. const HRESULT NETSETUP_E_ANS_FILE_ERROR = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0xA002);
  23. const HRESULT NETSETUP_E_NO_ANSWERFILE = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0xA003);
  24. const HRESULT NETSETUP_E_NO_EXACT_MATCH = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0xA004);
  25. const HRESULT NETSETUP_E_AMBIGUOUS_MATCH = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0xA005);
  26. //
  27. // error codes (A020 - A040) reserved for netcfg.dll
  28. //
  29. const HRESULT NETCFG_E_PSNRET_INVALID = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0xA041);
  30. const HRESULT NETCFG_E_PSNRET_INVALID_NCPAGE= MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0xA042);
  31. //
  32. // Primarily join domain error codes but a few have crept into general use.
  33. //
  34. // Specifically: NETCFG_E_NAME_IN_USE and NETCFG_E_NOT_JOINED
  35. //
  36. const HRESULT NETCFG_E_ALREADY_JOINED = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0xA050);
  37. const HRESULT NETCFG_E_NAME_IN_USE = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0xA051);
  38. const HRESULT NETCFG_E_NOT_JOINED = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0xA052);
  39. const HRESULT NETCFG_E_MACHINE_IS_DC = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0xA053);
  40. const HRESULT NETCFG_E_NOT_A_SERVER = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0xA054);
  41. const HRESULT NETCFG_E_INVALID_ROLE = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0xA055);
  42. const HRESULT NETCFG_E_INVALID_DOMAIN = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0xA056);
  43. #endif // _NCERROR_H_