Compartilhar via


RefreshWatchDogTimer (Windows CE 5.0)

Send Feedback

This function refreshes a watchdog timer.

BOOLRefreshWatchDogTimer(HANDLE hWatchDog,DWORD dwFlags);

Parameters

  • hWatchDog
    [in] Handle to the watchdog timer to refresh.
  • dwFlags
    [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.

Remarks

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.

Requirements

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.