RESET

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

RESET

Post by Silvio »

How can I soft reset my Smarthphone ?

I found this but I not Know How make :

Code: Select all


#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
Salvador
Posts: 142
Joined: Sun Dec 18, 2005 3:18 pm
Location: España

Re: RESET

Post by Salvador »

#include <Pm.h>
SetSystemPowerState(NULL, POWER_STATE_RESET, 0);
Saludos
Salvador
Post Reply