Startstillcapture – Argox PT-9130 User Manual

Page 93

Advertising
background image

PT-90 Mobile Computer SDK Programming Manual 86

StartStillCapture

To Start with still picture capture and save to file path.

DWORD StartStillCapture

{

LPTSTR

lpPathName

BOOL

bSound

}

Parameters

lpPathName

[in] Pointer to the file save path after capture still picture. Max size of 256.

bSound

[in] Flag that indicates whether to ENABLE(TRUE) or DISABLE(FALSE) shutter sound.

Returned Values

If the action succeeds, the returned value is

E_FUNC_SUCCEED

. If the action fails, possible returned values are

E_FUNC_ERROR

,

E_FUNC_PAR_ERROR

,

CAM_ERR_NOT_SAVE_PATH

,

CAM_ERR_STILL_SOUND_FAIL

,

CAM_ERR_DEVICE_ERROR

.

Example

WCHAR szPictureName[256];

wcscpy(szPictureName, L”\\My Documents\\Img_01.jpg”);

if(StartStillCapture(szPictureName, TRUE) != E_FUNC_SUCCEED)

AfxMessageBox(_T("Still capture fail"));

Requirements

OS Versions: Windows CE 6.0 or beyond.

Header: sysapiax.h

Link Library: sysapiax.lib

Link DLL: sysapiax.dll
Device: PT90

Advertising