网站首页  词典首页

请输入您要查询的函数:

 

术语 shopenfolderandselectitems
释义 SHOpenFolderAndSelectItems
语法:
HRESULT SHOpenFolderAndSelectItems( PCIDLIST_ABSOLUTE pidlFolder,
UINT cidl,
PCUITEMID_CHILD_ARRAY *apidl,
DWORD dwFlags
);
SHOpenFolderAndSelectItems功能
打开一个在某一选定的文件夹指定物品的Windows资源管理器窗口。
参数
pidlFolder
[in]指向一个完全合格的指针的项目标识符列表(的PIDL),指定文件夹。
cidl
[in]一个在遴选数组apidl项目数。如果cidl为零,pidlFolder必须指向一个完全指定ITEMIDLIST描述一个项目的选择。此函数打开父文件夹并选择该项目。
apidl
[in]一个指向的的PIDL结构的数组,其中每个项目的选择由pidlFolder引用的目标文件夹。
dwFlags
[in]可选的标志。在Windows XP此参数被忽略。在Windows Vista中,下列标志的定义。
OFASI_EDIT
选择一个项目,并在编辑模式下它的名字。这个标志只能用于单个项目时,被选中。对于多个项目的选择,它被忽略。
OFASI_OPENDESKTOP
选择项目或桌面上的项目,而不是在Windows资源管理器窗口。请注意,如果在桌面上打开窗口的后面掩盖,也不会可见。
返回值
返回S_OK如果成功,或其他错误值。
备注
CoInitialize或CoInitializeEx之前必须调用使用SHOpenFolderAndSelectItems。不这样做的原因SHOpenFolderAndSelectItems失败。
功能信息
最低DLL版本 shell32.dll 6.0或更高版本
自定义ImplementationNo
Headershlobj.h
import libraryshell32.lib
XP的最低经营systemsWindows
==英文原文==SHOpenFolderAndSelectItems Function
Opens a Windows Explorer window with specified items in a particular folder selected.
Syntax
HRESULT SHOpenFolderAndSelectItems( PCIDLIST_ABSOLUTE pidlFolder,
UINT cidl,
PCUITEMID_CHILD_ARRAY *apidl,
DWORD dwFlags
);
Parameters
pidlFolder
[in] A pointer to a fully qualified pointer to an item identifier list (PIDL) that specifies the folder.
cidl
[in] A count of items in the selection array, apidl. If cidl is zero, then pidlFolder must point to a fully specified ITEMIDLIST describing a single item to select. This function opens the parent folder and selects that item.
apidl
[in] A pointer to an array of PIDL structures, each of which is an item to select in the target folder referenced by pidlFolder.
dwFlags
[in] The optional flags. Under Windows XP this parameter is ignored. In Windows Vista, the following flags are defined.
OFASI_EDIT
Select an item and put its name in edit mode. This flag can only be used when a single item is being selected. For multiple item selections, it is ignored.
OFASI_OPENDESKTOP
Select the item or items on the desktop rather than in a Windows Explorer window. Note that if the desktop is obscured behind open windows, it will not be made visible.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
CoInitialize or CoInitializeEx must be called before using SHOpenFolderAndSelectItems. Not doing so causes SHOpenFolderAndSelectItems to fail.
Function Information
Minimum DLL Versionshell32.dll version 6.0 or later
Custom ImplementationNo
Headershlobj.h
Import libraryshell32.lib
Minimum operating systemsWindows XP
==原始网址==http://msdn.microsoft.com/en-us/library/bb762232(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:23:00