DStorageGetFactory
Returns the static DirectStorage factory object.
Syntax
HRESULT DStorageGetFactory(
REFIID riid,
void **ppv
)
Parameters
riid
Type: REFIID
Specifies the DirectStorage factory interface, such as __uuidof(IDStorageFactoryX1)
.
ppv
Type: void **
Pointer that receives a reference to the static DirectStorage factory object.
Return value
Type: HRESULT
Standard HRESULT error code.
Remarks
This function returns the static DirectStorage factory object (IDStorageFactoryX1). Use the object to create DirectStorage queues, open files for DirectStorage access, and perform global operations.
For more information, see the "IDStorageFactoryX" and "IDStorageFactoryX1" sections of DirectStorage Overview.
Requirements
Header: dstorage_xs.h
Library: dstorage_xs.lib
Supported platforms: Xbox Series consoles