Applications de bureau Windows
Réduire la table des matières
Développer la table des matières
EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

RegisterOutputCallbackInteractionContext function

Registers a callback to receive interaction events from an Interaction Context object.

Syntax


HRESULT WINAPI RegisterOutputCallbackInteractionContext(
  _In_     HINTERACTIONCONTEXT                 interactionContext,
  _In_     INTERACTION_CONTEXT_OUTPUT_CALLBACK outputCallback,
  _In_opt_ void                                *clientData
);

Parameters

interactionContext [in]

Handle to the Interaction Context.

outputCallback [in]

The callback function.

clientData [in, optional]

A pointer to an object that contains information about the client. The value typically points to the object for which the member function is called (this).

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Each instance of an Interaction Context is limited to one output callback. Registering a callback function overwrites any existing callback registration for the Interaction Context.

This function is typically called after the creation of an Interaction Context or when the Interaction Context is reassigned to another UI element.

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
INTERACTION_CONTEXT_OUTPUT
INTERACTION_CONTEXT_OUTPUT_CALLBACK

 

 

Ajouts de la communauté

AJOUTER
Afficher:
© 2016 Microsoft