error C3861: 'NT_ERROR': identifier not found'Turns out that the NT_SUCCESS macro definition has been moved from <stierr.h> to <subauth.h>. NT_ERROR seems to be completely removed from the headers in the new platform SDK.
error C3861: 'NT_SUCCESS': identifier not found'
To solve the problem I created this tiny header file which should work with both the new and old SDK:
* @author Roger Karlsson
* @since 2009-03-13
#define NT_SUCCESS(Status) ((NTSTATUS)(Status) >= 0)
#define NT_ERROR(Status) ((ULONG)(Status) >> 30 == 3)