IEnumIDListNext Method

Retrieves the specified number of item identifiers in the enumeration sequence and advances the current position by the number of items retrieved.

Definition

Namespace: DevCase.Win32.Interfaces
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[PreserveSigAttribute]
HResult Next(
	uint count,
	ref IntPtr refPidls,
	ref uint refFetched
)

Parameters

count  UInt32
The number of elements in the array referenced by the rgelt parameter.
refPidls  IntPtr
The address of a pointer to an array of ITEMIDLIST pointers that receive the item identifiers.

The implementation must allocate these item identifiers using CoTaskMemAlloc.

The calling application is responsible for freeing the item identifiers using CoTaskMemFree.

refFetched  UInt32
A pointer to a value that receives a count of the item identifiers actually returned in refPidls.

The count can be smaller than the value specified in the count parameter.

This parameter can be NULL on entry only if count = 1, because in that case the method can only retrieve one (S_OK) or zero (S_FALSE) items.

Return Value

HResult
Returns S_OK if the method successfully retrieved the requested count elements.

This method only returns S_OK if the full count of requested items are successfully retrieved.

S_FALSE indicates that more items were requested than remained in the enumeration.

The value pointed to by the refPidls parameter specifies the actual number of items retrieved. Note that the value will be 0 if there are no more items to retrieve.

See Also