ConfigSourceFunc

BOOLEAN
ConfigSourceFunc(
   PDEVICE_INFO
pDevInfo,
   PCONFIG_INFO
pConfig
  
);

The ConfigSourceFunc function sets characteristics of the video source. The function is provided by kernel-mode video capture drivers, and the ConfigSourceFunc name is a placeholder for a driver-specified function name.

Parameters

pDevInfo

Pointer to the DEVICE_INFO structure returned by VC_Init.

pConfig

Pointer to a CONFIG_INFO structure.

Return Value

Returns TRUE if the operation succeeds. Otherwise returns FALSE. If FALSE, VCKernel.lib sets the Win32 error code value to STATUS_DEVICE_CONFIGURATION_ERROR.

Comments

The VCKernel.lib library calls a kernel-mode driver’s ConfigSourceFunc function when the driver receives an IOCTL_VIDC_CONFIG_SOURCE control code. User-mode drivers using VCUser.lib send this control code by calling VC_ConfigSource.

A kernel-mode driver typically uses its ConfigSourceFunc function to set video source hardware parameters, based on information that the user-mode driver has provided in the CONFIG_INFO structure.

Support for a ConfigSourceFunc function is required. The driver must place the address of its ConfigSourceFunc function in the VC_CALLBACK structure supplied by VCKernel.lib. If a driver that does not provide a ConfigSourceFunc function receives an IOCTL_VIDC_CONFIG_SOURCE control code, VCKernel.lib sets the Win32 error code value to STATUS_INVALID_DEVICE_REQUEST.