IControllerClient interface : SetController method

SetController method
Description
When VWorks software loads each plugin, it checks whether the plugin implements the IControllerClient interface. If the plugin does, VWorks software calls the SetController method and passes a pointer to itself in the Controller parameter. The pointer is valid because VWorks software implements the IWorksController interface. See “IWorksController interface” .
The plugin stores the pointer and uses it to call the following IWorksController methods, which asks VWorks software to perform actions that the plugin cannot do on its own.
IMPORTANT To use IWorksController methods, the plugin must first get a pointer to VWorks software, which implements the IWorksController interface.
Syntax
 
HRESULT SetController(
[in] IWorksController *Controller
);
Parameters
 
[in] A pointer to VWorks software, which implements the IWorksController interface.
Related information
 
IWorksController NotifyDataChanged method
IWorksController NotifyTipOperation method
IWorksController OnCloseDiagsDialog method