[PSDK] Use proper packing for some structures.

svn path=/trunk/; revision=66430
This commit is contained in:
Amine Khaldi 2015-02-23 18:31:46 +00:00
parent 8a7bac06a7
commit e9c44033b2

View file

@ -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;