共用方式為


2.2.1.7.3 NETLOGON_INFO_2

The NETLOGON_INFO_2 structure defines information returned as part of an administrative query of the status of the Netlogon server, as detailed in the description of the NetrLogonControl2Ex method in section 3.5.4.9.1. This structure is used to convey information about the status and properties of the secure channel to a DC in the primary or directly trusted domain specified by the caller of NetrLogonControl2Ex method.

 typedef struct _NETLOGON_INFO_2 {
   DWORD netlog2_flags;
   NET_API_STATUS netlog2_pdc_connection_status;
   [string] wchar_t* netlog2_trusted_dc_name;
   NET_API_STATUS netlog2_tc_connection_status;
 } NETLOGON_INFO_2,
  *PNETLOGON_INFO_2;

netlog2_flags: A set of bit flags describing the following control query responses from the DC. A flag is TRUE (or set) if its value is equal to 1. The value is constructed from zero or more bit flags from the following table.


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

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

C

0

B

A

0

0

0

0

Where the flags SHOULD<62> be defined as shown in the following table.

Value

Description

A

The DC used on the secure channel has an IP address (either IPv4 or IPv6).

B

The DC used on the secure channel runs W32Time.

C

Signifies that the trust verification status was returned in the netlog2_pdc_connection_status field.

All other bits MUST be set to zero and MUST be ignored on receipt.

netlog2_pdc_connection_status: Unless the C bit is set in netlog2_flags field, this field indicates the connection status, as defined in Setting ConnectionStatus (section 3.4.5.3.1), of the secure channel to a DC in the primary domain of the queried server. If the C bit is set in netlog2_flags field, this field indicates the connection status of verifying the secure channel to the DC in the specified domain specified by the caller of NetrLogonControl2Ex method (section 3.5.4.9.1).

netlog2_trusted_dc_name: A pointer to a null-terminated Unicode string that contains the DNS or NetBIOS name of the DC used on the secure channel for the specified domain. The name is the FQDN if the DC was discovered using the discovery mechanism based on the DNS query and LDAP ping ([MS-ADTS] section 6.3.3). The name is the NetBIOS name if the DC was discovered using the mailslot-based mechanism ([MS-ADTS] section 6.3.5).

netlog2_tc_connection_status: An integer value that indicates the connection status, defined in Setting ConnectionStatus (section 3.4.5.3.1), of the secure channel to the DC in the specified domain.