USBCAMD_AdapterReceivePacket - NtDoc

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

PVOID USBCAMD_AdapterReceivePacket(
  [in] PHW_STREAM_REQUEST_BLOCK Srb,
  [in] PUSBCAMD_DEVICE_DATA     DeviceData,
  [in] PDEVICE_OBJECT           *DeviceObject,
  [in] BOOLEAN                  NeedsCompletion
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-usbcamdi-usbcamd_adapterreceivepacket)

USBCAMD_AdapterReceivePacket function

Description

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

Parameters

Srb [in]

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

DeviceData [in]

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

DeviceObject [in]

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

NeedsCompletion [in]

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.

See also

AdapterReceivePacket

USBCAMD_DEVICE_DATA