-
Notifications
You must be signed in to change notification settings - Fork 10
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
Showing
3 changed files
with
57 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
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
34 changes: 34 additions & 0 deletions
34
docs/nefarius.utilities.devicemanagement.util.ntstatusutil.md
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,34 @@ | ||
# NtStatusUtil | ||
|
||
Namespace: Nefarius.Utilities.DeviceManagement.Util | ||
|
||
Utility methods for handling NTSTATUS values. | ||
|
||
```csharp | ||
public static class NtStatusUtil | ||
``` | ||
|
||
Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [NtStatusUtil](./nefarius.utilities.devicemanagement.util.ntstatusutil.md) | ||
## Methods | ||
|
||
### <a id="methods-convertntstatustowin32error"/>**ConvertNtStatusToWin32Error(UInt32)** | ||
|
||
Converts an NTSTATUS value to a [WIN32_ERROR](./windows.win32.foundation.win32_error.md). | ||
|
||
```csharp | ||
public static int ConvertNtStatusToWin32Error(uint ntStatus) | ||
``` | ||
|
||
#### Parameters | ||
|
||
`ntStatus` [UInt32](https://docs.microsoft.com/en-us/dotnet/api/system.uint32)<br> | ||
The NTSTATUS value to convert. | ||
|
||
#### Returns | ||
|
||
The converted Win32 error code. | ||
|
||
**Remarks:** | ||
|
||
https://stackoverflow.com/a/32205631 |