网站首页  词典首页

请输入您要查询的函数:

 

术语 shadddefaultpropertiesbyext
释义 SHAddDefaultPropertiesByExt
语法:
HRESULT SHAddDefaultPropertiesByExt( PCWSTR pszExt,
IPropertyStore *pPropStore
);
SHAddDefaultPropertiesByExt功能
添加默认属性,作为对指定的文件扩展名注册物业商店。
参数
pszExt
一个空指针,终止,统一代码,常量字符串指定的扩展名。
pPropStore
向IPropertyStore接口指针。
返回值
返回S_OK如果成功,或其他错误值。
备注
在用来设置默认值属性列表来自于对指定文件扩展名的文件关联的ProgID SetDefaultsFor注册表值。这份名单是由前缀“托:”和包含的属性名称,规范设置,如默认值:“托:System.Author; System.Document.DateCreated”。这个清单System.Author System.Document.DateCreated,可能的属性和System.Photo.DateTaken。如果SetDefaultsFor值不存在的ProgID,此函数使用默认上找到HKEY_CLASSES_ROOT的SetDefaultsFor价值\\ *.
System.Author已获得用户执行的操作价值。 System.Document.DateCreated和System.Photo.DateTaken使用当前日期。这三个属性是适合该系统提供的特殊默认唯一的问题。
请注意,在有几种类型的属性如下:(1)从属性(例如,大小和创建日期)文件系统派生,(2)属性来源于文件(如,尺寸和页数) ,(3)属性在文件(如,作者和标签)上。当创建一个新文件,第一类和第二只是通过创建该文件提供的。但是型三属性必须设置明确的程序。该系统提供SHAddDefaultPropertiesByExt,为他们提供三个类型的三个具体的属性值。有时,资源管理器使用这个API时,保存第一次文件,或在创建后的新菜单选择从上下文菜单中选择新的文件。
功能信息
最低DLL版本 Shell32.dll
自定义ImplementationNo
Headershobjidl.h
import libraryNone
最低支持操作系统 Vista
==英文原文==SHAddDefaultPropertiesByExt Function
Adds default properties to the property store as registered for the specified file extension.
Syntax
HRESULT SHAddDefaultPropertiesByExt( PCWSTR pszExt,
IPropertyStore *pPropStore
);
Parameters
pszExt
A pointer to a null-terminated, unicode, constant string that specifies the extension.
pPropStore
A pointer to the IPropertyStore interface.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
The list of properties used to set a default value comes from the SetDefaultsFor registry value of the ProgID for the file association of the specified file extension. The list is prefixed by "prop:" and contains the canonical names of the properties to set the default value, such as: "prop:System.Author;System.Document.DateCreated". The possible properties for this list are System.Author, System.Document.DateCreated, and System.Photo.DateTaken. If the SetDefaultsFor value does not exist on the ProgID, this function uses the default found on the SetDefaultsFor value of HKEY_CLASSES_ROOT\\*.
System.Author has the value of the user that performed the action. System.Document.DateCreated and System.Photo.DateTaken use the current date. These three properties are the only ones for which the system provides special defaults.
Note that there are several types of properties as follows: (1) properties that derive from the file system (such as, size and date created), (2) properties that derive from the file (such as, dimensions and number of pages), and (3) properties that are placed in the file (such as, author and tags). When creating a new file, types one and two are provided just by creating the file. But properties of type three must be set explicitly by a program. The system provides SHAddDefaultPropertiesByExt to provide values for up to three specific properties of type three. Sometimes Explorer uses this API when saving a file for the first time, or when creating a new file after the menu choice New is selected from a context menu.
Function Information
Minimum DLL VersionShell32.dll
Custom ImplementationNo
Headershobjidl.h
Import libraryNone
Minimum operating systemsWindows Vista
==原始网址==http://msdn.microsoft.com/en-us/library/bb762103(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 13:16:09