home *** CD-ROM | disk | FTP | other *** search
- #ifndef VDIERROR_H_
- #pragma option push -b -a8 -pc -A- /*P_O_Push*/
- #define VDIERROR_H_
- //****************************************************************************
- // Copyright (c) 1998-1998 Microsoft Corporation.
- //
- // @File: vdierror.h
- //
- // Purpose:
- // Declare the error codes emitted by the virtual device interface.
- //
- // Notes:
- //
- // History:
- //
- //
- // @EndHeader@
- //****************************************************************************
-
- //
- // Define all the VDI errors.
- //
-
-
- //---------------------------------------------------------------------------------------
- // Error code handling will be done in standard COM fashion:
- //
- // an HRESULT is returned and the caller can use
- // SUCCEEDED(code) or FAILED(code) to determine
- // if the function failed or not.
- //
-
- // form an error code
- //
- #define VD_ERROR(code) MAKE_HRESULT(SEVERITY_ERROR, 0x77, code)
-
- // The object was not open
- //
- #define VD_E_NOTOPEN VD_ERROR( 2 ) /* 0x80770002 */
-
- // The api was waiting and the timeout interval had elapsed.
- //
- #define VD_E_TIMEOUT VD_ERROR( 3 ) /* 0x80770003 */
-
- // An abort request is preventing anything except termination actions.
- //
- #define VD_E_ABORT VD_ERROR( 4 ) /* 0x80770004 */
-
- // An invalid parameter was supplied
- #define VD_E_INVALID VD_ERROR( 6 ) /* 0x80770006 */
-
- // The requested configuration is invalid
- #define VD_E_NOTSUPPORTED VD_ERROR( 9 ) /* 0x80770009 */
-
- // Out of memory
- #define VD_E_MEMORY VD_ERROR( 10 ) /* 0x8077000a */
-
- // Unexpected internal error
- #define VD_E_UNEXPECTED VD_ERROR (11) /* 0x8077000b */
-
- // Protocol error
- #define VD_E_PROTOCOL VD_ERROR (12) /* 0x8077000c */
-
- // All devices are open
- #define VD_E_OPEN VD_ERROR (13) /* 0x8077000d */
-
- // the object is now closed
- #define VD_E_CLOSE VD_ERROR (14) /* 0x8077000e */
-
- // the resource is busy
- #define VD_E_BUSY VD_ERROR (15) /* 0x8077000f */
-
-
- #pragma option pop /*P_O_Pop*/
- #endif
-