Bewerken

Delen via


USBCAMD_AdapterReceivePacket function (usbcamdi.h)

The USBCAMD_AdapterReceivePacket function allows USBCAMD to process an adapter-based stream request block (SRB).

Syntax

PVOID USBCAMD_AdapterReceivePacket(
  [in] PHW_STREAM_REQUEST_BLOCK Srb,
  [in] PUSBCAMD_DEVICE_DATA     DeviceData,
  [in] PDEVICE_OBJECT           *DeviceObject,
  [in] BOOLEAN                  NeedsCompletion
);

Parameters

[in] Srb

Pointer to the SRB passed to the camera minidriver's AdapterReceivePacket callback function.

[in] DeviceData

Pointer to the USBCAMD_DEVICE_DATA structure that contains entry points to the camera minidriver's callback functions.

[in] DeviceObject

Pointer to the device's physical device object (PDO).

[in] NeedsCompletion

Specifies if USBCAMD is to process and complete the SRB request. Specify TRUE if USBCAMD is to complete the SRB request Specify FALSE to make USBCAMD ignore the SRB request and return the device context pointer.

Return value

USBCAMD_AdapterReceivePacket returns a pointer to the device-specific context for this instance of the camera.

Remarks

Typically, this function is called by the camera minidriver from its AdapterReceivePacket routine.

This function can also be used by the minidriver to retrieve the device context by setting the NeedsCompletion parameter to FALSE. In this case, the DeviceData and DeviceObject parameters are ignored.

Requirements

Requirement Value
Target Platform Desktop
Header usbcamdi.h (include Usbcamdi.h)
Library Usbcamd2.lib

See also

AdapterReceivePacket

USBCAMD_DEVICE_DATA