# EssGetAPIVersion

Description

EssGetAPIVersion() returns the version of the Essbase API used to compile the current application.

Syntax

    ESS_FUNC_M EssGetAPIVersion (Version);

ESS_PULONG_T | Version

Parameters

Version | Version number of API. Hex value, in C notation, with the following format: `0x00000000` First 4 numbers from right (low order word): release number between versions Remaining numbers (high order word): version number For example, 0x0004.0000 represents Release 4.0, and 0x0003.0002 represents Release 3.2.

Notes

- You can use this function to check the API version when your program requires a particular version.

Example

    ESS_VOID_T
    ESS_GetAPIVersion()
    {
       ESS_FUNC_M    sts = ESS_STS_NOERR;
       ESS_ULONG_T  Version;

       sts = EssGetAPIVersion(&Version);

       if(!sts)
          printf("API Version %x\n",Version);
    }

See Also

EssGetObjectInfo()