19#if !defined(_NTDEF_) && !defined(_NTDEF_H)
27#if (_SAL_VERSION < 20)
34#ifndef WIN32_NO_STATUS
35#define WIN32_NO_STATUS
58#define FASTCALL __fastcall
67#if !defined(_M_CEE_PURE)
68#define NTAPI_INLINE NTAPI
76#define ALIGN_DOWN_BY(size, align) \
77 ((ULONG_PTR)(size) & ~((ULONG_PTR)(align) - 1))
79#define ALIGN_UP_BY(size, align) \
80 (ALIGN_DOWN_BY(((ULONG_PTR)(size) + align - 1), align))
82#define ALIGN_DOWN_POINTER_BY(ptr, align) \
83 ((PVOID)ALIGN_DOWN_BY(ptr, align))
85#define ALIGN_UP_POINTER_BY(ptr, align) \
86 ((PVOID)ALIGN_UP_BY(ptr, align))
88#define ALIGN_DOWN(size, type) \
89 ALIGN_DOWN_BY(size, sizeof(type))
91#define ALIGN_UP(size, type) \
92 ALIGN_UP_BY(size, sizeof(type))
94#define ALIGN_DOWN_POINTER(ptr, type) \
95 ALIGN_DOWN_POINTER_BY(ptr, sizeof(type))
97#define ALIGN_UP_POINTER(ptr, type) \
98 ALIGN_UP_POINTER_BY(ptr, sizeof(type))
103#define NT_SUCCESS(Status) (((NTSTATUS)(Status)) >= 0)
104#define NT_INFORMATION(Status) ((((ULONG)(Status)) >> 30) == 1)
105#define NT_WARNING(Status) ((((ULONG)(Status)) >> 30) == 2)
106#define NT_ERROR(Status) ((((ULONG)(Status)) >> 30) == 3)
113#define MINSHORT 0x8000
114#define MAXSHORT 0x7fff
115#define MINLONG 0x80000000
116#define MAXLONG 0x7fffffff
118#define MAXUSHORT 0xffff
119#define MAXULONG 0xffffffff
135#if !defined(_NTSECAPI_H) && !defined(_SUBAUTH_H) && !defined(_NTSECAPI_)
137#if !defined(__BCRYPT_H__) && !defined(__WINE_BCRYPT_H)
#define _Return_type_success_(c)
PVOID SecurityQualityOfService
PUNICODE_STRING ObjectName
struct _OBJECT_ATTRIBUTES * POBJECT_ATTRIBUTES
LARGE_INTEGER PHYSICAL_ADDRESS
struct _STRING64 * PANSI_STRING64
struct _STRING64 * PUNICODE_STRING64
struct _CLIENT_ID CLIENT_ID
struct _STRING64 ANSI_STRING64
struct _STRING32 STRING32
struct _CSTRING * PCSTRING
CONST STRING * PCOEM_STRING
struct _STRING32 ANSI_STRING32
struct _STRING32 * PUNICODE_STRING32
struct _STRING32 UNICODE_STRING32
struct _UNICODE_STRING * PUNICODE_STRING
struct _STRING64 UNICODE_STRING64
struct _STRING64 * PSTRING64
struct _STRING32 * PANSI_STRING32
struct _UNICODE_STRING UNICODE_STRING
struct _OBJECT_ATTRIBUTES OBJECT_ATTRIBUTES
LARGE_INTEGER * PPHYSICAL_ADDRESS
struct _STRING64 STRING64
struct _CLIENT_ID * PCLIENT_ID
struct _STRING32 * PSTRING32
const UNICODE_STRING * PCUNICODE_STRING