StartWatchDogTimer (Compact 2013)

3/28/2014

This function starts a watchdog timer.

Syntax

BOOL StartWatchDogTimer(
  HANDLE hWatchDog,
  DWORD dwFlags
);

Parameters

  • hWatchDog
    [in] Handle to the watchdog timer to start.
  • dwFlags
    [in] Reserved; must be set to zero.

Return Value

TRUE indicates success. ERROR_INVALID_HANDLE indicates that an invalid handle to the watchdog timer is received. Otherwise, NULL is returned. Call GetLastError to get extended error information.

Remarks

The process calling StartWatchDogTimer is the process to be watched. This process is the process to be ended if the default action is WDOG_KILL_PROCESS.

Requirements

Header

pkfuncs.h

Library

coredll.lib

See Also

Reference

Kernel Functions
CreateWatchDogTimer
OpenWatchDogTimer
StopWatchDogTimer
RefreshWatchDogTimer
GetLastError