Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1991 - 2001 Microsoft Corporation
  3. Module Name:
  4. ## # ## ### ###### #### ## ## ##### ##### #### ## ##
  5. ## ### ## ### ## ## # ## ## ## ## ## ## ## # ## ##
  6. ## ### ## ## ## ## ## ## ## ## ## ## ## ## ## ##
  7. ## # # ## ## ## ## ## ####### ## ## ## ## ## ### #######
  8. ### ### ####### ## ## ## ## ## ## ## ## ## ## ## ##
  9. ### ### ## ## ## ## # ## ## ## ## ## ## ## ## ## ## ##
  10. ## ## ## ## ## #### ## ## ##### ##### ##### ## ## ##
  11. Abstract:
  12. This header file contains all the global
  13. definitions for the watchdog timer device.
  14. Author:
  15. Wesley Witt (wesw) 1-Oct-2001
  16. Environment:
  17. Kernel mode only.
  18. Notes:
  19. --*/
  20. #define WATCHDOG_PING_SECONDS (30)
  21. #define WATCHDOG_TIMER_VALUE (120)
  22. #define WATCHDOG_INIT_SECONDS (10)
  23. typedef struct _WATCHDOG_DEVICE_EXTENSION : _DEVICE_EXTENSION {
  24. FAST_MUTEX DeviceLock;
  25. LONG ActiveProcessCount;
  26. LARGE_INTEGER LastProcessTime;
  27. KEVENT PingEvent;
  28. KEVENT StopEvent;
  29. } WATCHDOG_DEVICE_EXTENSION, *PWATCHDOG_DEVICE_EXTENSION;
  30. typedef struct _WATCHDOG_PROCESS_WATCH {
  31. PWATCHDOG_DEVICE_EXTENSION DeviceExtension;
  32. HANDLE ProcessId;
  33. } WATCHDOG_PROCESS_WATCH, *PWATCHDOG_PROCESS_WATCH;
  34. NTSTATUS
  35. SaWatchdogIoValidation(
  36. IN PWATCHDOG_DEVICE_EXTENSION DeviceExtension,
  37. IN PIRP Irp,
  38. PIO_STACK_LOCATION IrpSp
  39. );
  40. NTSTATUS
  41. SaWatchdogDeviceInitialization(
  42. IN PSAPORT_DRIVER_EXTENSION DriverExtension
  43. );
  44. NTSTATUS
  45. SaWatchdogShutdownNotification(
  46. IN PWATCHDOG_DEVICE_EXTENSION DeviceExtension,
  47. IN PIRP Irp,
  48. PIO_STACK_LOCATION IrpSp
  49. );
  50. NTSTATUS
  51. SaWatchdogStartDevice(
  52. IN PWATCHDOG_DEVICE_EXTENSION DeviceExtension
  53. );