33
Appendix C
// Set the Watchdog Timer as 10 seconds. Number 2 means 10 seconds.
DeviceIoControl(m_hWDT, IOCTL_WDT_SET_TIMEOUT, &nIndex,
sizeof(nIndex), NULL, 0, &dwTemp, NULL);
// Enable the Watchdog timer
DeviceIoControl(m_hWDT, IOCTL_WDT_ENABLE, NULL, 0, NULL,
0, &dwTemp, NULL);
While (1) {
// do your job here.
Sleep(8000);
DeviceIoControl(m_hWDT, IOCTL_WDT_STROBE, NULL,0,
NULL, 0, &dwTemp, NULL);
}
DeviceIoControl(m_hWDT, IOCTL_WDT_DISABLE, NULL, , NULL,
0, &dwTemp, NULL);
CloseHandle(m_hWDT);
Содержание TPC-650H
Страница 1: ...TPC 650H 5 7 VGA TFT LCD Intel Atom Touch Panel Computer User Manual...
Страница 8: ...TPC 650H User Manual viii C 2 6 IOCTL_WDT_REBOOT 31 C 3 Examples 32...
Страница 15: ...2 CHAPTER 2 System Setup This chapter provides a brief explana tion for operating TPC 650H...
Страница 19: ...2 CHAPTER 3 Features in Windows XP Embedded Sections include EWF HORM Advantech Utilities...
Страница 22: ...TPC 650H User Manual 14...
Страница 23: ...2 APPENDIX A Serial Port Settings...
Страница 25: ...2 APPENDIX B Watchdog Timer Programming...
Страница 35: ...2 APPENDIX C Watchdog Timer Programming on WinCE...
Страница 42: ...TPC 650H User Manual 34...