未分类--Windows API--AddMRUStringW

来源:互联网 发布:白金数据原著 编辑:程序博客网 时间:2024/05/02 00:02

原文来自MSDN Library for Visual Studio 2008 SP1,翻译部分仅为个人观点,想要看更多信息请看MSDN,如有版权问题请联系QQ 643166601,邮件643166601@qq.com

 

AddMRUStringW Function

--------------------------------------------------------------------------------

Adds a string to the top of the most recently used (MRU) list.
增加一个字符串到最近使用(MRU)列表的顶部。
Syntax

int AddMRUStringW(         
HANDLE hMRU,
LPCTSTR szString
);
Parameters

hMRU
[in] The handle of the MRU list.
MRU列表的句柄。
szString
[in] A pointer to the data.
一个指针指向数据。
This can be either a string or, if the MRU list was created with the MRU_BINARY flag, binary data.
这个可以是一个字符串或如果这个MRU列表是使用MRU_BINARY flag创建的二进制数据。
In the case of binary data, the first DWORD indicates its size.
在二进制数据的场合,首先DWORD指示它的大小。
Return Value

Returns a non-negative value if successful, -1 otherwise.
如果成功返回一个非负值,否则返回-1。
Remarks

Note  This function is available through Microsoft Windows XP Service Pack 2 (SP2) and Windows Server 2003.
注意:这个函数在Microsoft Windows XP Service Pack 2 (SP2) 和 Windows Server 2003 中是可用的。
It might be altered or unavailable in subsequent versions of Windows.
它可能在Windows随后的版本中被修改或不可用。
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 401 for AddMRUStringW.
它可以通过GetProcAddress访问或通过徐舒从comctl32.dll中提取,AddMRUStringW是401号。
Function Information

Minimum DLL Version comctl32.dll version 5.0 or later
Custom Implementation No
Import library None
Minimum operating systems Windows 2000
Unicode Implemented as Unicode version.


--------------------------------------------------------------------------------

 

0 0
原创粉丝点击