Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Using Gestalt to Get the QuickTime Version

As always, the standard way for Apple developers to determine which version of QuickTime is installed is by calling the Macintosh Toolbox Gestalt function.

The following code snippet demonstrates how you can check the version of QuickTime that is installed––in this case, QuickTime 6.4. The number 0x06408000 tests for the shipping version of QuickTime 6.4 but fails on prerelease versions.

    /* check the version of QuickTime installed */
    long     version;
    OSErr    result;
    result = Gestalt(gestaltQuickTime, &version);
    if ((result == noErr) && (version >= 0x06408000))
    {
        /* we have version 6.4! */
    }


< Previous PageNext Page > Hide TOC


Last updated: 2003-09-01




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice