OSDN Git Service

HGゴシックMを使用時に改行マークを表示するとキャレットが画面外にはみ出してしまうことがあるバグを修正した
[fooeditengine/FooEditEngine.git] / Common / DotNetTextStore / UnmanagedAPI / WinError.cs
1 using System;\r
2 using System.Reflection;\r
3 using System.Runtime.InteropServices;\r
4 using System.Security;\r
5 \r
6 \r
7 namespace DotNetTextStore.UnmanagedAPI.WinError\r
8 {\r
9     public static class HRESULT\r
10     {\r
11         /// <summary>i_errorCode が成功した値かどうか調べる。</summary>\r
12         public static bool Succeeded(int i_errorCode)\r
13         {\r
14             return i_errorCode >= 0;\r
15         }\r
16 \r
17         /// <summary>\r
18         /// The method was successful.\r
19         /// </summary>\r
20         public const int S_OK = 0;\r
21         /// <summary>\r
22         /// The method was successful.\r
23         /// </summary>\r
24         public const int S_FALSE = 0x00000001;\r
25         /// <summary>\r
26         /// An unspecified error occurred.\r
27         /// </summary>\r
28         public const int E_FAIL = unchecked((int)0x80004005);\r
29         /// <summary>\r
30         /// An invalid parameter was passed to the returning function.\r
31         /// </summary>\r
32         public const int E_INVALIDARG = unchecked((int)0x80070057);\r
33         /// <summary>\r
34         /// The method is not implemented.\r
35         /// </summary>\r
36         public const int E_NOTIMPL = unchecked((int)0x80004001);\r
37         /// <summary>\r
38         ///  The data necessary to complete this operation is not yet available.\r
39         /// </summary>\r
40         public const int E_PENDING = unchecked((int)0x8000000A);\r
41         /// <summary>\r
42         /// There is insufficient disk space to complete operation.\r
43         /// </summary>\r
44         public const int STG_E_MEDIUMFULL = unchecked((int)0x80030070);\r
45         /// <summary>\r
46         /// Attempted to use an object that has ceased to exist.\r
47         /// </summary>\r
48         public const int STG_E_REVERTED = unchecked((int)0x80030102);\r
49     }\r
50 }