IDebugControl2::CoerceValue method (dbgeng.h)

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

Syntax

HRESULT CoerceValue(
  [in]  PDEBUG_VALUE In,
  [in]  ULONG        OutType,
  [out] PDEBUG_VALUE Out
);

Parameters

[in] In

Specifies the value to be converted

[in] OutType

Specifies the desired type for the converted value. See DEBUG_VALUE for possible values.

[out] Out

Receives the converted value. The type of this value will be the type specified by OutType.

Return value

Return code Description
S_OK
The method was successful.
 

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

Remarks

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

Requirement Value
Target Platform Desktop
Header dbgeng.h (include Dbgeng.h)

See also

DEBUG_VALUE

IDebugControl

IDebugControl2

IDebugControl3