Freigeben über


3.1.5.3.2 SamrQueryDisplayInformation2 (Opnum 48)

The SamrQueryDisplayInformation2 method obtains a list of accounts in ascending name-sorted order, starting at a specified index.

 long SamrQueryDisplayInformation2(
   [in] SAMPR_HANDLE DomainHandle,
   [in] DOMAIN_DISPLAY_INFORMATION DisplayInformationClass,
   [in] unsigned long Index,
   [in] unsigned long EntryCount,
   [in] unsigned long PreferredMaximumLength,
   [out] unsigned long* TotalAvailable,
   [out] unsigned long* TotalReturned,
   [out, switch_is(DisplayInformationClass)] 
     PSAMPR_DISPLAY_INFO_BUFFER Buffer
 );

See the description of SamrQueryDisplayInformation3 (section 3.1.5.3.1) for details, because the method-interface arguments and message processing are identical.

This protocol asks the RPC runtime, via the strict_context_handle attribute, to reject the use of context handles created by a method of a different RPC interface than this one, as specified in [MS-RPCE] section 3.

The server MUST behave as with a call to SamrQueryDisplayInformation3, with the following parameter values.

Parameter name

Parameter value

DomainHandle

SamrQueryDisplayInformation2.DomainHandle

DisplayInformationClass

SamrQueryDisplayInformation2.DisplayInformationClass

Index

SamrQueryDisplayInformation2.Index

EntryCount

SamrQueryDisplayInformation2.EntryCount

PreferredMaximumLength

SamrQueryDisplayInformation2.PreferredMaximumLength

TotalAvailable

SamrQueryDisplayInformation2.TotalAvailable

TotalReturned

SamrQueryDisplayInformation2.TotalReturned

Buffer

SamrQueryDisplayInformation2.Buffer