XPLMGetVersions

From X-Plane SDK
Jump to: navigation, search

XPLMGetVersions

XPLM_API void                 XPLMGetVersions(
                                   int *                outXPlaneVersion,    
                                   int *                outXPLMVersion,    
                                   XPLMHostApplicationID * outHostID);    

This routine returns the revision of both X-Plane and the XPLM DLL. All versions are three-digit decimal numbers (e.g. 606 for version 6.06 of X-Plane); the current revision of the XPLM is 200 (2.00). This routine also returns the host ID of the app running us.

The most common use of this routine is to special-case around x-plane version-specific behavior.