[DllImport("coredll.dll", CharSet = CharSet.Auto)]
        private extern static int KernelIoControl(int dwIoControlCode, IntPtr lpInBuf, int nInBufSize, IntPtr lpOutBuf, int nOutBufSize, ref int lpBytesReturned);
        [DllImport("coredll.dll", CharSet = CharSet.Auto)]

 private void ResetCE()
        {
            int IOCTL_HAL_REBOOT = 0x101003C;
            int bytesReturned = 0;
            SetCleanRebootFlag();
            KernelIoControl(IOCTL_HAL_REBOOT, IntPtr.Zero, 0, IntPtr.Zero, 0, ref bytesReturned); 
        }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
  • 2021-11-12
  • 2022-02-13
猜你喜欢
  • 2021-09-01
  • 2021-09-23
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
相关资源
相似解决方案