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

/*++
Copyright (c) Microsoft Corporation. All rights reserved.
Header Name:
faults.h
Abstract:
This module implements fault injection support.
Author:
Silviu Calinoiu (SilviuC) 3-Dec-2001
Revision History:
3-Dec-2001 (SilviuC): initial version.
--*/
#ifndef _FAULTS_H_
#define _FAULTS_H_
NTSTATUS
AVrfpInitializeFaultInjectionSupport (
VOID
);
LOGICAL
AVrfpShouldFaultInject (
ULONG Class,
PVOID Caller
);
#define SHOULD_FAULT_INJECT(cls) AVrfpShouldFaultInject((cls), _ReturnAddress())
#define CLS_WAIT_APIS FAULT_INJECTION_CLASS_WAIT_APIS
#define CLS_HEAP_ALLOC_APIS FAULT_INJECTION_CLASS_HEAP_ALLOC_APIS
#define CLS_VIRTUAL_ALLOC_APIS FAULT_INJECTION_CLASS_VIRTUAL_ALLOC_APIS
#define CLS_REGISTRY_APIS FAULT_INJECTION_CLASS_REGISTRY_APIS
#define CLS_FILE_APIS FAULT_INJECTION_CLASS_FILE_APIS
#define CLS_EVENT_APIS FAULT_INJECTION_CLASS_EVENT_APIS
#define CLS_MAP_VIEW_APIS FAULT_INJECTION_CLASS_MAP_VIEW_APIS
#define CLS_OLE_ALLOC_APIS FAULT_INJECTION_CLASS_OLE_ALLOC_APIS
#define CLS_MAXIMUM_INDEX 16
#endif // _FAULTS_H_