GEOS SDK TechDocs
|
|
2 User's Name
|
4 New SMS Header
To read the phone's IMEI number, you will need to use the
EciImeiGet()
function, provided by the eci library. This function takes one parameter, a pointer to a buffer to fill with the code number string. The buffer must be at least 17 bytes long, to hold the null-terminated 16-character code string. The function returns zero if the IMEI code was read succesfully, non-zero otherwise.
Code Display 13-2 Reading the IMEI Code
@include <eci.goh>
...
@method TestProcessClass, MSG_TEST_PROCESS_GET_IMEI
{
TCHAR imei[17] = "";
if ( EciGetImei( imei) == 0)
{
/*
* We got IMEI code, do any check you want.
*/
}
else
{
/*
* For some reason query failed.
*/
}
}
GEOS SDK TechDocs
|
|
2 User's Name
|
4 New SMS Header