Most GSM phones do not run Windows (or have Microsoft's CLR/CLI), so you can't write an app in C# for them, to retrieve the IMEI (or anything else). If you want to write for a Windows Mobile based GSM phone, then you'd better ask on a Microsoft Windows Mobile discussion board.
If you are writing a C# application for a PC, then how you get the IMEI on a PC depends on how the phone is connected to the PC, and what that connection/interface allows.
Forum posts: 693
Most GSM phones do not run Windows (or have Microsoft's CLR/CLI), so you can't write an app in C# for them, to retrieve the IMEI (or anything else). If you want to write for a Windows Mobile based GSM phone, then you'd better ask on a Microsoft Windows Mobile discussion board.
If you are writing a C# application for a PC, then how you get the IMEI on a PC depends on how the phone is connected to the PC, and what that connection/interface allows.