ReactOS 0.4.16-dev-125-g798ea90
ntddk.template.h File Reference
#include <wdm.h>
#include <excpt.h>
#include <ntdef.h>
#include <ntstatus.h>
#include <mce.h>
#include <bugcodes.h>
#include <ntiologc.h>
#include <stdarg.h>
#include <basetyps.h>
#include <guiddef.h>
Include dependency graph for ntddk.template.h:

Go to the source code of this file.

Classes

struct  _KERNEL_USER_TIMES
 
struct  _SYSTEM_FIRMWARE_TABLE_INFORMATION
 
struct  _SYSTEM_FIRMWARE_TABLE_HANDLER
 
struct  _DRIVER_VERIFIER_THUNK_PAIRS
 

Macros

#define _NTDDK_
 
#define _NTDDK_INCLUDED_
 
#define _DDK_DRIVER_
 
#define NT_INCLUDED
 
#define _CTYPE_DISABLE_MACROS
 
#define _NTLSA_AUDIT_
 
#define VER_SET_CONDITION(ConditionMask, TypeBitMask, ComparisonType)
 
#define DRIVER_VERIFIER_SPECIAL_POOLING   0x0001
 
#define DRIVER_VERIFIER_FORCE_IRQL_CHECKING   0x0002
 
#define DRIVER_VERIFIER_INJECT_ALLOCATION_FAILURES   0x0004
 
#define DRIVER_VERIFIER_TRACK_POOL_ALLOCATIONS   0x0008
 
#define DRIVER_VERIFIER_IO_CHECKING   0x0010
 
#define SHARED_GLOBAL_FLAGS_ERROR_PORT_V   0x0
 
#define SHARED_GLOBAL_FLAGS_ERROR_PORT   (1UL << SHARED_GLOBAL_FLAGS_ERROR_PORT_V)
 
#define SHARED_GLOBAL_FLAGS_ELEVATION_ENABLED_V   0x1
 
#define SHARED_GLOBAL_FLAGS_ELEVATION_ENABLED   (1UL << SHARED_GLOBAL_FLAGS_ELEVATION_ENABLED_V)
 
#define SHARED_GLOBAL_FLAGS_VIRT_ENABLED_V   0x2
 
#define SHARED_GLOBAL_FLAGS_VIRT_ENABLED   (1UL << SHARED_GLOBAL_FLAGS_VIRT_ENABLED_V)
 
#define SHARED_GLOBAL_FLAGS_INSTALLER_DETECT_ENABLED_V   0x3
 
#define SHARED_GLOBAL_FLAGS_INSTALLER_DETECT_ENABLED    (1UL << SHARED_GLOBAL_FLAGS_INSTALLER_DETECT_ENABLED_V)
 
#define SHARED_GLOBAL_FLAGS_SPARE_V   0x4
 
#define SHARED_GLOBAL_FLAGS_SPARE    (1UL << SHARED_GLOBAL_FLAGS_SPARE_V)
 
#define SHARED_GLOBAL_FLAGS_DYNAMIC_PROC_ENABLED_V   0x5
 
#define SHARED_GLOBAL_FLAGS_DYNAMIC_PROC_ENABLED    (1UL << SHARED_GLOBAL_FLAGS_DYNAMIC_PROC_ENABLED_V)
 
#define SHARED_GLOBAL_FLAGS_SEH_VALIDATION_ENABLED_V   0x6
 
#define SHARED_GLOBAL_FLAGS_SEH_VALIDATION_ENABLED    (1UL << SHARED_GLOBAL_FLAGS_SEH_VALIDATION_ENABLED_V)
 
#define EX_INIT_BITS(Flags, Bit)    *((Flags)) |= (Bit)
 
#define EX_TEST_SET_BIT(Flags, Bit)    InterlockedBitTestAndSet ((PLONG)(Flags), (Bit))
 
