-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Antoine Larine
committed
Jan 24, 2024
1 parent
4ca30ab
commit 52f0e86
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
namespace Larin.WinAPI.NativeMethods; | ||
|
||
/// <summary> | ||
/// Windows System Error codes | ||
/// </summary> | ||
/// <remarks>https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes</remarks> | ||
public static class ErrorCodes | ||
{ | ||
/// <summary> | ||
/// The operation completed successfully. | ||
/// </summary> | ||
public const int ERROR_SUCCESS = 0; | ||
|
||
/// <summary> | ||
/// Incorrect function. | ||
/// </summary> | ||
public const int ERROR_INVALID_FUNCTION = 1; | ||
|
||
/// <summary> | ||
/// The system cannot find the file specified. | ||
/// </summary> | ||
public const int ERROR_FILE_NOT_FOUND = 2; | ||
|
||
/// <summary> | ||
/// The system cannot find the path specified. | ||
/// </summary> | ||
public const int ERROR_PATH_NOT_FOUND = 3; | ||
|
||
/// <summary> | ||
/// The system cannot open the file. | ||
/// </summary> | ||
public const int ERROR_TOO_MANY_OPEN_FILES = 4; | ||
|
||
/// <summary> | ||
/// Access is denied. | ||
/// </summary> | ||
public const int ERROR_ACCESS_DENIED = 5; | ||
|
||
/// <summary> | ||
/// The handle is invalid. | ||
/// </summary> | ||
public const int ERROR_INVALID_HANDLE = 6; | ||
|
||
/// <summary> | ||
/// No more data is available. | ||
/// </summary> | ||
public const int ERROR_NO_MORE_ITEMS = 259; | ||
} | ||
|