Skip to content

Commit c610059

Browse files
authored
Merge pull request #20 from SeanYJ1809/patch-1
Update rtlsetlastwin32errorandntstatusfromntstatus.md
2 parents d09492a + 41085a5 commit c610059

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Converts the NTSTATUS to a DOS error code and then sets the error code to the current thread.
2+
3+
# Parameters
4+
- `Status` - the NTSTATUS that will be converted to DOS Error Code
5+
6+
# Related Win32 API
7+
- [`SetLastError`](https://learn.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-setlasterror)
8+
- [`SetLastErrorEx`](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setlasterrorex)
9+
10+
# See also
11+
- `RtlNtStatusToDosError`
12+
- `RtlNtStatusToDosErrorNoTeb`
13+
- `RtlSetLastWin32Error`
14+
- `RtlGetLastWin32Error`
15+
- `RtlRestoreLastWin32Error`

0 commit comments

Comments
 (0)