I am using GSMCOMM
http://www.scampers.org/steve/sms/libraries.htmlibrary in C# to send and receive SMS.
So I need check Sim is inserted or not in the modem.
Is there any way to check this in C# ?
Thanks in advance.
I am using GSMCOMM
http://www.scampers.org/steve/sms/libraries.htmlibrary in C# to send and receive SMS.
So I need check Sim is inserted or not in the modem.
Is there any way to check this in C# ?
Thanks in advance.
Use the Windows Mobile Broadband API (supported from Windows 7 onwards). For example if you get the connection state using IMbnConnection::GetConnectionState, and there is no SIM inserted, you will get E_MBN_SIM_NOT_INSERTED as the return value.