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/ntdef.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'winsup/w32api/include/ntdef.h') diff --git a/winsup/w32api/include/ntdef.h b/winsup/w32api/include/ntdef.h index a192a78d7..f4f990747 100644 --- a/winsup/w32api/include/ntdef.h +++ b/winsup/w32api/include/ntdef.h @@ -9,15 +9,17 @@ #define OBJ_OPENLINK 256L #define OBJ_VALID_ATTRIBUTES 498L #define InitializeObjectAttributes(p,n,a,r,s) { \ - (p)->Length = sizeof( OBJECT_ATTRIBUTES ); \ - (p)->RootDirectory = r; \ - (p)->Attributes = a; \ - (p)->ObjectName = n; \ - (p)->SecurityDescriptor = s; \ + (p)->Length = sizeof(OBJECT_ATTRIBUTES); \ + (p)->RootDirectory = (r); \ + (p)->Attributes = (a); \ + (p)->ObjectName = (n); \ + (p)->SecurityDescriptor = (s); \ (p)->SecurityQualityOfService = NULL; \ } -#define STATUS_SUCCESS ((NTSTATUS)0) +#ifndef NT_SUCCESS #define NT_SUCCESS(x) ((x)>=0) +#define STATUS_SUCCESS ((NTSTATUS)0) +#endif #if !defined(_NTSECAPI_H) && !defined(_SUBAUTH_H) typedef LONG NTSTATUS, *PNTSTATUS; typedef struct _UNICODE_STRING { @@ -25,7 +27,7 @@ typedef struct _UNICODE_STRING { USHORT MaximumLength; PWSTR Buffer; } UNICODE_STRING, *PUNICODE_STRING; -typedef struct __STRING { +typedef struct _STRING { USHORT Length; USHORT MaximumLength; PCHAR Buffer; -- cgit v1.2.3