* 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.
This commit is contained in:
Corinna Vinschen
2000-10-08 16:55:29 +00:00
parent 57bf29e825
commit 65bb926f51
10 changed files with 857 additions and 84 deletions

View File

@ -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 */