Поделиться через


CamSaveState callback function

[CamAllocateBandwidth is not supported and may be altered or unavailable in the future.]

The CamSaveState callback function saves the current device context state.

Syntax

NTSTATUS CamSaveState(
   PDEVICE_OBJECT BusDeviceObject,
   PVOID          DeviceContext
);

Parameters

  • BusDeviceObject
    Pointer to the camera minidriver's device object created by the USB hub. This value may be NULL.

  • DeviceContext
    Pointer to the camera minidriver's device context.

Return value

CamSaveState must return STATUS_SUCCESS.

Remarks

USBCAMD version 1.0 calls the minidriver's CamSaveState in the context of an SRB_CHANGE_POWER_STATE request where the power state is going from ON to OFF (D0 to D3).

USBCAMD ignores the return value from the minidriver's CamSaveState callback function.

CamSaveState is called by both versions 1.0 and 2.0 of USBCAMD.

This function is optional.

Requirements

Target platform

Desktop

Version

Available on Windows operating system versions prior to Windows XP.

Header

Usbcamdi.h (include Usbcamdi.h)

See also

SRB_CHANGE_POWER_STATE

 

 

Send comments about this topic to Microsoft