8/28/2008 This function refreshes a watchdog timer.
BOOL RefreshWatchDogTimer(
HANDLE hWatchDog,
DWORD dwFlags
);
- hWatchDog
-
[in] Handle to the watchdog timer to refresh.
- dwFlags
-
[in] Reserved; must be set to zero.
TRUE indicates success. Returns ERROR_INVALID_HANDLE if an invalid handle to the watchdog timer is received. Otherwise, NULL is returned. Call GetLastError to get extended error information.
The process being watched must call RefreshWatchDogTimer within the watchdog period to prevent the watchdog from being signaled and the default action from being taken.
Calling RefreshWatchDogTimer on a watchdog timer that has not been started yet returns TRUE because the watch is not signaling at that point.
RefreshWatchDogTimer is a privileged function that resets the device. Only privileged applications can access this function. For more information, see Privileged APIs.
| Header | pkfuncs.h |
| Library | coredll.lib |
| Windows Embedded CE | Windows CE 5.0 and later |
Reference
Kernel Functions
CreateWatchDogTimer
OpenWatchDogTimer
StartWatchDogTimer
StopWatchDogTimer
Concepts
Kernel Mode APIs
Other Resources
GetLastError