#include <windows.h>
#define NTOS_MODE_USER
#include <ntos.h>
-DWORD
-STDCALL
-SetLastErrorByStatus (
- NTSTATUS Status
- );
+
+#define SetLastErrorByStatus(__S__) \
+ ((void)SetLastError(RtlNtStatusToDosError(__S__)))
+
#endif /* _INCLUDE_KERNEL32_H */