From b9e7a2b6662bcfef28b6fafddfeb9ff1e00ac5f5 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 9 Oct 2000 09:51:46 +0000 Subject: * include/iprtrmib.h: Further layout changes according to standard. * include/iptypes.h: Ditto. * include/ntdef.h: Ditto. * include/ntsecapi.h: Ditto. * include/subauth.h: Ditto. --- winsup/w32api/include/subauth.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'winsup/w32api/include/subauth.h') diff --git a/winsup/w32api/include/subauth.h b/winsup/w32api/include/subauth.h index 67f25c319..b31a4bab7 100644 --- a/winsup/w32api/include/subauth.h +++ b/winsup/w32api/include/subauth.h @@ -4,7 +4,8 @@ extern "C" { #endif #ifndef NT_SUCCESS -#define NT_SUCCESS(Status) ((Status) >= 0) +#define NT_SUCCESS(x) ((x)>=0) +#define STATUS_SUCCESS 0 #endif #define CYPHER_BLOCK_LENGTH 8 #define USER_SESSION_KEY_LENGTH (CYPHER_BLOCK_LENGTH*2) @@ -30,7 +31,6 @@ extern "C" { #define SAM_DAYS_PER_WEEK 7 #define SAM_HOURS_PER_WEEK 168 #define SAM_MINUTES_PER_WEEK 10080 -#define STATUS_SUCCESS 0 #define STATUS_INVALID_INFO_CLASS 0xC0000003L #define STATUS_NO_SUCH_USER 0xC0000064L #define STATUS_WRONG_PASSWORD 0xC000006AL @@ -67,9 +67,6 @@ extern "C" { #define USER_ALL_PARAMETERS 2097152 #if !defined(_NTDEF_H) && !defined(_NTSECAPI_H) typedef LONG NTSTATUS, *PNTSTATUS; -#endif -typedef PVOID SAM_HANDLE, *PSAM_HANDLE; -#ifndef _NTSECAPI_H typedef struct _UNICODE_STRING { USHORT Length; USHORT MaximumLength; @@ -81,6 +78,7 @@ typedef struct _STRING { PCHAR Buffer; } STRING, *PSTRING; #endif +typedef PVOID SAM_HANDLE, *PSAM_HANDLE; typedef struct _OLD_LARGE_INTEGER { ULONG LowPart; LONG HighPart; -- cgit v1.2.3