Skip to main content

DStorageGetFactory

返回静态 DirectStorage 工厂对象。

Syntax

Parameters

riid   
类型:REFIID
指定 DirectStorage 工厂接口,例如 __uuidof(IDStorageFactoryX2) ppv   
类型:void **
接收对静态 DirectStorage 工厂对象引用的指针。

Return value

类型:HRESULT 标准 HRESULT 错误代码。

Remarks

此函数返回静态 DirectStorage 工厂对象 (IDStorageFactoryX2)。使用该对象可以创建 DirectStorage 队列、打开供 DirectStorage 访问的文件以及执行全局操作。 有关详细信息,请参阅 DirectStorage 概述 中的“IDStorageFactoryX”“IDStorageFactoryX1”和“IDStorageFactoryX2”几节。

Requirements

头文件: dstorage_xs.h 库: dstorage_xs.lib 受支持的平台: XBOX Series 主机

See also

IDStorageFactoryX
IDStorageFactoryX1
IDStorageFactoryX2
DStorage
最后修改于 2026年8月24日