> ## 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/zh-TW/reference/remoting/release-versions.md#release-versions)。

## 語法

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

### 參數

`callback`\
類型：**WdStringResultCallback**

必要的結果或列舉回呼。如需接續和存留期規則，請參閱「備註」。

`context`\
類型：**void\***

選用的呼叫端擁有內容，會原封不動地傳遞給回呼。

### 傳回值

類型：**HRESULT**

成功時傳回 `S_OK`；否則傳回失敗 HRESULT。目錄作業也會傳回[錯誤碼](https://docs.xbox.com/zh-TW/reference/remoting/error-codes.md)中所述的目錄特有錯誤。

## 備註

回呼為必要項目，成功時只會叫用一次。其字串只在回呼傳回之前有效。存放路徑不是配對授權，也不是遠端內容目錄。

已儲存裝置 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/zh-TW/reference/remoting/remoteiteration_members.md)


## Related topics

- [XBOX PC Remote Iteration API](https://docs.xbox.com/zh-TW/reference/remoting/remoteiteration_members.md)
- [WdGetDevice](https://docs.xbox.com/zh-TW/reference/remoting/functions/wdgetdevice.md)
- [WdGetDefaultDevice](https://docs.xbox.com/zh-TW/reference/remoting/functions/wdgetdefaultdevice.md)
- [WdGetDeviceProperty](https://docs.xbox.com/zh-TW/reference/remoting/functions/wdgetdeviceproperty.md)
- [XPersistentLocalStorageGetPath](https://docs.xbox.com/zh-TW/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragegetpath.md)
