diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2000-10-09 09:51:46 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2000-10-09 09:51:46 +0000 |
commit | b9e7a2b6662bcfef28b6fafddfeb9ff1e00ac5f5 (patch) | |
tree | 3449497d663aa1ad6adf911fd258f25cd90972ba /winsup/w32api/include/ntdef.h | |
parent | 4b5970ab899c8a58d197b2b500157dbca3f2a1fc (diff) | |
download | cygnal-b9e7a2b6662bcfef28b6fafddfeb9ff1e00ac5f5.tar.gz cygnal-b9e7a2b6662bcfef28b6fafddfeb9ff1e00ac5f5.tar.bz2 cygnal-b9e7a2b6662bcfef28b6fafddfeb9ff1e00ac5f5.zip |
* 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.
Diffstat (limited to 'winsup/w32api/include/ntdef.h')
-rw-r--r-- | winsup/w32api/include/ntdef.h | 16 |
1 files changed, 9 insertions, 7 deletions
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; |