VC_ConfigSource

BOOL
VC_ConfigSource(
VCUSER_HANDLE
vh,
PCONFIG_INFO
pConfig
);

The VC_ConfigSource function sends source-configuration information to a kernel-mode video capture driver.

Parameters
vh
Handle to the kernel-mode driver, obtained from VC_OpenDevice.
pConfig
Pointer to a CONFIG_INFO structure.
Return Value

Returns TRUE if the operation succeeds. Otherwise returns FALSE.

Comments

User-mode video capture drivers use the VC_ConfigSource function to send channel configuration parameters to the kernel-mode driver. Typically, this function is used to send video source parameters associated with the VIDEO_EXTERNALIN channel.

The VC_ConfigSource function calls DeviceIoControl (described in the Win32 SDK) to send an IOCTL_VIDC_CONFIG_SOURCE control code to the specified kernel-mode driver. When a kernel-mode driver using VCKernel.lib receives this control code, its ConfigSourceFunc function is called.

For more information about channel configuration, see Configuring Video Channels.