home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 32 / IOPROG_32.ISO / SOFT / SqlEval7 / devtools / include / vdierror.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-07-05  |  1.9 KB  |  74 lines

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