forked from PowerShell/PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHResult.cs
More file actions
76 lines (63 loc) · 1.79 KB
/
Copy pathHResult.cs
File metadata and controls
76 lines (63 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace Microsoft.PowerShell
{
/// <summary>
/// HRESULT Wrapper
/// </summary>
internal enum HResult
{
/// <summary>
/// S_OK
/// </summary>
Ok = 0x0000,
/// <summary>
/// S_FALSE.
/// </summary>
False = 0x0001,
/// <summary>
/// E_INVALIDARG.
/// </summary>
InvalidArguments = unchecked((int)0x80070057),
/// <summary>
/// E_OUTOFMEMORY.
/// </summary>
OutOfMemory = unchecked((int)0x8007000E),
/// <summary>
/// E_NOINTERFACE.
/// </summary>
NoInterface = unchecked((int)0x80004002),
/// <summary>
/// E_FAIL.
/// </summary>
Fail = unchecked((int)0x80004005),
/// <summary>
/// E_ELEMENTNOTFOUND.
/// </summary>
ElementNotFound = unchecked((int)0x80070490),
/// <summary>
/// TYPE_E_ELEMENTNOTFOUND.
/// </summary>
TypeElementNotFound = unchecked((int)0x8002802B),
/// <summary>
/// NO_OBJECT.
/// </summary>
NoObject = unchecked((int)0x800401E5),
/// <summary>
/// Win32 Error code: ERROR_CANCELLED.
/// </summary>
Win32ErrorCanceled = 1223,
/// <summary>
/// ERROR_CANCELLED.
/// </summary>
Canceled = unchecked((int)0x800704C7),
/// <summary>
/// The requested resource is in use.
/// </summary>
ResourceInUse = unchecked((int)0x800700AA),
/// <summary>
/// The requested resources is read-only.
/// </summary>
AccessDenied = unchecked((int)0x80030005)
}
}