+#include <ddk/ntddk.h>
#include <windows.h>
#include <stdarg.h>
#include <string.h>
FindClose(shandle);
}
+
+void ExecuteReboot(char* cmdline)
+{
+ NtShutdownSystem (ShutdownReboot);
+}
+
+
void ExecuteType(char* cmdline)
{
HANDLE FileHandle;
ExecuteKill(tail);
return;
}
+ if (strcmp(cmd,"reboot")==0)
+ {
+ ExecuteReboot(tail);
+ return;
+ }
if (strcmp(cmd,"type")==0)
{
ExecuteType(tail);
}
if (strcmp(cmd,"ver")==0)
{
- ExecuteVer();
+ ExecuteVer();
return;
}
if (strcmp(cmd,"validate")==0)
}
if (strcmp(cmd,"start") == 0)
{
- ExecuteStart(tail);
- return;
+ ExecuteStart(tail);
+ return;
}
if (strcmp(cmd,"exit")==0)
{