Sms_register – Argox PT-9130 User Manual

Page 144

Advertising
background image

PT-90 Mobile Computer SDK Programming Manual 137

SMS_Register

To register the SMS application to SYSAPIAX.dll so that SYSAPIAX.dll can communicate with the application.

DWORD SMS_Register

{

HWND

hNotifyWnd

,

UINT

uNewSMSNotify

,

UINT

uNewPhoneNotify

}

Parameters

hNotifyWnd

[in] The window handling the function library will send message to report.

uNewSMSNotify

[in] Application-defined message identifier. The system uses this for notification message that it sends to the

window identified in hNotifyWnd. These notifications are sent when receive a new SMS of GPRS

module.

uNewPhoneNotify

[in] Application-defined message identifier. The system uses this for notification message that it sends to the

window identified in hNotifyWnd. These notifications are sent when receive a new phone call of GPRS

module.

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

,

GPRS_ERR_DEVICE_ERROR

.

Example

if(SMS_Register(hWnd, WM_APP+1, WM_APP+2) != E_FUNC_SUCCEED)

AfxMessageBox(_T("SMS_Register fail!"));

Requirements

OS Versions: Windows CE 6.0 or beyond.

Header: sysapiax.h

Link Library: sysapiax.lib

Link DLL: sysapiax.dll
Device: PT90

Advertising