ICCompressEnd

The ICCompressEnd macro notifies a video compression driver to end compression and free resources allocated for compression. You can use this macro or explicitly call the ICM_COMPRESS_END message.

DWORD ICCompressEnd(
  hic  
);

Parameters

hic

Handle of the compressor.

Return Values

Returns ICERR_OK if successful or an error otherwise.

Remarks

VCM saves the settings of the most recent ICCompressBegin macro. ICCompressBegin and ICCompressEnd do not nest. If your driver receives the ICM_COMPRESS_BEGIN message before compression is stopped with the ICM_COMPRESS_END message, it should restart compression with new parameters.

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, ICCompressBegin, ICM_COMPRESS_END