wraps the IEnumShellItems interface and exposes enumeration of IShellItem interfaces.
| AutoHotkey | AHK v2 alpha |
| OS | Windows Vista / Windows Server 2008 or higher |
| Base classes | Unknown |
| Other classes | ShellItem |
| EnumShellItems | wraps the IEnumShellItems interface and exposes enumeration of IShellItem interfaces. |
| Variables | |
| IID | This is IID_IEnumShellItems. |
| ThrowOnCreation | Indicates that attempting to create an instance of this class without supplying a valid pointer should throw an exception. |
| Functions | |
| Next | Gets an array of one or more IShellItem interfaces from the enumeration. |
| Skip | Skips a given number of IShellItem interfaces in the enumeration. |
| Reset | Resets the internal count of retrieved IShellItem interfaces in the enumeration. |
| Clone | Gets a copy of the current enumeration. |
Next( count, byRef array, byRef retrievedCount : = "" )
Gets an array of one or more IShellItem interfaces from the enumeration.
| UINT count | the number of items to retrieve |
| byRef var array | receives an array of pointers to IShellItem interfaces that receive the enumerated item or items. The calling application is responsible for freeing the IShellItem interfaces by calling the IUnknown::Release method. |
| [opt] byRef UINT retrievedCount | receives the number of items actually retrieved. |
| BOOL success | true on success, false otherwise |
enum := new EnumShellItems(ptr) ; ptr must be a valid pointer enum.Next(2, array) MsgBox % "The first item's memory pointer: " . NumGet(&array, 0, "UPtr")
Gets an array of one or more IShellItem interfaces from the enumeration.
Next( count, byRef array, byRef retrievedCount : = "" )
Skips a given number of IShellItem interfaces in the enumeration.
Skip( count )
Resets the internal count of retrieved IShellItem interfaces in the enumeration.
Reset()
Gets a copy of the current enumeration.
Clone()