Purpose
Returns as SHITEMID (item identifier) structure for the folder object at the specified position in the list of folder contents. This is a required member function.
Syntax
HRESULT STDMETHODCALLTYPE ItemAt( ULONG ulIndex, LPITEMIDLIST* ppidl );
Parameters
Return Codes
Returns NOERROR if successful or E_FAIL if the item is not available. Returns E_OUTOFMEMORY if insufficient memory was available for the item identifier.
Comments
The iSeries™ Navigator repeatedly calls this function to populate a folder in realtime. Long running operations should therefore be avoided. Refer to CWBA4HYF.H for the format of iSeries Navigator item identifiers. Use the Windows® IMalloc interface to allocate memory for the item identifier.