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

# WdStringResultCallback

> WdStringResultCallback

接收一個 UTF-8 字串結果。

**引進版本：** [RIT 0.0.14-preview](https://docs.xbox.com/zh-TW/reference/remoting/release-versions.md#release-versions)。

## 語法

```cpp theme={null}
typedef void(WD_REMOTE_ITERATION_CALL* WdStringResultCallback)(
    _In_z_ const char* value,
    _In_opt_ void* context
);
```

### 參數

`value`\
類型：**const char\***

借用、以 Null 結尾的 UTF-8 結果字串。

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

提供給 API 的呼叫端擁有指標。

### 傳回值

此回呼不會傳回任何值。

## 備註

傳回 void。單一結果查詢沒有接續決策。

回呼會在 API 處理其結果或快照時、API 呼叫傳回之前傳遞。結構和字串的指標只在回呼期間借用；請複製之後需要的值。`context` 是提供給 API 的呼叫端擁有指標。

## 需求

| 需求 | 值 |
| - | - |
| **標頭** | 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

- [WdGetDeviceStoragePath](https://docs.xbox.com/zh-TW/reference/remoting/functions/wdgetdevicestoragepath.md)
- [WdGetDeviceProperty](https://docs.xbox.com/zh-TW/reference/remoting/functions/wdgetdeviceproperty.md)
- [XBOX PC Remote Iteration API](https://docs.xbox.com/zh-TW/reference/remoting/remoteiteration_members.md)
- [WdDeviceInfoResultCallback](https://docs.xbox.com/zh-TW/reference/remoting/callbacks/wddeviceinforesultcallback.md)
- [WdGetDefaultDevice](https://docs.xbox.com/zh-TW/reference/remoting/functions/wdgetdefaultdevice.md)
