PT-90 Mobile Computer SDK Programming Manual
132
WriteStorageSMS
Write a SMS message to SIM memory storage.
DWORD
WriteStorageSMS
{
int *
nIndex
,
LPTSTR
lpCenterNum
,
LPTSTR
lpSendNum
,
LPTSTR
lpData
}
Parameters
nIndex
[out] Receive the one-based index of storage SMS message.
lpCenterNum
[in] The phone number of short message service center (SMSC) , max size of 30. If this parameter is
NULL, will use storage SMSC in terminal to send.
lpSendNum
[in] The phone number of recipient, max size of 30.
lpData
[in] SMS message data, max size of 70.
Returned Values
If the action succeeds, the returned value is
. If the action fails, possible returned values are
Example
int iIndex;
if(WriteStorageSMS(&iIndex, _T(""), _T("0912345678"), _T("Write Storage Test")) != E_FUNC_SUCCEED)
AfxMessageBox(_T("Write storage SMS fail!"));
Requirements
OS Versions:
Windows CE 6.0 or beyond.
Header:
sysapiax.h
Link Library:
sysapiax.lib
Link DLL:
sysapiax.dll
Device:
PT90