Export (0) Print
Expand All

3.5.4.9.2 NetrLogonControl2 (Opnum 14)

The NetrLogonControl2 method is a predecessor to the NetrLogonControl2Ex method (section 3.5.4.9.1) and was updated to have the same functionality when NetrLogonControl2Ex was added. All parameters of this method have the same meanings as the identically named parameters of the NetrLogonControl2Ex method.

NET_API_STATUS NetrLogonControl2(
  [in, unique, string] LOGONSRV_HANDLE ServerName,
  [in] DWORD FunctionCode,
  [in] DWORD QueryLevel,
  [in, switch_is(FunctionCode)] PNETLOGON_CONTROL_DATA_INFORMATION Data,
  [out, switch_is(QueryLevel)] PNETLOGON_CONTROL_QUERY_INFORMATION Buffer
);

All restrictions on parameter values in the NetrLoginControl2Ex method (section 3.5.4.9.1) apply. Extra restrictions are applied to the values of the QueryLevel parameter as follows:

  • If the QueryLevel parameter is set to 0x00000004, the error ERROR_INVALID_LEVEL is returned.

Message processing is identical to NetrLogonControl2Ex (section 3.5.4.9.1).

 
Show:
© 2014 Microsoft