Automatic warm boot after installing a CAB file under PocketPC

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
orenleavittAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Mikal613Connect With a Mentor Commented:
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
 
CraigTheGeekCommented:
Hi there orenleavitt, what language are you using C++, C#, VB.NET etc?

Craig
0
 
orenleavittAuthor Commented:
Thanks Mikal613,
I'll give the KernelIoControl() snippet a crack..

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

- Oren
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.