Readmultisms – Argox PT-9130 User Manual
Page 137

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
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
. If the action fails, possible returned values are