VC_StreamStop

BOOL
VC_StreamStop(
VCUSER_HANDLE
vh
);

The VC_StreamStop function stops a capture stream.

Parameters

vh

Handle to the kernel-mode driver, obtained from VC_OpenDevice.

Return Value

Returns TRUE if the operation succeeds. Otherwise returns FALSE.

Comments

A user-mode video capture driver using VCUser.lib should call VC_StreamStop when its DriverProc function receives a DVM_STREAM_STOP message.

The VC_StreamStop function then calls DeviceIoControl to send an IOCTL_VIDC_STREAM_STOP control code to the specified kernel-mode driver. When a kernel-mode driver using VCKernel.lib receives this control code, its StreamStopFunc function is called.

After your driver calls VC_StreamStop, kernel-mode driver will fill and return the buffer it is currently using, but it will not dequeue any more buffers.