Source code of Windows XP (NT5)
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.

73 lines
2.2 KiB

  1. //--------------------------------------------------------------------
  2. // Copyright (c)1998-1999 Microsoft Corporation, All Rights Reserved.
  3. //
  4. // irtranp.h
  5. //
  6. // Shared constants and Types for IrTran-P Camera Protocol.
  7. //
  8. // Author:
  9. //
  10. // Edward Reus (edwardr) 08-17-98 Initial coding.
  11. //
  12. //--------------------------------------------------------------------
  13. #ifndef _IRTRANP_H_
  14. #define _IRTRANP_H_
  15. #if _MSC_VER > 1000
  16. #pragma once
  17. #endif
  18. //--------------------------------------------------------------------
  19. // Extra Internal Protocol Specific Error Codes:
  20. //--------------------------------------------------------------------
  21. #define FACILITY_IRTRANP 32
  22. // Out of memory:
  23. #define ERROR_IRTRANP_OUT_OF_MEMORY \
  24. MAKE_HRESULT(SEVERITY_ERROR,FACILITY_IRTRANP,1)
  25. // Ran out of disk space:
  26. #define ERROR_IRTRANP_DISK_FULL \
  27. MAKE_HRESULT(SEVERITY_ERROR,FACILITY_IRTRANP,2)
  28. // SCEP protocol error:
  29. #define ERROR_SCEP_INVALID_PROTOCOL \
  30. MAKE_HRESULT(SEVERITY_ERROR,FACILITY_IRTRANP,3)
  31. // Disconnect from the camera:
  32. #define ERROR_SCEP_UNSPECIFIED_DISCONNECT \
  33. MAKE_HRESULT(SEVERITY_ERROR,FACILITY_IRTRANP,4)
  34. // User cancel:
  35. #define ERROR_SCEP_USER_DISCONNECT \
  36. MAKE_HRESULT(SEVERITY_ERROR,FACILITY_IRTRANP,5)
  37. // Lower level Irda disconnect:
  38. #define ERROR_SCEP_PROVIDER_DISCONNECT \
  39. MAKE_HRESULT(SEVERITY_ERROR,FACILITY_IRTRANP,6)
  40. // Error when creating picture file:
  41. #define ERROR_SCEP_CANT_CREATE_FILE \
  42. MAKE_HRESULT(SEVERITY_ERROR,FACILITY_IRTRANP,7)
  43. // Protocol error: PDU too large:
  44. #define ERROR_SCEP_PDU_TOO_LARGE \
  45. MAKE_HRESULT(SEVERITY_ERROR,FACILITY_IRTRANP,8)
  46. // Received abort PDU:
  47. #define ERROR_SCEP_ABORT \
  48. MAKE_HRESULT(SEVERITY_ERROR,FACILITY_IRTRANP,9)
  49. // Invalid protocol (bFTP):
  50. #define ERROR_BFTP_INVALID_PROTOCOL \
  51. MAKE_HRESULT(SEVERITY_ERROR,FACILITY_IRTRANP,10)
  52. // Unexpected end of transmission of the picture:
  53. #define ERROR_BFTP_NO_MORE_FRAGMENTS \
  54. MAKE_HRESULT(SEVERITY_ERROR,FACILITY_IRTRANP,11)
  55. #endif