Bink SDK 1.5v

# BinkOpen

The function BinkOpen opens the specified Bink file for decompression.

    HBINK BinkOpen(
      BINK_STRING file_name,
      BINK_OPEN_FLAGS open_flags
    );

#### In Parameters

file_name
  The name of the file to open.
open_flags
  The flags to use when opening the file.

#### Returns

Handle to the opened Bink file or zero on error

#### Discussion

This function returns an HBINK handle which is used with all of the Bink API functions. The returned HBINK handle is also a pointer to a BINK structure which contains information about the opened file. If the BinkOpen call fails, then zero will be returned. You can get a description of the error by calling BinkGetError.

Group: Bink API
Related Sections: Open and Close
Related Functions: BinkBufferSetResolution, BinkClose, BinkDoFrame, BinkGetError, BinkGetLogoAddress, BinkMacOpen, BinkSetFrameRate, BinkSetIO, BinkSetIOSize, BinkSetSimulate, BinkSetSoundSystem, BinkSetSoundTrack, BinkSoundUseAX, BinkSoundUseDirectSound, BinkSoundUseMiles, BinkSoundUseMusyX, BinkSoundUseSoundManager
Related Basic Types: BINK_COPY_FLAGS, BINK_OPEN_FLAGS, BINK_STRING, HBINK
Related Structures: BINK

For technical support, e-mail Bink1@radgametools.com
© Copyright 1994-2003 RAD Game Tools, Inc. All Rights Reserved.