共用方式為


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