Debugging Tools for Windows

DebugExtensionProvideValue

The DebugExtensionProvideValue function sets pseudo-register values.

HRESULT CALLBACK
  DebugExtensionProvideValue (
    __in PDEBUG_CLIENT Client,
    __in ULONG  Flags,
    __in PCWSTR  Name,
    __out PULONG64  Value,
    __out PULONG64  TypeModBase,
    __out PULONG  TypeId,
    __out 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:
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:

S_OK
The function was successfully completed.

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

Comments

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

Requirements

Headers: The Dbgeng.h header file has the definitions of the callback prototypes.

See Also

DebugExtensionInitialize, DebugExtensionNotify, DebugExtensionQueryValueNames, DebugExtensionUninitialize, KnownStructOutput

Build machine: CAPEBUILD