Skip to main content
CreateInteractionContext function

Creates and initializes an Interaction Context object.

Syntax


HRESULT WINAPI CreateInteractionContext(
  _Out_  HINTERACTIONCONTEXT *interactionContext
);

Parameters

interactionContext [out]

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

DestroyInteractionContext must be called to destroy any interaction context created by CreateInteractionContext.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

None supported

Header

Interactioncontext.h

Library

Ninput.lib

DLL

Ninput.dll

See also

Interaction Context Functions
DestroyInteractionContext
ResetInteractionContext
StopInteractionContext
HINTERACTIONCONTEXT