Solved

Automatic warm boot after installing a CAB file under PocketPC

Posted on 2006-10-19
3
792 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
3 Comments
 
LVL 48

Accepted Solution

by:
Mikal613 earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I recently asked a question (http://www.experts-exchange.com/Programming/Smartphones/Android/Q_28684946.html) about Computer Inventory applications for Mobile Devices.  I was specifically interested in an app I could use on my android phone.  The be…
A short article about problems I had with the new location API and permissions in Marshmallow
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now