2 using System.Reflection;
3 using System.Runtime.InteropServices;
7 namespace DotNetTextStore.UnmanagedAPI.WinError
9 public static class HRESULT
11 /// <summary>i_errorCode が成功した値かどうか調べる。</summary>
12 public static bool Succeeded(int i_errorCode)
14 return i_errorCode >= 0;
18 /// The method was successful.
20 public const int S_OK = 0;
22 /// The method was successful.
24 public const int S_FALSE = 0x00000001;
26 /// An unspecified error occurred.
28 public const int E_FAIL = unchecked((int)0x80004005);
30 /// An invalid parameter was passed to the returning function.
32 public const int E_INVALIDARG = unchecked((int)0x80070057);
34 /// The method is not implemented.
36 public const int E_NOTIMPL = unchecked((int)0x80004001);
38 /// The data necessary to complete this operation is not yet available.
40 public const int E_PENDING = unchecked((int)0x8000000A);
42 /// There is insufficient disk space to complete operation.
44 public const int STG_E_MEDIUMFULL = unchecked((int)0x80030070);
46 /// Attempted to use an object that has ceased to exist.
48 public const int STG_E_REVERTED = unchecked((int)0x80030102);