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

  1. #ifndef VDIERROR_H_
  2. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  3. #define VDIERROR_H_
  4. //****************************************************************************
  5. //        Copyright (c) 1998-1998 Microsoft Corporation.
  6. //
  7. // @File: vdierror.h
  8. //
  9. // Purpose:
  10. //  Declare the error codes emitted by the virtual device interface.
  11. //
  12. // Notes:
  13. //    
  14. // History:
  15. //     
  16. //
  17. // @EndHeader@
  18. //****************************************************************************
  19.  
  20. //
  21. // Define all the VDI errors.
  22. //
  23.  
  24.  
  25. //---------------------------------------------------------------------------------------
  26. // Error code handling will be done in standard COM fashion:
  27. //
  28. // an HRESULT is returned and the caller can use
  29. // SUCCEEDED(code) or FAILED(code) to determine
  30. // if the function failed or not.
  31. //
  32.  
  33. // form an error code
  34. //
  35. #define VD_ERROR(code) MAKE_HRESULT(SEVERITY_ERROR, 0x77, code)
  36.  
  37. // The object was not open
  38. //
  39. #define VD_E_NOTOPEN        VD_ERROR( 2 )   /* 0x80770002 */
  40.  
  41. // The api was waiting and the timeout interval had elapsed.
  42. //
  43. #define VD_E_TIMEOUT        VD_ERROR( 3 )   /* 0x80770003 */
  44.  
  45. // An abort request is preventing anything except termination actions.
  46. //
  47. #define VD_E_ABORT          VD_ERROR( 4 )   /* 0x80770004 */
  48.  
  49. // An invalid parameter was supplied
  50. #define VD_E_INVALID        VD_ERROR( 6 )   /* 0x80770006 */
  51.  
  52. // The requested configuration is invalid
  53. #define VD_E_NOTSUPPORTED   VD_ERROR( 9 )   /* 0x80770009 */
  54.  
  55. // Out of memory
  56. #define VD_E_MEMORY         VD_ERROR( 10 )  /* 0x8077000a */
  57.  
  58. // Unexpected internal error
  59. #define VD_E_UNEXPECTED     VD_ERROR (11)   /* 0x8077000b */
  60.  
  61. // Protocol error
  62. #define VD_E_PROTOCOL       VD_ERROR (12)   /* 0x8077000c */
  63.  
  64. // All devices are open
  65. #define VD_E_OPEN           VD_ERROR (13)   /* 0x8077000d */
  66.  
  67. // the object is now closed
  68. #define VD_E_CLOSE          VD_ERROR (14)   /* 0x8077000e */
  69.  
  70. // the resource is busy
  71. #define VD_E_BUSY           VD_ERROR (15)   /* 0x8077000f */
  72.  
  73.  
  74. #pragma option pop /*P_O_Pop*/
  75. #endif
  76.