/* (C) 2003-2007 Willem Jan Hengeveld * Web: http://www.xs4all.nl/~itsme/ * http://wiki.xda-developers.com/ * * $Id: $ * * this program coldboots a windows ce device. * * currently only htc startrek and similar devices are supported * */ #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: pcoldboot\n"); return 1; } CheckITSDll(); ITReboot(); CeRapiUninit(); return 0; } void ITReboot() { DWORD outsize=0; HRESULT res= ItsutilsInvoke(L"ITColdboot", 0, NULL, &outsize, NULL); printf("result=%08lx\n", res); }