IltmmCameraControl::GetRange Example for C

IltmmCameraControl* pCamera;
long lMin, lMax, lSteppingDelta, lDefault, lCapsFlags, lVal, lFlag;

IltmmCapture__get_CameraControl
(g_capture, &pCamera);
IltmmCameraControl__getRange
(pCamera, ltmmCameraControl_Zoom, &lMin, &lMax, &lSteppingDelta, &lDefault, &lCapsFlags);
IltmmCameraControl__get
(pCamera, ltmmCameraControl_Zoom, &lVal, &lFlag);
lVal = (lMax + lMin) / 2;
IltmmCameraControl_Set
(pCamera, ltmmCameraControl_Zoom, lVal, lFlag);
IltmmCameraControl_Release(pCamera);