How to get SIM PIN code and PUK code remaining attempts? RRS feed

  • Question

  •  Hi, Dear all

    I am trying to change SIM PIN code with "SimChangeLockingPassword" on WinCE 6 croossbow and we know that the SIM will be locked after 3 attempts, then we have to unlock it with PUK code(10 attempts). The question is I must notify user the remaining attempts before they input the code, but I can't find a way to get the attempt count.

    I've looked thtough the SIM manager APIs and I think SimGetRecordInfo() and SimReadRecord() may be helpful. If so, what value should I use for dwAddress(SIM address) in SimGetRecordInfo()?

    May the value be relative to a registry key? Or I have to use AT commands?

    Thanks in advance!


    Saturday, May 30, 2009 1:46 PM