IStorageProviderHandler::GetPropertyHandlerFromUri 方法 (storageprovider.h)

获取与提供的 URI 关联的 IStorageProviderPropertyHandler 实例。

语法

HRESULT GetPropertyHandlerFromUri(
  [in]  LPCWSTR                         uri,
  [out] IStorageProviderPropertyHandler **propertyHandler
);

参数

[in] uri

相关文件的 URI。

[out] propertyHandler

uri 指定的文件关联的 IStorageProviderPropertyHandler 实例。

返回值

如果该方法成功,则返回 S_OK。 否则,将返回 HRESULT 错误代码。

注解

此方法用于将远程 URI 转换为本地文件系统路径。 然后,该路径用于向本地文件提供 属性Handler

要求

要求
目标平台 Windows
标头 storageprovider.h

另请参阅

IStorageProviderHandler