mirror of
https://github.com/reactos/reactos.git
synced 2025-04-04 20:50:41 +00:00
[KMDF] Make KMDF headers compatible with our SDK and compilers
This commit is contained in:
parent
40462c924e
commit
545df81502
32 changed files with 1134 additions and 979 deletions
|
@ -39,6 +39,12 @@ Revision History:
|
|||
#endif
|
||||
#endif
|
||||
|
||||
// reactos start
|
||||
#include <psdk/sal.h>
|
||||
#include <section_attribs.h>
|
||||
#define STDCALL __stdcall
|
||||
// reactos end
|
||||
|
||||
WDF_EXTERN_C_START
|
||||
|
||||
|
||||
|
@ -85,7 +91,7 @@ _Analysis_mode_(KMDF_INCLUDED)
|
|||
#include "wdfdriver.h"
|
||||
|
||||
// Objects
|
||||
#include "WdfQueryInterface.h"
|
||||
#include "wdfqueryinterface.h"
|
||||
#include "wdfmemory.h"
|
||||
#include "wdfchildlist.h"
|
||||
#include "wdffileobject.h"
|
||||
|
@ -107,15 +113,15 @@ _Analysis_mode_(KMDF_INCLUDED)
|
|||
#include "wdfpdo.h"
|
||||
#include "wdfcontrol.h"
|
||||
|
||||
#include "WdfWMI.h"
|
||||
#include "wdfwmi.h"
|
||||
|
||||
#include "wdfstring.h"
|
||||
#include "wdfregistry.h"
|
||||
|
||||
// Dma
|
||||
#include "wdfDmaEnabler.h"
|
||||
#include "wdfDmaTransaction.h"
|
||||
#include "wdfCommonBuffer.h"
|
||||
#include "wdfdmaenabler.h"
|
||||
#include "wdfdmatransaction.h"
|
||||
#include "wdfcommonbuffer.h"
|
||||
|
||||
#include "wdfbugcodes.h"
|
||||
#include "wdfroletypes.h"
|
||||
|
|
|
@ -78,8 +78,8 @@ typedef struct _WDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER {
|
|||
} WDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER,
|
||||
*PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER_INIT(
|
||||
_Out_ PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER Header,
|
||||
_In_ ULONG IdentificationDescriptionSize
|
||||
|
@ -100,8 +100,8 @@ typedef struct _WDF_CHILD_ADDRESS_DESCRIPTION_HEADER {
|
|||
} WDF_CHILD_ADDRESS_DESCRIPTION_HEADER,
|
||||
*PWDF_CHILD_ADDRESS_DESCRIPTION_HEADER;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_CHILD_ADDRESS_DESCRIPTION_HEADER_INIT(
|
||||
_Out_ PWDF_CHILD_ADDRESS_DESCRIPTION_HEADER Header,
|
||||
_In_ ULONG AddressDescriptionSize
|
||||
|
@ -116,6 +116,7 @@ _Function_class_(EVT_WDF_CHILD_LIST_CREATE_DEVICE)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_CHILD_LIST_CREATE_DEVICE(
|
||||
_In_
|
||||
WDFCHILDLIST ChildList,
|
||||
|
@ -132,6 +133,7 @@ _Function_class_(EVT_WDF_CHILD_LIST_SCAN_FOR_CHILDREN)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_CHILD_LIST_SCAN_FOR_CHILDREN(
|
||||
_In_
|
||||
WDFCHILDLIST ChildList
|
||||
|
@ -144,6 +146,7 @@ _Function_class_(EVT_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_COPY)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_COPY(
|
||||
_In_
|
||||
WDFCHILDLIST ChildList,
|
||||
|
@ -160,6 +163,7 @@ _Function_class_(EVT_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_DUPLICATE)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_DUPLICATE(
|
||||
_In_
|
||||
WDFCHILDLIST ChildList,
|
||||
|
@ -176,6 +180,7 @@ _Function_class_(EVT_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_COMPARE)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
EVT_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_COMPARE(
|
||||
_In_
|
||||
WDFCHILDLIST ChildList,
|
||||
|
@ -192,6 +197,7 @@ _Function_class_(EVT_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_CLEANUP)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_CLEANUP(
|
||||
_In_
|
||||
WDFCHILDLIST ChildList,
|
||||
|
@ -206,6 +212,7 @@ _Function_class_(EVT_WDF_CHILD_LIST_ADDRESS_DESCRIPTION_COPY)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_CHILD_LIST_ADDRESS_DESCRIPTION_COPY(
|
||||
_In_
|
||||
WDFCHILDLIST ChildList,
|
||||
|
@ -222,6 +229,7 @@ _Function_class_(EVT_WDF_CHILD_LIST_ADDRESS_DESCRIPTION_DUPLICATE)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_CHILD_LIST_ADDRESS_DESCRIPTION_DUPLICATE(
|
||||
_In_
|
||||
WDFCHILDLIST ChildList,
|
||||
|
@ -238,6 +246,7 @@ _Function_class_(EVT_WDF_CHILD_LIST_ADDRESS_DESCRIPTION_CLEANUP)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_CHILD_LIST_ADDRESS_DESCRIPTION_CLEANUP(
|
||||
_In_
|
||||
WDFCHILDLIST ChildList,
|
||||
|
@ -252,6 +261,7 @@ _Function_class_(EVT_WDF_CHILD_LIST_DEVICE_REENUMERATED)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
EVT_WDF_CHILD_LIST_DEVICE_REENUMERATED(
|
||||
_In_
|
||||
WDFCHILDLIST ChildList,
|
||||
|
@ -294,8 +304,8 @@ typedef struct _WDF_CHILD_RETRIEVE_INFO {
|
|||
|
||||
} WDF_CHILD_RETRIEVE_INFO, *PWDF_CHILD_RETRIEVE_INFO;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_CHILD_RETRIEVE_INFO_INIT(
|
||||
_Out_ PWDF_CHILD_RETRIEVE_INFO Info,
|
||||
_In_ PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER IdentificationDescription
|
||||
|
@ -400,8 +410,8 @@ typedef struct _WDF_CHILD_LIST_CONFIG {
|
|||
|
||||
} WDF_CHILD_LIST_CONFIG, *PWDF_CHILD_LIST_CONFIG;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_CHILD_LIST_CONFIG_INIT(
|
||||
_Out_ PWDF_CHILD_LIST_CONFIG Config,
|
||||
_In_ ULONG IdentificationDescriptionSize,
|
||||
|
@ -435,8 +445,8 @@ typedef struct _WDF_CHILD_LIST_ITERATOR {
|
|||
|
||||
} WDF_CHILD_LIST_ITERATOR, *PWDF_CHILD_LIST_ITERATOR;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_CHILD_LIST_ITERATOR_INIT(
|
||||
_Out_ PWDF_CHILD_LIST_ITERATOR Iterator,
|
||||
_In_ ULONG Flags
|
||||
|
@ -457,7 +467,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFCHILDLISTCREATE)(
|
||||
(STDCALL *PFN_WDFCHILDLISTCREATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -472,8 +482,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfChildListCreate(
|
||||
_In_
|
||||
WDFDEVICE Device,
|
||||
|
@ -495,7 +505,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDFDEVICE
|
||||
(*PFN_WDFCHILDLISTGETDEVICE)(
|
||||
(STDCALL *PFN_WDFCHILDLISTGETDEVICE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -503,8 +513,8 @@ WDFDEVICE
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFDEVICE
|
||||
FORCEINLINE
|
||||
WDFDEVICE
|
||||
WdfChildListGetDevice(
|
||||
_In_
|
||||
WDFCHILDLIST ChildList
|
||||
|
@ -521,7 +531,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDFDEVICE
|
||||
(*PFN_WDFCHILDLISTRETRIEVEPDO)(
|
||||
(STDCALL *PFN_WDFCHILDLISTRETRIEVEPDO)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -532,8 +542,8 @@ WDFDEVICE
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFDEVICE
|
||||
FORCEINLINE
|
||||
WDFDEVICE
|
||||
WdfChildListRetrievePdo(
|
||||
_In_
|
||||
WDFCHILDLIST ChildList,
|
||||
|
@ -552,7 +562,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFCHILDLISTRETRIEVEADDRESSDESCRIPTION)(
|
||||
(STDCALL *PFN_WDFCHILDLISTRETRIEVEADDRESSDESCRIPTION)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -565,8 +575,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfChildListRetrieveAddressDescription(
|
||||
_In_
|
||||
WDFCHILDLIST ChildList,
|
||||
|
@ -586,7 +596,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFCHILDLISTBEGINSCAN)(
|
||||
(STDCALL *PFN_WDFCHILDLISTBEGINSCAN)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -594,8 +604,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfChildListBeginScan(
|
||||
_In_
|
||||
WDFCHILDLIST ChildList
|
||||
|
@ -611,7 +621,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFCHILDLISTENDSCAN)(
|
||||
(STDCALL *PFN_WDFCHILDLISTENDSCAN)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -619,8 +629,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfChildListEndScan(
|
||||
_In_
|
||||
WDFCHILDLIST ChildList
|
||||
|
@ -636,7 +646,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFCHILDLISTBEGINITERATION)(
|
||||
(STDCALL *PFN_WDFCHILDLISTBEGINITERATION)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -646,8 +656,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfChildListBeginIteration(
|
||||
_In_
|
||||
WDFCHILDLIST ChildList,
|
||||
|
@ -666,7 +676,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFCHILDLISTRETRIEVENEXTDEVICE)(
|
||||
(STDCALL *PFN_WDFCHILDLISTRETRIEVENEXTDEVICE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -681,8 +691,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfChildListRetrieveNextDevice(
|
||||
_In_
|
||||
WDFCHILDLIST ChildList,
|
||||
|
@ -704,7 +714,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFCHILDLISTENDITERATION)(
|
||||
(STDCALL *PFN_WDFCHILDLISTENDITERATION)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -714,8 +724,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfChildListEndIteration(
|
||||
_In_
|
||||
WDFCHILDLIST ChildList,
|
||||
|
@ -734,7 +744,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFCHILDLISTADDORUPDATECHILDDESCRIPTIONASPRESENT)(
|
||||
(STDCALL *PFN_WDFCHILDLISTADDORUPDATECHILDDESCRIPTIONASPRESENT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -747,8 +757,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfChildListAddOrUpdateChildDescriptionAsPresent(
|
||||
_In_
|
||||
WDFCHILDLIST ChildList,
|
||||
|
@ -769,7 +779,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFCHILDLISTUPDATECHILDDESCRIPTIONASMISSING)(
|
||||
(STDCALL *PFN_WDFCHILDLISTUPDATECHILDDESCRIPTIONASMISSING)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -780,8 +790,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfChildListUpdateChildDescriptionAsMissing(
|
||||
_In_
|
||||
WDFCHILDLIST ChildList,
|
||||
|
@ -799,7 +809,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFCHILDLISTUPDATEALLCHILDDESCRIPTIONSASPRESENT)(
|
||||
(STDCALL *PFN_WDFCHILDLISTUPDATEALLCHILDDESCRIPTIONSASPRESENT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -807,8 +817,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfChildListUpdateAllChildDescriptionsAsPresent(
|
||||
_In_
|
||||
WDFCHILDLIST ChildList
|
||||
|
@ -824,7 +834,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
BOOLEAN
|
||||
(*PFN_WDFCHILDLISTREQUESTCHILDEJECT)(
|
||||
(STDCALL *PFN_WDFCHILDLISTREQUESTCHILDEJECT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -834,8 +844,8 @@ BOOLEAN
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WdfChildListRequestChildEject(
|
||||
_In_
|
||||
WDFCHILDLIST ChildList,
|
||||
|
|
|
@ -57,7 +57,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFCOLLECTIONCREATE)(
|
||||
(STDCALL *PFN_WDFCOLLECTIONCREATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_opt_
|
||||
|
@ -68,8 +68,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfCollectionCreate(
|
||||
_In_opt_
|
||||
PWDF_OBJECT_ATTRIBUTES CollectionAttributes,
|
||||
|
@ -87,7 +87,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
ULONG
|
||||
(*PFN_WDFCOLLECTIONGETCOUNT)(
|
||||
(STDCALL *PFN_WDFCOLLECTIONGETCOUNT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -95,8 +95,8 @@ ULONG
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
ULONG
|
||||
FORCEINLINE
|
||||
ULONG
|
||||
WdfCollectionGetCount(
|
||||
_In_
|
||||
WDFCOLLECTION Collection
|
||||
|
@ -113,7 +113,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFCOLLECTIONADD)(
|
||||
(STDCALL *PFN_WDFCOLLECTIONADD)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -124,8 +124,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfCollectionAdd(
|
||||
_In_
|
||||
WDFCOLLECTION Collection,
|
||||
|
@ -143,7 +143,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFCOLLECTIONREMOVE)(
|
||||
(STDCALL *PFN_WDFCOLLECTIONREMOVE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -153,8 +153,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfCollectionRemove(
|
||||
_In_
|
||||
WDFCOLLECTION Collection,
|
||||
|
@ -172,7 +172,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFCOLLECTIONREMOVEITEM)(
|
||||
(STDCALL *PFN_WDFCOLLECTIONREMOVEITEM)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -182,8 +182,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfCollectionRemoveItem(
|
||||
_In_
|
||||
WDFCOLLECTION Collection,
|
||||
|
@ -201,7 +201,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDFOBJECT
|
||||
(*PFN_WDFCOLLECTIONGETITEM)(
|
||||
(STDCALL *PFN_WDFCOLLECTIONGETITEM)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -211,8 +211,8 @@ WDFOBJECT
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFOBJECT
|
||||
FORCEINLINE
|
||||
WDFOBJECT
|
||||
WdfCollectionGetItem(
|
||||
_In_
|
||||
WDFCOLLECTION Collection,
|
||||
|
@ -230,7 +230,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDFOBJECT
|
||||
(*PFN_WDFCOLLECTIONGETFIRSTITEM)(
|
||||
(STDCALL *PFN_WDFCOLLECTIONGETFIRSTITEM)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -238,8 +238,8 @@ WDFOBJECT
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFOBJECT
|
||||
FORCEINLINE
|
||||
WDFOBJECT
|
||||
WdfCollectionGetFirstItem(
|
||||
_In_
|
||||
WDFCOLLECTION Collection
|
||||
|
@ -255,7 +255,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDFOBJECT
|
||||
(*PFN_WDFCOLLECTIONGETLASTITEM)(
|
||||
(STDCALL *PFN_WDFCOLLECTIONGETLASTITEM)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -263,8 +263,8 @@ WDFOBJECT
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFOBJECT
|
||||
FORCEINLINE
|
||||
WDFOBJECT
|
||||
WdfCollectionGetLastItem(
|
||||
_In_
|
||||
WDFCOLLECTION Collection
|
||||
|
|
|
@ -64,8 +64,8 @@ typedef struct _WDF_COMMON_BUFFER_CONFIG {
|
|||
|
||||
} WDF_COMMON_BUFFER_CONFIG, *PWDF_COMMON_BUFFER_CONFIG;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_COMMON_BUFFER_CONFIG_INIT(
|
||||
_Out_ PWDF_COMMON_BUFFER_CONFIG Config,
|
||||
_In_ ULONG AlignmentRequirement
|
||||
|
@ -85,7 +85,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFCOMMONBUFFERCREATE)(
|
||||
(STDCALL *PFN_WDFCOMMONBUFFERCREATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -101,8 +101,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfCommonBufferCreate(
|
||||
_In_
|
||||
WDFDMAENABLER DmaEnabler,
|
||||
|
@ -126,7 +126,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFCOMMONBUFFERCREATEWITHCONFIG)(
|
||||
(STDCALL *PFN_WDFCOMMONBUFFERCREATEWITHCONFIG)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -144,8 +144,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfCommonBufferCreateWithConfig(
|
||||
_In_
|
||||
WDFDMAENABLER DmaEnabler,
|
||||
|
@ -170,7 +170,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
PVOID
|
||||
(*PFN_WDFCOMMONBUFFERGETALIGNEDVIRTUALADDRESS)(
|
||||
(STDCALL *PFN_WDFCOMMONBUFFERGETALIGNEDVIRTUALADDRESS)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -178,8 +178,8 @@ PVOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
PVOID
|
||||
FORCEINLINE
|
||||
PVOID
|
||||
WdfCommonBufferGetAlignedVirtualAddress(
|
||||
_In_
|
||||
WDFCOMMONBUFFER CommonBuffer
|
||||
|
@ -195,7 +195,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
PHYSICAL_ADDRESS
|
||||
(*PFN_WDFCOMMONBUFFERGETALIGNEDLOGICALADDRESS)(
|
||||
(STDCALL *PFN_WDFCOMMONBUFFERGETALIGNEDLOGICALADDRESS)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -203,8 +203,8 @@ PHYSICAL_ADDRESS
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
PHYSICAL_ADDRESS
|
||||
FORCEINLINE
|
||||
PHYSICAL_ADDRESS
|
||||
WdfCommonBufferGetAlignedLogicalAddress(
|
||||
_In_
|
||||
WDFCOMMONBUFFER CommonBuffer
|
||||
|
@ -220,7 +220,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
size_t
|
||||
(*PFN_WDFCOMMONBUFFERGETLENGTH)(
|
||||
(STDCALL *PFN_WDFCOMMONBUFFERGETLENGTH)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -228,8 +228,8 @@ size_t
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
size_t
|
||||
FORCEINLINE
|
||||
size_t
|
||||
WdfCommonBufferGetLength(
|
||||
_In_
|
||||
WDFCOMMONBUFFER CommonBuffer
|
||||
|
|
|
@ -53,6 +53,7 @@ _Function_class_(EVT_WDF_DEVICE_SHUTDOWN_NOTIFICATION)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_DEVICE_SHUTDOWN_NOTIFICATION(
|
||||
_In_
|
||||
WDFDEVICE Device
|
||||
|
@ -75,7 +76,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
PWDFDEVICE_INIT
|
||||
(*PFN_WDFCONTROLDEVICEINITALLOCATE)(
|
||||
(STDCALL *PFN_WDFCONTROLDEVICEINITALLOCATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -86,8 +87,8 @@ PWDFDEVICE_INIT
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
PWDFDEVICE_INIT
|
||||
FORCEINLINE
|
||||
PWDFDEVICE_INIT
|
||||
WdfControlDeviceInitAllocate(
|
||||
_In_
|
||||
WDFDRIVER Driver,
|
||||
|
@ -105,7 +106,7 @@ typedef
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFCONTROLDEVICEINITSETSHUTDOWNNOTIFICATION)(
|
||||
(STDCALL *PFN_WDFCONTROLDEVICEINITSETSHUTDOWNNOTIFICATION)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -117,8 +118,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfControlDeviceInitSetShutdownNotification(
|
||||
_In_
|
||||
PWDFDEVICE_INIT DeviceInit,
|
||||
|
@ -138,7 +139,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFCONTROLFINISHINITIALIZING)(
|
||||
(STDCALL *PFN_WDFCONTROLFINISHINITIALIZING)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -146,8 +147,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfControlFinishInitializing(
|
||||
_In_
|
||||
WDFDEVICE Device
|
||||
|
|
|
@ -57,8 +57,8 @@ WDF_EXTERN_C_START
|
|||
#define WDF_TIMEOUT_TO_SEC ((LONGLONG) 1 * 10 * 1000 * 1000)
|
||||
#define WDF_TIMEOUT_TO_MS ((LONGLONG) 1 * 10 * 1000)
|
||||
#define WDF_TIMEOUT_TO_US ((LONGLONG) 1 * 10)
|
||||
LONGLONG
|
||||
FORCEINLINE
|
||||
LONGLONG
|
||||
WDF_REL_TIMEOUT_IN_SEC(
|
||||
_In_ ULONGLONG Time
|
||||
)
|
||||
|
@ -66,8 +66,8 @@ WDF_REL_TIMEOUT_IN_SEC(
|
|||
return Time * -1 * WDF_TIMEOUT_TO_SEC;
|
||||
}
|
||||
|
||||
LONGLONG
|
||||
FORCEINLINE
|
||||
LONGLONG
|
||||
WDF_ABS_TIMEOUT_IN_SEC(
|
||||
_In_ ULONGLONG Time
|
||||
)
|
||||
|
@ -75,8 +75,8 @@ WDF_ABS_TIMEOUT_IN_SEC(
|
|||
return Time * 1 * WDF_TIMEOUT_TO_SEC;
|
||||
}
|
||||
|
||||
LONGLONG
|
||||
FORCEINLINE
|
||||
LONGLONG
|
||||
WDF_REL_TIMEOUT_IN_MS(
|
||||
_In_ ULONGLONG Time
|
||||
)
|
||||
|
@ -84,8 +84,8 @@ WDF_REL_TIMEOUT_IN_MS(
|
|||
return Time * -1 * WDF_TIMEOUT_TO_MS;
|
||||
}
|
||||
|
||||
LONGLONG
|
||||
FORCEINLINE
|
||||
LONGLONG
|
||||
WDF_ABS_TIMEOUT_IN_MS(
|
||||
_In_ ULONGLONG Time
|
||||
)
|
||||
|
@ -93,8 +93,8 @@ WDF_ABS_TIMEOUT_IN_MS(
|
|||
return Time * 1 * WDF_TIMEOUT_TO_MS;
|
||||
}
|
||||
|
||||
LONGLONG
|
||||
FORCEINLINE
|
||||
LONGLONG
|
||||
WDF_REL_TIMEOUT_IN_US(
|
||||
_In_ ULONGLONG Time
|
||||
)
|
||||
|
@ -102,8 +102,8 @@ WDF_REL_TIMEOUT_IN_US(
|
|||
return Time * -1 * WDF_TIMEOUT_TO_US;
|
||||
}
|
||||
|
||||
LONGLONG
|
||||
FORCEINLINE
|
||||
LONGLONG
|
||||
WDF_ABS_TIMEOUT_IN_US(
|
||||
_In_ ULONGLONG Time
|
||||
)
|
||||
|
@ -114,8 +114,8 @@ WDF_ABS_TIMEOUT_IN_US(
|
|||
//
|
||||
// Rounding functions
|
||||
//
|
||||
size_t
|
||||
FORCEINLINE
|
||||
size_t
|
||||
WDF_ALIGN_SIZE_DOWN(
|
||||
_In_ size_t Length,
|
||||
_In_ size_t AlignTo
|
||||
|
@ -124,8 +124,8 @@ WDF_ALIGN_SIZE_DOWN(
|
|||
return Length & ~(AlignTo - 1);
|
||||
}
|
||||
|
||||
size_t
|
||||
FORCEINLINE
|
||||
size_t
|
||||
WDF_ALIGN_SIZE_UP(
|
||||
_In_ size_t Length,
|
||||
_In_ size_t AlignTo
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -76,6 +76,7 @@ _Function_class_(EVT_WDF_DMA_ENABLER_FILL)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_DMA_ENABLER_FILL(
|
||||
_In_
|
||||
WDFDMAENABLER DmaEnabler
|
||||
|
@ -88,6 +89,7 @@ _Function_class_(EVT_WDF_DMA_ENABLER_FLUSH)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_DMA_ENABLER_FLUSH(
|
||||
_In_
|
||||
WDFDMAENABLER DmaEnabler
|
||||
|
@ -100,6 +102,7 @@ _Function_class_(EVT_WDF_DMA_ENABLER_ENABLE)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_DMA_ENABLER_ENABLE(
|
||||
_In_
|
||||
WDFDMAENABLER DmaEnabler
|
||||
|
@ -112,6 +115,7 @@ _Function_class_(EVT_WDF_DMA_ENABLER_DISABLE)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_DMA_ENABLER_DISABLE(
|
||||
_In_
|
||||
WDFDMAENABLER DmaEnabler
|
||||
|
@ -124,6 +128,7 @@ _Function_class_(EVT_WDF_DMA_ENABLER_SELFMANAGED_IO_START)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_DMA_ENABLER_SELFMANAGED_IO_START(
|
||||
_In_
|
||||
WDFDMAENABLER DmaEnabler
|
||||
|
@ -136,6 +141,7 @@ _Function_class_(EVT_WDF_DMA_ENABLER_SELFMANAGED_IO_STOP)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_DMA_ENABLER_SELFMANAGED_IO_STOP(
|
||||
_In_
|
||||
WDFDMAENABLER DmaEnabler
|
||||
|
@ -213,8 +219,8 @@ typedef struct _WDF_DMA_ENABLER_CONFIG {
|
|||
ULONG Flags;
|
||||
} WDF_DMA_ENABLER_CONFIG, *PWDF_DMA_ENABLER_CONFIG;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_DMA_ENABLER_CONFIG_INIT(
|
||||
_Out_ PWDF_DMA_ENABLER_CONFIG Config,
|
||||
_In_ WDF_DMA_PROFILE Profile,
|
||||
|
@ -268,8 +274,8 @@ typedef struct _WDF_DMA_SYSTEM_PROFILE_CONFIG {
|
|||
|
||||
} WDF_DMA_SYSTEM_PROFILE_CONFIG, *PWDF_DMA_SYSTEM_PROFILE_CONFIG;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_DMA_SYSTEM_PROFILE_CONFIG_INIT(
|
||||
_Out_ PWDF_DMA_SYSTEM_PROFILE_CONFIG DmaConfig,
|
||||
_In_ PHYSICAL_ADDRESS Address,
|
||||
|
@ -293,7 +299,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFDMAENABLERCREATE)(
|
||||
(STDCALL *PFN_WDFDMAENABLERCREATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -308,8 +314,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfDmaEnablerCreate(
|
||||
_In_
|
||||
WDFDEVICE Device,
|
||||
|
@ -332,7 +338,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFDMAENABLERCONFIGURESYSTEMPROFILE)(
|
||||
(STDCALL *PFN_WDFDMAENABLERCONFIGURESYSTEMPROFILE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -345,8 +351,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfDmaEnablerConfigureSystemProfile(
|
||||
_In_
|
||||
WDFDMAENABLER DmaEnabler,
|
||||
|
@ -366,7 +372,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
size_t
|
||||
(*PFN_WDFDMAENABLERGETMAXIMUMLENGTH)(
|
||||
(STDCALL *PFN_WDFDMAENABLERGETMAXIMUMLENGTH)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -374,8 +380,8 @@ size_t
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
size_t
|
||||
FORCEINLINE
|
||||
size_t
|
||||
WdfDmaEnablerGetMaximumLength(
|
||||
_In_
|
||||
WDFDMAENABLER DmaEnabler
|
||||
|
@ -391,7 +397,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
size_t
|
||||
(*PFN_WDFDMAENABLERGETMAXIMUMSCATTERGATHERELEMENTS)(
|
||||
(STDCALL *PFN_WDFDMAENABLERGETMAXIMUMSCATTERGATHERELEMENTS)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -399,8 +405,8 @@ size_t
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
size_t
|
||||
FORCEINLINE
|
||||
size_t
|
||||
WdfDmaEnablerGetMaximumScatterGatherElements(
|
||||
_In_
|
||||
WDFDMAENABLER DmaEnabler
|
||||
|
@ -416,7 +422,7 @@ typedef
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFDMAENABLERSETMAXIMUMSCATTERGATHERELEMENTS)(
|
||||
(STDCALL *PFN_WDFDMAENABLERSETMAXIMUMSCATTERGATHERELEMENTS)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -427,8 +433,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfDmaEnablerSetMaximumScatterGatherElements(
|
||||
_In_
|
||||
WDFDMAENABLER DmaEnabler,
|
||||
|
@ -447,7 +453,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
size_t
|
||||
(*PFN_WDFDMAENABLERGETFRAGMENTLENGTH)(
|
||||
(STDCALL *PFN_WDFDMAENABLERGETFRAGMENTLENGTH)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -457,8 +463,8 @@ size_t
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
size_t
|
||||
FORCEINLINE
|
||||
size_t
|
||||
WdfDmaEnablerGetFragmentLength(
|
||||
_In_
|
||||
WDFDMAENABLER DmaEnabler,
|
||||
|
@ -476,7 +482,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
PDMA_ADAPTER
|
||||
(*PFN_WDFDMAENABLERWDMGETDMAADAPTER)(
|
||||
(STDCALL *PFN_WDFDMAENABLERWDMGETDMAADAPTER)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -486,8 +492,8 @@ PDMA_ADAPTER
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
PDMA_ADAPTER
|
||||
FORCEINLINE
|
||||
PDMA_ADAPTER
|
||||
WdfDmaEnablerWdmGetDmaAdapter(
|
||||
_In_
|
||||
WDFDMAENABLER DmaEnabler,
|
||||
|
|
|
@ -56,6 +56,7 @@ _Function_class_(EVT_WDF_PROGRAM_DMA)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_(DISPATCH_LEVEL)
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
EVT_WDF_PROGRAM_DMA(
|
||||
_In_
|
||||
WDFDMATRANSACTION Transaction,
|
||||
|
@ -76,6 +77,7 @@ _Function_class_(EVT_WDF_DMA_TRANSACTION_CONFIGURE_DMA_CHANNEL)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_(DISPATCH_LEVEL)
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
EVT_WDF_DMA_TRANSACTION_CONFIGURE_DMA_CHANNEL(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction,
|
||||
|
@ -98,6 +100,7 @@ _Function_class_(EVT_WDF_DMA_TRANSACTION_DMA_TRANSFER_COMPLETE)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_DMA_TRANSACTION_DMA_TRANSFER_COMPLETE(
|
||||
_In_
|
||||
WDFDMATRANSACTION Transaction,
|
||||
|
@ -118,6 +121,7 @@ _Function_class_(EVT_WDF_RESERVE_DMA)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_RESERVE_DMA(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction,
|
||||
|
@ -135,7 +139,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFDMATRANSACTIONCREATE)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONCREATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -148,8 +152,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfDmaTransactionCreate(
|
||||
_In_
|
||||
WDFDMAENABLER DmaEnabler,
|
||||
|
@ -170,7 +174,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFDMATRANSACTIONINITIALIZE)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONINITIALIZE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -190,8 +194,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfDmaTransactionInitialize(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction,
|
||||
|
@ -219,7 +223,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFDMATRANSACTIONINITIALIZEUSINGOFFSET)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONINITIALIZEUSINGOFFSET)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -239,8 +243,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfDmaTransactionInitializeUsingOffset(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction,
|
||||
|
@ -268,7 +272,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFDMATRANSACTIONINITIALIZEUSINGREQUEST)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONINITIALIZEUSINGREQUEST)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -283,8 +287,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfDmaTransactionInitializeUsingRequest(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction,
|
||||
|
@ -307,7 +311,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFDMATRANSACTIONEXECUTE)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONEXECUTE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -318,8 +322,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfDmaTransactionExecute(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction,
|
||||
|
@ -338,7 +342,7 @@ _Success_(TRUE)
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFDMATRANSACTIONRELEASE)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONRELEASE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -347,8 +351,8 @@ NTSTATUS
|
|||
|
||||
_Success_(TRUE)
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfDmaTransactionRelease(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction
|
||||
|
@ -364,7 +368,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
BOOLEAN
|
||||
(*PFN_WDFDMATRANSACTIONDMACOMPLETED)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONDMACOMPLETED)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -374,8 +378,8 @@ BOOLEAN
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WdfDmaTransactionDmaCompleted(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction,
|
||||
|
@ -393,7 +397,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
BOOLEAN
|
||||
(*PFN_WDFDMATRANSACTIONDMACOMPLETEDWITHLENGTH)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONDMACOMPLETEDWITHLENGTH)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -405,8 +409,8 @@ BOOLEAN
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WdfDmaTransactionDmaCompletedWithLength(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction,
|
||||
|
@ -426,7 +430,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
BOOLEAN
|
||||
(*PFN_WDFDMATRANSACTIONDMACOMPLETEDFINAL)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONDMACOMPLETEDFINAL)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -438,8 +442,8 @@ BOOLEAN
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WdfDmaTransactionDmaCompletedFinal(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction,
|
||||
|
@ -459,7 +463,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
size_t
|
||||
(*PFN_WDFDMATRANSACTIONGETBYTESTRANSFERRED)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONGETBYTESTRANSFERRED)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -467,8 +471,8 @@ size_t
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
size_t
|
||||
FORCEINLINE
|
||||
size_t
|
||||
WdfDmaTransactionGetBytesTransferred(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction
|
||||
|
@ -484,7 +488,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFDMATRANSACTIONSETMAXIMUMLENGTH)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONSETMAXIMUMLENGTH)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -494,8 +498,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfDmaTransactionSetMaximumLength(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction,
|
||||
|
@ -513,7 +517,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDFREQUEST
|
||||
(*PFN_WDFDMATRANSACTIONGETREQUEST)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONGETREQUEST)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -521,8 +525,8 @@ WDFREQUEST
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFREQUEST
|
||||
FORCEINLINE
|
||||
WDFREQUEST
|
||||
WdfDmaTransactionGetRequest(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction
|
||||
|
@ -538,7 +542,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
size_t
|
||||
(*PFN_WDFDMATRANSACTIONGETCURRENTDMATRANSFERLENGTH)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONGETCURRENTDMATRANSFERLENGTH)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -546,8 +550,8 @@ size_t
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
size_t
|
||||
FORCEINLINE
|
||||
size_t
|
||||
WdfDmaTransactionGetCurrentDmaTransferLength(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction
|
||||
|
@ -563,7 +567,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDFDEVICE
|
||||
(*PFN_WDFDMATRANSACTIONGETDEVICE)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONGETDEVICE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -571,8 +575,8 @@ WDFDEVICE
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFDEVICE
|
||||
FORCEINLINE
|
||||
WDFDEVICE
|
||||
WdfDmaTransactionGetDevice(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction
|
||||
|
@ -588,7 +592,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFDMATRANSACTIONGETTRANSFERINFO)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONGETTRANSFERINFO)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -600,8 +604,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfDmaTransactionGetTransferInfo(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction,
|
||||
|
@ -621,7 +625,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFDMATRANSACTIONSETCHANNELCONFIGURATIONCALLBACK)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONSETCHANNELCONFIGURATIONCALLBACK)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -633,8 +637,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfDmaTransactionSetChannelConfigurationCallback(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction,
|
||||
|
@ -654,7 +658,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFDMATRANSACTIONSETTRANSFERCOMPLETECALLBACK)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONSETTRANSFERCOMPLETECALLBACK)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -666,8 +670,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfDmaTransactionSetTransferCompleteCallback(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction,
|
||||
|
@ -687,7 +691,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFDMATRANSACTIONSETIMMEDIATEEXECUTION)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONSETIMMEDIATEEXECUTION)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -697,8 +701,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfDmaTransactionSetImmediateExecution(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction,
|
||||
|
@ -716,7 +720,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFDMATRANSACTIONALLOCATERESOURCES)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONALLOCATERESOURCES)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -732,8 +736,8 @@ NTSTATUS
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfDmaTransactionAllocateResources(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction,
|
||||
|
@ -757,7 +761,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFDMATRANSACTIONSETDEVICEADDRESSOFFSET)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONSETDEVICEADDRESSOFFSET)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -767,8 +771,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfDmaTransactionSetDeviceAddressOffset(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction,
|
||||
|
@ -786,7 +790,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFDMATRANSACTIONFREERESOURCES)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONFREERESOURCES)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -794,8 +798,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfDmaTransactionFreeResources(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction
|
||||
|
@ -811,7 +815,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
BOOLEAN
|
||||
(*PFN_WDFDMATRANSACTIONCANCEL)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONCANCEL)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -819,8 +823,8 @@ BOOLEAN
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WdfDmaTransactionCancel(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction
|
||||
|
@ -836,7 +840,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
PVOID
|
||||
(*PFN_WDFDMATRANSACTIONWDMGETTRANSFERCONTEXT)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONWDMGETTRANSFERCONTEXT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -844,8 +848,8 @@ PVOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
PVOID
|
||||
FORCEINLINE
|
||||
PVOID
|
||||
WdfDmaTransactionWdmGetTransferContext(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction
|
||||
|
@ -861,7 +865,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFDMATRANSACTIONSTOPSYSTEMTRANSFER)(
|
||||
(STDCALL *PFN_WDFDMATRANSACTIONSTOPSYSTEMTRANSFER)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -869,8 +873,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfDmaTransactionStopSystemTransfer(
|
||||
_In_
|
||||
WDFDMATRANSACTION DmaTransaction
|
||||
|
|
|
@ -55,6 +55,7 @@ _Function_class_(EVT_WDF_DPC)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_DPC(
|
||||
_In_
|
||||
WDFDPC Dpc
|
||||
|
@ -77,8 +78,8 @@ typedef struct _WDF_DPC_CONFIG {
|
|||
|
||||
} WDF_DPC_CONFIG, *PWDF_DPC_CONFIG;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_DPC_CONFIG_INIT(
|
||||
_Out_ PWDF_DPC_CONFIG Config,
|
||||
_In_ PFN_WDF_DPC EvtDpcFunc
|
||||
|
@ -99,7 +100,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFDPCCREATE)(
|
||||
(STDCALL *PFN_WDFDPCCREATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -112,8 +113,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfDpcCreate(
|
||||
_In_
|
||||
PWDF_DPC_CONFIG Config,
|
||||
|
@ -133,7 +134,7 @@ typedef
|
|||
_IRQL_requires_max_(HIGH_LEVEL)
|
||||
WDFAPI
|
||||
BOOLEAN
|
||||
(*PFN_WDFDPCENQUEUE)(
|
||||
(STDCALL *PFN_WDFDPCENQUEUE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -141,8 +142,8 @@ BOOLEAN
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(HIGH_LEVEL)
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WdfDpcEnqueue(
|
||||
_In_
|
||||
WDFDPC Dpc
|
||||
|
@ -159,7 +160,7 @@ _When_(Wait == __true, _IRQL_requires_max_(PASSIVE_LEVEL))
|
|||
_When_(Wait == __false, _IRQL_requires_max_(HIGH_LEVEL))
|
||||
WDFAPI
|
||||
BOOLEAN
|
||||
(*PFN_WDFDPCCANCEL)(
|
||||
(STDCALL *PFN_WDFDPCCANCEL)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -170,8 +171,8 @@ BOOLEAN
|
|||
|
||||
_When_(Wait == __true, _IRQL_requires_max_(PASSIVE_LEVEL))
|
||||
_When_(Wait == __false, _IRQL_requires_max_(HIGH_LEVEL))
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WdfDpcCancel(
|
||||
_In_
|
||||
WDFDPC Dpc,
|
||||
|
@ -189,7 +190,7 @@ typedef
|
|||
_IRQL_requires_max_(HIGH_LEVEL)
|
||||
WDFAPI
|
||||
WDFOBJECT
|
||||
(*PFN_WDFDPCGETPARENTOBJECT)(
|
||||
(STDCALL *PFN_WDFDPCGETPARENTOBJECT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -197,8 +198,8 @@ WDFOBJECT
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(HIGH_LEVEL)
|
||||
WDFOBJECT
|
||||
FORCEINLINE
|
||||
WDFOBJECT
|
||||
WdfDpcGetParentObject(
|
||||
_In_
|
||||
WDFDPC Dpc
|
||||
|
@ -214,7 +215,7 @@ typedef
|
|||
_IRQL_requires_max_(HIGH_LEVEL)
|
||||
WDFAPI
|
||||
PKDPC
|
||||
(*PFN_WDFDPCWDMGETDPC)(
|
||||
(STDCALL *PFN_WDFDPCWDMGETDPC)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -222,8 +223,8 @@ PKDPC
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(HIGH_LEVEL)
|
||||
PKDPC
|
||||
FORCEINLINE
|
||||
PKDPC
|
||||
WdfDpcWdmGetDpc(
|
||||
_In_
|
||||
WDFDPC Dpc
|
||||
|
|
|
@ -67,6 +67,7 @@ _Function_class_(EVT_WDF_DRIVER_DEVICE_ADD)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_DRIVER_DEVICE_ADD(
|
||||
_In_
|
||||
WDFDRIVER Driver,
|
||||
|
@ -81,6 +82,7 @@ _Function_class_(EVT_WDF_DRIVER_UNLOAD)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_DRIVER_UNLOAD(
|
||||
_In_
|
||||
WDFDRIVER Driver
|
||||
|
@ -97,6 +99,7 @@ _Function_class_(EVT_WDF_TRACE_CALLBACK)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_TRACE_CALLBACK(
|
||||
_In_
|
||||
UCHAR minorFunction,
|
||||
|
@ -140,8 +143,8 @@ typedef struct _WDF_DRIVER_CONFIG {
|
|||
|
||||
} WDF_DRIVER_CONFIG, *PWDF_DRIVER_CONFIG;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_DRIVER_CONFIG_INIT(
|
||||
_Out_ PWDF_DRIVER_CONFIG Config,
|
||||
_In_opt_ PFN_WDF_DRIVER_DEVICE_ADD EvtDriverDeviceAdd
|
||||
|
@ -171,8 +174,8 @@ typedef struct _WDF_DRIVER_VERSION_AVAILABLE_PARAMS {
|
|||
|
||||
} WDF_DRIVER_VERSION_AVAILABLE_PARAMS, *PWDF_DRIVER_VERSION_AVAILABLE_PARAMS;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_DRIVER_VERSION_AVAILABLE_PARAMS_INIT(
|
||||
_Out_ PWDF_DRIVER_VERSION_AVAILABLE_PARAMS Params,
|
||||
_In_ ULONG MajorVersion,
|
||||
|
@ -186,8 +189,8 @@ WDF_DRIVER_VERSION_AVAILABLE_PARAMS_INIT(
|
|||
Params->MinorVersion = MinorVersion;
|
||||
}
|
||||
|
||||
WDFDRIVER
|
||||
FORCEINLINE
|
||||
WDFDRIVER
|
||||
WdfGetDriver(
|
||||
VOID
|
||||
)
|
||||
|
@ -203,7 +206,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFDRIVERCREATE)(
|
||||
(STDCALL *PFN_WDFDRIVERCREATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -220,8 +223,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfDriverCreate(
|
||||
_In_
|
||||
PDRIVER_OBJECT DriverObject,
|
||||
|
@ -245,7 +248,7 @@ typedef
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
PWSTR
|
||||
(*PFN_WDFDRIVERGETREGISTRYPATH)(
|
||||
(STDCALL *PFN_WDFDRIVERGETREGISTRYPATH)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -253,8 +256,8 @@ PWSTR
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
PWSTR
|
||||
FORCEINLINE
|
||||
PWSTR
|
||||
WdfDriverGetRegistryPath(
|
||||
_In_
|
||||
WDFDRIVER Driver
|
||||
|
@ -270,7 +273,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
PDRIVER_OBJECT
|
||||
(*PFN_WDFDRIVERWDMGETDRIVEROBJECT)(
|
||||
(STDCALL *PFN_WDFDRIVERWDMGETDRIVEROBJECT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -278,8 +281,8 @@ PDRIVER_OBJECT
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
PDRIVER_OBJECT
|
||||
FORCEINLINE
|
||||
PDRIVER_OBJECT
|
||||
WdfDriverWdmGetDriverObject(
|
||||
_In_
|
||||
WDFDRIVER Driver
|
||||
|
@ -296,7 +299,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFDRIVEROPENPARAMETERSREGISTRYKEY)(
|
||||
(STDCALL *PFN_WDFDRIVEROPENPARAMETERSREGISTRYKEY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -311,8 +314,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfDriverOpenParametersRegistryKey(
|
||||
_In_
|
||||
WDFDRIVER Driver,
|
||||
|
@ -334,7 +337,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDFDRIVER
|
||||
(*PFN_WDFWDMDRIVERGETWDFDRIVERHANDLE)(
|
||||
(STDCALL *PFN_WDFWDMDRIVERGETWDFDRIVERHANDLE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -342,8 +345,8 @@ WDFDRIVER
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFDRIVER
|
||||
FORCEINLINE
|
||||
WDFDRIVER
|
||||
WdfWdmDriverGetWdfDriverHandle(
|
||||
_In_
|
||||
PDRIVER_OBJECT DriverObject
|
||||
|
@ -360,7 +363,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFDRIVERREGISTERTRACEINFO)(
|
||||
(STDCALL *PFN_WDFDRIVERREGISTERTRACEINFO)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -373,8 +376,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfDriverRegisterTraceInfo(
|
||||
_In_
|
||||
PDRIVER_OBJECT DriverObject,
|
||||
|
@ -395,7 +398,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFDRIVERRETRIEVEVERSIONSTRING)(
|
||||
(STDCALL *PFN_WDFDRIVERRETRIEVEVERSIONSTRING)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -406,8 +409,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfDriverRetrieveVersionString(
|
||||
_In_
|
||||
WDFDRIVER Driver,
|
||||
|
@ -426,7 +429,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
BOOLEAN
|
||||
(*PFN_WDFDRIVERISVERSIONAVAILABLE)(
|
||||
(STDCALL *PFN_WDFDRIVERISVERSIONAVAILABLE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -437,8 +440,8 @@ BOOLEAN
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WdfDriverIsVersionAvailable(
|
||||
_In_
|
||||
WDFDRIVER Driver,
|
||||
|
|
|
@ -55,6 +55,7 @@ _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,
|
||||
|
@ -69,6 +70,7 @@ _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,
|
||||
|
@ -94,8 +96,8 @@ typedef struct _WDF_FDO_EVENT_CALLBACKS {
|
|||
|
||||
} WDF_FDO_EVENT_CALLBACKS, *PWDF_FDO_EVENT_CALLBACKS;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_FDO_EVENT_CALLBACKS_INIT(
|
||||
_Out_ PWDF_FDO_EVENT_CALLBACKS Callbacks
|
||||
)
|
||||
|
@ -112,7 +114,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
PDEVICE_OBJECT
|
||||
(*PFN_WDFFDOINITWDMGETPHYSICALDEVICE)(
|
||||
(STDCALL *PFN_WDFFDOINITWDMGETPHYSICALDEVICE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -120,8 +122,8 @@ PDEVICE_OBJECT
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
PDEVICE_OBJECT
|
||||
FORCEINLINE
|
||||
PDEVICE_OBJECT
|
||||
WdfFdoInitWdmGetPhysicalDevice(
|
||||
_In_
|
||||
PWDFDEVICE_INIT DeviceInit
|
||||
|
@ -138,7 +140,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFFDOINITOPENREGISTRYKEY)(
|
||||
(STDCALL *PFN_WDFFDOINITOPENREGISTRYKEY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -155,8 +157,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfFdoInitOpenRegistryKey(
|
||||
_In_
|
||||
PWDFDEVICE_INIT DeviceInit,
|
||||
|
@ -181,7 +183,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFFDOINITQUERYPROPERTY)(
|
||||
(STDCALL *PFN_WDFFDOINITQUERYPROPERTY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -198,8 +200,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfFdoInitQueryProperty(
|
||||
_In_
|
||||
PWDFDEVICE_INIT DeviceInit,
|
||||
|
@ -224,7 +226,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFFDOINITALLOCANDQUERYPROPERTY)(
|
||||
(STDCALL *PFN_WDFFDOINITALLOCANDQUERYPROPERTY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -242,8 +244,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfFdoInitAllocAndQueryProperty(
|
||||
_In_
|
||||
PWDFDEVICE_INIT DeviceInit,
|
||||
|
@ -269,7 +271,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFFDOINITQUERYPROPERTYEX)(
|
||||
(STDCALL *PFN_WDFFDOINITQUERYPROPERTYEX)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -288,8 +290,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfFdoInitQueryPropertyEx(
|
||||
_In_
|
||||
PWDFDEVICE_INIT DeviceInit,
|
||||
|
@ -316,7 +318,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFFDOINITALLOCANDQUERYPROPERTYEX)(
|
||||
(STDCALL *PFN_WDFFDOINITALLOCANDQUERYPROPERTYEX)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -336,8 +338,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfFdoInitAllocAndQueryPropertyEx(
|
||||
_In_
|
||||
PWDFDEVICE_INIT DeviceInit,
|
||||
|
@ -364,7 +366,7 @@ typedef
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFFDOINITSETEVENTCALLBACKS)(
|
||||
(STDCALL *PFN_WDFFDOINITSETEVENTCALLBACKS)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -374,8 +376,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfFdoInitSetEventCallbacks(
|
||||
_In_
|
||||
PWDFDEVICE_INIT DeviceInit,
|
||||
|
@ -393,7 +395,7 @@ typedef
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFFDOINITSETFILTER)(
|
||||
(STDCALL *PFN_WDFFDOINITSETFILTER)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -401,8 +403,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfFdoInitSetFilter(
|
||||
_In_
|
||||
PWDFDEVICE_INIT DeviceInit
|
||||
|
@ -418,7 +420,7 @@ typedef
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFFDOINITSETDEFAULTCHILDLISTCONFIG)(
|
||||
(STDCALL *PFN_WDFFDOINITSETDEFAULTCHILDLISTCONFIG)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_Inout_
|
||||
|
@ -430,8 +432,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfFdoInitSetDefaultChildListConfig(
|
||||
_Inout_
|
||||
PWDFDEVICE_INIT DeviceInit,
|
||||
|
@ -452,7 +454,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFFDOQUERYFORINTERFACE)(
|
||||
(STDCALL *PFN_WDFFDOQUERYFORINTERFACE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -471,8 +473,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfFdoQueryForInterface(
|
||||
_In_
|
||||
WDFDEVICE Fdo,
|
||||
|
@ -498,7 +500,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDFCHILDLIST
|
||||
(*PFN_WDFFDOGETDEFAULTCHILDLIST)(
|
||||
(STDCALL *PFN_WDFFDOGETDEFAULTCHILDLIST)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -506,8 +508,8 @@ WDFCHILDLIST
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFCHILDLIST
|
||||
FORCEINLINE
|
||||
WDFCHILDLIST
|
||||
WdfFdoGetDefaultChildList(
|
||||
_In_
|
||||
WDFDEVICE Fdo
|
||||
|
@ -524,7 +526,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFFDOADDSTATICCHILD)(
|
||||
(STDCALL *PFN_WDFFDOADDSTATICCHILD)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -535,8 +537,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfFdoAddStaticChild(
|
||||
_In_
|
||||
WDFDEVICE Fdo,
|
||||
|
@ -554,7 +556,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFFDOLOCKSTATICCHILDLISTFORITERATION)(
|
||||
(STDCALL *PFN_WDFFDOLOCKSTATICCHILDLISTFORITERATION)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -562,8 +564,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfFdoLockStaticChildListForIteration(
|
||||
_In_
|
||||
WDFDEVICE Fdo
|
||||
|
@ -580,7 +582,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDFDEVICE
|
||||
(*PFN_WDFFDORETRIEVENEXTSTATICCHILD)(
|
||||
(STDCALL *PFN_WDFFDORETRIEVENEXTSTATICCHILD)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -593,8 +595,8 @@ WDFDEVICE
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFDEVICE
|
||||
FORCEINLINE
|
||||
WDFDEVICE
|
||||
WdfFdoRetrieveNextStaticChild(
|
||||
_In_
|
||||
WDFDEVICE Fdo,
|
||||
|
@ -614,7 +616,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFFDOUNLOCKSTATICCHILDLISTFROMITERATION)(
|
||||
(STDCALL *PFN_WDFFDOUNLOCKSTATICCHILDLISTFROMITERATION)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -622,8 +624,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfFdoUnlockStaticChildListFromIteration(
|
||||
_In_
|
||||
WDFDEVICE Fdo
|
||||
|
|
|
@ -59,7 +59,7 @@ typedef
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
PUNICODE_STRING
|
||||
(*PFN_WDFFILEOBJECTGETFILENAME)(
|
||||
(STDCALL *PFN_WDFFILEOBJECTGETFILENAME)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -67,8 +67,8 @@ PUNICODE_STRING
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
PUNICODE_STRING
|
||||
FORCEINLINE
|
||||
PUNICODE_STRING
|
||||
WdfFileObjectGetFileName(
|
||||
_In_
|
||||
WDFFILEOBJECT FileObject
|
||||
|
@ -84,7 +84,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
ULONG
|
||||
(*PFN_WDFFILEOBJECTGETFLAGS)(
|
||||
(STDCALL *PFN_WDFFILEOBJECTGETFLAGS)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -92,8 +92,8 @@ ULONG
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
ULONG
|
||||
FORCEINLINE
|
||||
ULONG
|
||||
WdfFileObjectGetFlags(
|
||||
_In_
|
||||
WDFFILEOBJECT FileObject
|
||||
|
@ -109,7 +109,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDFDEVICE
|
||||
(*PFN_WDFFILEOBJECTGETDEVICE)(
|
||||
(STDCALL *PFN_WDFFILEOBJECTGETDEVICE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -117,8 +117,8 @@ WDFDEVICE
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFDEVICE
|
||||
FORCEINLINE
|
||||
WDFDEVICE
|
||||
WdfFileObjectGetDevice(
|
||||
_In_
|
||||
WDFFILEOBJECT FileObject
|
||||
|
@ -134,7 +134,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
PFILE_OBJECT
|
||||
(*PFN_WDFFILEOBJECTWDMGETFILEOBJECT)(
|
||||
(STDCALL *PFN_WDFFILEOBJECTWDMGETFILEOBJECT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -142,8 +142,8 @@ PFILE_OBJECT
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
PFILE_OBJECT
|
||||
FORCEINLINE
|
||||
PFILE_OBJECT
|
||||
WdfFileObjectWdmGetFileObject(
|
||||
_In_
|
||||
WDFFILEOBJECT FileObject
|
||||
|
|
|
@ -56,8 +56,8 @@ typedef struct _WDF_COINSTALLER_INSTALL_OPTIONS {
|
|||
BOOL ShowRebootPrompt;
|
||||
} WDF_COINSTALLER_INSTALL_OPTIONS, *PWDF_COINSTALLER_INSTALL_OPTIONS;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_COINSTALLER_INSTALL_OPTIONS_INIT(
|
||||
_Out_ PWDF_COINSTALLER_INSTALL_OPTIONS ClientOptions
|
||||
)
|
||||
|
|
|
@ -83,6 +83,7 @@ _Function_class_(EVT_WDF_INTERRUPT_ISR)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_min_(PASSIVE_LEVEL)
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
EVT_WDF_INTERRUPT_ISR(
|
||||
_In_
|
||||
WDFINTERRUPT Interrupt,
|
||||
|
@ -103,6 +104,7 @@ _Function_class_(EVT_WDF_INTERRUPT_SYNCHRONIZE)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_min_(PASSIVE_LEVEL)
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
EVT_WDF_INTERRUPT_SYNCHRONIZE(
|
||||
_In_
|
||||
WDFINTERRUPT Interrupt,
|
||||
|
@ -121,6 +123,7 @@ _Function_class_(EVT_WDF_INTERRUPT_DPC)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_INTERRUPT_DPC(
|
||||
_In_
|
||||
WDFINTERRUPT Interrupt,
|
||||
|
@ -139,6 +142,7 @@ _Function_class_(EVT_WDF_INTERRUPT_WORKITEM)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_INTERRUPT_WORKITEM(
|
||||
_In_
|
||||
WDFINTERRUPT Interrupt,
|
||||
|
@ -160,6 +164,7 @@ _Function_class_(EVT_WDF_INTERRUPT_ENABLE)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_min_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_INTERRUPT_ENABLE(
|
||||
_In_
|
||||
WDFINTERRUPT Interrupt,
|
||||
|
@ -181,6 +186,7 @@ _Function_class_(EVT_WDF_INTERRUPT_DISABLE)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_min_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_INTERRUPT_DISABLE(
|
||||
_In_
|
||||
WDFINTERRUPT Interrupt,
|
||||
|
@ -260,8 +266,8 @@ typedef struct _WDF_INTERRUPT_CONFIG {
|
|||
} WDF_INTERRUPT_CONFIG, *PWDF_INTERRUPT_CONFIG;
|
||||
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_INTERRUPT_CONFIG_INIT(
|
||||
_Out_ PWDF_INTERRUPT_CONFIG Configuration,
|
||||
_In_ PFN_WDF_INTERRUPT_ISR EvtInterruptIsr,
|
||||
|
@ -286,8 +292,10 @@ WDF_INTERRUPT_CONFIG_INIT(
|
|||
//
|
||||
// Disable warning C4324: structure was padded due to DECLSPEC_ALIGN
|
||||
// This padding is intentional and necessary.
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable: 4324)
|
||||
#endif
|
||||
|
||||
typedef struct _WDF_INTERRUPT_INFO {
|
||||
//
|
||||
|
@ -308,10 +316,12 @@ typedef struct _WDF_INTERRUPT_INFO {
|
|||
|
||||
} WDF_INTERRUPT_INFO, *PWDF_INTERRUPT_INFO;
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_INTERRUPT_INFO_INIT(
|
||||
_Out_ PWDF_INTERRUPT_INFO Info
|
||||
)
|
||||
|
@ -334,8 +344,8 @@ typedef struct _WDF_INTERRUPT_EXTENDED_POLICY {
|
|||
|
||||
} WDF_INTERRUPT_EXTENDED_POLICY, *PWDF_INTERRUPT_EXTENDED_POLICY;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_INTERRUPT_EXTENDED_POLICY_INIT(
|
||||
_Out_ PWDF_INTERRUPT_EXTENDED_POLICY ExtendedPolicy
|
||||
)
|
||||
|
@ -355,7 +365,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFINTERRUPTCREATE)(
|
||||
(STDCALL *PFN_WDFINTERRUPTCREATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -370,8 +380,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfInterruptCreate(
|
||||
_In_
|
||||
WDFDEVICE Device,
|
||||
|
@ -392,15 +402,15 @@ WdfInterruptCreate(
|
|||
typedef
|
||||
WDFAPI
|
||||
BOOLEAN
|
||||
(*PFN_WDFINTERRUPTQUEUEDPCFORISR)(
|
||||
(STDCALL *PFN_WDFINTERRUPTQUEUEDPCFORISR)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
WDFINTERRUPT Interrupt
|
||||
);
|
||||
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WdfInterruptQueueDpcForIsr(
|
||||
_In_
|
||||
WDFINTERRUPT Interrupt
|
||||
|
@ -415,15 +425,15 @@ WdfInterruptQueueDpcForIsr(
|
|||
typedef
|
||||
WDFAPI
|
||||
BOOLEAN
|
||||
(*PFN_WDFINTERRUPTQUEUEWORKITEMFORISR)(
|
||||
(STDCALL *PFN_WDFINTERRUPTQUEUEWORKITEMFORISR)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
WDFINTERRUPT Interrupt
|
||||
);
|
||||
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WdfInterruptQueueWorkItemForIsr(
|
||||
_In_
|
||||
WDFINTERRUPT Interrupt
|
||||
|
@ -439,7 +449,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
BOOLEAN
|
||||
(*PFN_WDFINTERRUPTSYNCHRONIZE)(
|
||||
(STDCALL *PFN_WDFINTERRUPTSYNCHRONIZE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -451,8 +461,8 @@ BOOLEAN
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WdfInterruptSynchronize(
|
||||
_In_
|
||||
WDFINTERRUPT Interrupt,
|
||||
|
@ -472,7 +482,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL + 1)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFINTERRUPTACQUIRELOCK)(
|
||||
(STDCALL *PFN_WDFINTERRUPTACQUIRELOCK)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -482,8 +492,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL + 1)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfInterruptAcquireLock(
|
||||
_In_
|
||||
_Requires_lock_not_held_(_Curr_)
|
||||
|
@ -501,7 +511,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL + 1)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFINTERRUPTRELEASELOCK)(
|
||||
(STDCALL *PFN_WDFINTERRUPTRELEASELOCK)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -511,8 +521,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL + 1)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfInterruptReleaseLock(
|
||||
_In_
|
||||
_Requires_lock_held_(_Curr_)
|
||||
|
@ -530,7 +540,7 @@ typedef
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFINTERRUPTENABLE)(
|
||||
(STDCALL *PFN_WDFINTERRUPTENABLE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -538,8 +548,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfInterruptEnable(
|
||||
_In_
|
||||
WDFINTERRUPT Interrupt
|
||||
|
@ -555,7 +565,7 @@ typedef
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFINTERRUPTDISABLE)(
|
||||
(STDCALL *PFN_WDFINTERRUPTDISABLE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -563,8 +573,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfInterruptDisable(
|
||||
_In_
|
||||
WDFINTERRUPT Interrupt
|
||||
|
@ -580,7 +590,7 @@ typedef
|
|||
_Must_inspect_result_
|
||||
WDFAPI
|
||||
PKINTERRUPT
|
||||
(*PFN_WDFINTERRUPTWDMGETINTERRUPT)(
|
||||
(STDCALL *PFN_WDFINTERRUPTWDMGETINTERRUPT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -588,8 +598,8 @@ PKINTERRUPT
|
|||
);
|
||||
|
||||
_Must_inspect_result_
|
||||
PKINTERRUPT
|
||||
FORCEINLINE
|
||||
PKINTERRUPT
|
||||
WdfInterruptWdmGetInterrupt(
|
||||
_In_
|
||||
WDFINTERRUPT Interrupt
|
||||
|
@ -605,7 +615,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFINTERRUPTGETINFO)(
|
||||
(STDCALL *PFN_WDFINTERRUPTGETINFO)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -615,8 +625,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfInterruptGetInfo(
|
||||
_In_
|
||||
WDFINTERRUPT Interrupt,
|
||||
|
@ -634,7 +644,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFINTERRUPTSETPOLICY)(
|
||||
(STDCALL *PFN_WDFINTERRUPTSETPOLICY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -648,8 +658,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfInterruptSetPolicy(
|
||||
_In_
|
||||
WDFINTERRUPT Interrupt,
|
||||
|
@ -671,7 +681,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFINTERRUPTSETEXTENDEDPOLICY)(
|
||||
(STDCALL *PFN_WDFINTERRUPTSETEXTENDEDPOLICY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -681,8 +691,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfInterruptSetExtendedPolicy(
|
||||
_In_
|
||||
WDFINTERRUPT Interrupt,
|
||||
|
@ -699,15 +709,15 @@ WdfInterruptSetExtendedPolicy(
|
|||
typedef
|
||||
WDFAPI
|
||||
WDFDEVICE
|
||||
(*PFN_WDFINTERRUPTGETDEVICE)(
|
||||
(STDCALL *PFN_WDFINTERRUPTGETDEVICE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
WDFINTERRUPT Interrupt
|
||||
);
|
||||
|
||||
WDFDEVICE
|
||||
FORCEINLINE
|
||||
WDFDEVICE
|
||||
WdfInterruptGetDevice(
|
||||
_In_
|
||||
WDFINTERRUPT Interrupt
|
||||
|
@ -725,7 +735,7 @@ _Post_satisfies_(return == 1 || return == 0)
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
BOOLEAN
|
||||
(*PFN_WDFINTERRUPTTRYTOACQUIRELOCK)(
|
||||
(STDCALL *PFN_WDFINTERRUPTTRYTOACQUIRELOCK)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -737,8 +747,8 @@ BOOLEAN
|
|||
_Must_inspect_result_
|
||||
_Post_satisfies_(return == 1 || return == 0)
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WdfInterruptTryToAcquireLock(
|
||||
_In_
|
||||
_Requires_lock_not_held_(_Curr_)
|
||||
|
@ -756,7 +766,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFINTERRUPTREPORTACTIVE)(
|
||||
(STDCALL *PFN_WDFINTERRUPTREPORTACTIVE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -764,8 +774,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfInterruptReportActive(
|
||||
_In_
|
||||
WDFINTERRUPT Interrupt
|
||||
|
@ -781,7 +791,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFINTERRUPTREPORTINACTIVE)(
|
||||
(STDCALL *PFN_WDFINTERRUPTREPORTINACTIVE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -789,8 +799,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfInterruptReportInactive(
|
||||
_In_
|
||||
WDFINTERRUPT Interrupt
|
||||
|
|
|
@ -141,8 +141,8 @@ typedef enum _WDF_IO_QUEUE_STATE {
|
|||
// is not operating on any.
|
||||
//
|
||||
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WDF_IO_QUEUE_IDLE(
|
||||
_In_ WDF_IO_QUEUE_STATE State
|
||||
)
|
||||
|
@ -155,8 +155,8 @@ WDF_IO_QUEUE_IDLE(
|
|||
// A Queue is ready if it can accept and dispatch requests and
|
||||
// queue is not held by PNP
|
||||
//
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WDF_IO_QUEUE_READY(
|
||||
_In_ WDF_IO_QUEUE_STATE State
|
||||
)
|
||||
|
@ -171,8 +171,8 @@ WDF_IO_QUEUE_READY(
|
|||
// is not automatically delivering them to the device driver,
|
||||
// and the queue is idle.
|
||||
//
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WDF_IO_QUEUE_STOPPED(
|
||||
_In_ WDF_IO_QUEUE_STATE State
|
||||
)
|
||||
|
@ -189,8 +189,8 @@ WDF_IO_QUEUE_STOPPED(
|
|||
// either in the Queue or the device driver.
|
||||
//
|
||||
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WDF_IO_QUEUE_DRAINED(
|
||||
_In_ WDF_IO_QUEUE_STATE State
|
||||
)
|
||||
|
@ -207,8 +207,8 @@ WDF_IO_QUEUE_DRAINED(
|
|||
// and there are no requests either in the Queue or
|
||||
// the device driver.
|
||||
//
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WDF_IO_QUEUE_PURGED(
|
||||
_In_ WDF_IO_QUEUE_STATE State
|
||||
)
|
||||
|
@ -228,6 +228,7 @@ _Function_class_(EVT_WDF_IO_QUEUE_IO_DEFAULT)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_IO_QUEUE_IO_DEFAULT(
|
||||
_In_
|
||||
WDFQUEUE Queue,
|
||||
|
@ -243,6 +244,7 @@ _Function_class_(EVT_WDF_IO_QUEUE_IO_STOP)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_IO_QUEUE_IO_STOP(
|
||||
_In_
|
||||
WDFQUEUE Queue,
|
||||
|
@ -259,6 +261,7 @@ _Function_class_(EVT_WDF_IO_QUEUE_IO_RESUME)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_IO_QUEUE_IO_RESUME(
|
||||
_In_
|
||||
WDFQUEUE Queue,
|
||||
|
@ -273,6 +276,7 @@ _Function_class_(EVT_WDF_IO_QUEUE_IO_READ)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_IO_QUEUE_IO_READ(
|
||||
_In_
|
||||
WDFQUEUE Queue,
|
||||
|
@ -289,6 +293,7 @@ _Function_class_(EVT_WDF_IO_QUEUE_IO_WRITE)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_IO_QUEUE_IO_WRITE(
|
||||
_In_
|
||||
WDFQUEUE Queue,
|
||||
|
@ -305,6 +310,7 @@ _Function_class_(EVT_WDF_IO_QUEUE_IO_DEVICE_CONTROL)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_IO_QUEUE_IO_DEVICE_CONTROL(
|
||||
_In_
|
||||
WDFQUEUE Queue,
|
||||
|
@ -325,6 +331,7 @@ _Function_class_(EVT_WDF_IO_QUEUE_IO_INTERNAL_DEVICE_CONTROL)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_IO_QUEUE_IO_INTERNAL_DEVICE_CONTROL(
|
||||
_In_
|
||||
WDFQUEUE Queue,
|
||||
|
@ -346,6 +353,7 @@ _Function_class_(EVT_WDF_IO_QUEUE_IO_CANCELED_ON_QUEUE)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_IO_QUEUE_IO_CANCELED_ON_QUEUE(
|
||||
_In_
|
||||
WDFQUEUE Queue,
|
||||
|
@ -361,6 +369,7 @@ _Function_class_(EVT_WDF_IO_QUEUE_STATE)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_IO_QUEUE_STATE(
|
||||
_In_
|
||||
WDFQUEUE Queue,
|
||||
|
@ -412,8 +421,8 @@ typedef struct _WDF_IO_QUEUE_CONFIG {
|
|||
WDFDRIVER Driver;
|
||||
} WDF_IO_QUEUE_CONFIG, *PWDF_IO_QUEUE_CONFIG;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_IO_QUEUE_CONFIG_INIT(
|
||||
_Out_ PWDF_IO_QUEUE_CONFIG Config,
|
||||
_In_ WDF_IO_QUEUE_DISPATCH_TYPE DispatchType
|
||||
|
@ -429,8 +438,8 @@ WDF_IO_QUEUE_CONFIG_INIT(
|
|||
}
|
||||
}
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_IO_QUEUE_CONFIG_INIT_DEFAULT_QUEUE(
|
||||
_Out_ PWDF_IO_QUEUE_CONFIG Config,
|
||||
_In_ WDF_IO_QUEUE_DISPATCH_TYPE DispatchType
|
||||
|
@ -465,6 +474,7 @@ _Function_class_(EVT_WDF_IO_ALLOCATE_RESOURCES_FOR_RESERVED_REQUEST)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_IO_ALLOCATE_RESOURCES_FOR_RESERVED_REQUEST(
|
||||
_In_
|
||||
WDFQUEUE Queue,
|
||||
|
@ -479,6 +489,7 @@ _Function_class_(EVT_WDF_IO_ALLOCATE_REQUEST_RESOURCES)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_IO_ALLOCATE_REQUEST_RESOURCES(
|
||||
_In_
|
||||
WDFQUEUE Queue,
|
||||
|
@ -493,6 +504,7 @@ _Function_class_(EVT_WDF_IO_WDM_IRP_FOR_FORWARD_PROGRESS)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDF_IO_FORWARD_PROGRESS_ACTION
|
||||
STDCALL
|
||||
EVT_WDF_IO_WDM_IRP_FOR_FORWARD_PROGRESS(
|
||||
_In_
|
||||
WDFQUEUE Queue,
|
||||
|
@ -539,8 +551,8 @@ typedef struct _WDF_IO_QUEUE_FORWARD_PROGRESS_POLICY {
|
|||
|
||||
} WDF_IO_QUEUE_FORWARD_PROGRESS_POLICY, *PWDF_IO_QUEUE_FORWARD_PROGRESS_POLICY;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_IO_QUEUE_FORWARD_PROGRESS_POLICY_DEFAULT_INIT(
|
||||
_Out_ PWDF_IO_QUEUE_FORWARD_PROGRESS_POLICY Policy,
|
||||
_In_ ULONG TotalForwardProgressRequests
|
||||
|
@ -554,8 +566,8 @@ WDF_IO_QUEUE_FORWARD_PROGRESS_POLICY_DEFAULT_INIT(
|
|||
}
|
||||
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_IO_QUEUE_FORWARD_PROGRESS_POLICY_EXAMINE_INIT(
|
||||
_Out_ PWDF_IO_QUEUE_FORWARD_PROGRESS_POLICY Policy,
|
||||
_In_ ULONG TotalForwardProgressRequests,
|
||||
|
@ -571,8 +583,8 @@ WDF_IO_QUEUE_FORWARD_PROGRESS_POLICY_EXAMINE_INIT(
|
|||
EvtIoWdmIrpForForwardProgress;
|
||||
}
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_IO_QUEUE_FORWARD_PROGRESS_POLICY_PAGINGIO_INIT(
|
||||
_Out_ PWDF_IO_QUEUE_FORWARD_PROGRESS_POLICY Policy,
|
||||
_In_ ULONG TotalForwardProgressRequests
|
||||
|
@ -594,7 +606,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIOQUEUECREATE)(
|
||||
(STDCALL *PFN_WDFIOQUEUECREATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -609,8 +621,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoQueueCreate(
|
||||
_In_
|
||||
WDFDEVICE Device,
|
||||
|
@ -632,7 +644,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDF_IO_QUEUE_STATE
|
||||
(*PFN_WDFIOQUEUEGETSTATE)(
|
||||
(STDCALL *PFN_WDFIOQUEUEGETSTATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -644,8 +656,8 @@ WDF_IO_QUEUE_STATE
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDF_IO_QUEUE_STATE
|
||||
FORCEINLINE
|
||||
WDF_IO_QUEUE_STATE
|
||||
WdfIoQueueGetState(
|
||||
_In_
|
||||
WDFQUEUE Queue,
|
||||
|
@ -665,7 +677,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFIOQUEUESTART)(
|
||||
(STDCALL *PFN_WDFIOQUEUESTART)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -673,8 +685,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfIoQueueStart(
|
||||
_In_
|
||||
WDFQUEUE Queue
|
||||
|
@ -690,7 +702,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFIOQUEUESTOP)(
|
||||
(STDCALL *PFN_WDFIOQUEUESTOP)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -704,8 +716,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfIoQueueStop(
|
||||
_In_
|
||||
WDFQUEUE Queue,
|
||||
|
@ -727,7 +739,7 @@ typedef
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFIOQUEUESTOPSYNCHRONOUSLY)(
|
||||
(STDCALL *PFN_WDFIOQUEUESTOPSYNCHRONOUSLY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -735,8 +747,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfIoQueueStopSynchronously(
|
||||
_In_
|
||||
WDFQUEUE Queue
|
||||
|
@ -752,7 +764,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDFDEVICE
|
||||
(*PFN_WDFIOQUEUEGETDEVICE)(
|
||||
(STDCALL *PFN_WDFIOQUEUEGETDEVICE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -760,8 +772,8 @@ WDFDEVICE
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFDEVICE
|
||||
FORCEINLINE
|
||||
WDFDEVICE
|
||||
WdfIoQueueGetDevice(
|
||||
_In_
|
||||
WDFQUEUE Queue
|
||||
|
@ -778,7 +790,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIOQUEUERETRIEVENEXTREQUEST)(
|
||||
(STDCALL *PFN_WDFIOQUEUERETRIEVENEXTREQUEST)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -789,8 +801,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoQueueRetrieveNextRequest(
|
||||
_In_
|
||||
WDFQUEUE Queue,
|
||||
|
@ -809,7 +821,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIOQUEUERETRIEVEREQUESTBYFILEOBJECT)(
|
||||
(STDCALL *PFN_WDFIOQUEUERETRIEVEREQUESTBYFILEOBJECT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -822,8 +834,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoQueueRetrieveRequestByFileObject(
|
||||
_In_
|
||||
WDFQUEUE Queue,
|
||||
|
@ -844,7 +856,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIOQUEUEFINDREQUEST)(
|
||||
(STDCALL *PFN_WDFIOQUEUEFINDREQUEST)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -861,8 +873,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoQueueFindRequest(
|
||||
_In_
|
||||
WDFQUEUE Queue,
|
||||
|
@ -887,7 +899,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIOQUEUERETRIEVEFOUNDREQUEST)(
|
||||
(STDCALL *PFN_WDFIOQUEUERETRIEVEFOUNDREQUEST)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -900,8 +912,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoQueueRetrieveFoundRequest(
|
||||
_In_
|
||||
WDFQUEUE Queue,
|
||||
|
@ -921,7 +933,7 @@ typedef
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFIOQUEUEDRAINSYNCHRONOUSLY)(
|
||||
(STDCALL *PFN_WDFIOQUEUEDRAINSYNCHRONOUSLY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -929,8 +941,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfIoQueueDrainSynchronously(
|
||||
_In_
|
||||
WDFQUEUE Queue
|
||||
|
@ -946,7 +958,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFIOQUEUEDRAIN)(
|
||||
(STDCALL *PFN_WDFIOQUEUEDRAIN)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -960,8 +972,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfIoQueueDrain(
|
||||
_In_
|
||||
WDFQUEUE Queue,
|
||||
|
@ -983,7 +995,7 @@ typedef
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFIOQUEUEPURGESYNCHRONOUSLY)(
|
||||
(STDCALL *PFN_WDFIOQUEUEPURGESYNCHRONOUSLY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -991,8 +1003,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfIoQueuePurgeSynchronously(
|
||||
_In_
|
||||
WDFQUEUE Queue
|
||||
|
@ -1008,7 +1020,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFIOQUEUEPURGE)(
|
||||
(STDCALL *PFN_WDFIOQUEUEPURGE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1022,8 +1034,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfIoQueuePurge(
|
||||
_In_
|
||||
WDFQUEUE Queue,
|
||||
|
@ -1046,7 +1058,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIOQUEUEREADYNOTIFY)(
|
||||
(STDCALL *PFN_WDFIOQUEUEREADYNOTIFY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1059,8 +1071,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoQueueReadyNotify(
|
||||
_In_
|
||||
WDFQUEUE Queue,
|
||||
|
@ -1081,7 +1093,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIOQUEUEASSIGNFORWARDPROGRESSPOLICY)(
|
||||
(STDCALL *PFN_WDFIOQUEUEASSIGNFORWARDPROGRESSPOLICY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1092,8 +1104,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoQueueAssignForwardProgressPolicy(
|
||||
_In_
|
||||
WDFQUEUE Queue,
|
||||
|
@ -1111,7 +1123,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFIOQUEUESTOPANDPURGE)(
|
||||
(STDCALL *PFN_WDFIOQUEUESTOPANDPURGE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1125,8 +1137,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfIoQueueStopAndPurge(
|
||||
_In_
|
||||
WDFQUEUE Queue,
|
||||
|
@ -1148,7 +1160,7 @@ typedef
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFIOQUEUESTOPANDPURGESYNCHRONOUSLY)(
|
||||
(STDCALL *PFN_WDFIOQUEUESTOPANDPURGESYNCHRONOUSLY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1156,8 +1168,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfIoQueueStopAndPurgeSynchronously(
|
||||
_In_
|
||||
WDFQUEUE Queue
|
||||
|
|
|
@ -86,6 +86,7 @@ _Function_class_(EVT_WDF_IO_TARGET_QUERY_REMOVE)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_IO_TARGET_QUERY_REMOVE(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget
|
||||
|
@ -98,6 +99,7 @@ _Function_class_(EVT_WDF_IO_TARGET_REMOVE_CANCELED)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_IO_TARGET_REMOVE_CANCELED(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget
|
||||
|
@ -110,6 +112,7 @@ _Function_class_(EVT_WDF_IO_TARGET_REMOVE_COMPLETE)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_IO_TARGET_REMOVE_COMPLETE(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget
|
||||
|
@ -279,8 +282,8 @@ typedef struct _WDF_IO_TARGET_OPEN_PARAMS {
|
|||
} WDF_IO_TARGET_OPEN_PARAMS, *PWDF_IO_TARGET_OPEN_PARAMS;
|
||||
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_IO_TARGET_OPEN_PARAMS_INIT_EXISTING_DEVICE(
|
||||
_Out_ PWDF_IO_TARGET_OPEN_PARAMS Params,
|
||||
_In_ PDEVICE_OBJECT DeviceObject
|
||||
|
@ -295,8 +298,8 @@ WDF_IO_TARGET_OPEN_PARAMS_INIT_EXISTING_DEVICE(
|
|||
}
|
||||
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_IO_TARGET_OPEN_PARAMS_INIT_CREATE_BY_NAME(
|
||||
_Out_ PWDF_IO_TARGET_OPEN_PARAMS Params,
|
||||
_In_ PCUNICODE_STRING TargetDeviceName,
|
||||
|
@ -315,8 +318,8 @@ WDF_IO_TARGET_OPEN_PARAMS_INIT_CREATE_BY_NAME(
|
|||
Params->CreateOptions = FILE_NON_DIRECTORY_FILE;
|
||||
}
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_IO_TARGET_OPEN_PARAMS_INIT_OPEN_BY_NAME(
|
||||
_Out_ PWDF_IO_TARGET_OPEN_PARAMS Params,
|
||||
_In_ PCUNICODE_STRING TargetDeviceName,
|
||||
|
@ -332,8 +335,8 @@ WDF_IO_TARGET_OPEN_PARAMS_INIT_OPEN_BY_NAME(
|
|||
|
||||
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_IO_TARGET_OPEN_PARAMS_INIT_REOPEN(
|
||||
_Out_ PWDF_IO_TARGET_OPEN_PARAMS Params
|
||||
)
|
||||
|
@ -353,7 +356,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIOTARGETCREATE)(
|
||||
(STDCALL *PFN_WDFIOTARGETCREATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -366,8 +369,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoTargetCreate(
|
||||
_In_
|
||||
WDFDEVICE Device,
|
||||
|
@ -388,7 +391,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIOTARGETOPEN)(
|
||||
(STDCALL *PFN_WDFIOTARGETOPEN)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -399,8 +402,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoTargetOpen(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget,
|
||||
|
@ -418,7 +421,7 @@ typedef
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFIOTARGETCLOSEFORQUERYREMOVE)(
|
||||
(STDCALL *PFN_WDFIOTARGETCLOSEFORQUERYREMOVE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -426,8 +429,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfIoTargetCloseForQueryRemove(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget
|
||||
|
@ -443,7 +446,7 @@ typedef
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFIOTARGETCLOSE)(
|
||||
(STDCALL *PFN_WDFIOTARGETCLOSE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -451,8 +454,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfIoTargetClose(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget
|
||||
|
@ -469,7 +472,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIOTARGETSTART)(
|
||||
(STDCALL *PFN_WDFIOTARGETSTART)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -478,8 +481,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoTargetStart(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget
|
||||
|
@ -496,7 +499,7 @@ _When_(Action == 3, _IRQL_requires_max_(DISPATCH_LEVEL))
|
|||
_When_(Action == 0 || Action == 1 || Action == 2, _IRQL_requires_max_(PASSIVE_LEVEL))
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFIOTARGETSTOP)(
|
||||
(STDCALL *PFN_WDFIOTARGETSTOP)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -508,8 +511,8 @@ VOID
|
|||
|
||||
_When_(Action == 3, _IRQL_requires_max_(DISPATCH_LEVEL))
|
||||
_When_(Action == 0 || Action == 1 || Action == 2, _IRQL_requires_max_(PASSIVE_LEVEL))
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfIoTargetStop(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget,
|
||||
|
@ -529,7 +532,7 @@ _When_(Action == 2, _IRQL_requires_max_(DISPATCH_LEVEL))
|
|||
_When_(Action == 0 || Action == 1, _IRQL_requires_max_(PASSIVE_LEVEL))
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFIOTARGETPURGE)(
|
||||
(STDCALL *PFN_WDFIOTARGETPURGE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -541,8 +544,8 @@ VOID
|
|||
|
||||
_When_(Action == 2, _IRQL_requires_max_(DISPATCH_LEVEL))
|
||||
_When_(Action == 0 || Action == 1, _IRQL_requires_max_(PASSIVE_LEVEL))
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfIoTargetPurge(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget,
|
||||
|
@ -561,7 +564,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDF_IO_TARGET_STATE
|
||||
(*PFN_WDFIOTARGETGETSTATE)(
|
||||
(STDCALL *PFN_WDFIOTARGETGETSTATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -569,8 +572,8 @@ WDF_IO_TARGET_STATE
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDF_IO_TARGET_STATE
|
||||
FORCEINLINE
|
||||
WDF_IO_TARGET_STATE
|
||||
WdfIoTargetGetState(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget
|
||||
|
@ -586,7 +589,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDFDEVICE
|
||||
(*PFN_WDFIOTARGETGETDEVICE)(
|
||||
(STDCALL *PFN_WDFIOTARGETGETDEVICE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -594,8 +597,8 @@ WDFDEVICE
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFDEVICE
|
||||
FORCEINLINE
|
||||
WDFDEVICE
|
||||
WdfIoTargetGetDevice(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget
|
||||
|
@ -612,7 +615,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIOTARGETQUERYTARGETPROPERTY)(
|
||||
(STDCALL *PFN_WDFIOTARGETQUERYTARGETPROPERTY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -630,8 +633,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoTargetQueryTargetProperty(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget,
|
||||
|
@ -657,7 +660,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIOTARGETALLOCANDQUERYTARGETPROPERTY)(
|
||||
(STDCALL *PFN_WDFIOTARGETALLOCANDQUERYTARGETPROPERTY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -675,8 +678,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoTargetAllocAndQueryTargetProperty(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget,
|
||||
|
@ -702,7 +705,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIOTARGETQUERYFORINTERFACE)(
|
||||
(STDCALL *PFN_WDFIOTARGETQUERYFORINTERFACE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -721,8 +724,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoTargetQueryForInterface(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget,
|
||||
|
@ -748,7 +751,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
PDEVICE_OBJECT
|
||||
(*PFN_WDFIOTARGETWDMGETTARGETDEVICEOBJECT)(
|
||||
(STDCALL *PFN_WDFIOTARGETWDMGETTARGETDEVICEOBJECT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -756,8 +759,8 @@ PDEVICE_OBJECT
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
PDEVICE_OBJECT
|
||||
FORCEINLINE
|
||||
PDEVICE_OBJECT
|
||||
WdfIoTargetWdmGetTargetDeviceObject(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget
|
||||
|
@ -773,7 +776,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
PDEVICE_OBJECT
|
||||
(*PFN_WDFIOTARGETWDMGETTARGETPHYSICALDEVICE)(
|
||||
(STDCALL *PFN_WDFIOTARGETWDMGETTARGETPHYSICALDEVICE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -781,8 +784,8 @@ PDEVICE_OBJECT
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
PDEVICE_OBJECT
|
||||
FORCEINLINE
|
||||
PDEVICE_OBJECT
|
||||
WdfIoTargetWdmGetTargetPhysicalDevice(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget
|
||||
|
@ -798,7 +801,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
PFILE_OBJECT
|
||||
(*PFN_WDFIOTARGETWDMGETTARGETFILEOBJECT)(
|
||||
(STDCALL *PFN_WDFIOTARGETWDMGETTARGETFILEOBJECT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -806,8 +809,8 @@ PFILE_OBJECT
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
PFILE_OBJECT
|
||||
FORCEINLINE
|
||||
PFILE_OBJECT
|
||||
WdfIoTargetWdmGetTargetFileObject(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget
|
||||
|
@ -823,7 +826,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
HANDLE
|
||||
(*PFN_WDFIOTARGETWDMGETTARGETFILEHANDLE)(
|
||||
(STDCALL *PFN_WDFIOTARGETWDMGETTARGETFILEHANDLE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -831,8 +834,8 @@ HANDLE
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
HANDLE
|
||||
FORCEINLINE
|
||||
HANDLE
|
||||
WdfIoTargetWdmGetTargetFileHandle(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget
|
||||
|
@ -849,7 +852,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIOTARGETSENDREADSYNCHRONOUSLY)(
|
||||
(STDCALL *PFN_WDFIOTARGETSENDREADSYNCHRONOUSLY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -868,8 +871,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoTargetSendReadSynchronously(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget,
|
||||
|
@ -896,7 +899,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIOTARGETFORMATREQUESTFORREAD)(
|
||||
(STDCALL *PFN_WDFIOTARGETFORMATREQUESTFORREAD)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -913,8 +916,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoTargetFormatRequestForRead(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget,
|
||||
|
@ -939,7 +942,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIOTARGETSENDWRITESYNCHRONOUSLY)(
|
||||
(STDCALL *PFN_WDFIOTARGETSENDWRITESYNCHRONOUSLY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -958,8 +961,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoTargetSendWriteSynchronously(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget,
|
||||
|
@ -986,7 +989,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIOTARGETFORMATREQUESTFORWRITE)(
|
||||
(STDCALL *PFN_WDFIOTARGETFORMATREQUESTFORWRITE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1003,8 +1006,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoTargetFormatRequestForWrite(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget,
|
||||
|
@ -1029,7 +1032,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIOTARGETSENDIOCTLSYNCHRONOUSLY)(
|
||||
(STDCALL *PFN_WDFIOTARGETSENDIOCTLSYNCHRONOUSLY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1050,8 +1053,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoTargetSendIoctlSynchronously(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget,
|
||||
|
@ -1080,7 +1083,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIOTARGETFORMATREQUESTFORIOCTL)(
|
||||
(STDCALL *PFN_WDFIOTARGETFORMATREQUESTFORIOCTL)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1101,8 +1104,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoTargetFormatRequestForIoctl(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget,
|
||||
|
@ -1131,7 +1134,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIOTARGETSENDINTERNALIOCTLSYNCHRONOUSLY)(
|
||||
(STDCALL *PFN_WDFIOTARGETSENDINTERNALIOCTLSYNCHRONOUSLY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1152,8 +1155,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoTargetSendInternalIoctlSynchronously(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget,
|
||||
|
@ -1182,7 +1185,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIOTARGETFORMATREQUESTFORINTERNALIOCTL)(
|
||||
(STDCALL *PFN_WDFIOTARGETFORMATREQUESTFORINTERNALIOCTL)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1203,8 +1206,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoTargetFormatRequestForInternalIoctl(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget,
|
||||
|
@ -1233,7 +1236,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIOTARGETSENDINTERNALIOCTLOTHERSSYNCHRONOUSLY)(
|
||||
(STDCALL *PFN_WDFIOTARGETSENDINTERNALIOCTLOTHERSSYNCHRONOUSLY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1256,8 +1259,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoTargetSendInternalIoctlOthersSynchronously(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget,
|
||||
|
@ -1288,7 +1291,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIOTARGETFORMATREQUESTFORINTERNALIOCTLOTHERS)(
|
||||
(STDCALL *PFN_WDFIOTARGETFORMATREQUESTFORINTERNALIOCTLOTHERS)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1313,8 +1316,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoTargetFormatRequestForInternalIoctlOthers(
|
||||
_In_
|
||||
WDFIOTARGET IoTarget,
|
||||
|
|
|
@ -97,8 +97,8 @@ typedef struct _WDF_MEMORY_DESCRIPTOR {
|
|||
|
||||
} WDF_MEMORY_DESCRIPTOR, *PWDF_MEMORY_DESCRIPTOR;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_MEMORY_DESCRIPTOR_INIT_BUFFER(
|
||||
_Out_ PWDF_MEMORY_DESCRIPTOR Descriptor,
|
||||
_In_ PVOID Buffer,
|
||||
|
@ -112,8 +112,8 @@ WDF_MEMORY_DESCRIPTOR_INIT_BUFFER(
|
|||
Descriptor->u.BufferType.Length = BufferLength;
|
||||
}
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_MEMORY_DESCRIPTOR_INIT_HANDLE(
|
||||
_Out_ PWDF_MEMORY_DESCRIPTOR Descriptor,
|
||||
_In_ WDFMEMORY Memory,
|
||||
|
@ -128,8 +128,8 @@ WDF_MEMORY_DESCRIPTOR_INIT_HANDLE(
|
|||
}
|
||||
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_MEMORY_DESCRIPTOR_INIT_MDL(
|
||||
_Out_ PWDF_MEMORY_DESCRIPTOR Descriptor,
|
||||
_In_ PMDL Mdl,
|
||||
|
@ -152,7 +152,7 @@ _When_(PoolType == 1 || PoolType == 257, _IRQL_requires_max_(APC_LEVEL))
|
|||
_When_(PoolType == 0 || PoolType == 256, _IRQL_requires_max_(DISPATCH_LEVEL))
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFMEMORYCREATE)(
|
||||
(STDCALL *PFN_WDFMEMORYCREATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_opt_
|
||||
|
@ -174,8 +174,8 @@ NTSTATUS
|
|||
_Must_inspect_result_
|
||||
_When_(PoolType == 1 || PoolType == 257, _IRQL_requires_max_(APC_LEVEL))
|
||||
_When_(PoolType == 0 || PoolType == 256, _IRQL_requires_max_(DISPATCH_LEVEL))
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfMemoryCreate(
|
||||
_In_opt_
|
||||
PWDF_OBJECT_ATTRIBUTES Attributes,
|
||||
|
@ -204,7 +204,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFMEMORYCREATEPREALLOCATED)(
|
||||
(STDCALL *PFN_WDFMEMORYCREATEPREALLOCATED)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_opt_
|
||||
|
@ -220,8 +220,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfMemoryCreatePreallocated(
|
||||
_In_opt_
|
||||
PWDF_OBJECT_ATTRIBUTES Attributes,
|
||||
|
@ -244,7 +244,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
PVOID
|
||||
(*PFN_WDFMEMORYGETBUFFER)(
|
||||
(STDCALL *PFN_WDFMEMORYGETBUFFER)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -254,8 +254,8 @@ PVOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
PVOID
|
||||
FORCEINLINE
|
||||
PVOID
|
||||
WdfMemoryGetBuffer(
|
||||
_In_
|
||||
WDFMEMORY Memory,
|
||||
|
@ -274,7 +274,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFMEMORYASSIGNBUFFER)(
|
||||
(STDCALL *PFN_WDFMEMORYASSIGNBUFFER)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -288,8 +288,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfMemoryAssignBuffer(
|
||||
_In_
|
||||
WDFMEMORY Memory,
|
||||
|
@ -311,7 +311,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFMEMORYCOPYTOBUFFER)(
|
||||
(STDCALL *PFN_WDFMEMORYCOPYTOBUFFER)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -327,8 +327,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfMemoryCopyToBuffer(
|
||||
_In_
|
||||
WDFMEMORY SourceMemory,
|
||||
|
@ -352,7 +352,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFMEMORYCOPYFROMBUFFER)(
|
||||
(STDCALL *PFN_WDFMEMORYCOPYFROMBUFFER)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -368,8 +368,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfMemoryCopyFromBuffer(
|
||||
_In_
|
||||
WDFMEMORY DestinationMemory,
|
||||
|
@ -394,7 +394,7 @@ _When_(PoolType == 1 || PoolType == 257, _IRQL_requires_max_(APC_LEVEL))
|
|||
_When_(PoolType == 0 || PoolType == 256, _IRQL_requires_max_(DISPATCH_LEVEL))
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFLOOKASIDELISTCREATE)(
|
||||
(STDCALL *PFN_WDFLOOKASIDELISTCREATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_opt_
|
||||
|
@ -416,8 +416,8 @@ NTSTATUS
|
|||
_Must_inspect_result_
|
||||
_When_(PoolType == 1 || PoolType == 257, _IRQL_requires_max_(APC_LEVEL))
|
||||
_When_(PoolType == 0 || PoolType == 256, _IRQL_requires_max_(DISPATCH_LEVEL))
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfLookasideListCreate(
|
||||
_In_opt_
|
||||
PWDF_OBJECT_ATTRIBUTES LookasideAttributes,
|
||||
|
@ -446,7 +446,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFMEMORYCREATEFROMLOOKASIDE)(
|
||||
(STDCALL *PFN_WDFMEMORYCREATEFROMLOOKASIDE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -457,8 +457,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfMemoryCreateFromLookaside(
|
||||
_In_
|
||||
WDFLOOKASIDE Lookaside,
|
||||
|
|
|
@ -57,7 +57,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFDEVICEMINIPORTCREATE)(
|
||||
(STDCALL *PFN_WDFDEVICEMINIPORTCREATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -76,8 +76,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfDeviceMiniportCreate(
|
||||
_In_
|
||||
WDFDRIVER Driver,
|
||||
|
@ -102,15 +102,15 @@ WdfDeviceMiniportCreate(
|
|||
typedef
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFDRIVERMINIPORTUNLOAD)(
|
||||
(STDCALL *PFN_WDFDRIVERMINIPORTUNLOAD)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
WDFDRIVER Driver
|
||||
);
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfDriverMiniportUnload(
|
||||
_In_
|
||||
WDFDRIVER Driver
|
||||
|
|
|
@ -73,6 +73,7 @@ _Function_class_(EVT_WDF_OBJECT_CONTEXT_CLEANUP)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_OBJECT_CONTEXT_CLEANUP(
|
||||
_In_
|
||||
WDFOBJECT Object
|
||||
|
@ -85,6 +86,7 @@ _Function_class_(EVT_WDF_OBJECT_CONTEXT_DESTROY)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_OBJECT_CONTEXT_DESTROY(
|
||||
_In_
|
||||
WDFOBJECT Object
|
||||
|
@ -140,8 +142,8 @@ typedef struct _WDF_OBJECT_ATTRIBUTES {
|
|||
|
||||
} WDF_OBJECT_ATTRIBUTES, *PWDF_OBJECT_ATTRIBUTES;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_OBJECT_ATTRIBUTES_INIT(
|
||||
_Out_ PWDF_OBJECT_ATTRIBUTES Attributes
|
||||
)
|
||||
|
@ -316,9 +318,8 @@ typedef struct _WDF_OBJECT_CONTEXT_TYPE_INFO {
|
|||
typedef _contexttype* WDF_TYPE_NAME_POINTER_TYPE(_contexttype); \
|
||||
\
|
||||
WDF_EXTERN_C \
|
||||
__declspec(allocate( _section )) \
|
||||
__declspec(selectany) \
|
||||
extern const WDF_OBJECT_CONTEXT_TYPE_INFO \
|
||||
DECLSPEC_SELECTANY \
|
||||
const WDF_OBJECT_CONTEXT_TYPE_INFO \
|
||||
WDF_TYPE_NAME_TO_TYPE_INFO(_contexttype) = \
|
||||
{ \
|
||||
sizeof(WDF_OBJECT_CONTEXT_TYPE_INFO), \
|
||||
|
@ -327,13 +328,14 @@ WDF_TYPE_NAME_TO_TYPE_INFO(_contexttype) = \
|
|||
_UniqueType, \
|
||||
_GetUniqueType, \
|
||||
}; \
|
||||
//__declspec(allocate(_section))
|
||||
|
||||
#define WDF_DECLARE_CASTING_FUNCTION(_contexttype, _castingfunction) \
|
||||
\
|
||||
WDF_EXTERN_C \
|
||||
__drv_aliasesMem \
|
||||
WDF_TYPE_NAME_POINTER_TYPE(_contexttype) \
|
||||
FORCEINLINE \
|
||||
WDF_TYPE_NAME_POINTER_TYPE(_contexttype) \
|
||||
_castingfunction( \
|
||||
_In_ WDFOBJECT Handle \
|
||||
) \
|
||||
|
@ -448,8 +450,8 @@ WDF_DECLARE_CONTEXT_TYPE_WITH_NAME( \
|
|||
); \
|
||||
\
|
||||
WDF_EXTERN_C \
|
||||
NTSTATUS \
|
||||
FORCEINLINE \
|
||||
NTSTATUS \
|
||||
WDF_ADD_CUSTOM_TYPE_FUNCTION_NAME(_type)( \
|
||||
_In_ WDFOBJECT Handle, \
|
||||
_In_opt_ ULONG_PTR Data, \
|
||||
|
@ -551,8 +553,8 @@ PVOID
|
|||
PCWDF_OBJECT_CONTEXT_TYPE_INFO TypeInfo
|
||||
);
|
||||
|
||||
PVOID
|
||||
FORCEINLINE
|
||||
PVOID
|
||||
WdfObjectGetTypedContextWorker(
|
||||
_In_
|
||||
WDFOBJECT Handle,
|
||||
|
@ -569,7 +571,7 @@ WdfObjectGetTypedContextWorker(
|
|||
typedef
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFOBJECTALLOCATECONTEXT)(
|
||||
(STDCALL *PFN_WDFOBJECTALLOCATECONTEXT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -580,8 +582,8 @@ NTSTATUS
|
|||
PVOID* Context
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfObjectAllocateContext(
|
||||
_In_
|
||||
WDFOBJECT Handle,
|
||||
|
@ -607,8 +609,8 @@ WDFOBJECT
|
|||
PVOID ContextPointer
|
||||
);
|
||||
|
||||
WDFOBJECT
|
||||
FORCEINLINE
|
||||
WDFOBJECT
|
||||
WdfObjectContextGetObject(
|
||||
_In_
|
||||
PVOID ContextPointer
|
||||
|
@ -623,7 +625,7 @@ WdfObjectContextGetObject(
|
|||
typedef
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFOBJECTREFERENCEACTUAL)(
|
||||
(STDCALL *PFN_WDFOBJECTREFERENCEACTUAL)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -636,8 +638,8 @@ VOID
|
|||
PCHAR File
|
||||
);
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfObjectReferenceActual(
|
||||
_In_
|
||||
WDFOBJECT Handle,
|
||||
|
@ -658,7 +660,7 @@ WdfObjectReferenceActual(
|
|||
typedef
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFOBJECTDEREFERENCEACTUAL)(
|
||||
(STDCALL *PFN_WDFOBJECTDEREFERENCEACTUAL)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -671,8 +673,8 @@ VOID
|
|||
PCHAR File
|
||||
);
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfObjectDereferenceActual(
|
||||
_In_
|
||||
WDFOBJECT Handle,
|
||||
|
@ -695,7 +697,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFOBJECTCREATE)(
|
||||
(STDCALL *PFN_WDFOBJECTCREATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_opt_
|
||||
|
@ -706,8 +708,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfObjectCreate(
|
||||
_In_opt_
|
||||
PWDF_OBJECT_ATTRIBUTES Attributes,
|
||||
|
@ -725,7 +727,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFOBJECTDELETE)(
|
||||
(STDCALL *PFN_WDFOBJECTDELETE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -733,8 +735,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfObjectDelete(
|
||||
_In_
|
||||
WDFOBJECT Object
|
||||
|
@ -751,7 +753,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFOBJECTQUERY)(
|
||||
(STDCALL *PFN_WDFOBJECTQUERY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -766,8 +768,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfObjectQuery(
|
||||
_In_
|
||||
WDFOBJECT Object,
|
||||
|
|
|
@ -54,6 +54,7 @@ _Function_class_(EVT_WDF_DEVICE_RESOURCES_QUERY)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_DEVICE_RESOURCES_QUERY(
|
||||
_In_
|
||||
WDFDEVICE Device,
|
||||
|
@ -68,6 +69,7 @@ _Function_class_(EVT_WDF_DEVICE_RESOURCE_REQUIREMENTS_QUERY)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_DEVICE_RESOURCE_REQUIREMENTS_QUERY(
|
||||
_In_
|
||||
WDFDEVICE Device,
|
||||
|
@ -82,6 +84,7 @@ _Function_class_(EVT_WDF_DEVICE_EJECT)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_DEVICE_EJECT(
|
||||
_In_
|
||||
WDFDEVICE Device
|
||||
|
@ -94,6 +97,7 @@ _Function_class_(EVT_WDF_DEVICE_SET_LOCK)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_DEVICE_SET_LOCK(
|
||||
_In_
|
||||
WDFDEVICE Device,
|
||||
|
@ -108,6 +112,7 @@ _Function_class_(EVT_WDF_DEVICE_ENABLE_WAKE_AT_BUS)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_DEVICE_ENABLE_WAKE_AT_BUS(
|
||||
_In_
|
||||
WDFDEVICE Device,
|
||||
|
@ -122,6 +127,7 @@ _Function_class_(EVT_WDF_DEVICE_DISABLE_WAKE_AT_BUS)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_DEVICE_DISABLE_WAKE_AT_BUS(
|
||||
_In_
|
||||
WDFDEVICE Device
|
||||
|
@ -134,6 +140,7 @@ _Function_class_(EVT_WDF_DEVICE_REPORTED_MISSING)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_DEVICE_REPORTED_MISSING(
|
||||
_In_
|
||||
WDFDEVICE Device
|
||||
|
@ -187,8 +194,8 @@ typedef struct _WDF_PDO_EVENT_CALLBACKS {
|
|||
|
||||
} WDF_PDO_EVENT_CALLBACKS, *PWDF_PDO_EVENT_CALLBACKS;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_PDO_EVENT_CALLBACKS_INIT(
|
||||
_Out_ PWDF_PDO_EVENT_CALLBACKS Callbacks
|
||||
)
|
||||
|
@ -205,7 +212,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
PWDFDEVICE_INIT
|
||||
(*PFN_WDFPDOINITALLOCATE)(
|
||||
(STDCALL *PFN_WDFPDOINITALLOCATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -214,8 +221,8 @@ PWDFDEVICE_INIT
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
PWDFDEVICE_INIT
|
||||
FORCEINLINE
|
||||
PWDFDEVICE_INIT
|
||||
WdfPdoInitAllocate(
|
||||
_In_
|
||||
WDFDEVICE ParentDevice
|
||||
|
@ -231,7 +238,7 @@ typedef
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFPDOINITSETEVENTCALLBACKS)(
|
||||
(STDCALL *PFN_WDFPDOINITSETEVENTCALLBACKS)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -241,8 +248,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfPdoInitSetEventCallbacks(
|
||||
_In_
|
||||
PWDFDEVICE_INIT DeviceInit,
|
||||
|
@ -261,7 +268,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFPDOINITASSIGNDEVICEID)(
|
||||
(STDCALL *PFN_WDFPDOINITASSIGNDEVICEID)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -272,8 +279,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfPdoInitAssignDeviceID(
|
||||
_In_
|
||||
PWDFDEVICE_INIT DeviceInit,
|
||||
|
@ -292,7 +299,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFPDOINITASSIGNINSTANCEID)(
|
||||
(STDCALL *PFN_WDFPDOINITASSIGNINSTANCEID)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -303,8 +310,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfPdoInitAssignInstanceID(
|
||||
_In_
|
||||
PWDFDEVICE_INIT DeviceInit,
|
||||
|
@ -323,7 +330,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFPDOINITADDHARDWAREID)(
|
||||
(STDCALL *PFN_WDFPDOINITADDHARDWAREID)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -334,8 +341,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfPdoInitAddHardwareID(
|
||||
_In_
|
||||
PWDFDEVICE_INIT DeviceInit,
|
||||
|
@ -354,7 +361,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFPDOINITADDCOMPATIBLEID)(
|
||||
(STDCALL *PFN_WDFPDOINITADDCOMPATIBLEID)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -365,8 +372,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfPdoInitAddCompatibleID(
|
||||
_In_
|
||||
PWDFDEVICE_INIT DeviceInit,
|
||||
|
@ -385,7 +392,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFPDOINITASSIGNCONTAINERID)(
|
||||
(STDCALL *PFN_WDFPDOINITASSIGNCONTAINERID)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -396,8 +403,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfPdoInitAssignContainerID(
|
||||
_In_
|
||||
PWDFDEVICE_INIT DeviceInit,
|
||||
|
@ -416,7 +423,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFPDOINITADDDEVICETEXT)(
|
||||
(STDCALL *PFN_WDFPDOINITADDDEVICETEXT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -431,8 +438,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfPdoInitAddDeviceText(
|
||||
_In_
|
||||
PWDFDEVICE_INIT DeviceInit,
|
||||
|
@ -454,7 +461,7 @@ typedef
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFPDOINITSETDEFAULTLOCALE)(
|
||||
(STDCALL *PFN_WDFPDOINITSETDEFAULTLOCALE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -464,8 +471,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfPdoInitSetDefaultLocale(
|
||||
_In_
|
||||
PWDFDEVICE_INIT DeviceInit,
|
||||
|
@ -484,7 +491,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFPDOINITASSIGNRAWDEVICE)(
|
||||
(STDCALL *PFN_WDFPDOINITASSIGNRAWDEVICE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -495,8 +502,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfPdoInitAssignRawDevice(
|
||||
_In_
|
||||
PWDFDEVICE_INIT DeviceInit,
|
||||
|
@ -514,7 +521,7 @@ typedef
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFPDOINITALLOWFORWARDINGREQUESTTOPARENT)(
|
||||
(STDCALL *PFN_WDFPDOINITALLOWFORWARDINGREQUESTTOPARENT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -522,8 +529,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfPdoInitAllowForwardingRequestToParent(
|
||||
_In_
|
||||
PWDFDEVICE_INIT DeviceInit
|
||||
|
@ -540,7 +547,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFPDOMARKMISSING)(
|
||||
(STDCALL *PFN_WDFPDOMARKMISSING)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -549,8 +556,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfPdoMarkMissing(
|
||||
_In_
|
||||
WDFDEVICE Device
|
||||
|
@ -566,7 +573,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFPDOREQUESTEJECT)(
|
||||
(STDCALL *PFN_WDFPDOREQUESTEJECT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -574,8 +581,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfPdoRequestEject(
|
||||
_In_
|
||||
WDFDEVICE Device
|
||||
|
@ -591,7 +598,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDFDEVICE
|
||||
(*PFN_WDFPDOGETPARENT)(
|
||||
(STDCALL *PFN_WDFPDOGETPARENT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -599,8 +606,8 @@ WDFDEVICE
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFDEVICE
|
||||
FORCEINLINE
|
||||
WDFDEVICE
|
||||
WdfPdoGetParent(
|
||||
_In_
|
||||
WDFDEVICE Device
|
||||
|
@ -617,7 +624,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFPDORETRIEVEIDENTIFICATIONDESCRIPTION)(
|
||||
(STDCALL *PFN_WDFPDORETRIEVEIDENTIFICATIONDESCRIPTION)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -628,8 +635,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfPdoRetrieveIdentificationDescription(
|
||||
_In_
|
||||
WDFDEVICE Device,
|
||||
|
@ -648,7 +655,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFPDORETRIEVEADDRESSDESCRIPTION)(
|
||||
(STDCALL *PFN_WDFPDORETRIEVEADDRESSDESCRIPTION)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -659,8 +666,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfPdoRetrieveAddressDescription(
|
||||
_In_
|
||||
WDFDEVICE Device,
|
||||
|
@ -679,7 +686,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFPDOUPDATEADDRESSDESCRIPTION)(
|
||||
(STDCALL *PFN_WDFPDOUPDATEADDRESSDESCRIPTION)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -690,8 +697,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfPdoUpdateAddressDescription(
|
||||
_In_
|
||||
WDFDEVICE Device,
|
||||
|
@ -710,7 +717,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFPDOADDEJECTIONRELATIONSPHYSICALDEVICE)(
|
||||
(STDCALL *PFN_WDFPDOADDEJECTIONRELATIONSPHYSICALDEVICE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -721,8 +728,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfPdoAddEjectionRelationsPhysicalDevice(
|
||||
_In_
|
||||
WDFDEVICE Device,
|
||||
|
@ -740,7 +747,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFPDOREMOVEEJECTIONRELATIONSPHYSICALDEVICE)(
|
||||
(STDCALL *PFN_WDFPDOREMOVEEJECTIONRELATIONSPHYSICALDEVICE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -750,8 +757,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfPdoRemoveEjectionRelationsPhysicalDevice(
|
||||
_In_
|
||||
WDFDEVICE Device,
|
||||
|
@ -769,7 +776,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFPDOCLEAREJECTIONRELATIONSDEVICES)(
|
||||
(STDCALL *PFN_WDFPDOCLEAREJECTIONRELATIONSDEVICES)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -777,8 +784,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfPdoClearEjectionRelationsDevices(
|
||||
_In_
|
||||
WDFDEVICE Device
|
||||
|
|
|
@ -54,6 +54,7 @@ _Function_class_(EVT_WDF_DEVICE_PROCESS_QUERY_INTERFACE_REQUEST)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_DEVICE_PROCESS_QUERY_INTERFACE_REQUEST(
|
||||
_In_
|
||||
WDFDEVICE Device,
|
||||
|
@ -125,8 +126,8 @@ typedef struct _WDF_QUERY_INTERFACE_CONFIG {
|
|||
|
||||
} WDF_QUERY_INTERFACE_CONFIG, *PWDF_QUERY_INTERFACE_CONFIG;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_QUERY_INTERFACE_CONFIG_INIT(
|
||||
_Out_ PWDF_QUERY_INTERFACE_CONFIG InterfaceConfig,
|
||||
_In_opt_ PINTERFACE Interface,
|
||||
|
@ -151,7 +152,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFDEVICEADDQUERYINTERFACE)(
|
||||
(STDCALL *PFN_WDFDEVICEADDQUERYINTERFACE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -162,8 +163,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfDeviceAddQueryInterface(
|
||||
_In_
|
||||
WDFDEVICE Device,
|
||||
|
@ -187,8 +188,8 @@ WdfDeviceAddQueryInterface(
|
|||
// interfaces which can be queried for and used independent of the PNP state of
|
||||
// the WDFDEVICE the interface was retrieved from.
|
||||
//
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfDeviceInterfaceReferenceNoOp(
|
||||
_In_ PVOID Context
|
||||
)
|
||||
|
@ -196,8 +197,8 @@ WdfDeviceInterfaceReferenceNoOp(
|
|||
UNREFERENCED_PARAMETER(Context);
|
||||
}
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfDeviceInterfaceDereferenceNoOp(
|
||||
_In_ PVOID Context
|
||||
)
|
||||
|
|
|
@ -62,7 +62,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREGISTRYOPENKEY)(
|
||||
(STDCALL *PFN_WDFREGISTRYOPENKEY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_opt_
|
||||
|
@ -79,8 +79,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRegistryOpenKey(
|
||||
_In_opt_
|
||||
WDFKEY ParentKey,
|
||||
|
@ -105,7 +105,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREGISTRYCREATEKEY)(
|
||||
(STDCALL *PFN_WDFREGISTRYCREATEKEY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_opt_
|
||||
|
@ -126,8 +126,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRegistryCreateKey(
|
||||
_In_opt_
|
||||
WDFKEY ParentKey,
|
||||
|
@ -155,7 +155,7 @@ typedef
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFREGISTRYCLOSE)(
|
||||
(STDCALL *PFN_WDFREGISTRYCLOSE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -163,8 +163,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfRegistryClose(
|
||||
_In_
|
||||
WDFKEY Key
|
||||
|
@ -180,7 +180,7 @@ typedef
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
HANDLE
|
||||
(*PFN_WDFREGISTRYWDMGETHANDLE)(
|
||||
(STDCALL *PFN_WDFREGISTRYWDMGETHANDLE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -188,8 +188,8 @@ HANDLE
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
HANDLE
|
||||
FORCEINLINE
|
||||
HANDLE
|
||||
WdfRegistryWdmGetHandle(
|
||||
_In_
|
||||
WDFKEY Key
|
||||
|
@ -206,7 +206,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREGISTRYREMOVEKEY)(
|
||||
(STDCALL *PFN_WDFREGISTRYREMOVEKEY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -215,8 +215,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRegistryRemoveKey(
|
||||
_In_
|
||||
WDFKEY Key
|
||||
|
@ -233,7 +233,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREGISTRYREMOVEVALUE)(
|
||||
(STDCALL *PFN_WDFREGISTRYREMOVEVALUE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -244,8 +244,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRegistryRemoveValue(
|
||||
_In_
|
||||
WDFKEY Key,
|
||||
|
@ -264,7 +264,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREGISTRYQUERYVALUE)(
|
||||
(STDCALL *PFN_WDFREGISTRYQUERYVALUE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -283,8 +283,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRegistryQueryValue(
|
||||
_In_
|
||||
WDFKEY Key,
|
||||
|
@ -311,7 +311,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREGISTRYQUERYMEMORY)(
|
||||
(STDCALL *PFN_WDFREGISTRYQUERYMEMORY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -331,8 +331,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRegistryQueryMemory(
|
||||
_In_
|
||||
WDFKEY Key,
|
||||
|
@ -360,7 +360,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREGISTRYQUERYMULTISTRING)(
|
||||
(STDCALL *PFN_WDFREGISTRYQUERYMULTISTRING)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -375,8 +375,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRegistryQueryMultiString(
|
||||
_In_
|
||||
WDFKEY Key,
|
||||
|
@ -399,7 +399,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREGISTRYQUERYUNICODESTRING)(
|
||||
(STDCALL *PFN_WDFREGISTRYQUERYUNICODESTRING)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -414,8 +414,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRegistryQueryUnicodeString(
|
||||
_In_
|
||||
WDFKEY Key,
|
||||
|
@ -438,7 +438,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREGISTRYQUERYSTRING)(
|
||||
(STDCALL *PFN_WDFREGISTRYQUERYSTRING)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -451,8 +451,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRegistryQueryString(
|
||||
_In_
|
||||
WDFKEY Key,
|
||||
|
@ -473,7 +473,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREGISTRYQUERYULONG)(
|
||||
(STDCALL *PFN_WDFREGISTRYQUERYULONG)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -486,8 +486,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRegistryQueryULong(
|
||||
_In_
|
||||
WDFKEY Key,
|
||||
|
@ -508,7 +508,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREGISTRYASSIGNVALUE)(
|
||||
(STDCALL *PFN_WDFREGISTRYASSIGNVALUE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -525,8 +525,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRegistryAssignValue(
|
||||
_In_
|
||||
WDFKEY Key,
|
||||
|
@ -551,7 +551,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREGISTRYASSIGNMEMORY)(
|
||||
(STDCALL *PFN_WDFREGISTRYASSIGNMEMORY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -568,8 +568,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRegistryAssignMemory(
|
||||
_In_
|
||||
WDFKEY Key,
|
||||
|
@ -594,7 +594,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREGISTRYASSIGNMULTISTRING)(
|
||||
(STDCALL *PFN_WDFREGISTRYASSIGNMULTISTRING)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -607,8 +607,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRegistryAssignMultiString(
|
||||
_In_
|
||||
WDFKEY Key,
|
||||
|
@ -629,7 +629,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREGISTRYASSIGNUNICODESTRING)(
|
||||
(STDCALL *PFN_WDFREGISTRYASSIGNUNICODESTRING)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -642,8 +642,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRegistryAssignUnicodeString(
|
||||
_In_
|
||||
WDFKEY Key,
|
||||
|
@ -664,7 +664,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREGISTRYASSIGNSTRING)(
|
||||
(STDCALL *PFN_WDFREGISTRYASSIGNSTRING)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -677,8 +677,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRegistryAssignString(
|
||||
_In_
|
||||
WDFKEY Key,
|
||||
|
@ -699,7 +699,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREGISTRYASSIGNULONG)(
|
||||
(STDCALL *PFN_WDFREGISTRYASSIGNULONG)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -712,8 +712,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRegistryAssignULong(
|
||||
_In_
|
||||
WDFKEY Key,
|
||||
|
|
|
@ -53,7 +53,7 @@ WDF_EXTERN_C_START
|
|||
// Types
|
||||
//
|
||||
|
||||
typedef enum _WDF_REQUEST_TYPE {
|
||||
/* typedef enum _WDF_REQUEST_TYPE { // declaration moved to wdfdevice.h
|
||||
WdfRequestTypeCreate = 0x0,
|
||||
WdfRequestTypeCreateNamedPipe = 0x1,
|
||||
WdfRequestTypeClose = 0x2,
|
||||
|
@ -86,7 +86,7 @@ typedef enum _WDF_REQUEST_TYPE {
|
|||
WdfRequestTypeUsb = 0x40,
|
||||
WdfRequestTypeNoFormat = 0xFF,
|
||||
WdfRequestTypeMax,
|
||||
} WDF_REQUEST_TYPE;
|
||||
} WDF_REQUEST_TYPE; */
|
||||
|
||||
typedef enum _WDF_REQUEST_REUSE_FLAGS {
|
||||
WDF_REQUEST_REUSE_NO_FLAGS = 0x00000000,
|
||||
|
@ -121,6 +121,7 @@ _Function_class_(EVT_WDF_REQUEST_CANCEL)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_REQUEST_CANCEL(
|
||||
_In_
|
||||
WDFREQUEST Request
|
||||
|
@ -205,8 +206,8 @@ typedef struct _WDF_REQUEST_PARAMETERS {
|
|||
|
||||
} WDF_REQUEST_PARAMETERS, *PWDF_REQUEST_PARAMETERS;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_REQUEST_PARAMETERS_INIT(
|
||||
_Out_ PWDF_REQUEST_PARAMETERS Parameters
|
||||
)
|
||||
|
@ -282,8 +283,8 @@ typedef struct _WDF_REQUEST_COMPLETION_PARAMS {
|
|||
|
||||
} WDF_REQUEST_COMPLETION_PARAMS, *PWDF_REQUEST_COMPLETION_PARAMS;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_REQUEST_COMPLETION_PARAMS_INIT(
|
||||
_Out_ PWDF_REQUEST_COMPLETION_PARAMS Params
|
||||
)
|
||||
|
@ -297,6 +298,7 @@ typedef
|
|||
_Function_class_(EVT_WDF_REQUEST_COMPLETION_ROUTINE)
|
||||
_IRQL_requires_same_
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_REQUEST_COMPLETION_ROUTINE(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -357,8 +359,8 @@ typedef struct _WDF_REQUEST_REUSE_PARAMS {
|
|||
|
||||
} WDF_REQUEST_REUSE_PARAMS, *PWDF_REQUEST_REUSE_PARAMS;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_REQUEST_REUSE_PARAMS_INIT(
|
||||
_Out_ PWDF_REQUEST_REUSE_PARAMS Params,
|
||||
_In_ ULONG Flags,
|
||||
|
@ -372,8 +374,8 @@ WDF_REQUEST_REUSE_PARAMS_INIT(
|
|||
Params->Status = Status;
|
||||
}
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_REQUEST_REUSE_PARAMS_SET_NEW_IRP(
|
||||
_Inout_ PWDF_REQUEST_REUSE_PARAMS Params,
|
||||
_In_ PIRP NewIrp
|
||||
|
@ -402,8 +404,8 @@ typedef struct _WDF_REQUEST_SEND_OPTIONS {
|
|||
|
||||
} WDF_REQUEST_SEND_OPTIONS, *PWDF_REQUEST_SEND_OPTIONS;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_REQUEST_SEND_OPTIONS_INIT(
|
||||
_Out_ PWDF_REQUEST_SEND_OPTIONS Options,
|
||||
_In_ ULONG Flags
|
||||
|
@ -414,8 +416,8 @@ WDF_REQUEST_SEND_OPTIONS_INIT(
|
|||
Options->Flags = Flags;
|
||||
}
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_REQUEST_SEND_OPTIONS_SET_TIMEOUT(
|
||||
_Inout_ PWDF_REQUEST_SEND_OPTIONS Options,
|
||||
_In_ LONGLONG Timeout
|
||||
|
@ -446,8 +448,8 @@ typedef struct _WDF_REQUEST_FORWARD_OPTIONS {
|
|||
//
|
||||
// Default REquest forward initialization macro
|
||||
//
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_REQUEST_FORWARD_OPTIONS_INIT(
|
||||
_Out_ PWDF_REQUEST_FORWARD_OPTIONS ForwardOptions
|
||||
)
|
||||
|
@ -469,7 +471,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREQUESTCREATE)(
|
||||
(STDCALL *PFN_WDFREQUESTCREATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_opt_
|
||||
|
@ -482,8 +484,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRequestCreate(
|
||||
_In_opt_
|
||||
PWDF_OBJECT_ATTRIBUTES RequestAttributes,
|
||||
|
@ -504,7 +506,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREQUESTCREATEFROMIRP)(
|
||||
(STDCALL *PFN_WDFREQUESTCREATEFROMIRP)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_opt_
|
||||
|
@ -519,8 +521,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRequestCreateFromIrp(
|
||||
_In_opt_
|
||||
PWDF_OBJECT_ATTRIBUTES RequestAttributes,
|
||||
|
@ -542,7 +544,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREQUESTREUSE)(
|
||||
(STDCALL *PFN_WDFREQUESTREUSE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -552,8 +554,8 @@ NTSTATUS
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRequestReuse(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -572,7 +574,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREQUESTCHANGETARGET)(
|
||||
(STDCALL *PFN_WDFREQUESTCHANGETARGET)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -583,8 +585,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRequestChangeTarget(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -602,7 +604,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFREQUESTFORMATREQUESTUSINGCURRENTTYPE)(
|
||||
(STDCALL *PFN_WDFREQUESTFORMATREQUESTUSINGCURRENTTYPE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -610,8 +612,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfRequestFormatRequestUsingCurrentType(
|
||||
_In_
|
||||
WDFREQUEST Request
|
||||
|
@ -627,7 +629,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFREQUESTWDMFORMATUSINGSTACKLOCATION)(
|
||||
(STDCALL *PFN_WDFREQUESTWDMFORMATUSINGSTACKLOCATION)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -637,8 +639,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfRequestWdmFormatUsingStackLocation(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -657,7 +659,7 @@ _IRQL_requires_max_(DISPATCH_LEVEL)
|
|||
_When_(Options->Flags & WDF_REQUEST_SEND_OPTION_SYNCHRONOUS == 0, _Must_inspect_result_)
|
||||
WDFAPI
|
||||
BOOLEAN
|
||||
(*PFN_WDFREQUESTSEND)(
|
||||
(STDCALL *PFN_WDFREQUESTSEND)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -670,8 +672,8 @@ BOOLEAN
|
|||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
_When_(Options->Flags & WDF_REQUEST_SEND_OPTION_SYNCHRONOUS == 0, _Must_inspect_result_)
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WdfRequestSend(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -692,7 +694,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREQUESTGETSTATUS)(
|
||||
(STDCALL *PFN_WDFREQUESTGETSTATUS)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -701,8 +703,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRequestGetStatus(
|
||||
_In_
|
||||
WDFREQUEST Request
|
||||
|
@ -718,7 +720,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFREQUESTMARKCANCELABLE)(
|
||||
(STDCALL *PFN_WDFREQUESTMARKCANCELABLE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -728,8 +730,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfRequestMarkCancelable(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -748,7 +750,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREQUESTMARKCANCELABLEEX)(
|
||||
(STDCALL *PFN_WDFREQUESTMARKCANCELABLEEX)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -759,8 +761,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRequestMarkCancelableEx(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -779,7 +781,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREQUESTUNMARKCANCELABLE)(
|
||||
(STDCALL *PFN_WDFREQUESTUNMARKCANCELABLE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -788,8 +790,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRequestUnmarkCancelable(
|
||||
_In_
|
||||
WDFREQUEST Request
|
||||
|
@ -806,7 +808,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
BOOLEAN
|
||||
(*PFN_WDFREQUESTISCANCELED)(
|
||||
(STDCALL *PFN_WDFREQUESTISCANCELED)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -815,8 +817,8 @@ BOOLEAN
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WdfRequestIsCanceled(
|
||||
_In_
|
||||
WDFREQUEST Request
|
||||
|
@ -832,7 +834,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
BOOLEAN
|
||||
(*PFN_WDFREQUESTCANCELSENTREQUEST)(
|
||||
(STDCALL *PFN_WDFREQUESTCANCELSENTREQUEST)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -840,8 +842,8 @@ BOOLEAN
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WdfRequestCancelSentRequest(
|
||||
_In_
|
||||
WDFREQUEST Request
|
||||
|
@ -858,7 +860,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(APC_LEVEL)
|
||||
WDFAPI
|
||||
BOOLEAN
|
||||
(*PFN_WDFREQUESTISFROM32BITPROCESS)(
|
||||
(STDCALL *PFN_WDFREQUESTISFROM32BITPROCESS)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -867,8 +869,8 @@ BOOLEAN
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(APC_LEVEL)
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WdfRequestIsFrom32BitProcess(
|
||||
_In_
|
||||
WDFREQUEST Request
|
||||
|
@ -884,7 +886,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFREQUESTSETCOMPLETIONROUTINE)(
|
||||
(STDCALL *PFN_WDFREQUESTSETCOMPLETIONROUTINE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -896,8 +898,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfRequestSetCompletionRoutine(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -917,7 +919,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFREQUESTGETCOMPLETIONPARAMS)(
|
||||
(STDCALL *PFN_WDFREQUESTGETCOMPLETIONPARAMS)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -927,8 +929,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfRequestGetCompletionParams(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -947,7 +949,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREQUESTALLOCATETIMER)(
|
||||
(STDCALL *PFN_WDFREQUESTALLOCATETIMER)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -956,8 +958,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRequestAllocateTimer(
|
||||
_In_
|
||||
WDFREQUEST Request
|
||||
|
@ -973,7 +975,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFREQUESTCOMPLETE)(
|
||||
(STDCALL *PFN_WDFREQUESTCOMPLETE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -983,8 +985,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfRequestComplete(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -1002,7 +1004,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFREQUESTCOMPLETEWITHPRIORITYBOOST)(
|
||||
(STDCALL *PFN_WDFREQUESTCOMPLETEWITHPRIORITYBOOST)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1014,8 +1016,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfRequestCompleteWithPriorityBoost(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -1035,7 +1037,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFREQUESTCOMPLETEWITHINFORMATION)(
|
||||
(STDCALL *PFN_WDFREQUESTCOMPLETEWITHINFORMATION)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1047,8 +1049,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfRequestCompleteWithInformation(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -1068,7 +1070,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFREQUESTGETPARAMETERS)(
|
||||
(STDCALL *PFN_WDFREQUESTGETPARAMETERS)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1078,8 +1080,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfRequestGetParameters(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -1098,7 +1100,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREQUESTRETRIEVEINPUTMEMORY)(
|
||||
(STDCALL *PFN_WDFREQUESTRETRIEVEINPUTMEMORY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1109,8 +1111,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRequestRetrieveInputMemory(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -1129,7 +1131,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREQUESTRETRIEVEOUTPUTMEMORY)(
|
||||
(STDCALL *PFN_WDFREQUESTRETRIEVEOUTPUTMEMORY)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1140,8 +1142,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRequestRetrieveOutputMemory(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -1160,7 +1162,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREQUESTRETRIEVEINPUTBUFFER)(
|
||||
(STDCALL *PFN_WDFREQUESTRETRIEVEINPUTBUFFER)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1175,8 +1177,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRequestRetrieveInputBuffer(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -1199,7 +1201,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREQUESTRETRIEVEOUTPUTBUFFER)(
|
||||
(STDCALL *PFN_WDFREQUESTRETRIEVEOUTPUTBUFFER)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1214,8 +1216,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRequestRetrieveOutputBuffer(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -1238,7 +1240,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREQUESTRETRIEVEINPUTWDMMDL)(
|
||||
(STDCALL *PFN_WDFREQUESTRETRIEVEINPUTWDMMDL)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1249,8 +1251,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRequestRetrieveInputWdmMdl(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -1269,7 +1271,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREQUESTRETRIEVEOUTPUTWDMMDL)(
|
||||
(STDCALL *PFN_WDFREQUESTRETRIEVEOUTPUTWDMMDL)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1280,8 +1282,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRequestRetrieveOutputWdmMdl(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -1300,7 +1302,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREQUESTRETRIEVEUNSAFEUSERINPUTBUFFER)(
|
||||
(STDCALL *PFN_WDFREQUESTRETRIEVEUNSAFEUSERINPUTBUFFER)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1315,8 +1317,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRequestRetrieveUnsafeUserInputBuffer(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -1339,7 +1341,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREQUESTRETRIEVEUNSAFEUSEROUTPUTBUFFER)(
|
||||
(STDCALL *PFN_WDFREQUESTRETRIEVEUNSAFEUSEROUTPUTBUFFER)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1354,8 +1356,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRequestRetrieveUnsafeUserOutputBuffer(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -1377,7 +1379,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFREQUESTSETINFORMATION)(
|
||||
(STDCALL *PFN_WDFREQUESTSETINFORMATION)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1387,8 +1389,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfRequestSetInformation(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -1406,7 +1408,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
ULONG_PTR
|
||||
(*PFN_WDFREQUESTGETINFORMATION)(
|
||||
(STDCALL *PFN_WDFREQUESTGETINFORMATION)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1414,8 +1416,8 @@ ULONG_PTR
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
ULONG_PTR
|
||||
FORCEINLINE
|
||||
ULONG_PTR
|
||||
WdfRequestGetInformation(
|
||||
_In_
|
||||
WDFREQUEST Request
|
||||
|
@ -1431,7 +1433,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDFFILEOBJECT
|
||||
(*PFN_WDFREQUESTGETFILEOBJECT)(
|
||||
(STDCALL *PFN_WDFREQUESTGETFILEOBJECT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1439,8 +1441,8 @@ WDFFILEOBJECT
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFFILEOBJECT
|
||||
FORCEINLINE
|
||||
WDFFILEOBJECT
|
||||
WdfRequestGetFileObject(
|
||||
_In_
|
||||
WDFREQUEST Request
|
||||
|
@ -1457,7 +1459,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREQUESTPROBEANDLOCKUSERBUFFERFORREAD)(
|
||||
(STDCALL *PFN_WDFREQUESTPROBEANDLOCKUSERBUFFERFORREAD)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1472,8 +1474,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRequestProbeAndLockUserBufferForRead(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -1496,7 +1498,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREQUESTPROBEANDLOCKUSERBUFFERFORWRITE)(
|
||||
(STDCALL *PFN_WDFREQUESTPROBEANDLOCKUSERBUFFERFORWRITE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1511,8 +1513,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRequestProbeAndLockUserBufferForWrite(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -1534,7 +1536,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
KPROCESSOR_MODE
|
||||
(*PFN_WDFREQUESTGETREQUESTORMODE)(
|
||||
(STDCALL *PFN_WDFREQUESTGETREQUESTORMODE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1542,8 +1544,8 @@ KPROCESSOR_MODE
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
KPROCESSOR_MODE
|
||||
FORCEINLINE
|
||||
KPROCESSOR_MODE
|
||||
WdfRequestGetRequestorMode(
|
||||
_In_
|
||||
WDFREQUEST Request
|
||||
|
@ -1560,7 +1562,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREQUESTFORWARDTOIOQUEUE)(
|
||||
(STDCALL *PFN_WDFREQUESTFORWARDTOIOQUEUE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1571,8 +1573,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRequestForwardToIoQueue(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -1590,7 +1592,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDFQUEUE
|
||||
(*PFN_WDFREQUESTGETIOQUEUE)(
|
||||
(STDCALL *PFN_WDFREQUESTGETIOQUEUE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1598,8 +1600,8 @@ WDFQUEUE
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFQUEUE
|
||||
FORCEINLINE
|
||||
WDFQUEUE
|
||||
WdfRequestGetIoQueue(
|
||||
_In_
|
||||
WDFREQUEST Request
|
||||
|
@ -1616,7 +1618,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREQUESTREQUEUE)(
|
||||
(STDCALL *PFN_WDFREQUESTREQUEUE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1625,8 +1627,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRequestRequeue(
|
||||
_In_
|
||||
WDFREQUEST Request
|
||||
|
@ -1642,7 +1644,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFREQUESTSTOPACKNOWLEDGE)(
|
||||
(STDCALL *PFN_WDFREQUESTSTOPACKNOWLEDGE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1652,8 +1654,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfRequestStopAcknowledge(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
@ -1671,7 +1673,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
PIRP
|
||||
(*PFN_WDFREQUESTWDMGETIRP)(
|
||||
(STDCALL *PFN_WDFREQUESTWDMGETIRP)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1679,8 +1681,8 @@ PIRP
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
PIRP
|
||||
FORCEINLINE
|
||||
PIRP
|
||||
WdfRequestWdmGetIrp(
|
||||
_In_
|
||||
WDFREQUEST Request
|
||||
|
@ -1696,7 +1698,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
BOOLEAN
|
||||
(*PFN_WDFREQUESTISRESERVED)(
|
||||
(STDCALL *PFN_WDFREQUESTISRESERVED)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1704,8 +1706,8 @@ BOOLEAN
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WdfRequestIsReserved(
|
||||
_In_
|
||||
WDFREQUEST Request
|
||||
|
@ -1722,7 +1724,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFREQUESTFORWARDTOPARENTDEVICEIOQUEUE)(
|
||||
(STDCALL *PFN_WDFREQUESTFORWARDTOPARENTDEVICEIOQUEUE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -1735,8 +1737,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfRequestForwardToParentDeviceIoQueue(
|
||||
_In_
|
||||
WDFREQUEST Request,
|
||||
|
|
|
@ -58,7 +58,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFIORESOURCEREQUIREMENTSLISTSETSLOTNUMBER)(
|
||||
(STDCALL *PFN_WDFIORESOURCEREQUIREMENTSLISTSETSLOTNUMBER)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -68,8 +68,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfIoResourceRequirementsListSetSlotNumber(
|
||||
_In_
|
||||
WDFIORESREQLIST RequirementsList,
|
||||
|
@ -87,7 +87,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFIORESOURCEREQUIREMENTSLISTSETINTERFACETYPE)(
|
||||
(STDCALL *PFN_WDFIORESOURCEREQUIREMENTSLISTSETINTERFACETYPE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -98,8 +98,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfIoResourceRequirementsListSetInterfaceType(
|
||||
_In_
|
||||
WDFIORESREQLIST RequirementsList,
|
||||
|
@ -119,7 +119,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIORESOURCEREQUIREMENTSLISTAPPENDIORESLIST)(
|
||||
(STDCALL *PFN_WDFIORESOURCEREQUIREMENTSLISTAPPENDIORESLIST)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -130,8 +130,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoResourceRequirementsListAppendIoResList(
|
||||
_In_
|
||||
WDFIORESREQLIST RequirementsList,
|
||||
|
@ -150,7 +150,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIORESOURCEREQUIREMENTSLISTINSERTIORESLIST)(
|
||||
(STDCALL *PFN_WDFIORESOURCEREQUIREMENTSLISTINSERTIORESLIST)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -163,8 +163,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoResourceRequirementsListInsertIoResList(
|
||||
_In_
|
||||
WDFIORESREQLIST RequirementsList,
|
||||
|
@ -184,7 +184,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
ULONG
|
||||
(*PFN_WDFIORESOURCEREQUIREMENTSLISTGETCOUNT)(
|
||||
(STDCALL *PFN_WDFIORESOURCEREQUIREMENTSLISTGETCOUNT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -192,8 +192,8 @@ ULONG
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
ULONG
|
||||
FORCEINLINE
|
||||
ULONG
|
||||
WdfIoResourceRequirementsListGetCount(
|
||||
_In_
|
||||
WDFIORESREQLIST RequirementsList
|
||||
|
@ -209,7 +209,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDFIORESLIST
|
||||
(*PFN_WDFIORESOURCEREQUIREMENTSLISTGETIORESLIST)(
|
||||
(STDCALL *PFN_WDFIORESOURCEREQUIREMENTSLISTGETIORESLIST)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -219,8 +219,8 @@ WDFIORESLIST
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFIORESLIST
|
||||
FORCEINLINE
|
||||
WDFIORESLIST
|
||||
WdfIoResourceRequirementsListGetIoResList(
|
||||
_In_
|
||||
WDFIORESREQLIST RequirementsList,
|
||||
|
@ -238,7 +238,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFIORESOURCEREQUIREMENTSLISTREMOVE)(
|
||||
(STDCALL *PFN_WDFIORESOURCEREQUIREMENTSLISTREMOVE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -248,8 +248,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfIoResourceRequirementsListRemove(
|
||||
_In_
|
||||
WDFIORESREQLIST RequirementsList,
|
||||
|
@ -267,7 +267,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFIORESOURCEREQUIREMENTSLISTREMOVEBYIORESLIST)(
|
||||
(STDCALL *PFN_WDFIORESOURCEREQUIREMENTSLISTREMOVEBYIORESLIST)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -277,8 +277,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfIoResourceRequirementsListRemoveByIoResList(
|
||||
_In_
|
||||
WDFIORESREQLIST RequirementsList,
|
||||
|
@ -297,7 +297,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIORESOURCELISTCREATE)(
|
||||
(STDCALL *PFN_WDFIORESOURCELISTCREATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -310,8 +310,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoResourceListCreate(
|
||||
_In_
|
||||
WDFIORESREQLIST RequirementsList,
|
||||
|
@ -332,7 +332,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIORESOURCELISTAPPENDDESCRIPTOR)(
|
||||
(STDCALL *PFN_WDFIORESOURCELISTAPPENDDESCRIPTOR)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -343,8 +343,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoResourceListAppendDescriptor(
|
||||
_In_
|
||||
WDFIORESLIST ResourceList,
|
||||
|
@ -363,7 +363,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFIORESOURCELISTINSERTDESCRIPTOR)(
|
||||
(STDCALL *PFN_WDFIORESOURCELISTINSERTDESCRIPTOR)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -376,8 +376,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfIoResourceListInsertDescriptor(
|
||||
_In_
|
||||
WDFIORESLIST ResourceList,
|
||||
|
@ -397,7 +397,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFIORESOURCELISTUPDATEDESCRIPTOR)(
|
||||
(STDCALL *PFN_WDFIORESOURCELISTUPDATEDESCRIPTOR)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -409,8 +409,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfIoResourceListUpdateDescriptor(
|
||||
_In_
|
||||
WDFIORESLIST ResourceList,
|
||||
|
@ -430,7 +430,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
ULONG
|
||||
(*PFN_WDFIORESOURCELISTGETCOUNT)(
|
||||
(STDCALL *PFN_WDFIORESOURCELISTGETCOUNT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -438,8 +438,8 @@ ULONG
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
ULONG
|
||||
FORCEINLINE
|
||||
ULONG
|
||||
WdfIoResourceListGetCount(
|
||||
_In_
|
||||
WDFIORESLIST ResourceList
|
||||
|
@ -455,7 +455,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
PIO_RESOURCE_DESCRIPTOR
|
||||
(*PFN_WDFIORESOURCELISTGETDESCRIPTOR)(
|
||||
(STDCALL *PFN_WDFIORESOURCELISTGETDESCRIPTOR)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -465,8 +465,8 @@ PIO_RESOURCE_DESCRIPTOR
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
PIO_RESOURCE_DESCRIPTOR
|
||||
FORCEINLINE
|
||||
PIO_RESOURCE_DESCRIPTOR
|
||||
WdfIoResourceListGetDescriptor(
|
||||
_In_
|
||||
WDFIORESLIST ResourceList,
|
||||
|
@ -484,7 +484,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFIORESOURCELISTREMOVE)(
|
||||
(STDCALL *PFN_WDFIORESOURCELISTREMOVE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -494,8 +494,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfIoResourceListRemove(
|
||||
_In_
|
||||
WDFIORESLIST ResourceList,
|
||||
|
@ -513,7 +513,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFIORESOURCELISTREMOVEBYDESCRIPTOR)(
|
||||
(STDCALL *PFN_WDFIORESOURCELISTREMOVEBYDESCRIPTOR)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -523,8 +523,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfIoResourceListRemoveByDescriptor(
|
||||
_In_
|
||||
WDFIORESLIST ResourceList,
|
||||
|
@ -543,7 +543,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFCMRESOURCELISTAPPENDDESCRIPTOR)(
|
||||
(STDCALL *PFN_WDFCMRESOURCELISTAPPENDDESCRIPTOR)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -554,8 +554,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfCmResourceListAppendDescriptor(
|
||||
_In_
|
||||
WDFCMRESLIST List,
|
||||
|
@ -574,7 +574,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFCMRESOURCELISTINSERTDESCRIPTOR)(
|
||||
(STDCALL *PFN_WDFCMRESOURCELISTINSERTDESCRIPTOR)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -587,8 +587,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfCmResourceListInsertDescriptor(
|
||||
_In_
|
||||
WDFCMRESLIST List,
|
||||
|
@ -608,7 +608,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
ULONG
|
||||
(*PFN_WDFCMRESOURCELISTGETCOUNT)(
|
||||
(STDCALL *PFN_WDFCMRESOURCELISTGETCOUNT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -616,8 +616,8 @@ ULONG
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
ULONG
|
||||
FORCEINLINE
|
||||
ULONG
|
||||
WdfCmResourceListGetCount(
|
||||
_In_
|
||||
WDFCMRESLIST List
|
||||
|
@ -633,7 +633,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
PCM_PARTIAL_RESOURCE_DESCRIPTOR
|
||||
(*PFN_WDFCMRESOURCELISTGETDESCRIPTOR)(
|
||||
(STDCALL *PFN_WDFCMRESOURCELISTGETDESCRIPTOR)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -643,8 +643,8 @@ PCM_PARTIAL_RESOURCE_DESCRIPTOR
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
PCM_PARTIAL_RESOURCE_DESCRIPTOR
|
||||
FORCEINLINE
|
||||
PCM_PARTIAL_RESOURCE_DESCRIPTOR
|
||||
WdfCmResourceListGetDescriptor(
|
||||
_In_
|
||||
WDFCMRESLIST List,
|
||||
|
@ -662,7 +662,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFCMRESOURCELISTREMOVE)(
|
||||
(STDCALL *PFN_WDFCMRESOURCELISTREMOVE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -672,8 +672,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfCmResourceListRemove(
|
||||
_In_
|
||||
WDFCMRESLIST List,
|
||||
|
@ -691,7 +691,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFCMRESOURCELISTREMOVEBYDESCRIPTOR)(
|
||||
(STDCALL *PFN_WDFCMRESOURCELISTREMOVEBYDESCRIPTOR)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -701,8 +701,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfCmResourceListRemoveByDescriptor(
|
||||
_In_
|
||||
WDFCMRESLIST List,
|
||||
|
|
|
@ -57,7 +57,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFSTRINGCREATE)(
|
||||
(STDCALL *PFN_WDFSTRINGCREATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_opt_
|
||||
|
@ -70,8 +70,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfStringCreate(
|
||||
_In_opt_
|
||||
PCUNICODE_STRING UnicodeString,
|
||||
|
@ -91,7 +91,7 @@ typedef
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFSTRINGGETUNICODESTRING)(
|
||||
(STDCALL *PFN_WDFSTRINGGETUNICODESTRING)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -101,8 +101,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfStringGetUnicodeString(
|
||||
_In_
|
||||
WDFSTRING String,
|
||||
|
|
|
@ -58,7 +58,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFOBJECTACQUIRELOCK)(
|
||||
(STDCALL *PFN_WDFOBJECTACQUIRELOCK)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -68,8 +68,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfObjectAcquireLock(
|
||||
_In_
|
||||
_Requires_lock_not_held_(_Curr_)
|
||||
|
@ -87,7 +87,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFOBJECTRELEASELOCK)(
|
||||
(STDCALL *PFN_WDFOBJECTRELEASELOCK)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -97,8 +97,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfObjectReleaseLock(
|
||||
_In_
|
||||
_Requires_lock_held_(_Curr_)
|
||||
|
@ -117,7 +117,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFWAITLOCKCREATE)(
|
||||
(STDCALL *PFN_WDFWAITLOCKCREATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_opt_
|
||||
|
@ -128,8 +128,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfWaitLockCreate(
|
||||
_In_opt_
|
||||
PWDF_OBJECT_ATTRIBUTES LockAttributes,
|
||||
|
@ -152,7 +152,7 @@ _When_(Timeout != NULL && return == STATUS_SUCCESS, _Acquires_lock_(Lock))
|
|||
_When_(Timeout != NULL, _Must_inspect_result_)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFWAITLOCKACQUIRE)(
|
||||
(STDCALL *PFN_WDFWAITLOCKACQUIRE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -168,8 +168,8 @@ _When_(Timeout != NULL && *Timeout != 0, _IRQL_requires_max_(PASSIVE_LEVEL))
|
|||
_Always_(_When_(Timeout == NULL, _Acquires_lock_(Lock)))
|
||||
_When_(Timeout != NULL && return == STATUS_SUCCESS, _Acquires_lock_(Lock))
|
||||
_When_(Timeout != NULL, _Must_inspect_result_)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfWaitLockAcquire(
|
||||
_In_
|
||||
_Requires_lock_not_held_(_Curr_)
|
||||
|
@ -188,7 +188,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFWAITLOCKRELEASE)(
|
||||
(STDCALL *PFN_WDFWAITLOCKRELEASE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -198,8 +198,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfWaitLockRelease(
|
||||
_In_
|
||||
_Requires_lock_held_(_Curr_)
|
||||
|
@ -218,7 +218,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFSPINLOCKCREATE)(
|
||||
(STDCALL *PFN_WDFSPINLOCKCREATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_opt_
|
||||
|
@ -229,8 +229,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfSpinLockCreate(
|
||||
_In_opt_
|
||||
PWDF_OBJECT_ATTRIBUTES SpinLockAttributes,
|
||||
|
@ -249,7 +249,7 @@ _IRQL_requires_max_(DISPATCH_LEVEL)
|
|||
_IRQL_raises_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFSPINLOCKACQUIRE)(
|
||||
(STDCALL *PFN_WDFSPINLOCKACQUIRE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -261,8 +261,8 @@ VOID
|
|||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
_IRQL_raises_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfSpinLockAcquire(
|
||||
_In_
|
||||
_Requires_lock_not_held_(_Curr_)
|
||||
|
@ -282,7 +282,7 @@ _IRQL_requires_max_(DISPATCH_LEVEL)
|
|||
_IRQL_requires_min_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFSPINLOCKRELEASE)(
|
||||
(STDCALL *PFN_WDFSPINLOCKRELEASE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -294,8 +294,8 @@ VOID
|
|||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
_IRQL_requires_min_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfSpinLockRelease(
|
||||
_In_
|
||||
_Requires_lock_held_(_Curr_)
|
||||
|
|
|
@ -58,6 +58,7 @@ _Function_class_(EVT_WDF_TIMER)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_TIMER(
|
||||
_In_
|
||||
WDFTIMER Timer
|
||||
|
@ -68,8 +69,10 @@ typedef EVT_WDF_TIMER *PFN_WDF_TIMER;
|
|||
//
|
||||
// Disable warning C4324: structure was padded due to DECLSPEC_ALIGN
|
||||
// This padding is intentional and necessary.
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable: 4324)
|
||||
#endif
|
||||
|
||||
typedef struct _WDF_TIMER_CONFIG {
|
||||
ULONG Size;
|
||||
|
@ -99,10 +102,12 @@ typedef struct _WDF_TIMER_CONFIG {
|
|||
|
||||
} WDF_TIMER_CONFIG, *PWDF_TIMER_CONFIG;
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_TIMER_CONFIG_INIT(
|
||||
_Out_ PWDF_TIMER_CONFIG Config,
|
||||
_In_ PFN_WDF_TIMER EvtTimerFunc
|
||||
|
@ -116,8 +121,8 @@ WDF_TIMER_CONFIG_INIT(
|
|||
Config->TolerableDelay = 0;
|
||||
}
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_TIMER_CONFIG_INIT_PERIODIC(
|
||||
_Out_ PWDF_TIMER_CONFIG Config,
|
||||
_In_ PFN_WDF_TIMER EvtTimerFunc,
|
||||
|
@ -141,7 +146,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFTIMERCREATE)(
|
||||
(STDCALL *PFN_WDFTIMERCREATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -154,8 +159,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfTimerCreate(
|
||||
_In_
|
||||
PWDF_TIMER_CONFIG Config,
|
||||
|
@ -175,7 +180,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
BOOLEAN
|
||||
(*PFN_WDFTIMERSTART)(
|
||||
(STDCALL *PFN_WDFTIMERSTART)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -185,8 +190,8 @@ BOOLEAN
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WdfTimerStart(
|
||||
_In_
|
||||
WDFTIMER Timer,
|
||||
|
@ -205,7 +210,7 @@ _When_(Wait == __true, _IRQL_requires_max_(PASSIVE_LEVEL))
|
|||
_When_(Wait == __false, _IRQL_requires_max_(DISPATCH_LEVEL))
|
||||
WDFAPI
|
||||
BOOLEAN
|
||||
(*PFN_WDFTIMERSTOP)(
|
||||
(STDCALL *PFN_WDFTIMERSTOP)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -216,8 +221,8 @@ BOOLEAN
|
|||
|
||||
_When_(Wait == __true, _IRQL_requires_max_(PASSIVE_LEVEL))
|
||||
_When_(Wait == __false, _IRQL_requires_max_(DISPATCH_LEVEL))
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WdfTimerStop(
|
||||
_In_
|
||||
WDFTIMER Timer,
|
||||
|
@ -235,7 +240,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDFOBJECT
|
||||
(*PFN_WDFTIMERGETPARENTOBJECT)(
|
||||
(STDCALL *PFN_WDFTIMERGETPARENTOBJECT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -243,8 +248,8 @@ WDFOBJECT
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFOBJECT
|
||||
FORCEINLINE
|
||||
WDFOBJECT
|
||||
WdfTimerGetParentObject(
|
||||
_In_
|
||||
WDFTIMER Timer
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -44,7 +44,9 @@ Revision History:
|
|||
|
||||
WDF_EXTERN_C_START
|
||||
|
||||
|
||||
#ifndef STDCALL // __REACTOS__
|
||||
#define STDCALL __stdcall
|
||||
#endif
|
||||
|
||||
#if (NTDDI_VERSION >= NTDDI_WIN2K)
|
||||
|
||||
|
@ -56,13 +58,13 @@ WDF_EXTERN_C_START
|
|||
typedef
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFVERIFIERDBGBREAKPOINT)(
|
||||
(STDCALL *PFN_WDFVERIFIERDBGBREAKPOINT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals
|
||||
);
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfVerifierDbgBreakPoint(
|
||||
)
|
||||
{
|
||||
|
@ -75,7 +77,7 @@ WdfVerifierDbgBreakPoint(
|
|||
typedef
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFVERIFIERKEBUGCHECK)(
|
||||
(STDCALL *PFN_WDFVERIFIERKEBUGCHECK)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -90,8 +92,8 @@ VOID
|
|||
ULONG_PTR BugCheckParameter4
|
||||
);
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfVerifierKeBugCheck(
|
||||
_In_
|
||||
ULONG BugCheckCode,
|
||||
|
@ -114,13 +116,13 @@ WdfVerifierKeBugCheck(
|
|||
typedef
|
||||
WDFAPI
|
||||
PVOID
|
||||
(*PFN_WDFGETTRIAGEINFO)(
|
||||
(STDCALL *PFN_WDFGETTRIAGEINFO)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals
|
||||
);
|
||||
|
||||
PVOID
|
||||
FORCEINLINE
|
||||
PVOID
|
||||
WdfGetTriageInfo(
|
||||
)
|
||||
{
|
||||
|
|
|
@ -79,6 +79,7 @@ _Function_class_(EVT_WDF_WMI_INSTANCE_QUERY_INSTANCE)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_WMI_INSTANCE_QUERY_INSTANCE(
|
||||
_In_
|
||||
WDFWMIINSTANCE WmiInstance,
|
||||
|
@ -97,6 +98,7 @@ _Function_class_(EVT_WDF_WMI_INSTANCE_SET_INSTANCE)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_WMI_INSTANCE_SET_INSTANCE(
|
||||
_In_
|
||||
WDFWMIINSTANCE WmiInstance,
|
||||
|
@ -113,6 +115,7 @@ _Function_class_(EVT_WDF_WMI_INSTANCE_SET_ITEM)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_WMI_INSTANCE_SET_ITEM(
|
||||
_In_
|
||||
WDFWMIINSTANCE WmiInstance,
|
||||
|
@ -131,6 +134,7 @@ _Function_class_(EVT_WDF_WMI_INSTANCE_EXECUTE_METHOD)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_WMI_INSTANCE_EXECUTE_METHOD(
|
||||
_In_
|
||||
WDFWMIINSTANCE WmiInstance,
|
||||
|
@ -154,6 +158,7 @@ _Function_class_(EVT_WDF_WMI_PROVIDER_FUNCTION_CONTROL)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
EVT_WDF_WMI_PROVIDER_FUNCTION_CONTROL(
|
||||
_In_
|
||||
WDFWMIPROVIDER WmiProvider,
|
||||
|
@ -195,8 +200,8 @@ typedef struct _WDF_WMI_PROVIDER_CONFIG {
|
|||
|
||||
} WDF_WMI_PROVIDER_CONFIG, *PWDF_WMI_PROVIDER_CONFIG;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_WMI_PROVIDER_CONFIG_INIT(
|
||||
_Out_ PWDF_WMI_PROVIDER_CONFIG Config,
|
||||
_In_ CONST GUID* Guid
|
||||
|
@ -263,8 +268,8 @@ typedef struct _WDF_WMI_INSTANCE_CONFIG {
|
|||
} WDF_WMI_INSTANCE_CONFIG, *PWDF_WMI_INSTANCE_CONFIG;
|
||||
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_WMI_INSTANCE_CONFIG_INIT_PROVIDER(
|
||||
_Out_ PWDF_WMI_INSTANCE_CONFIG Config,
|
||||
_In_ WDFWMIPROVIDER Provider
|
||||
|
@ -276,8 +281,8 @@ WDF_WMI_INSTANCE_CONFIG_INIT_PROVIDER(
|
|||
Config->Provider = Provider;
|
||||
}
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_WMI_INSTANCE_CONFIG_INIT_PROVIDER_CONFIG(
|
||||
_Out_ PWDF_WMI_INSTANCE_CONFIG Config,
|
||||
_In_ PWDF_WMI_PROVIDER_CONFIG ProviderConfig
|
||||
|
@ -289,8 +294,8 @@ WDF_WMI_INSTANCE_CONFIG_INIT_PROVIDER_CONFIG(
|
|||
Config->ProviderConfig = ProviderConfig;
|
||||
}
|
||||
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WDF_WMI_BUFFER_APPEND_STRING(
|
||||
_Out_writes_bytes_(BufferLength) PVOID Buffer,
|
||||
_In_ ULONG BufferLength,
|
||||
|
@ -344,7 +349,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFWMIPROVIDERCREATE)(
|
||||
(STDCALL *PFN_WDFWMIPROVIDERCREATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -359,8 +364,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfWmiProviderCreate(
|
||||
_In_
|
||||
WDFDEVICE Device,
|
||||
|
@ -382,7 +387,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDFDEVICE
|
||||
(*PFN_WDFWMIPROVIDERGETDEVICE)(
|
||||
(STDCALL *PFN_WDFWMIPROVIDERGETDEVICE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -390,8 +395,8 @@ WDFDEVICE
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFDEVICE
|
||||
FORCEINLINE
|
||||
WDFDEVICE
|
||||
WdfWmiProviderGetDevice(
|
||||
_In_
|
||||
WDFWMIPROVIDER WmiProvider
|
||||
|
@ -407,7 +412,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
BOOLEAN
|
||||
(*PFN_WDFWMIPROVIDERISENABLED)(
|
||||
(STDCALL *PFN_WDFWMIPROVIDERISENABLED)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -417,8 +422,8 @@ BOOLEAN
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
BOOLEAN
|
||||
FORCEINLINE
|
||||
BOOLEAN
|
||||
WdfWmiProviderIsEnabled(
|
||||
_In_
|
||||
WDFWMIPROVIDER WmiProvider,
|
||||
|
@ -436,7 +441,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
ULONGLONG
|
||||
(*PFN_WDFWMIPROVIDERGETTRACINGHANDLE)(
|
||||
(STDCALL *PFN_WDFWMIPROVIDERGETTRACINGHANDLE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -444,8 +449,8 @@ ULONGLONG
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
ULONGLONG
|
||||
FORCEINLINE
|
||||
ULONGLONG
|
||||
WdfWmiProviderGetTracingHandle(
|
||||
_In_
|
||||
WDFWMIPROVIDER WmiProvider
|
||||
|
@ -462,7 +467,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFWMIINSTANCECREATE)(
|
||||
(STDCALL *PFN_WDFWMIINSTANCECREATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -477,8 +482,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfWmiInstanceCreate(
|
||||
_In_
|
||||
WDFDEVICE Device,
|
||||
|
@ -501,7 +506,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFWMIINSTANCEREGISTER)(
|
||||
(STDCALL *PFN_WDFWMIINSTANCEREGISTER)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -510,8 +515,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfWmiInstanceRegister(
|
||||
_In_
|
||||
WDFWMIINSTANCE WmiInstance
|
||||
|
@ -527,7 +532,7 @@ typedef
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFWMIINSTANCEDEREGISTER)(
|
||||
(STDCALL *PFN_WDFWMIINSTANCEDEREGISTER)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -535,8 +540,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfWmiInstanceDeregister(
|
||||
_In_
|
||||
WDFWMIINSTANCE WmiInstance
|
||||
|
@ -552,7 +557,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDFDEVICE
|
||||
(*PFN_WDFWMIINSTANCEGETDEVICE)(
|
||||
(STDCALL *PFN_WDFWMIINSTANCEGETDEVICE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -560,8 +565,8 @@ WDFDEVICE
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFDEVICE
|
||||
FORCEINLINE
|
||||
WDFDEVICE
|
||||
WdfWmiInstanceGetDevice(
|
||||
_In_
|
||||
WDFWMIINSTANCE WmiInstance
|
||||
|
@ -577,7 +582,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDFWMIPROVIDER
|
||||
(*PFN_WDFWMIINSTANCEGETPROVIDER)(
|
||||
(STDCALL *PFN_WDFWMIINSTANCEGETPROVIDER)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -585,8 +590,8 @@ WDFWMIPROVIDER
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFWMIPROVIDER
|
||||
FORCEINLINE
|
||||
WDFWMIPROVIDER
|
||||
WdfWmiInstanceGetProvider(
|
||||
_In_
|
||||
WDFWMIINSTANCE WmiInstance
|
||||
|
@ -603,7 +608,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(APC_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFWMIINSTANCEFIREEVENT)(
|
||||
(STDCALL *PFN_WDFWMIINSTANCEFIREEVENT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -616,8 +621,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(APC_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfWmiInstanceFireEvent(
|
||||
_In_
|
||||
WDFWMIINSTANCE WmiInstance,
|
||||
|
|
|
@ -55,6 +55,7 @@ _Function_class_(EVT_WDF_WORKITEM)
|
|||
_IRQL_requires_same_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
EVT_WDF_WORKITEM(
|
||||
_In_
|
||||
WDFWORKITEM WorkItem
|
||||
|
@ -79,8 +80,8 @@ typedef struct _WDF_WORKITEM_CONFIG {
|
|||
|
||||
} WDF_WORKITEM_CONFIG, *PWDF_WORKITEM_CONFIG;
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WDF_WORKITEM_CONFIG_INIT(
|
||||
_Out_ PWDF_WORKITEM_CONFIG Config,
|
||||
_In_ PFN_WDF_WORKITEM EvtWorkItemFunc
|
||||
|
@ -102,7 +103,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
(*PFN_WDFWORKITEMCREATE)(
|
||||
(STDCALL *PFN_WDFWORKITEMCREATE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -115,8 +116,8 @@ NTSTATUS
|
|||
|
||||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
FORCEINLINE
|
||||
NTSTATUS
|
||||
WdfWorkItemCreate(
|
||||
_In_
|
||||
PWDF_WORKITEM_CONFIG Config,
|
||||
|
@ -136,7 +137,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFWORKITEMENQUEUE)(
|
||||
(STDCALL *PFN_WDFWORKITEMENQUEUE)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -144,8 +145,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfWorkItemEnqueue(
|
||||
_In_
|
||||
WDFWORKITEM WorkItem
|
||||
|
@ -161,7 +162,7 @@ typedef
|
|||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
WDFOBJECT
|
||||
(*PFN_WDFWORKITEMGETPARENTOBJECT)(
|
||||
(STDCALL *PFN_WDFWORKITEMGETPARENTOBJECT)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -169,8 +170,8 @@ WDFOBJECT
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFOBJECT
|
||||
FORCEINLINE
|
||||
WDFOBJECT
|
||||
WdfWorkItemGetParentObject(
|
||||
_In_
|
||||
WDFWORKITEM WorkItem
|
||||
|
@ -186,7 +187,7 @@ typedef
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
(*PFN_WDFWORKITEMFLUSH)(
|
||||
(STDCALL *PFN_WDFWORKITEMFLUSH)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
_In_
|
||||
|
@ -194,8 +195,8 @@ VOID
|
|||
);
|
||||
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
WdfWorkItemFlush(
|
||||
_In_
|
||||
WDFWORKITEM WorkItem
|
||||
|
|
Loading…
Reference in a new issue