Why in Toradex Windows Embedded Compact SDK missing function ExitWindowsEx()? How can I to programmatically reboot the system in this case?
Hi,
There is no support for ExitWindowsEx on Windows Embedded Compact.
Please look here how to reboot the system → IOCTL HAL REBOOT | Toradex Developer Center
Thank you!
There is linker error: error LNK2019: unresolved external symbol “int __cdecl KernelIoControl(unsigned long,void ,unsigned long,void ,unsigned long,unsigned long *)” (?KernelIoControl@@YAHKPAXK0KPAK@Z)
Apparently, it is necessary to add some library. What?
Are you building as C++? if yes you should change →
BOOL KernelIoControl(DWORD dwIoControlCode, LPVOID lpInBuf, DWORD nInBufSize, LPVOID lpOutBuf, DWORD nOutBufSize, LPDWORD lpBytesReturned);
to
extern "C" BOOL KernelIoControl(DWORD dwIoControlCode, LPVOID lpInBuf, DWORD nInBufSize, LPVOID lpOutBuf, DWORD nOutBufSize, LPDWORD lpBytesReturned);
It is work, thank you