RefreshWatchDogTimer
Windows Mobile Not SupportedWindows Embedded CE Supported
8/28/2008

This function refreshes a watchdog timer.

Syntax


BOOL RefreshWatchDogTimer(
  HANDLE hWatchDog,
  DWORD dwFlags
);
Parameters

hWatchDog

[in] Handle to the watchdog timer to refresh.

dwFlags

[in] Reserved; must be set to zero.

Return Value

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.

Remarks

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.

Requirements

Headerpkfuncs.h
Librarycoredll.lib
Windows Embedded CEWindows CE 5.0 and later
See Also

Reference

Kernel Functions
CreateWatchDogTimer
OpenWatchDogTimer
StartWatchDogTimer
StopWatchDogTimer

Concepts

Kernel Mode APIs

Other Resources

GetLastError

Tags :


Page view tracker