#define EX_TEST_CLEAR_BIT(Flags, Bit)    InterlockedBitTestAndReset ((PLONG)(Flags), (Bit))
 
#define PCCARD_MAP_ERROR   0x01
 
#define PCCARD_DEVICE_PCI   0x10
 
#define PCCARD_SCAN_DISABLED   0x01
 
#define PCCARD_MAP_ZERO   0x02
 
#define PCCARD_NO_TIMER   0x03
 
#define PCCARD_NO_PIC   0x04
 
#define PCCARD_NO_LEGACY_BASE   0x05
 
#define PCCARD_DUP_LEGACY_BASE   0x06
 
#define PCCARD_NO_CONTROLLERS   0x07
 
#define MAXIMUM_EXPANSION_SIZE   (KERNEL_LARGE_STACK_SIZE - (PAGE_SIZE / 2))
 

Typedefs

typedef GUID UUID
 
typedef struct _BUS_HANDLERPBUS_HANDLER
 
typedef struct _DEVICE_HANDLER_OBJECT * PDEVICE_HANDLER_OBJECT
 
typedef struct _PEBPPEB
 
typedef struct _IMAGE_NT_HEADERSPIMAGE_NT_HEADERS32
 
typedef struct _IMAGE_NT_HEADERS64PIMAGE_NT_HEADERS64
 
typedef PIMAGE_NT_HEADERS32 PIMAGE_NT_HEADERS
 
typedef struct _KERNEL_USER_TIMES KERNEL_USER_TIMES
 
typedef struct _KERNEL_USER_TIMESPKERNEL_USER_TIMES
 
typedef enum _SYSTEM_FIRMWARE_TABLE_ACTION SYSTEM_FIRMWARE_TABLE_ACTION
 
typedef struct _SYSTEM_FIRMWARE_TABLE_INFORMATION SYSTEM_FIRMWARE_TABLE_INFORMATION
 
typedef struct _SYSTEM_FIRMWARE_TABLE_INFORMATIONPSYSTEM_FIRMWARE_TABLE_INFORMATION
 
typedef NTSTATUS(__cdeclPFNFTH) (_Inout_ PSYSTEM_FIRMWARE_TABLE_INFORMATION SystemFirmwareTableInfo)
 
typedef struct _SYSTEM_FIRMWARE_TABLE_HANDLER SYSTEM_FIRMWARE_TABLE_HANDLER
 
typedef struct _SYSTEM_FIRMWARE_TABLE_HANDLERPSYSTEM_FIRMWARE_TABLE_HANDLER
 
typedef ULONG_PTR(NTAPIPDRIVER_VERIFIER_THUNK_ROUTINE) (_In_ PVOID Context)
 
typedef struct _DRIVER_VERIFIER_THUNK_PAIRS DRIVER_VERIFIER_THUNK_PAIRS
 
typedef struct _DRIVER_VERIFIER_THUNK_PAIRSPDRIVER_VERIFIER_THUNK_PAIRS
 

Enumerations

enum  _SYSTEM_FIRMWARE_TABLE_ACTION { SystemFirmwareTable_Enumerate , SystemFirmwareTable_Get }
 

Functions

 $define (_NTDDK_) $include(extypes.h) $include(cmtypes.h) $include(iotypes.h) $include(haltypes.h) $include(ketypes.h) $include(kdtypes.h) $include(mmtypes.h) $include(pstypes.h) $include(rtltypes.h) $include(setypes.h) $include(exfuncs.h) $include(halfuncs.h) $include(iofuncs.h) $include(kdfuncs.h) $include(kefuncs.h) $include(mmfuncs.h) $include(psfuncs.h) $include(rtlfuncs.h) $include(sefuncs.h) $include(zwfuncs.h) NTSYSAPI ULONGLONG NTAPI VerSetConditionMask(IN ULONGLONG ConditionMask
 
_Must_inspect_result_ NTKERNELAPI BOOLEAN NTAPI FsRtlIsTotalDeviceFailure (_In_ NTSTATUS Status)
 

Variables

IN ULONG TypeMask
 
IN ULONG IN UCHAR Condition
 

Macro Definition Documentation

◆ _CTYPE_DISABLE_MACROS

#define _CTYPE_DISABLE_MACROS

Definition at line 36 of file ntddk.template.h.

◆ _DDK_DRIVER_

#define _DDK_DRIVER_

Definition at line 30 of file ntddk.template.h.

◆ _NTDDK_

#define _NTDDK_

Definition at line 26 of file ntddk.template.h.

◆ _NTDDK_INCLUDED_

#define _NTDDK_INCLUDED_

Definition at line 29 of file ntddk.template.h.

◆ _NTLSA_AUDIT_

#define _NTLSA_AUDIT_

Definition at line 57 of file ntddk.template.h.

◆ DRIVER_VERIFIER_FORCE_IRQL_CHECKING

#define DRIVER_VERIFIER_FORCE_IRQL_CHECKING   0x0002

Definition at line 200 of file ntddk.template.h.

◆ DRIVER_VERIFIER_INJECT_ALLOCATION_FAILURES

#define DRIVER_VERIFIER_INJECT_ALLOCATION_FAILURES   0x0004

Definition at line 201 of file ntddk.template.h.

◆ DRIVER_VERIFIER_IO_CHECKING

#define DRIVER_VERIFIER_IO_CHECKING   0x0010

Definition at line 203 of file ntddk.template.h.

◆ DRIVER_VERIFIER_SPECIAL_POOLING

#define DRIVER_VERIFIER_SPECIAL_POOLING   0x0001

Definition at line 199 of file ntddk.template.h.

◆ DRIVER_VERIFIER_TRACK_POOL_ALLOCATIONS

#define DRIVER_VERIFIER_TRACK_POOL_ALLOCATIONS   0x0008

Definition at line 202 of file ntddk.template.h.

◆ EX_INIT_BITS

#define EX_INIT_BITS (   Flags,
  Bit 
)     *((Flags)) |= (Bit)

Definition at line 230 of file ntddk.template.h.

◆ EX_TEST_CLEAR_BIT

#define EX_TEST_CLEAR_BIT (   Flags,
  Bit 
)     InterlockedBitTestAndReset ((PLONG)(Flags), (Bit))

Definition at line 236 of file ntddk.template.h.

◆ EX_TEST_SET_BIT

#define EX_TEST_SET_BIT (   Flags,
  Bit 
)     InterlockedBitTestAndSet ((PLONG)(Flags), (Bit))

Definition at line 233 of file ntddk.template.h.

◆ MAXIMUM_EXPANSION_SIZE

#define MAXIMUM_EXPANSION_SIZE   (KERNEL_LARGE_STACK_SIZE - (PAGE_SIZE / 2))

Definition at line 250 of file ntddk.template.h.

◆ NT_INCLUDED

#define NT_INCLUDED

Definition at line 35 of file ntddk.template.h.

◆ PCCARD_DEVICE_PCI

#define PCCARD_DEVICE_PCI   0x10

Definition at line 240 of file ntddk.template.h.

◆ PCCARD_DUP_LEGACY_BASE

#define PCCARD_DUP_LEGACY_BASE   0x06

Definition at line 247 of file ntddk.template.h.

◆ PCCARD_MAP_ERROR

#define PCCARD_MAP_ERROR   0x01

Definition at line 239 of file ntddk.template.h.

◆ PCCARD_MAP_ZERO

#define PCCARD_MAP_ZERO   0x02

Definition at line 243 of file ntddk.template.h.

◆ PCCARD_NO_CONTROLLERS

#define PCCARD_NO_CONTROLLERS   0x07

Definition at line 248 of file ntddk.template.h.

◆ PCCARD_NO_LEGACY_BASE

#define PCCARD_NO_LEGACY_BASE   0x05

