> ## 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-CN/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 远程迭代 API](https://docs.xbox.com/zh-CN/reference/remoting/remoteiteration_members.md)


## Related topics

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