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.

71 lines
3.1 KiB

  1. //--------------------------------------------------------------------------
  2. //
  3. // Module Name: ULSERROR.H
  4. //
  5. // Brief Description: This module contains declarations for the MS Internet
  6. // User Location Service error codes.
  7. //
  8. // Author: Kent Settle (kentse)
  9. // Created: 27-Feb-1996
  10. //
  11. // Copyright (c) 1996 Microsoft Corporation
  12. //
  13. //--------------------------------------------------------------------------
  14. #ifndef _ULSERROR_H_
  15. #define _ULSERROR_H_
  16. #include <pshpack8.h> /* Assume 8 byte packing throughout */
  17. // HRESULTS
  18. #define FACILITY_ULS 0x321 // random, sort of.
  19. #define ULS_HR(x) MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ULS, x)
  20. #define ULS_SUCCESS NOERROR
  21. #define ULS_E_INVALID_POINTER E_POINTER
  22. #define ULS_E_OUTOFMEMORY E_OUTOFMEMORY
  23. #define ULS_E_INVALID_HANDLE E_HANDLE
  24. #define ULS_E_NOINTERFACE E_NOINTERFACE // interface not supported.
  25. #define ULS_E_THREAD_FAILURE ULS_HR(1) // thread creation failed.
  26. #define ULS_E_NO_SERVER ULS_HR(2) // server connection failed.
  27. #define ULS_E_ERROR_ON_SERVER ULS_HR(3) // generic error on server.
  28. #define ULS_E_INVALID_PROPERTY ULS_HR(4) // invalid user property.
  29. #define ULS_E_INVALID_PARAMETER ULS_HR(5) // invalid parameter.
  30. #define ULS_E_IO_ERROR ULS_HR(6) // device io (such as disk) failed
  31. #define ULS_E_INVALID_FORMAT ULS_HR(7) // invalid format.
  32. #define ULS_E_REGISTRY ULS_HR(8) // registry error.
  33. #define ULS_E_PROCESS ULS_HR(9) // process creation error.
  34. #define ULS_E_SOCKET_FAILURE ULS_HR(10) // socket failure.
  35. #define ULS_E_NAME_NOT_FOUND ULS_HR(11) // could not resolve name.
  36. #define ULS_E_REFUSED_BY_SERVER ULS_HR(12) // server refused the request.
  37. #define ULS_E_DUP_ENTRY ULS_HR(13) // already exists in database.
  38. #define ULS_E_APP_NOT_FOUND ULS_HR(14) // specified app not found.
  39. #define ULS_E_INVALID_VERSION ULS_HR(15) // client version invalid.
  40. #define ULS_E_CLIENT_NOT_FOUND ULS_HR(16) // specified client not found.
  41. #define ULS_E_UNKNOWN ULS_HR(17) // unknown error on client.
  42. #define ULS_E_WIZARD ULS_HR(18) // wizard error.
  43. #define ULS_E_EVENT_FAILURE ULS_HR(19) // CreateEvent failed.
  44. #define ULS_E_QUEUE_CORRUPT ULS_HR(20) // read queue corrupted.
  45. #define ULS_E_MUTEX ULS_HR(21) // mutex creation error.
  46. #define ULS_E_OLD_TIMEOUT ULS_HR(22) // timeout
  47. #define ULS_E_LOGON_CANCEL ULS_HR(23) // cancel in failure/retry dialog
  48. #define ULS_E_CLIENT_NEED_RELOGON ULS_HR(24) // client needs to relogon (server crashes and comes up again)
  49. #define ULS_E_NEED_SERVER_NAME ULS_HR(25) // missing server name in logon
  50. #define ULS_E_NO_PROPERTY ULS_HR(26) // no such property
  51. #define ULS_E_NOT_LOGON_YET ULS_HR(27) // save change before logon
  52. #define ULS_E_INVALID_NAME ULS_HR(28) // name contains invalid characters
  53. #define ULS_E_OUT_OF_SOCKET ULS_HR(29) // too many sockets used
  54. #define ULS_E_OUT_OF_DATA ULS_HR(30) // data underflow
  55. #define ULS_E_NETWORK ULS_HR(31) // network is down, somehow
  56. #define ULS_W_DATA_NOT_READY MAKE_HRESULT(SEVERITY_SUCCESS, FACILITY_ULS, 101)
  57. #include <poppack.h> /* End byte packing */
  58. #endif // _ULSERROR_H_