PDEBUG_EXTENSION_PROVIDE_VALUE callback function

The DebugExtensionProvideValue callback function sets pseudo-register values.

C++
 CALLBACK* PDEBUG_EXTENSION_PROVIDE_VALUE DebugExtensionProvideValue;

Syntax

PDEBUG_EXTENSION_PROVIDE_VALUE PdebugExtensionProvideValue;

HRESULT PdebugExtensionProvideValue(
  PDEBUG_CLIENT Client,
  ULONG Flags,
  PCWSTR Name,
  PULONG64 Value,
  PULONG64 TypeModBase,
  PULONG TypeId,
  PULONG TypeFlags
)
{...}

Parameters

Client

A client to use if the extension needs DbgEng functions.

Flags

Provides behavioral flags. This parameter is currently reserved.

Name

The name of the value to return. This name might be one of the names that the DebugExtensionQueryValueNames function returned or a name that the caller might already be aware of.

Value

A pointer to the value to be set.

TypeModBase

The base starting address for Client.

TypeId

A pointer to the ID for the type of Value.

TypeFlags

A parameter that you can use to return one of the following flags:

Value Meaning
DEBUG_EXT_PVTYPE_IS_VALUE
The value that is pointed to by Value is not a pointer.
DEBUG_EXT_PVTYPE_IS_POINTER
The value that is pointed to by Value is an address for a pointer to data of the type that TypeModBase and TypeId specify.

Return value

DebugExtensionProvideValue might return one of the following values:

Return code Description
S_OK
The function was successfully completed.
 

This function might also return error values. For more information about possible return values, see Return Values.

Remarks

The name that the Name parameter specifies must start with $$ and have a terminating NULL character.

DebugExtensionProvideValue is called PDEBUG_EXTENSION_PROVIDE_VALUE in the Dbgeng.h header file.

Requirements

   
Target Platform Desktop
Header dbgeng.h

See also

DebugExtensionInitialize

DebugExtensionNotify

DebugExtensionQueryValueNames

DebugExtensionUninitialize

KnownStructOutput