Article # 577, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
The EciGetImei() function for Nokia 9000 phones.
This function is only available on phones with build 4.8 or later. You can check the software build by looking in the GEOS.INI file under the [ui] category in the "swSerialNumber" key. To read the phone's IMEI number, you will need to use the EciGetImei() 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. @include@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 the query failed. */ } }