Mobile Apps - How to Turn Off Device at Runtime using Windows Mobile

Asked By WanDelaKruz
16-Nov-09 05:05 AM
Could anybody help me with this.  I am using a CK3 Windows Mobile Device.
During start up of the device, my application automatically loads and when I
exit the application I want my device to turn off as well.  Any idea? sample?
Windows Embedded
(1)
SetSystemPowerState
(1)
Eurotech.it.nospam
(1)
  Luca Calligaris [eMVP] replied to WanDelaKruz
16-Nov-09 06:35 AM
Typically WM devices do not turn off but go in suspend mode (you can do it
calling SetSystemPowerState (POWER_STATE_SUSPEND,...): turning it off could
be done calling SetSystemPowerState (POWER_STATE_OFF,...) but it is up to the
OEM
implement it : I do not know if the specific device supports it

--
Luca Calligaris (MVP-Windows Embedded)
l.calligaris.nospam@eurotech.it.nospam
www.eurotech.it
help
Serious problem with suspend mode Mobile Apps Good morning, I've a pocket pc with Windows Embedded CE6 installed on. My problem is that I'd want to disable the but I May you help me to completely disable "Suspend mode" ?. Thank you so much. Emilio. WindowsCE Embedded Discussions Windows Mobile 6.0 (1) Windows Embedded (1) SHIdleTimerReset (1) SystemIdleTimerReset (1) SetSystemPowerState (1) BattSuspendTimeout (1) PowerPolicyNotify (1) BattUserIdle (1) If you set a value of 0 for Luca Calligaris www.eurotech.it Are you using a a PocketPC device (i.e. running Windows Mobile 6.0) or a PDA running Windows CE 6.0 ? Depending on which of
command dir, pwd, . . . is running. start, call, restart, . . is rejected. I have to reset remotelly windows CE but I not find how to do reset. Backdoor ? Any help greatly appreciated. thx - -- -- - Welcome to the Windows CE Telnet Service . . . login: Password: Pocket CMD v 4.20 \ > cd windows \ windows> restart Cannot execute \ windows \ restart.EXE. \ windows> - -- -- -- -- -- -- -- -- -- -- -- -web service answer to restart request FaultCode: 220 FaultString: Shared memory could not be opened! FaultActor: SharedMem WindowsCE Embedded Discussions SetSystemPowerState (1) FTP (1) FaultActor (1) SharedMem (1) FaultCode (1) Gravelaine (1) Geoff (1) Killprocces (1
Reboot Windows CE device Mobile Apps Hi. How can I, from within a C# application, force a reboot of a windows CE 5.0 device? WindowsCE App Development Discussions Windows Mobile 5.0 (1) SetSystemPowerState (1) ExitWindowsEx (1) SetLastError (1) GuruCE (1) PowerManager (1) DllImport (1) Consultancy (1) It depends what is in your image. There is a SetSystemPowerState function (in the Native API), but it depends on PowerManager being installed. If you have you'll have to be careful with that as ExitWindowsEx() is only supported on the Windows Mobile 5.0 platform and not on Windows CE 5.0. Good luck, Erwin Zwart, Check out my blog: http: / / GuruCE.com / blog GuruCE Microsoft Embedded Partner http: / / GuruCE.com Consultancy, training and development services. hcode schreef: keywords: Reboot, Windows, CE
Win32Exception' occurred in System.dll Please let me know how can i do it? WindowsCE Embedded Discussions SetSystemPowerState (1) GuruCE (1) OEMs (1) EMVP (1) EuroTech (1) Consultancy (1) Windows (1) Mahabub (1) I do not write managed code but, in Windows CE, there is no shutdown.exe application so . . . - - Luca Calligaris l.calligaris.nospam@eurotech.it nospam www.eurotech.it Which you could see if you looked for yourself in the \ Windows folder. Windows CE does not inherently support shutdown, some OEMs may have implemented this, but some have do it in win CE? "Bruce Eitman [eMVP]" wrote: You can try to P / Invoke SetSystemPowerState() and see if this works. But , as Bruce already mentioned, the OEM must have implemented implemented. . Good luck, Erwin Zwart, Check out my blog: http: / / GuruCE.com / blog GuruCE Microsoft Embedded Partner http: / / GuruCE.com Consultancy, training and development services. Mahabub schreef: Only if the OEM