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.

74 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1991 - 2002 Microsoft Corporation
  3. Module Name:
  4. ## ## ### ## # ## ##### ## ##
  5. ### ### ## # ## ### ## ## ## ## ##
  6. ######## ### ## ### ## ## ## ## ##
  7. # ### ## ### ## # # ## ## ## #######
  8. # # ## ### ### ### ## ## ## ##
  9. # ## # ## ### ### ## ## ## ## ##
  10. # ## ### ## ## ##### ## ## ##
  11. @@BEGIN_DDKSPLIT
  12. Abstract:
  13. This header file contains the definitions for the
  14. virtual watchdog miniport driver.
  15. @@END_DDKSPLIT
  16. Author:
  17. Wesley Witt (wesw) 1-Oct-2001
  18. Environment:
  19. Kernel mode only.
  20. Notes:
  21. --*/
  22. extern "C" {
  23. #include <ntddk.h>
  24. #include <stdio.h>
  25. }
  26. #define DEFAULT_WD_TIMEOUT_SECS (2*60)
  27. #define SecToNano(_sec) ((_sec) * 1000 * 1000 * 10)
  28. #define NanoToSec(_nano) ((_nano) / (1000 * 1000 * 10))
  29. #define MINIPORT_DEVICE_TYPE SA_DEVICE_WATCHDOG
  30. #include "saport.h"
  31. typedef struct _DEVICE_EXTENSION {
  32. PDEVICE_OBJECT DeviceObject;
  33. FAST_MUTEX WdIoLock;
  34. ULONG Enabled;
  35. ULONG ExpireBehavior;
  36. KTIMER Timer;
  37. KDPC TimerDpc;
  38. LARGE_INTEGER StartTime;
  39. LARGE_INTEGER TimeoutValue;
  40. } DEVICE_EXTENSION, *PDEVICE_EXTENSION;
  41. //
  42. // prototypes
  43. //
  44. extern "C" {
  45. NTSTATUS
  46. DriverEntry(
  47. IN PDRIVER_OBJECT DriverObject,
  48. IN PUNICODE_STRING RegistryPath
  49. );
  50. } // extern "C"