Setsppservice – Argox PT-9130 User Manual

Page 55

Advertising
background image

PT-90 Mobile Computer SDK Programming Manual 48

SetSPPService

Enable or disable Bluetooth serial port profile service.

DWORD SetSPPService

{

BOOL

bEnable

}

Parameters

bEnable

[in] Flag that indicates whether to enable (TRUE) or disable (FALSE) the serial port profile service mode

Returned Values

If the action succeeds, the returned value is

E_FUNC_SUCCEED

. If the action fails, possible returned values are

BT_ERR_SETTING_FAIL

,

BT_ERR_REG_DEV_FAIL

,

BT_ERR_SPP_COM_FAIL

.

Example

If(SetSPPService(TRUE) != E_FUNC_SUCCEED)

AfxMessageBox(“Setting fail”);

Requirements

OS Versions: Windows CE 6.0 or beyond.

Header: sysapiax.h

Link Library: sysapiax.lib

Link DLL: sysapiax.dll
Device: PT90

Advertising