Definition at line 246 of file ntddk.template.h.

◆ PCCARD_NO_PIC

#define PCCARD_NO_PIC   0x04

Definition at line 245 of file ntddk.template.h.

◆ PCCARD_NO_TIMER

#define PCCARD_NO_TIMER   0x03

Definition at line 244 of file ntddk.template.h.

◆ PCCARD_SCAN_DISABLED

#define PCCARD_SCAN_DISABLED   0x01

Definition at line 242 of file ntddk.template.h.

◆ SHARED_GLOBAL_FLAGS_DYNAMIC_PROC_ENABLED

#define SHARED_GLOBAL_FLAGS_DYNAMIC_PROC_ENABLED    (1UL << SHARED_GLOBAL_FLAGS_DYNAMIC_PROC_ENABLED_V)

Definition at line 223 of file ntddk.template.h.

◆ SHARED_GLOBAL_FLAGS_DYNAMIC_PROC_ENABLED_V

#define SHARED_GLOBAL_FLAGS_DYNAMIC_PROC_ENABLED_V   0x5

Definition at line 222 of file ntddk.template.h.

◆ SHARED_GLOBAL_FLAGS_ELEVATION_ENABLED

#define SHARED_GLOBAL_FLAGS_ELEVATION_ENABLED   (1UL << SHARED_GLOBAL_FLAGS_ELEVATION_ENABLED_V)

Definition at line 209 of file ntddk.template.h.

◆ SHARED_GLOBAL_FLAGS_ELEVATION_ENABLED_V

#define SHARED_GLOBAL_FLAGS_ELEVATION_ENABLED_V   0x1

Definition at line 208 of file ntddk.template.h.

◆ SHARED_GLOBAL_FLAGS_ERROR_PORT

#define SHARED_GLOBAL_FLAGS_ERROR_PORT   (1UL << SHARED_GLOBAL_FLAGS_ERROR_PORT_V)

Definition at line 206 of file ntddk.template.h.

◆ SHARED_GLOBAL_FLAGS_ERROR_PORT_V

#define SHARED_GLOBAL_FLAGS_ERROR_PORT_V   0x0

Definition at line 205 of file ntddk.template.h.

◆ SHARED_GLOBAL_FLAGS_INSTALLER_DETECT_ENABLED

#define SHARED_GLOBAL_FLAGS_INSTALLER_DETECT_ENABLED    (1UL << SHARED_GLOBAL_FLAGS_INSTALLER_DETECT_ENABLED_V)

Definition at line 215 of file ntddk.template.h.

◆ SHARED_GLOBAL_FLAGS_INSTALLER_DETECT_ENABLED_V

#define SHARED_GLOBAL_FLAGS_INSTALLER_DETECT_ENABLED_V   0x3

Definition at line 214 of file ntddk.template.h.

◆ SHARED_GLOBAL_FLAGS_SEH_VALIDATION_ENABLED

#define SHARED_GLOBAL_FLAGS_SEH_VALIDATION_ENABLED    (1UL << SHARED_GLOBAL_FLAGS_SEH_VALIDATION_ENABLED_V)

Definition at line 227 of file ntddk.template.h.

◆ SHARED_GLOBAL_FLAGS_SEH_VALIDATION_ENABLED_V

#define SHARED_GLOBAL_FLAGS_SEH_VALIDATION_ENABLED_V   0x6

Definition at line 226 of file ntddk.template.h.

◆ SHARED_GLOBAL_FLAGS_SPARE

#define SHARED_GLOBAL_FLAGS_SPARE    (1UL << SHARED_GLOBAL_FLAGS_SPARE_V)

Definition at line 219 of file ntddk.template.h.

◆ SHARED_GLOBAL_FLAGS_SPARE_V

#define SHARED_GLOBAL_FLAGS_SPARE_V   0x4

Definition at line 218 of file ntddk.template.h.

◆ SHARED_GLOBAL_FLAGS_VIRT_ENABLED

