diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2000-10-08 16:55:29 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2000-10-08 16:55:29 +0000 |
commit | 65bb926f51a5cac83b63e98e81121ece36d57454 (patch) | |
tree | 590e9471cb779f8dac5adc0ef342c695f0c2b422 /winsup/w32api/include/ntdef.h | |
parent | 57bf29e8258b921e632666ff17081805a5a62953 (diff) | |
download | cygnal-65bb926f51a5cac83b63e98e81121ece36d57454.tar.gz cygnal-65bb926f51a5cac83b63e98e81121ece36d57454.tar.bz2 cygnal-65bb926f51a5cac83b63e98e81121ece36d57454.zip |
* include/ntsecapi.h: New file.
* include/subauth.h: Ditto.
* include/ipexport.h: Fix global header define not to contain
trailing underscore. Change layout according to standard.
* include/iphlpapi.h: Ditto.
* include/ipifcons.h: Ditto.
* include/iptypes.h: Ditto.
* include/ntdef.h: Ditto. Define conditional datatypes dependent
of inclusion of ntdecapi.h and subauth.h.
* lib/secur32.def: New stub for secur32.dll.
Diffstat (limited to 'winsup/w32api/include/ntdef.h')
-rw-r--r-- | winsup/w32api/include/ntdef.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/winsup/w32api/include/ntdef.h b/winsup/w32api/include/ntdef.h index 71e84da16..a192a78d7 100644 --- a/winsup/w32api/include/ntdef.h +++ b/winsup/w32api/include/ntdef.h @@ -1,8 +1,6 @@ -#ifndef _NTDEF_H_ -#define _NTDEF_H_ - +#ifndef _NTDEF_H +#define _NTDEF_H #define NTAPI __stdcall - #define OBJ_INHERIT 2L #define OBJ_PERMANENT 16L #define OBJ_EXCLUSIVE 32L @@ -10,7 +8,6 @@ #define OBJ_OPENIF 128L #define OBJ_OPENLINK 256L #define OBJ_VALID_ATTRIBUTES 498L - #define InitializeObjectAttributes(p,n,a,r,s) { \ (p)->Length = sizeof( OBJECT_ATTRIBUTES ); \ (p)->RootDirectory = r; \ @@ -19,17 +16,22 @@ (p)->SecurityDescriptor = s; \ (p)->SecurityQualityOfService = NULL; \ } - #define STATUS_SUCCESS ((NTSTATUS)0) #define NT_SUCCESS(x) ((x)>=0) - +#if !defined(_NTSECAPI_H) && !defined(_SUBAUTH_H) typedef LONG NTSTATUS, *PNTSTATUS; -typedef LARGE_INTEGER PHYSICAL_ADDRESS, *PPHYSICAL_ADDRESS; typedef struct _UNICODE_STRING { USHORT Length; USHORT MaximumLength; PWSTR Buffer; } UNICODE_STRING, *PUNICODE_STRING; +typedef struct __STRING { + USHORT Length; + USHORT MaximumLength; + PCHAR Buffer; +} STRING, *PSTRING; +#endif +typedef LARGE_INTEGER PHYSICAL_ADDRESS, *PPHYSICAL_ADDRESS; typedef enum _SECTION_INHERIT { ViewShare = 1, ViewUnmap = 2 @@ -42,5 +44,4 @@ typedef struct _OBJECT_ATTRIBUTES { PVOID SecurityDescriptor; PVOID SecurityQualityOfService; } OBJECT_ATTRIBUTES, *POBJECT_ATTRIBUTES; - -#endif /* _NTDEF_H_ */ +#endif /* _NTDEF_H */ |