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