StopInteractionContext function (interactioncontext.h)

Sets the interaction state to INTERACTION_STATE_IDLE and leaves all interaction configuration settings and parameters intact. Current interactions are cancelled and notifications sent as required. Interaction Context does not have to be reconfigured before next use.

Syntax

HRESULT StopInteractionContext(
  [in] HINTERACTIONCONTEXT interactionContext
);

Parameters

[in] interactionContext

Handle to the Interaction Context object.

Return value

If this function succeeds, it returns S_OK.

Otherwise, it returns an HRESULT error code.

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

ResetInteractionContext function