none
Allowing a user to exit from the program by password in Windows Mobile 6.5 RRS feed

  • Question

  • Hi.

    How to allow a user to exit from the program by password in Windows Mobile 6.5 (or in Windows Embedded Handheld 6.5 Classic) ?

    1. in VB.NET code?

    2. in VC++ unmanaged code?

    It is needed for preventing operating system settings from modifying by user. User must only work on one program.

    Thursday, September 24, 2015 8:33 AM

Answers

  • Hi Tomas,

    You have already asked about "Lock down" in another thread.  This is not supported in Windows Mobile 6.5 as the OS can swap out a poorly behaving app at any time. However, some OEMs have added lockdown features but they will be unique to that OEM so you will need to work with your hardware manufacturer to find out if they have added that feature.

    While you can not control the OS, you can do some things might help keep your application on top.

    1. CE Run App at Event: You can have your application launch each time the device "wakes" or any of the other events you think might trigger the OS to load the start screen. See https://msdn.microsoft.com/en-us/library/aa932775.aspx
    2. Have a monitoring service: Create a Service app that makes sure your app is running and it is on top. NOte you will want it to do two things: A) Detect if your exe is running, if not it should launch it and B) Set your app to the foreground if it is not currently the foreground app.
    3. Don't allow for Multiple copies of your App: Your app should also have the guard code so that it detects if it is already running and close down if it is already in the system and it should have an escape sequence just in case you do need to get back to the OS for any reason.

    Sincerely,

    IoTGirl

    Thursday, September 24, 2015 4:34 PM
    Moderator