RefreshWatchDogTimer (Windows CE 5.0)

Windows CE 5.0
Send Feedback

This function refreshes a watchdog timer.

BOOL RefreshWatchDogTimer(
  HANDLE hWatchDog, 
  DWORD dwFlags 


[in] Handle to the watchdog timer to refresh.
[in] Reserved; must be set to 0.

Return Values

Returns TRUE if the watchdog timer is successfully refreshed.

Otherwise, NULL is returned.

Use GetLastError to get extended failure information.


The process being watched needs to call RefreshWatchDogTimer within the watchdog period to prevent the watchdog from being signaled and to prevent the default action 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 trusted API because it gives you the ability to reset the device. Only trusted applications can access this function. For more information, see Trusted APIs.


OS Versions: Windows CE 5.0 and later.
Header: Pkfuncs.h.
Link Library: Coredll.lib.

See Also

CreateWatchDogTimer | OpenWatchDogTimer | StartWatchDogTimer | StopWatchDogTimer | GetLastError

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.