网站首页  词典首页

请输入您要查询的函数:

 

术语 shsetdefaultproperties
释义 SHSetDefaultProperties
语法:
HRESULT SHSetDefaultProperties( HWND hwnd,
IShellItem *psi,
DWORD dwFileOpFlags,
IFileOperationProgressSink *pfops
);
SHSetDefaultProperties功能
适用的属性上设置壳牌项目的默认。
参数
hwnd
[in]一个处理该项目的父窗口,它接收错误通知。此值可以为NULL。
防扩散安全倡议
为阿IShellItem对象,表示该项目的指针。
dwFileOpFlags
标志的自定义操作。见IFileOperation::为标志值SetOperationFlags。
pfops
[in]一个指向IFileOperationProgressSink对象用于跟踪行动的进展情况。见IFileOperation::提供咨询详情。此值可以为NULL。
返回值
返回S_OK如果成功,或其他错误值。
备注
属性列表设置默认值来自下的该项目的文件关联的ProgID SetDefaultsFor注册表项。这份名单是由前缀“托:”和包含属性的规范名称,设置默认值,例如,“托:System.Author; System.Document.DateCreated”。此列表中的可能的属性是“System.Author”,“System.Document.DateCreated”和“System.Photo.DateTaken”。如果SetDefaultsFor项不存在上的ProgID,此函数使用默认上找到HKEY_CLASSES_ROOT的SetDefaultsFor进入\\ *。
功能信息
最低DLL版本 Shell32.dll
自定义ImplementationNo
Headershobjidl.h
import libraryshell32.lib
最低支持操作系统 Vista
==英文原文==SHSetDefaultProperties Function
Applies the default set of properties on a Shell item.
Syntax
HRESULT SHSetDefaultProperties( HWND hwnd,
IShellItem *psi,
DWORD dwFileOpFlags,
IFileOperationProgressSink *pfops
);
Parameters
hwnd
[in] A handle to the item's parent window, which receives error notifications. This value can be NULL.
psi
A pointer to the IShellItem object that represents the item.
dwFileOpFlags
Flags that customize the operation. See IFileOperation::SetOperationFlags for flag values.
pfops
[in] A pointer to an IFileOperationProgressSink object used to follow the progress of the operation. See IFileOperation::Advise for details. This value can be NULL.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
The list of properties to set a default value comes from the SetDefaultsFor registry entry under the ProgID for the file association of the item. The list is prefixed by "prop:" and contains the canonical names of the properties to set the default value, for example, "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 entry does not exist on the ProgID, this function uses the default found on the SetDefaultsFor entry of HKEY_CLASSES_ROOT\\* .
Function Information
Minimum DLL VersionShell32.dll
Custom ImplementationNo
Headershobjidl.h
Import libraryshell32.lib
Minimum operating systemsWindows Vista
==原始网址==http://msdn.microsoft.com/en-us/library/bb762246(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:29:11