[This function is available through Windows XP with Service Pack 2 (SP2) and Windows Server 2003. It might be altered or unavailable in subsequent versions of Windows. ]
Enumerates the contents of the most recently used (MRU) list. Optionally retrieves an item from the enumeration.
- hMRU [in]
The handle of the MRU list, obtained when the list was created.
- nItem [in]
The item to return. If this value is less than 0, the function returns the number of items in the MRU list.
- lpData [out]
A pointer to a buffer that receives the item requested in nItem. If nItem is less than 0, the contents of this buffer are unchanged.
- uLen [in]
The size of the buffer, including the terminating null character. If the MRU list was created with the MRU_BINARY flag, this is the size in bytes. Otherwise, it is the size in characters.
Returns one of the following values.
- Returns the number of items in the enumeration, if nItem is less than 0.
- Returns -1 if an error occurred.
- Otherwise, returns the size of the string returned in lpData, including the terminating null character. If the MRU list was created with the MRU_BINARY flag, this is the size in bytes. Otherwise, it is the size in characters.
This function is not included in a public header or library. It can be accessed through GetProcAddress or extracted from comctl32.dll by its ordinal, which is 403 for EnumMRUListW.
Minimum supported client
|Windows 2000 Professional [desktop apps only]|
Minimum supported server
|Windows 2000 Server [desktop apps only]|
Unicode and ANSI names