网站首页  词典首页

请输入您要查询的函数:

 

术语 shcreateitemfromparsingname
释义 SHCreateItemFromParsingName
语法:
HRESULT SHCreateItemFromParsingName( PCWSTR pszPath,
IBindCtx *pbc,
REFIID riid,
void **ppv
);
SHCreateItemFromParsingName功能
创建并初始化一个解析名称壳牌项目的对象。
参数
pszPath
[in]指向一个显示名称。
中国人民银行
[in]可选。 一个绑定的情况下使用传递的投入和解析函数输出参数的指针。这些参数往往是通过具体的数据来源,数据源的业主记录。例如,文件系统数据源接受的名称解析(作为一个WIN32_FIND_DATA结构),使用STR_FILE_SYS_BIND_DATA绑定上下文参数。 STR_PARSE_PREFER_FOLDER_BROWSING可以通过表明,网址解析使用文件系统数据源在可能的情况。构造一个上下文对象绑定使用CreateBindCtx和填充值使用IBindCtx::RegisterObjectParam。 See Bind Context String Keys for a complete list of these.
如果没有数据被传递到或从收到的解析函数,这个值可以为NULL。
riid
[in]是对接口的IID通过检索参考PPV的,通常IID_IShellItem或IID_IShellItem2。
PPV的
[内]当此方法成功返回,包含了接口指针riid请求。这通常是IShellItem或IShellItem2。
返回值
返回S_OK如果成功,或其他错误值。
备注
我们建议您使用IID_PPV_ARGS宏,Objbase.h定义,以包riid和PPV的参数。此宏提供正确的IID接口的基础上所指出的PPV的,从而消除了riid可能导致意想不到的结果编码错误的可能性价值。
功能信息
最低DLL版本 Shell32.dll
自定义ImplementationNo
Headershobjidl.h
import libraryNone
最低支持操作系统 Vista
==英文原文==SHCreateItemFromParsingName Function
Creates and initializes a Shell item object from a parsing name.
Syntax
HRESULT SHCreateItemFromParsingName( PCWSTR pszPath,
IBindCtx *pbc,
REFIID riid,
void **ppv
);
Parameters
pszPath
[in] A pointer to a display name.
pbc
[in] Optional. A pointer to a bind context used to pass parameters as inputs and outputs to the parsing function. These passed parameters are often specific to the data source and are documented by the data source owners. For example, the file system data source accepts the name being parsed (as a WIN32_FIND_DATA structure), using the STR_FILE_SYS_BIND_DATA bind context parameter. STR_PARSE_PREFER_FOLDER_BROWSING can be passed to indicate that URLs are parsed using the file system data source when possible. Construct a bind context object using CreateBindCtx and populate the values using IBindCtx::RegisterObjectParam . See Bind Context String Keys for a complete list of these.
If no data is being passed to or received from the parsing function, this value can be NULL.
riid
[in] A reference to the IID of the interface to retrieve through ppv, typically IID_IShellItem or IID_IShellItem2.
ppv
[out] When this method returns successfully, contains the interface pointer requested in riid. This is typically IShellItem or IShellItem2 .
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
We recommend that you use the IID_PPV_ARGS macro, defined in Objbase.h, to package the riid and ppv parameters. This macro provides the correct IID based on the interface pointed to by the value in ppv, which eliminates the possibility of a coding error in riid that could lead to unexpected results.
Function Information
Minimum DLL VersionShell32.dll
Custom ImplementationNo
Headershobjidl.h
Import libraryNone
Minimum operating systemsWindows Vista
==原始网址==http://msdn.microsoft.com/en-us/library/bb762134(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:25:35