using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Security;
namespace DotNetTextStore.UnmanagedAPI.WinError
{
public static class HRESULT
{
/// i_errorCode が成功した値かどうか調べる。
public static bool Succeeded(int i_errorCode)
{
return i_errorCode >= 0;
}
///
/// The method was successful.
///
public const int S_OK = 0;
///
/// The method was successful.
///
public const int S_FALSE = 0x00000001;
///
/// An unspecified error occurred.
///
public const int E_FAIL = unchecked((int)0x80004005);
///
/// An invalid parameter was passed to the returning function.
///
public const int E_INVALIDARG = unchecked((int)0x80070057);
///
/// The method is not implemented.
///
public const int E_NOTIMPL = unchecked((int)0x80004001);
///
/// The data necessary to complete this operation is not yet available.
///
public const int E_PENDING = unchecked((int)0x8000000A);
///
/// There is insufficient disk space to complete operation.
///
public const int STG_E_MEDIUMFULL = unchecked((int)0x80030070);
///
/// Attempted to use an object that has ceased to exist.
///
public const int STG_E_REVERTED = unchecked((int)0x80030102);
}
}