Readmultiphonebook – Argox PT-9130 User Manual

Page 129

Advertising
background image

PT-90 Mobile Computer SDK Programming Manual 122

ReadMultiPhonebook

Read multitude phonebook entries in SIM card.

DWORD ReadMultiPhonebook

{

int

nStartIndex

,

int

nEndIndex

,

DWORD *

dwResLen

,

PHONEBOOK_INFO *

Info

,

DWORD *

dwInfoLen

,

int *

nCount

}

Parameters within

nStartInde

x

[in] The first location number to start reading, one-based index.

nEndIndex

[in] The last location number to stop reading, one-based index.

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

PHONEBOOK_INFO

structure. Before calling the

function, an application must set the dwSize member of the first PHONEBOOK_INFO structure in the

buffer to sizeof(PHONEBOOK_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

.

Example

#define LPPHONEBOOK_INFO PHONEBOOK_INFO*

…………

Advertising