> ## 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.

# IDStorageFileX

> IDStorageFileX

# IDStorageFileX

DirectStorage によってアクセスされるファイルを表します。

## 構文

```cpp theme={null}
class IDStorageFileX : public IUnknown  
```

## メソッド

| メソッド                                                                                                       | 説明                                |
| ---------------------------------------------------------------------------------------------------------- | --------------------------------- |
| [IDStorageFileX::Close](/reference/system/dstorage/interfaces/IDStorageFileX/methods/idstoragefilex_close) | ファイルを閉じます。                        |
| [GetHandle](/reference/system/dstorage/interfaces/IDStorageFileX/methods/idstoragefilex_gethandle)         | オブジェクトが表すファイルへの Win32 ハンドルを取得します。 |

## 解説

`IDStorageFileX` インターフェイスを実装するオブジェクトを作成するには、[IDStorageFactoryX::OpenFile](/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_openfile) メソッドを呼び出します。これは、Win32 API インターフェイスで `CreateFile` を使用するのに似ています。

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

## 要件

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

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

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

## 関連項目

[IDStorageFactoryX::OpenFile](/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_openfile)\
[DStorage](/reference/system/dstorage/dstorage_members)


## Related topics

- [DirectStorage の概要](/ja-jp/build/console-features/storage/directstorage/directstorage-overview.md)
- [IDStorageFileX::Close](/ja-jp/reference/system/dstorage/interfaces/IDStorageFileX/methods/idstoragefilex_close.md)
- [IDStorageFileX::GetHandle](/ja-jp/reference/system/dstorage/interfaces/IDStorageFileX/methods/idstoragefilex_gethandle.md)
- [IDStorageFactoryX::OpenFile](/ja-jp/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_openfile.md)
- [DStorage](/ja-jp/reference/system/dstorage/dstorage_members.md)
