|
请教:调用KernelIoControl重启WINCE后造成死机
[复制链接]
- #include
- #define IOCTL_HAL_REBOOT CTL_CODE(FILE_DEVICE_HAL, 15, METHOD_BUFFERED, FILE_ANY_ACCESS)
- extern "C" __declspec(dllimport) BOOL KernelIoControl(
- DWORD dwIoControlCode,
- LPVOID lpInBuf,
- DWORD nInBufSize,
- LPVOID lpOutBuf,
- DWORD nOutBufSize,
- LPDWORD lpBytesReturned);
- BOOL ResetPocketPC()
- {
- return KernelIoControl(IOCTL_HAL_REBOOT, NULL, 0, NULL, 0, NULL);
- }
复制代码
概率大概10%不到,但总是会出现,请问如何解决
|
|