https://git.reactos.org/?p=reactos.git;a=commitdiff;h=545df81502440c0f1ca0b…
commit 545df81502440c0f1ca0b4cc05aa998d0f06b4fe
Author: Victor Perevertkin <victor.perevertkin(a)reactos.org>
AuthorDate: Thu Sep 24 23:48:32 2020 +0300
Commit: Victor Perevertkin <victor.perevertkin(a)reactos.org>
CommitDate: Tue Nov 3 00:06:25 2020 +0300
[KMDF] Make KMDF headers compatible with our SDK and compilers
---
sdk/include/wdf/kmdf/1.17/wdf.h | 16 +-
sdk/include/wdf/kmdf/1.17/wdfchildlist.h | 72 +++--
sdk/include/wdf/kmdf/1.17/wdfcollection.h | 32 +-
sdk/include/wdf/kmdf/1.17/wdfcommonbuffer.h | 22 +-
sdk/include/wdf/kmdf/1.17/wdfcontrol.h | 13 +-
sdk/include/wdf/kmdf/1.17/wdfcore.h | 16 +-
sdk/include/wdf/kmdf/1.17/wdfdevice.h | 423 +++++++++++++++-----------
sdk/include/wdf/kmdf/1.17/wdfdmaenabler.h | 38 ++-
sdk/include/wdf/kmdf/1.17/wdfdmatransaction.h | 100 +++---
sdk/include/wdf/kmdf/1.17/wdfdpc.h | 23 +-
sdk/include/wdf/kmdf/1.17/wdfdriver.h | 41 +--
sdk/include/wdf/kmdf/1.17/wdffdo.h | 64 ++--
sdk/include/wdf/kmdf/1.17/wdffileobject.h | 16 +-
sdk/include/wdf/kmdf/1.17/wdfinstaller.h | 2 +-
sdk/include/wdf/kmdf/1.17/wdfinterrupt.h | 80 ++---
sdk/include/wdf/kmdf/1.17/wdfio.h | 104 ++++---
sdk/include/wdf/kmdf/1.17/wdfiotarget.h | 115 +++----
sdk/include/wdf/kmdf/1.17/wdfmemory.h | 38 +--
sdk/include/wdf/kmdf/1.17/wdfminiport.h | 8 +-
sdk/include/wdf/kmdf/1.17/wdfobject.h | 42 +--
sdk/include/wdf/kmdf/1.17/wdfpdo.h | 89 +++---
sdk/include/wdf/kmdf/1.17/wdfqueryinterface.h | 11 +-
sdk/include/wdf/kmdf/1.17/wdfregistry.h | 72 ++---
sdk/include/wdf/kmdf/1.17/wdfrequest.h | 188 ++++++------
sdk/include/wdf/kmdf/1.17/wdfresource.h | 88 +++---
sdk/include/wdf/kmdf/1.17/wdfstring.h | 8 +-
sdk/include/wdf/kmdf/1.17/wdfsync.h | 32 +-
sdk/include/wdf/kmdf/1.17/wdftimer.h | 25 +-
sdk/include/wdf/kmdf/1.17/wdfusb.h | 247 +++++++--------
sdk/include/wdf/kmdf/1.17/wdfverifier.h | 16 +-
sdk/include/wdf/kmdf/1.17/wdfwmi.h | 53 ++--
sdk/include/wdf/kmdf/1.17/wdfworkitem.h | 19 +-
32 files changed, 1134 insertions(+), 979 deletions(-)
diff --git a/sdk/include/wdf/kmdf/1.17/wdf.h b/sdk/include/wdf/kmdf/1.17/wdf.h
index 892aaa506ac..2ea904466a5 100644
--- a/sdk/include/wdf/kmdf/1.17/wdf.h
+++ b/sdk/include/wdf/kmdf/1.17/wdf.h
@@ -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"
diff --git a/sdk/include/wdf/kmdf/1.17/wdfchildlist.h
b/sdk/include/wdf/kmdf/1.17/wdfchildlist.h
index 14f96550b2c..c38a3a114ff 100644
--- a/sdk/include/wdf/kmdf/1.17/wdfchildlist.h
+++ b/sdk/include/wdf/kmdf/1.17/wdfchildlist.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,
diff --git a/sdk/include/wdf/kmdf/1.17/wdfcollection.h
b/sdk/include/wdf/kmdf/1.17/wdfcollection.h
index c28ecab6c15..2077562a91b 100644
--- a/sdk/include/wdf/kmdf/1.17/wdfcollection.h
+++ b/sdk/include/wdf/kmdf/1.17/wdfcollection.h
@@ -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
diff --git a/sdk/include/wdf/kmdf/1.17/wdfcommonbuffer.h
b/sdk/include/wdf/kmdf/1.17/wdfcommonbuffer.h
index 018a83241ab..076c79902e0 100644
--- a/sdk/include/wdf/kmdf/1.17/wdfcommonbuffer.h
+++ b/sdk/include/wdf/kmdf/1.17/wdfcommonbuffer.h
@@ -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
diff --git a/sdk/include/wdf/kmdf/1.17/wdfcontrol.h
b/sdk/include/wdf/kmdf/1.17/wdfcontrol.h
index f94a3aadba7..1be068aed54 100644
--- a/sdk/include/wdf/kmdf/1.17/wdfcontrol.h
+++ b/sdk/include/wdf/kmdf/1.17/wdfcontrol.h
@@ -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
diff --git a/sdk/include/wdf/kmdf/1.17/wdfcore.h b/sdk/include/wdf/kmdf/1.17/wdfcore.h
index ff28279f609..eb7f6e5e15f 100644
--- a/sdk/include/wdf/kmdf/1.17/wdfcore.h
+++ b/sdk/include/wdf/kmdf/1.17/wdfcore.h
@@ -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
diff --git a/sdk/include/wdf/kmdf/1.17/wdfdevice.h
b/sdk/include/wdf/kmdf/1.17/wdfdevice.h
index 370612414f7..5f0e5f43d7e 100644
--- a/sdk/include/wdf/kmdf/1.17/wdfdevice.h
+++ b/sdk/include/wdf/kmdf/1.17/wdfdevice.h
@@ -495,14 +495,51 @@ typedef enum _WDF_RELEASE_HARDWARE_ORDER_ON_FAILURE {
// Declare empty definitions so that they may be referenced by
// routines before they are defined.
//
-typedef enum _WDF_REQUEST_TYPE WDF_REQUEST_TYPE;
+// enum _WDF_REQUEST_TYPE;
+// typedef enum _WDF_REQUEST_TYPE WDF_REQUEST_TYPE;
+
+typedef enum _WDF_REQUEST_TYPE { // taken from wdfrequest.h
+ WdfRequestTypeCreate = 0x0,
+ WdfRequestTypeCreateNamedPipe = 0x1,
+ WdfRequestTypeClose = 0x2,
+ WdfRequestTypeRead = 0x3,
+ WdfRequestTypeWrite = 0x4,
+ WdfRequestTypeQueryInformation = 0x5,
+ WdfRequestTypeSetInformation = 0x6,
+ WdfRequestTypeQueryEA = 0x7,
+ WdfRequestTypeSetEA = 0x8,
+ WdfRequestTypeFlushBuffers = 0x9,
+ WdfRequestTypeQueryVolumeInformation = 0xa,
+ WdfRequestTypeSetVolumeInformation = 0xb,
+ WdfRequestTypeDirectoryControl = 0xc,
+ WdfRequestTypeFileSystemControl = 0xd,
+ WdfRequestTypeDeviceControl = 0xe,
+ WdfRequestTypeDeviceControlInternal = 0xf,
+ WdfRequestTypeShutdown = 0x10,
+ WdfRequestTypeLockControl = 0x11,
+ WdfRequestTypeCleanup = 0x12,
+ WdfRequestTypeCreateMailSlot = 0x13,
+ WdfRequestTypeQuerySecurity = 0x14,
+ WdfRequestTypeSetSecurity = 0x15,
+ WdfRequestTypePower = 0x16,
+ WdfRequestTypeSystemControl = 0x17,
+ WdfRequestTypeDeviceChange = 0x18,
+ WdfRequestTypeQueryQuota = 0x19,
+ WdfRequestTypeSetQuota = 0x1A,
+ WdfRequestTypePnp = 0x1B,
+ WdfRequestTypeOther =0x1C,
+ WdfRequestTypeUsb = 0x40,
+ WdfRequestTypeNoFormat = 0xFF,
+ WdfRequestTypeMax,
+} WDF_REQUEST_TYPE;
typedef
_Function_class_(EVT_WDF_DEVICE_FILE_CREATE)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
VOID
+STDCALL
EVT_WDF_DEVICE_FILE_CREATE(
_In_
WDFDEVICE Device,
@@ -519,6 +556,7 @@ _Function_class_(EVT_WDF_FILE_CLOSE)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
VOID
+STDCALL
EVT_WDF_FILE_CLOSE(
_In_
WDFFILEOBJECT FileObject
@@ -531,6 +569,7 @@ _Function_class_(EVT_WDF_FILE_CLEANUP)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
VOID
+STDCALL
EVT_WDF_FILE_CLEANUP(
_In_
WDFFILEOBJECT FileObject
@@ -581,8 +620,8 @@ typedef struct _WDF_FILEOBJECT_CONFIG {
} WDF_FILEOBJECT_CONFIG, *PWDF_FILEOBJECT_CONFIG;
-VOID
FORCEINLINE
+VOID
WDF_FILEOBJECT_CONFIG_INIT(
_Out_ PWDF_FILEOBJECT_CONFIG FileEventCallbacks,
_In_opt_ PFN_WDF_DEVICE_FILE_CREATE EvtDeviceFileCreate,
@@ -734,6 +773,7 @@ _Function_class_(EVT_WDF_DEVICE_PNP_STATE_CHANGE_NOTIFICATION)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
VOID
+STDCALL
EVT_WDF_DEVICE_PNP_STATE_CHANGE_NOTIFICATION(
_In_
WDFDEVICE Device,
@@ -748,6 +788,7 @@ _Function_class_(EVT_WDF_DEVICE_POWER_STATE_CHANGE_NOTIFICATION)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
VOID
+STDCALL
EVT_WDF_DEVICE_POWER_STATE_CHANGE_NOTIFICATION(
_In_
WDFDEVICE Device,
@@ -762,6 +803,7 @@
_Function_class_(EVT_WDF_DEVICE_POWER_POLICY_STATE_CHANGE_NOTIFICATION)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
VOID
+STDCALL
EVT_WDF_DEVICE_POWER_POLICY_STATE_CHANGE_NOTIFICATION(
_In_
WDFDEVICE Device,
@@ -778,6 +820,7 @@ _Function_class_(EVT_WDF_DEVICE_D0_ENTRY)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
NTSTATUS
+STDCALL
EVT_WDF_DEVICE_D0_ENTRY(
_In_
WDFDEVICE Device,
@@ -792,6 +835,7 @@ _Function_class_(EVT_WDF_DEVICE_D0_ENTRY_POST_INTERRUPTS_ENABLED)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
NTSTATUS
+STDCALL
EVT_WDF_DEVICE_D0_ENTRY_POST_INTERRUPTS_ENABLED(
_In_
WDFDEVICE Device,
@@ -806,6 +850,7 @@ _Function_class_(EVT_WDF_DEVICE_D0_EXIT)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
NTSTATUS
+STDCALL
EVT_WDF_DEVICE_D0_EXIT(
_In_
WDFDEVICE Device,
@@ -820,6 +865,7 @@ _Function_class_(EVT_WDF_DEVICE_D0_EXIT_PRE_INTERRUPTS_DISABLED)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
NTSTATUS
+STDCALL
EVT_WDF_DEVICE_D0_EXIT_PRE_INTERRUPTS_DISABLED(
_In_
WDFDEVICE Device,
@@ -834,6 +880,7 @@ _Function_class_(EVT_WDF_DEVICE_PREPARE_HARDWARE)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
NTSTATUS
+STDCALL
EVT_WDF_DEVICE_PREPARE_HARDWARE(
_In_
WDFDEVICE Device,
@@ -850,6 +897,7 @@ _Function_class_(EVT_WDF_DEVICE_RELEASE_HARDWARE)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
NTSTATUS
+STDCALL
EVT_WDF_DEVICE_RELEASE_HARDWARE(
_In_
WDFDEVICE Device,
@@ -864,6 +912,7 @@ _Function_class_(EVT_WDF_DEVICE_SELF_MANAGED_IO_CLEANUP)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
VOID
+STDCALL
EVT_WDF_DEVICE_SELF_MANAGED_IO_CLEANUP(
_In_
WDFDEVICE Device
@@ -876,6 +925,7 @@ _Function_class_(EVT_WDF_DEVICE_SELF_MANAGED_IO_FLUSH)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
VOID
+STDCALL
EVT_WDF_DEVICE_SELF_MANAGED_IO_FLUSH(
_In_
WDFDEVICE Device
@@ -888,6 +938,7 @@ _Function_class_(EVT_WDF_DEVICE_SELF_MANAGED_IO_INIT)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
NTSTATUS
+STDCALL
EVT_WDF_DEVICE_SELF_MANAGED_IO_INIT(
_In_
WDFDEVICE Device
@@ -900,6 +951,7 @@ _Function_class_(EVT_WDF_DEVICE_SELF_MANAGED_IO_SUSPEND)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
NTSTATUS
+STDCALL
EVT_WDF_DEVICE_SELF_MANAGED_IO_SUSPEND(
_In_
WDFDEVICE Device
@@ -912,6 +964,7 @@ _Function_class_(EVT_WDF_DEVICE_SELF_MANAGED_IO_RESTART)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
NTSTATUS
+STDCALL
EVT_WDF_DEVICE_SELF_MANAGED_IO_RESTART(
_In_
WDFDEVICE Device
@@ -924,6 +977,7 @@ _Function_class_(EVT_WDF_DEVICE_QUERY_STOP)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
NTSTATUS
+STDCALL
EVT_WDF_DEVICE_QUERY_STOP(
_In_
WDFDEVICE Device
@@ -936,6 +990,7 @@ _Function_class_(EVT_WDF_DEVICE_QUERY_REMOVE)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
NTSTATUS
+STDCALL
EVT_WDF_DEVICE_QUERY_REMOVE(
_In_
WDFDEVICE Device
@@ -948,6 +1003,7 @@ _Function_class_(EVT_WDF_DEVICE_SURPRISE_REMOVAL)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
VOID
+STDCALL
EVT_WDF_DEVICE_SURPRISE_REMOVAL(
_In_
WDFDEVICE Device
@@ -960,6 +1016,7 @@ _Function_class_(EVT_WDF_DEVICE_USAGE_NOTIFICATION)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
VOID
+STDCALL
EVT_WDF_DEVICE_USAGE_NOTIFICATION(
_In_
WDFDEVICE Device,
@@ -976,6 +1033,7 @@ _Function_class_(EVT_WDF_DEVICE_USAGE_NOTIFICATION_EX)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
NTSTATUS
+STDCALL
EVT_WDF_DEVICE_USAGE_NOTIFICATION_EX(
_In_
WDFDEVICE Device,
@@ -992,6 +1050,7 @@ _Function_class_(EVT_WDF_DEVICE_RELATIONS_QUERY)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
VOID
+STDCALL
EVT_WDF_DEVICE_RELATIONS_QUERY(
_In_
WDFDEVICE Device,
@@ -1006,6 +1065,7 @@ _Function_class_(EVT_WDF_DEVICE_ARM_WAKE_FROM_S0)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
NTSTATUS
+STDCALL
EVT_WDF_DEVICE_ARM_WAKE_FROM_S0(
_In_
WDFDEVICE Device
@@ -1018,6 +1078,7 @@ _Function_class_(EVT_WDF_DEVICE_ARM_WAKE_FROM_SX)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
NTSTATUS
+STDCALL
EVT_WDF_DEVICE_ARM_WAKE_FROM_SX(
_In_
WDFDEVICE Device
@@ -1030,6 +1091,7 @@ _Function_class_(EVT_WDF_DEVICE_ARM_WAKE_FROM_SX_WITH_REASON)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
NTSTATUS
+STDCALL
EVT_WDF_DEVICE_ARM_WAKE_FROM_SX_WITH_REASON(
_In_
WDFDEVICE Device,
@@ -1046,6 +1108,7 @@ _Function_class_(EVT_WDF_DEVICE_DISARM_WAKE_FROM_S0)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
VOID
+STDCALL
EVT_WDF_DEVICE_DISARM_WAKE_FROM_S0(
_In_
WDFDEVICE Device
@@ -1058,6 +1121,7 @@ _Function_class_(EVT_WDF_DEVICE_DISARM_WAKE_FROM_SX)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
VOID
+STDCALL
EVT_WDF_DEVICE_DISARM_WAKE_FROM_SX(
_In_
WDFDEVICE Device
@@ -1070,6 +1134,7 @@ _Function_class_(EVT_WDF_DEVICE_WAKE_FROM_S0_TRIGGERED)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
VOID
+STDCALL
EVT_WDF_DEVICE_WAKE_FROM_S0_TRIGGERED(
_In_
WDFDEVICE Device
@@ -1082,6 +1147,7 @@ _Function_class_(EVT_WDF_DEVICE_WAKE_FROM_SX_TRIGGERED)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
VOID
+STDCALL
EVT_WDF_DEVICE_WAKE_FROM_SX_TRIGGERED(
_In_
WDFDEVICE Device
@@ -1132,8 +1198,8 @@ typedef struct _WDF_POWER_POLICY_EVENT_CALLBACKS {
} WDF_POWER_POLICY_EVENT_CALLBACKS, *PWDF_POWER_POLICY_EVENT_CALLBACKS;
-VOID
FORCEINLINE
+VOID
WDF_POWER_POLICY_EVENT_CALLBACKS_INIT(
_Out_ PWDF_POWER_POLICY_EVENT_CALLBACKS Callbacks
)
@@ -1143,8 +1209,8 @@ WDF_POWER_POLICY_EVENT_CALLBACKS_INIT(
Callbacks->Size = sizeof(WDF_POWER_POLICY_EVENT_CALLBACKS);
}
-VOID
FORCEINLINE
+VOID
WDF_PNPPOWER_EVENT_CALLBACKS_INIT(
_Out_ PWDF_PNPPOWER_EVENT_CALLBACKS Callbacks
)
@@ -1154,8 +1220,8 @@ WDF_PNPPOWER_EVENT_CALLBACKS_INIT(
}
-ULONG
FORCEINLINE
+ULONG
WdfDevStateNormalize(
_In_ ULONG State
)
@@ -1164,8 +1230,8 @@ WdfDevStateNormalize(
}
-BOOLEAN
FORCEINLINE
+BOOLEAN
WdfDevStateIsNP(
_In_ ULONG State
)
@@ -1278,8 +1344,8 @@ typedef struct _WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS {
} WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS, *PWDF_DEVICE_POWER_POLICY_IDLE_SETTINGS;
-VOID
FORCEINLINE
+VOID
WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS_INIT(
_Out_ PWDF_DEVICE_POWER_POLICY_IDLE_SETTINGS Settings,
_In_ WDF_POWER_POLICY_S0_IDLE_CAPABILITIES IdleCaps
@@ -1360,8 +1426,8 @@ typedef struct _WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS {
} WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS, *PWDF_DEVICE_POWER_POLICY_WAKE_SETTINGS;
-VOID
FORCEINLINE
+VOID
WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS_INIT(
_Out_ PWDF_DEVICE_POWER_POLICY_WAKE_SETTINGS Settings
)
@@ -1419,8 +1485,8 @@ typedef struct _WDF_DEVICE_STATE {
} WDF_DEVICE_STATE, *PWDF_DEVICE_STATE;
-VOID
FORCEINLINE
+VOID
WDF_DEVICE_STATE_INIT(
_Out_ PWDF_DEVICE_STATE PnpDeviceState
)
@@ -1468,8 +1534,8 @@ typedef struct _WDF_DEVICE_PNP_CAPABILITIES {
} WDF_DEVICE_PNP_CAPABILITIES, *PWDF_DEVICE_PNP_CAPABILITIES;
-VOID
FORCEINLINE
+VOID
WDF_DEVICE_PNP_CAPABILITIES_INIT(
_Out_ PWDF_DEVICE_PNP_CAPABILITIES Caps
)
@@ -1535,8 +1601,8 @@ typedef struct _WDF_DEVICE_POWER_CAPABILITIES {
} WDF_DEVICE_POWER_CAPABILITIES, *PWDF_DEVICE_POWER_CAPABILITIES;
-VOID
FORCEINLINE
+VOID
WDF_DEVICE_POWER_CAPABILITIES_INIT(
_Out_ PWDF_DEVICE_POWER_CAPABILITIES Caps
)
@@ -1590,8 +1656,8 @@ typedef struct _WDF_REMOVE_LOCK_OPTIONS {
//
// Default remove lock options initialization macro
//
-VOID
FORCEINLINE
+VOID
WDF_REMOVE_LOCK_OPTIONS_INIT(
_Out_ PWDF_REMOVE_LOCK_OPTIONS RemoveLockOptions,
_In_ ULONG Flags
@@ -1608,6 +1674,7 @@ _Function_class_(EVT_WDFDEVICE_WDM_IRP_PREPROCESS)
_IRQL_requires_same_
_IRQL_requires_max_(DISPATCH_LEVEL)
NTSTATUS
+STDCALL
EVT_WDFDEVICE_WDM_IRP_PREPROCESS(
_In_
WDFDEVICE Device,
@@ -1622,6 +1689,7 @@ _Function_class_(EVT_WDFDEVICE_WDM_IRP_DISPATCH)
_IRQL_requires_same_
_IRQL_requires_max_(DISPATCH_LEVEL)
NTSTATUS
+STDCALL
EVT_WDFDEVICE_WDM_IRP_DISPATCH(
_In_
WDFDEVICE Device,
@@ -1649,6 +1717,7 @@ _Function_class_(EVT_WDF_IO_IN_CALLER_CONTEXT)
_IRQL_requires_same_
_IRQL_requires_max_(DISPATCH_LEVEL)
VOID
+STDCALL
EVT_WDF_IO_IN_CALLER_CONTEXT(
_In_
WDFDEVICE Device,
@@ -1663,6 +1732,7 @@ _Function_class_(EVT_WDFDEVICE_WDM_POST_PO_FX_REGISTER_DEVICE)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
NTSTATUS
+STDCALL
EVT_WDFDEVICE_WDM_POST_PO_FX_REGISTER_DEVICE(
_In_
WDFDEVICE Device,
@@ -1677,6 +1747,7 @@ _Function_class_(EVT_WDFDEVICE_WDM_PRE_PO_FX_UNREGISTER_DEVICE)
_IRQL_requires_same_
_IRQL_requires_max_(PASSIVE_LEVEL)
VOID
+STDCALL
EVT_WDFDEVICE_WDM_PRE_PO_FX_UNREGISTER_DEVICE(
_In_
WDFDEVICE Device,
@@ -1749,8 +1820,8 @@ typedef struct _WDF_POWER_FRAMEWORK_SETTINGS {
PVOID PoFxDeviceContext;
} WDF_POWER_FRAMEWORK_SETTINGS, *PWDF_POWER_FRAMEWORK_SETTINGS;
-VOID
FORCEINLINE
+VOID
WDF_POWER_FRAMEWORK_SETTINGS_INIT(
_Out_ PWDF_POWER_FRAMEWORK_SETTINGS PowerFrameworkSettings
)
@@ -1812,8 +1883,8 @@ typedef struct _WDF_IO_TYPE_CONFIG {
} WDF_IO_TYPE_CONFIG, *PWDF_IO_TYPE_CONFIG;
-VOID
FORCEINLINE
+VOID
WDF_IO_TYPE_CONFIG_INIT(
_Out_ PWDF_IO_TYPE_CONFIG IoTypeConfig
)
@@ -1918,7 +1989,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICEGETDEVICESTATE)(
+(STDCALL *PFN_WDFDEVICEGETDEVICESTATE)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -1928,8 +1999,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceGetDeviceState(
_In_
WDFDEVICE Device,
@@ -1947,7 +2018,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICESETDEVICESTATE)(
+(STDCALL *PFN_WDFDEVICESETDEVICESTATE)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -1957,8 +2028,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceSetDeviceState(
_In_
WDFDEVICE Device,
@@ -1976,7 +2047,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
WDFDEVICE
-(*PFN_WDFWDMDEVICEGETWDFDEVICEHANDLE)(
+(STDCALL *PFN_WDFWDMDEVICEGETWDFDEVICEHANDLE)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -1984,8 +2055,8 @@ WDFDEVICE
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-WDFDEVICE
FORCEINLINE
+WDFDEVICE
WdfWdmDeviceGetWdfDeviceHandle(
_In_
PDEVICE_OBJECT DeviceObject
@@ -2001,7 +2072,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
PDEVICE_OBJECT
-(*PFN_WDFDEVICEWDMGETDEVICEOBJECT)(
+(STDCALL *PFN_WDFDEVICEWDMGETDEVICEOBJECT)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2009,8 +2080,8 @@ PDEVICE_OBJECT
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-PDEVICE_OBJECT
FORCEINLINE
+PDEVICE_OBJECT
WdfDeviceWdmGetDeviceObject(
_In_
WDFDEVICE Device
@@ -2026,7 +2097,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
PDEVICE_OBJECT
-(*PFN_WDFDEVICEWDMGETATTACHEDDEVICE)(
+(STDCALL *PFN_WDFDEVICEWDMGETATTACHEDDEVICE)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2034,8 +2105,8 @@ PDEVICE_OBJECT
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-PDEVICE_OBJECT
FORCEINLINE
+PDEVICE_OBJECT
WdfDeviceWdmGetAttachedDevice(
_In_
WDFDEVICE Device
@@ -2051,7 +2122,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
PDEVICE_OBJECT
-(*PFN_WDFDEVICEWDMGETPHYSICALDEVICE)(
+(STDCALL *PFN_WDFDEVICEWDMGETPHYSICALDEVICE)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2059,8 +2130,8 @@ PDEVICE_OBJECT
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-PDEVICE_OBJECT
FORCEINLINE
+PDEVICE_OBJECT
WdfDeviceWdmGetPhysicalDevice(
_In_
WDFDEVICE Device
@@ -2077,7 +2148,7 @@ _Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEWDMDISPATCHPREPROCESSEDIRP)(
+(STDCALL *PFN_WDFDEVICEWDMDISPATCHPREPROCESSEDIRP)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2088,8 +2159,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceWdmDispatchPreprocessedIrp(
_In_
WDFDEVICE Device,
@@ -2108,7 +2179,7 @@ _Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEWDMDISPATCHIRP)(
+(STDCALL *PFN_WDFDEVICEWDMDISPATCHIRP)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2121,8 +2192,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceWdmDispatchIrp(
_In_
WDFDEVICE Device,
@@ -2143,7 +2214,7 @@ _Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEWDMDISPATCHIRPTOIOQUEUE)(
+(STDCALL *PFN_WDFDEVICEWDMDISPATCHIRPTOIOQUEUE)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2158,8 +2229,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceWdmDispatchIrpToIoQueue(
_In_
WDFDEVICE Device,
@@ -2182,7 +2253,7 @@ _Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEADDDEPENDENTUSAGEDEVICEOBJECT)(
+(STDCALL *PFN_WDFDEVICEADDDEPENDENTUSAGEDEVICEOBJECT)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2193,8 +2264,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceAddDependentUsageDeviceObject(
_In_
WDFDEVICE Device,
@@ -2212,7 +2283,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICEREMOVEDEPENDENTUSAGEDEVICEOBJECT)(
+(STDCALL *PFN_WDFDEVICEREMOVEDEPENDENTUSAGEDEVICEOBJECT)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2222,8 +2293,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceRemoveDependentUsageDeviceObject(
_In_
WDFDEVICE Device,
@@ -2242,7 +2313,7 @@ _Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEADDREMOVALRELATIONSPHYSICALDEVICE)(
+(STDCALL *PFN_WDFDEVICEADDREMOVALRELATIONSPHYSICALDEVICE)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2253,8 +2324,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceAddRemovalRelationsPhysicalDevice(
_In_
WDFDEVICE Device,
@@ -2272,7 +2343,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICEREMOVEREMOVALRELATIONSPHYSICALDEVICE)(
+(STDCALL *PFN_WDFDEVICEREMOVEREMOVALRELATIONSPHYSICALDEVICE)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2282,8 +2353,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceRemoveRemovalRelationsPhysicalDevice(
_In_
WDFDEVICE Device,
@@ -2301,7 +2372,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICECLEARREMOVALRELATIONSDEVICES)(
+(STDCALL *PFN_WDFDEVICECLEARREMOVALRELATIONSDEVICES)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2309,8 +2380,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceClearRemovalRelationsDevices(
_In_
WDFDEVICE Device
@@ -2326,7 +2397,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
WDFDRIVER
-(*PFN_WDFDEVICEGETDRIVER)(
+(STDCALL *PFN_WDFDEVICEGETDRIVER)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2334,8 +2405,8 @@ WDFDRIVER
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-WDFDRIVER
FORCEINLINE
+WDFDRIVER
WdfDeviceGetDriver(
_In_
WDFDEVICE Device
@@ -2352,7 +2423,7 @@ _Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICERETRIEVEDEVICENAME)(
+(STDCALL *PFN_WDFDEVICERETRIEVEDEVICENAME)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2363,8 +2434,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceRetrieveDeviceName(
_In_
WDFDEVICE Device,
@@ -2383,7 +2454,7 @@ _Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEASSIGNMOFRESOURCENAME)(
+(STDCALL *PFN_WDFDEVICEASSIGNMOFRESOURCENAME)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2394,8 +2465,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceAssignMofResourceName(
_In_
WDFDEVICE Device,
@@ -2413,7 +2484,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
WDFIOTARGET
-(*PFN_WDFDEVICEGETIOTARGET)(
+(STDCALL *PFN_WDFDEVICEGETIOTARGET)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2421,8 +2492,8 @@ WDFIOTARGET
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-WDFIOTARGET
FORCEINLINE
+WDFIOTARGET
WdfDeviceGetIoTarget(
_In_
WDFDEVICE Device
@@ -2438,7 +2509,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
WDF_DEVICE_PNP_STATE
-(*PFN_WDFDEVICEGETDEVICEPNPSTATE)(
+(STDCALL *PFN_WDFDEVICEGETDEVICEPNPSTATE)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2446,8 +2517,8 @@ WDF_DEVICE_PNP_STATE
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-WDF_DEVICE_PNP_STATE
FORCEINLINE
+WDF_DEVICE_PNP_STATE
WdfDeviceGetDevicePnpState(
_In_
WDFDEVICE Device
@@ -2463,7 +2534,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
WDF_DEVICE_POWER_STATE
-(*PFN_WDFDEVICEGETDEVICEPOWERSTATE)(
+(STDCALL *PFN_WDFDEVICEGETDEVICEPOWERSTATE)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2471,8 +2542,8 @@ WDF_DEVICE_POWER_STATE
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-WDF_DEVICE_POWER_STATE
FORCEINLINE
+WDF_DEVICE_POWER_STATE
WdfDeviceGetDevicePowerState(
_In_
WDFDEVICE Device
@@ -2488,7 +2559,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
WDF_DEVICE_POWER_POLICY_STATE
-(*PFN_WDFDEVICEGETDEVICEPOWERPOLICYSTATE)(
+(STDCALL *PFN_WDFDEVICEGETDEVICEPOWERPOLICYSTATE)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2496,8 +2567,8 @@ WDF_DEVICE_POWER_POLICY_STATE
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-WDF_DEVICE_POWER_POLICY_STATE
FORCEINLINE
+WDF_DEVICE_POWER_POLICY_STATE
WdfDeviceGetDevicePowerPolicyState(
_In_
WDFDEVICE Device
@@ -2514,7 +2585,7 @@ _Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEASSIGNS0IDLESETTINGS)(
+(STDCALL *PFN_WDFDEVICEASSIGNS0IDLESETTINGS)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2525,8 +2596,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceAssignS0IdleSettings(
_In_
WDFDEVICE Device,
@@ -2545,7 +2616,7 @@ _Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEASSIGNSXWAKESETTINGS)(
+(STDCALL *PFN_WDFDEVICEASSIGNSXWAKESETTINGS)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2556,8 +2627,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceAssignSxWakeSettings(
_In_
WDFDEVICE Device,
@@ -2576,7 +2647,7 @@ _Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEOPENREGISTRYKEY)(
+(STDCALL *PFN_WDFDEVICEOPENREGISTRYKEY)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2593,8 +2664,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceOpenRegistryKey(
_In_
WDFDEVICE Device,
@@ -2619,7 +2690,7 @@ _Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEOPENDEVICEMAPKEY)(
+(STDCALL *PFN_WDFDEVICEOPENDEVICEMAPKEY)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2636,8 +2707,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceOpenDevicemapKey(
_In_
WDFDEVICE Device,
@@ -2661,7 +2732,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICESETSPECIALFILESUPPORT)(
+(STDCALL *PFN_WDFDEVICESETSPECIALFILESUPPORT)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2673,8 +2744,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceSetSpecialFileSupport(
_In_
WDFDEVICE Device,
@@ -2694,7 +2765,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICESETCHARACTERISTICS)(
+(STDCALL *PFN_WDFDEVICESETCHARACTERISTICS)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2704,8 +2775,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceSetCharacteristics(
_In_
WDFDEVICE Device,
@@ -2723,7 +2794,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
ULONG
-(*PFN_WDFDEVICEGETCHARACTERISTICS)(
+(STDCALL *PFN_WDFDEVICEGETCHARACTERISTICS)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2731,8 +2802,8 @@ ULONG
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-ULONG
FORCEINLINE
+ULONG
WdfDeviceGetCharacteristics(
_In_
WDFDEVICE Device
@@ -2748,7 +2819,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
ULONG
-(*PFN_WDFDEVICEGETALIGNMENTREQUIREMENT)(
+(STDCALL *PFN_WDFDEVICEGETALIGNMENTREQUIREMENT)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2756,8 +2827,8 @@ ULONG
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-ULONG
FORCEINLINE
+ULONG
WdfDeviceGetAlignmentRequirement(
_In_
WDFDEVICE Device
@@ -2773,7 +2844,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICESETALIGNMENTREQUIREMENT)(
+(STDCALL *PFN_WDFDEVICESETALIGNMENTREQUIREMENT)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2783,8 +2854,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceSetAlignmentRequirement(
_In_
WDFDEVICE Device,
@@ -2802,7 +2873,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICEINITFREE)(
+(STDCALL *PFN_WDFDEVICEINITFREE)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2810,8 +2881,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceInitFree(
_In_
PWDFDEVICE_INIT DeviceInit
@@ -2827,7 +2898,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICEINITSETPNPPOWEREVENTCALLBACKS)(
+(STDCALL *PFN_WDFDEVICEINITSETPNPPOWEREVENTCALLBACKS)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2837,8 +2908,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceInitSetPnpPowerEventCallbacks(
_In_
PWDFDEVICE_INIT DeviceInit,
@@ -2856,7 +2927,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICEINITSETPOWERPOLICYEVENTCALLBACKS)(
+(STDCALL *PFN_WDFDEVICEINITSETPOWERPOLICYEVENTCALLBACKS)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2866,8 +2937,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceInitSetPowerPolicyEventCallbacks(
_In_
PWDFDEVICE_INIT DeviceInit,
@@ -2885,7 +2956,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICEINITSETPOWERPOLICYOWNERSHIP)(
+(STDCALL *PFN_WDFDEVICEINITSETPOWERPOLICYOWNERSHIP)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2895,8 +2966,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceInitSetPowerPolicyOwnership(
_In_
PWDFDEVICE_INIT DeviceInit,
@@ -2915,7 +2986,7 @@ _Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEINITREGISTERPNPSTATECHANGECALLBACK)(
+(STDCALL *PFN_WDFDEVICEINITREGISTERPNPSTATECHANGECALLBACK)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2930,8 +3001,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceInitRegisterPnpStateChangeCallback(
_In_
PWDFDEVICE_INIT DeviceInit,
@@ -2954,7 +3025,7 @@ _Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEINITREGISTERPOWERSTATECHANGECALLBACK)(
+(STDCALL *PFN_WDFDEVICEINITREGISTERPOWERSTATECHANGECALLBACK)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -2969,8 +3040,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceInitRegisterPowerStateChangeCallback(
_In_
PWDFDEVICE_INIT DeviceInit,
@@ -2993,7 +3064,7 @@ _Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEINITREGISTERPOWERPOLICYSTATECHANGECALLBACK)(
+(STDCALL *PFN_WDFDEVICEINITREGISTERPOWERPOLICYSTATECHANGECALLBACK)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3008,8 +3079,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceInitRegisterPowerPolicyStateChangeCallback(
_In_
PWDFDEVICE_INIT DeviceInit,
@@ -3031,7 +3102,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICEINITSETEXCLUSIVE)(
+(STDCALL *PFN_WDFDEVICEINITSETEXCLUSIVE)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3041,8 +3112,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceInitSetExclusive(
_In_
PWDFDEVICE_INIT DeviceInit,
@@ -3060,7 +3131,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICEINITSETIOTYPE)(
+(STDCALL *PFN_WDFDEVICEINITSETIOTYPE)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3070,8 +3141,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceInitSetIoType(
_In_
PWDFDEVICE_INIT DeviceInit,
@@ -3089,7 +3160,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICEINITSETPOWERNOTPAGEABLE)(
+(STDCALL *PFN_WDFDEVICEINITSETPOWERNOTPAGEABLE)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3097,8 +3168,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceInitSetPowerNotPageable(
_In_
PWDFDEVICE_INIT DeviceInit
@@ -3114,7 +3185,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICEINITSETPOWERPAGEABLE)(
+(STDCALL *PFN_WDFDEVICEINITSETPOWERPAGEABLE)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3122,8 +3193,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceInitSetPowerPageable(
_In_
PWDFDEVICE_INIT DeviceInit
@@ -3139,7 +3210,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICEINITSETPOWERINRUSH)(
+(STDCALL *PFN_WDFDEVICEINITSETPOWERINRUSH)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3147,8 +3218,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceInitSetPowerInrush(
_In_
PWDFDEVICE_INIT DeviceInit
@@ -3164,7 +3235,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICEINITSETDEVICETYPE)(
+(STDCALL *PFN_WDFDEVICEINITSETDEVICETYPE)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3174,8 +3245,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceInitSetDeviceType(
_In_
PWDFDEVICE_INIT DeviceInit,
@@ -3194,7 +3265,7 @@ _Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEINITASSIGNNAME)(
+(STDCALL *PFN_WDFDEVICEINITASSIGNNAME)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3205,8 +3276,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceInitAssignName(
_In_
PWDFDEVICE_INIT DeviceInit,
@@ -3225,7 +3296,7 @@ _Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEINITASSIGNSDDLSTRING)(
+(STDCALL *PFN_WDFDEVICEINITASSIGNSDDLSTRING)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3236,8 +3307,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceInitAssignSDDLString(
_In_
PWDFDEVICE_INIT DeviceInit,
@@ -3255,7 +3326,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICEINITSETDEVICECLASS)(
+(STDCALL *PFN_WDFDEVICEINITSETDEVICECLASS)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3265,8 +3336,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceInitSetDeviceClass(
_In_
PWDFDEVICE_INIT DeviceInit,
@@ -3284,7 +3355,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICEINITSETCHARACTERISTICS)(
+(STDCALL *PFN_WDFDEVICEINITSETCHARACTERISTICS)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3296,8 +3367,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceInitSetCharacteristics(
_In_
PWDFDEVICE_INIT DeviceInit,
@@ -3317,7 +3388,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICEINITSETFILEOBJECTCONFIG)(
+(STDCALL *PFN_WDFDEVICEINITSETFILEOBJECTCONFIG)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3329,8 +3400,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceInitSetFileObjectConfig(
_In_
PWDFDEVICE_INIT DeviceInit,
@@ -3350,7 +3421,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICEINITSETREQUESTATTRIBUTES)(
+(STDCALL *PFN_WDFDEVICEINITSETREQUESTATTRIBUTES)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3360,8 +3431,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceInitSetRequestAttributes(
_In_
PWDFDEVICE_INIT DeviceInit,
@@ -3380,7 +3451,7 @@ _Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEINITASSIGNWDMIRPPREPROCESSCALLBACK)(
+(STDCALL *PFN_WDFDEVICEINITASSIGNWDMIRPPREPROCESSCALLBACK)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3398,8 +3469,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceInitAssignWdmIrpPreprocessCallback(
_In_
PWDFDEVICE_INIT DeviceInit,
@@ -3424,7 +3495,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICEINITSETIOINCALLERCONTEXTCALLBACK)(
+(STDCALL *PFN_WDFDEVICEINITSETIOINCALLERCONTEXTCALLBACK)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3434,8 +3505,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceInitSetIoInCallerContextCallback(
_In_
PWDFDEVICE_INIT DeviceInit,
@@ -3453,7 +3524,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICEINITSETREMOVELOCKOPTIONS)(
+(STDCALL *PFN_WDFDEVICEINITSETREMOVELOCKOPTIONS)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3463,8 +3534,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceInitSetRemoveLockOptions(
_In_
PWDFDEVICE_INIT DeviceInit,
@@ -3483,7 +3554,7 @@ _Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICECREATE)(
+(STDCALL *PFN_WDFDEVICECREATE)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_Inout_
@@ -3496,8 +3567,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceCreate(
_Inout_
PWDFDEVICE_INIT* DeviceInit,
@@ -3517,7 +3588,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICESETSTATICSTOPREMOVE)(
+(STDCALL *PFN_WDFDEVICESETSTATICSTOPREMOVE)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3527,8 +3598,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceSetStaticStopRemove(
_In_
WDFDEVICE Device,
@@ -3547,7 +3618,7 @@ _Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICECREATEDEVICEINTERFACE)(
+(STDCALL *PFN_WDFDEVICECREATEDEVICEINTERFACE)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3560,8 +3631,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceCreateDeviceInterface(
_In_
WDFDEVICE Device,
@@ -3581,7 +3652,7 @@ typedef
_IRQL_requires_max_(PASSIVE_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICESETDEVICEINTERFACESTATE)(
+(STDCALL *PFN_WDFDEVICESETDEVICEINTERFACESTATE)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3595,8 +3666,8 @@ VOID
);
_IRQL_requires_max_(PASSIVE_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceSetDeviceInterfaceState(
_In_
WDFDEVICE Device,
@@ -3619,7 +3690,7 @@ _Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICERETRIEVEDEVICEINTERFACESTRING)(
+(STDCALL *PFN_WDFDEVICERETRIEVEDEVICEINTERFACESTRING)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3634,8 +3705,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceRetrieveDeviceInterfaceString(
_In_
WDFDEVICE Device,
@@ -3658,7 +3729,7 @@ _Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICECREATESYMBOLICLINK)(
+(STDCALL *PFN_WDFDEVICECREATESYMBOLICLINK)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3669,8 +3740,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceCreateSymbolicLink(
_In_
WDFDEVICE Device,
@@ -3689,7 +3760,7 @@ _Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEQUERYPROPERTY)(
+(STDCALL *PFN_WDFDEVICEQUERYPROPERTY)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3706,8 +3777,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceQueryProperty(
_In_
WDFDEVICE Device,
@@ -3732,7 +3803,7 @@ _Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEALLOCANDQUERYPROPERTY)(
+(STDCALL *PFN_WDFDEVICEALLOCANDQUERYPROPERTY)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3750,8 +3821,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceAllocAndQueryProperty(
_In_
WDFDEVICE Device,
@@ -3776,7 +3847,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICESETPNPCAPABILITIES)(
+(STDCALL *PFN_WDFDEVICESETPNPCAPABILITIES)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3786,8 +3857,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceSetPnpCapabilities(
_In_
WDFDEVICE Device,
@@ -3805,7 +3876,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICESETPOWERCAPABILITIES)(
+(STDCALL *PFN_WDFDEVICESETPOWERCAPABILITIES)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3815,8 +3886,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceSetPowerCapabilities(
_In_
WDFDEVICE Device,
@@ -3834,7 +3905,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICESETBUSINFORMATIONFORCHILDREN)(
+(STDCALL *PFN_WDFDEVICESETBUSINFORMATIONFORCHILDREN)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3844,8 +3915,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceSetBusInformationForChildren(
_In_
WDFDEVICE Device,
@@ -3864,7 +3935,7 @@ _Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEINDICATEWAKESTATUS)(
+(STDCALL *PFN_WDFDEVICEINDICATEWAKESTATUS)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3875,8 +3946,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceIndicateWakeStatus(
_In_
WDFDEVICE Device,
@@ -3894,7 +3965,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICESETFAILED)(
+(STDCALL *PFN_WDFDEVICESETFAILED)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3904,8 +3975,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceSetFailed(
_In_
WDFDEVICE Device,
@@ -3925,7 +3996,7 @@ _When_(WaitForD0 == 0, _IRQL_requires_max_(DISPATCH_LEVEL))
_When_(WaitForD0 != 0, _IRQL_requires_max_(PASSIVE_LEVEL))
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICESTOPIDLENOTRACK)(
+(STDCALL *PFN_WDFDEVICESTOPIDLENOTRACK)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3937,8 +4008,8 @@ NTSTATUS
_Must_inspect_result_
_When_(WaitForD0 == 0, _IRQL_requires_max_(DISPATCH_LEVEL))
_When_(WaitForD0 != 0, _IRQL_requires_max_(PASSIVE_LEVEL))
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceStopIdleNoTrack(
_In_
WDFDEVICE Device,
@@ -3956,7 +4027,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICERESUMEIDLENOTRACK)(
+(STDCALL *PFN_WDFDEVICERESUMEIDLENOTRACK)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -3964,8 +4035,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceResumeIdleNoTrack(
_In_
WDFDEVICE Device
@@ -3983,7 +4054,7 @@ _When_(WaitForD0 == 0, _IRQL_requires_max_(DISPATCH_LEVEL))
_When_(WaitForD0 != 0, _IRQL_requires_max_(PASSIVE_LEVEL))
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICESTOPIDLEACTUAL)(
+(STDCALL *PFN_WDFDEVICESTOPIDLEACTUAL)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -4001,8 +4072,8 @@ NTSTATUS
_Must_inspect_result_
_When_(WaitForD0 == 0, _IRQL_requires_max_(DISPATCH_LEVEL))
_When_(WaitForD0 != 0, _IRQL_requires_max_(PASSIVE_LEVEL))
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceStopIdleActual(
_In_
WDFDEVICE Device,
@@ -4026,7 +4097,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICERESUMEIDLEACTUAL)(
+(STDCALL *PFN_WDFDEVICERESUMEIDLEACTUAL)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -4040,8 +4111,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceResumeIdleActual(
_In_
WDFDEVICE Device,
@@ -4063,7 +4134,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
WDFFILEOBJECT
-(*PFN_WDFDEVICEGETFILEOBJECT)(
+(STDCALL *PFN_WDFDEVICEGETFILEOBJECT)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -4073,8 +4144,8 @@ WDFFILEOBJECT
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-WDFFILEOBJECT
FORCEINLINE
+WDFFILEOBJECT
WdfDeviceGetFileObject(
_In_
WDFDEVICE Device,
@@ -4093,7 +4164,7 @@ _Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEENQUEUEREQUEST)(
+(STDCALL *PFN_WDFDEVICEENQUEUEREQUEST)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -4104,8 +4175,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceEnqueueRequest(
_In_
WDFDEVICE Device,
@@ -4123,7 +4194,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
WDFQUEUE
-(*PFN_WDFDEVICEGETDEFAULTQUEUE)(
+(STDCALL *PFN_WDFDEVICEGETDEFAULTQUEUE)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -4131,8 +4202,8 @@ WDFQUEUE
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-WDFQUEUE
FORCEINLINE
+WDFQUEUE
WdfDeviceGetDefaultQueue(
_In_
WDFDEVICE Device
@@ -4149,7 +4220,7 @@ _Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICECONFIGUREREQUESTDISPATCHING)(
+(STDCALL *PFN_WDFDEVICECONFIGUREREQUESTDISPATCHING)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -4163,8 +4234,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceConfigureRequestDispatching(
_In_
WDFDEVICE Device,
@@ -4186,7 +4257,7 @@ _Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICECONFIGUREWDMIRPDISPATCHCALLBACK)(
+(STDCALL *PFN_WDFDEVICECONFIGUREWDMIRPDISPATCHCALLBACK)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -4203,8 +4274,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceConfigureWdmIrpDispatchCallback(
_In_
WDFDEVICE Device,
@@ -4228,7 +4299,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
POWER_ACTION
-(*PFN_WDFDEVICEGETSYSTEMPOWERACTION)(
+(STDCALL *PFN_WDFDEVICEGETSYSTEMPOWERACTION)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -4236,8 +4307,8 @@ POWER_ACTION
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-POWER_ACTION
FORCEINLINE
+POWER_ACTION
WdfDeviceGetSystemPowerAction(
_In_
WDFDEVICE Device
@@ -4254,7 +4325,7 @@ _Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEWDMASSIGNPOWERFRAMEWORKSETTINGS)(
+(STDCALL *PFN_WDFDEVICEWDMASSIGNPOWERFRAMEWORKSETTINGS)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -4265,8 +4336,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceWdmAssignPowerFrameworkSettings(
_In_
WDFDEVICE Device,
@@ -4284,7 +4355,7 @@ typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICEINITSETRELEASEHARDWAREORDERONFAILURE)(
+(STDCALL *PFN_WDFDEVICEINITSETRELEASEHARDWAREORDERONFAILURE)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -4294,8 +4365,8 @@ VOID
);
_IRQL_requires_max_(DISPATCH_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceInitSetReleaseHardwareOrderOnFailure(
_In_
PWDFDEVICE_INIT DeviceInit,
@@ -4313,7 +4384,7 @@ typedef
_IRQL_requires_max_(PASSIVE_LEVEL)
WDFAPI
VOID
-(*PFN_WDFDEVICEINITSETIOTYPEEX)(
+(STDCALL *PFN_WDFDEVICEINITSETIOTYPEEX)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -4323,8 +4394,8 @@ VOID
);
_IRQL_requires_max_(PASSIVE_LEVEL)
-VOID
FORCEINLINE
+VOID
WdfDeviceInitSetIoTypeEx(
_In_
PWDFDEVICE_INIT DeviceInit,
@@ -4353,7 +4424,7 @@ _Must_inspect_result_
_IRQL_requires_max_(APC_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEQUERYPROPERTYEX)(
+(STDCALL *PFN_WDFDEVICEQUERYPROPERTYEX)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -4372,8 +4443,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(APC_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceQueryPropertyEx(
_In_
WDFDEVICE Device,
@@ -4400,7 +4471,7 @@ _Must_inspect_result_
_IRQL_requires_max_(APC_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEALLOCANDQUERYPROPERTYEX)(
+(STDCALL *PFN_WDFDEVICEALLOCANDQUERYPROPERTYEX)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -4420,8 +4491,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(APC_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceAllocAndQueryPropertyEx(
_In_
WDFDEVICE Device,
@@ -4449,7 +4520,7 @@ _Must_inspect_result_
_IRQL_requires_max_(APC_LEVEL)
WDFAPI
NTSTATUS
-(*PFN_WDFDEVICEASSIGNPROPERTY)(
+(STDCALL *PFN_WDFDEVICEASSIGNPROPERTY)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
@@ -4466,8 +4537,8 @@ NTSTATUS
_Must_inspect_result_
_IRQL_requires_max_(APC_LEVEL)
-NTSTATUS
FORCEINLINE
+NTSTATUS
WdfDeviceAssignProperty(
_In_
WDFDEVICE Device,
diff --git a/sdk/include/wdf/kmdf/1.17/wdfdmaenabler.h
b/sdk/include/wdf/kmdf/1.17/wdfdmaenabler.h
index fd52ece6f22..6a407ff4886 100644
--- a/sdk/include/wdf/kmdf/1.17/wdfdmaenabler.h
+++ b/sdk/include/wdf/kmdf/1.17/wdfdmaenabler.h
@@ -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,
diff --git a/sdk/include/wdf/kmdf/1.17/wdfdmatransaction.h
b/sdk/include/wdf/kmdf/1.17/wdfdmatransaction.h
index 3744351780b..5f521af23d5 100644
--- a/sdk/include/wdf/kmdf/1.17/wdfdmatransaction.h
+++ b/sdk/include/wdf/kmdf/1.17/wdfdmatransaction.h
@@ -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
diff --git a/sdk/include/wdf/kmdf/1.17/wdfdpc.h b/sdk/include/wdf/kmdf/1.17/wdfdpc.h
index d65292149af..288c874e62b 100644
--- a/sdk/include/wdf/kmdf/1.17/wdfdpc.h
+++ b/sdk/include/wdf/kmdf/1.17/wdfdpc.h
@@ -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
diff --git a/sdk/include/wdf/kmdf/1.17/wdfdriver.h
b/sdk/include/wdf/kmdf/1.17/wdfdriver.h
index e96cdaf7679..5cb842fbd0a 100644
--- a/sdk/include/wdf/kmdf/1.17/wdfdriver.h
+++ b/sdk/include/wdf/kmdf/1.17/wdfdriver.h
@@ -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,
diff --git a/sdk/include/wdf/kmdf/1.17/wdffdo.h b/sdk/include/wdf/kmdf/1.17/wdffdo.h
index 160de5bcdbe..2be0b681c5e 100644
--- a/sdk/include/wdf/kmdf/1.17/wdffdo.h
+++ b/sdk/include/wdf/kmdf/1.17/wdffdo.h
@@ -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
diff --git a/sdk/include/wdf/kmdf/1.17/wdffileobject.h
b/sdk/include/wdf/kmdf/1.17/wdffileobject.h
index 34131cf2fb0..8e2c64405e0 100644
--- a/sdk/include/wdf/kmdf/1.17/wdffileobject.h
+++ b/sdk/include/wdf/kmdf/1.17/wdffileobject.h
@@ -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
diff --git a/sdk/include/wdf/kmdf/1.17/wdfinstaller.h
b/sdk/include/wdf/kmdf/1.17/wdfinstaller.h
index a13f340df41..14808ec2e86 100644
--- a/sdk/include/wdf/kmdf/1.17/wdfinstaller.h
+++ b/sdk/include/wdf/kmdf/1.17/wdfinstaller.h
@@ -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
)
diff --git a/sdk/include/wdf/kmdf/1.17/wdfinterrupt.h
b/sdk/include/wdf/kmdf/1.17/wdfinterrupt.h
index e17c8a7a56f..3906624c84c 100644
--- a/sdk/include/wdf/kmdf/1.17/wdfinterrupt.h
+++ b/sdk/include/wdf/kmdf/1.17/wdfinterrupt.h
@@ -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
diff --git a/sdk/include/wdf/kmdf/1.17/wdfio.h b/sdk/include/wdf/kmdf/1.17/wdfio.h
index 0bb83842057..22e0cc6926b 100644
--- a/sdk/include/wdf/kmdf/1.17/wdfio.h
+++ b/sdk/include/wdf/kmdf/1.17/wdfio.h
@@ -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,
... 5390 lines suppressed ...