XPLM_API int XPLMInitialized(void);
This function returns 1 if X-Plane has properly initialized the plug-in system. If this routine returns 0, many XPLM functions will not work.
NOTE: Under normal circumstances a plug-in should never be running while the plug-in manager is not initialized.
WARNING: This function is generally not needed and may be deprecated in the future.