Skip to content

Commit

Permalink
Merge pull request #20 from SeanYJ1809/patch-1
Browse files Browse the repository at this point in the history
Update rtlsetlastwin32errorandntstatusfromntstatus.md
  • Loading branch information
m417z authored Jan 28, 2025
2 parents d09492a + 41085a5 commit c610059
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions descriptions/rtlsetlastwin32errorandntstatusfromntstatus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Converts the NTSTATUS to a DOS error code and then sets the error code to the current thread.

# Parameters
- `Status` - the NTSTATUS that will be converted to DOS Error Code

# Related Win32 API
- [`SetLastError`](https://learn.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-setlasterror)
- [`SetLastErrorEx`](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setlasterrorex)

# See also
- `RtlNtStatusToDosError`
- `RtlNtStatusToDosErrorNoTeb`
- `RtlSetLastWin32Error`
- `RtlGetLastWin32Error`
- `RtlRestoreLastWin32Error`

0 comments on commit c610059

Please sign in to comment.