> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DStorageGetFactory

> DStorageGetFactory

# DStorageGetFactory

静的な DirectStorage ファクトリ オブジェクトを返します。

## 構文

```cpp theme={null}
HRESULT DStorageGetFactory(  
         REFIID riid,  
         void **ppv  
)  
```

### パラメーター

*riid*   \
Type: REFIID

`__uuidof(IDStorageFactoryX2)` などの DirectStorage ファクトリ インターフェイスを指定します。

*ppv*   \
Type: void \*\*

静的な DirectStorage ファクトリ オブジェクトへの参照を受け取るポインター。

### 戻り値

Type: HRESULT

標準の HRESULT エラー コード。

## 解説

この関数は、静的な DirectStorage ファクトリ オブジェクト ([IDStorageFactoryX2](/reference/system/dstorage/interfaces/IDStorageFactoryX2/idstoragefactoryx2)) を返します。このオブジェクトを使用して、DirectStorage キューの作成、DirectStorage アクセス用のファイルのオープン、およびグローバル操作の実行を行います。

詳細については、[DirectStorage の概要](/build/console-features/storage/directstorage/directstorage-overview) の「IDStorageFactoryX」、「IDStorageFactoryX1」および「IDStorageFactoryX2」セクションを参照してください。

## 要件

**ヘッダー:** dstorage\_xs.h

**ライブラリ:** dstorage\_xs.lib

**サポートされているプラットフォーム:** XBOX Series 本体

## 関連項目

[IDStorageFactoryX](/reference/system/dstorage/interfaces/IDStorageFactoryX/idstoragefactoryx)\
[IDStorageFactoryX1](/reference/system/dstorage/interfaces/IDStorageFactoryX1/idstoragefactoryx1)\
[IDStorageFactoryX2](/reference/system/dstorage/interfaces/IDStorageFactoryX2/idstoragefactoryx2)\
[DStorage](/reference/system/dstorage/dstorage_members)


## Related topics

- [IDStorageFactoryX](/ja-jp/reference/system/dstorage/interfaces/IDStorageFactoryX/idstoragefactoryx.md)
- [IDStorageFactoryX1](/ja-jp/reference/system/dstorage/interfaces/IDStorageFactoryX1/idstoragefactoryx1.md)
- [IDStorageFactoryX2](/ja-jp/reference/system/dstorage/interfaces/IDStorageFactoryX2/idstoragefactoryx2.md)
- [DStorage](/ja-jp/reference/system/dstorage/dstorage_members.md)
- [IDStorageFactoryX1::GetStats](/ja-jp/reference/system/dstorage/interfaces/IDStorageFactoryX1/methods/idstoragefactoryx1_getstats.md)
