2 * Copyright (c) 2007-2010 SlimDX Group
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to deal
6 * in the Software without restriction, including without limitation the rights
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 * copies of the Software, and to permit persons to whom the Software is
9 * furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 #include "../Result.h"
30 /// <summary>Defines result codes that are returned by DXGI functions.</summary>
31 /// <unmanaged href="ms679692">HRESULT</unmanaged>
32 public ref class ResultCode sealed
39 /// Returned when the window content is not visible.
41 /// <remarks>This is a successful result.</remarks>
42 /// <unmanaged href="cc308061">DXGI_STATUS_OCCLUDED</unmanaged>
43 property static Result Occluded
51 /// <remarks>This is a successful result.</remarks>
52 /// <unmanaged>DXGI_STATUS_CLIPPED</unmanaged>
53 property static Result Clipped
61 /// <remarks>This is a successful result.</remarks>
62 /// <unmanaged>DXGI_STATUS_NO_REDIRECTION</unmanaged>
63 property static Result NoRedirection
71 /// <remarks>This is a successful result.</remarks>
72 /// <unmanaged>DXGI_STATUS_NO_DESKTOP_ACCESS</unmanaged>
73 property static Result NoDesktopAccess
81 /// <remarks>This is a successful result.</remarks>
82 /// <unmanaged>DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE</unmanaged>
83 property static Result VideoPresentNetworkSourceInUse
91 /// <remarks>This is a successful result.</remarks>
92 /// <unmanaged href="cc308061">DXGI_STATUS_MODE_CHANGED</unmanaged>
93 property static Result ModeChanged
101 /// <remarks>This is a successful result.</remarks>
102 /// <unmanaged href="cc308061">DXGI_STATUS_MODE_CHANGE_IN_PROGRESS</unmanaged>
103 property static Result ModeChangeInProgress
111 /// <remarks>This is a failed result.</remarks>
112 /// <unmanaged href="bb509553">DXGI_ERROR_INVALID_CALL</unmanaged>
113 property static Result InvalidCall
121 /// <remarks>This is a failed result.</remarks>
122 /// <unmanaged href="bb509553">DXGI_ERROR_NOT_FOUND</unmanaged>
123 property static Result NotFound
131 /// <remarks>This is a failed result.</remarks>
132 /// <unmanaged href="bb509553">DXGI_ERROR_MORE_DATA</unmanaged>
133 property static Result MoreData
141 /// <remarks>This is a failed result.</remarks>
142 /// <unmanaged href="bb509553">DXGI_ERROR_UNSUPPORTED</unmanaged>
143 property static Result Unsupported
151 /// <remarks>This is a failed result.</remarks>
152 /// <unmanaged href="bb509553">DXGI_ERROR_DEVICE_REMOVED</unmanaged>
153 property static Result DeviceRemoved
161 /// <remarks>This is a failed result.</remarks>
162 /// <unmanaged href="bb509553">DXGI_ERROR_DEVICE_HUNG</unmanaged>
163 property static Result DeviceHung
171 /// <remarks>This is a failed result.</remarks>
172 /// <unmanaged href="bb509553">DXGI_ERROR_DEVICE_RESET</unmanaged>
173 property static Result DeviceReset
181 /// <remarks>This is a failed result.</remarks>
182 /// <unmanaged href="bb509553">DXGI_ERROR_WAS_STILL_DRAWING</unmanaged>
183 property static Result WasStillDrawing
191 /// <remarks>This is a failed result.</remarks>
192 /// <unmanaged href="bb509553">DXGI_ERROR_DRIVER_INTERNAL_ERROR</unmanaged>
193 property static Result DriverInternalError
201 /// <remarks>This is a failed result.</remarks>
202 /// <unmanaged href="bb509553">DXGI_ERROR_NONEXCLUSIVE</unmanaged>
203 property static Result Nonexclusive
209 /// Represents the result of a successful operation.
211 /// <remarks>This is a successful result.</remarks>
212 /// <unmanaged href="bb509553">S_OK</unmanaged>
213 property static Result Success
219 /// Represents a generic failure result.
221 /// <remarks>This is a failed result.</remarks>
222 /// <unmanaged href="aa378137">E_FAIL</unmanaged>
223 property static Result Failure