Amera, Elated, Unction – Argox PT-9130 User Manual

Page 86: Camera_on, Camera related functions, Camera related function

Advertising
background image

PT-90 Mobile Computer SDK Programming Manual 79

Camera Related Function

Camera_On

To ENABLE the Camera function and initial.

DWORD Camera_On

{

HWND

hVideoWnd

}

Parameters

hVideoWnd

[in] The handle of new owner window. This parameter can set NULL.

Returned Values

If the action succeeds, the returned value is

E_FUNC_SUCCEED

. If the action fails, possible returned values are

CAM_ERR_CREATE_FAIL

,

CAM_ERR_VERSION_ERROR

,

CAM_ERR_GET_DEVICE_FAIL

,

CAM_ERR_VIDEO_WINDOW_FAIL

,

CAM_ERR_STILL_SETTING_FAIL

.

Example

if(Camera_On(NULL) != E_FUNC_SUCCEED)

AfxMessageBox(_T("Camera on fail"));

Requirements

OS Versions: Windows CE 6.0 or beyond.

Header: sysapiax.h

Link Library: sysapiax.lib

Link DLL: sysapiax.dll
Device: PT90

Advertising