こたさんからの情報
通信中を強制切断するには?
【 W-SIM状態チェック】
[DllImport("shphonelib.dll", EntryPoint = "?GetWsimStateInfo@CshphoneClientlib@@SAHXZ")]
public static extern int GetWsimStateInfo();
[DllImport("shphonelib.dll", EntryPoint = "?GetWsimStateInfo@CshphoneClientlib@@SAHXZ")]
public static extern int GetWsimStateInfo();
//0:通常
//-2:W-SIMなし
//-3:通信中
//-7:停止
【 W-SIM ON/OFF】
[DllImport("shphonelib.dll", EntryPoint = "?SuspendRadio@CshphoneClientlib@@SAHH@Z")]
public static extern int SuspendRadio( int val);
val…0 W-SIM アンテナOff
[DllImport("shphonelib.dll", EntryPoint = "?SuspendRadio@CshphoneClientlib@@SAHH@Z")]
public static extern int SuspendRadio( int val);
val…0 W-SIM アンテナOff
val…1 W-SIM アンテナOn