Solved

Automatic warm boot after installing a CAB file under PocketPC

Posted on 2006-10-19
3
791 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

If you are anything like me, you install many apps on your phone and have your life on it, sometimes literally.  When I bought my current phone, a Samsung Galaxy S5 from Verizon, they were only selling the versions with 16 GB internal.  I didn't rea…
Let me explain this picture a little bit.  First, in case you haven't already guessed, you are looking at my 2 phones, an Android Samsung Galaxy S5 on the left and an iPhone 5 on the right.  They are on their respective cradles on my desk.  But, you…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 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

13 Experts available now in Live!

Get 1:1 Help Now