public static void ResetDevice()
{
throw new Exception("I realy DONT recommend calling this, in documentation is says restarts. but im not sure if it does a Hard Reset. I myself wont try and see what it does!!!!");
uint bytesReturned = 0;
uint IOCTL_HAL_REBOOT = CTL_CODE(FILE_DEVICE_HAL, 15, METHOD_BUFFERED, FILE_ANY_ACCESS);
DllImportCaller.lib.KernelIoControl(IOCTL_HAL_REBOOT, IntPtr.Zero, 0, IntPtr.Zero, 0, ref bytesReturned);
}