From 41085a55e68763fc6fa04bd5983d34f6c968cbc0 Mon Sep 17 00:00:00 2001 From: SeanYJ1809 Date: Tue, 28 Jan 2025 20:42:17 +0800 Subject: [PATCH] Update rtlsetlastwin32errorandntstatusfromntstatus.md --- ...rtlsetlastwin32errorandntstatusfromntstatus.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/descriptions/rtlsetlastwin32errorandntstatusfromntstatus.md b/descriptions/rtlsetlastwin32errorandntstatusfromntstatus.md index e69de29bb2d..3083efe9dd0 100644 --- a/descriptions/rtlsetlastwin32errorandntstatusfromntstatus.md +++ b/descriptions/rtlsetlastwin32errorandntstatusfromntstatus.md @@ -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`