Bewerken

Delen via


PCOMMAND_COMPLETE_FUNCTION callback function (usbcamdi.h)

A camera minidriver's CommandCompleteFunction callback function allows the camera minidriver to perform any additional tasks necessary to complete certain USBCAMD services

Syntax

PCOMMAND_COMPLETE_FUNCTION PcommandCompleteFunction;

NTSTATUS PcommandCompleteFunction(
  PVOID DeviceContext,
  PVOID CommandContext,
  NTSTATUS NtStatus
)
{...}

Parameters

DeviceContext

Specifies the user-supplied value or structure relevant to the stream.

CommandContext

Specifies the context passed to CommandCompleteFunction by certain USBCAMD services.

NtStatus

Specifies the completion status of the called function.

Return value

CommandCompleteFunction does not return a value.

Remarks

The following USBCAMD services allow for the camera minidriver to perform any additional tasks:

USBCAMD_BulkReadWrite

USBCAMD_ControlVendorCommand

USBCAMD_WaitOnDeviceEvent.

Requirements

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

See also

USBCAMD_BulkReadWrite

USBCAMD_ControlVendorCommand

USBCAMD_WaitOnDeviceEvent