|
|
Classification: |
C++ |
Category: |
Base |
Created: |
12/06/99 |
Modified: |
06/13/2001 |
Number: |
FAQ-0447 |
Platform: |
ER5 |
|
Question: How should I go about making my code aware which EPOC ROM version it is running on?
Answer: You can use the following code:
TMachineInfoV1Buf buf; // a TPckgBuf UserHal::MachineInfo(buf); TInt16 buildNumber = buf().iRomVersion.iBuild switch(buildNumber){case 113:// Original Psion Series 5 (ER1, 1.00 ROM)case 145:// Upgraded Series 5 (ER2, 1.01 ROM)case 146:// Geofox-One (ER3, 1.01 ROM)case 209:// Oregon Scientific's Osaris (ER4, 1.02 ROM)case 250: case 255:// Series 5mx UK (ER5, 1.05 ROM)case 254:// NetBook (ER5, 1.05 ROM)case 257:// Ericsson MC218 (ER5, 1.05 ROM)case 259:// Series 5mx US (ER5, 1.05 ROM)case 315:// Series 5mx French(ER5, 1.05 ROM)case 320:// Revo (ER5, 1.06 ROM - Psion branding)case 327:// Series 5mx German (ER5, 1.05 ROM)case 330:// Series 5mx Dutch (ER5, 1.05 ROM)default:// other device }
|
|
|