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.

50 lines
1.2 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Header Name:
  4. faults.h
  5. Abstract:
  6. This module implements fault injection support.
  7. Author:
  8. Silviu Calinoiu (SilviuC) 3-Dec-2001
  9. Revision History:
  10. 3-Dec-2001 (SilviuC): initial version.
  11. --*/
  12. #ifndef _FAULTS_H_
  13. #define _FAULTS_H_
  14. NTSTATUS
  15. AVrfpInitializeFaultInjectionSupport (
  16. VOID
  17. );
  18. LOGICAL
  19. AVrfpShouldFaultInject (
  20. ULONG Class,
  21. PVOID Caller
  22. );
  23. #define SHOULD_FAULT_INJECT(cls) AVrfpShouldFaultInject((cls), _ReturnAddress())
  24. #define CLS_WAIT_APIS FAULT_INJECTION_CLASS_WAIT_APIS
  25. #define CLS_HEAP_ALLOC_APIS FAULT_INJECTION_CLASS_HEAP_ALLOC_APIS
  26. #define CLS_VIRTUAL_ALLOC_APIS FAULT_INJECTION_CLASS_VIRTUAL_ALLOC_APIS
  27. #define CLS_REGISTRY_APIS FAULT_INJECTION_CLASS_REGISTRY_APIS
  28. #define CLS_FILE_APIS FAULT_INJECTION_CLASS_FILE_APIS
  29. #define CLS_EVENT_APIS FAULT_INJECTION_CLASS_EVENT_APIS
  30. #define CLS_MAP_VIEW_APIS FAULT_INJECTION_CLASS_MAP_VIEW_APIS
  31. #define CLS_OLE_ALLOC_APIS FAULT_INJECTION_CLASS_OLE_ALLOC_APIS
  32. #define CLS_MAXIMUM_INDEX 16
  33. #endif // _FAULTS_H_