共用方式為


2.2.1.7.1 NETLOGON_CONTROL_DATA_INFORMATION

The NETLOGON_CONTROL_DATA_INFORMATION union is used as input to the NetrLogonControl2 method, as specified in section 3.5.4.9.2, and the NetrLogonControl2Ex method, as specified in section 3.5.4.9.1. This union selects a data type, based on the FunctionCode parameter passed to the method. For details about FunctionCode values, see NetrLogonControl2Ex, section 3.5.4.9.1.

 typedef 
 [switch_type(DWORD)] 
 union _NETLOGON_CONTROL_DATA_INFORMATION {
   [case(5,6,9,10)] 
     [string] wchar_t* TrustedDomainName;
   [case(65534)] 
     DWORD DebugFlag;
   [case(8)] 
     [string] wchar_t* UserName;
   [default]     ;
 } NETLOGON_CONTROL_DATA_INFORMATION,
  *PNETLOGON_CONTROL_DATA_INFORMATION;

TrustedDomainName: A pointer to a null-terminated Unicode string that contains a trusted domain name. Switched on the DWORD ([MS-DTYP] section 2.2.9) values 0x00000005, 0x00000006, 0x00000009, and 0x0000000A. The DWORD values are equivalent to FunctionCode values. For a complete list of the Netlogon function codes and their associated meanings, see the NetrLogonControl2Ex method (section 3.5.4.9.1).

DebugFlag: A DWORD that contains an implementation-specific debug flag. Switched on the value 0x0000FFFE.

UserName: A pointer to null-terminated Unicode string that contains a username. Switched on the DWORD value 0x00000008.