/* (C) 2003-2007 Willem Jan Hengeveld * Web: http://www.xs4all.nl/~itsme/ * http://wiki.xda-developers.com/ * * $Id: preboot.cpp 1921 2008-07-31 17:08:31Z itsme $ */ #include #include #include "debug.h" #include "ItsUtils.h" #include "dllversion.h" void ITReboot(); int main( int argc, char **) { DebugStdOut(); if (argc!=1) { printf("(C) 2003-2008 Willem jan Hengeveld itsme@xs4all.nl\n"); printf("Usage: preboot\n"); return 1; } CheckITSDll(); ITReboot(); CeRapiUninit(); return 0; } void ITReboot() { DWORD outsize=0; HRESULT res= ItsutilsInvoke(L"ITReboot", 0, NULL, &outsize, NULL); printf("result=%08lx\n", res); }