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.

68 lines
3.4 KiB

  1. /**MOD+**********************************************************************/
  2. /* Module: auierr.h */
  3. /* */
  4. /* Purpose: UI error codes */
  5. /* */
  6. /* Copyright(C) Microsoft Corporation 1997 */
  7. /* */
  8. /****************************************************************************/
  9. /** Changes:
  10. * $Log: Y:/logs/client/auierr.h_v $
  11. *
  12. * Rev 1.1 13 Aug 1997 15:15:10 ENH
  13. * SFR1182: Changed UT to UI fatal errors
  14. **/
  15. /**MOD-**********************************************************************/
  16. #ifndef _H_AUIERR
  17. #define _H_AUIERR
  18. /****************************************************************************/
  19. /* Return codes. These are all offset from UT_BASE_RC. */
  20. /****************************************************************************/
  21. #define UI_BASE_RC 0x4132
  22. #define UI_RC(N) ((DCUINT16)N + UI_BASE_RC)
  23. #define UI_RC_IO_ERROR UI_RC( 1)
  24. #define UI_RC_START_THREAD_FAILED UI_RC( 3)
  25. #define UI_RC_UNSUPPORTED UI_RC( 4)
  26. /****************************************************************************/
  27. /* Maximum length of resource string used by UI */
  28. /****************************************************************************/
  29. #define UI_ERR_MAX_STRLEN 256
  30. /****************************************************************************/
  31. /* Base of IDs in the Resource DLL for Fatal Error strings */
  32. /* All UT strings must be in the range 2000-2999. */
  33. /****************************************************************************/
  34. #define UI_ERR_STRING_BASE_ID 2000
  35. /****************************************************************************/
  36. /* Get the string ID from the error code. */
  37. /****************************************************************************/
  38. #define UI_ERR_STRING_ID(x) (UI_ERR_STRING_BASE_ID + (x))
  39. /****************************************************************************/
  40. /* Error codes - must be < 999 */
  41. /****************************************************************************/
  42. #define DC_ERR_UNKNOWN_ERR 0
  43. #define DC_ERR_POSTMESSAGEFAILED 1
  44. #define DC_ERR_OUTOFMEMORY 2
  45. #define DC_ERR_WINDOWCREATEFAILED 3
  46. #define DC_ERR_CLASSREGISTERFAILED 4
  47. #define DC_ERR_FSM_ERROR 5
  48. #define DC_ERR_SENDMESSAGEFAILED 6
  49. #define DC_ERR_COREINITFAILED 7
  50. /****************************************************************************/
  51. /* Warning codes */
  52. /****************************************************************************/
  53. #define DC_WARN_BITMAPCACHE_CORRUPTED 1
  54. /****************************************************************************/
  55. /* TD errors. */
  56. /****************************************************************************/
  57. #define DC_ERR_WINSOCKINITFAILED 100
  58. #endif /* _H_AUTERR */