网站首页  词典首页

请输入您要查询的函数:

 

术语 shsetlocalizedname
释义 SHSetLocalizedName
语法:
HRESULT SHSetLocalizedName( LPCWSTR pszPath,
LPCWSTR pszResModule,
int idsRes
);
SHSetLocalizedName功能
设置在一个文件夹壳牌本地化的名称。
参数
pszPath
[in]指向一个字符串,指定目标文件的完全限定路径。
pszResModule
[in]指向一个字符串资源,指定文件名的本地化版本。
idsRes
[in]一个整数编号,指定的字符串资源本地化的文件名。
返回值
返回S_OK如果成功,或其他错误值。
备注
当此字符串设置,资源管理器显示该字符串而不是文件名。到文件的路径不变。
应用程序可以得到与SIGDN_NORMALDISPLAY国旗和分析显示(本地化)的IShellFolder名称::GetDisplayNameOf(非本地化)与IShellItem名称::GetDisplayName使用SIGDN_DESKTOPABSOLUTEPARSING标志。
调用SHRemoveLocalizedName使得显示名称相同的解析名称。
功能信息
最低DLL版本 shell32.dll版本5.6或更高版本
自定义ImplementationNo
Headershellapi.h
import libraryshell32.dll
XP的最低经营systemsWindows
==英文原文==SHSetLocalizedName Function
Sets the localized name of a file in a Shell folder.
Syntax
HRESULT SHSetLocalizedName( LPCWSTR pszPath,
LPCWSTR pszResModule,
int idsRes
);
Parameters
pszPath
[in] A pointer to a string that specifies the fully qualified path of the target file.
pszResModule
[in] A pointer to a string resource that specifies the localized version of the file name.
idsRes
[in] An integer ID that specifies the localized file name in the string resource.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
When this string is set, Explorer displays this string instead of the file name. The path to the file is unchanged.
Applications can get the display (localized) name with IShellFolder::GetDisplayNameOf with the SIGDN_NORMALDISPLAY flag and the parsing (non-localized) name with IShellItem::GetDisplayName using the SIGDN_DESKTOPABSOLUTEPARSING flag.
Calling SHRemoveLocalizedName makes the display name identical to the parsing name.
Function Information
Minimum DLL Versionshell32.dll version 5.6 or later
Custom ImplementationNo
Headershellapi.h
Import libraryshell32.dll
Minimum operating systemsWindows XP
==原始网址==http://msdn.microsoft.com/en-us/library/bb762250(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:28:19