Is it possible to configure device lock PIN programmatically or via provisioning? RRS feed

  • Question

  • I need to be able to configure the device lock and associated PIN on windows mobile smart phones automatically - i.e. no user interaction.  Is this possible using OMA client provisioning, or can it be done programmmatically?
    Friday, July 8, 2011 1:55 PM


  • Hello,

    As far as I know, we can use SimSetLockingStatus API to lock the sim card with SIM_LOCKFACILITY_SIM or SIM_LOCKFACILITY_SIM_PIN2

    You can use a part of this sample codes in SDK: Windows Mobile 6.5.3 DTK\Samples\Smartphone\cpp\Win32\SIMMgr

    Manage SIM Contacts

    I hope my suggestions can help you to solve this problem.

    Best regards,


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Jesse Jiang Wednesday, July 20, 2011 8:42 AM
    Tuesday, July 12, 2011 6:43 AM