XPLMCreateAvionicsEx

XPLM_API XPLMAvionicsID XPLMCreateAvionicsEx(
                         XPLMCreateAvionics_t * inParams);

Creates a new cockpit device to be used in the 3D cockpit. You can call this at any time: if an aircraft referencing your device is loaded before your plugin, the simulator will make sure to retroactively map your display into it.

        When you are done with the device, and at least before your plugin is unloaded, you should destroy the device using XPLMDestroyAvionics().