Prev: found a shell bug on WM 5 and 6.x w/ regard to the menu bar
Next: The project could not be opened because it refers to a device platform that does not exist in your datastore.
From: jrasania on 16 Sep 2008 05:22 Hello, I am developing PPC application. Currently I am facing one problem on HTC TyTN II device. Problem: hResult = SimInitialize(0, NULL, NULL, &hSim); as well as hr = SimGetDevCaps(hSim, SIM_CAPSTYPE_ALL, &SIMCaps); returns S_OK even though SIM Card is not inserted. OS version is 5.2 and Device name is Kaiser.
From: Peter Foot [MVP] on 17 Sep 2008 06:51 A value indicating if the SIM card is missing is stored in the registry as part of the State and Notifications Broker (PhoneNoSim). See the snapi.h header for the registry location. Peter -- Peter Foot Microsoft Device Application Development MVP peterfoot.net | appamundi.com | inthehand.com APPA Mundi Ltd - software solutions for a mobile world In The Hand Ltd - .NET Components for Mobility "jrasania" <jrasania(a)gmail.com> wrote in message news:a19a8e11-dd66-4b87-be34-4bc78648afa9(a)s9g2000prg.googlegroups.com... > Hello, > > I am developing PPC application. Currently I am facing one problem on > HTC TyTN II device. > > Problem: > hResult = SimInitialize(0, NULL, NULL, &hSim); as well as hr = > SimGetDevCaps(hSim, SIM_CAPSTYPE_ALL, &SIMCaps); returns S_OK even > though SIM Card is not inserted. > > OS version is 5.2 and Device name is Kaiser. > >
From: Skiler on 19 Sep 2008 11:55 I also faced this problem recently. U can try to get IMSI serial number from SIM card and this will exactly indicate is your SIM inserted or not.
From: jrasania on 20 Sep 2008 10:13 On Sep 19, 8:55 pm, Skiler <sklyar.and...(a)gmail.com> wrote: > I also faced this problem recently. > U can try to get IMSI serial number from SIM card and this will > exactly indicate is your SIM inserted or not. Hello Peter and Skiler, Thanx for prompt response. Both the idea are nice. But still I am facing problem. In case of registry read. (Suggested by Peter) It is not give status for SIM inserted when cell radio is off. In case of IMSI number (Suggested by Skiler) It is working fine. But it is not working in case of CDMA device as well as Cell radio is off. One again thanx for prompt reply.
From: Skiler on 3 Oct 2008 12:28
u can try to with line. if u can open the line, then your phone is on. lineNegotiateAPIVersion lineGetDevCaps lineNegotiateExtVersion (lineOpen == true) if yes -> you have opened line and pnone on :) it is the just the idea, source have to be much more complicated! |