#ifndef _NTRTL_H NTSYSAPI VOID NTAPI RtlSetLastWin32ErrorAndNtStatusFromNtStatus( _In_ NTSTATUS Status ); #endif View code on GitHub
Converts the NTSTATUS to a DOS error code and then sets the error code to the current thread.
Status
SetLastError
SetLastErrorEx
RtlNtStatusToDosError
RtlNtStatusToDosErrorNoTeb
RtlSetLastWin32Error
RtlGetLastWin32Error
RtlRestoreLastWin32Error