Debugging Tools for Windows

CoerceValue

The CoerceValue method converts a value of one type into a value of another type.

HRESULT
  IDebugControl::CoerceValue(
    IN PDEBUG_VALUE  In
    IN ULONG  OutType
    OUT PDEBUG_VALUE  Out
    );

Parameters

In
Specifies the value to be converted
OutType
Specifies the desired type for the converted value. See DEBUG_VALUE for possible values.
Out
Receives the converted value. The type of this value will be the type specified by OutType.

Return Value

S_OK
The method was successful.

This method may also return error values. See Return Values for more details.

Interface Version

CoerceValue is available in all versions of IDebugControl.

Comments

This method converts a value of one type into a value of another type. If the specified OutType is not capable of containing the information supplied by the In variable, data will be lost.

Requirements

Headers: Defined in Dbgeng.h. Include Dbgeng.h.

See Also

DEBUG_VALUE

Build machine: CAPEBUILD