* 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.
This commit is contained in:
Corinna Vinschen 2000-10-09 09:51:46 +00:00
parent 4b5970ab89
commit b9e7a2b666
6 changed files with 33 additions and 25 deletions

View File

@ -1,3 +1,11 @@
Mon Oct 9 11:49:00 2000 Corinna Vinschen <corinna@vinschen.de>
* 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.
Mon Oct 9 11:32:00 2000 Corinna Vinschen <corinna@vinschen.de> Mon Oct 9 11:32:00 2000 Corinna Vinschen <corinna@vinschen.de>
* include/ntsecapi.h: Fix PLSA_UNICODE_STRING define. * include/ntsecapi.h: Fix PLSA_UNICODE_STRING define.

View File

@ -21,15 +21,15 @@ extern "C" {
#define IF_PPP_ADAPTERTYPE 4 #define IF_PPP_ADAPTERTYPE 4
#define IF_LOOPBACK_ADAPTERTYPE 5 #define IF_LOOPBACK_ADAPTERTYPE 5
typedef struct { typedef struct {
char String[4 * 4]; char String[16];
} IP_ADDRESS_STRING, *PIP_ADDRESS_STRING, IP_MASK_STRING, *PIP_MASK_STRING; } IP_ADDRESS_STRING, *PIP_ADDRESS_STRING, IP_MASK_STRING, *PIP_MASK_STRING;
typedef struct __IP_ADDR_STRING { typedef struct _IP_ADDR_STRING {
struct __IP_ADDR_STRING* Next; struct __IP_ADDR_STRING* Next;
IP_ADDRESS_STRING IpAddress; IP_ADDRESS_STRING IpAddress;
IP_MASK_STRING IpMask; IP_MASK_STRING IpMask;
DWORD Context; DWORD Context;
} IP_ADDR_STRING, *PIP_ADDR_STRING; } IP_ADDR_STRING, *PIP_ADDR_STRING;
typedef struct __IP_ADAPTER_INFO { typedef struct _IP_ADAPTER_INFO {
struct __IP_ADAPTER_INFO* Next; struct __IP_ADAPTER_INFO* Next;
DWORD ComboIndex; DWORD ComboIndex;
char AdapterName[MAX_ADAPTER_NAME_LENGTH+4]; char AdapterName[MAX_ADAPTER_NAME_LENGTH+4];
@ -49,7 +49,7 @@ typedef struct __IP_ADAPTER_INFO {
time_t LeaseObtained; time_t LeaseObtained;
time_t LeaseExpires; time_t LeaseExpires;
} IP_ADAPTER_INFO, *PIP_ADAPTER_INFO; } IP_ADAPTER_INFO, *PIP_ADAPTER_INFO;
typedef struct { typedef struct _FIXED_INFO {
char HostName[MAX_HOSTNAME_LEN+4] ; char HostName[MAX_HOSTNAME_LEN+4] ;
char DomainName[MAX_DOMAIN_NAME_LEN+4]; char DomainName[MAX_DOMAIN_NAME_LEN+4];
PIP_ADDR_STRING CurrentDnsServer; PIP_ADDR_STRING CurrentDnsServer;

View File

@ -10,14 +10,16 @@
#define OBJ_VALID_ATTRIBUTES 498L #define OBJ_VALID_ATTRIBUTES 498L
#define InitializeObjectAttributes(p,n,a,r,s) { \ #define InitializeObjectAttributes(p,n,a,r,s) { \
(p)->Length = sizeof(OBJECT_ATTRIBUTES); \ (p)->Length = sizeof(OBJECT_ATTRIBUTES); \
(p)->RootDirectory = r; \ (p)->RootDirectory = (r); \
(p)->Attributes = a; \ (p)->Attributes = (a); \
(p)->ObjectName = n; \ (p)->ObjectName = (n); \
(p)->SecurityDescriptor = s; \ (p)->SecurityDescriptor = (s); \
(p)->SecurityQualityOfService = NULL; \ (p)->SecurityQualityOfService = NULL; \
} }
#define STATUS_SUCCESS ((NTSTATUS)0) #ifndef NT_SUCCESS
#define NT_SUCCESS(x) ((x)>=0) #define NT_SUCCESS(x) ((x)>=0)
#define STATUS_SUCCESS ((NTSTATUS)0)
#endif
#if !defined(_NTSECAPI_H) && !defined(_SUBAUTH_H) #if !defined(_NTSECAPI_H) && !defined(_SUBAUTH_H)
typedef LONG NTSTATUS, *PNTSTATUS; typedef LONG NTSTATUS, *PNTSTATUS;
typedef struct _UNICODE_STRING { typedef struct _UNICODE_STRING {
@ -25,7 +27,7 @@ typedef struct _UNICODE_STRING {
USHORT MaximumLength; USHORT MaximumLength;
PWSTR Buffer; PWSTR Buffer;
} UNICODE_STRING, *PUNICODE_STRING; } UNICODE_STRING, *PUNICODE_STRING;
typedef struct __STRING { typedef struct _STRING {
USHORT Length; USHORT Length;
USHORT MaximumLength; USHORT MaximumLength;
PCHAR Buffer; PCHAR Buffer;

View File

@ -18,7 +18,7 @@ extern "C" {
#define LSA_MODE_INDIVIDUAL_ACCOUNTS 2 #define LSA_MODE_INDIVIDUAL_ACCOUNTS 2
#define LSA_MODE_MANDATORY_ACCESS 3 #define LSA_MODE_MANDATORY_ACCESS 3
#define LSA_MODE_LOG_FULL 4 #define LSA_MODE_LOG_FULL 4
#define LSA_SUCCESS(Error) ((LONG)(Error) >= 0) #define LSA_SUCCESS(x) ((LONG)(x)>=0)
#define MSV1_0_ALLOW_SERVER_TRUST_ACCOUNT 32 #define MSV1_0_ALLOW_SERVER_TRUST_ACCOUNT 32
#define MSV1_0_ALLOW_WORKSTATION_TRUST_ACCOUNT 2048 #define MSV1_0_ALLOW_WORKSTATION_TRUST_ACCOUNT 2048
#define MSV1_0_CHALLENGE_LENGTH 8 #define MSV1_0_CHALLENGE_LENGTH 8

View File

@ -4,7 +4,8 @@
extern "C" { extern "C" {
#endif #endif
#ifndef NT_SUCCESS #ifndef NT_SUCCESS
#define NT_SUCCESS(Status) ((Status) >= 0) #define NT_SUCCESS(x) ((x)>=0)
#define STATUS_SUCCESS 0
#endif #endif
#define CYPHER_BLOCK_LENGTH 8 #define CYPHER_BLOCK_LENGTH 8
#define USER_SESSION_KEY_LENGTH (CYPHER_BLOCK_LENGTH*2) #define USER_SESSION_KEY_LENGTH (CYPHER_BLOCK_LENGTH*2)
@ -30,7 +31,6 @@ extern "C" {
#define SAM_DAYS_PER_WEEK 7 #define SAM_DAYS_PER_WEEK 7
#define SAM_HOURS_PER_WEEK 168 #define SAM_HOURS_PER_WEEK 168
#define SAM_MINUTES_PER_WEEK 10080 #define SAM_MINUTES_PER_WEEK 10080
#define STATUS_SUCCESS 0
#define STATUS_INVALID_INFO_CLASS 0xC0000003L #define STATUS_INVALID_INFO_CLASS 0xC0000003L
#define STATUS_NO_SUCH_USER 0xC0000064L #define STATUS_NO_SUCH_USER 0xC0000064L
#define STATUS_WRONG_PASSWORD 0xC000006AL #define STATUS_WRONG_PASSWORD 0xC000006AL
@ -67,9 +67,6 @@ extern "C" {
#define USER_ALL_PARAMETERS 2097152 #define USER_ALL_PARAMETERS 2097152
#if !defined(_NTDEF_H) && !defined(_NTSECAPI_H) #if !defined(_NTDEF_H) && !defined(_NTSECAPI_H)
typedef LONG NTSTATUS, *PNTSTATUS; typedef LONG NTSTATUS, *PNTSTATUS;
#endif
typedef PVOID SAM_HANDLE, *PSAM_HANDLE;
#ifndef _NTSECAPI_H
typedef struct _UNICODE_STRING { typedef struct _UNICODE_STRING {
USHORT Length; USHORT Length;
USHORT MaximumLength; USHORT MaximumLength;
@ -81,6 +78,7 @@ typedef struct _STRING {
PCHAR Buffer; PCHAR Buffer;
} STRING, *PSTRING; } STRING, *PSTRING;
#endif #endif
typedef PVOID SAM_HANDLE, *PSAM_HANDLE;
typedef struct _OLD_LARGE_INTEGER { typedef struct _OLD_LARGE_INTEGER {
ULONG LowPart; ULONG LowPart;
LONG HighPart; LONG HighPart;