BASS

BASS_GetVersion


Retrieves the version of BASS that is loaded.

DWORD BASS_GetVersion();

Return value

The BASS version. For example, 0x02040103 (hex), would be version 2.4.1.3

Remarks

There is no guarantee that a previous or future version of BASS supports all the BASS functions that you are using, so you should always use this function to make sure the correct version is loaded. It is safe to assume that future revisions (indicated in the LOWORD) will be fully compatible.

The BASS API includes a BASSVERSION constant, which can be used to check that the loaded BASS.DLL matches the API version used, ignoring revisions.

Example

Check that the correct BASS version is loaded, ignoring the revision.
if (HIWORD(BASS_GetVersion())!=BASSVERSION) {
    // incorrect version loaded!
}

Check that revision 1.0 (or above) of the correct BASS version is loaded.

if (HIWORD(BASS_GetVersion())!=BASSVERSION // check the main version
    || LOWORD(BASS_GetVersion())<0x100) { // check the revision
    // incorrect version loaded!
}