DVM_STREAM_ADDBUFFER

Notifies a video capture driver to fill an input buffer with video data and return the full buffer to the client application.

DV_ERR_NONSPECIFIC Indicates a buffer is not specified.
DV_ERR_UNPREPARED Indicates the buffer was not prepared.

dwParam1
Address of a VIDEOHDR structure identifying the buffer.
dwParam2
Size, in bytes, of the VIDEOHDR structure.

The data buffer must be prepared with DVM_STREAM_PREPAREHEADER before it is passed with DVM_STREAM_ADDBUFFER. The VIDEOHDR data structure and the data buffer pointed to by its lpData field must be allocated with GlobalAlloc using the GMEM_MOVEABLE and GMEM_SHARE flags, and locked with GlobalLock.