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.

58 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. H323err.h
  5. Abstract:
  6. Error definitions for H.32X MSP
  7. Author:
  8. Michael VanBuskirk (mikev) 06/25/99
  9. --*/
  10. #ifndef _H323ERR_H_
  11. #define _H323ERR_H_
  12. #include <winerror.h>
  13. #define H323MSP_FACILITY 0x100 // facility code for audio/video communications
  14. #define MAKE_H323MSP_ERROR(z,e) MAKE_HRESULT(1,H323MSP_FACILITY,(((z)&0xF000)|(e)))
  15. #define MAKE_H323MSP_WARNING(z,w) MAKE_HRESULT(0,H323MSP_FACILITY,(((z)&0xF000)|(w)))
  16. #define H323MSP_ZONE 0x0000
  17. #define H323MSP_WINSOCK_ZONE 0x1000
  18. #define H323MSP_TAPI_ZONE 0x2000 // error caused by unexpected TAPI error
  19. #define H323H245_ZONE 0x3000
  20. #define H323ASN1_ZONE 0x4000
  21. #define H323MSP_WIN32_ZONE 0xF000 // Win32 error code
  22. #define MAKE_WIN32_ERROR(e) MAKE_H323MSP_ERROR (H323MSP_WIN32_ZONE, e)
  23. #define MAKE_WINSOCK_ERROR(e) MAKE_H323MSP_ERROR (H323MSP_WINSOCK_ZONE, e)
  24. #define MAKE_ASN1_ERROR(e) MAKE_H323MSP_ERROR (H323ASN1_ZONE, e)
  25. #define MAKE_H245_ERROR(e) MAKE_H323MSP_ERROR (H323H245_ZONE, e)
  26. // warnings
  27. #define W_ENUMERATION_REQUIRED MAKE_H323MSP_WARNING(H323MSP_ZONE, 0x0001)
  28. #define W_NO_CAPABILITY_INTERSECTION MAKE_H323MSP_WARNING(H323MSP_ZONE, 0x0002)
  29. #define W_NO_FASTCONNECT_CAPABILITY MAKE_H323MSP_WARNING(H323MSP_ZONE, 0x0003)
  30. #define W_NOINTERFACE MAKE_H323MSP_WARNING(H323MSP_ZONE, 0x0004)
  31. // general MSP errors
  32. #define H323MSP_NOMEM MAKE_H323MSP_ERROR(H323MSP_ZONE, 0x0001)
  33. #define H323MSP_E_CAP_ENUMERATION_REQUIRED MAKE_H323MSP_ERROR(H323MSP_ZONE, 0x0002)
  34. // H.245 session errors
  35. #define H245_ERROR_OK S_OK
  36. #define H245_INVALID_STATE MAKE_H323MSP_ERROR(H323H245_ZONE, 0x0001)
  37. #endif // _H323ERR_H_