FindCollectionItem method


Prototype

FindCollectionItem Proto hHandle:HANDLE, lpszString:LPSTR

Syntax

Invoke FindCollectionItem, hHandle, lpszString

Function

Finds a string in a collection that begins with the specified string.

Parameters

hHandle

Handle to the collection.

lpszString

Pointer to the effective address of the null-terminated string to be searched for.

Return value

Eax returns the zero-based index for the item in the collection, or -1 if the string was not found.


REMARKS: The FindCollectionItem method finds lpszString as a Unicode string if the application is running as Unicode, or as an ANSI string if not (see the IsAppUnicode method). You can call FindCollectionItemA to find ANSI strings in Unicode applications, or FindCollectionItemW to find Unicode strings in ANSI applications.