Partager via


3.1.5.3.3 SamrQueryDisplayInformation (Opnum 40)

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

 long SamrQueryDisplayInformation(
   [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

SamrQueryDisplayInformation.DomainHandle

DisplayInformationClass

SamrQueryDisplayInformation.DisplayInformationClass

Index

SamrQueryDisplayInformation.Index

EntryCount

SamrQueryDisplayInformation.EntryCount

PreferredMaximumLength

SamrQueryDisplayInformation.PreferredMaximumLength

TotalAvailable

SamrQueryDisplayInformation.TotalAvailable

TotalReturned

SamrQueryDisplayInformation.TotalReturned

Buffer

SamrQueryDisplayInformation.Buffer