AddMRUStringW (COMCTL32.401)
INT AddMRUStringW ( HANDLE hList, LPCWSTR lpszString )
Add an item to an MRU string list.
hList | [In] | Handle to list. |
lpszString | [In] | The string to add. |
Success: The number corresponding to the registry name where the string has been stored (0 maps to 'a', 1 to 'b' and so on).
Failure: -1, if hList is NULL or memory allocation fails. If lpszString is invalid, the function returns 0, and GetLastError returns ERROR_INVALID_PARAMETER. The last error value is set only in this case.
-If lpszString exists in the list already, it is moved to the top of the MRU list (it is not duplicated).
-If the list is full the least recently used list entry is replaced with lpszString.
-If this function returns 0 you should check the last error value to ensure the call really succeeded.
Exported by ordinal only. Use GetProcAddress to obtain a pointer to the function.
Implemented in "dlls/comctl32/comctl32undoc.c". source.winehq.org/source/dlls/comctl32/comctl32undoc.c
Debug channel "commctrl".
Copyright © 2008 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Nov 2008.