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.

80 lines
4.3 KiB

  1. /***********************************************************************
  2. * INTEL Corporation Proprietary Information *
  3. * *
  4. * This listing is supplied under the terms of a license agreement *
  5. * with INTEL Corporation and may not be copied nor disclosed except *
  6. * in accordance with the terms of that agreement. *
  7. * *
  8. * Copyright (c) 1997 Intel Corporation. All rights reserved. *
  9. ***********************************************************************
  10. * *
  11. * $Archive: S:\sturgeon\src\include\vcs\gkierror.h_v $
  12. *
  13. * $Revision: 1.2 $
  14. * $Date: 08 Feb 1997 12:20:14 $
  15. *
  16. * $Author: CHULME $
  17. *
  18. * $Log: S:\sturgeon\src\include\vcs\gkierror.h_v $
  19. *
  20. * Rev 1.2 08 Feb 1997 12:20:14 CHULME
  21. * Added error code for semaphore creation error
  22. *
  23. * Rev 1.1 16 Jan 1997 15:25:08 BPOLING
  24. * changed copyrights to 1997
  25. *
  26. * Rev 1.0 27 Dec 1996 14:37:02 EHOWARDX
  27. * Initial revision.
  28. * *
  29. ***********************************************************************/
  30. // gkicom.h : common includes between gkitest and gki
  31. /////////////////////////////////////////////////////////////////////////////
  32. #ifndef GKIERROR_H
  33. #define GKIERROR_H
  34. // Status codes
  35. #define GKI_EXIT_THREAD_CODE ERROR_LOCAL_BASE_ID + 1 // not actually error code
  36. #define GKI_REDISCOVER_CODE ERROR_LOCAL_BASE_ID + 2 // not actually error code
  37. #define GKI_DELETE_CALL_CODE ERROR_LOCAL_BASE_ID + 3 // not actually error code
  38. #define GKI_GCF_RCV_CODE ERROR_LOCAL_BASE_ID + 4 // not actually error code
  39. #define GKI_ALREADY_REG_CODE ERROR_LOCAL_BASE_ID + 0x10
  40. #define GKI_VERSION_ERROR_CODE ERROR_LOCAL_BASE_ID + 0x11
  41. #define GKI_ENCODER_ERROR_CODE ERROR_LOCAL_BASE_ID + 0x12
  42. #define GKI_NOT_REG_CODE ERROR_LOCAL_BASE_ID + 0x13
  43. #define GKI_BUSY_CODE ERROR_LOCAL_BASE_ID + 0x14
  44. #define GKI_NO_TA_ERROR_CODE ERROR_LOCAL_BASE_ID + 0x15
  45. #define GKI_NO_RESPONSE_CODE ERROR_LOCAL_BASE_ID + 0x16
  46. #define GKI_DECODER_ERROR_CODE ERROR_LOCAL_BASE_ID + 0x17
  47. #define GKI_SEMAPHORE_ERROR_CODE ERROR_LOCAL_BASE_ID + 0x18
  48. #define GKI_NOT_INITIALIZED_ERROR_CODE ERROR_LOCAL_BASE_ID + 0x19
  49. #define GKI_OK NOERROR
  50. #define GKI_EXIT_THREAD MAKE_CUSTOM_HRESULT(SEVERITY_SUCCESS,1,FACILITY_GKI,GKI_EXIT_THREAD_CODE)
  51. #define GKI_REDISCOVER MAKE_CUSTOM_HRESULT(SEVERITY_SUCCESS,1,FACILITY_GKI,GKI_REDISCOVER_CODE)
  52. #define GKI_DELETE_CALL MAKE_CUSTOM_HRESULT(SEVERITY_SUCCESS,1,FACILITY_GKI,GKI_DELETE_CALL_CODE)
  53. #define GKI_GCF_RCV MAKE_CUSTOM_HRESULT(SEVERITY_SUCCESS,1,FACILITY_GKI,GKI_GCF_RCV_CODE)
  54. #define GKI_NO_MEMORY MAKE_CUSTOM_HRESULT(SEVERITY_ERROR,1,FACILITY_GKI,ERROR_OUTOFMEMORY)
  55. #define GKI_NO_THREAD MAKE_CUSTOM_HRESULT(SEVERITY_ERROR,1,FACILITY_GKI,ERROR_TOO_MANY_TCBS)
  56. #define GKI_HANDLE_ERROR MAKE_CUSTOM_HRESULT(SEVERITY_ERROR,1,FACILITY_GKI,ERROR_INVALID_HANDLE)
  57. #define GKI_ALREADY_REG MAKE_CUSTOM_HRESULT(SEVERITY_ERROR,1,FACILITY_GKI,GKI_ALREADY_REG_CODE)
  58. #define GKI_VERSION_ERROR MAKE_CUSTOM_HRESULT(SEVERITY_ERROR,1,FACILITY_GKI,GKI_VERSION_ERROR_CODE)
  59. #define GKI_ENCODER_ERROR MAKE_CUSTOM_HRESULT(SEVERITY_ERROR,1,FACILITY_GKI,GKI_ENCODER_ERROR_CODE)
  60. #define GKI_NOT_REG MAKE_CUSTOM_HRESULT(SEVERITY_ERROR,1,FACILITY_GKI,GKI_NOT_REG_CODE)
  61. #define GKI_BUSY MAKE_CUSTOM_HRESULT(SEVERITY_ERROR,1,FACILITY_GKI,GKI_BUSY_CODE)
  62. #define GKI_NO_TA_ERROR MAKE_CUSTOM_HRESULT(SEVERITY_ERROR,1,FACILITY_GKI,GKI_NO_TA_ERROR_CODE)
  63. #define GKI_NO_RESPONSE MAKE_CUSTOM_HRESULT(SEVERITY_ERROR,1,FACILITY_GKI,GKI_NO_RESPONSE_CODE)
  64. #define GKI_DECODER_ERROR MAKE_CUSTOM_HRESULT(SEVERITY_ERROR,1,FACILITY_GKI,GKI_DECODER_ERROR_CODE)
  65. #define GKI_SEMAPHORE_ERROR MAKE_CUSTOM_HRESULT(SEVERITY_ERROR,1,FACILITY_GKI,GKI_SEMAPHORE_ERROR_CODE)
  66. #define GKI_WINSOCK2_ERROR(w) (MAKE_CUSTOM_HRESULT(SEVERITY_ERROR,1,FACILITY_WINSOCK2,w))
  67. #define GKI_NOT_INITIALIZED MAKE_CUSTOM_HRESULT(SEVERITY_ERROR,1,FACILITY_GKI,GKI_NOT_INITIALIZED_ERROR_CODE)
  68. #endif // GKIERROR_H
  69. /////////////////////////////////////////////////////////////////////////////