FindCollectionExactItem method
Prototype
FindCollectionExactItem Proto hHandle:HANDLE, lpszString:LPSTR
Syntax
Invoke FindCollectionExactItem, hHandle, lpszString
Function
Finds the first string in a collection that exactly matches 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 FindCollectionExactItem
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 FindCollectionExactItemA to find ANSI strings in Unicode applications, or FindCollectionExactItemW to find Unicode strings in ANSI applications.