Share via


PDD_SetSensorState (Compact 2013)

3/26/2014

This method sets the sensor state. This method is called in response to a CSPROPERTY_CONNECTION_STATE request.

Syntax

DWORD PDD_SetSensorState( 
  LPVOID PDDContext, 
  ULONG ulModeType, 
  CSSTATE CsState 
);

Parameters

  • PDDContext
    [in] This is the return value of PDD_Init.
  • ulModeType
    [in] There are three modes supported, i.e., CAPTURE, PREVIEW and STILL
  • CsState
    There are three valid states: CSSTATE_STOP, CSSTATE_PAUSE, and CSSTATE_RUN.

    Defined under %_WINCEROOT\public\common\oak\inc\cs.h

Return Value

PDD specific. ERROR_SUCCESS represents success. Any other value will be treated as error.

Remarks

PDD_SetSensorState() is only called for Preview or Capture sensor modes. For Still sensor mode, PDD_TakeStillPicture is called.

Data will only be captured when state is CSSTATE_RUN.

Requirements

Header

Developer Implemented

Library

Developer Implemented

See Also

Reference

Camera PDD Methods