#define SHARED_GLOBAL_FLAGS_VIRT_ENABLED   (1UL << SHARED_GLOBAL_FLAGS_VIRT_ENABLED_V)

Definition at line 212 of file ntddk.template.h.

◆ SHARED_GLOBAL_FLAGS_VIRT_ENABLED_V

#define SHARED_GLOBAL_FLAGS_VIRT_ENABLED_V   0x2

Definition at line 211 of file ntddk.template.h.

◆ VER_SET_CONDITION

#define VER_SET_CONDITION (   ConditionMask,
  TypeBitMask,
  ComparisonType 
)
Value:
(TypeBitMask), (ComparisonType)))
_In_ ULONG _In_ ULONGLONG ConditionMask
Definition: rtlfuncs.h:4688
ULONGLONG NTAPI VerSetConditionMask(IN ULONGLONG ConditionMask, IN ULONG TypeMask, IN UCHAR Condition)
Definition: version.c:262

Typedef Documentation

◆ DRIVER_VERIFIER_THUNK_PAIRS

◆ KERNEL_USER_TIMES

◆ PBUS_HANDLER

Definition at line 76 of file ntddk.template.h.

◆ PDEVICE_HANDLER_OBJECT

typedef struct _DEVICE_HANDLER_OBJECT* PDEVICE_HANDLER_OBJECT

Definition at line 77 of file ntddk.template.h.

◆ PDRIVER_VERIFIER_THUNK_PAIRS

◆ PDRIVER_VERIFIER_THUNK_ROUTINE

typedef ULONG_PTR(NTAPI * PDRIVER_VERIFIER_THUNK_ROUTINE) (_In_ PVOID Context)

Definition at line 190 of file ntddk.template.h.

◆ PFNFTH

typedef NTSTATUS(__cdecl * PFNFTH) (_Inout_ PSYSTEM_FIRMWARE_TABLE_INFORMATION SystemFirmwareTableInfo)

Definition at line 179 of file ntddk.template.h.

◆ PIMAGE_NT_HEADERS

Definition at line 91 of file ntddk.template.h.

◆ PIMAGE_NT_HEADERS32

Definition at line 85 of file ntddk.template.h.

◆ PIMAGE_NT_HEADERS64

Definition at line 86 of file ntddk.template.h.

◆ PKERNEL_USER_TIMES

◆ PPEB

typedef struct _PEB* PPEB

Definition at line 81 of file ntddk.template.h.

◆ PSYSTEM_FIRMWARE_TABLE_HANDLER

◆ PSYSTEM_FIRMWARE_TABLE_INFORMATION

◆ SYSTEM_FIRMWARE_TABLE_ACTION

◆ SYSTEM_FIRMWARE_TABLE_HANDLER

◆ SYSTEM_FIRMWARE_TABLE_INFORMATION

◆ UUID

typedef GUID UUID

Definition at line 66 of file ntddk.template.h.

Enumeration Type Documentation

◆ _SYSTEM_FIRMWARE_TABLE_ACTION

Enumerator
SystemFirmwareTable_Enumerate 
SystemFirmwareTable_Get 

Definition at line 166 of file ntddk.template.h.

166 {
@ SystemFirmwareTable_Enumerate
@ SystemFirmwareTable_Get
enum _SYSTEM_FIRMWARE_TABLE_ACTION SYSTEM_FIRMWARE_TABLE_ACTION

Function Documentation

◆ $define()

$define ( _NTDDK_  )

Referenced by $if(), and __drv_Mode_impl().

◆ FsRtlIsTotalDeviceFailure()

_Must_inspect_result_ NTKERNELAPI BOOLEAN NTAPI FsRtlIsTotalDeviceFailure ( _In_ NTSTATUS  Status)

Variable Documentation

◆ Condition

◆ TypeMask

IN ULONG TypeMask

Definition at line 153 of file ntddk.template.h.