Appendix D
Watchdog Timer Programming on WinCE (TPC-2012)
TPC-2012/TPC-2512 User Manual
D-6
ni.com
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);