2.2.2.2.3 DNS_RPC_NODE

The DNS_RPC_NODE defines a structure that is used as a header for a list of DNS_RPC_RECORD structures (section 2.2.2.2.5) returned by the DNS server inside a DNS_RPC_BUFFER (section 2.2.1.2.2) while processing the R_DnssrvEnumRecords2 (section 3.1.4.9).


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

wLength

wRecordCount

dwFlags

dwChildCount

dnsNodeName (variable)

...

wLength (2 bytes): The length of this structure, in bytes, including the fixed size elements plus the length of the dnsNodeName element. The length of this structure is always 4-byte aligned, so it is possible to have 0-3 bytes of padding at the end of the structure. The pad bytes are included in the wLength count.

wRecordCount (2 bytes): The number of DNS_RPC_RECORD structures that follow this node structure.

dwFlags (4 bytes): The properties of the DNS_RPC_NODE structure.

dwChildCount (4 bytes): The total number of children nodes below this node in the DNS record database.

dnsNodeName (variable): The name of this node in DNS_RPC_NAME (section 2.2.2.2.1) format.