ReactOS  0.4.15-dev-3316-g067ca88
wdfdpc.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_DPC_CONFIG
 

Macros

#define WDF_EXTERN_C
 
#define WDF_EXTERN_C_START
 
#define WDF_EXTERN_C_END
 

Typedefs

typedef EVT_WDF_DPC * PFN_WDF_DPC
 
typedef struct _WDF_DPC_CONFIG WDF_DPC_CONFIG
 
typedef struct _WDF_DPC_CONFIGPWDF_DPC_CONFIG
 
typedef _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS(STDCALL *PFN_WDFDPCCREATE) (_In_ PWDF_DRIVER_GLOBALS DriverGlobals
 
typedef _Must_inspect_result_ _In_ PWDF_DPC_CONFIG Config
 
typedef _Must_inspect_result_ _In_ PWDF_DPC_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES Attributes
 
typedef _Must_inspect_result_ _In_ PWDF_DPC_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFDPC * Dpc
 
typedef _In_ WDFDPC _In_ BOOLEAN Wait
 

Functions

WDF_EXTERN_C_START typedef _Function_class_ (EVT_WDF_DPC) _IRQL_requires_same_ _IRQL_requires_(DISPATCH_LEVEL) VOID STDCALL EVT_WDF_DPC(_In_ WDFDPC Dpc)
 
FORCEINLINE VOID WDF_DPC_CONFIG_INIT (_Out_ PWDF_DPC_CONFIG Config, _In_ PFN_WDF_DPC EvtDpcFunc)
 
_Must_inspect_result_ _IRQL_requires_max_ (DISPATCH_LEVEL) FORCEINLINE NTSTATUS WdfDpcCreate(_In_ PWDF_DPC_CONFIG Config
 
typedef _IRQL_requires_max_ (HIGH_LEVEL) WDFAPI BOOLEAN(STDCALL *PFN_WDFDPCENQUEUE)(_In_ PWDF_DRIVER_GLOBALS DriverGlobals
 
typedef _When_ (Wait==__true, _IRQL_requires_max_(PASSIVE_LEVEL)) _When_(Wait
 

Macro Definition Documentation

◆ WDF_EXTERN_C

#define WDF_EXTERN_C

Definition at line 35 of file wdfdpc.h.

◆ WDF_EXTERN_C_END

#define WDF_EXTERN_C_END

Definition at line 37 of file wdfdpc.h.

◆ WDF_EXTERN_C_START

#define WDF_EXTERN_C_START

Definition at line 36 of file wdfdpc.h.

Typedef Documentation

◆ _IRQL_requires_max_

Definition at line 100 of file wdfdpc.h.

◆ Attributes

◆ Config

Definition at line 107 of file wdfdpc.h.

◆ Dpc

_In_ WDFDPC Dpc
Initial value:
{
_Must_inspect_result_ _In_ PWDF_DPC_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFDPC * Dpc
Definition: wdfdpc.h:107
#define WdfFunctions
Definition: wdf.h:66
_Must_inspect_result_ _In_ PWDF_DPC_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES Attributes
Definition: wdfdpc.h:107
_Must_inspect_result_ _In_ PWDF_DPC_CONFIG Config
Definition: wdfdpc.h:107
PWDF_DRIVER_GLOBALS WdfDriverGlobals

Definition at line 107 of file wdfdpc.h.

◆ PFN_WDF_DPC

typedef EVT_WDF_DPC* PFN_WDF_DPC

Definition at line 64 of file wdfdpc.h.

◆ PWDF_DPC_CONFIG

◆ Wait

_In_ WDFTIMER _In_ BOOLEAN Wait
Initial value:
{
_Must_inspect_result_ _In_ PWDF_DPC_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFDPC * Dpc
Definition: wdfdpc.h:107
_In_ WDFDPC _In_ BOOLEAN Wait
Definition: wdfdpc.h:167
#define WdfFunctions
Definition: wdf.h:66
PWDF_DRIVER_GLOBALS WdfDriverGlobals

Definition at line 167 of file wdfdpc.h.

◆ WDF_DPC_CONFIG

Function Documentation

◆ _Function_class_()

WDF_EXTERN_C_START typedef _Function_class_ ( EVT_WDF_DPC  )

◆ _IRQL_requires_max_() [1/2]

_Must_inspect_result_ _IRQL_requires_max_ ( DISPATCH_LEVEL  )

Definition at line 1705 of file hardware.c.

1709 {
1710  SendKey();
1712 }
_In_ PISAPNP_LOGICAL_DEVICE LogicalDevice
Definition: isapnp.h:399
static VOID SendKey(VOID)
Definition: hardware.c:332
static VOID Wake(_In_ UCHAR Csn)
Definition: hardware.c:149

◆ _IRQL_requires_max_() [2/2]

typedef _IRQL_requires_max_ ( HIGH_LEVEL  )

Definition at line 144 of file wdfdpc.h.

151 {
152  return ((PFN_WDFDPCENQUEUE) WdfFunctions[WdfDpcEnqueueTableIndex])(WdfDriverGlobals, Dpc);
153 }
_Must_inspect_result_ _In_ PWDF_DPC_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFDPC * Dpc
Definition: wdfdpc.h:107
#define WdfFunctions
Definition: wdf.h:66
PWDF_DRIVER_GLOBALS WdfDriverGlobals

◆ _When_()

typedef _When_ ( Wait  = = __true,
_IRQL_requires_max_(PASSIVE_LEVEL  
)

◆ WDF_DPC_CONFIG_INIT()

FORCEINLINE VOID WDF_DPC_CONFIG_INIT ( _Out_ PWDF_DPC_CONFIG  Config,
_In_ PFN_WDF_DPC  EvtDpcFunc 
)

Definition at line 83 of file wdfdpc.h.

87 {
89  Config->Size = sizeof(WDF_DPC_CONFIG);
90  Config->EvtDpcFunc = EvtDpcFunc;
91 
92  Config->AutomaticSerialization = TRUE;
93 }
#define TRUE
Definition: types.h:120
struct _WDF_DPC_CONFIG WDF_DPC_CONFIG
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_CHILD_LIST_CONFIG Config
Definition: wdfchildlist.h:474
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262