mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
[PSDK] Use proper packing for some structures.
svn path=/trunk/; revision=66430
This commit is contained in:
parent
8a7bac06a7
commit
e9c44033b2
1 changed files with 32 additions and 25 deletions
|
@ -153,6 +153,8 @@ typedef struct {
|
|||
DWORD IP6Dword[4];
|
||||
} IP6_ADDRESS, *PIP6_ADDRESS, DNS_IP6_ADDRESS, *PDNS_IP6_ADDRESS;
|
||||
|
||||
#pragma pack(push, 1)
|
||||
|
||||
typedef struct _DNS_HEADER {
|
||||
WORD Xid;
|
||||
BYTE RecursionDesired:1;
|
||||
|
@ -171,6 +173,20 @@ typedef struct _DNS_HEADER {
|
|||
WORD AdditionalCount;
|
||||
} DNS_HEADER, *PDNS_HEADER;
|
||||
|
||||
typedef struct _DNS_WIRE_QUESTION {
|
||||
WORD QuestionType;
|
||||
WORD QuestionClass;
|
||||
} DNS_WIRE_QUESTION, *PDNS_WIRE_QUESTION;
|
||||
|
||||
typedef struct _DNS_WIRE_RECORD {
|
||||
WORD RecordType;
|
||||
WORD RecordClass;
|
||||
DWORD TimeToLive;
|
||||
WORD DataLength;
|
||||
} DNS_WIRE_RECORD, *PDNS_WIRE_RECORD;
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
typedef struct _DNS_MESSAGE_BUFFER {
|
||||
DNS_HEADER MessageHead;
|
||||
CHAR MessageBody[1];
|
||||
|
@ -389,16 +405,7 @@ typedef struct {
|
|||
DWORD dwCacheTimeout;
|
||||
LPWSTR pNameResultDomain;
|
||||
} DNS_WINSR_DATAW, *PDNS_WINSR_DATAW;
|
||||
typedef struct _DNS_WIRE_QUESTION {
|
||||
WORD QuestionType;
|
||||
WORD QuestionClass;
|
||||
} DNS_WIRE_QUESTION, *PDNS_WIRE_QUESTION;
|
||||
typedef struct _DNS_WIRE_RECORD {
|
||||
WORD RecordType;
|
||||
WORD RecordClass;
|
||||
DWORD TimeToLive;
|
||||
WORD DataLength;
|
||||
} DNS_WIRE_RECORD, *PDNS_WIRE_RECORD;
|
||||
|
||||
typedef struct {
|
||||
IP4_ADDRESS IpAddress;
|
||||
UCHAR chProtocol;
|
||||
|
|
Loading…
Reference in a new issue