CSharp___DllImport.Phone.OS.Kernel.ResetDevice C# (CSharp) Метод

ResetDevice() публичный статический Метод

the method needed to be called to actually reset the device.
public static ResetDevice ( ) : void
Результат void
                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);
                }