views:

25

answers:

1

Hi,

Is it possible to use WinCE MFC application to check if SIM card presents in device or not?

thanks.

A: 

call SimInitialize and see if you get SIM_E_NOSIM.

Sheng Jiang 蒋晟
awesome! thanks.
phillip
I use SimInitialize but it returns S_OK all the times after I take out sim card.
phillip
Then check if you can read anything off the sim card using SimReadRecord or lineGetGeneralInfo.
Sheng Jiang 蒋晟