3.1.6.8 Lookup Directory Next
This event MUST be generated with the following arguments:
iLookupDescriptor: A LookupIteratorState object (see section 3.1.1.13) that was returned by a preceding call to the Begin Directory Lookup (section 3.1.6.7) event.
Return Values:
rStatus: An HRESULT indicating the result of the operation.
rPropertyValue: An array of PROPVARIANT structures in which to return the properties of the objects that satisfy the restrictions established in a preceding call to the Begin Directory Lookup event. The size of the array MUST be a multiple of the number of properties specified in iColumnSet provided to the Begin Directory Lookup event.
The server SHOULD<132> perform the following actions:
Generate a Read Directory Next ([MS-MQDSSM] section 3.1.6.5) event with the following argument:
iQueryHandle := iLookupDescriptor.LookupState
If rStatus of the preceding event is DirectoryOperationResult.EndOfData, set rStatus to MQ_OK (0x00000000), set rPropertyValue to an empty array, and take no further action. If the event does not return DirectoryOperationResult.Success, take no further action, and return an error.
If rStatus of the preceding event is not DirectoryOperationResult.Success, take no further action and return an error.
Let nextObject be a directory object initialized to rDirectoryObject of the event.
Let propValues be an array of PROPVARIANT structures with as many elements as the count of property identifiers in iLookupDescriptor.PropertyList. Populate propValues with the attributes of nextObject using the mapping defined in section 3.1.4.21.8.1.
Append propValues to rPropertyValue.
Set rStatus to MQ_OK (0x00000000).