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

# WdGetDeviceStoragePath

> WdGetDeviceStoragePath

現在のユーザーのデバイス カタログの、完全に展開された絶対パスを返します。

**導入バージョン:** [RIT 0.0.14-preview](https://docs.xbox.com/ja-jp/reference/remoting/release-versions.md#release-versions)。

## 構文

```cpp theme={null}
HRESULT WD_REMOTE_ITERATION_CALL WdGetDeviceStoragePath(
    _In_ WdStringResultCallback callback,
    _In_opt_ void* context
);
```

### パラメーター

`callback`\
Type: **WdStringResultCallback**

必須の結果コールバックまたは列挙コールバック。継続と有効期間の規則については、「解説」を参照してください。

`context`\
Type: **void\***

省略可能。コールバックにそのまま渡される、呼び出し元が所有するコンテキスト。

### 戻り値

Type: **HRESULT**

成功した場合は `S_OK` を返します。それ以外の場合は、エラーを示す HRESULT を返します。カタログ操作では、「[XBOX PC Remote Iteration API エラー コード](https://docs.xbox.com/ja-jp/reference/remoting/error-codes.md)」で説明されているカタログ固有のエラーも返されます。

## 解説

コールバックは必須であり、成功時に 1 回だけ呼び出されます。その文字列は、コールバックが戻るまでのみ有効です。ストレージ パスは、ペアリングの承認やリモートのコンテンツ ディレクトリではありません。

保存済みデバイスの API とペアリング ID の API は、それぞれ異なるローカル ストアを変更します。これらの API は、リモート API 呼び出しの明示的な `remoteDevice` 引数に代わるものではありません。既定のデバイスを選択したい呼び出し元は、自分で解決する必要があります。

## 要件

| 要件 | 値 |
| - | - |
| **ヘッダー** | WdRemoteIteration.h |
| **ライブラリ** | wdremoteapi.lib |
| **NuGet パッケージ** | [Microsoft.GDK.RemoteIterationClientApi](https://aka.ms/GameDevRemoteAPI) |

## 関連項目

* [XBOX PC Remote Iteration API](https://docs.xbox.com/ja-jp/reference/remoting/remoteiteration_members.md)


## Related topics

- [WdGetDevice](https://docs.xbox.com/ja-jp/reference/remoting/functions/wdgetdevice.md)
- [WdGetDefaultDevice](https://docs.xbox.com/ja-jp/reference/remoting/functions/wdgetdefaultdevice.md)
- [WdGetDeviceProperty](https://docs.xbox.com/ja-jp/reference/remoting/functions/wdgetdeviceproperty.md)
- [XPersistentLocalStorageGetPath](https://docs.xbox.com/ja-jp/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragegetpath.md)
- [XPersistentLocalStorageGetPathSize](https://docs.xbox.com/ja-jp/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragegetpathsize.md)
