NAME

AddMRUStringW  (COMCTL32.401)

SYNOPSIS

 INT AddMRUStringW
 (
  HANDLE  hList,
  LPCWSTR lpszString
 )

DESCRIPTION

Add an item to an MRU string list.

PARAMS

hList [In] Handle to list.
lpszString [In] The string to add.

RETURNS

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.

NOTES

-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.

IMPLEMENTATION

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 © 2005 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Aug 2005.