ICDrawOpen

The ICDrawOpen macro opens a driver that can draw images with the specified format.

HIC ICDrawOpen(
  DWORD fccType,             
  DWORD fccHandler,          
  LPBITMAPINFOHEADER lpbiIn  
);

Parameters

fccType

Four-character code indicating the type of driver to open. For video streams, the value of this parameter is "VIDC" or ICTYPE_VIDEO.

fccHandler

Four-character code indicating the preferred stream handler to use. Typically, this information is stored in the stream header in an AVI file.

lpbiIn

Pointer to the structure defining the input format. A driver handle will not be returned unless it can decompress this format. For images, this parameter refers to a BITMAPINFOHEADER structure.

Return Values

Returns a handle of a driver if successful or zero otherwise.

Remarks

The ICDrawOpen macro is defined as follows:

#define ICDrawOpen(fccType, fccHandler, lpbiIn) \
    ICLocate(fccType, fccHandler, lpbiIn, NULL, ICMODE_DRAW); 

Requirements

**  Windows NT/2000/XP:** Included in Windows NT 3.1 and later.
**  Windows 95/98/Me:** Included in Windows 95 and later.
**  Header:** Declared in Vfw.h.

See Also

Video Compression Manager, Video Compression Macros, BITMAPINFOHEADER