PINSPECT_HSTRING_CALLBACK回调函数 (winstring.h)

提供指向 WindowsInspectString 函数使用的回调的函数指针。

语法

PINSPECT_HSTRING_CALLBACK PinspectHstringCallback;

HRESULT PinspectHstringCallback(
  void *context,
  UINT_PTR readAddress,
  UINT32 length,
  BYTE *buffer
)
{...}

参数

context

[in]

提供给 WindowsInspectString 函数的 自定义上下文数据。

readAddress

[in]

要从中读取数据的地址。

length

[in]

要读取的字节数,从 readAddress 开始。

buffer

[out]

接收所读取字节的副本的缓冲区。

返回值

如果此函数指针成功,则返回 S_OK。 否则,将返回 HRESULT 错误代码。

注解

使用 WindowsInspectString 函数时实现此回调。 可以执行跨进程读取、从转储文件读取或从远程调试调试会话读取。

要求

要求
目标平台 Windows
标头 winstring.h

另请参阅

WindowsInspectString