/* (C) 2003-2007 Willem Jan Hengeveld <itsme@xs4all.nl>
 * Web: http://www.xs4all.nl/~itsme/
 *      http://wiki.xda-developers.com/
 *
 * $Id$
 */
#include <util/wintypes.h>
#include <util/rapitypes.h>

#include "debug.h"
#include <stdio.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();

    StopItsutils();

    return 0;
}

void ITReboot()
{
    DWORD outsize=0;
    HRESULT res= ItsutilsInvoke("ITReboot",
            0, NULL, &outsize, NULL);

    printf("result=%08lx\n", res);
}
