网站首页  词典首页

请输入您要查询的函数:

 

术语 shcreateshellitem
释义 SHCreateShellItem
语法:
HRESULT SHCreateShellItem( PCIDLIST_ABSOLUTE pidlParent,
IShellFolder *psfParent,
PCUITEMID_CHILD pidl,
IShellItem **ppsi
);
SHCreateShellItem功能
创建一个IShellItem对象。
注意:建议您使用此功能,而不是SHCreateItemWithParent或SHCreateItemFromIDList。
参数
pidlParent
[in]一个指向项目标识符列表(的PIDL)的母公司。可以为NULL。
psfParent
[in]一个指向父IShellFolder。可以为NULL。
的PIDL
[in]一个PIDL所请求的项目。如果父母在信息不包括pidlParent或psfParent,这必须是一个绝对的PIDL。
ppsi
[内]当此方法返回,包含了接口指针到新的IShellItem。
返回值
返回S_OK如果成功,或其他错误值。
备注
SHCreateShellItem创建一个对象,表示一壳牌空间项目。调用者必须提供父母在pidlParent或psfParent,或者,调用者可以提供一个参数,在绝对的PIDL IDList信息。
有三种有效调用该函数的模式:
父文件夹确定的绝对IDList pidlParent。是的PIDL参数指向一个孩子IDList,标识内pidlParent确定的文件夹中的项目。
IShellItem *防扩散安全倡议;
SHCreateShellItem(pidlParent,空,pidlChild,与防扩散安全倡议);
父文件夹标识psfParent。是的PIDL参数指向一个孩子IDList,标识内psfParent确定的文件夹中的项目。
IShellItem *防扩散安全倡议;
SHCreateShellItem(空,psfParent,pidlChild,与防扩散安全倡议);
该项目是确定传递给的PIDL参数绝对IDList。
IShellItem *防扩散安全倡议;
SHCreateShellItem(空,空,pidlFull,与防扩散安全倡议);
功能信息
最低DLL版本 shell32.dll
自定义ImplementationNo
Headershlobj.h
import libraryshell32.lib
2000年最低经营systemsWindows
==英文原文==SHCreateShellItem Function
Creates an IShellItem object.
Note It is recommended that you use SHCreateItemWithParent or SHCreateItemFromIDList instead of this function.
Syntax
HRESULT SHCreateShellItem( PCIDLIST_ABSOLUTE pidlParent,
IShellFolder *psfParent,
PCUITEMID_CHILD pidl,
IShellItem **ppsi
);
Parameters
pidlParent
[in] A pointer to an item identifier list (PIDL) to the parent. Can be NULL.
psfParent
[in] A pointer to the parent IShellFolder . Can be NULL.
pidl
[in] A PIDL to the requested item. If parent information is not included in pidlParent or psfParent, this must be an absolute PIDL.
ppsi
[out] When this method returns, contains the interface pointer to the new IShellItem.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
SHCreateShellItem creates an object that represents a Shell namespace item. The caller must provide parent information in pidlParent or psfParent; alternatively, the caller can provide an absolute IDList in the pidl parameter.
There are three valid calling patterns for this function:
The parent folder is identified by an absolute IDList pidlParent. The pidl parameter points to a child IDList that identifies the item within the folder identified by pidlParent.
IShellItem *psi;
SHCreateShellItem(pidlParent, NULL, pidlChild, &psi);
The parent folder is identified by psfParent. The pidl parameter points to a child IDList that identifies the item within the folder identified by psfParent.
IShellItem *psi;
SHCreateShellItem(NULL, psfParent, pidlChild, &psi);
The item is identified by an absolute IDList passed to the pidl parameter.
IShellItem *psi;
SHCreateShellItem(NULL, NULL, pidlFull, &psi);
Function Information
Minimum DLL Versionshell32.dll
Custom ImplementationNo
Headershlobj.h
Import libraryshell32.lib
Minimum operating systemsWindows 2000
==原始网址==http://msdn.microsoft.com/en-us/library/bb762143(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:00