AVIGetFromClipboard function

The AVIGetFromClipboard function copies an AVI file from the clipboard.


HRESULT AVIGetFromClipboard(
  PAVIFILE *lppf



Pointer to the location used to return the handle created for the AVI file.

Return Value

Returns zero if successful or an error otherwise.


If the clipboard does not contain an AVI file, AVIGetFromClipboard also can copy data with the CF_DIB or CF_WAVE clipboard flags to an AVI file. In this case, the function creates an AVI file with one DIB stream and one waveform-audio stream, and fills each stream with the data from the clipboard.

The argument lppf is the address of a pointer to an IAVIFile interface.


Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header vfw.h
Library Vfw32.lib
DLL Avifil32.dll

See Also

AVIFile Functions

AVIFile Functions and Macros