SetTranslationParameterInteractionContext function (interactioncontext.h)

Sets the drag interaction behavior.

Syntax

HRESULT SetTranslationParameterInteractionContext(
  HINTERACTIONCONTEXT   interactionContext,
  TRANSLATION_PARAMETER parameter,
  float                 value
);

Parameters

interactionContext

The handle of the interaction context.

parameter

One of the constants from the TRANSLATION_PARAMETER enumeration.

value

The value of parameter.

Return value

If this function succeeds, it returns S_OK.

Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 10 version 21H1
Minimum supported server Windows Server 2022
Target Platform Windows
Header interactioncontext.h
Library ninput.lib

See also

GetTranslationParameterInteractionContext function