PCAM_FREE_BW_ROUTINE - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// usbcamdi.h

PCAM_FREE_BW_ROUTINE PcamFreeBwRoutine;

NTSTATUS PcamFreeBwRoutine(
  PDEVICE_OBJECT BusDeviceObject,
  PVOID DeviceContext
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-usbcamdi-pcam_free_bw_routine)

PCAM_FREE_BW_ROUTINE callback function

Description

[CamFreeBandwidth is not supported and may be altered or unavailable in the future. Instead, use CamFreeBandwidthEx. ]

A camera minidriver's CamFreeBandwidth callback function selects an alternate setting within the USB video streaming interface that uses no bandwidth.

Parameters

BusDeviceObject

Pointer to the camera minidriver's device object created by the USB hub.

DeviceContext

Pointer to the camera minidriver's device context.

Return value

CamFreeBandwidth returns STATUS_SUCCESS or an appropriate error code.

Remarks

Camera minidrivers that must maintain backward compatibility with the original USBCAMD must use the USBCAMD_DEVICE_DATA structure and its associated callback functions (that is, callback functions that do not contain the "Ex" suffix).

USBCAMD calls the camera minidriver's CamFreeBandwidth callback function after the isochronous video stream has stopped.

Typically, this function calls the USBCAMD_SelectAlternateInterface service to select the correct alternate interface and prepare for streaming video.

This function is required.

See also

CamFreeBandwidthEx

USBCAMD_SelectAlternateInterface