ReactOS  0.4.15-dev-1632-g4e289ce
wdffdo.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _WDF_FDO_EVENT_CALLBACKS
 

Macros

#define WDF_EXTERN_C
 
#define WDF_EXTERN_C_START
 
#define WDF_EXTERN_C_END
 

Typedefs

typedef EVT_WDF_DEVICE_FILTER_RESOURCE_REQUIREMENTS * PFN_WDF_DEVICE_FILTER_RESOURCE_REQUIREMENTS
 
typedef _In_ WDFCMRESLIST ResourcesRaw
 
typedef _In_ WDFCMRESLIST _In_ WDFCMRESLIST ResourcesTranslated
 
typedef EVT_WDF_DEVICE_REMOVE_ADDED_RESOURCES * PFN_WDF_DEVICE_REMOVE_ADDED_RESOURCES
 
typedef struct _WDF_FDO_EVENT_CALLBACKS WDF_FDO_EVENT_CALLBACKS
 
typedef struct _WDF_FDO_EVENT_CALLBACKSPWDF_FDO_EVENT_CALLBACKS
 
typedef _In_ PWDFDEVICE_INIT DeviceInit
 
typedef _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS(STDCALL *PFN_WDFFDOINITOPENREGISTRYKEY) (_In_ PWDF_DRIVER_GLOBALS DriverGlobals
 
typedef _Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ ULONG DeviceInstanceKeyType
 
typedef _Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ ULONG _In_ ACCESS_MASK DesiredAccess
 
typedef _Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ ULONG _In_ ACCESS_MASK _In_opt_ PWDF_OBJECT_ATTRIBUTES KeyAttributes
 
typedef _Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ ULONG _In_ ACCESS_MASK _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFKEY * Key
 
typedef _Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ DEVICE_REGISTRY_PROPERTY DeviceProperty
 
typedef _Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength
 
typedef _Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG _Out_writes_bytes_all_opt_(BufferLength) PVOID PropertyBuffer
 
typedef _Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG _Out_ PULONG ResultLength
 
typedef _Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE PoolType
 
typedef _Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE _In_opt_ PWDF_OBJECT_ATTRIBUTES PropertyMemoryAttributes
 
typedef _Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFMEMORY * PropertyMemory
 
typedef _Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ PWDF_DEVICE_PROPERTY_DATA _In_ ULONG _Out_ PVOID PropertyBuffer
 
typedef _Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ PWDF_DEVICE_PROPERTY_DATA _In_ ULONG _Out_ PVOID _Out_ PULONG _Out_ PDEVPROPTYPE Type
 
typedef _In_ PWDFDEVICE_INIT _In_ PWDF_FDO_EVENT_CALLBACKS FdoEventCallbacks
 
typedef _Inout_ PWDFDEVICE_INIT _In_ PWDF_CHILD_LIST_CONFIG Config
 
typedef _Inout_ PWDFDEVICE_INIT _In_ PWDF_CHILD_LIST_CONFIG _In_opt_ PWDF_OBJECT_ATTRIBUTES DefaultChildListAttributes
 
typedef _Must_inspect_result_ _In_ WDFDEVICE Fdo
 
typedef _Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID InterfaceType
 
typedef _Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE Interface
 
typedef _Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE _In_ USHORT Size
 
typedef _Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE _In_ USHORT _In_ USHORT Version
 
typedef _Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE _In_ USHORT _In_ USHORT _In_opt_ PVOID InterfaceSpecificData
 
typedef _Must_inspect_result_ _In_ WDFDEVICE _In_ WDFDEVICE Child
 
typedef _Must_inspect_result_ _In_ WDFDEVICE _In_opt_ WDFDEVICE PreviousChild
 
typedef _Must_inspect_result_ _In_ WDFDEVICE _In_opt_ WDFDEVICE _In_ ULONG Flags
 

Functions

WDF_EXTERN_C_START typedef _Function_class_ (EVT_WDF_DEVICE_FILTER_RESOURCE_REQUIREMENTS) _IRQL_requires_same_ _IRQL_requires_max_(PASSIVE_LEVEL) NTSTATUS STDCALL EVT_WDF_DEVICE_FILTER_RESOURCE_REQUIREMENTS(_In_ WDFDEVICE Device
 
typedef _Function_class_ (EVT_WDF_DEVICE_REMOVE_ADDED_RESOURCES) _IRQL_requires_same_ _IRQL_requires_max_(PASSIVE_LEVEL) NTSTATUS STDCALL EVT_WDF_DEVICE_REMOVE_ADDED_RESOURCES(_In_ WDFDEVICE Device
 
FORCEINLINE VOID WDF_FDO_EVENT_CALLBACKS_INIT (_Out_ PWDF_FDO_EVENT_CALLBACKS Callbacks)
 
typedef _IRQL_requires_max_ (DISPATCH_LEVEL) WDFAPI PDEVICE_OBJECT(STDCALL *PFN_WDFFDOINITWDMGETPHYSICALDEVICE)(_In_ PWDF_DRIVER_GLOBALS DriverGlobals
 
_Must_inspect_result_ _IRQL_requires_max_ (PASSIVE_LEVEL) FORCEINLINE NTSTATUS WdfFdoInitOpenRegistryKey(_In_ PWDFDEVICE_INIT DeviceInit
 
_Must_inspect_result_ _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG _Out_writes_bytes_all_opt_ (BufferLength) PVOID PropertyBuffer
 

Variables

WDF_EXTERN_C_START typedef _In_ WDFIORESREQLIST IoResourceRequirementsList
 

Macro Definition Documentation

◆ WDF_EXTERN_C

#define WDF_EXTERN_C

Definition at line 39 of file wdffdo.h.

◆ WDF_EXTERN_C_END

#define WDF_EXTERN_C_END

Definition at line 41 of file wdffdo.h.

◆ WDF_EXTERN_C_START

#define WDF_EXTERN_C_START

Definition at line 40 of file wdffdo.h.

Typedef Documentation

◆ _IRQL_requires_max_

typedef _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFDEVICE(STDCALL *PFN_WDFFDORETRIEVENEXTSTATICCHILD)(_In_ PWDF_DRIVER_GLOBALS DriverGlobals

Definition at line 140 of file wdffdo.h.

◆ _Out_writes_bytes_all_opt_

◆ BufferLength

◆ Child

Initial value:
{
return ((PFN_WDFFDOADDSTATICCHILD) WdfFunctions[WdfFdoAddStaticChildTableIndex])(WdfDriverGlobals, Fdo, Child)
#define WdfFunctions
Definition: wdf.h:66
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFDEVICE Child
Definition: wdffdo.h:533
PWDF_DRIVER_GLOBALS WdfDriverGlobals
_Must_inspect_result_ _In_ WDFDEVICE Fdo
Definition: wdffdo.h:461

Definition at line 533 of file wdffdo.h.

◆ Config

Definition at line 427 of file wdffdo.h.

◆ DefaultChildListAttributes

Initial value:
{
_Inout_ PWDFDEVICE_INIT _In_ PWDF_CHILD_LIST_CONFIG Config
Definition: wdffdo.h:427
_Inout_ PWDFDEVICE_INIT _In_ PWDF_CHILD_LIST_CONFIG _In_opt_ PWDF_OBJECT_ATTRIBUTES DefaultChildListAttributes
Definition: wdffdo.h:427
#define WdfFunctions
Definition: wdf.h:66
_In_ PWDFDEVICE_INIT DeviceInit
Definition: wdffdo.h:122
PWDF_DRIVER_GLOBALS WdfDriverGlobals

Definition at line 427 of file wdffdo.h.

◆ DesiredAccess

◆ DeviceInit

Definition at line 122 of file wdffdo.h.

◆ DeviceInstanceKeyType

◆ DeviceProperty

◆ Fdo

_In_ WDFDEVICE Fdo
Initial value:

Definition at line 461 of file wdffdo.h.

◆ FdoEventCallbacks

Initial value:
{
#define WdfFunctions
Definition: wdf.h:66
_In_ PWDFDEVICE_INIT DeviceInit
Definition: wdffdo.h:122
PWDF_DRIVER_GLOBALS WdfDriverGlobals
_In_ PWDFDEVICE_INIT _In_ PWDF_FDO_EVENT_CALLBACKS FdoEventCallbacks
Definition: wdffdo.h:373

Definition at line 373 of file wdffdo.h.

◆ Flags

Initial value:
{
_Must_inspect_result_ _In_ WDFDEVICE _In_opt_ WDFDEVICE _In_ ULONG Flags
Definition: wdffdo.h:589
#define WdfFunctions
Definition: wdf.h:66
_Must_inspect_result_ _In_ WDFDEVICE _In_opt_ WDFDEVICE PreviousChild
Definition: wdffdo.h:589
PWDF_DRIVER_GLOBALS WdfDriverGlobals
_Must_inspect_result_ _In_ WDFDEVICE Fdo
Definition: wdffdo.h:461

Definition at line 589 of file wdffdo.h.

◆ Interface

◆ InterfaceSpecificData

Initial value:
{
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE _In_ USHORT _In_ USHORT _In_opt_ PVOID InterfaceSpecificData
Definition: wdffdo.h:461
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE _In_ USHORT Size
Definition: wdffdo.h:461
#define WdfFunctions
Definition: wdf.h:66
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE Interface
Definition: wdffdo.h:461
PWDF_DRIVER_GLOBALS WdfDriverGlobals
_Must_inspect_result_ _In_ WDFDEVICE Fdo
Definition: wdffdo.h:461
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE _In_ USHORT _In_ USHORT Version
Definition: wdffdo.h:461
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID InterfaceType
Definition: wdffdo.h:461

Definition at line 461 of file wdffdo.h.

◆ InterfaceType

Initial value:
{
#define WdfFunctions
Definition: wdf.h:66
PWDF_DRIVER_GLOBALS WdfDriverGlobals
_In_ WDFIORESREQLIST RequirementsList
Definition: wdfresource.h:65
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID InterfaceType
Definition: wdffdo.h:461

Definition at line 461 of file wdffdo.h.

◆ Key

Initial value:
{
#define WdfFunctions
Definition: wdf.h:66
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ ULONG _In_ ACCESS_MASK DesiredAccess
Definition: wdffdo.h:147
_In_ PWDFDEVICE_INIT DeviceInit
Definition: wdffdo.h:122
PWDF_DRIVER_GLOBALS WdfDriverGlobals
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ ULONG _In_ ACCESS_MASK _In_opt_ PWDF_OBJECT_ATTRIBUTES KeyAttributes
Definition: wdffdo.h:147
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ ULONG DeviceInstanceKeyType
Definition: wdffdo.h:147
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ ULONG _In_ ACCESS_MASK _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFKEY * Key
Definition: wdffdo.h:147

Definition at line 147 of file wdffdo.h.

◆ KeyAttributes

◆ PFN_WDF_DEVICE_FILTER_RESOURCE_REQUIREMENTS

typedef EVT_WDF_DEVICE_FILTER_RESOURCE_REQUIREMENTS* PFN_WDF_DEVICE_FILTER_RESOURCE_REQUIREMENTS

Definition at line 66 of file wdffdo.h.

◆ PFN_WDF_DEVICE_REMOVE_ADDED_RESOURCES

typedef EVT_WDF_DEVICE_REMOVE_ADDED_RESOURCES* PFN_WDF_DEVICE_REMOVE_ADDED_RESOURCES

Definition at line 83 of file wdffdo.h.

◆ PoolType

◆ PreviousChild

Definition at line 589 of file wdffdo.h.

◆ PropertyBuffer

◆ PropertyMemory

Initial value:
{
#define WdfFunctions
Definition: wdf.h:66
_In_ PWDFDEVICE_INIT DeviceInit
Definition: wdffdo.h:122
PWDF_DRIVER_GLOBALS WdfDriverGlobals
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE PoolType
Definition: wdffdo.h:233
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE _In_opt_ PWDF_OBJECT_ATTRIBUTES PropertyMemoryAttributes
Definition: wdffdo.h:233
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ DEVICE_REGISTRY_PROPERTY DeviceProperty
Definition: wdffdo.h:190
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFMEMORY * PropertyMemory
Definition: wdffdo.h:233

Definition at line 233 of file wdffdo.h.

◆ PropertyMemoryAttributes

◆ PWDF_FDO_EVENT_CALLBACKS

◆ ResourcesRaw

typedef _In_ WDFCMRESLIST ResourcesRaw

Definition at line 78 of file wdffdo.h.

◆ ResourcesTranslated

typedef _In_ WDFCMRESLIST _In_ WDFCMRESLIST ResourcesTranslated

Definition at line 78 of file wdffdo.h.

◆ ResultLength

Initial value:
{
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ PWDF_DEVICE_PROPERTY_DATA _In_ ULONG _Out_ PVOID PropertyBuffer
Definition: wdffdo.h:278
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength
Definition: wdffdo.h:190
#define WdfFunctions
Definition: wdf.h:66
_In_ PWDFDEVICE_INIT DeviceInit
Definition: wdffdo.h:122
PWDF_DRIVER_GLOBALS WdfDriverGlobals
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ DEVICE_REGISTRY_PROPERTY DeviceProperty
Definition: wdffdo.h:190
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG _Out_ PULONG ResultLength
Definition: wdffdo.h:199

Definition at line 199 of file wdffdo.h.

◆ Size

◆ Type

Initial value:
{
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ PWDF_DEVICE_PROPERTY_DATA _In_ ULONG _Out_ PVOID PropertyBuffer
Definition: wdffdo.h:278
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength
Definition: wdffdo.h:190
#define WdfFunctions
Definition: wdf.h:66
_In_ PWDFDEVICE_INIT DeviceInit
Definition: wdffdo.h:122
PWDF_DRIVER_GLOBALS WdfDriverGlobals
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ DEVICE_REGISTRY_PROPERTY DeviceProperty
Definition: wdffdo.h:190
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ PWDF_DEVICE_PROPERTY_DATA _In_ ULONG _Out_ PVOID _Out_ PULONG _Out_ PDEVPROPTYPE Type
Definition: wdffdo.h:278
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG _Out_ PULONG ResultLength
Definition: wdffdo.h:199

Definition at line 278 of file wdffdo.h.

◆ Version

◆ WDF_FDO_EVENT_CALLBACKS

Function Documentation

◆ _Function_class_() [1/2]

WDF_EXTERN_C_START typedef _Function_class_ ( EVT_WDF_DEVICE_FILTER_RESOURCE_REQUIREMENTS  )

◆ _Function_class_() [2/2]

typedef _Function_class_ ( EVT_WDF_DEVICE_REMOVE_ADDED_RESOURCES  )

◆ _IRQL_requires_max_() [1/2]

typedef _IRQL_requires_max_ ( DISPATCH_LEVEL  )

Definition at line 124 of file wdffdo.h.

131 {
132  return ((PFN_WDFFDOINITWDMGETPHYSICALDEVICE) WdfFunctions[WdfFdoInitWdmGetPhysicalDeviceTableIndex])(WdfDriverGlobals, DeviceInit);
133 }
#define WdfFunctions
Definition: wdf.h:66
_In_ PWDFDEVICE_INIT DeviceInit
Definition: wdffdo.h:122
PWDF_DRIVER_GLOBALS WdfDriverGlobals

◆ _IRQL_requires_max_() [2/2]

_Must_inspect_result_ _IRQL_requires_max_ ( PASSIVE_LEVEL  )

Definition at line 405 of file wdffdo.h.

412 {
414 }
#define WdfFunctions
Definition: wdf.h:66
_In_ PWDFDEVICE_INIT DeviceInit
Definition: wdffdo.h:122
PWDF_DRIVER_GLOBALS WdfDriverGlobals

◆ _Out_writes_bytes_all_opt_()

◆ WDF_FDO_EVENT_CALLBACKS_INIT()

FORCEINLINE VOID WDF_FDO_EVENT_CALLBACKS_INIT ( _Out_ PWDF_FDO_EVENT_CALLBACKS  Callbacks)

Definition at line 101 of file wdffdo.h.

104 {
106  Callbacks->Size = sizeof(WDF_FDO_EVENT_CALLBACKS);
107 }
const struct winhelp_callbacks Callbacks
Definition: callback.c:161
struct _WDF_FDO_EVENT_CALLBACKS WDF_FDO_EVENT_CALLBACKS
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262

Variable Documentation

◆ IoResourceRequirementsList

Definition at line 64 of file wdffdo.h.