Update and rename GetLastNtStatus.c to GetLastNtStatusAlt.c

This commit is contained in:
vxunderground 2021-05-28 12:41:35 -05:00 committed by GitHub
parent 1a33c3f076
commit 455ca65c44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,8 @@
#include <windows.h>
#include "TEB.h"
/*
DEFINITIONS FOR TEB MUST BE PRESENT
*/
PTEB GetTeb(VOID)
{
@ -10,7 +13,7 @@ PTEB GetTeb(VOID)
#endif
}
NTSTATUS GetLastNtStatus(VOID)
NTSTATUS GetLastNtStatusAlt(VOID)
{
PTEB Teb = (PTEB)GetTeb();
return Teb->LastStatusValue;
@ -20,7 +23,7 @@ INT main(VOID)
{
NTSTATUS Status;
Status = GetLastNtStatus();
Status = GetLastNtStatusAlt();
return ERROR_SUCCESS;
}