ResetInteractionContext function (interactioncontext.h)

Resets the interaction state, interaction configuration settings, and all parameters to their initial state. Current interactions are cancelled without notifications. Interaction Context must be reconfigured before next use.

Syntax

HRESULT ResetInteractionContext(
  [in] HINTERACTIONCONTEXT interactionContext
);

Parameters

[in] interactionContext

Pointer to a handle for the Interaction Context.

Return value

If this function succeeds, it returns S_OK.

Otherwise, it returns an HRESULT error code.

Remarks

Useful for managing a pool of Interaction Context objects.

Current interactions are cancelled without notifications.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header interactioncontext.h
Library Ninput.lib
DLL Ninput.dll

See also

CreateInteractionContext function

DestroyInteractionContext function

StopInteractionContext function