home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / dxterror.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  2.5 KB  |  72 lines

  1. /*******************************************************************************
  2. * DXTError.h *
  3. *------------*
  4. *   Description:
  5. *       This header file contains the custom error codes specific to DX Transforms
  6. *-------------------------------------------------------------------------------
  7. *  Created By: EDC                                      Date: 03/31/98
  8. *  Copyright (C) 1998 Microsoft Corporation
  9. *  All Rights Reserved
  10. *
  11. *-------------------------------------------------------------------------------
  12. *  Revisions:
  13. *
  14. *******************************************************************************/
  15. #ifndef DXTError_h
  16. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  17. #define DXTError_h
  18.  
  19. #ifndef _WINERROR_
  20. #include <winerror.h>
  21. #endif
  22.  
  23. //=== New codes ===============================================================
  24. #define FACILITY_DXTRANS    0x87A
  25.  
  26. /*** DXTERR_UNINITIALIZED
  27. *   The object (transform, surface, etc.) has not been properly initialized
  28. */
  29. #define DXTERR_UNINITIALIZED        MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DXTRANS, 1)
  30.  
  31. /*** DXTERR_ALREADY_INITIALIZED
  32. *   The object (surface) has already been properly initialized
  33. */
  34. #define DXTERR_ALREADY_INITIALIZED  MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DXTRANS, 2)
  35.  
  36. /*** DXTERR_UNSUPPORTED_FORMAT
  37. *   The caller has specified an unsupported format
  38. */
  39. #define DXTERR_UNSUPPORTED_FORMAT   MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DXTRANS, 3)
  40.  
  41. /*** DXTERR_COPYRIGHT_IS_INVALID
  42. *   The caller has specified an unsupported format
  43. */
  44. #define DXTERR_COPYRIGHT_IS_INVALID   MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DXTRANS, 4)
  45.  
  46. /*** DXTERR_INVALID_BOUNDS
  47. *   The caller has specified invalid bounds for this operation
  48. */
  49. #define DXTERR_INVALID_BOUNDS   MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DXTRANS, 5)
  50.  
  51. /*** DXTERR_INVALID_FLAGS
  52. *   The caller has specified invalid flags for this operation
  53. */
  54. #define DXTERR_INVALID_FLAGS   MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DXTRANS, 6)
  55.  
  56. /*** DXTERR_OUTOFSTACK
  57. *   There was not enough available stack space to complete the operation 
  58. */
  59. #define DXTERR_OUTOFSTACK   MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DXTRANS, 7)
  60.  
  61. /*** DXTERR_REQ_IE_DLLNOTFOUND
  62. *   Unable to load a required Internet Explorer DLL  
  63. */
  64. #define DXTERR_REQ_IE_DLLNOTFOUND   MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DXTRANS, 8)
  65.  
  66. /*** DXT_S_HITOUTPUT
  67. *   The specified point intersects the generated output
  68. */
  69. #define DXT_S_HITOUTPUT   MAKE_HRESULT(SEVERITY_SUCCESS, FACILITY_DXTRANS, 1)
  70.  
  71. #pragma option pop /*P_O_Pop*/
  72. #endif  //--- This must be the last line in the file