/ VST Home / Technical Documentation

[3.6.12] Host Query Interface support

On this page:


Introduction

Host callback interface for an edit controller: Vst::IPlugInterfaceSupport.

  • [host imp]
  • [released: 3.6.12]
  • [mandatory]

Allows a plug-in to ask the host if a given plug-in interface is supported/used by the host. It is implemented by the hostContext given when the component is initialized.

Example

//------------------------------------------------------------------------
tresult PLUGIN_API MyPluginController::initialize (FUnknown* context)
{
    // ...
    if (auto plugInterfaceSupport = Steinberg::U::cast<IPlugInterfaceSupport> (context)
    {
        if (plugInterfaceSupport->isPlugInterfaceSupported (IMidiMapping::iid) == kResultTrue)
            // IMidiMapping is used by the host
    }
    // ...
}

See also IPluginBase.