次の方法で共有


RefreshWatchDogTimer (Compact 2013)

3/28/2014

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.

Requirements

Header

pkfuncs.h

Library

OEMMain.lib or OEMMain_StaticKITL.lib

See Also

Reference

Kernel Functions
CreateWatchDogTimer
OpenWatchDogTimer
StartWatchDogTimer
StopWatchDogTimer
GetLastError