-
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.
Add DeviceIoControl and NT status codes
- Loading branch information
Antoine Larine
committed
Jan 25, 2024
1 parent
3f3e3b3
commit ed939dc
Showing
4 changed files
with
161 additions
and
35 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
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
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,33 @@ | ||
namespace Larin.WinAPI.NativeMethods; | ||
|
||
/// <summary> | ||
/// Windows System Error codes | ||
/// </summary> | ||
/// <remarks>https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-erref/596a1078-e883-4972-9bbc-49e60bebca55</remarks> | ||
public static class NtStatus | ||
{ | ||
/// <summary> | ||
/// The operation completed successfully. | ||
/// </summary> | ||
public const uint STATUS_WAIT_0 = 0x00000000; | ||
|
||
/// <summary> | ||
/// The caller attempted to wait for a mutex that has been abandoned. | ||
/// </summary> | ||
public const uint STATUS_ABANDONED_WAIT_0 = 0x00000080; | ||
|
||
/// <summary> | ||
/// The delay completed because the thread was alerted. | ||
/// </summary> | ||
public const uint STATUS_ALERTED = 0x00000101; | ||
|
||
/// <summary> | ||
/// The given Timeout interval expired. | ||
/// </summary> | ||
public const uint STATUS_TIMEOUT = 0x00000102; | ||
|
||
/// <summary> | ||
/// The operation that was requested is pending completion. | ||
/// </summary> | ||
public const uint STATUS_PENDING = 0x00000103; | ||
} |
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