Readmultisms – Argox PT-9130 User Manual

Page 137

Advertising
background image

PT-90 Mobile Computer SDK Programming Manual 130

ReadMultiSMS

Read multitude SMS messages in SIM card.

DWORD ReadMultiSMS

{

int

nStatus

,

DWORD *

dwResLen

,

SMS_INFO *

Info

,

DWORD *

dwInfoLen

,

int *

nCount

}

Parameters

nStatus

[in] The message status can be one of the values in the following table.

Value

Message Status

0

"REC UNREAD", received unread messages

1

"REC READ", received read messages

2

"STO UNSENT", stored unsent messages

3

"STO SENT", stored sent messages

4

"ALL", all messages

dwResLen

[in/out] The response buffer max size. If response buffer length > dwResLen, the dwResLen receive

current response buffer length.

Info

[in/out] Pointer to a buffer that receives an array of

SMS_INFO

structure. Before calling the function, an

application must set the dwSize member of the first SMS_INFO structure in the buffer to

sizeof(SMS_INFO) in order to identify the version of the structure being passed.

dwInfoLen

[in/out] Pointer to a variable that contains the size, in bytes, of the buffer specified by Info. On return, the

function sets this variable to the number of bytes required to successfully complete the call.

nCount

[out] Receive the Info count.

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

,

GPRS_ERR_BUFFER_INSUFFICIENT

.

Advertising