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
Solved

Automatic warm boot after installing a CAB file under PocketPC

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
How to install QR Code scanner software on LG phone 6 177
Smartphone change 3 88
Coova-Chilli can't work with URL using HTTPS! 3 272
triangle challenge 4 176
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…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 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