PINSPECT_HSTRING_CALLBACK callback function (winstring.h)

Provides a function pointer to the callback used by the WindowsInspectString function.

Syntax

PINSPECT_HSTRING_CALLBACK PinspectHstringCallback;

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

Parameters

context

[in]

Custom context data provided to the WindowsInspectString function.

readAddress

[in]

The address to read data from.

length

[in]

The number of bytes to read, starting at readAddress.

buffer

[out]

The buffer that receives a copy of the bytes that are read.

Return value

If this function pointer succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Implement this callback when you use the WindowsInspectString function. You can do a cross-process read, read from a dump file, or read from a remote debug debugging session.

Requirements

Requirement Value
Target Platform Windows
Header winstring.h

See also

WindowsInspectString