术语 | shcreateiteminknownfolder |
释义 | SHCreateItemInKnownFolder 语法: HRESULT SHCreateItemInKnownFolder( REFKNOWNFOLDERID kfid, DWORD dwKFFlags, PCWSTR pszItem, REFIID riid, void **ppv ); SHCreateItemInKnownFolder功能 创造了一个单一的文件,文件夹内已知存在壳牌项目的对象。 参数 kfid 向KNOWNFOLDERID,一个GUID标识文件夹包含的项目引用。 dwKFFlags 标志指定的对象检索的特殊选项。此值可以是0,否则,一个或KNOWN_FOLDER_FLAG价值观。 pszItem [in]指向一个空结束的缓冲区,它包含Unicode字符串作为一个新的项目文件名。此参数也可以为NULL。在这种情况下,IShellItem代表已知的文件夹本身被创建。 riid 一个接口,表示项目的IID参考。 PPV的 [内]当此函数返回时,包含了接口指针riid请求。这通常是IShellItem或IShellItem2。 返回值 返回S_OK如果成功,或其他错误值。 功能信息 最低DLL版本 Shell32.dll 自定义ImplementationNo Headershobjidl.h import libraryNone 最低支持操作系统 Vista ==英文原文==SHCreateItemInKnownFolder Function Creates a Shell item object for a single file that exists inside a known folder. Syntax HRESULT SHCreateItemInKnownFolder( REFKNOWNFOLDERID kfid, DWORD dwKFFlags, PCWSTR pszItem, REFIID riid, void **ppv ); Parameters kfid A reference to the KNOWNFOLDERID , a GUID that identifies the folder that contains the item. dwKFFlags Flags that specify special options in the object retrieval. This value can be 0; otherwise, one or more of the KNOWN_FOLDER_FLAG values. pszItem [in] A pointer to a null-terminated buffer that contains the file name of the new item as a Unicode string. This parameter can also be NULL. In this case, an IShellItem that represents the known folder itself is created. riid A reference to the IID of the interface that represents the item. ppv [out] When this function returns, contains the interface pointer requested in riid. This will usually be IShellItem or IShellItem2 . Return Value Returns S_OK if successful, or an error value otherwise. Function Information Minimum DLL VersionShell32.dll Custom ImplementationNo Headershobjidl.h Import libraryNone Minimum operating systemsWindows Vista ==原始网址==http://msdn.microsoft.com/en-us/library/bb762136(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。