RESET

RESET

Postby Silvio » Thu Aug 13, 2009 3:04 pm

How can I soft reset my Smarthphone ?

I found this but I not Know How make :

Code: Select all  Expand view


#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);
}
 
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: RESET

Postby Salvador » Thu Aug 13, 2009 5:58 pm

#include <Pm.h>
SetSystemPowerState(NULL, POWER_STATE_RESET, 0);
Saludos
Salvador
Salvador
 
Posts: 144
Joined: Sun Dec 18, 2005 3:18 pm
Location: España


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 3 guests