?
Solved

Automatic warm boot after installing a CAB file under PocketPC

Posted on 2006-10-19
3
Medium Priority
?
807 Views
Last Modified: 2013-12-27
How do you automatically perform a warm boot after installing a CAB file under PocketPC?
Anyway to do this via the Win32 API? (e.g. a setup DLL)

The device I need to do this on is a Symbol PPT2800 running PocketPC 2002.

Thanks in advance

- Oren
0
Comment
Question by:orenleavitt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 48

Accepted Solution

by:
Mikal613 earned 2000 total points
ID: 17765047
include <winioctl.h>

#define IOCTL_HAL_REBOOT CTL_CODE(FILE_DEVICE_HAL, 15, METHOD_BUFFERED, FILE_ANY_ACCESS)

extern "C" __declspec(dllimport) BOOL KernelIoControl(
      DWORD dwIoControlCode,
      LPVOID lpInBuf,
      DWORD nInBufSize,
      LPVOID lpOutBuf,
      DWORD nOutBufSize,
      LPDWORD lpBytesReturned);

BOOL ResetPocketPC()
{
      return KernelIoControl(IOCTL_HAL_REBOOT, NULL, 0, NULL, 0, NULL);
}

Usually your cab maker has that option.
0
 
LVL 5

Expert Comment

by:CraigTheGeek
ID: 17766084
Hi there orenleavitt, what language are you using C++, C#, VB.NET etc?

Craig
0
 

Author Comment

by:orenleavitt
ID: 17769705
Thanks Mikal613,
I'll give the KernelIoControl() snippet a crack..

Hi Craig,
I'm using C++ and MFC.

- Oren
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Once again I push the limits of my phone.  An introduction to the Android Google Now Launcher.
You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month13 days, 4 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question