ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
November 2020
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
18 participants
162 discussions
Start a n
N
ew thread
[reactos] 03/06: [FREELDR] Fix the parameter type of WinLdrSetupEms()
by Hermès Bélusca-Maïto
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=04b4e3b05da06d4e755f0…
commit 04b4e3b05da06d4e755f04ea218181483ef77fc7 Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org> AuthorDate: Tue Nov 3 00:22:26 2020 +0100 Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org> CommitDate: Tue Nov 3 01:52:36 2020 +0100 [FREELDR] Fix the parameter type of WinLdrSetupEms() It's a NULL-terminated string. And thus avoid an unelegant cast. --- boot/freeldr/freeldr/ntldr/headless.c | 2 +- boot/freeldr/freeldr/ntldr/winldr.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/boot/freeldr/freeldr/ntldr/headless.c b/boot/freeldr/freeldr/ntldr/headless.c index 64fd04adb7b..161e66420ae 100644 --- a/boot/freeldr/freeldr/ntldr/headless.c +++ b/boot/freeldr/freeldr/ntldr/headless.c @@ -300,7 +300,7 @@ WinLdrInitializeHeadlessPort(VOID) } VOID -WinLdrSetupEms(IN PCHAR BootOptions) +WinLdrSetupEms(IN PCSTR BootOptions) { PCHAR Settings, RedirectPort; diff --git a/boot/freeldr/freeldr/ntldr/winldr.c b/boot/freeldr/freeldr/ntldr/winldr.c index f76165f1640..d5ee1213e3e 100644 --- a/boot/freeldr/freeldr/ntldr/winldr.c +++ b/boot/freeldr/freeldr/ntldr/winldr.c @@ -22,7 +22,7 @@ extern BOOLEAN AcpiPresent; extern HEADLESS_LOADER_BLOCK LoaderRedirectionInformation; extern BOOLEAN WinLdrTerminalConnected; -extern void WinLdrSetupEms(IN PCHAR BootOptions); +extern VOID WinLdrSetupEms(IN PCSTR BootOptions); PLOADER_SYSTEM_BLOCK WinLdrSystemBlock; @@ -1020,7 +1020,7 @@ LoadAndBootWindowsCommon( #ifdef _M_IX86 /* Setup redirection support */ - WinLdrSetupEms((PCHAR)BootOptions); + WinLdrSetupEms(BootOptions); #endif /* Convert BootPath to SystemRoot */
4 years, 1 month
1
0
0
0
[reactos] 02/06: [FREELDR] Remove the 'Setup' parameter of the LoadAndBootWindowsCommon() function.
by Hermès Bélusca-Maïto
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=58866a112a14e727a6475…
commit 58866a112a14e727a6475a8b76239a0a645b851a Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org> AuthorDate: Tue Nov 3 00:13:05 2020 +0100 Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org> CommitDate: Tue Nov 3 01:51:48 2020 +0100 [FREELDR] Remove the 'Setup' parameter of the LoadAndBootWindowsCommon() function. This parameter is not needed since it's possible to determine, from within this function, whether or not we are in Setup mode, by just looking for the presence of a non NULL LoaderBlock->SetupLdrBlock. --- boot/freeldr/freeldr/ntldr/setupldr.c | 5 ++--- boot/freeldr/freeldr/ntldr/winldr.c | 12 +++++------- boot/freeldr/freeldr/ntldr/winldr.h | 9 ++++----- 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/boot/freeldr/freeldr/ntldr/setupldr.c b/boot/freeldr/freeldr/ntldr/setupldr.c index 2010a2718db..b6da7c7a95c 100644 --- a/boot/freeldr/freeldr/ntldr/setupldr.c +++ b/boot/freeldr/freeldr/ntldr/setupldr.c @@ -389,10 +389,9 @@ LoadReactOSSetup( UiDrawStatusText("The Setup program is starting..."); - /* Load ReactOS Setup */ + /* Finish loading */ return LoadAndBootWindowsCommon(_WIN32_WINNT_WS03, LoaderBlock, BootOptions, - BootPath, - TRUE); + BootPath); } diff --git a/boot/freeldr/freeldr/ntldr/winldr.c b/boot/freeldr/freeldr/ntldr/winldr.c index d672dd2af4f..f76165f1640 100644 --- a/boot/freeldr/freeldr/ntldr/winldr.c +++ b/boot/freeldr/freeldr/ntldr/winldr.c @@ -998,17 +998,15 @@ LoadAndBootWindows( return LoadAndBootWindowsCommon(OperatingSystemVersion, LoaderBlock, BootOptions, - BootPath, - FALSE); + BootPath); } ARC_STATUS LoadAndBootWindowsCommon( - USHORT OperatingSystemVersion, - PLOADER_PARAMETER_BLOCK LoaderBlock, - PCSTR BootOptions, - PCSTR BootPath, - BOOLEAN Setup) + IN USHORT OperatingSystemVersion, + IN PLOADER_PARAMETER_BLOCK LoaderBlock, + IN PCSTR BootOptions, + IN PCSTR BootPath) { PLOADER_PARAMETER_BLOCK LoaderBlockVA; BOOLEAN Success; diff --git a/boot/freeldr/freeldr/ntldr/winldr.h b/boot/freeldr/freeldr/ntldr/winldr.h index a2af29ff5a3..c89010e3e1a 100644 --- a/boot/freeldr/freeldr/ntldr/winldr.h +++ b/boot/freeldr/freeldr/ntldr/winldr.h @@ -120,11 +120,10 @@ WinLdrpDumpArcDisks(PLOADER_PARAMETER_BLOCK LoaderBlock); ARC_STATUS LoadAndBootWindowsCommon( - USHORT OperatingSystemVersion, - PLOADER_PARAMETER_BLOCK LoaderBlock, - PCSTR BootOptions, - PCSTR BootPath, - BOOLEAN Setup); + IN USHORT OperatingSystemVersion, + IN PLOADER_PARAMETER_BLOCK LoaderBlock, + IN PCSTR BootOptions, + IN PCSTR BootPath); VOID WinLdrSetupMachineDependent(PLOADER_PARAMETER_BLOCK LoaderBlock);
4 years, 1 month
1
0
0
0
[reactos] 01/06: [FREELDR] Remove trailing whitespace.
by Hermès Bélusca-Maïto
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=64ca7f642743851dcb1ff…
commit 64ca7f642743851dcb1ffb2d4102fe5e8914a788 Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org> AuthorDate: Sun Oct 25 00:15:43 2020 +0200 Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org> CommitDate: Tue Nov 3 01:51:47 2020 +0100 [FREELDR] Remove trailing whitespace. --- boot/freeldr/freeldr/ntldr/winldr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/boot/freeldr/freeldr/ntldr/winldr.c b/boot/freeldr/freeldr/ntldr/winldr.c index 3d3d948a60f..d672dd2af4f 100644 --- a/boot/freeldr/freeldr/ntldr/winldr.c +++ b/boot/freeldr/freeldr/ntldr/winldr.c @@ -737,11 +737,11 @@ LoadWindowsCore(IN USHORT OperatingSystemVersion, Options = strpbrk(Options, " \t"); } - if (SafeBoot) - { - PaeDisabled = TRUE; - NoexecuteDisabled = TRUE; - } + if (SafeBoot) + { + PaeDisabled = TRUE; + NoexecuteDisabled = TRUE; + } /* Load all referenced DLLs for Kernel, HAL and Kernel Debugger Transport DLL */ Success = PeLdrScanImportDescriptorTable(&LoaderBlock->LoadOrderListHead, DirPath, *KernelDTE);
4 years, 1 month
1
0
0
0
[reactos] 04/04: [WDF] Fix KMDF so it can compile with ReactOS SDK Not all files are included, but these are necessary to compile cdrom driver. So far it can only be statically linked with drivers, a proper implementation requires wdfldr helper driver
by Victor Perevertkin
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1f377076d783d597f33e7…
commit 1f377076d783d597f33e720498ef29505973c680 Author: Victor Perevertkin <victor.perevertkin(a)reactos.org> AuthorDate: Fri Oct 16 06:30:51 2020 +0300 Commit: Victor Perevertkin <victor.perevertkin(a)reactos.org> CommitDate: Tue Nov 3 00:06:27 2020 +0300 [WDF] Fix KMDF so it can compile with ReactOS SDK Not all files are included, but these are necessary to compile cdrom driver. So far it can only be statically linked with drivers, a proper implementation requires wdfldr helper driver --- sdk/lib/drivers/CMakeLists.txt | 1 + sdk/lib/drivers/wdf/CMakeLists.txt | 217 ++++ sdk/lib/drivers/wdf/kmdf/inc/private/fx.hpp | 212 ++-- .../wdf/kmdf/inc/private/fxdmatransaction.hpp | 12 +- sdk/lib/drivers/wdf/kmdf/inc/private/fxdynamics.h | 1332 +++++++++++++++----- .../wdf/kmdf/inc/private/fxdynamicswrapper.h | 6 +- .../drivers/wdf/kmdf/inc/private/fxprobeandlock.h | 2 +- .../wdf/kmdf/src/core/fxbugcheckcallback.cpp | 335 +++-- sdk/lib/drivers/wdf/kmdf/src/core/fxchildlist.cpp | 5 +- .../drivers/wdf/kmdf/src/core/fxchildlistapi.cpp | 15 +- .../drivers/wdf/kmdf/src/core/fxdevicefdoapi.cpp | 8 +- .../drivers/wdf/kmdf/src/core/fxdevicepdoapi.cpp | 29 +- sdk/lib/drivers/wdf/kmdf/src/core/fxdpc.cpp | 4 +- sdk/lib/drivers/wdf/kmdf/src/core/fxdpcapi.cpp | 9 +- .../drivers/wdf/kmdf/src/core/fxsystemthread.cpp | 12 +- sdk/lib/drivers/wdf/kmdf/src/core/tracing.cpp | 6 +- .../wdf/kmdf/src/dma/base/fxcommonbuffer.cpp | 4 +- .../wdf/kmdf/src/dma/base/fxcommonbufferapi.cpp | 9 +- .../drivers/wdf/kmdf/src/dma/base/fxdmaenabler.cpp | 4 +- .../wdf/kmdf/src/dma/base/fxdmaenablerapi.cpp | 4 +- sdk/lib/drivers/wdf/kmdf/src/dma/base/fxdmapch.hpp | 2 +- .../wdf/kmdf/src/dma/base/fxdmatransaction.cpp | 6 +- .../wdf/kmdf/src/dma/base/fxdmatransactionapi.cpp | 4 +- .../wdf/kmdf/src/dynamic/version/version.cpp | 6 +- .../fxobject/fxobjectinfokm.cpp | 10 +- .../wdf/kmdf/src/irphandlers/wmi/fxwmiapi.cpp | 2 +- .../wdf/kmdf/src/irphandlers/wmi/fxwmiinstance.cpp | 4 +- .../kmdf/src/irphandlers/wmi/fxwmiirphandler.cpp | 2 +- .../wdf/kmdf/src/irphandlers/wmi/fxwmiprovider.cpp | 4 +- .../wdf/kmdf/src/librarycommon/fxlibrarycommon.cpp | 6 +- .../wdf/kmdf/src/support/fxqueryinterface.cpp | 4 +- .../wdf/kmdf/src/support/fxqueryinterfaceapi.cpp | 5 +- .../wdf/kmdf/src/support/fxrelateddevice.cpp | 2 +- .../wdf/kmdf/src/support/fxrelateddevicelist.cpp | 4 +- .../drivers/wdf/kmdf/src/support/probeandlock.c | 34 +- sdk/lib/drivers/wdf/reactos_special.cpp | 72 ++ sdk/lib/drivers/wdf/shared/core/coreprivshared.hpp | 128 +- sdk/lib/drivers/wdf/shared/core/fxcxdeviceinit.cpp | 2 +- .../drivers/wdf/shared/core/fxcxdeviceinitapi.cpp | 2 +- sdk/lib/drivers/wdf/shared/core/fxdevice.cpp | 31 +- sdk/lib/drivers/wdf/shared/core/fxdeviceapi.cpp | 41 +- sdk/lib/drivers/wdf/shared/core/fxdevicebase.cpp | 4 +- .../drivers/wdf/shared/core/fxdevicecontrolapi.cpp | 5 +- sdk/lib/drivers/wdf/shared/core/fxdeviceinit.cpp | 2 +- .../drivers/wdf/shared/core/fxdeviceinitapi.cpp | 49 +- sdk/lib/drivers/wdf/shared/core/fxdisposelist.cpp | 6 +- sdk/lib/drivers/wdf/shared/core/fxdriver.cpp | 4 +- sdk/lib/drivers/wdf/shared/core/fxdriverapi.cpp | 17 +- sdk/lib/drivers/wdf/shared/core/fxfileobject.cpp | 4 +- .../drivers/wdf/shared/core/fxfileobjectapi.cpp | 7 +- sdk/lib/drivers/wdf/shared/core/fxirpqueue.cpp | 2 +- .../drivers/wdf/shared/core/fxlookasidelist.cpp | 2 +- .../drivers/wdf/shared/core/fxlookasidelistapi.cpp | 8 +- sdk/lib/drivers/wdf/shared/core/fxmemorybuffer.cpp | 4 +- .../drivers/wdf/shared/core/fxmemorybufferapi.cpp | 8 +- .../shared/core/fxmemorybufferfromlookaside.cpp | 8 +- .../wdf/shared/core/fxmemorybufferpreallocated.cpp | 4 +- .../shared/core/fxmemorybufferpreallocatedapi.cpp | 6 +- sdk/lib/drivers/wdf/shared/core/fxmemoryobject.cpp | 2 +- .../wdf/shared/core/fxpagedlookasidelist.cpp | 4 +- sdk/lib/drivers/wdf/shared/core/fxrequest.cpp | 20 +- sdk/lib/drivers/wdf/shared/core/fxrequestapi.cpp | 44 +- sdk/lib/drivers/wdf/shared/core/fxrequestbase.cpp | 4 +- .../drivers/wdf/shared/core/fxrequestcontext.cpp | 2 +- .../drivers/wdf/shared/core/fxrequestmemory.cpp | 2 +- .../wdf/shared/core/fxrequestoutputbuffer.cpp | 2 +- .../wdf/shared/core/fxrequestsystembuffer.cpp | 2 +- sdk/lib/drivers/wdf/shared/core/fxsyncrequest.cpp | 4 +- .../drivers/wdf/shared/core/fxsystemworkitem.cpp | 4 +- sdk/lib/drivers/wdf/shared/core/fxtimer.cpp | 14 +- sdk/lib/drivers/wdf/shared/core/fxtimerapi.cpp | 8 +- sdk/lib/drivers/wdf/shared/core/fxworkitem.cpp | 12 +- sdk/lib/drivers/wdf/shared/core/fxworkitemapi.cpp | 8 +- .../drivers/wdf/shared/core/km/fxdeviceapikm.cpp | 22 +- .../drivers/wdf/shared/core/km/fxdevicebasekm.cpp | 2 +- .../drivers/wdf/shared/core/km/fxdeviceinitkm.cpp | 2 +- sdk/lib/drivers/wdf/shared/core/km/fxdevicekm.cpp | 33 +- .../drivers/wdf/shared/core/km/fxdriverapikm.cpp | 7 +- sdk/lib/drivers/wdf/shared/core/km/fxdriverkm.cpp | 2 +- .../wdf/shared/core/km/fxfileobjectapikm.cpp | 5 +- .../drivers/wdf/shared/core/km/fxfileobjectkm.cpp | 2 +- .../wdf/shared/core/km/fxnpagedlookasidelistkm.cpp | 4 +- sdk/lib/drivers/wdf/shared/core/km/fxrequestkm.cpp | 6 +- .../wdf/shared/core/km/fxrequestsystembufferkm.cpp | 2 +- .../drivers/wdf/shared/enhancedverif/vfpriv.hpp | 6 +- .../drivers/wdf/shared/inc/primitives/common/mx.h | 8 +- .../shared/inc/primitives/common/mxdriverobject.h | 2 +- .../wdf/shared/inc/primitives/common/mxgeneral.h | 1 + .../shared/inc/primitives/km/mxdeviceobjectkm.h | 6 +- .../shared/inc/primitives/km/mxdriverobjectkm.h | 4 +- .../wdf/shared/inc/primitives/km/mxeventkm.h | 4 +- .../wdf/shared/inc/primitives/km/mxfileobjectkm.h | 2 +- .../wdf/shared/inc/primitives/km/mxgeneralkm.h | 21 +- .../drivers/wdf/shared/inc/primitives/km/mxkm.h | 28 +- .../wdf/shared/inc/primitives/km/mxlockkm.h | 4 +- .../wdf/shared/inc/primitives/km/mxmemorykm.h | 2 +- .../wdf/shared/inc/primitives/km/mxpagedlockkm.h | 6 +- .../wdf/shared/inc/primitives/km/mxtimerkm.h | 131 +- .../wdf/shared/inc/primitives/km/mxworkitemkm.h | 2 +- .../drivers/wdf/shared/inc/primitives/um/mxum.h | 2 - .../wdf/shared/inc/private/common/dbgtrace.h | 5 + .../inc/private/common/fxcallbackmutexlock.hpp | 2 +- .../shared/inc/private/common/fxcxdeviceinfo.hpp | 2 +- .../shared/inc/private/common/fxcxdeviceinit.hpp | 2 +- .../wdf/shared/inc/private/common/fxdevice.hpp | 18 +- .../wdf/shared/inc/private/common/fxdeviceinit.hpp | 4 +- .../wdf/shared/inc/private/common/fxdevicetext.hpp | 1 + .../wdf/shared/inc/private/common/fxdriver.hpp | 8 +- .../wdf/shared/inc/private/common/fxforward.hpp | 8 +- .../wdf/shared/inc/private/common/fxglobals.h | 13 +- .../wdf/shared/inc/private/common/fxinterrupt.hpp | 4 +- .../wdf/shared/inc/private/common/fxioqueue.hpp | 10 +- .../wdf/shared/inc/private/common/fxiotarget.hpp | 10 +- .../shared/inc/private/common/fxiotargetremote.hpp | 8 +- .../wdf/shared/inc/private/common/fxirp.hpp | 76 +- .../wdf/shared/inc/private/common/fxirpqueue.hpp | 10 +- .../drivers/wdf/shared/inc/private/common/fxldr.h | 4 +- .../wdf/shared/inc/private/common/fxmacros.hpp | 4 +- .../drivers/wdf/shared/inc/private/common/fxmdl.h | 2 +- .../shared/inc/private/common/fxmemoryobject.hpp | 2 +- .../wdf/shared/inc/private/common/fxmin.hpp | 238 ++-- .../wdf/shared/inc/private/common/fxobject.hpp | 4 +- .../wdf/shared/inc/private/common/fxpkgfdo.hpp | 2 + .../wdf/shared/inc/private/common/fxpkggeneral.hpp | 2 +- .../wdf/shared/inc/private/common/fxpkgio.hpp | 8 +- .../wdf/shared/inc/private/common/fxpkgpdo.hpp | 2 + .../wdf/shared/inc/private/common/fxpkgpnp.hpp | 31 +- .../private/common/fxpowerpolicystatemachine.hpp | 4 +- .../inc/private/common/fxpowerstatemachine.hpp | 2 +- .../shared/inc/private/common/fxpoxinterface.hpp | 2 +- .../inc/private/common/fxrelateddevicelist.hpp | 6 +- .../wdf/shared/inc/private/common/fxrequest.hpp | 4 +- .../shared/inc/private/common/fxrequestbase.hpp | 13 +- .../shared/inc/private/common/fxrequestbuffer.hpp | 6 +- .../shared/inc/private/common/fxsyncrequest.hpp | 6 +- .../shared/inc/private/common/fxsystemthread.hpp | 2 + .../shared/inc/private/common/fxsystemworkitem.hpp | 2 +- .../wdf/shared/inc/private/common/fxtelemetry.hpp | 8 +- .../inc/private/common/fxtelemetrycommon.hpp | 4 +- .../inc/private/common/fxtransactionedlist.hpp | 2 + .../wdf/shared/inc/private/common/fxtypedefs.hpp | 4 +- .../wdf/shared/inc/private/common/fxusbdevice.hpp | 5 +- .../shared/inc/private/common/fxusbidleinfo.hpp | 1 + .../shared/inc/private/common/fxusbinterface.hpp | 4 +- .../wdf/shared/inc/private/common/fxusbpipe.hpp | 4 +- .../inc/private/common/fxusbrequestcontext.hpp | 2 +- .../wdf/shared/inc/private/common/fxuserobject.hpp | 2 +- .../wdf/shared/inc/private/common/fxverifier.h | 4 +- .../shared/inc/private/common/fxverifierlock.hpp | 4 +- .../wdf/shared/inc/private/common/fxwaitlock.hpp | 2 +- .../private/common/fxwakeinterruptstatemachine.hpp | 2 +- .../wdf/shared/inc/private/km/fxdmaenabler.hpp | 2 +- .../wdf/shared/inc/private/km/fxglobalskm.h | 4 +- .../wdf/shared/inc/private/km/fxinterruptkm.hpp | 2 +- .../wdf/shared/inc/private/km/fxiotargetkm.hpp | 2 +- .../drivers/wdf/shared/inc/private/km/fxirpkm.hpp | 14 +- .../wdf/shared/inc/private/km/fxperftracekm.hpp | 102 +- .../wdf/shared/inc/private/um/fxiotargetum.hpp | 2 +- .../irphandlers/default/fxdefaultirphandler.cpp | 4 +- .../shared/irphandlers/general/fxpkggeneral.cpp | 4 +- .../wdf/shared/irphandlers/io/fxioqueue.cpp | 6 +- .../wdf/shared/irphandlers/io/fxioqueueapi.cpp | 24 +- .../drivers/wdf/shared/irphandlers/io/fxpkgio.cpp | 6 +- .../wdf/shared/irphandlers/io/ioprivshared.hpp | 66 +- .../wdf/shared/irphandlers/io/km/fxioqueuekm.cpp | 4 +- .../wdf/shared/irphandlers/irphandlerspriv.hpp | 8 +- .../wdf/shared/irphandlers/package/fxpackage.cpp | 4 +- .../wdf/shared/irphandlers/pnp/fdopower.cpp | 3 - .../wdf/shared/irphandlers/pnp/fxinterruptapi.cpp | 2 +- .../wdf/shared/irphandlers/pnp/fxpkgfdo.cpp | 4 +- .../wdf/shared/irphandlers/pnp/fxpkgpdo.cpp | 2 +- .../wdf/shared/irphandlers/pnp/fxpkgpnp.cpp | 471 +++---- .../wdf/shared/irphandlers/pnp/interruptobject.cpp | 6 +- .../wdf/shared/irphandlers/pnp/km/eventqueuekm.cpp | 4 +- .../wdf/shared/irphandlers/pnp/km/fxpkgfdokm.cpp | 208 +-- .../wdf/shared/irphandlers/pnp/km/fxpkgpdokm.cpp | 2 +- .../wdf/shared/irphandlers/pnp/km/fxpkgpnpkm.cpp | 259 ++-- .../irphandlers/pnp/km/interruptobjectkm.cpp | 2 +- .../wdf/shared/irphandlers/pnp/km/pnpprivkm.hpp | 60 +- .../irphandlers/pnp/km/pnpstatemachinekm.cpp | 2 +- .../pnp/km/powerpolicystatemachinekm.cpp | 59 +- .../irphandlers/pnp/km/powerstatemachinekm.cpp | 72 +- .../wdf/shared/irphandlers/pnp/km/supportkm.cpp | 9 +- .../wdf/shared/irphandlers/pnp/pdopower.cpp | 7 - .../drivers/wdf/shared/irphandlers/pnp/pnppriv.hpp | 82 +- .../wdf/shared/irphandlers/pnp/pnpstatemachine.cpp | 6 +- .../irphandlers/pnp/powerpolicystatemachine.cpp | 2 +- .../shared/irphandlers/pnp/powerstatemachine.cpp | 2 +- .../wdf/shared/irphandlers/pnp/poxinterface.cpp | 879 ++++++------- .../wdf/shared/irphandlers/pnp/um/fxpkgfdoum.cpp | 2 +- .../wdf/shared/irphandlers/pnp/um/fxpkgpdoum.cpp | 2 +- .../wdf/shared/irphandlers/pnp/um/fxpkgpnpum.cpp | 2 +- .../irphandlers/pnp/um/pnpstatemachineum.cpp | 2 +- .../pnp/um/powerpolicystatemachineum.cpp | 2 +- .../irphandlers/pnp/um/powerstatemachineum.cpp | 2 +- .../shared/irphandlers/pnp/um/poxinterfaceum.cpp | 2 +- .../wdf/shared/irphandlers/pnp/um/supportum.cpp | 2 +- sdk/lib/drivers/wdf/shared/object/dbgtrace.cpp | 2 +- sdk/lib/drivers/wdf/shared/object/fxobjectapi.cpp | 6 + sdk/lib/drivers/wdf/shared/object/fxobjectpch.hpp | 2 +- sdk/lib/drivers/wdf/shared/object/fxtagtracker.cpp | 1 + sdk/lib/drivers/wdf/shared/object/fxuserobject.cpp | 2 +- .../drivers/wdf/shared/object/fxuserobjectapi.cpp | 3 +- .../wdf/shared/object/fxverifierbugcheck.cpp | 4 +- sdk/lib/drivers/wdf/shared/object/globals.cpp | 27 +- sdk/lib/drivers/wdf/shared/object/handleapi.cpp | 1 + sdk/lib/drivers/wdf/shared/object/km/globalskm.cpp | 5 +- sdk/lib/drivers/wdf/shared/object/km/wdfpoolkm.cpp | 2 + .../wdf/shared/object/um/fxobjectinfoum.cpp | 4 +- sdk/lib/drivers/wdf/shared/object/wdfpool.cpp | 2 +- .../wdf/shared/primitives/km/mxgeneralkm.cpp | 2 +- .../wdf/shared/primitives/um/mxdriverobjectum.cpp | 2 +- .../wdf/shared/primitives/um/mxgeneralum.cpp | 1 + .../drivers/wdf/shared/support/fxcollection.cpp | 2 +- .../drivers/wdf/shared/support/fxcollectionapi.cpp | 15 +- .../wdf/shared/support/fxdeviceinterface.cpp | 4 +- .../wdf/shared/support/fxdeviceinterfaceapi.cpp | 7 +- .../drivers/wdf/shared/support/fxdevicetext.cpp | 2 +- .../drivers/wdf/shared/support/fxregistryapi.cpp | 23 +- sdk/lib/drivers/wdf/shared/support/fxregkey.cpp | 2 +- .../drivers/wdf/shared/support/fxrequestbuffer.cpp | 4 +- .../drivers/wdf/shared/support/fxresourceapi.cpp | 4 +- .../wdf/shared/support/fxresourcecollection.cpp | 2 +- sdk/lib/drivers/wdf/shared/support/fxspinlock.cpp | 6 +- .../drivers/wdf/shared/support/fxspinlockapi.cpp | 9 +- sdk/lib/drivers/wdf/shared/support/fxstring.cpp | 2 +- sdk/lib/drivers/wdf/shared/support/fxstringapi.cpp | 6 +- .../drivers/wdf/shared/support/fxsupportpch.hpp | 4 +- sdk/lib/drivers/wdf/shared/support/fxtelemetry.cpp | 6 +- .../wdf/shared/support/fxtransactionedlist.cpp | 2 +- sdk/lib/drivers/wdf/shared/support/fxwaitlock.cpp | 4 +- .../drivers/wdf/shared/support/fxwaitlockapi.cpp | 5 +- .../wdf/shared/support/km/fxdeviceinterfacekm.cpp | 4 +- .../drivers/wdf/shared/support/km/fxregkeykm.cpp | 4 +- .../wdf/shared/support/km/fxrequestbufferkm.cpp | 4 +- .../shared/support/km/fxresourcecollectionkm.cpp | 2 +- .../wdf/shared/support/km/fxsupportpchkm.hpp | 16 +- sdk/lib/drivers/wdf/shared/support/stringutil.cpp | 4 +- .../drivers/wdf/shared/targets/fxtargetsshared.hpp | 42 +- .../wdf/shared/targets/general/fxiotarget.cpp | 6 +- .../wdf/shared/targets/general/fxiotargetapi.cpp | 25 +- .../shared/targets/general/fxiotargetremote.cpp | 10 +- .../wdf/shared/targets/general/fxiotargetself.cpp | 2 +- .../shared/targets/general/km/fxiotargetapikm.cpp | 12 +- .../wdf/shared/targets/general/km/fxiotargetkm.cpp | 2 +- .../targets/general/km/fxiotargetremotekm.cpp | 8 +- .../drivers/wdf/shared/targets/usb/fxusbdevice.cpp | 12 +- .../drivers/wdf/shared/targets/usb/fxusbpipe.cpp | 16 +- .../wdf/shared/targets/usb/km/fxusbdevicekm.cpp | 2 +- .../wdf/shared/targets/usb/km/fxusbpipekm.cpp | 2 +- .../wdf/shared/targets/usb/um/fxusbdeviceum.cpp | 2 +- .../wdf/shared/targets/usb/um/fxusbpipeum.cpp | 2 +- .../drivers/wdf/umdf/fxlib/version/framework.cpp | 5 +- sdk/lib/drivers/wdf/umdf/fxlib/version/version.cpp | 8 +- sdk/lib/drivers/wdf/usbspec.h | 14 + sdk/lib/drivers/wdf/wdf01000_reg.inf | 17 + sdk/lib/drivers/wdf/wdfcx.h | 141 +++ sdk/lib/drivers/wdf/wdfldr.h | 38 + 258 files changed, 4204 insertions(+), 2544 deletions(-) diff --git a/sdk/lib/drivers/CMakeLists.txt b/sdk/lib/drivers/CMakeLists.txt index 7f63a0026cb..e20501a0cf0 100644 --- a/sdk/lib/drivers/CMakeLists.txt +++ b/sdk/lib/drivers/CMakeLists.txt @@ -11,3 +11,4 @@ add_subdirectory(rdbsslib) add_subdirectory(rtlver) add_subdirectory(rxce) add_subdirectory(sound) +add_subdirectory(wdf) diff --git a/sdk/lib/drivers/wdf/CMakeLists.txt b/sdk/lib/drivers/wdf/CMakeLists.txt new file mode 100644 index 00000000000..8b4efe8c3b5 --- /dev/null +++ b/sdk/lib/drivers/wdf/CMakeLists.txt @@ -0,0 +1,217 @@ + +remove_definitions(-D_WIN32_WINNT=0x502) + +list(APPEND SOURCE_SHARED + shared/core/fxcxdeviceinit.cpp + # shared/core/fxcxdeviceinitapi.cpp + shared/core/fxdevice.cpp + shared/core/fxdeviceapi.cpp + shared/core/fxdevicebase.cpp + shared/core/fxdevicecontrolapi.cpp + shared/core/fxdeviceinit.cpp + shared/core/fxdeviceinitapi.cpp + shared/core/fxdisposelist.cpp + shared/core/fxdriver.cpp + shared/core/fxdriverapi.cpp + shared/core/fxfileobject.cpp + shared/core/fxfileobjectapi.cpp + shared/core/fxirpqueue.cpp + # shared/core/fxlock.cpp + shared/core/fxlookasidelist.cpp + shared/core/fxlookasidelistapi.cpp + shared/core/fxmemorybuffer.cpp + shared/core/fxmemorybufferapi.cpp + shared/core/fxmemorybufferfromlookaside.cpp + shared/core/fxmemorybufferfrompool.cpp + shared/core/fxmemorybufferpreallocated.cpp + shared/core/fxmemorybufferpreallocatedapi.cpp + shared/core/fxmemoryobject.cpp + shared/core/fxpagedlookasidelist.cpp + shared/core/fxrequest.cpp + shared/core/fxrequestapi.cpp + shared/core/fxrequestbase.cpp + shared/core/fxrequestcontext.cpp + shared/core/fxrequestmemory.cpp + shared/core/fxrequestoutputbuffer.cpp + shared/core/fxrequestsystembuffer.cpp + shared/core/fxsyncrequest.cpp + shared/core/fxsystemworkitem.cpp + shared/core/fxtimer.cpp + shared/core/fxtimerapi.cpp + shared/core/fxworkitem.cpp + shared/core/fxworkitemapi.cpp + # shared/core/verifierapi.cpp + shared/irphandlers/default/fxdefaultirphandler.cpp + shared/irphandlers/general/fxpkggeneral.cpp + shared/irphandlers/io/fxioqueue.cpp + shared/irphandlers/io/fxioqueueapi.cpp + shared/irphandlers/io/fxpkgio.cpp + shared/irphandlers/package/fxpackage.cpp + # shared/irphandlers/pnp/devicepwrreqstatemachine.cpp + shared/irphandlers/pnp/eventqueue.cpp + shared/irphandlers/pnp/fdopower.cpp + # shared/irphandlers/pnp/fxinterruptapi.cpp + shared/irphandlers/pnp/fxpkgfdo.cpp + shared/irphandlers/pnp/fxpkgpdo.cpp + shared/irphandlers/pnp/fxpkgpnp.cpp + shared/irphandlers/pnp/interruptobject.cpp + shared/irphandlers/pnp/notpowerpolicyownerstatemachine.cpp + shared/irphandlers/pnp/pdopower.cpp + shared/irphandlers/pnp/pnpstatemachine.cpp + shared/irphandlers/pnp/poweridlestatemachine.cpp + shared/irphandlers/pnp/powerpolicystatemachine.cpp + shared/irphandlers/pnp/powerstatemachine.cpp + shared/irphandlers/pnp/poxinterface.cpp # stubs + shared/irphandlers/pnp/selfmanagediostatemachine.cpp + shared/irphandlers/pnp/wakeinterruptstatemachine.cpp + shared/object/dbgtrace.cpp + shared/object/fxobject.cpp + shared/object/fxobjectapi.cpp + shared/object/fxobjectstatemachine.cpp + shared/object/fxtagtracker.cpp + shared/object/fxuserobject.cpp + shared/object/fxuserobjectapi.cpp + shared/object/fxvalidatefunctions.cpp + shared/object/fxverifierbugcheck.cpp + shared/object/fxverifierlock.cpp + shared/object/globals.cpp + shared/object/handleapi.cpp + shared/object/wdfpool.cpp + shared/support/fxcollection.cpp + shared/support/fxcollectionapi.cpp + # shared/support/fxdeviceinterface.cpp + shared/support/fxdeviceinterfaceapi.cpp + shared/support/fxdevicetext.cpp + shared/support/fxregistryapi.cpp + shared/support/fxregkey.cpp + shared/support/fxrequestbuffer.cpp + # shared/support/fxresourceapi.cpp + shared/support/fxresourcecollection.cpp + shared/support/fxspinlock.cpp + shared/support/fxspinlockapi.cpp + shared/support/fxstring.cpp + shared/support/fxstringapi.cpp + # shared/support/fxtelemetry.cpp + shared/support/fxtransactionedlist.cpp + shared/support/fxwaitlock.cpp + shared/support/fxwaitlockapi.cpp + shared/support/stringutil.cpp + shared/targets/general/fxiotarget.cpp + shared/targets/general/fxiotargetapi.cpp + shared/targets/general/fxiotargetremote.cpp + shared/targets/general/fxiotargetself.cpp + # shared/targets/usb/fxusbdevice.cpp + # shared/targets/usb/fxusbdeviceapi.cpp + # shared/targets/usb/fxusbinterface.cpp + # shared/targets/usb/fxusbinterfaceapi.cpp + # shared/targets/usb/fxusbpipe.cpp + # shared/targets/usb/fxusbpipeapi.cpp + # shared/targets/usb/usbutil.cpp + ) + +list(APPEND SOURCE_KM + kmdf/src/core/fxbugcheckcallback.cpp + kmdf/src/core/fxchildlist.cpp + kmdf/src/core/fxchildlistapi.cpp + kmdf/src/core/fxdevicefdoapi.cpp + kmdf/src/core/fxdevicepdoapi.cpp + kmdf/src/core/fxdpc.cpp + kmdf/src/core/fxdpcapi.cpp + kmdf/src/core/fxsystemthread.cpp + # kmdf/src/core/tracing.cpp + # kmdf/src/dma/base/fxcommonbuffer.cpp # requires DMA stuff + # kmdf/src/dma/base/fxcommonbufferapi.cpp # requires DMA stuff + # kmdf/src/dma/base/fxdmaenabler.cpp + # kmdf/src/dma/base/fxdmaenablerapi.cpp + # kmdf/src/dma/base/fxdmatransaction.cpp + # kmdf/src/dma/base/fxdmatransactionapi.cpp + # kmdf/src/dynamic/version/version.cpp + kmdf/src/fxtosharedinterface/fxobject/fxobjectinfokm.cpp + # kmdf/src/irphandlers/wmi/fxwmiapi.cpp + # kmdf/src/irphandlers/wmi/fxwmiinstance.cpp + # kmdf/src/irphandlers/wmi/fxwmiirphandler.cpp + # kmdf/src/irphandlers/wmi/fxwmiprovider.cpp + # kmdf/src/librarycommon/fxlibrarycommon.cpp + kmdf/src/support/fxqueryinterface.cpp + kmdf/src/support/fxqueryinterfaceapi.cpp + kmdf/src/support/fxrelateddevice.cpp + kmdf/src/support/fxrelateddevicelist.cpp + kmdf/src/support/probeandlock.c + shared/core/km/fxdeviceapikm.cpp + shared/core/km/fxdevicebasekm.cpp + shared/core/km/fxdeviceinitkm.cpp + shared/core/km/fxdevicekm.cpp + shared/core/km/fxdriverapikm.cpp + shared/core/km/fxdriverkm.cpp + shared/core/km/fxfileobjectapikm.cpp + shared/core/km/fxfileobjectkm.cpp + shared/core/km/fxnpagedlookasidelistkm.cpp + shared/core/km/fxrequestkm.cpp + shared/core/km/fxrequestsystembufferkm.cpp + shared/irphandlers/io/km/fxioqueuekm.cpp + shared/irphandlers/pnp/km/eventqueuekm.cpp + shared/irphandlers/pnp/km/fxpkgfdokm.cpp + shared/irphandlers/pnp/km/fxpkgpdokm.cpp + shared/irphandlers/pnp/km/fxpkgpnpkm.cpp + shared/irphandlers/pnp/km/interruptobjectkm.cpp + shared/irphandlers/pnp/km/pnpstatemachinekm.cpp + shared/irphandlers/pnp/km/powerpolicystatemachinekm.cpp + shared/irphandlers/pnp/km/powerstatemachinekm.cpp # stubs + # shared/irphandlers/pnp/km/poxinterfacekm.cpp + shared/irphandlers/pnp/km/supportkm.cpp + shared/object/km/fxobjectkm.cpp + shared/object/km/globalskm.cpp + shared/object/km/wdfpoolkm.cpp + shared/primitives/km/mxgeneralkm.cpp + shared/support/km/fxdeviceinterfacekm.cpp + shared/support/km/fxregkeykm.cpp + shared/support/km/fxrequestbufferkm.cpp + shared/support/km/fxresourcecollectionkm.cpp + # shared/support/km/fxtelemetrykm.cpp + shared/targets/general/fxiotarget.cpp + shared/targets/general/fxiotargetapi.cpp + shared/targets/general/fxiotargetremote.cpp + shared/targets/general/fxiotargetself.cpp + shared/targets/general/km/fxiotargetapikm.cpp + shared/targets/general/km/fxiotargetkm.cpp + shared/targets/general/km/fxiotargetremotekm.cpp + reactos_special.cpp + ) + +# add_library(wdf01000 MODULE ${SOURCE}) + +# set_module_type(wdf01000 kernelmodedriver ENTRYPOINT 0) +# add_importlibs(wdf01000 ntoskrnl hal wdfldr) +# add_cd_file(TARGET wdf01000 DESTINATION reactos/system32/drivers FOR all) +# add_registry_inf(wdf01000_reg.inf) + +add_library(wdf01000 ${SOURCE_SHARED} ${SOURCE_KM}) + +target_compile_definitions(wdf01000 + PUBLIC WDF_DEVICE_NO_WDMSEC_H _WIN32_WINNT=0x603 NTDDI_VERSION=0x06030000 # NTDDI_WINBLUE + PRIVATE FX_CORE_MODE=1 FX_CORE_KERNEL_MODE=1 + PRIVATE __WDF_MAJOR_VERSION=1 __WDF_MINOR_VERSION=17 __WDF_BUILD_NUMBER=7600) + +target_include_directories(wdf01000 + PUBLIC ${REACTOS_SOURCE_DIR}/sdk/include/wdf/kmdf/1.17 + PRIVATE + shared/inc/primitives/common + shared/inc/primitives/km + shared/inc/private/common + shared/inc/private/km + kmdf/inc/private + shared/object # fxobjectpch.hpp + shared/support # fxsupportpch.hpp + shared/core # coreprivshared.hpp + shared/irphandlers # irphandlerspriv.hpp + shared/irphandlers/pnp # pnppriv.hpp + shared/irphandlers/pnp/km # pnpprivkm.hpp + ) + +target_link_libraries(wdf01000 ntoskrnl_vista ${PSEH_LIB}) + +if(GCC) + target_compile_options(wdf01000 + PRIVATE -Wno-write-strings -Wno-unknown-pragmas -Wno-switch + PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-Wno-reorder -Wno-invalid-offsetof -Wno-delete-non-virtual-dtor>) +endif() diff --git a/sdk/lib/drivers/wdf/kmdf/inc/private/fx.hpp b/sdk/lib/drivers/wdf/kmdf/inc/private/fx.hpp index d3eae97629e..637715c5699 100644 --- a/sdk/lib/drivers/wdf/kmdf/inc/private/fx.hpp +++ b/sdk/lib/drivers/wdf/kmdf/inc/private/fx.hpp @@ -28,19 +28,19 @@ extern "C" { #include "mx.h" } -#include "FxMacros.hpp" +#include "fxmacros.hpp" extern "C" { #include "wdf.h" -#include "wdmsec.h" +// #include "wdmsec.h" #include "wdmguid.h" -#include "wdfdevicepri.h" -#include "wdfiotargetpri.h" +// #include "wdfdevicepri.h" +// #include "wdfiotargetpri.h" #include "wdfcx.h" #include "wdfldr.h" -#include <FxDynamicsWrapper.h> +#include <fxdynamicswrapper.h> #include "wdf10.h" #include "wdf11.h" @@ -57,152 +57,158 @@ extern "C" { // Integer overflow functions #include "ntintsafe.h" -#include "FxForward.hpp" +#include "fxforward.hpp" //KMDF defines for shared type names -#include "FxTypeDefsKm.hpp" +#include "fxtypedefskm.hpp" +// #include "fxwmicompat.h" +// #include "fxtrace.h" +#if defined(EVENT_TRACING) #include "fxwmicompat.h" #include "fxtrace.h" +#else +#include "dbgtrace.h" +#endif // EVENT_TRACING #include "fxtypes.h" #include "fxrequestcontexttypes.h" #include "fxpool.h" -#include "FxGlobalsKM.h" -#include "FxPoolInlines.hpp" +#include "fxglobalskm.h" +#include "fxpoolinlines.hpp" #include "fxverifier.h" #include "fxverifierkm.h" -#include "FxMdl.h" -#include "FxProbeAndLock.h" +#include "fxmdl.h" +#include "fxprobeandlock.h" -#include "FxPerfTraceKm.hpp" -#include "DriverFrameworks-KernelMode-KmEvents.h" +#include "fxperftracekm.hpp" +// #include "DriverFrameworks-KernelMode-KmEvents.h" -#include <NtStrSafe.h> +#include <ntstrsafe.h> -#include "FxStump.hpp" +#include "fxstump.hpp" -#include "FxRequestBuffer.hpp" +#include "fxrequestbuffer.hpp" -#include "FxTagTracker.hpp" +#include "fxtagtracker.hpp" // internal locks -#include "FxVerifierLock.hpp" -#include "FxLock.hpp" +#include "fxverifierlock.hpp" +#include "fxlock.hpp" // base objects #include "fxobject.hpp" -#include "FxPagedObject.hpp" -#include "FxNonPagedObject.hpp" +#include "fxpagedobject.hpp" +#include "fxnonpagedobject.hpp" #include "fxhandle.h" // external locks -#include "FxWaitLock.hpp" -#include "FxSpinLock.hpp" +#include "fxwaitlock.hpp" +#include "fxspinlock.hpp" // utitilty classes and functions -#include "FxTransactionedList.hpp" -#include "FxRelatedDeviceList.hpp" -#include "FxDisposeList.hpp" -#include "FxCollection.hpp" -#include "StringUtil.hpp" +#include "fxtransactionedlist.hpp" +#include "fxrelateddevicelist.hpp" +#include "fxdisposelist.hpp" +#include "fxcollection.hpp" +#include "stringutil.hpp" // abstract classes -#include "IFxHasCallbacks.hpp" +#include "ifxhascallbacks.hpp" // callback delegation and locking -#include "FxSystemThread.hpp" -#include "FxSystemWorkItem.hpp" -#include "FxCallbackLock.hpp" -#include "FxCallbackSpinLock.hpp" -#include "FxCallbackMutexLock.hpp" -#include "FxCallback.hpp" -#include "FxSystemThread.hpp" - -#include "IFxMemory.hpp" -#include "FxLookasideList.hpp" -#include "FxNPagedLookasideList.hpp" -#include "FxPagedLookasideList.hpp" -#include "FxMemoryObject.hpp" -#include "FxMemoryBuffer.hpp" -#include "FxMemoryBufferFromPool.hpp" -#include "FxMemoryBufferPreallocated.hpp" -#include "FxMemoryBufferFromLookaside.hpp" -#include "FxRequestMemory.hpp" -#include "FxRegKey.hpp" -#include "FxAutoRegistry.hpp" -#include "FxAutoString.hpp" -#include "FxString.hpp" - -#include "FxValidateFunctions.hpp" -#include "FxRequestValidateFunctions.hpp" - -#include "FxResource.hpp" -#include "FxRelatedDevice.hpp" -#include "FxDeviceInterface.hpp" -#include "FxQueryInterface.hpp" -#include "FxDeviceText.hpp" - -#include "FxIrp.hpp" -#include "FxDriver.hpp" +#include "fxsystemthread.hpp" +#include "fxsystemworkitem.hpp" +#include "fxcallbacklock.hpp" +#include "fxcallbackspinlock.hpp" +#include "fxcallbackmutexlock.hpp" +#include "fxcallback.hpp" +#include "fxsystemthread.hpp" + +#include "ifxmemory.hpp" +#include "fxlookasidelist.hpp" +#include "fxnpagedlookasidelist.hpp" +#include "fxpagedlookasidelist.hpp" +#include "fxmemoryobject.hpp" +#include "fxmemorybuffer.hpp" +#include "fxmemorybufferfrompool.hpp" +#include "fxmemorybufferpreallocated.hpp" +#include "fxmemorybufferfromlookaside.hpp" +#include "fxrequestmemory.hpp" +#include "fxregkey.hpp" +#include "fxautoregistry.hpp" +#include "fxautostring.hpp" +#include "fxstring.hpp" + +#include "fxvalidatefunctions.hpp" +#include "fxrequestvalidatefunctions.hpp" + +#include "fxresource.hpp" +#include "fxrelateddevice.hpp" +#include "fxdeviceinterface.hpp" +#include "fxqueryinterface.hpp" +#include "fxdevicetext.hpp" + +#include "fxirp.hpp" +#include "fxdriver.hpp" // generic package interface -#include "FxPackage.hpp" -#include "FxPkgGeneral.hpp" -#include "FxDefaultIrpHandler.hpp" -#include "FxPkgPnp.hpp" -#include "FxWatchDog.hpp" +#include "fxpackage.hpp" +#include "fxpkggeneral.hpp" +#include "fxdefaultirphandler.hpp" +#include "fxpkgpnp.hpp" +#include "fxwatchdog.hpp" // Device support -#include "FxChildList.hpp" -#include "FxCxDeviceInfo.hpp" -#include "FxDevice.hpp" +#include "fxchildlist.hpp" +#include "fxcxdeviceinfo.hpp" +#include "fxdevice.hpp" -#include "FxPkgIo.hpp" +#include "fxpkgio.hpp" -#include "FxDeviceToMxInterface.hpp" +#include "fxdevicetomxinterface.hpp" -#include "FxIrpQueue.hpp" -#include "FxRequestContext.hpp" -#include "FxRequestCallbacks.hpp" -#include "FxRequestBase.hpp" -#include "FxRequest.hpp" -#include "FxSyncRequest.hpp" +#include "fxirpqueue.hpp" +#include "fxrequestcontext.hpp" +#include "fxrequestcallbacks.hpp" +#include "fxrequestbase.hpp" +#include "fxrequest.hpp" +#include "fxsyncrequest.hpp" // specialized irp handlers (ie packages) -#include "FxPkgFdo.hpp" -#include "FxPkgPdo.hpp" -#include "FxWmiIrpHandler.hpp" -#include "FxWmiProvider.hpp" -#include "FxWmiInstance.hpp" +#include "fxpkgfdo.hpp" +#include "fxpkgpdo.hpp" +#include "fxwmiirphandler.hpp" +#include "fxwmiprovider.hpp" +#include "fxwmiinstance.hpp" // queus for read, write, (internal) IOCTL -#include "FxIoQueue.hpp" -#include "FxFileObject.hpp" -#include "FxIrpPreprocessInfo.hpp" -#include "FxIrpDynamicDispatchInfo.hpp" +#include "fxioqueue.hpp" +#include "fxfileobject.hpp" +#include "fxirppreprocessinfo.hpp" +#include "fxirpdynamicdispatchinfo.hpp" -#include "FxDpc.hpp" -#include "FxWorkItem.hpp" -#include "FxTimer.hpp" -#include "FxInterruptKm.hpp" +#include "fxdpc.hpp" +#include "fxworkitem.hpp" +#include "fxtimer.hpp" +#include "fxinterruptkm.hpp" // IO targets (device lower edge interface) -#include "FxIoTarget.hpp" -#include "FxIoTargetRemote.hpp" -#include "FxIoTargetSelf.hpp" +#include "fxiotarget.hpp" +#include "fxiotargetremote.hpp" +#include "fxiotargetself.hpp" -#include "FxUsbDevice.hpp" -#include "FxUsbInterface.hpp" -#include "FxUsbPipe.hpp" +#include "fxusbdevice.hpp" +#include "fxusbinterface.hpp" +#include "fxusbpipe.hpp" // DMA support -#include "FxDmaEnabler.hpp" -#include "FxDmaTransaction.hpp" -#include "FxCommonBuffer.hpp" +#include "fxdmaenabler.hpp" +#include "fxdmatransaction.hpp" +#include "fxcommonbuffer.hpp" // Triage info. -#include "wdftriage.h" +// #include "wdftriage.h" -#include "FxTelemetry.hpp" +#include "fxtelemetry.hpp" #endif // _FX_H diff --git a/sdk/lib/drivers/wdf/kmdf/inc/private/fxdmatransaction.hpp b/sdk/lib/drivers/wdf/kmdf/inc/private/fxdmatransaction.hpp index 0e3535b669c..9774fafec57 100644 --- a/sdk/lib/drivers/wdf/kmdf/inc/private/fxdmatransaction.hpp +++ b/sdk/lib/drivers/wdf/kmdf/inc/private/fxdmatransaction.hpp @@ -5,15 +5,15 @@ #define _FXDMATRANSACTION_HPP_ extern "C" { -#include "FxDmaTransaction.hpp.tmh" +// #include "FxDmaTransaction.hpp.tmh" } -#include "FxDmaTransactionCallbacks.hpp" +#include "fxdmatransactioncallbacks.hpp" // // This type is used to allocate scatter-gather list of 1 element on the stack. // -typedef __declspec(align(MEMORY_ALLOCATION_ALIGNMENT))UCHAR UCHAR_MEMORY_ALIGNED; +typedef DECLSPEC_ALIGN(MEMORY_ALLOCATION_ALIGNMENT) UCHAR UCHAR_MEMORY_ALIGNED; // begin_wpp enum @@ -912,6 +912,7 @@ protected: protected: inline + void SetMapRegisterBase( __in PVOID Value ) @@ -924,6 +925,7 @@ protected: } inline + void ClearMapRegisterBase( VOID ) @@ -934,6 +936,7 @@ protected: } inline + BOOLEAN IsMapRegisterBaseSet( VOID ) @@ -1005,6 +1008,7 @@ protected: static IO_ALLOCATION_ACTION + STDCALL _AdapterControl( __in PDEVICE_OBJECT DeviceObject, __in PIRP Irp, @@ -1528,7 +1532,7 @@ protected: VOID ) { - __super::Reuse(); + FxDmaPacketTransaction::Reuse(); // __super call m_ConfigureChannelFunction.Method = NULL; m_ConfigureChannelContext = NULL; diff --git a/sdk/lib/drivers/wdf/kmdf/inc/private/fxdynamics.h b/sdk/lib/drivers/wdf/kmdf/inc/private/fxdynamics.h index 35a3564dab3..fcf73d3722b 100644 --- a/sdk/lib/drivers/wdf/kmdf/inc/private/fxdynamics.h +++ b/sdk/lib/drivers/wdf/kmdf/inc/private/fxdynamics.h @@ -14,6 +14,14 @@ Environment: #ifndef _FXDYNAMICS_H_ #define _FXDYNAMICS_H_ +typedef WDFAPI NTSTATUS +(STDCALL *PFN_ROSWDFUNIMPLEMENTED)(VOID); + +WDFAPI +NTSTATUS +STDCALL +WdfApiNotImplemented(); + typedef struct _WDFFUNCTIONS { @@ -38,10 +46,15 @@ typedef struct _WDFFUNCTIONS { PFN_WDFCOLLECTIONGETITEM pfnWdfCollectionGetItem; PFN_WDFCOLLECTIONGETFIRSTITEM pfnWdfCollectionGetFirstItem; PFN_WDFCOLLECTIONGETLASTITEM pfnWdfCollectionGetLastItem; - PFN_WDFCOMMONBUFFERCREATE pfnWdfCommonBufferCreate; - PFN_WDFCOMMONBUFFERGETALIGNEDVIRTUALADDRESS pfnWdfCommonBufferGetAlignedVirtualAddress; - PFN_WDFCOMMONBUFFERGETALIGNEDLOGICALADDRESS pfnWdfCommonBufferGetAlignedLogicalAddress; - PFN_WDFCOMMONBUFFERGETLENGTH pfnWdfCommonBufferGetLength; + // PFN_WDFCOMMONBUFFERCREATE pfnWdfCommonBufferCreate; + // PFN_WDFCOMMONBUFFERGETALIGNEDVIRTUALADDRESS pfnWdfCommonBufferGetAlignedVirtualAddress; + // PFN_WDFCOMMONBUFFERGETALIGNEDLOGICALADDRESS pfnWdfCommonBufferGetAlignedLogicalAddress; + // PFN_WDFCOMMONBUFFERGETLENGTH pfnWdfCommonBufferGetLength; + PFN_ROSWDFUNIMPLEMENTED pfnWdfCommonBufferCreate; + PFN_ROSWDFUNIMPLEMENTED pfnWdfCommonBufferGetAlignedVirtualAddress; + PFN_ROSWDFUNIMPLEMENTED pfnWdfCommonBufferGetAlignedLogicalAddress; + PFN_ROSWDFUNIMPLEMENTED pfnWdfCommonBufferGetLength; + PFN_WDFCONTROLDEVICEINITALLOCATE pfnWdfControlDeviceInitAllocate; PFN_WDFCONTROLDEVICEINITSETSHUTDOWNNOTIFICATION pfnWdfControlDeviceInitSetShutdownNotification; PFN_WDFCONTROLFINISHINITIALIZING pfnWdfControlFinishInitializing; @@ -111,23 +124,41 @@ typedef struct _WDFFUNCTIONS { PFN_WDFDEVICEENQUEUEREQUEST pfnWdfDeviceEnqueueRequest; PFN_WDFDEVICEGETDEFAULTQUEUE pfnWdfDeviceGetDefaultQueue; PFN_WDFDEVICECONFIGUREREQUESTDISPATCHING pfnWdfDeviceConfigureRequestDispatching; - PFN_WDFDMAENABLERCREATE pfnWdfDmaEnablerCreate; - PFN_WDFDMAENABLERGETMAXIMUMLENGTH pfnWdfDmaEnablerGetMaximumLength; - PFN_WDFDMAENABLERGETMAXIMUMSCATTERGATHERELEMENTS pfnWdfDmaEnablerGetMaximumScatterGatherElements; - PFN_WDFDMAENABLERSETMAXIMUMSCATTERGATHERELEMENTS pfnWdfDmaEnablerSetMaximumScatterGatherElements; - PFN_WDFDMATRANSACTIONCREATE pfnWdfDmaTransactionCreate; - PFN_WDFDMATRANSACTIONINITIALIZE pfnWdfDmaTransactionInitialize; - PFN_WDFDMATRANSACTIONINITIALIZEUSINGREQUEST pfnWdfDmaTransactionInitializeUsingRequest; - PFN_WDFDMATRANSACTIONEXECUTE pfnWdfDmaTransactionExecute; - PFN_WDFDMATRANSACTIONRELEASE pfnWdfDmaTransactionRelease; - PFN_WDFDMATRANSACTIONDMACOMPLETED pfnWdfDmaTransactionDmaCompleted; - PFN_WDFDMATRANSACTIONDMACOMPLETEDWITHLENGTH pfnWdfDmaTransactionDmaCompletedWithLength; - PFN_WDFDMATRANSACTIONDMACOMPLETEDFINAL pfnWdfDmaTransactionDmaCompletedFinal; - PFN_WDFDMATRANSACTIONGETBYTESTRANSFERRED pfnWdfDmaTransactionGetBytesTransferred; - PFN_WDFDMATRANSACTIONSETMAXIMUMLENGTH pfnWdfDmaTransactionSetMaximumLength; - PFN_WDFDMATRANSACTIONGETREQUEST pfnWdfDmaTransactionGetRequest; - PFN_WDFDMATRANSACTIONGETCURRENTDMATRANSFERLENGTH pfnWdfDmaTransactionGetCurrentDmaTransferLength; - PFN_WDFDMATRANSACTIONGETDEVICE pfnWdfDmaTransactionGetDevice; + // PFN_WDFDMAENABLERCREATE pfnWdfDmaEnablerCreate; + // PFN_WDFDMAENABLERGETMAXIMUMLENGTH pfnWdfDmaEnablerGetMaximumLength; + // PFN_WDFDMAENABLERGETMAXIMUMSCATTERGATHERELEMENTS pfnWdfDmaEnablerGetMaximumScatterGatherElements; + // PFN_WDFDMAENABLERSETMAXIMUMSCATTERGATHERELEMENTS pfnWdfDmaEnablerSetMaximumScatterGatherElements; + // PFN_WDFDMATRANSACTIONCREATE pfnWdfDmaTransactionCreate; + // PFN_WDFDMATRANSACTIONINITIALIZE pfnWdfDmaTransactionInitialize; + // PFN_WDFDMATRANSACTIONINITIALIZEUSINGREQUEST pfnWdfDmaTransactionInitializeUsingRequest; + // PFN_WDFDMATRANSACTIONEXECUTE pfnWdfDmaTransactionExecute; + // PFN_WDFDMATRANSACTIONRELEASE pfnWdfDmaTransactionRelease; + // PFN_WDFDMATRANSACTIONDMACOMPLETED pfnWdfDmaTransactionDmaCompleted; + // PFN_WDFDMATRANSACTIONDMACOMPLETEDWITHLENGTH pfnWdfDmaTransactionDmaCompletedWithLength; + // PFN_WDFDMATRANSACTIONDMACOMPLETEDFINAL pfnWdfDmaTransactionDmaCompletedFinal; + // PFN_WDFDMATRANSACTIONGETBYTESTRANSFERRED pfnWdfDmaTransactionGetBytesTransferred; + // PFN_WDFDMATRANSACTIONSETMAXIMUMLENGTH pfnWdfDmaTransactionSetMaximumLength; + // PFN_WDFDMATRANSACTIONGETREQUEST pfnWdfDmaTransactionGetRequest; + // PFN_WDFDMATRANSACTIONGETCURRENTDMATRANSFERLENGTH pfnWdfDmaTransactionGetCurrentDmaTransferLength; + // PFN_WDFDMATRANSACTIONGETDEVICE pfnWdfDmaTransactionGetDevice; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaEnablerCreate; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaEnablerGetMaximumLength; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaEnablerGetMaximumScatterGatherElements; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaEnablerSetMaximumScatterGatherElements; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionCreate; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionInitialize; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionInitializeUsingRequest; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionExecute; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionRelease; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionDmaCompleted; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionDmaCompletedWithLength; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionDmaCompletedFinal; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionGetBytesTransferred; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionSetMaximumLength; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionGetRequest; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionGetCurrentDmaTransferLength; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionGetDevice; + PFN_WDFDPCCREATE pfnWdfDpcCreate; PFN_WDFDPCENQUEUE pfnWdfDpcEnqueue; PFN_WDFDPCCANCEL pfnWdfDpcCancel; @@ -158,17 +189,29 @@ typedef struct _WDFFUNCTIONS { PFN_WDFFILEOBJECTGETFLAGS pfnWdfFileObjectGetFlags; PFN_WDFFILEOBJECTGETDEVICE pfnWdfFileObjectGetDevice; PFN_WDFFILEOBJECTWDMGETFILEOBJECT pfnWdfFileObjectWdmGetFileObject; - PFN_WDFINTERRUPTCREATE pfnWdfInterruptCreate; - PFN_WDFINTERRUPTQUEUEDPCFORISR pfnWdfInterruptQueueDpcForIsr; - PFN_WDFINTERRUPTSYNCHRONIZE pfnWdfInterruptSynchronize; - PFN_WDFINTERRUPTACQUIRELOCK pfnWdfInterruptAcquireLock; - PFN_WDFINTERRUPTRELEASELOCK pfnWdfInterruptReleaseLock; - PFN_WDFINTERRUPTENABLE pfnWdfInterruptEnable; - PFN_WDFINTERRUPTDISABLE pfnWdfInterruptDisable; - PFN_WDFINTERRUPTWDMGETINTERRUPT pfnWdfInterruptWdmGetInterrupt; - PFN_WDFINTERRUPTGETINFO pfnWdfInterruptGetInfo; - PFN_WDFINTERRUPTSETPOLICY pfnWdfInterruptSetPolicy; - PFN_WDFINTERRUPTGETDEVICE pfnWdfInterruptGetDevice; + // PFN_WDFINTERRUPTCREATE pfnWdfInterruptCreate; + // PFN_WDFINTERRUPTQUEUEDPCFORISR pfnWdfInterruptQueueDpcForIsr; + // PFN_WDFINTERRUPTSYNCHRONIZE pfnWdfInterruptSynchronize; + // PFN_WDFINTERRUPTACQUIRELOCK pfnWdfInterruptAcquireLock; + // PFN_WDFINTERRUPTRELEASELOCK pfnWdfInterruptReleaseLock; + // PFN_WDFINTERRUPTENABLE pfnWdfInterruptEnable; + // PFN_WDFINTERRUPTDISABLE pfnWdfInterruptDisable; + // PFN_WDFINTERRUPTWDMGETINTERRUPT pfnWdfInterruptWdmGetInterrupt; + // PFN_WDFINTERRUPTGETINFO pfnWdfInterruptGetInfo; + // PFN_WDFINTERRUPTSETPOLICY pfnWdfInterruptSetPolicy; + // PFN_WDFINTERRUPTGETDEVICE pfnWdfInterruptGetDevice; + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptCreate; + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptQueueDpcForIsr; + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptSynchronize; + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptAcquireLock; + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptReleaseLock; + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptEnable; + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptDisable; + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptWdmGetInterrupt; + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptGetInfo; + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptSetPolicy; + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptGetDevice; + PFN_WDFIOQUEUECREATE pfnWdfIoQueueCreate; PFN_WDFIOQUEUEGETSTATE pfnWdfIoQueueGetState; PFN_WDFIOQUEUESTART pfnWdfIoQueueStart; @@ -303,28 +346,51 @@ typedef struct _WDFFUNCTIONS { PFN_WDFREQUESTREQUEUE pfnWdfRequestRequeue; PFN_WDFREQUESTSTOPACKNOWLEDGE pfnWdfRequestStopAcknowledge; PFN_WDFREQUESTWDMGETIRP pfnWdfRequestWdmGetIrp; - PFN_WDFIORESOURCEREQUIREMENTSLISTSETSLOTNUMBER pfnWdfIoResourceRequirementsListSetSlotNumber; - PFN_WDFIORESOURCEREQUIREMENTSLISTSETINTERFACETYPE pfnWdfIoResourceRequirementsListSetInterfaceType; - PFN_WDFIORESOURCEREQUIREMENTSLISTAPPENDIORESLIST pfnWdfIoResourceRequirementsListAppendIoResList; - PFN_WDFIORESOURCEREQUIREMENTSLISTINSERTIORESLIST pfnWdfIoResourceRequirementsListInsertIoResList; - PFN_WDFIORESOURCEREQUIREMENTSLISTGETCOUNT pfnWdfIoResourceRequirementsListGetCount; - PFN_WDFIORESOURCEREQUIREMENTSLISTGETIORESLIST pfnWdfIoResourceRequirementsListGetIoResList; - PFN_WDFIORESOURCEREQUIREMENTSLISTREMOVE pfnWdfIoResourceRequirementsListRemove; - PFN_WDFIORESOURCEREQUIREMENTSLISTREMOVEBYIORESLIST pfnWdfIoResourceRequirementsListRemoveByIoResList; - PFN_WDFIORESOURCELISTCREATE pfnWdfIoResourceListCreate; - PFN_WDFIORESOURCELISTAPPENDDESCRIPTOR pfnWdfIoResourceListAppendDescriptor; - PFN_WDFIORESOURCELISTINSERTDESCRIPTOR pfnWdfIoResourceListInsertDescriptor; - PFN_WDFIORESOURCELISTUPDATEDESCRIPTOR pfnWdfIoResourceListUpdateDescriptor; - PFN_WDFIORESOURCELISTGETCOUNT pfnWdfIoResourceListGetCount; - PFN_WDFIORESOURCELISTGETDESCRIPTOR pfnWdfIoResourceListGetDescriptor; - PFN_WDFIORESOURCELISTREMOVE pfnWdfIoResourceListRemove; - PFN_WDFIORESOURCELISTREMOVEBYDESCRIPTOR pfnWdfIoResourceListRemoveByDescriptor; - PFN_WDFCMRESOURCELISTAPPENDDESCRIPTOR pfnWdfCmResourceListAppendDescriptor; - PFN_WDFCMRESOURCELISTINSERTDESCRIPTOR pfnWdfCmResourceListInsertDescriptor; - PFN_WDFCMRESOURCELISTGETCOUNT pfnWdfCmResourceListGetCount; - PFN_WDFCMRESOURCELISTGETDESCRIPTOR pfnWdfCmResourceListGetDescriptor; - PFN_WDFCMRESOURCELISTREMOVE pfnWdfCmResourceListRemove; - PFN_WDFCMRESOURCELISTREMOVEBYDESCRIPTOR pfnWdfCmResourceListRemoveByDescriptor; + // PFN_WDFIORESOURCEREQUIREMENTSLISTSETSLOTNUMBER pfnWdfIoResourceRequirementsListSetSlotNumber; + // PFN_WDFIORESOURCEREQUIREMENTSLISTSETINTERFACETYPE pfnWdfIoResourceRequirementsListSetInterfaceType; + // PFN_WDFIORESOURCEREQUIREMENTSLISTAPPENDIORESLIST pfnWdfIoResourceRequirementsListAppendIoResList; + // PFN_WDFIORESOURCEREQUIREMENTSLISTINSERTIORESLIST pfnWdfIoResourceRequirementsListInsertIoResList; + // PFN_WDFIORESOURCEREQUIREMENTSLISTGETCOUNT pfnWdfIoResourceRequirementsListGetCount; + // PFN_WDFIORESOURCEREQUIREMENTSLISTGETIORESLIST pfnWdfIoResourceRequirementsListGetIoResList; + // PFN_WDFIORESOURCEREQUIREMENTSLISTREMOVE pfnWdfIoResourceRequirementsListRemove; + // PFN_WDFIORESOURCEREQUIREMENTSLISTREMOVEBYIORESLIST pfnWdfIoResourceRequirementsListRemoveByIoResList; + // PFN_WDFIORESOURCELISTCREATE pfnWdfIoResourceListCreate; + // PFN_WDFIORESOURCELISTAPPENDDESCRIPTOR pfnWdfIoResourceListAppendDescriptor; + // PFN_WDFIORESOURCELISTINSERTDESCRIPTOR pfnWdfIoResourceListInsertDescriptor; + // PFN_WDFIORESOURCELISTUPDATEDESCRIPTOR pfnWdfIoResourceListUpdateDescriptor; + // PFN_WDFIORESOURCELISTGETCOUNT pfnWdfIoResourceListGetCount; + // PFN_WDFIORESOURCELISTGETDESCRIPTOR pfnWdfIoResourceListGetDescriptor; + // PFN_WDFIORESOURCELISTREMOVE pfnWdfIoResourceListRemove; + // PFN_WDFIORESOURCELISTREMOVEBYDESCRIPTOR pfnWdfIoResourceListRemoveByDescriptor; + // PFN_WDFCMRESOURCELISTAPPENDDESCRIPTOR pfnWdfCmResourceListAppendDescriptor; + // PFN_WDFCMRESOURCELISTINSERTDESCRIPTOR pfnWdfCmResourceListInsertDescriptor; + // PFN_WDFCMRESOURCELISTGETCOUNT pfnWdfCmResourceListGetCount; + // PFN_WDFCMRESOURCELISTGETDESCRIPTOR pfnWdfCmResourceListGetDescriptor; + // PFN_WDFCMRESOURCELISTREMOVE pfnWdfCmResourceListRemove; + // PFN_WDFCMRESOURCELISTREMOVEBYDESCRIPTOR pfnWdfCmResourceListRemoveByDescriptor; + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceRequirementsListSetSlotNumber; + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceRequirementsListSetInterfaceType; + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceRequirementsListAppendIoResList; + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceRequirementsListInsertIoResList; + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceRequirementsListGetCount; + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceRequirementsListGetIoResList; + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceRequirementsListRemove; + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceRequirementsListRemoveByIoResList; + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceListCreate; + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceListAppendDescriptor; + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceListInsertDescriptor; + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceListUpdateDescriptor; + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceListGetCount; + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceListGetDescriptor; + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceListRemove; + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceListRemoveByDescriptor; + PFN_ROSWDFUNIMPLEMENTED pfnWdfCmResourceListAppendDescriptor; + PFN_ROSWDFUNIMPLEMENTED pfnWdfCmResourceListInsertDescriptor; + PFN_ROSWDFUNIMPLEMENTED pfnWdfCmResourceListGetCount; + PFN_ROSWDFUNIMPLEMENTED pfnWdfCmResourceListGetDescriptor; + PFN_ROSWDFUNIMPLEMENTED pfnWdfCmResourceListRemove; + PFN_ROSWDFUNIMPLEMENTED pfnWdfCmResourceListRemoveByDescriptor; + PFN_WDFSTRINGCREATE pfnWdfStringCreate; PFN_WDFSTRINGGETUNICODESTRING pfnWdfStringGetUnicodeString; PFN_WDFOBJECTACQUIRELOCK pfnWdfObjectAcquireLock; @@ -339,116 +405,213 @@ typedef struct _WDFFUNCTIONS { PFN_WDFTIMERSTART pfnWdfTimerStart; PFN_WDFTIMERSTOP pfnWdfTimerStop; PFN_WDFTIMERGETPARENTOBJECT pfnWdfTimerGetParentObject; - PFN_WDFUSBTARGETDEVICECREATE pfnWdfUsbTargetDeviceCreate; - PFN_WDFUSBTARGETDEVICERETRIEVEINFORMATION pfnWdfUsbTargetDeviceRetrieveInformation; - PFN_WDFUSBTARGETDEVICEGETDEVICEDESCRIPTOR pfnWdfUsbTargetDeviceGetDeviceDescriptor; - PFN_WDFUSBTARGETDEVICERETRIEVECONFIGDESCRIPTOR pfnWdfUsbTargetDeviceRetrieveConfigDescriptor; - PFN_WDFUSBTARGETDEVICEQUERYSTRING pfnWdfUsbTargetDeviceQueryString; - PFN_WDFUSBTARGETDEVICEALLOCANDQUERYSTRING pfnWdfUsbTargetDeviceAllocAndQueryString; - PFN_WDFUSBTARGETDEVICEFORMATREQUESTFORSTRING pfnWdfUsbTargetDeviceFormatRequestForString; - PFN_WDFUSBTARGETDEVICEGETNUMINTERFACES pfnWdfUsbTargetDeviceGetNumInterfaces; - PFN_WDFUSBTARGETDEVICESELECTCONFIG pfnWdfUsbTargetDeviceSelectConfig; - PFN_WDFUSBTARGETDEVICEWDMGETCONFIGURATIONHANDLE pfnWdfUsbTargetDeviceWdmGetConfigurationHandle; - PFN_WDFUSBTARGETDEVICERETRIEVECURRENTFRAMENUMBER pfnWdfUsbTargetDeviceRetrieveCurrentFrameNumber; - PFN_WDFUSBTARGETDEVICESENDCONTROLTRANSFERSYNCHRONOUSLY pfnWdfUsbTargetDeviceSendControlTransferSynchronously; - PFN_WDFUSBTARGETDEVICEFORMATREQUESTFORCONTROLTRANSFER pfnWdfUsbTargetDeviceFormatRequestForControlTransfer; - PFN_WDFUSBTARGETDEVICEISCONNECTEDSYNCHRONOUS pfnWdfUsbTargetDeviceIsConnectedSynchronous; - PFN_WDFUSBTARGETDEVICERESETPORTSYNCHRONOUSLY pfnWdfUsbTargetDeviceResetPortSynchronously; - PFN_WDFUSBTARGETDEVICECYCLEPORTSYNCHRONOUSLY pfnWdfUsbTargetDeviceCyclePortSynchronously; - PFN_WDFUSBTARGETDEVICEFORMATREQUESTFORCYCLEPORT pfnWdfUsbTargetDeviceFormatRequestForCyclePort; - PFN_WDFUSBTARGETDEVICESENDURBSYNCHRONOUSLY pfnWdfUsbTargetDeviceSendUrbSynchronously; - PFN_WDFUSBTARGETDEVICEFORMATREQUESTFORURB pfnWdfUsbTargetDeviceFormatRequestForUrb; - PFN_WDFUSBTARGETPIPEGETINFORMATION pfnWdfUsbTargetPipeGetInformation; - PFN_WDFUSBTARGETPIPEISINENDPOINT pfnWdfUsbTargetPipeIsInEndpoint; - PFN_WDFUSBTARGETPIPEISOUTENDPOINT pfnWdfUsbTargetPipeIsOutEndpoint; - PFN_WDFUSBTARGETPIPEGETTYPE pfnWdfUsbTargetPipeGetType; - PFN_WDFUSBTARGETPIPESETNOMAXIMUMPACKETSIZECHECK pfnWdfUsbTargetPipeSetNoMaximumPacketSizeCheck; - PFN_WDFUSBTARGETPIPEWRITESYNCHRONOUSLY pfnWdfUsbTargetPipeWriteSynchronously; - PFN_WDFUSBTARGETPIPEFORMATREQUESTFORWRITE pfnWdfUsbTargetPipeFormatRequestForWrite; - PFN_WDFUSBTARGETPIPEREADSYNCHRONOUSLY pfnWdfUsbTargetPipeReadSynchronously; - PFN_WDFUSBTARGETPIPEFORMATREQUESTFORREAD pfnWdfUsbTargetPipeFormatRequestForRead; - PFN_WDFUSBTARGETPIPECONFIGCONTINUOUSREADER pfnWdfUsbTargetPipeConfigContinuousReader; - PFN_WDFUSBTARGETPIPEABORTSYNCHRONOUSLY pfnWdfUsbTargetPipeAbortSynchronously; - PFN_WDFUSBTARGETPIPEFORMATREQUESTFORABORT pfnWdfUsbTargetPipeFormatRequestForAbort; - PFN_WDFUSBTARGETPIPERESETSYNCHRONOUSLY pfnWdfUsbTargetPipeResetSynchronously; - PFN_WDFUSBTARGETPIPEFORMATREQUESTFORRESET pfnWdfUsbTargetPipeFormatRequestForReset; - PFN_WDFUSBTARGETPIPESENDURBSYNCHRONOUSLY pfnWdfUsbTargetPipeSendUrbSynchronously; - PFN_WDFUSBTARGETPIPEFORMATREQUESTFORURB pfnWdfUsbTargetPipeFormatRequestForUrb; - PFN_WDFUSBINTERFACEGETINTERFACENUMBER pfnWdfUsbInterfaceGetInterfaceNumber; - PFN_WDFUSBINTERFACEGETNUMENDPOINTS pfnWdfUsbInterfaceGetNumEndpoints; - PFN_WDFUSBINTERFACEGETDESCRIPTOR pfnWdfUsbInterfaceGetDescriptor; - PFN_WDFUSBINTERFACESELECTSETTING pfnWdfUsbInterfaceSelectSetting; - PFN_WDFUSBINTERFACEGETENDPOINTINFORMATION pfnWdfUsbInterfaceGetEndpointInformation; - PFN_WDFUSBTARGETDEVICEGETINTERFACE pfnWdfUsbTargetDeviceGetInterface; - PFN_WDFUSBINTERFACEGETCONFIGUREDSETTINGINDEX pfnWdfUsbInterfaceGetConfiguredSettingIndex; - PFN_WDFUSBINTERFACEGETNUMCONFIGUREDPIPES pfnWdfUsbInterfaceGetNumConfiguredPipes; - PFN_WDFUSBINTERFACEGETCONFIGUREDPIPE pfnWdfUsbInterfaceGetConfiguredPipe; - PFN_WDFUSBTARGETPIPEWDMGETPIPEHANDLE pfnWdfUsbTargetPipeWdmGetPipeHandle; - PFN_WDFVERIFIERDBGBREAKPOINT pfnWdfVerifierDbgBreakPoint; - PFN_WDFVERIFIERKEBUGCHECK pfnWdfVerifierKeBugCheck; - PFN_WDFWMIPROVIDERCREATE pfnWdfWmiProviderCreate; - PFN_WDFWMIPROVIDERGETDEVICE pfnWdfWmiProviderGetDevice; - PFN_WDFWMIPROVIDERISENABLED pfnWdfWmiProviderIsEnabled; - PFN_WDFWMIPROVIDERGETTRACINGHANDLE pfnWdfWmiProviderGetTracingHandle; - PFN_WDFWMIINSTANCECREATE pfnWdfWmiInstanceCreate; - PFN_WDFWMIINSTANCEREGISTER pfnWdfWmiInstanceRegister; - PFN_WDFWMIINSTANCEDEREGISTER pfnWdfWmiInstanceDeregister; - PFN_WDFWMIINSTANCEGETDEVICE pfnWdfWmiInstanceGetDevice; - PFN_WDFWMIINSTANCEGETPROVIDER pfnWdfWmiInstanceGetProvider; - PFN_WDFWMIINSTANCEFIREEVENT pfnWdfWmiInstanceFireEvent; + // PFN_WDFUSBTARGETDEVICECREATE pfnWdfUsbTargetDeviceCreate; + // PFN_WDFUSBTARGETDEVICERETRIEVEINFORMATION pfnWdfUsbTargetDeviceRetrieveInformation; + // PFN_WDFUSBTARGETDEVICEGETDEVICEDESCRIPTOR pfnWdfUsbTargetDeviceGetDeviceDescriptor; + // PFN_WDFUSBTARGETDEVICERETRIEVECONFIGDESCRIPTOR pfnWdfUsbTargetDeviceRetrieveConfigDescriptor; + // PFN_WDFUSBTARGETDEVICEQUERYSTRING pfnWdfUsbTargetDeviceQueryString; + // PFN_WDFUSBTARGETDEVICEALLOCANDQUERYSTRING pfnWdfUsbTargetDeviceAllocAndQueryString; + // PFN_WDFUSBTARGETDEVICEFORMATREQUESTFORSTRING pfnWdfUsbTargetDeviceFormatRequestForString; + // PFN_WDFUSBTARGETDEVICEGETNUMINTERFACES pfnWdfUsbTargetDeviceGetNumInterfaces; + // PFN_WDFUSBTARGETDEVICESELECTCONFIG pfnWdfUsbTargetDeviceSelectConfig; + // PFN_WDFUSBTARGETDEVICEWDMGETCONFIGURATIONHANDLE pfnWdfUsbTargetDeviceWdmGetConfigurationHandle; + // PFN_WDFUSBTARGETDEVICERETRIEVECURRENTFRAMENUMBER pfnWdfUsbTargetDeviceRetrieveCurrentFrameNumber; + // PFN_WDFUSBTARGETDEVICESENDCONTROLTRANSFERSYNCHRONOUSLY pfnWdfUsbTargetDeviceSendControlTransferSynchronously; + // PFN_WDFUSBTARGETDEVICEFORMATREQUESTFORCONTROLTRANSFER pfnWdfUsbTargetDeviceFormatRequestForControlTransfer; + // PFN_WDFUSBTARGETDEVICEISCONNECTEDSYNCHRONOUS pfnWdfUsbTargetDeviceIsConnectedSynchronous; + // PFN_WDFUSBTARGETDEVICERESETPORTSYNCHRONOUSLY pfnWdfUsbTargetDeviceResetPortSynchronously; + // PFN_WDFUSBTARGETDEVICECYCLEPORTSYNCHRONOUSLY pfnWdfUsbTargetDeviceCyclePortSynchronously; + // PFN_WDFUSBTARGETDEVICEFORMATREQUESTFORCYCLEPORT pfnWdfUsbTargetDeviceFormatRequestForCyclePort; + // PFN_WDFUSBTARGETDEVICESENDURBSYNCHRONOUSLY pfnWdfUsbTargetDeviceSendUrbSynchronously; + // PFN_WDFUSBTARGETDEVICEFORMATREQUESTFORURB pfnWdfUsbTargetDeviceFormatRequestForUrb; + // PFN_WDFUSBTARGETPIPEGETINFORMATION pfnWdfUsbTargetPipeGetInformation; + // PFN_WDFUSBTARGETPIPEISINENDPOINT pfnWdfUsbTargetPipeIsInEndpoint; + // PFN_WDFUSBTARGETPIPEISOUTENDPOINT pfnWdfUsbTargetPipeIsOutEndpoint; + // PFN_WDFUSBTARGETPIPEGETTYPE pfnWdfUsbTargetPipeGetType; + // PFN_WDFUSBTARGETPIPESETNOMAXIMUMPACKETSIZECHECK pfnWdfUsbTargetPipeSetNoMaximumPacketSizeCheck; + // PFN_WDFUSBTARGETPIPEWRITESYNCHRONOUSLY pfnWdfUsbTargetPipeWriteSynchronously; + // PFN_WDFUSBTARGETPIPEFORMATREQUESTFORWRITE pfnWdfUsbTargetPipeFormatRequestForWrite; + // PFN_WDFUSBTARGETPIPEREADSYNCHRONOUSLY pfnWdfUsbTargetPipeReadSynchronously; + // PFN_WDFUSBTARGETPIPEFORMATREQUESTFORREAD pfnWdfUsbTargetPipeFormatRequestForRead; + // PFN_WDFUSBTARGETPIPECONFIGCONTINUOUSREADER pfnWdfUsbTargetPipeConfigContinuousReader; + // PFN_WDFUSBTARGETPIPEABORTSYNCHRONOUSLY pfnWdfUsbTargetPipeAbortSynchronously; + // PFN_WDFUSBTARGETPIPEFORMATREQUESTFORABORT pfnWdfUsbTargetPipeFormatRequestForAbort; + // PFN_WDFUSBTARGETPIPERESETSYNCHRONOUSLY pfnWdfUsbTargetPipeResetSynchronously; + // PFN_WDFUSBTARGETPIPEFORMATREQUESTFORRESET pfnWdfUsbTargetPipeFormatRequestForReset; + // PFN_WDFUSBTARGETPIPESENDURBSYNCHRONOUSLY pfnWdfUsbTargetPipeSendUrbSynchronously; + // PFN_WDFUSBTARGETPIPEFORMATREQUESTFORURB pfnWdfUsbTargetPipeFormatRequestForUrb; + // PFN_WDFUSBINTERFACEGETINTERFACENUMBER pfnWdfUsbInterfaceGetInterfaceNumber; + // PFN_WDFUSBINTERFACEGETNUMENDPOINTS pfnWdfUsbInterfaceGetNumEndpoints; + // PFN_WDFUSBINTERFACEGETDESCRIPTOR pfnWdfUsbInterfaceGetDescriptor; + // PFN_WDFUSBINTERFACESELECTSETTING pfnWdfUsbInterfaceSelectSetting; + // PFN_WDFUSBINTERFACEGETENDPOINTINFORMATION pfnWdfUsbInterfaceGetEndpointInformation; + // PFN_WDFUSBTARGETDEVICEGETINTERFACE pfnWdfUsbTargetDeviceGetInterface; + // PFN_WDFUSBINTERFACEGETCONFIGUREDSETTINGINDEX pfnWdfUsbInterfaceGetConfiguredSettingIndex; + // PFN_WDFUSBINTERFACEGETNUMCONFIGUREDPIPES pfnWdfUsbInterfaceGetNumConfiguredPipes; + // PFN_WDFUSBINTERFACEGETCONFIGUREDPIPE pfnWdfUsbInterfaceGetConfiguredPipe; + // PFN_WDFUSBTARGETPIPEWDMGETPIPEHANDLE pfnWdfUsbTargetPipeWdmGetPipeHandle; + // PFN_WDFVERIFIERDBGBREAKPOINT pfnWdfVerifierDbgBreakPoint; + // PFN_WDFVERIFIERKEBUGCHECK pfnWdfVerifierKeBugCheck; + // PFN_WDFWMIPROVIDERCREATE pfnWdfWmiProviderCreate; + // PFN_WDFWMIPROVIDERGETDEVICE pfnWdfWmiProviderGetDevice; + // PFN_WDFWMIPROVIDERISENABLED pfnWdfWmiProviderIsEnabled; + // PFN_WDFWMIPROVIDERGETTRACINGHANDLE pfnWdfWmiProviderGetTracingHandle; + // PFN_WDFWMIINSTANCECREATE pfnWdfWmiInstanceCreate; + // PFN_WDFWMIINSTANCEREGISTER pfnWdfWmiInstanceRegister; + // PFN_WDFWMIINSTANCEDEREGISTER pfnWdfWmiInstanceDeregister; + // PFN_WDFWMIINSTANCEGETDEVICE pfnWdfWmiInstanceGetDevice; + // PFN_WDFWMIINSTANCEGETPROVIDER pfnWdfWmiInstanceGetProvider; + // PFN_WDFWMIINSTANCEFIREEVENT pfnWdfWmiInstanceFireEvent; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceCreate; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceRetrieveInformation; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceGetDeviceDescriptor; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceRetrieveConfigDescriptor; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceQueryString; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceAllocAndQueryString; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceFormatRequestForString; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceGetNumInterfaces; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceSelectConfig; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceWdmGetConfigurationHandle; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceRetrieveCurrentFrameNumber; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceSendControlTransferSynchronously; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceFormatRequestForControlTransfer; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceIsConnectedSynchronous; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceResetPortSynchronously; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceCyclePortSynchronously; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceFormatRequestForCyclePort; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceSendUrbSynchronously; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceFormatRequestForUrb; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeGetInformation; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeIsInEndpoint; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeIsOutEndpoint; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeGetType; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeSetNoMaximumPacketSizeCheck; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeWriteSynchronously; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeFormatRequestForWrite; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeReadSynchronously; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeFormatRequestForRead; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeConfigContinuousReader; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeAbortSynchronously; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeFormatRequestForAbort; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeResetSynchronously; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeFormatRequestForReset; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeSendUrbSynchronously; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeFormatRequestForUrb; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbInterfaceGetInterfaceNumber; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbInterfaceGetNumEndpoints; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbInterfaceGetDescriptor; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbInterfaceSelectSetting; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbInterfaceGetEndpointInformation; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceGetInterface; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbInterfaceGetConfiguredSettingIndex; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbInterfaceGetNumConfiguredPipes; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbInterfaceGetConfiguredPipe; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeWdmGetPipeHandle; + PFN_ROSWDFUNIMPLEMENTED pfnWdfVerifierDbgBreakPoint; + PFN_ROSWDFUNIMPLEMENTED pfnWdfVerifierKeBugCheck; + PFN_ROSWDFUNIMPLEMENTED pfnWdfWmiProviderCreate; + PFN_ROSWDFUNIMPLEMENTED pfnWdfWmiProviderGetDevice; + PFN_ROSWDFUNIMPLEMENTED pfnWdfWmiProviderIsEnabled; + PFN_ROSWDFUNIMPLEMENTED pfnWdfWmiProviderGetTracingHandle; + PFN_ROSWDFUNIMPLEMENTED pfnWdfWmiInstanceCreate; + PFN_ROSWDFUNIMPLEMENTED pfnWdfWmiInstanceRegister; + PFN_ROSWDFUNIMPLEMENTED pfnWdfWmiInstanceDeregister; + PFN_ROSWDFUNIMPLEMENTED pfnWdfWmiInstanceGetDevice; + PFN_ROSWDFUNIMPLEMENTED pfnWdfWmiInstanceGetProvider; + PFN_ROSWDFUNIMPLEMENTED pfnWdfWmiInstanceFireEvent; + PFN_WDFWORKITEMCREATE pfnWdfWorkItemCreate; PFN_WDFWORKITEMENQUEUE pfnWdfWorkItemEnqueue; PFN_WDFWORKITEMGETPARENTOBJECT pfnWdfWorkItemGetParentObject; PFN_WDFWORKITEMFLUSH pfnWdfWorkItemFlush; - PFN_WDFCOMMONBUFFERCREATEWITHCONFIG pfnWdfCommonBufferCreateWithConfig; - PFN_WDFDMAENABLERGETFRAGMENTLENGTH pfnWdfDmaEnablerGetFragmentLength; - PFN_WDFDMAENABLERWDMGETDMAADAPTER pfnWdfDmaEnablerWdmGetDmaAdapter; - PFN_WDFUSBINTERFACEGETNUMSETTINGS pfnWdfUsbInterfaceGetNumSettings; + // PFN_WDFCOMMONBUFFERCREATEWITHCONFIG pfnWdfCommonBufferCreateWithConfig; + // PFN_WDFDMAENABLERGETFRAGMENTLENGTH pfnWdfDmaEnablerGetFragmentLength; + // PFN_WDFDMAENABLERWDMGETDMAADAPTER pfnWdfDmaEnablerWdmGetDmaAdapter; + // PFN_WDFUSBINTERFACEGETNUMSETTINGS pfnWdfUsbInterfaceGetNumSettings; + PFN_ROSWDFUNIMPLEMENTED pfnWdfCommonBufferCreateWithConfig; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaEnablerGetFragmentLength; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaEnablerWdmGetDmaAdapter; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbInterfaceGetNumSettings; + PFN_WDFDEVICEREMOVEDEPENDENTUSAGEDEVICEOBJECT pfnWdfDeviceRemoveDependentUsageDeviceObject; PFN_WDFDEVICEGETSYSTEMPOWERACTION pfnWdfDeviceGetSystemPowerAction; - PFN_WDFINTERRUPTSETEXTENDEDPOLICY pfnWdfInterruptSetExtendedPolicy; + // PFN_WDFINTERRUPTSETEXTENDEDPOLICY pfnWdfInterruptSetExtendedPolicy; + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptSetExtendedPolicy; + PFN_WDFIOQUEUEASSIGNFORWARDPROGRESSPOLICY pfnWdfIoQueueAssignForwardProgressPolicy; PFN_WDFPDOINITASSIGNCONTAINERID pfnWdfPdoInitAssignContainerID; PFN_WDFPDOINITALLOWFORWARDINGREQUESTTOPARENT pfnWdfPdoInitAllowForwardingRequestToParent; PFN_WDFREQUESTMARKCANCELABLEEX pfnWdfRequestMarkCancelableEx; PFN_WDFREQUESTISRESERVED pfnWdfRequestIsReserved; PFN_WDFREQUESTFORWARDTOPARENTDEVICEIOQUEUE pfnWdfRequestForwardToParentDeviceIoQueue; - PFN_WDFCXDEVICEINITALLOCATE pfnWdfCxDeviceInitAllocate; - PFN_WDFCXDEVICEINITASSIGNWDMIRPPREPROCESSCALLBACK pfnWdfCxDeviceInitAssignWdmIrpPreprocessCallback; - PFN_WDFCXDEVICEINITSETIOINCALLERCONTEXTCALLBACK pfnWdfCxDeviceInitSetIoInCallerContextCallback; - PFN_WDFCXDEVICEINITSETREQUESTATTRIBUTES pfnWdfCxDeviceInitSetRequestAttributes; - PFN_WDFCXDEVICEINITSETFILEOBJECTCONFIG pfnWdfCxDeviceInitSetFileObjectConfig; + // PFN_WDFCXDEVICEINITALLOCATE pfnWdfCxDeviceInitAllocate; + // PFN_WDFCXDEVICEINITASSIGNWDMIRPPREPROCESSCALLBACK pfnWdfCxDeviceInitAssignWdmIrpPreprocessCallback; + // PFN_WDFCXDEVICEINITSETIOINCALLERCONTEXTCALLBACK pfnWdfCxDeviceInitSetIoInCallerContextCallback; + // PFN_WDFCXDEVICEINITSETREQUESTATTRIBUTES pfnWdfCxDeviceInitSetRequestAttributes; + // PFN_WDFCXDEVICEINITSETFILEOBJECTCONFIG pfnWdfCxDeviceInitSetFileObjectConfig; + PFN_ROSWDFUNIMPLEMENTED pfnWdfCxDeviceInitAllocate; + PFN_ROSWDFUNIMPLEMENTED pfnWdfCxDeviceInitAssignWdmIrpPreprocessCallback; + PFN_ROSWDFUNIMPLEMENTED pfnWdfCxDeviceInitSetIoInCallerContextCallback; + PFN_ROSWDFUNIMPLEMENTED pfnWdfCxDeviceInitSetRequestAttributes; + PFN_ROSWDFUNIMPLEMENTED pfnWdfCxDeviceInitSetFileObjectConfig; + PFN_WDFDEVICEWDMDISPATCHIRP pfnWdfDeviceWdmDispatchIrp; PFN_WDFDEVICEWDMDISPATCHIRPTOIOQUEUE pfnWdfDeviceWdmDispatchIrpToIoQueue; PFN_WDFDEVICEINITSETREMOVELOCKOPTIONS pfnWdfDeviceInitSetRemoveLockOptions; PFN_WDFDEVICECONFIGUREWDMIRPDISPATCHCALLBACK pfnWdfDeviceConfigureWdmIrpDispatchCallback; - PFN_WDFDMAENABLERCONFIGURESYSTEMPROFILE pfnWdfDmaEnablerConfigureSystemProfile; - PFN_WDFDMATRANSACTIONINITIALIZEUSINGOFFSET pfnWdfDmaTransactionInitializeUsingOffset; - PFN_WDFDMATRANSACTIONGETTRANSFERINFO pfnWdfDmaTransactionGetTransferInfo; - PFN_WDFDMATRANSACTIONSETCHANNELCONFIGURATIONCALLBACK pfnWdfDmaTransactionSetChannelConfigurationCallback; - PFN_WDFDMATRANSACTIONSETTRANSFERCOMPLETECALLBACK pfnWdfDmaTransactionSetTransferCompleteCallback; - PFN_WDFDMATRANSACTIONSETIMMEDIATEEXECUTION pfnWdfDmaTransactionSetImmediateExecution; - PFN_WDFDMATRANSACTIONALLOCATERESOURCES pfnWdfDmaTransactionAllocateResources; - PFN_WDFDMATRANSACTIONSETDEVICEADDRESSOFFSET pfnWdfDmaTransactionSetDeviceAddressOffset; - PFN_WDFDMATRANSACTIONFREERESOURCES pfnWdfDmaTransactionFreeResources; - PFN_WDFDMATRANSACTIONCANCEL pfnWdfDmaTransactionCancel; - PFN_WDFDMATRANSACTIONWDMGETTRANSFERCONTEXT pfnWdfDmaTransactionWdmGetTransferContext; - PFN_WDFINTERRUPTQUEUEWORKITEMFORISR pfnWdfInterruptQueueWorkItemForIsr; - PFN_WDFINTERRUPTTRYTOACQUIRELOCK pfnWdfInterruptTryToAcquireLock; + // PFN_WDFDMAENABLERCONFIGURESYSTEMPROFILE pfnWdfDmaEnablerConfigureSystemProfile; + // PFN_WDFDMATRANSACTIONINITIALIZEUSINGOFFSET pfnWdfDmaTransactionInitializeUsingOffset; + // PFN_WDFDMATRANSACTIONGETTRANSFERINFO pfnWdfDmaTransactionGetTransferInfo; + // PFN_WDFDMATRANSACTIONSETCHANNELCONFIGURATIONCALLBACK pfnWdfDmaTransactionSetChannelConfigurationCallback; + // PFN_WDFDMATRANSACTIONSETTRANSFERCOMPLETECALLBACK pfnWdfDmaTransactionSetTransferCompleteCallback; + // PFN_WDFDMATRANSACTIONSETIMMEDIATEEXECUTION pfnWdfDmaTransactionSetImmediateExecution; + // PFN_WDFDMATRANSACTIONALLOCATERESOURCES pfnWdfDmaTransactionAllocateResources; + // PFN_WDFDMATRANSACTIONSETDEVICEADDRESSOFFSET pfnWdfDmaTransactionSetDeviceAddressOffset; + // PFN_WDFDMATRANSACTIONFREERESOURCES pfnWdfDmaTransactionFreeResources; + // PFN_WDFDMATRANSACTIONCANCEL pfnWdfDmaTransactionCancel; + // PFN_WDFDMATRANSACTIONWDMGETTRANSFERCONTEXT pfnWdfDmaTransactionWdmGetTransferContext; + // PFN_WDFINTERRUPTQUEUEWORKITEMFORISR pfnWdfInterruptQueueWorkItemForIsr; + // PFN_WDFINTERRUPTTRYTOACQUIRELOCK pfnWdfInterruptTryToAcquireLock; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaEnablerConfigureSystemProfile; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionInitializeUsingOffset; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionGetTransferInfo; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionSetChannelConfigurationCallback; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionSetTransferCompleteCallback; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionSetImmediateExecution; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionAllocateResources; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionSetDeviceAddressOffset; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionFreeResources; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionCancel; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionWdmGetTransferContext; + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptQueueWorkItemForIsr; + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptTryToAcquireLock; + PFN_WDFIOQUEUESTOPANDPURGE pfnWdfIoQueueStopAndPurge; PFN_WDFIOQUEUESTOPANDPURGESYNCHRONOUSLY pfnWdfIoQueueStopAndPurgeSynchronously; PFN_WDFIOTARGETPURGE pfnWdfIoTargetPurge; - PFN_WDFUSBTARGETDEVICECREATEWITHPARAMETERS pfnWdfUsbTargetDeviceCreateWithParameters; - PFN_WDFUSBTARGETDEVICEQUERYUSBCAPABILITY pfnWdfUsbTargetDeviceQueryUsbCapability; - PFN_WDFUSBTARGETDEVICECREATEURB pfnWdfUsbTargetDeviceCreateUrb; - PFN_WDFUSBTARGETDEVICECREATEISOCHURB pfnWdfUsbTargetDeviceCreateIsochUrb; + // PFN_WDFUSBTARGETDEVICECREATEWITHPARAMETERS pfnWdfUsbTargetDeviceCreateWithParameters; + // PFN_WDFUSBTARGETDEVICEQUERYUSBCAPABILITY pfnWdfUsbTargetDeviceQueryUsbCapability; + // PFN_WDFUSBTARGETDEVICECREATEURB pfnWdfUsbTargetDeviceCreateUrb; + // PFN_WDFUSBTARGETDEVICECREATEISOCHURB pfnWdfUsbTargetDeviceCreateIsochUrb; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceCreateWithParameters; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceQueryUsbCapability; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceCreateUrb; + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceCreateIsochUrb; + PFN_WDFDEVICEWDMASSIGNPOWERFRAMEWORKSETTINGS pfnWdfDeviceWdmAssignPowerFrameworkSettings; - PFN_WDFDMATRANSACTIONSTOPSYSTEMTRANSFER pfnWdfDmaTransactionStopSystemTransfer; - PFN_WDFCXVERIFIERKEBUGCHECK pfnWdfCxVerifierKeBugCheck; - PFN_WDFINTERRUPTREPORTACTIVE pfnWdfInterruptReportActive; - PFN_WDFINTERRUPTREPORTINACTIVE pfnWdfInterruptReportInactive; + // PFN_WDFDMATRANSACTIONSTOPSYSTEMTRANSFER pfnWdfDmaTransactionStopSystemTransfer; + // PFN_WDFCXVERIFIERKEBUGCHECK pfnWdfCxVerifierKeBugCheck; + // PFN_WDFINTERRUPTREPORTACTIVE pfnWdfInterruptReportActive; + // PFN_WDFINTERRUPTREPORTINACTIVE pfnWdfInterruptReportInactive; + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionStopSystemTransfer; + PFN_ROSWDFUNIMPLEMENTED pfnWdfCxVerifierKeBugCheck; + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptReportActive; + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptReportInactive; + PFN_WDFDEVICEINITSETRELEASEHARDWAREORDERONFAILURE pfnWdfDeviceInitSetReleaseHardwareOrderOnFailure; - PFN_WDFGETTRIAGEINFO pfnWdfGetTriageInfo; + // PFN_WDFGETTRIAGEINFO pfnWdfGetTriageInfo; + PFN_ROSWDFUNIMPLEMENTED pfnWdfGetTriageInfo; + PFN_WDFDEVICEINITSETIOTYPEEX pfnWdfDeviceInitSetIoTypeEx; PFN_WDFDEVICEQUERYPROPERTYEX pfnWdfDeviceQueryPropertyEx; PFN_WDFDEVICEALLOCANDQUERYPROPERTYEX pfnWdfDeviceAllocAndQueryPropertyEx; @@ -478,6 +641,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfChildListCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -494,6 +658,7 @@ WDFEXPORT(WdfChildListCreate)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFDEVICE +STDCALL WDFEXPORT(WdfChildListGetDevice)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -505,6 +670,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFDEVICE +STDCALL WDFEXPORT(WdfChildListRetrievePdo)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -518,6 +684,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfChildListRetrieveAddressDescription)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -532,6 +699,7 @@ WDFEXPORT(WdfChildListRetrieveAddressDescription)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfChildListBeginScan)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -542,6 +710,7 @@ WDFEXPORT(WdfChildListBeginScan)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfChildListEndScan)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -552,6 +721,7 @@ WDFEXPORT(WdfChildListEndScan)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfChildListBeginIteration)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -565,6 +735,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfChildListRetrieveNextDevice)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -581,6 +752,7 @@ WDFEXPORT(WdfChildListRetrieveNextDevice)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfChildListEndIteration)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -594,6 +766,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfChildListAddOrUpdateChildDescriptionAsPresent)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -609,6 +782,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfChildListUpdateChildDescriptionAsMissing)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -621,6 +795,7 @@ WDFEXPORT(WdfChildListUpdateChildDescriptionAsMissing)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfChildListUpdateAllChildDescriptionsAsPresent)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -631,6 +806,7 @@ WDFEXPORT(WdfChildListUpdateAllChildDescriptionsAsPresent)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI BOOLEAN +STDCALL WDFEXPORT(WdfChildListRequestChildEject)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -644,6 +820,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfCollectionCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -656,6 +833,7 @@ WDFEXPORT(WdfCollectionCreate)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI ULONG +STDCALL WDFEXPORT(WdfCollectionGetCount)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -667,6 +845,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfCollectionAdd)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -679,6 +858,7 @@ WDFEXPORT(WdfCollectionAdd)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfCollectionRemove)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -691,6 +871,7 @@ WDFEXPORT(WdfCollectionRemove)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfCollectionRemoveItem)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -703,6 +884,7 @@ WDFEXPORT(WdfCollectionRemoveItem)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFOBJECT +STDCALL WDFEXPORT(WdfCollectionGetItem)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -715,6 +897,7 @@ WDFEXPORT(WdfCollectionGetItem)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFOBJECT +STDCALL WDFEXPORT(WdfCollectionGetFirstItem)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -725,6 +908,7 @@ WDFEXPORT(WdfCollectionGetFirstItem)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFOBJECT +STDCALL WDFEXPORT(WdfCollectionGetLastItem)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -736,6 +920,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfCommonBufferCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -754,6 +939,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfCommonBufferCreateWithConfig)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -773,6 +959,7 @@ WDFEXPORT(WdfCommonBufferCreateWithConfig)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI PVOID +STDCALL WDFEXPORT(WdfCommonBufferGetAlignedVirtualAddress)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -783,6 +970,7 @@ WDFEXPORT(WdfCommonBufferGetAlignedVirtualAddress)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI PHYSICAL_ADDRESS +STDCALL WDFEXPORT(WdfCommonBufferGetAlignedLogicalAddress)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -793,6 +981,7 @@ WDFEXPORT(WdfCommonBufferGetAlignedLogicalAddress)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI size_t +STDCALL WDFEXPORT(WdfCommonBufferGetLength)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -804,6 +993,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI PWDFDEVICE_INIT +STDCALL WDFEXPORT(WdfControlDeviceInitAllocate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -816,6 +1006,7 @@ WDFEXPORT(WdfControlDeviceInitAllocate)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfControlDeviceInitSetShutdownNotification)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -830,6 +1021,7 @@ WDFEXPORT(WdfControlDeviceInitSetShutdownNotification)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfControlFinishInitializing)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -841,6 +1033,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI PWDFCXDEVICE_INIT +STDCALL WDFEXPORT(WdfCxDeviceInitAllocate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -852,6 +1045,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfCxDeviceInitAssignWdmIrpPreprocessCallback)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -871,6 +1065,7 @@ WDFEXPORT(WdfCxDeviceInitAssignWdmIrpPreprocessCallback)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfCxDeviceInitSetIoInCallerContextCallback)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -883,6 +1078,7 @@ WDFEXPORT(WdfCxDeviceInitSetIoInCallerContextCallback)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfCxDeviceInitSetRequestAttributes)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -895,6 +1091,7 @@ WDFEXPORT(WdfCxDeviceInitSetRequestAttributes)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfCxDeviceInitSetFileObjectConfig)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -908,6 +1105,7 @@ WDFEXPORT(WdfCxDeviceInitSetFileObjectConfig)( WDFAPI VOID +STDCALL WDFEXPORT(WdfCxVerifierKeBugCheck)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -928,6 +1126,7 @@ WDFEXPORT(WdfCxVerifierKeBugCheck)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceGetDeviceState)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -940,6 +1139,7 @@ WDFEXPORT(WdfDeviceGetDeviceState)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceSetDeviceState)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -952,6 +1152,7 @@ WDFEXPORT(WdfDeviceSetDeviceState)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFDEVICE +STDCALL WDFEXPORT(WdfWdmDeviceGetWdfDeviceHandle)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -962,6 +1163,7 @@ WDFEXPORT(WdfWdmDeviceGetWdfDeviceHandle)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI PDEVICE_OBJECT +STDCALL WDFEXPORT(WdfDeviceWdmGetDeviceObject)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -972,6 +1174,7 @@ WDFEXPORT(WdfDeviceWdmGetDeviceObject)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI PDEVICE_OBJECT +STDCALL WDFEXPORT(WdfDeviceWdmGetAttachedDevice)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -982,6 +1185,7 @@ WDFEXPORT(WdfDeviceWdmGetAttachedDevice)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI PDEVICE_OBJECT +STDCALL WDFEXPORT(WdfDeviceWdmGetPhysicalDevice)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -993,6 +1197,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceWdmDispatchPreprocessedIrp)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1006,6 +1211,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceWdmDispatchIrp)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1021,6 +1227,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceWdmDispatchIrpToIoQueue)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1038,6 +1245,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceAddDependentUsageDeviceObject)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1050,6 +1258,7 @@ WDFEXPORT(WdfDeviceAddDependentUsageDeviceObject)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceRemoveDependentUsageDeviceObject)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1063,6 +1272,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceAddRemovalRelationsPhysicalDevice)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1075,6 +1285,7 @@ WDFEXPORT(WdfDeviceAddRemovalRelationsPhysicalDevice)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceRemoveRemovalRelationsPhysicalDevice)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1087,6 +1298,7 @@ WDFEXPORT(WdfDeviceRemoveRemovalRelationsPhysicalDevice)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceClearRemovalRelationsDevices)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1097,6 +1309,7 @@ WDFEXPORT(WdfDeviceClearRemovalRelationsDevices)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFDRIVER +STDCALL WDFEXPORT(WdfDeviceGetDriver)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1108,6 +1321,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceRetrieveDeviceName)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1121,6 +1335,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceAssignMofResourceName)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1133,6 +1348,7 @@ WDFEXPORT(WdfDeviceAssignMofResourceName)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFIOTARGET +STDCALL WDFEXPORT(WdfDeviceGetIoTarget)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1143,6 +1359,7 @@ WDFEXPORT(WdfDeviceGetIoTarget)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDF_DEVICE_PNP_STATE +STDCALL WDFEXPORT(WdfDeviceGetDevicePnpState)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1153,6 +1370,7 @@ WDFEXPORT(WdfDeviceGetDevicePnpState)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDF_DEVICE_POWER_STATE +STDCALL WDFEXPORT(WdfDeviceGetDevicePowerState)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1163,6 +1381,7 @@ WDFEXPORT(WdfDeviceGetDevicePowerState)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDF_DEVICE_POWER_POLICY_STATE +STDCALL WDFEXPORT(WdfDeviceGetDevicePowerPolicyState)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1174,6 +1393,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceAssignS0IdleSettings)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1187,6 +1407,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceAssignSxWakeSettings)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1200,6 +1421,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceOpenRegistryKey)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1219,6 +1441,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceOpenDevicemapKey)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1237,6 +1460,7 @@ WDFEXPORT(WdfDeviceOpenDevicemapKey)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceSetSpecialFileSupport)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1251,6 +1475,7 @@ WDFEXPORT(WdfDeviceSetSpecialFileSupport)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceSetCharacteristics)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1263,6 +1488,7 @@ WDFEXPORT(WdfDeviceSetCharacteristics)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI ULONG +STDCALL WDFEXPORT(WdfDeviceGetCharacteristics)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1273,6 +1499,7 @@ WDFEXPORT(WdfDeviceGetCharacteristics)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI ULONG +STDCALL WDFEXPORT(WdfDeviceGetAlignmentRequirement)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1283,6 +1510,7 @@ WDFEXPORT(WdfDeviceGetAlignmentRequirement)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceSetAlignmentRequirement)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1295,6 +1523,7 @@ WDFEXPORT(WdfDeviceSetAlignmentRequirement)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceInitFree)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1305,6 +1534,7 @@ WDFEXPORT(WdfDeviceInitFree)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceInitSetPnpPowerEventCallbacks)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1317,6 +1547,7 @@ WDFEXPORT(WdfDeviceInitSetPnpPowerEventCallbacks)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceInitSetPowerPolicyEventCallbacks)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1329,6 +1560,7 @@ WDFEXPORT(WdfDeviceInitSetPowerPolicyEventCallbacks)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceInitSetPowerPolicyOwnership)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1342,6 +1574,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceInitRegisterPnpStateChangeCallback)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1359,6 +1592,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceInitRegisterPowerStateChangeCallback)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1376,6 +1610,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceInitRegisterPowerPolicyStateChangeCallback)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1392,6 +1627,7 @@ WDFEXPORT(WdfDeviceInitRegisterPowerPolicyStateChangeCallback)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceInitSetExclusive)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1404,6 +1640,7 @@ WDFEXPORT(WdfDeviceInitSetExclusive)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceInitSetIoType)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1416,6 +1653,7 @@ WDFEXPORT(WdfDeviceInitSetIoType)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceInitSetPowerNotPageable)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1426,6 +1664,7 @@ WDFEXPORT(WdfDeviceInitSetPowerNotPageable)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceInitSetPowerPageable)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1436,6 +1675,7 @@ WDFEXPORT(WdfDeviceInitSetPowerPageable)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceInitSetPowerInrush)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1446,6 +1686,7 @@ WDFEXPORT(WdfDeviceInitSetPowerInrush)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceInitSetDeviceType)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1459,6 +1700,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceInitAssignName)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1472,6 +1714,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceInitAssignSDDLString)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1484,6 +1727,7 @@ WDFEXPORT(WdfDeviceInitAssignSDDLString)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceInitSetDeviceClass)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1496,6 +1740,7 @@ WDFEXPORT(WdfDeviceInitSetDeviceClass)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceInitSetCharacteristics)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1510,6 +1755,7 @@ WDFEXPORT(WdfDeviceInitSetCharacteristics)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceInitSetFileObjectConfig)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1524,6 +1770,7 @@ WDFEXPORT(WdfDeviceInitSetFileObjectConfig)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceInitSetRequestAttributes)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1537,6 +1784,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceInitAssignWdmIrpPreprocessCallback)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1556,6 +1804,7 @@ WDFEXPORT(WdfDeviceInitAssignWdmIrpPreprocessCallback)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceInitSetIoInCallerContextCallback)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1568,6 +1817,7 @@ WDFEXPORT(WdfDeviceInitSetIoInCallerContextCallback)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceInitSetRemoveLockOptions)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1581,6 +1831,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1595,6 +1846,7 @@ WDFEXPORT(WdfDeviceCreate)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceSetStaticStopRemove)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1608,6 +1860,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceCreateDeviceInterface)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1622,6 +1875,7 @@ WDFEXPORT(WdfDeviceCreateDeviceInterface)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceSetDeviceInterfaceState)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1639,6 +1893,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceRetrieveDeviceInterfaceString)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1656,6 +1911,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceCreateSymbolicLink)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1669,6 +1925,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceQueryProperty)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1688,6 +1945,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceAllocAndQueryProperty)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1707,6 +1965,7 @@ WDFEXPORT(WdfDeviceAllocAndQueryProperty)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceSetPnpCapabilities)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1719,6 +1978,7 @@ WDFEXPORT(WdfDeviceSetPnpCapabilities)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceSetPowerCapabilities)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1731,6 +1991,7 @@ WDFEXPORT(WdfDeviceSetPowerCapabilities)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceSetBusInformationForChildren)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1744,6 +2005,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceIndicateWakeStatus)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1756,6 +2018,7 @@ WDFEXPORT(WdfDeviceIndicateWakeStatus)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceSetFailed)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1770,6 +2033,7 @@ _When_(WaitForD0 == 0, _IRQL_requires_max_(DISPATCH_LEVEL)) _When_(WaitForD0 != 0, _IRQL_requires_max_(PASSIVE_LEVEL)) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceStopIdleNoTrack)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1782,6 +2046,7 @@ WDFEXPORT(WdfDeviceStopIdleNoTrack)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceResumeIdleNoTrack)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1794,6 +2059,7 @@ _When_(WaitForD0 == 0, _IRQL_requires_max_(DISPATCH_LEVEL)) _When_(WaitForD0 != 0, _IRQL_requires_max_(PASSIVE_LEVEL)) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceStopIdleActual)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1812,6 +2078,7 @@ WDFEXPORT(WdfDeviceStopIdleActual)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceResumeIdleActual)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1828,6 +2095,7 @@ WDFEXPORT(WdfDeviceResumeIdleActual)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFFILEOBJECT +STDCALL WDFEXPORT(WdfDeviceGetFileObject)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1841,6 +2109,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceEnqueueRequest)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1853,6 +2122,7 @@ WDFEXPORT(WdfDeviceEnqueueRequest)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFQUEUE +STDCALL WDFEXPORT(WdfDeviceGetDefaultQueue)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1864,6 +2134,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceConfigureRequestDispatching)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1880,6 +2151,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceConfigureWdmIrpDispatchCallback)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1898,6 +2170,7 @@ WDFEXPORT(WdfDeviceConfigureWdmIrpDispatchCallback)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI POWER_ACTION +STDCALL WDFEXPORT(WdfDeviceGetSystemPowerAction)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1909,6 +2182,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceWdmAssignPowerFrameworkSettings)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1921,6 +2195,7 @@ WDFEXPORT(WdfDeviceWdmAssignPowerFrameworkSettings)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceInitSetReleaseHardwareOrderOnFailure)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1933,6 +2208,7 @@ WDFEXPORT(WdfDeviceInitSetReleaseHardwareOrderOnFailure)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceInitSetIoTypeEx)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1946,6 +2222,7 @@ _Must_inspect_result_ _IRQL_requires_max_(APC_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceQueryPropertyEx)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1967,6 +2244,7 @@ _Must_inspect_result_ _IRQL_requires_max_(APC_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceAllocAndQueryPropertyEx)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -1989,6 +2267,7 @@ _Must_inspect_result_ _IRQL_requires_max_(APC_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceAssignProperty)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2007,6 +2286,7 @@ WDFEXPORT(WdfDeviceAssignProperty)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFIOTARGET +STDCALL WDFEXPORT(WdfDeviceGetSelfIoTarget)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2017,6 +2297,7 @@ WDFEXPORT(WdfDeviceGetSelfIoTarget)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDeviceInitAllowSelfIoTarget)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2028,6 +2309,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDmaEnablerCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2045,6 +2327,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDmaEnablerConfigureSystemProfile)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2059,6 +2342,7 @@ WDFEXPORT(WdfDmaEnablerConfigureSystemProfile)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI size_t +STDCALL WDFEXPORT(WdfDmaEnablerGetMaximumLength)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2069,6 +2353,7 @@ WDFEXPORT(WdfDmaEnablerGetMaximumLength)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI size_t +STDCALL WDFEXPORT(WdfDmaEnablerGetMaximumScatterGatherElements)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2079,6 +2364,7 @@ WDFEXPORT(WdfDmaEnablerGetMaximumScatterGatherElements)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDmaEnablerSetMaximumScatterGatherElements)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2092,6 +2378,7 @@ WDFEXPORT(WdfDmaEnablerSetMaximumScatterGatherElements)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI size_t +STDCALL WDFEXPORT(WdfDmaEnablerGetFragmentLength)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2104,6 +2391,7 @@ WDFEXPORT(WdfDmaEnablerGetFragmentLength)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI PDMA_ADAPTER +STDCALL WDFEXPORT(WdfDmaEnablerWdmGetDmaAdapter)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2117,6 +2405,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDmaTransactionCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2132,6 +2421,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDmaTransactionInitialize)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2154,6 +2444,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDmaTransactionInitializeUsingOffset)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2176,6 +2467,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDmaTransactionInitializeUsingRequest)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2193,6 +2485,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDmaTransactionExecute)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2206,6 +2499,7 @@ _Success_(TRUE) _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDmaTransactionRelease)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2216,6 +2510,7 @@ WDFEXPORT(WdfDmaTransactionRelease)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI BOOLEAN +STDCALL WDFEXPORT(WdfDmaTransactionDmaCompleted)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2228,6 +2523,7 @@ WDFEXPORT(WdfDmaTransactionDmaCompleted)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI BOOLEAN +STDCALL WDFEXPORT(WdfDmaTransactionDmaCompletedWithLength)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2242,6 +2538,7 @@ WDFEXPORT(WdfDmaTransactionDmaCompletedWithLength)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI BOOLEAN +STDCALL WDFEXPORT(WdfDmaTransactionDmaCompletedFinal)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2256,6 +2553,7 @@ WDFEXPORT(WdfDmaTransactionDmaCompletedFinal)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI size_t +STDCALL WDFEXPORT(WdfDmaTransactionGetBytesTransferred)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2266,6 +2564,7 @@ WDFEXPORT(WdfDmaTransactionGetBytesTransferred)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDmaTransactionSetMaximumLength)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2278,6 +2577,7 @@ WDFEXPORT(WdfDmaTransactionSetMaximumLength)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFREQUEST +STDCALL WDFEXPORT(WdfDmaTransactionGetRequest)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2288,6 +2588,7 @@ WDFEXPORT(WdfDmaTransactionGetRequest)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI size_t +STDCALL WDFEXPORT(WdfDmaTransactionGetCurrentDmaTransferLength)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2298,6 +2599,7 @@ WDFEXPORT(WdfDmaTransactionGetCurrentDmaTransferLength)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFDEVICE +STDCALL WDFEXPORT(WdfDmaTransactionGetDevice)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2308,6 +2610,7 @@ WDFEXPORT(WdfDmaTransactionGetDevice)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDmaTransactionGetTransferInfo)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2322,6 +2625,7 @@ WDFEXPORT(WdfDmaTransactionGetTransferInfo)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDmaTransactionSetChannelConfigurationCallback)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2336,6 +2640,7 @@ WDFEXPORT(WdfDmaTransactionSetChannelConfigurationCallback)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDmaTransactionSetTransferCompleteCallback)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2350,6 +2655,7 @@ WDFEXPORT(WdfDmaTransactionSetTransferCompleteCallback)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDmaTransactionSetImmediateExecution)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2362,6 +2668,7 @@ WDFEXPORT(WdfDmaTransactionSetImmediateExecution)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDmaTransactionAllocateResources)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2380,6 +2687,7 @@ WDFEXPORT(WdfDmaTransactionAllocateResources)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDmaTransactionSetDeviceAddressOffset)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2392,6 +2700,7 @@ WDFEXPORT(WdfDmaTransactionSetDeviceAddressOffset)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDmaTransactionFreeResources)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2402,6 +2711,7 @@ WDFEXPORT(WdfDmaTransactionFreeResources)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI BOOLEAN +STDCALL WDFEXPORT(WdfDmaTransactionCancel)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2412,6 +2722,7 @@ WDFEXPORT(WdfDmaTransactionCancel)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI PVOID +STDCALL WDFEXPORT(WdfDmaTransactionWdmGetTransferContext)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2422,6 +2733,7 @@ WDFEXPORT(WdfDmaTransactionWdmGetTransferContext)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfDmaTransactionStopSystemTransfer)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2433,6 +2745,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDpcCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2447,6 +2760,7 @@ WDFEXPORT(WdfDpcCreate)( _IRQL_requires_max_(HIGH_LEVEL) WDFAPI BOOLEAN +STDCALL WDFEXPORT(WdfDpcEnqueue)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2458,6 +2772,7 @@ _When_(Wait == __true, _IRQL_requires_max_(PASSIVE_LEVEL)) _When_(Wait == __false, _IRQL_requires_max_(HIGH_LEVEL)) WDFAPI BOOLEAN +STDCALL WDFEXPORT(WdfDpcCancel)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2470,6 +2785,7 @@ WDFEXPORT(WdfDpcCancel)( _IRQL_requires_max_(HIGH_LEVEL) WDFAPI WDFOBJECT +STDCALL WDFEXPORT(WdfDpcGetParentObject)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2480,6 +2796,7 @@ WDFEXPORT(WdfDpcGetParentObject)( _IRQL_requires_max_(HIGH_LEVEL) WDFAPI PKDPC +STDCALL WDFEXPORT(WdfDpcWdmGetDpc)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2491,6 +2808,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDriverCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2509,6 +2827,7 @@ WDFEXPORT(WdfDriverCreate)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI PWSTR +STDCALL WDFEXPORT(WdfDriverGetRegistryPath)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2519,6 +2838,7 @@ WDFEXPORT(WdfDriverGetRegistryPath)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI PDRIVER_OBJECT +STDCALL WDFEXPORT(WdfDriverWdmGetDriverObject)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2530,6 +2850,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDriverOpenParametersRegistryKey)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2546,6 +2867,7 @@ WDFEXPORT(WdfDriverOpenParametersRegistryKey)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFDRIVER +STDCALL WDFEXPORT(WdfWdmDriverGetWdfDriverHandle)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2557,6 +2879,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDriverRegisterTraceInfo)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2572,6 +2895,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDriverRetrieveVersionString)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2585,6 +2909,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI BOOLEAN +STDCALL WDFEXPORT(WdfDriverIsVersionAvailable)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2597,6 +2922,7 @@ WDFEXPORT(WdfDriverIsVersionAvailable)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI PDEVICE_OBJECT +STDCALL WDFEXPORT(WdfFdoInitWdmGetPhysicalDevice)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2608,6 +2934,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfFdoInitOpenRegistryKey)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2627,6 +2954,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfFdoInitQueryProperty)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2646,6 +2974,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfFdoInitAllocAndQueryProperty)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2666,6 +2995,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfFdoInitQueryPropertyEx)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2687,6 +3017,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfFdoInitAllocAndQueryPropertyEx)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2708,6 +3039,7 @@ WDFEXPORT(WdfFdoInitAllocAndQueryPropertyEx)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfFdoInitSetEventCallbacks)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2720,6 +3052,7 @@ WDFEXPORT(WdfFdoInitSetEventCallbacks)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfFdoInitSetFilter)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2730,6 +3063,7 @@ WDFEXPORT(WdfFdoInitSetFilter)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfFdoInitSetDefaultChildListConfig)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2745,6 +3079,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfFdoQueryForInterface)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2765,6 +3100,7 @@ WDFEXPORT(WdfFdoQueryForInterface)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFCHILDLIST +STDCALL WDFEXPORT(WdfFdoGetDefaultChildList)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2776,6 +3112,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfFdoAddStaticChild)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2788,6 +3125,7 @@ WDFEXPORT(WdfFdoAddStaticChild)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfFdoLockStaticChildListForIteration)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2799,6 +3137,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFDEVICE +STDCALL WDFEXPORT(WdfFdoRetrieveNextStaticChild)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2813,6 +3152,7 @@ WDFEXPORT(WdfFdoRetrieveNextStaticChild)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfFdoUnlockStaticChildListFromIteration)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2823,6 +3163,7 @@ WDFEXPORT(WdfFdoUnlockStaticChildListFromIteration)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI PUNICODE_STRING +STDCALL WDFEXPORT(WdfFileObjectGetFileName)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2833,6 +3174,7 @@ WDFEXPORT(WdfFileObjectGetFileName)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI ULONG +STDCALL WDFEXPORT(WdfFileObjectGetFlags)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2843,6 +3185,7 @@ WDFEXPORT(WdfFileObjectGetFlags)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFDEVICE +STDCALL WDFEXPORT(WdfFileObjectGetDevice)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2853,6 +3196,7 @@ WDFEXPORT(WdfFileObjectGetDevice)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI PFILE_OBJECT +STDCALL WDFEXPORT(WdfFileObjectWdmGetFileObject)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2864,6 +3208,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfInterruptCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2879,6 +3224,7 @@ WDFEXPORT(WdfInterruptCreate)( WDFAPI BOOLEAN +STDCALL WDFEXPORT(WdfInterruptQueueDpcForIsr)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2888,6 +3234,7 @@ WDFEXPORT(WdfInterruptQueueDpcForIsr)( WDFAPI BOOLEAN +STDCALL WDFEXPORT(WdfInterruptQueueWorkItemForIsr)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2898,6 +3245,7 @@ WDFEXPORT(WdfInterruptQueueWorkItemForIsr)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI BOOLEAN +STDCALL WDFEXPORT(WdfInterruptSynchronize)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2912,6 +3260,7 @@ WDFEXPORT(WdfInterruptSynchronize)( _IRQL_requires_max_(DISPATCH_LEVEL + 1) WDFAPI VOID +STDCALL WDFEXPORT(WdfInterruptAcquireLock)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2924,6 +3273,7 @@ WDFEXPORT(WdfInterruptAcquireLock)( _IRQL_requires_max_(DISPATCH_LEVEL + 1) WDFAPI VOID +STDCALL WDFEXPORT(WdfInterruptReleaseLock)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2936,6 +3286,7 @@ WDFEXPORT(WdfInterruptReleaseLock)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfInterruptEnable)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2946,6 +3297,7 @@ WDFEXPORT(WdfInterruptEnable)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfInterruptDisable)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2956,6 +3308,7 @@ WDFEXPORT(WdfInterruptDisable)( _Must_inspect_result_ WDFAPI PKINTERRUPT +STDCALL WDFEXPORT(WdfInterruptWdmGetInterrupt)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2966,6 +3319,7 @@ WDFEXPORT(WdfInterruptWdmGetInterrupt)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfInterruptGetInfo)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2978,6 +3332,7 @@ WDFEXPORT(WdfInterruptGetInfo)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfInterruptSetPolicy)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -2994,6 +3349,7 @@ WDFEXPORT(WdfInterruptSetPolicy)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfInterruptSetExtendedPolicy)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3005,6 +3361,7 @@ WDFEXPORT(WdfInterruptSetExtendedPolicy)( WDFAPI WDFDEVICE +STDCALL WDFEXPORT(WdfInterruptGetDevice)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3017,6 +3374,7 @@ _Post_satisfies_(return == 1 || return == 0) _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI BOOLEAN +STDCALL WDFEXPORT(WdfInterruptTryToAcquireLock)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3029,6 +3387,7 @@ WDFEXPORT(WdfInterruptTryToAcquireLock)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfInterruptReportActive)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3039,6 +3398,7 @@ WDFEXPORT(WdfInterruptReportActive)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfInterruptReportInactive)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3050,6 +3410,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoQueueCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3066,6 +3427,7 @@ WDFEXPORT(WdfIoQueueCreate)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDF_IO_QUEUE_STATE +STDCALL WDFEXPORT(WdfIoQueueGetState)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3080,6 +3442,7 @@ WDFEXPORT(WdfIoQueueGetState)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfIoQueueStart)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3090,6 +3453,7 @@ WDFEXPORT(WdfIoQueueStart)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfIoQueueStop)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3106,6 +3470,7 @@ WDFEXPORT(WdfIoQueueStop)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfIoQueueStopSynchronously)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3116,6 +3481,7 @@ WDFEXPORT(WdfIoQueueStopSynchronously)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFDEVICE +STDCALL WDFEXPORT(WdfIoQueueGetDevice)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3127,6 +3493,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoQueueRetrieveNextRequest)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3140,6 +3507,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoQueueRetrieveRequestByFileObject)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3155,6 +3523,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoQueueFindRequest)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3174,6 +3543,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoQueueRetrieveFoundRequest)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3188,6 +3558,7 @@ WDFEXPORT(WdfIoQueueRetrieveFoundRequest)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfIoQueueDrainSynchronously)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3198,6 +3569,7 @@ WDFEXPORT(WdfIoQueueDrainSynchronously)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfIoQueueDrain)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3214,6 +3586,7 @@ WDFEXPORT(WdfIoQueueDrain)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfIoQueuePurgeSynchronously)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3224,6 +3597,7 @@ WDFEXPORT(WdfIoQueuePurgeSynchronously)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfIoQueuePurge)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3241,6 +3615,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoQueueReadyNotify)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3256,6 +3631,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoQueueAssignForwardProgressPolicy)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3268,6 +3644,7 @@ WDFEXPORT(WdfIoQueueAssignForwardProgressPolicy)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfIoQueueStopAndPurge)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3284,6 +3661,7 @@ WDFEXPORT(WdfIoQueueStopAndPurge)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfIoQueueStopAndPurgeSynchronously)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3295,6 +3673,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoTargetCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3310,6 +3689,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoTargetOpen)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3322,6 +3702,7 @@ WDFEXPORT(WdfIoTargetOpen)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfIoTargetCloseForQueryRemove)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3332,6 +3713,7 @@ WDFEXPORT(WdfIoTargetCloseForQueryRemove)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfIoTargetClose)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3343,6 +3725,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoTargetStart)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3354,6 +3737,7 @@ _When_(Action == 3, _IRQL_requires_max_(DISPATCH_LEVEL)) _When_(Action == 0 || Action == 1 || Action == 2, _IRQL_requires_max_(PASSIVE_LEVEL)) WDFAPI VOID +STDCALL WDFEXPORT(WdfIoTargetStop)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3368,6 +3752,7 @@ _When_(Action == 2, _IRQL_requires_max_(DISPATCH_LEVEL)) _When_(Action == 0 || Action == 1, _IRQL_requires_max_(PASSIVE_LEVEL)) WDFAPI VOID +STDCALL WDFEXPORT(WdfIoTargetPurge)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3381,6 +3766,7 @@ WDFEXPORT(WdfIoTargetPurge)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDF_IO_TARGET_STATE +STDCALL WDFEXPORT(WdfIoTargetGetState)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3391,6 +3777,7 @@ WDFEXPORT(WdfIoTargetGetState)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFDEVICE +STDCALL WDFEXPORT(WdfIoTargetGetDevice)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3402,6 +3789,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoTargetQueryTargetProperty)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3422,6 +3810,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoTargetAllocAndQueryTargetProperty)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3442,6 +3831,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoTargetQueryForInterface)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3462,6 +3852,7 @@ WDFEXPORT(WdfIoTargetQueryForInterface)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI PDEVICE_OBJECT +STDCALL WDFEXPORT(WdfIoTargetWdmGetTargetDeviceObject)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3472,6 +3863,7 @@ WDFEXPORT(WdfIoTargetWdmGetTargetDeviceObject)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI PDEVICE_OBJECT +STDCALL WDFEXPORT(WdfIoTargetWdmGetTargetPhysicalDevice)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3482,6 +3874,7 @@ WDFEXPORT(WdfIoTargetWdmGetTargetPhysicalDevice)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI PFILE_OBJECT +STDCALL WDFEXPORT(WdfIoTargetWdmGetTargetFileObject)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3492,6 +3885,7 @@ WDFEXPORT(WdfIoTargetWdmGetTargetFileObject)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI HANDLE +STDCALL WDFEXPORT(WdfIoTargetWdmGetTargetFileHandle)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3503,6 +3897,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoTargetSendReadSynchronously)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3524,6 +3919,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoTargetFormatRequestForRead)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3543,6 +3939,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoTargetSendWriteSynchronously)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3564,6 +3961,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoTargetFormatRequestForWrite)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3583,6 +3981,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoTargetSendIoctlSynchronously)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3606,6 +4005,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoTargetFormatRequestForIoctl)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3629,6 +4029,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoTargetSendInternalIoctlSynchronously)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3652,6 +4053,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoTargetFormatRequestForInternalIoctl)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3675,6 +4077,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoTargetSendInternalIoctlOthersSynchronously)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3700,6 +4103,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoTargetFormatRequestForInternalIoctlOthers)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3726,6 +4130,7 @@ WDFEXPORT(WdfIoTargetFormatRequestForInternalIoctlOthers)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoTargetSelfAssignDefaultIoQueue)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3740,6 +4145,7 @@ _When_(PoolType == 1 || PoolType == 257, _IRQL_requires_max_(APC_LEVEL)) _When_(PoolType == 0 || PoolType == 256, _IRQL_requires_max_(DISPATCH_LEVEL)) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfMemoryCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3763,6 +4169,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfMemoryCreatePreallocated)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3780,6 +4187,7 @@ WDFEXPORT(WdfMemoryCreatePreallocated)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI PVOID +STDCALL WDFEXPORT(WdfMemoryGetBuffer)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3793,6 +4201,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfMemoryAssignBuffer)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3809,6 +4218,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfMemoryCopyToBuffer)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3827,6 +4237,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfMemoryCopyFromBuffer)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3846,6 +4257,7 @@ _When_(PoolType == 1 || PoolType == 257, _IRQL_requires_max_(APC_LEVEL)) _When_(PoolType == 0 || PoolType == 256, _IRQL_requires_max_(DISPATCH_LEVEL)) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfLookasideListCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3869,6 +4281,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfMemoryCreateFromLookaside)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3882,6 +4295,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceMiniportCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3901,6 +4315,7 @@ WDFEXPORT(WdfDeviceMiniportCreate)( WDFAPI VOID +STDCALL WDFEXPORT(WdfDriverMiniportUnload)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3922,6 +4337,7 @@ WDFEXPORT(WdfObjectGetTypedContextWorker)( WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfObjectAllocateContext)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3945,6 +4361,7 @@ WDFEXPORT(WdfObjectContextGetObject)( WDFAPI VOID +STDCALL WDFEXPORT(WdfObjectReferenceActual)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3960,6 +4377,7 @@ WDFEXPORT(WdfObjectReferenceActual)( WDFAPI VOID +STDCALL WDFEXPORT(WdfObjectDereferenceActual)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3977,6 +4395,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfObjectCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -3989,6 +4408,7 @@ WDFEXPORT(WdfObjectCreate)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfObjectDelete)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4000,6 +4420,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfObjectQuery)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4017,6 +4438,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI PWDFDEVICE_INIT +STDCALL WDFEXPORT(WdfPdoInitAllocate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4027,6 +4449,7 @@ WDFEXPORT(WdfPdoInitAllocate)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfPdoInitSetEventCallbacks)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4040,6 +4463,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfPdoInitAssignDeviceID)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4053,6 +4477,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfPdoInitAssignInstanceID)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4066,6 +4491,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfPdoInitAddHardwareID)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4079,6 +4505,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfPdoInitAddCompatibleID)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4092,6 +4519,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfPdoInitAssignContainerID)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4105,6 +4533,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfPdoInitAddDeviceText)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4121,6 +4550,7 @@ WDFEXPORT(WdfPdoInitAddDeviceText)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfPdoInitSetDefaultLocale)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4134,6 +4564,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfPdoInitAssignRawDevice)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4146,6 +4577,7 @@ WDFEXPORT(WdfPdoInitAssignRawDevice)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfPdoInitAllowForwardingRequestToParent)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4157,6 +4589,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfPdoMarkMissing)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4167,6 +4600,7 @@ WDFEXPORT(WdfPdoMarkMissing)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfPdoRequestEject)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4177,6 +4611,7 @@ WDFEXPORT(WdfPdoRequestEject)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFDEVICE +STDCALL WDFEXPORT(WdfPdoGetParent)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4188,6 +4623,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfPdoRetrieveIdentificationDescription)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4201,6 +4637,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfPdoRetrieveAddressDescription)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4214,6 +4651,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfPdoUpdateAddressDescription)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4227,6 +4665,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfPdoAddEjectionRelationsPhysicalDevice)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4239,6 +4678,7 @@ WDFEXPORT(WdfPdoAddEjectionRelationsPhysicalDevice)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfPdoRemoveEjectionRelationsPhysicalDevice)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4251,6 +4691,7 @@ WDFEXPORT(WdfPdoRemoveEjectionRelationsPhysicalDevice)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfPdoClearEjectionRelationsDevices)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4262,6 +4703,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfDeviceAddQueryInterface)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4275,6 +4717,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRegistryOpenKey)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4294,6 +4737,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRegistryCreateKey)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4316,6 +4760,7 @@ WDFEXPORT(WdfRegistryCreateKey)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfRegistryClose)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4326,6 +4771,7 @@ WDFEXPORT(WdfRegistryClose)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI HANDLE +STDCALL WDFEXPORT(WdfRegistryWdmGetHandle)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4337,6 +4783,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRegistryRemoveKey)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4348,6 +4795,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRegistryRemoveValue)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4361,6 +4809,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRegistryQueryValue)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4382,6 +4831,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRegistryQueryMemory)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4404,6 +4854,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRegistryQueryMultiString)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4421,6 +4872,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRegistryQueryUnicodeString)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4438,6 +4890,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRegistryQueryString)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4453,6 +4906,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRegistryQueryULong)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4468,6 +4922,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRegistryAssignValue)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4487,6 +4942,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRegistryAssignMemory)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4506,6 +4962,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRegistryAssignMultiString)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4521,6 +4978,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRegistryAssignUnicodeString)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4536,6 +4994,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRegistryAssignString)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4551,6 +5010,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRegistryAssignULong)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4566,6 +5026,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRequestCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4581,6 +5042,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRequestCreateFromIrp)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4597,6 +5059,7 @@ WDFEXPORT(WdfRequestCreateFromIrp)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRequestReuse)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4610,6 +5073,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRequestChangeTarget)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4622,6 +5086,7 @@ WDFEXPORT(WdfRequestChangeTarget)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfRequestFormatRequestUsingCurrentType)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4632,6 +5097,7 @@ WDFEXPORT(WdfRequestFormatRequestUsingCurrentType)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfRequestWdmFormatUsingStackLocation)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4645,6 +5111,7 @@ _IRQL_requires_max_(DISPATCH_LEVEL) _When_(Options->Flags & WDF_REQUEST_SEND_OPTION_SYNCHRONOUS == 0, _Must_inspect_result_) WDFAPI BOOLEAN +STDCALL WDFEXPORT(WdfRequestSend)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4660,6 +5127,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRequestGetStatus)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4670,6 +5138,7 @@ WDFEXPORT(WdfRequestGetStatus)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfRequestMarkCancelable)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4683,6 +5152,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRequestMarkCancelableEx)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4696,6 +5166,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRequestUnmarkCancelable)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4707,6 +5178,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI BOOLEAN +STDCALL WDFEXPORT(WdfRequestIsCanceled)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4717,6 +5189,7 @@ WDFEXPORT(WdfRequestIsCanceled)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI BOOLEAN +STDCALL WDFEXPORT(WdfRequestCancelSentRequest)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4728,6 +5201,7 @@ _Must_inspect_result_ _IRQL_requires_max_(APC_LEVEL) WDFAPI BOOLEAN +STDCALL WDFEXPORT(WdfRequestIsFrom32BitProcess)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4738,6 +5212,7 @@ WDFEXPORT(WdfRequestIsFrom32BitProcess)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfRequestSetCompletionRoutine)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4752,6 +5227,7 @@ WDFEXPORT(WdfRequestSetCompletionRoutine)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfRequestGetCompletionParams)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4765,6 +5241,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRequestAllocateTimer)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4775,6 +5252,7 @@ WDFEXPORT(WdfRequestAllocateTimer)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfRequestComplete)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4787,6 +5265,7 @@ WDFEXPORT(WdfRequestComplete)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfRequestCompleteWithPriorityBoost)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4801,6 +5280,7 @@ WDFEXPORT(WdfRequestCompleteWithPriorityBoost)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfRequestCompleteWithInformation)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4815,6 +5295,7 @@ WDFEXPORT(WdfRequestCompleteWithInformation)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfRequestGetParameters)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4828,6 +5309,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRequestRetrieveInputMemory)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4841,6 +5323,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRequestRetrieveOutputMemory)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4854,6 +5337,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRequestRetrieveInputBuffer)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4871,6 +5355,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRequestRetrieveOutputBuffer)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4888,6 +5373,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRequestRetrieveInputWdmMdl)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4901,6 +5387,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRequestRetrieveOutputWdmMdl)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4914,6 +5401,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRequestRetrieveUnsafeUserInputBuffer)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4931,6 +5419,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRequestRetrieveUnsafeUserOutputBuffer)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4947,6 +5436,7 @@ WDFEXPORT(WdfRequestRetrieveUnsafeUserOutputBuffer)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfRequestSetInformation)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4959,6 +5449,7 @@ WDFEXPORT(WdfRequestSetInformation)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI ULONG_PTR +STDCALL WDFEXPORT(WdfRequestGetInformation)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4969,6 +5460,7 @@ WDFEXPORT(WdfRequestGetInformation)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFFILEOBJECT +STDCALL WDFEXPORT(WdfRequestGetFileObject)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4980,6 +5472,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRequestProbeAndLockUserBufferForRead)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -4997,6 +5490,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRequestProbeAndLockUserBufferForWrite)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5013,6 +5507,7 @@ WDFEXPORT(WdfRequestProbeAndLockUserBufferForWrite)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI KPROCESSOR_MODE +STDCALL WDFEXPORT(WdfRequestGetRequestorMode)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5024,6 +5519,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRequestForwardToIoQueue)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5036,6 +5532,7 @@ WDFEXPORT(WdfRequestForwardToIoQueue)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFQUEUE +STDCALL WDFEXPORT(WdfRequestGetIoQueue)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5047,6 +5544,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRequestRequeue)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5057,6 +5555,7 @@ WDFEXPORT(WdfRequestRequeue)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfRequestStopAcknowledge)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5069,6 +5568,7 @@ WDFEXPORT(WdfRequestStopAcknowledge)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI PIRP +STDCALL WDFEXPORT(WdfRequestWdmGetIrp)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5079,6 +5579,7 @@ WDFEXPORT(WdfRequestWdmGetIrp)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI BOOLEAN +STDCALL WDFEXPORT(WdfRequestIsReserved)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5090,6 +5591,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfRequestForwardToParentDeviceIoQueue)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5104,6 +5606,7 @@ WDFEXPORT(WdfRequestForwardToParentDeviceIoQueue)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfIoResourceRequirementsListSetSlotNumber)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5116,6 +5619,7 @@ WDFEXPORT(WdfIoResourceRequirementsListSetSlotNumber)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfIoResourceRequirementsListSetInterfaceType)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5130,6 +5634,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoResourceRequirementsListAppendIoResList)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5143,6 +5648,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoResourceRequirementsListInsertIoResList)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5157,6 +5663,7 @@ WDFEXPORT(WdfIoResourceRequirementsListInsertIoResList)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI ULONG +STDCALL WDFEXPORT(WdfIoResourceRequirementsListGetCount)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5167,6 +5674,7 @@ WDFEXPORT(WdfIoResourceRequirementsListGetCount)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFIORESLIST +STDCALL WDFEXPORT(WdfIoResourceRequirementsListGetIoResList)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5179,6 +5687,7 @@ WDFEXPORT(WdfIoResourceRequirementsListGetIoResList)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfIoResourceRequirementsListRemove)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5191,6 +5700,7 @@ WDFEXPORT(WdfIoResourceRequirementsListRemove)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfIoResourceRequirementsListRemoveByIoResList)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5204,6 +5714,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoResourceListCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5219,6 +5730,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoResourceListAppendDescriptor)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5232,6 +5744,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfIoResourceListInsertDescriptor)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5246,6 +5759,7 @@ WDFEXPORT(WdfIoResourceListInsertDescriptor)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfIoResourceListUpdateDescriptor)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5260,6 +5774,7 @@ WDFEXPORT(WdfIoResourceListUpdateDescriptor)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI ULONG +STDCALL WDFEXPORT(WdfIoResourceListGetCount)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5270,6 +5785,7 @@ WDFEXPORT(WdfIoResourceListGetCount)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI PIO_RESOURCE_DESCRIPTOR +STDCALL WDFEXPORT(WdfIoResourceListGetDescriptor)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5282,6 +5798,7 @@ WDFEXPORT(WdfIoResourceListGetDescriptor)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfIoResourceListRemove)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5294,6 +5811,7 @@ WDFEXPORT(WdfIoResourceListRemove)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfIoResourceListRemoveByDescriptor)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5307,6 +5825,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfCmResourceListAppendDescriptor)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5320,6 +5839,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfCmResourceListInsertDescriptor)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5334,6 +5854,7 @@ WDFEXPORT(WdfCmResourceListInsertDescriptor)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI ULONG +STDCALL WDFEXPORT(WdfCmResourceListGetCount)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5344,6 +5865,7 @@ WDFEXPORT(WdfCmResourceListGetCount)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI PCM_PARTIAL_RESOURCE_DESCRIPTOR +STDCALL WDFEXPORT(WdfCmResourceListGetDescriptor)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5356,6 +5878,7 @@ WDFEXPORT(WdfCmResourceListGetDescriptor)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfCmResourceListRemove)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5368,6 +5891,7 @@ WDFEXPORT(WdfCmResourceListRemove)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfCmResourceListRemoveByDescriptor)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5381,6 +5905,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfStringCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5395,6 +5920,7 @@ WDFEXPORT(WdfStringCreate)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfStringGetUnicodeString)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5407,6 +5933,7 @@ WDFEXPORT(WdfStringGetUnicodeString)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfObjectAcquireLock)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5419,6 +5946,7 @@ WDFEXPORT(WdfObjectAcquireLock)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfObjectReleaseLock)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5432,6 +5960,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfWaitLockCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5449,6 +5978,7 @@ _When_(Timeout != NULL && return == STATUS_SUCCESS, _Acquires_lock_(Lock)) _When_(Timeout != NULL, _Must_inspect_result_) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfWaitLockAcquire)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5462,6 +5992,7 @@ WDFEXPORT(WdfWaitLockAcquire)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfWaitLockRelease)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5475,6 +6006,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfSpinLockCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5488,6 +6020,7 @@ _IRQL_requires_max_(DISPATCH_LEVEL) _IRQL_raises_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfSpinLockAcquire)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5502,6 +6035,7 @@ _IRQL_requires_max_(DISPATCH_LEVEL) _IRQL_requires_min_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfSpinLockRelease)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5516,6 +6050,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfTimerCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5530,6 +6065,7 @@ WDFEXPORT(WdfTimerCreate)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI BOOLEAN +STDCALL WDFEXPORT(WdfTimerStart)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5543,6 +6079,7 @@ _When_(Wait == __true, _IRQL_requires_max_(PASSIVE_LEVEL)) _When_(Wait == __false, _IRQL_requires_max_(DISPATCH_LEVEL)) WDFAPI BOOLEAN +STDCALL WDFEXPORT(WdfTimerStop)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5555,6 +6092,7 @@ WDFEXPORT(WdfTimerStop)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFOBJECT +STDCALL WDFEXPORT(WdfTimerGetParentObject)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5566,6 +6104,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetDeviceCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5581,6 +6120,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetDeviceCreateWithParameters)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5598,6 +6138,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetDeviceRetrieveInformation)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5610,6 +6151,7 @@ WDFEXPORT(WdfUsbTargetDeviceRetrieveInformation)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfUsbTargetDeviceGetDeviceDescriptor)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5623,6 +6165,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetDeviceRetrieveConfigDescriptor)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5638,6 +6181,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetDeviceQueryString)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5661,6 +6205,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetDeviceAllocAndQueryString)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5682,6 +6227,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetDeviceFormatRequestForString)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5702,6 +6248,7 @@ WDFEXPORT(WdfUsbTargetDeviceFormatRequestForString)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI UCHAR +STDCALL WDFEXPORT(WdfUsbTargetDeviceGetNumInterfaces)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5713,6 +6260,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetDeviceSelectConfig)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5727,6 +6275,7 @@ WDFEXPORT(WdfUsbTargetDeviceSelectConfig)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI USBD_CONFIGURATION_HANDLE +STDCALL WDFEXPORT(WdfUsbTargetDeviceWdmGetConfigurationHandle)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5738,6 +6287,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetDeviceRetrieveCurrentFrameNumber)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5751,6 +6301,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetDeviceSendControlTransferSynchronously)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5772,6 +6323,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetDeviceFormatRequestForControlTransfer)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5791,6 +6343,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetDeviceIsConnectedSynchronous)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5802,6 +6355,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetDeviceResetPortSynchronously)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5813,6 +6367,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetDeviceCyclePortSynchronously)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5824,6 +6379,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetDeviceFormatRequestForCyclePort)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5837,6 +6393,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetDeviceSendUrbSynchronously)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5854,6 +6411,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetDeviceFormatRequestForUrb)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5871,6 +6429,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetDeviceQueryUsbCapability)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5893,6 +6452,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetDeviceCreateUrb)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5910,6 +6470,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetDeviceCreateIsochUrb)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5928,6 +6489,7 @@ WDFEXPORT(WdfUsbTargetDeviceCreateIsochUrb)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfUsbTargetPipeGetInformation)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5940,6 +6502,7 @@ WDFEXPORT(WdfUsbTargetPipeGetInformation)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI BOOLEAN +STDCALL WDFEXPORT(WdfUsbTargetPipeIsInEndpoint)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5950,6 +6513,7 @@ WDFEXPORT(WdfUsbTargetPipeIsInEndpoint)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI BOOLEAN +STDCALL WDFEXPORT(WdfUsbTargetPipeIsOutEndpoint)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5960,6 +6524,7 @@ WDFEXPORT(WdfUsbTargetPipeIsOutEndpoint)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDF_USB_PIPE_TYPE +STDCALL WDFEXPORT(WdfUsbTargetPipeGetType)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5970,6 +6535,7 @@ WDFEXPORT(WdfUsbTargetPipeGetType)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfUsbTargetPipeSetNoMaximumPacketSizeCheck)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -5981,6 +6547,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetPipeWriteSynchronously)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6000,6 +6567,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetPipeFormatRequestForWrite)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6017,6 +6585,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetPipeReadSynchronously)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6036,6 +6605,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetPipeFormatRequestForRead)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6053,6 +6623,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetPipeConfigContinuousReader)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6066,6 +6637,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetPipeAbortSynchronously)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6081,6 +6653,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetPipeFormatRequestForAbort)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6094,6 +6667,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetPipeResetSynchronously)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6109,6 +6683,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetPipeFormatRequestForReset)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6122,6 +6697,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetPipeSendUrbSynchronously)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6139,6 +6715,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbTargetPipeFormatRequestForUrb)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6155,6 +6732,7 @@ WDFEXPORT(WdfUsbTargetPipeFormatRequestForUrb)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI BYTE +STDCALL WDFEXPORT(WdfUsbInterfaceGetInterfaceNumber)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6165,6 +6743,7 @@ WDFEXPORT(WdfUsbInterfaceGetInterfaceNumber)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI BYTE +STDCALL WDFEXPORT(WdfUsbInterfaceGetNumEndpoints)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6177,6 +6756,7 @@ WDFEXPORT(WdfUsbInterfaceGetNumEndpoints)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfUsbInterfaceGetDescriptor)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6191,6 +6771,7 @@ WDFEXPORT(WdfUsbInterfaceGetDescriptor)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI BYTE +STDCALL WDFEXPORT(WdfUsbInterfaceGetNumSettings)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6202,6 +6783,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfUsbInterfaceSelectSetting)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6216,6 +6798,7 @@ WDFEXPORT(WdfUsbInterfaceSelectSetting)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfUsbInterfaceGetEndpointInformation)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6232,6 +6815,7 @@ WDFEXPORT(WdfUsbInterfaceGetEndpointInformation)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFUSBINTERFACE +STDCALL WDFEXPORT(WdfUsbTargetDeviceGetInterface)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6244,6 +6828,7 @@ WDFEXPORT(WdfUsbTargetDeviceGetInterface)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI BYTE +STDCALL WDFEXPORT(WdfUsbInterfaceGetConfiguredSettingIndex)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6254,6 +6839,7 @@ WDFEXPORT(WdfUsbInterfaceGetConfiguredSettingIndex)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI BYTE +STDCALL WDFEXPORT(WdfUsbInterfaceGetNumConfiguredPipes)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6264,6 +6850,7 @@ WDFEXPORT(WdfUsbInterfaceGetNumConfiguredPipes)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFUSBPIPE +STDCALL WDFEXPORT(WdfUsbInterfaceGetConfiguredPipe)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6278,6 +6865,7 @@ WDFEXPORT(WdfUsbInterfaceGetConfiguredPipe)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI USBD_PIPE_HANDLE +STDCALL WDFEXPORT(WdfUsbTargetPipeWdmGetPipeHandle)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6287,6 +6875,7 @@ WDFEXPORT(WdfUsbTargetPipeWdmGetPipeHandle)( WDFAPI VOID +STDCALL WDFEXPORT(WdfVerifierDbgBreakPoint)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals @@ -6294,6 +6883,7 @@ WDFEXPORT(WdfVerifierDbgBreakPoint)( WDFAPI VOID +STDCALL WDFEXPORT(WdfVerifierKeBugCheck)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6311,6 +6901,7 @@ WDFEXPORT(WdfVerifierKeBugCheck)( WDFAPI PVOID +STDCALL WDFEXPORT(WdfGetTriageInfo)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals @@ -6320,6 +6911,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfWmiProviderCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6336,6 +6928,7 @@ WDFEXPORT(WdfWmiProviderCreate)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFDEVICE +STDCALL WDFEXPORT(WdfWmiProviderGetDevice)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6346,6 +6939,7 @@ WDFEXPORT(WdfWmiProviderGetDevice)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI BOOLEAN +STDCALL WDFEXPORT(WdfWmiProviderIsEnabled)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6358,6 +6952,7 @@ WDFEXPORT(WdfWmiProviderIsEnabled)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI ULONGLONG +STDCALL WDFEXPORT(WdfWmiProviderGetTracingHandle)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6369,6 +6964,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfWmiInstanceCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6386,6 +6982,7 @@ _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfWmiInstanceRegister)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6396,6 +6993,7 @@ WDFEXPORT(WdfWmiInstanceRegister)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfWmiInstanceDeregister)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6406,6 +7004,7 @@ WDFEXPORT(WdfWmiInstanceDeregister)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFDEVICE +STDCALL WDFEXPORT(WdfWmiInstanceGetDevice)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6416,6 +7015,7 @@ WDFEXPORT(WdfWmiInstanceGetDevice)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFWMIPROVIDER +STDCALL WDFEXPORT(WdfWmiInstanceGetProvider)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6427,6 +7027,7 @@ _Must_inspect_result_ _IRQL_requires_max_(APC_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfWmiInstanceFireEvent)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6442,6 +7043,7 @@ _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS +STDCALL WDFEXPORT(WdfWorkItemCreate)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6456,6 +7058,7 @@ WDFEXPORT(WdfWorkItemCreate)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfWorkItemEnqueue)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6466,6 +7069,7 @@ WDFEXPORT(WdfWorkItemEnqueue)( _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI WDFOBJECT +STDCALL WDFEXPORT(WdfWorkItemGetParentObject)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6476,6 +7080,7 @@ WDFEXPORT(WdfWorkItemGetParentObject)( _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI VOID +STDCALL WDFEXPORT(WdfWorkItemFlush)( _In_ PWDF_DRIVER_GLOBALS DriverGlobals, @@ -6511,10 +7116,15 @@ WDFVERSION WdfVersion = { WDFEXPORT(WdfCollectionGetItem), WDFEXPORT(WdfCollectionGetFirstItem), WDFEXPORT(WdfCollectionGetLastItem), - WDFEXPORT(WdfCommonBufferCreate), - WDFEXPORT(WdfCommonBufferGetAlignedVirtualAddress), - WDFEXPORT(WdfCommonBufferGetAlignedLogicalAddress), - WDFEXPORT(WdfCommonBufferGetLength), + // WDFEXPORT(WdfCommonBufferCreate), + // WDFEXPORT(WdfCommonBufferGetAlignedVirtualAddress), + // WDFEXPORT(WdfCommonBufferGetAlignedLogicalAddress), + // WDFEXPORT(WdfCommonBufferGetLength), + WdfApiNotImplemented, + WdfApiNotImplemented, + WdfApiNotImplemented, + WdfApiNotImplemented, + WDFEXPORT(WdfControlDeviceInitAllocate), WDFEXPORT(WdfControlDeviceInitSetShutdownNotification), WDFEXPORT(WdfControlFinishInitializing), @@ -6584,23 +7194,41 @@ WDFVERSION WdfVersion = { WDFEXPORT(WdfDeviceEnqueueRequest), WDFEXPORT(WdfDeviceGetDefaultQueue), WDFEXPORT(WdfDeviceConfigureRequestDispatching), - WDFEXPORT(WdfDmaEnablerCreate), - WDFEXPORT(WdfDmaEnablerGetMaximumLength), - WDFEXPORT(WdfDmaEnablerGetMaximumScatterGatherElements), - WDFEXPORT(WdfDmaEnablerSetMaximumScatterGatherElements), - WDFEXPORT(WdfDmaTransactionCreate), - WDFEXPORT(WdfDmaTransactionInitialize), - WDFEXPORT(WdfDmaTransactionInitializeUsingRequest), - WDFEXPORT(WdfDmaTransactionExecute), - WDFEXPORT(WdfDmaTransactionRelease), - WDFEXPORT(WdfDmaTransactionDmaCompleted), - WDFEXPORT(WdfDmaTransactionDmaCompletedWithLength), - WDFEXPORT(WdfDmaTransactionDmaCompletedFinal), - WDFEXPORT(WdfDmaTransactionGetBytesTransferred), - WDFEXPORT(WdfDmaTransactionSetMaximumLength), - WDFEXPORT(WdfDmaTransactionGetRequest), - WDFEXPORT(WdfDmaTransactionGetCurrentDmaTransferLength), - WDFEXPORT(WdfDmaTransactionGetDevice), + // WDFEXPORT(WdfDmaEnablerCreate), + // WDFEXPORT(WdfDmaEnablerGetMaximumLength), + // WDFEXPORT(WdfDmaEnablerGetMaximumScatterGatherElements), + // WDFEXPORT(WdfDmaEnablerSetMaximumScatterGatherElements), + // WDFEXPORT(WdfDmaTransactionCreate), + // WDFEXPORT(WdfDmaTransactionInitialize), + // WDFEXPORT(WdfDmaTransactionInitializeUsingRequest), + // WDFEXPORT(WdfDmaTransactionExecute), + // WDFEXPORT(WdfDmaTransactionRelease), + // WDFEXPORT(WdfDmaTransactionDmaCompleted), + // WDFEXPORT(WdfDmaTransactionDmaCompletedWithLength), + // WDFEXPORT(WdfDmaTransactionDmaCompletedFinal), + // WDFEXPORT(WdfDmaTransactionGetBytesTransferred), + // WDFEXPORT(WdfDmaTransactionSetMaximumLength), + // WDFEXPORT(WdfDmaTransactionGetRequest), + // WDFEXPORT(WdfDmaTransactionGetCurrentDmaTransferLength), + // WDFEXPORT(WdfDmaTransactionGetDevice), + WdfApiNotImplemented, + WdfApiNotImplemented, + WdfApiNotImplemented, + WdfApiNotImplemented, + WdfApiNotImplemented, + WdfApiNotImplemented, + WdfApiNotImplemented, + WdfApiNotImplemented, + WdfApiNotImplemented, + WdfApiNotImplemented, + WdfApiNotImplemented, + WdfApiNotImplemented, + WdfApiNotImplemented, + WdfApiNotImplemented, + WdfApiNotImplemented, + WdfApiNotImplemented, + WdfApiNotImplemented, + WDFEXPORT(WdfDpcCreate), WDFEXPORT(WdfDpcEnqueue), WDFEXPORT(WdfDpcCancel), @@ -6631,17 +7259,29 @@ WDFVERSION WdfVersion = { WDFEXPORT(WdfFileObjectGetFlags), WDFEXPORT(WdfFileObjectGetDevice), WDFEXPORT(WdfFileObjectWdmGetFileObject), - WDFEXPORT(WdfInterruptCreate), - WDFEXPORT(WdfInterruptQueueDpcForIsr), - WDFEXPORT(WdfInterruptSynchronize), - WDFEXPORT(WdfInterruptAcquireLock), - WDFEXPORT(WdfInterruptReleaseLock), - WDFEXPORT(WdfInterruptEnable), - WDFEXPORT(WdfInterruptDisable), - WDFEXPORT(WdfInterruptWdmGetInterrupt), - WDFEXPORT(WdfInterruptGetInfo), - WDFEXPORT(WdfInterruptSetPolicy), - WDFEXPORT(WdfInterruptGetDevice), + // WDFEXPORT(WdfInterruptCreate), ... 12381 lines suppressed ...
4 years, 1 month
1
0
0
0
[reactos] 03/04: [WDF] Add Windows Driver Framework files Takern from Microsoft GitHub repo: https://github.com/microsoft/Windows-Driver-Frameworks/commit/d9c6040fe9fa787964ea99c48a8b35cf1aa978f7
by Victor Perevertkin
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8a978a179f3edfef58ade…
commit 8a978a179f3edfef58ade4287b5bcd6de734dc55 Author: Victor Perevertkin <victor.perevertkin(a)reactos.org> AuthorDate: Thu Sep 24 23:51:15 2020 +0300 Commit: Victor Perevertkin <victor.perevertkin(a)reactos.org> CommitDate: Tue Nov 3 00:06:26 2020 +0300 [WDF] Add Windows Driver Framework files Takern from Microsoft GitHub repo:
https://github.com/microsoft/Windows-Driver-Frameworks/commit/d9c6040fe9fa7…
Licensed under MIT --- sdk/lib/drivers/wdf/kmdf/inc/private/fx.hpp | 208 + sdk/lib/drivers/wdf/kmdf/inc/private/fxbugcheck.h | 91 + .../wdf/kmdf/inc/private/fxcommonbuffer.hpp | 161 + .../wdf/kmdf/inc/private/fxdmatransaction.hpp | 1559 ++++ .../kmdf/inc/private/fxdmatransactioncallbacks.hpp | 168 + sdk/lib/drivers/wdf/kmdf/inc/private/fxdpc.hpp | 201 + sdk/lib/drivers/wdf/kmdf/inc/private/fxdynamics.h | 6943 ++++++++++++++++ .../wdf/kmdf/inc/private/fxdynamicswrapper.h | 18 + .../drivers/wdf/kmdf/inc/private/fxlibrarycommon.h | 87 + .../drivers/wdf/kmdf/inc/private/fxprobeandlock.h | 38 + sdk/lib/drivers/wdf/kmdf/inc/private/ifxmemory.hpp | 161 + .../drivers/wdf/kmdf/inc/private/vffxdynamics.h | 6484 +++++++++++++++ sdk/lib/drivers/wdf/kmdf/inc/private/wdf10.h | 2173 +++++ sdk/lib/drivers/wdf/kmdf/inc/private/wdf11.h | 2203 +++++ sdk/lib/drivers/wdf/kmdf/inc/private/wdf111.h | 2896 +++++++ sdk/lib/drivers/wdf/kmdf/inc/private/wdf113.h | 3064 +++++++ sdk/lib/drivers/wdf/kmdf/inc/private/wdf115.h | 3079 +++++++ sdk/lib/drivers/wdf/kmdf/inc/private/wdf15.h | 2209 +++++ sdk/lib/drivers/wdf/kmdf/inc/private/wdf17.h | 2228 ++++++ sdk/lib/drivers/wdf/kmdf/inc/private/wdf19.h | 2410 ++++++ sdk/lib/drivers/wdf/kmdf/src/core/corepriv.hpp | 32 + .../wdf/kmdf/src/core/fxbugcheckcallback.cpp | 1219 +++ sdk/lib/drivers/wdf/kmdf/src/core/fxchildlist.cpp | 3268 ++++++++ .../drivers/wdf/kmdf/src/core/fxchildlistapi.cpp | 804 ++ sdk/lib/drivers/wdf/kmdf/src/core/fxcorepch.hpp | 29 + .../drivers/wdf/kmdf/src/core/fxdevicefdoapi.cpp | 464 ++ .../drivers/wdf/kmdf/src/core/fxdevicepdoapi.cpp | 491 ++ sdk/lib/drivers/wdf/kmdf/src/core/fxdpc.cpp | 412 + sdk/lib/drivers/wdf/kmdf/src/core/fxdpcapi.cpp | 289 + .../drivers/wdf/kmdf/src/core/fxsystemthread.cpp | 677 ++ sdk/lib/drivers/wdf/kmdf/src/core/tracing.cpp | 530 ++ .../wdf/kmdf/src/dma/base/fxcommonbuffer.cpp | 173 + .../wdf/kmdf/src/dma/base/fxcommonbufferapi.cpp | 303 + .../drivers/wdf/kmdf/src/dma/base/fxdmaenabler.cpp | 1125 +++ .../wdf/kmdf/src/dma/base/fxdmaenablerapi.cpp | 516 ++ sdk/lib/drivers/wdf/kmdf/src/dma/base/fxdmapch.hpp | 7 + .../wdf/kmdf/src/dma/base/fxdmatransaction.cpp | 2533 ++++++ .../wdf/kmdf/src/dma/base/fxdmatransactionapi.cpp | 1251 +++ .../wdf/kmdf/src/dynamic/version/version.cpp | 760 ++ .../fxobject/fxobjectinfokm.cpp | 99 + .../fxtosharedinterface/fxobject/fxobjectpch.hpp | 29 + .../fxtosharedinterface/fxobject/objectpriv.hpp | 33 + .../wdf/kmdf/src/irphandlers/wmi/fxwmiapi.cpp | 439 + .../wdf/kmdf/src/irphandlers/wmi/fxwmiinstance.cpp | 684 ++ .../kmdf/src/irphandlers/wmi/fxwmiirphandler.cpp | 1960 +++++ .../wdf/kmdf/src/irphandlers/wmi/fxwmipch.hpp | 32 + .../wdf/kmdf/src/irphandlers/wmi/fxwmiprovider.cpp | 563 ++ .../wdf/kmdf/src/librarycommon/fxlibrarycommon.cpp | 717 ++ .../wdf/kmdf/src/support/fxqueryinterface.cpp | 182 + .../wdf/kmdf/src/support/fxqueryinterfaceapi.cpp | 222 + .../wdf/kmdf/src/support/fxrelateddevice.cpp | 44 + .../wdf/kmdf/src/support/fxrelateddevicelist.cpp | 150 + .../drivers/wdf/kmdf/src/support/fxsupportpch.hpp | 32 + .../drivers/wdf/kmdf/src/support/probeandlock.c | 79 + sdk/lib/drivers/wdf/shared/core/coreprivshared.hpp | 388 + sdk/lib/drivers/wdf/shared/core/fxcxdeviceinit.cpp | 78 + .../drivers/wdf/shared/core/fxcxdeviceinitapi.cpp | 501 ++ sdk/lib/drivers/wdf/shared/core/fxdevice.cpp | 2177 +++++ sdk/lib/drivers/wdf/shared/core/fxdeviceapi.cpp | 2702 +++++++ sdk/lib/drivers/wdf/shared/core/fxdevicebase.cpp | 417 + .../drivers/wdf/shared/core/fxdevicecontrolapi.cpp | 66 + sdk/lib/drivers/wdf/shared/core/fxdeviceinit.cpp | 323 + .../drivers/wdf/shared/core/fxdeviceinitapi.cpp | 2711 +++++++ sdk/lib/drivers/wdf/shared/core/fxdisposelist.cpp | 305 + sdk/lib/drivers/wdf/shared/core/fxdriver.cpp | 656 ++ sdk/lib/drivers/wdf/shared/core/fxdriverapi.cpp | 522 ++ sdk/lib/drivers/wdf/shared/core/fxfileobject.cpp | 565 ++ .../drivers/wdf/shared/core/fxfileobjectapi.cpp | 181 + sdk/lib/drivers/wdf/shared/core/fxirpqueue.cpp | 964 +++ sdk/lib/drivers/wdf/shared/core/fxlock.cpp | 59 + .../drivers/wdf/shared/core/fxlookasidelist.cpp | 217 + .../drivers/wdf/shared/core/fxlookasidelistapi.cpp | 300 + sdk/lib/drivers/wdf/shared/core/fxmemorybuffer.cpp | 181 + .../drivers/wdf/shared/core/fxmemorybufferapi.cpp | 364 + .../shared/core/fxmemorybufferfromlookaside.cpp | 298 + .../wdf/shared/core/fxmemorybufferfrompool.cpp | 160 + .../wdf/shared/core/fxmemorybufferpreallocated.cpp | 156 + .../shared/core/fxmemorybufferpreallocatedapi.cpp | 177 + sdk/lib/drivers/wdf/shared/core/fxmemoryobject.cpp | 319 + .../wdf/shared/core/fxpagedlookasidelist.cpp | 310 + sdk/lib/drivers/wdf/shared/core/fxrequest.cpp | 3217 ++++++++ sdk/lib/drivers/wdf/shared/core/fxrequestapi.cpp | 3766 +++++++++ sdk/lib/drivers/wdf/shared/core/fxrequestbase.cpp | 832 ++ .../drivers/wdf/shared/core/fxrequestcontext.cpp | 195 + .../drivers/wdf/shared/core/fxrequestmemory.cpp | 324 + .../wdf/shared/core/fxrequestoutputbuffer.cpp | 327 + .../wdf/shared/core/fxrequestsystembuffer.cpp | 317 + sdk/lib/drivers/wdf/shared/core/fxsyncrequest.cpp | 191 + .../drivers/wdf/shared/core/fxsystemworkitem.cpp | 379 + sdk/lib/drivers/wdf/shared/core/fxtimer.cpp | 779 ++ sdk/lib/drivers/wdf/shared/core/fxtimerapi.cpp | 335 + sdk/lib/drivers/wdf/shared/core/fxworkitem.cpp | 561 ++ sdk/lib/drivers/wdf/shared/core/fxworkitemapi.cpp | 264 + .../drivers/wdf/shared/core/km/fxdeviceapikm.cpp | 959 +++ .../drivers/wdf/shared/core/km/fxdevicebasekm.cpp | 101 + .../drivers/wdf/shared/core/km/fxdeviceinitkm.cpp | 85 + sdk/lib/drivers/wdf/shared/core/km/fxdevicekm.cpp | 1037 +++ .../drivers/wdf/shared/core/km/fxdriverapikm.cpp | 263 + sdk/lib/drivers/wdf/shared/core/km/fxdriverkm.cpp | 170 + .../wdf/shared/core/km/fxfileobjectapikm.cpp | 81 + .../drivers/wdf/shared/core/km/fxfileobjectkm.cpp | 97 + .../wdf/shared/core/km/fxnpagedlookasidelistkm.cpp | 268 + sdk/lib/drivers/wdf/shared/core/km/fxrequestkm.cpp | 906 +++ .../wdf/shared/core/km/fxrequestsystembufferkm.cpp | 93 + .../drivers/wdf/shared/core/um/fxdeviceapium.cpp | 1462 ++++ .../drivers/wdf/shared/core/um/fxdevicebaseum.cpp | 81 + .../wdf/shared/core/um/fxdeviceinitapium.cpp | 53 + .../drivers/wdf/shared/core/um/fxdeviceinitum.cpp | 87 + sdk/lib/drivers/wdf/shared/core/um/fxdeviceum.cpp | 1972 +++++ .../drivers/wdf/shared/core/um/fxdriverapium.cpp | 244 + sdk/lib/drivers/wdf/shared/core/um/fxdriverum.cpp | 352 + .../wdf/shared/core/um/fxfileobjectapium.cpp | 180 + .../drivers/wdf/shared/core/um/fxfileobjectum.cpp | 119 + sdk/lib/drivers/wdf/shared/core/um/fxirpum.cpp | 1814 +++++ .../wdf/shared/core/um/fxmessagedispatchum.cpp | 386 + .../wdf/shared/core/um/fxnpagedlookasidelistum.cpp | 149 + .../drivers/wdf/shared/core/um/fxrequestapium.cpp | 449 ++ .../wdf/shared/core/um/fxrequestsystembufferum.cpp | 72 + sdk/lib/drivers/wdf/shared/core/um/fxrequestum.cpp | 264 + sdk/lib/drivers/wdf/shared/core/verifierapi.cpp | 269 + .../wdf/shared/enhancedverif/km/vfprivkm.hpp | 357 + .../wdf/shared/enhancedverif/km/vfwdfdynamics.cpp | 8313 +++++++++++++++++++ .../wdf/shared/enhancedverif/um/vfprivum.hpp | 325 + .../wdf/shared/enhancedverif/um/vfwdfdynamics.cpp | 5002 ++++++++++++ .../drivers/wdf/shared/enhancedverif/verifier.cpp | 650 ++ .../wdf/shared/enhancedverif/vfeventhooks.cpp | 1020 +++ .../wdf/shared/enhancedverif/vfeventhooks.hpp | 50 + .../drivers/wdf/shared/enhancedverif/vfpriv.hpp | 138 + .../wdf/shared/inc/primitives/common/dbgmacros.h | 63 + .../drivers/wdf/shared/inc/primitives/common/mx.h | 42 + .../shared/inc/primitives/common/mxdeviceobject.h | 152 + .../shared/inc/primitives/common/mxdriverobject.h | 107 + .../wdf/shared/inc/primitives/common/mxevent.h | 143 + .../shared/inc/primitives/common/mxfileobject.h | 97 + .../wdf/shared/inc/primitives/common/mxgeneral.h | 606 ++ .../wdf/shared/inc/primitives/common/mxlock.h | 109 + .../wdf/shared/inc/primitives/common/mxmacros.h | 29 + .../wdf/shared/inc/primitives/common/mxmemory.h | 49 + .../wdf/shared/inc/primitives/common/mxpagedlock.h | 103 + .../wdf/shared/inc/primitives/common/mxtimer.h | 95 + .../wdf/shared/inc/primitives/common/mxworkitem.h | 118 + .../shared/inc/primitives/km/mxdeviceobjectkm.h | 189 + .../shared/inc/primitives/km/mxdriverobjectkm.h | 72 + .../wdf/shared/inc/primitives/km/mxeventkm.h | 148 + .../wdf/shared/inc/primitives/km/mxfileobjectkm.h | 82 + .../wdf/shared/inc/primitives/km/mxgeneralkm.h | 778 ++ .../drivers/wdf/shared/inc/primitives/km/mxkm.h | 49 + .../wdf/shared/inc/primitives/km/mxlockkm.h | 115 + .../wdf/shared/inc/primitives/km/mxmemorykm.h | 47 + .../wdf/shared/inc/primitives/km/mxpagedlockkm.h | 137 + .../wdf/shared/inc/primitives/km/mxtimerkm.h | 291 + .../wdf/shared/inc/primitives/km/mxworkitemkm.h | 109 + .../wdf/shared/inc/primitives/um/errtostatus.h | 2036 +++++ .../shared/inc/primitives/um/mxdeviceobjectum.h | 18 + .../shared/inc/primitives/um/mxdriverobjectum.h | 24 + .../wdf/shared/inc/primitives/um/mxeventum.h | 289 + .../wdf/shared/inc/primitives/um/mxfileobjectum.h | 89 + .../wdf/shared/inc/primitives/um/mxgeneralum.h | 1078 +++ .../wdf/shared/inc/primitives/um/mxlockum.h | 185 + .../wdf/shared/inc/primitives/um/mxmemoryum.h | 58 + .../wdf/shared/inc/primitives/um/mxpagedlockum.h | 129 + .../wdf/shared/inc/primitives/um/mxtimerum.h | 479 ++ .../drivers/wdf/shared/inc/primitives/um/mxum.h | 248 + .../wdf/shared/inc/primitives/um/mxworkitemum.h | 294 + .../wdf/shared/inc/private/common/dbgtrace.h | 99 + .../shared/inc/private/common/fxautoregistry.hpp | 46 + .../wdf/shared/inc/private/common/fxautostring.hpp | 53 + .../wdf/shared/inc/private/common/fxcallback.hpp | 136 + .../shared/inc/private/common/fxcallbacklock.hpp | 648 ++ .../inc/private/common/fxcallbackmutexlock.hpp | 173 + .../inc/private/common/fxcallbackspinlock.hpp | 171 + .../wdf/shared/inc/private/common/fxchildlist.hpp | 816 ++ .../wdf/shared/inc/private/common/fxcollection.hpp | 227 + .../shared/inc/private/common/fxcxdeviceinfo.hpp | 31 + .../shared/inc/private/common/fxcxdeviceinit.hpp | 95 + .../inc/private/common/fxdefaultirphandler.hpp | 22 + .../wdf/shared/inc/private/common/fxdevice.hpp | 2297 ++++++ .../inc/private/common/fxdevicecallbacks.hpp | 63 + .../wdf/shared/inc/private/common/fxdeviceinit.hpp | 330 + .../inc/private/common/fxdeviceinitshared.hpp | 65 + .../inc/private/common/fxdeviceinterface.hpp | 98 + .../private/common/fxdevicepwrreqstatemachine.hpp | 153 + .../wdf/shared/inc/private/common/fxdevicetext.hpp | 85 + .../inc/private/common/fxdevicetomxinterface.hpp | 59 + .../shared/inc/private/common/fxdisposelist.hpp | 142 + .../wdf/shared/inc/private/common/fxdriver.hpp | 422 + .../inc/private/common/fxdrivercallbacks.hpp | 107 + .../wdf/shared/inc/private/common/fxeventqueue.hpp | 381 + .../wdf/shared/inc/private/common/fxfileobject.hpp | 255 + .../inc/private/common/fxfileobjectcallbacks.hpp | 200 + .../wdf/shared/inc/private/common/fxforward.hpp | 139 + .../wdf/shared/inc/private/common/fxglobals.h | 1101 +++ .../wdf/shared/inc/private/common/fxhandle.h | 482 ++ .../drivers/wdf/shared/inc/private/common/fxifr.h | 123 + .../wdf/shared/inc/private/common/fxifrkm.h | 83 + .../wdf/shared/inc/private/common/fxinterrupt.hpp | 869 ++ .../wdf/shared/inc/private/common/fxioqueue.hpp | 1714 ++++ .../inc/private/common/fxioqueuecallbacks.hpp | 416 + .../wdf/shared/inc/private/common/fxiotarget.hpp | 966 +++ .../shared/inc/private/common/fxiotargetremote.hpp | 440 + .../shared/inc/private/common/fxiotargetself.hpp | 107 + .../wdf/shared/inc/private/common/fxirp.hpp | 844 ++ .../private/common/fxirpdynamicdispatchinfo.hpp | 94 + .../inc/private/common/fxirppreprocessinfo.hpp | 49 + .../wdf/shared/inc/private/common/fxirpqueue.hpp | 297 + .../drivers/wdf/shared/inc/private/common/fxldr.h | 249 + .../wdf/shared/inc/private/common/fxlock.hpp | 150 + .../shared/inc/private/common/fxlookasidelist.hpp | 126 + .../wdf/shared/inc/private/common/fxmacros.hpp | 319 + .../drivers/wdf/shared/inc/private/common/fxmdl.h | 91 + .../shared/inc/private/common/fxmemorybuffer.hpp | 93 + .../private/common/fxmemorybufferfromlookaside.hpp | 136 + .../inc/private/common/fxmemorybufferfrompool.hpp | 88 + .../private/common/fxmemorybufferpreallocated.hpp | 72 + .../shared/inc/private/common/fxmemoryobject.hpp | 199 + .../wdf/shared/inc/private/common/fxmin.hpp | 385 + .../shared/inc/private/common/fxnonpagedobject.hpp | 229 + .../inc/private/common/fxnpagedlookasidelist.hpp | 110 + .../wdf/shared/inc/private/common/fxobject.hpp | 1506 ++++ .../wdf/shared/inc/private/common/fxpackage.hpp | 56 + .../inc/private/common/fxpagedlookasidelist.hpp | 127 + .../shared/inc/private/common/fxpagedobject.hpp | 90 + .../wdf/shared/inc/private/common/fxpkgfdo.hpp | 486 ++ .../wdf/shared/inc/private/common/fxpkggeneral.hpp | 230 + .../wdf/shared/inc/private/common/fxpkgio.hpp | 446 ++ .../shared/inc/private/common/fxpkgioshared.hpp | 36 + .../wdf/shared/inc/private/common/fxpkgpdo.hpp | 592 ++ .../wdf/shared/inc/private/common/fxpkgpnp.hpp | 4588 +++++++++++ .../shared/inc/private/common/fxpnpcallbacks.hpp | 1127 +++ .../inc/private/common/fxpnpstatemachine.hpp | 225 + .../drivers/wdf/shared/inc/private/common/fxpool.h | 286 + .../shared/inc/private/common/fxpoolinlines.hpp | 258 + .../inc/private/common/fxpoweridlestatemachine.hpp | 550 ++ .../private/common/fxpowerpolicystatemachine.hpp | 811 ++ .../inc/private/common/fxpowerstatemachine.hpp | 285 + .../shared/inc/private/common/fxpoxinterface.hpp | 197 + .../shared/inc/private/common/fxqueryinterface.hpp | 137 + .../wdf/shared/inc/private/common/fxregkey.hpp | 286 + .../shared/inc/private/common/fxrelateddevice.hpp | 81 + .../inc/private/common/fxrelateddevicelist.hpp | 112 + .../wdf/shared/inc/private/common/fxrequest.hpp | 1530 ++++ .../shared/inc/private/common/fxrequestbase.hpp | 959 +++ .../shared/inc/private/common/fxrequestbuffer.hpp | 157 + .../inc/private/common/fxrequestcallbacks.hpp | 99 + .../shared/inc/private/common/fxrequestcontext.hpp | 156 + .../inc/private/common/fxrequestcontexttypes.h | 27 + .../shared/inc/private/common/fxrequestmemory.hpp | 124 + .../private/common/fxrequestvalidatefunctions.hpp | 163 + .../wdf/shared/inc/private/common/fxresource.hpp | 749 ++ .../private/common/fxselfmanagediostatemachine.hpp | 245 + .../wdf/shared/inc/private/common/fxspinlock.hpp | 121 + .../wdf/shared/inc/private/common/fxstring.hpp | 152 + .../wdf/shared/inc/private/common/fxstump.hpp | 107 + .../shared/inc/private/common/fxsyncrequest.hpp | 121 + .../shared/inc/private/common/fxsystemthread.hpp | 289 + .../shared/inc/private/common/fxsystemworkitem.hpp | 254 + .../wdf/shared/inc/private/common/fxtagtracker.hpp | 317 + .../wdf/shared/inc/private/common/fxtelemetry.hpp | 197 + .../inc/private/common/fxtelemetrycommon.hpp | 55 + .../wdf/shared/inc/private/common/fxtimer.hpp | 221 + .../shared/inc/private/common/fxtoobjectitf.hpp | 60 + .../wdf/shared/inc/private/common/fxtrace.h | 119 + .../inc/private/common/fxtransactionedlist.hpp | 305 + .../wdf/shared/inc/private/common/fxtypedefs.hpp | 41 + .../wdf/shared/inc/private/common/fxtypes.h | 124 + .../wdf/shared/inc/private/common/fxusbdevice.hpp | 664 ++ .../shared/inc/private/common/fxusbidleinfo.hpp | 45 + .../shared/inc/private/common/fxusbinterface.hpp | 270 + .../wdf/shared/inc/private/common/fxusbpipe.hpp | 747 ++ .../inc/private/common/fxusbrequestcontext.hpp | 89 + .../wdf/shared/inc/private/common/fxuserobject.hpp | 106 + .../inc/private/common/fxvalidatefunctions.hpp | 162 + .../wdf/shared/inc/private/common/fxverifier.h | 263 + .../shared/inc/private/common/fxverifierlock.hpp | 562 ++ .../wdf/shared/inc/private/common/fxwaitlock.hpp | 351 + .../private/common/fxwakeinterruptstatemachine.hpp | 196 + .../wdf/shared/inc/private/common/fxwatchdog.hpp | 116 + .../wdf/shared/inc/private/common/fxwmicompat.h | 79 + .../shared/inc/private/common/fxwmiinstance.hpp | 659 ++ .../shared/inc/private/common/fxwmiirphandler.hpp | 329 + .../shared/inc/private/common/fxwmiprovider.hpp | 295 + .../wdf/shared/inc/private/common/fxworkitem.hpp | 231 + .../shared/inc/private/common/ifxhascallbacks.hpp | 88 + .../wdf/shared/inc/private/common/ifxmemory.hpp | 161 + .../wdf/shared/inc/private/common/stringutil.hpp | 41 + .../wdf/shared/inc/private/km/fxdevicekm.hpp | 171 + .../wdf/shared/inc/private/km/fxdmaenabler.hpp | 479 ++ .../inc/private/km/fxdmaenablercallbacks.hpp | 254 + .../wdf/shared/inc/private/km/fxglobalskm.h | 744 ++ .../wdf/shared/inc/private/km/fxinterruptkm.hpp | 116 + .../wdf/shared/inc/private/km/fxioqueuekm.hpp | 59 + .../wdf/shared/inc/private/km/fxiotargetkm.hpp | 270 + .../shared/inc/private/km/fxiotargetremotekm.hpp | 81 + .../drivers/wdf/shared/inc/private/km/fxirpkm.hpp | 1347 ++++ .../wdf/shared/inc/private/km/fxperftracekm.hpp | 117 + .../wdf/shared/inc/private/km/fxrequestbasekm.hpp | 68 + .../shared/inc/private/km/fxrequestbufferkm.hpp | 111 + .../wdf/shared/inc/private/km/fxtelemetrykm.hpp | 196 + .../wdf/shared/inc/private/km/fxtypedefskm.hpp | 56 + .../wdf/shared/inc/private/km/fxverifierkm.h | 72 + .../wdf/shared/inc/private/um/device_common.h | 46 + .../wdf/shared/inc/private/um/fxdeviceum.hpp | 460 ++ .../wdf/shared/inc/private/um/fxfileobjectum.hpp | 33 + .../wdf/shared/inc/private/um/fxforwardum.hpp | 30 + .../wdf/shared/inc/private/um/fxglobalsum.h | 184 + .../inc/private/um/fxinterruptthreadpoolum.hpp | 195 + .../wdf/shared/inc/private/um/fxinterruptum.hpp | 44 + .../wdf/shared/inc/private/um/fxioqueueum.hpp | 231 + .../shared/inc/private/um/fxiotargetremoteum.hpp | 141 + .../wdf/shared/inc/private/um/fxiotargetum.hpp | 162 + .../drivers/wdf/shared/inc/private/um/fxirpum.hpp | 16 + .../drivers/wdf/shared/inc/private/um/fxldrum.h | 256 + .../shared/inc/private/um/fxmessagedispatchum.hpp | 253 + .../wdf/shared/inc/private/um/fxrequestbaseum.hpp | 29 + .../shared/inc/private/um/fxrequestbufferum.hpp | 69 + .../wdf/shared/inc/private/um/fxtelemetryum.hpp | 130 + .../wdf/shared/inc/private/um/fxtypedefsum.hpp | 29 + .../wdf/shared/inc/private/um/fxverifierum.h | 62 + .../wdf/shared/inc/private/um/ufxverifier.h | 26 + sdk/lib/drivers/wdf/shared/inc/private/um/umusb.h | 260 + .../shared/inc/private/um/wdffileobject_private.h | 80 + .../irphandlers/default/fxdefaultirphandler.cpp | 97 + .../shared/irphandlers/general/fxpkggeneral.cpp | 2057 +++++ .../wdf/shared/irphandlers/io/fxioqueue.cpp | 6527 +++++++++++++++ .../wdf/shared/irphandlers/io/fxioqueueapi.cpp | 1420 ++++ .../drivers/wdf/shared/irphandlers/io/fxpkgio.cpp | 1797 +++++ .../wdf/shared/irphandlers/io/ioprivshared.hpp | 309 + .../wdf/shared/irphandlers/io/km/fxioqueuekm.cpp | 573 ++ .../wdf/shared/irphandlers/irphandlerspriv.hpp | 38 + .../wdf/shared/irphandlers/package/fxpackage.cpp | 41 + .../irphandlers/pnp/devicepwrreqstatemachine.cpp | 430 + .../wdf/shared/irphandlers/pnp/eventqueue.cpp | 438 + .../wdf/shared/irphandlers/pnp/fdopower.cpp | 586 ++ .../wdf/shared/irphandlers/pnp/fxinterruptapi.cpp | 1385 ++++ .../wdf/shared/irphandlers/pnp/fxpkgfdo.cpp | 1569 ++++ .../wdf/shared/irphandlers/pnp/fxpkgpdo.cpp | 1926 +++++ .../wdf/shared/irphandlers/pnp/fxpkgpnp.cpp | 6487 +++++++++++++++ .../wdf/shared/irphandlers/pnp/interruptobject.cpp | 2013 +++++ .../wdf/shared/irphandlers/pnp/km/eventqueuekm.cpp | 119 + .../wdf/shared/irphandlers/pnp/km/fxpkgfdokm.cpp | 596 ++ .../wdf/shared/irphandlers/pnp/km/fxpkgpdokm.cpp | 387 + .../wdf/shared/irphandlers/pnp/km/fxpkgpnpkm.cpp | 624 ++ .../irphandlers/pnp/km/interruptobjectkm.cpp | 569 ++ .../wdf/shared/irphandlers/pnp/km/pnpprivkm.hpp | 87 + .../irphandlers/pnp/km/pnpstatemachinekm.cpp | 238 + .../pnp/km/powerpolicystatemachinekm.cpp | 245 + .../irphandlers/pnp/km/powerstatemachinekm.cpp | 151 + .../shared/irphandlers/pnp/km/poxinterfacekm.cpp | 460 ++ .../wdf/shared/irphandlers/pnp/km/supportkm.cpp | 321 + .../pnp/notpowerpolicyownerstatemachine.cpp | 593 ++ .../wdf/shared/irphandlers/pnp/pdopower.cpp | 496 ++ .../drivers/wdf/shared/irphandlers/pnp/pnppriv.hpp | 482 ++ .../wdf/shared/irphandlers/pnp/pnpstatemachine.cpp | 4793 +++++++++++ .../irphandlers/pnp/poweridlestatemachine.cpp | 2023 +++++ .../irphandlers/pnp/powerpolicystatemachine.cpp | 8403 ++++++++++++++++++++ .../shared/irphandlers/pnp/powerstatemachine.cpp | 5398 +++++++++++++ .../wdf/shared/irphandlers/pnp/poxinterface.cpp | 579 ++ .../irphandlers/pnp/selfmanagediostatemachine.cpp | 469 ++ .../wdf/shared/irphandlers/pnp/um/eventqueueum.cpp | 77 + .../shared/irphandlers/pnp/um/fxchildlistum.cpp | 601 ++ .../irphandlers/pnp/um/fxinterruptthreadpoolum.cpp | 400 + .../wdf/shared/irphandlers/pnp/um/fxpkgfdoum.cpp | 322 + .../wdf/shared/irphandlers/pnp/um/fxpkgpdoum.cpp | 144 + .../wdf/shared/irphandlers/pnp/um/fxpkgpnpum.cpp | 339 + .../irphandlers/pnp/um/fxqueryinterfaceum.cpp | 128 + .../irphandlers/pnp/um/fxrelateddevicelistum.cpp | 86 + .../irphandlers/pnp/um/fxrelateddeviceum.cpp | 49 + .../shared/irphandlers/pnp/um/fxsystemthreadum.cpp | 199 + .../irphandlers/pnp/um/fxwmiirphandlerum.cpp | 91 + .../shared/irphandlers/pnp/um/fxwmiproviderum.cpp | 162 + .../irphandlers/pnp/um/interruptobjectum.cpp | 804 ++ .../wdf/shared/irphandlers/pnp/um/pnpprivum.hpp | 14 + .../irphandlers/pnp/um/pnpstatemachineum.cpp | 178 + .../pnp/um/powerpolicystatemachineum.cpp | 213 + .../irphandlers/pnp/um/powerstatemachineum.cpp | 103 + .../shared/irphandlers/pnp/um/poxinterfaceum.cpp | 125 + .../wdf/shared/irphandlers/pnp/um/supportum.cpp | 149 + .../irphandlers/pnp/wakeinterruptstatemachine.cpp | 524 ++ sdk/lib/drivers/wdf/shared/object/dbgtrace.cpp | 130 + sdk/lib/drivers/wdf/shared/object/fxobject.cpp | 1137 +++ sdk/lib/drivers/wdf/shared/object/fxobjectapi.cpp | 383 + sdk/lib/drivers/wdf/shared/object/fxobjectpch.hpp | 30 + .../wdf/shared/object/fxobjectstatemachine.cpp | 1217 +++ sdk/lib/drivers/wdf/shared/object/fxtagtracker.cpp | 382 + sdk/lib/drivers/wdf/shared/object/fxuserobject.cpp | 106 + .../drivers/wdf/shared/object/fxuserobjectapi.cpp | 145 + .../wdf/shared/object/fxvalidatefunctions.cpp | 220 + .../wdf/shared/object/fxverifierbugcheck.cpp | 107 + .../drivers/wdf/shared/object/fxverifierlock.cpp | 1050 +++ sdk/lib/drivers/wdf/shared/object/globals.cpp | 1740 ++++ sdk/lib/drivers/wdf/shared/object/handleapi.cpp | 702 ++ .../drivers/wdf/shared/object/km/fxobjectkm.cpp | 120 + sdk/lib/drivers/wdf/shared/object/km/globalskm.cpp | 254 + sdk/lib/drivers/wdf/shared/object/km/wdfpoolkm.cpp | 272 + sdk/lib/drivers/wdf/shared/object/objectpriv.hpp | 37 + .../wdf/shared/object/um/fxobjectinfoum.cpp | 70 + .../drivers/wdf/shared/object/um/fxobjectum.cpp | 194 + sdk/lib/drivers/wdf/shared/object/um/globalsum.cpp | 67 + sdk/lib/drivers/wdf/shared/object/wdfpool.cpp | 710 ++ .../wdf/shared/primitives/km/mxgeneralkm.cpp | 58 + .../wdf/shared/primitives/um/errtostatus.cpp | 74 + .../wdf/shared/primitives/um/mxdeviceobjectum.cpp | 206 + .../wdf/shared/primitives/um/mxdriverobjectum.cpp | 75 + .../wdf/shared/primitives/um/mxfileobjectum.cpp | 41 + .../wdf/shared/primitives/um/mxgeneralum.cpp | 123 + .../wdf/shared/primitives/um/mxworkitemum.cpp | 66 + .../drivers/wdf/shared/support/fxcollection.cpp | 285 + .../drivers/wdf/shared/support/fxcollectionapi.cpp | 384 + .../wdf/shared/support/fxdeviceinterface.cpp | 155 + .../wdf/shared/support/fxdeviceinterfaceapi.cpp | 400 + .../drivers/wdf/shared/support/fxdevicetext.cpp | 52 + .../drivers/wdf/shared/support/fxregistryapi.cpp | 1530 ++++ sdk/lib/drivers/wdf/shared/support/fxregkey.cpp | 66 + .../drivers/wdf/shared/support/fxrequestbuffer.cpp | 340 + .../drivers/wdf/shared/support/fxresourceapi.cpp | 1314 +++ .../wdf/shared/support/fxresourcecollection.cpp | 739 ++ sdk/lib/drivers/wdf/shared/support/fxspinlock.cpp | 142 + .../drivers/wdf/shared/support/fxspinlockapi.cpp | 181 + sdk/lib/drivers/wdf/shared/support/fxstring.cpp | 67 + sdk/lib/drivers/wdf/shared/support/fxstringapi.cpp | 152 + .../drivers/wdf/shared/support/fxsupportpch.hpp | 25 + sdk/lib/drivers/wdf/shared/support/fxtelemetry.cpp | 149 + .../wdf/shared/support/fxtransactionedlist.cpp | 552 ++ sdk/lib/drivers/wdf/shared/support/fxwaitlock.cpp | 74 + .../drivers/wdf/shared/support/fxwaitlockapi.cpp | 184 + .../wdf/shared/support/km/fxdeviceinterfacekm.cpp | 236 + .../drivers/wdf/shared/support/km/fxregkeykm.cpp | 296 + .../wdf/shared/support/km/fxrequestbufferkm.cpp | 277 + .../shared/support/km/fxresourcecollectionkm.cpp | 39 + .../wdf/shared/support/km/fxsupportpchkm.hpp | 41 + .../wdf/shared/support/km/fxtelemetrykm.cpp | 732 ++ sdk/lib/drivers/wdf/shared/support/stringutil.cpp | 308 + .../wdf/shared/support/um/fxdeviceinterfaceum.cpp | 289 + .../drivers/wdf/shared/support/um/fxregkeyum.cpp | 302 + .../wdf/shared/support/um/fxrequestbufferum.cpp | 103 + .../shared/support/um/fxresourcecollectionum.cpp | 788 ++ .../wdf/shared/support/um/fxsupportpchum.hpp | 44 + .../wdf/shared/support/um/fxtelemetryum.cpp | 426 + .../drivers/wdf/shared/support/um/tracingum.cpp | 838 ++ .../drivers/wdf/shared/targets/fxtargetsshared.hpp | 187 + .../wdf/shared/targets/general/fxiotarget.cpp | 2716 +++++++ .../wdf/shared/targets/general/fxiotargetapi.cpp | 2012 +++++ .../shared/targets/general/fxiotargetremote.cpp | 825 ++ .../wdf/shared/targets/general/fxiotargetself.cpp | 176 + .../shared/targets/general/km/fxiotargetapikm.cpp | 433 + .../wdf/shared/targets/general/km/fxiotargetkm.cpp | 524 ++ .../targets/general/km/fxiotargetremotekm.cpp | 366 + .../targets/general/um/fxiotargetremoteum.cpp | 658 ++ .../wdf/shared/targets/general/um/fxiotargetum.cpp | 315 + .../drivers/wdf/shared/targets/usb/fxusbdevice.cpp | 2475 ++++++ .../wdf/shared/targets/usb/fxusbdeviceapi.cpp | 1428 ++++ .../wdf/shared/targets/usb/fxusbinterface.cpp | 1168 +++ .../wdf/shared/targets/usb/fxusbinterfaceapi.cpp | 497 ++ .../drivers/wdf/shared/targets/usb/fxusbpch.hpp | 16 + .../drivers/wdf/shared/targets/usb/fxusbpipe.cpp | 1892 +++++ .../wdf/shared/targets/usb/fxusbpipeapi.cpp | 862 ++ .../wdf/shared/targets/usb/km/fxusbdeviceapikm.cpp | 445 ++ .../wdf/shared/targets/usb/km/fxusbdevicekm.cpp | 1107 +++ .../wdf/shared/targets/usb/km/fxusbpipekm.cpp | 379 + .../wdf/shared/targets/usb/um/fxusbdeviceum.cpp | 923 +++ .../wdf/shared/targets/usb/um/fxusbinterfaceum.cpp | 234 + .../wdf/shared/targets/usb/um/fxusbpipeum.cpp | 345 + .../wdf/shared/targets/usb/um/usbstubum.cpp | 147 + sdk/lib/drivers/wdf/shared/targets/usb/usbutil.cpp | 614 ++ sdk/lib/drivers/wdf/shared/targets/usb/usbutil.hpp | 178 + .../drivers/wdf/umdf/fxlib/inc/private/umdfstub.h | 62 + sdk/lib/drivers/wdf/umdf/fxlib/inc/private/wdf20.h | 2977 +++++++ .../drivers/wdf/umdf/fxlib/inc/private/wdf215.h | 2989 +++++++ .../umdf/fxlib/librarycommon/fxlibrarycommon.cpp | 508 ++ .../wdf/umdf/fxlib/librarycommon/fxlibrarycommon.h | 71 + .../drivers/wdf/umdf/fxlib/version/framework.cpp | 133 + .../drivers/wdf/umdf/fxlib/version/fxdynamics.h | 4188 ++++++++++ .../wdf/umdf/fxlib/version/fxframeworkstubum.h | 48 + sdk/lib/drivers/wdf/umdf/fxlib/version/version.cpp | 312 + .../drivers/wdf/umdf/fxlib/version/vffxdynamics.h | 3911 +++++++++ 475 files changed, 285099 insertions(+) diff --git a/sdk/lib/drivers/wdf/kmdf/inc/private/fx.hpp b/sdk/lib/drivers/wdf/kmdf/inc/private/fx.hpp new file mode 100644 index 00000000000..d3eae97629e --- /dev/null +++ b/sdk/lib/drivers/wdf/kmdf/inc/private/fx.hpp @@ -0,0 +1,208 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + Fx.hpp + +Abstract: + + This is the main driver framework include file. + +Author: + WDF team + +Environment: + + kernel mode only + +Revision History: + +--*/ + +#ifndef _FX_H +#define _FX_H + +extern "C" { +#include "mx.h" +} + +#include "FxMacros.hpp" + +extern "C" { +#include "wdf.h" +#include "wdmsec.h" +#include "wdmguid.h" + +#include "wdfdevicepri.h" +#include "wdfiotargetpri.h" +#include "wdfcx.h" +#include "wdfldr.h" + +#include <FxDynamicsWrapper.h> + +#include "wdf10.h" +#include "wdf11.h" +#include "wdf15.h" +#include "wdf17.h" +#include "wdf19.h" +#include "wdf111.h" +#include "wdf113.h" +#include "wdf115.h" +} + +#define KMDF_ONLY_CODE_PATH_ASSERT() + +// Integer overflow functions +#include "ntintsafe.h" + +#include "FxForward.hpp" + +//KMDF defines for shared type names +#include "FxTypeDefsKm.hpp" + +#include "fxwmicompat.h" +#include "fxtrace.h" +#include "fxtypes.h" +#include "fxrequestcontexttypes.h" +#include "fxpool.h" +#include "FxGlobalsKM.h" +#include "FxPoolInlines.hpp" +#include "fxverifier.h" +#include "fxverifierkm.h" +#include "FxMdl.h" +#include "FxProbeAndLock.h" + +#include "FxPerfTraceKm.hpp" +#include "DriverFrameworks-KernelMode-KmEvents.h" + +#include <NtStrSafe.h> + +#include "FxStump.hpp" + +#include "FxRequestBuffer.hpp" + +#include "FxTagTracker.hpp" + +// internal locks +#include "FxVerifierLock.hpp" +#include "FxLock.hpp" + +// base objects +#include "fxobject.hpp" +#include "FxPagedObject.hpp" +#include "FxNonPagedObject.hpp" + +#include "fxhandle.h" + +// external locks +#include "FxWaitLock.hpp" +#include "FxSpinLock.hpp" + +// utitilty classes and functions +#include "FxTransactionedList.hpp" +#include "FxRelatedDeviceList.hpp" +#include "FxDisposeList.hpp" +#include "FxCollection.hpp" +#include "StringUtil.hpp" + +// abstract classes +#include "IFxHasCallbacks.hpp" + +// callback delegation and locking +#include "FxSystemThread.hpp" +#include "FxSystemWorkItem.hpp" +#include "FxCallbackLock.hpp" +#include "FxCallbackSpinLock.hpp" +#include "FxCallbackMutexLock.hpp" +#include "FxCallback.hpp" +#include "FxSystemThread.hpp" + +#include "IFxMemory.hpp" +#include "FxLookasideList.hpp" +#include "FxNPagedLookasideList.hpp" +#include "FxPagedLookasideList.hpp" +#include "FxMemoryObject.hpp" +#include "FxMemoryBuffer.hpp" +#include "FxMemoryBufferFromPool.hpp" +#include "FxMemoryBufferPreallocated.hpp" +#include "FxMemoryBufferFromLookaside.hpp" +#include "FxRequestMemory.hpp" +#include "FxRegKey.hpp" +#include "FxAutoRegistry.hpp" +#include "FxAutoString.hpp" +#include "FxString.hpp" + +#include "FxValidateFunctions.hpp" +#include "FxRequestValidateFunctions.hpp" + +#include "FxResource.hpp" +#include "FxRelatedDevice.hpp" +#include "FxDeviceInterface.hpp" +#include "FxQueryInterface.hpp" +#include "FxDeviceText.hpp" + +#include "FxIrp.hpp" +#include "FxDriver.hpp" + +// generic package interface +#include "FxPackage.hpp" +#include "FxPkgGeneral.hpp" +#include "FxDefaultIrpHandler.hpp" +#include "FxPkgPnp.hpp" +#include "FxWatchDog.hpp" + +// Device support +#include "FxChildList.hpp" +#include "FxCxDeviceInfo.hpp" +#include "FxDevice.hpp" + +#include "FxPkgIo.hpp" + +#include "FxDeviceToMxInterface.hpp" + +#include "FxIrpQueue.hpp" +#include "FxRequestContext.hpp" +#include "FxRequestCallbacks.hpp" +#include "FxRequestBase.hpp" +#include "FxRequest.hpp" +#include "FxSyncRequest.hpp" + +// specialized irp handlers (ie packages) +#include "FxPkgFdo.hpp" +#include "FxPkgPdo.hpp" +#include "FxWmiIrpHandler.hpp" +#include "FxWmiProvider.hpp" +#include "FxWmiInstance.hpp" + +// queus for read, write, (internal) IOCTL +#include "FxIoQueue.hpp" +#include "FxFileObject.hpp" +#include "FxIrpPreprocessInfo.hpp" +#include "FxIrpDynamicDispatchInfo.hpp" + +#include "FxDpc.hpp" +#include "FxWorkItem.hpp" +#include "FxTimer.hpp" +#include "FxInterruptKm.hpp" + +// IO targets (device lower edge interface) +#include "FxIoTarget.hpp" +#include "FxIoTargetRemote.hpp" +#include "FxIoTargetSelf.hpp" + +#include "FxUsbDevice.hpp" +#include "FxUsbInterface.hpp" +#include "FxUsbPipe.hpp" + +// DMA support +#include "FxDmaEnabler.hpp" +#include "FxDmaTransaction.hpp" +#include "FxCommonBuffer.hpp" + +// Triage info. +#include "wdftriage.h" + +#include "FxTelemetry.hpp" +#endif // _FX_H diff --git a/sdk/lib/drivers/wdf/kmdf/inc/private/fxbugcheck.h b/sdk/lib/drivers/wdf/kmdf/inc/private/fxbugcheck.h new file mode 100644 index 00000000000..d7894530347 --- /dev/null +++ b/sdk/lib/drivers/wdf/kmdf/inc/private/fxbugcheck.h @@ -0,0 +1,91 @@ +/*++ + +Copyright (c) Microsoft Corporation + +Module Name: + + FxBugcheck.h + +Abstract: + This module contains private macros/defines for crashdumps. + +--*/ + +#ifndef __FXBUGCHECK_H__ +#define __FXBUGCHECK_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +// +// Macro for doing pointer arithmetic. +// +#define Add2Ptr(P,I) ((PVOID)((PUCHAR)(P) + (I))) + +// +// This macro takes a length & rounds it up to a multiple of the alignment +// Alignment is given as a power of 2 +// +#define EXP_ALIGN_UP_PTR_ON_BOUNDARY(_length, _alignment) \ + (PVOID) ((((ULONG_PTR) (_length)) + ((_alignment)-1)) & \ + ~(ULONG_PTR)((_alignment) - 1)) + +// +// Checks if 1st argument is aligned on given power of 2 boundary specified +// by 2nd argument +// +#define EXP_IS_PTR_ALIGNED_ON_BOUNDARY(_pointer, _alignment) \ + ((((ULONG_PTR) (_pointer)) & ((_alignment) - 1)) == 0) + + +// +// This macro takes a size and rounds it down to a multiple of the alignemnt. +// Alignment doesn't need to be a power of 2. +// +#define EXP_ALIGN_DOWN_ON_BOUNDARY(_size, _alignment) \ + ((_size) - ((_size) % _alignment)) + +// +// Define the max data size the bugcheck callback can write. Per callback the +// total size is around 16K on 32bit OS (32K on 64bit OS). +// +#ifdef _WIN64 +#define FX_MAX_DUMP_SIZE (32*1024) +#else +#define FX_MAX_DUMP_SIZE (16*1024) +#endif + +// +// Maximum number of CPUs supported by the driver tracker. +// +#define FX_DRIVER_TRACKER_MAX_CPUS 256 // Max Win7 processors. + +// +// The initial/increment size of the array to hold driver info. +// +#define FX_DUMP_DRIVER_INFO_INCREMENT 10 // # entries. + +// +// The max size of the array to hold the driver info. This is the max data +// we can write into the minidump. +// +#define FX_MAX_DUMP_DRIVER_INFO_COUNT \ + (FX_MAX_DUMP_SIZE/sizeof(FX_DUMP_DRIVER_INFO_ENTRY)) + +// +// During run-time we store info about the loaded drivers in an array +// of FX_DUMP_DRIVER_INFO_ENTRY struct entries, on a crash we write the +// entire array in the minidump for postmortem analysis. +// +typedef struct _FX_DUMP_DRIVER_INFO_ENTRY { + PFX_DRIVER_GLOBALS FxDriverGlobals; + WDF_VERSION Version; + CHAR DriverName[WDF_DRIVER_GLOBALS_NAME_LEN]; +} FX_DUMP_DRIVER_INFO_ENTRY, *PFX_DUMP_DRIVER_INFO_ENTRY; + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // __FXBUGCHECK_H__ diff --git a/sdk/lib/drivers/wdf/kmdf/inc/private/fxcommonbuffer.hpp b/sdk/lib/drivers/wdf/kmdf/inc/private/fxcommonbuffer.hpp new file mode 100644 index 00000000000..329c07fa02a --- /dev/null +++ b/sdk/lib/drivers/wdf/kmdf/inc/private/fxcommonbuffer.hpp @@ -0,0 +1,161 @@ +/*++ + +Copyright (c) Microsoft Corporation + +Module Name: + + FxCommonBuffer.hpp + +Abstract: + + WDF CommonBuffer Object support + +Environment: + + Kernel mode only. + +Notes: + + +Revision History: + +--*/ + +#ifndef _FXCOMMONBUFFER_H_ +#define _FXCOMMONBUFFER_H_ + +// +// Calculate an "aligned" address (Logical or Virtual) per +// a specific alignment value. +// +FORCEINLINE +PVOID +FX_ALIGN_VIRTUAL_ADDRESS( + __in PVOID VA, + __in size_t AlignTo + ) +{ + return (PVOID)(((ULONG_PTR)VA + AlignTo) & ~AlignTo); +} + +FORCEINLINE +ULONGLONG +FX_ALIGN_LOGICAL_ADDRESS( + __in PHYSICAL_ADDRESS LA, + __in size_t AlignTo + ) +{ + return (LA.QuadPart + AlignTo) & ~((ULONGLONG)AlignTo); +} + +// +// Declare the FxCommonBuffer class +// +class FxCommonBuffer : public FxNonPagedObject { + +public: + + FxCommonBuffer( + __in PFX_DRIVER_GLOBALS FxDriverGlobals, + __in FxDmaEnabler * pDmaEnabler + ); + + virtual + BOOLEAN + Dispose( + VOID + ); + + _Must_inspect_result_ + NTSTATUS + AllocateCommonBuffer( + __in size_t Length + ); + + VOID + FreeCommonBuffer( + VOID + ); + + __forceinline + PHYSICAL_ADDRESS + GetAlignedLogicalAddress( + VOID + ) + { + return m_BufferAlignedLA; + } + + __forceinline + PVOID + GetAlignedVirtualAddress( + VOID + ) + { + return m_BufferAlignedVA; + } + + __forceinline + size_t + GetLength( + VOID + ) + { + return m_Length; + } + + __forceinline + VOID + SetAlignment( + __in ULONG Alignment + ) + { + m_Alignment = Alignment; + } + +protected: + + // + // Unaligned virtual address + // + PVOID m_BufferRawVA; + + // + // Aligned virtual address + // + PVOID m_BufferAlignedVA; + + // + // Aligned logical address + // + PHYSICAL_ADDRESS m_BufferAlignedLA; + + // + // Unaligned logical address + // + PHYSICAL_ADDRESS m_BufferRawLA; + + // + // Pointer to the DMA enabler + // + FxDmaEnabler * m_DmaEnabler; + + // + // Length specified by the caller + // + size_t m_Length; + + // + // Actual length used to allocate buffer after adding the alignement + // value. + // + size_t m_RawLength; + + // + // Alignment of the allocated buffer. + // + size_t m_Alignment; + +}; + +#endif // _FXCOMMONBUFFER_H_ diff --git a/sdk/lib/drivers/wdf/kmdf/inc/private/fxdmatransaction.hpp b/sdk/lib/drivers/wdf/kmdf/inc/private/fxdmatransaction.hpp new file mode 100644 index 00000000000..0e3535b669c --- /dev/null +++ b/sdk/lib/drivers/wdf/kmdf/inc/private/fxdmatransaction.hpp @@ -0,0 +1,1559 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +#ifndef _FXDMATRANSACTION_HPP_ +#define _FXDMATRANSACTION_HPP_ + +extern "C" { +#include "FxDmaTransaction.hpp.tmh" +} + +#include "FxDmaTransactionCallbacks.hpp" + +// +// This type is used to allocate scatter-gather list of 1 element on the stack. +// +typedef __declspec(align(MEMORY_ALLOCATION_ALIGNMENT))UCHAR UCHAR_MEMORY_ALIGNED; + +// begin_wpp enum + +// +// FxDmaTransactionStateCreated when the object is created. +// FxDmaTransactionStateInitialized when object is initialized using with +// Mdl/VA/Length. +// FxDmaTransactionStateReserved when driver calls AllocateResources until +// the adapter control routine returns +// FxDmaTransactionStateTransfer is called when the driver call Execute +// to start the DMA transfer. +// FxDmaTransactionStateTransferCompleted is when transfer is completed or +// aborted +// FxDmaTransactionStateTransferFailed is set if the framework is not able +// to start the transfer due to error. +// FxDmaTransactionStateReleased is set when the object is reinitailized for reuse +// FxDmaTransactionStateDeleted is set in the Dipose due to WdfObjectDelete +// +enum FxDmaTransactionState { + FxDmaTransactionStateInvalid = 0, + FxDmaTransactionStateCreated, + FxDmaTransactionStateReserved, + FxDmaTransactionStateInitialized, + FxDmaTransactionStateTransfer, + FxDmaTransactionStateTransferCompleted, + FxDmaTransactionStateTransferFailed, + FxDmaTransactionStateReleased, + FxDmaTransactionStateDeleted, +}; + +// +// FxDmaCompletionTypeFull is used when the driver calls WdfDmaTransactionDmaComplete +// to indicate that last framgement has been transmitted fully and to initiate +// the transfer of next fragment. +// FxDmaCompletionTypePartial is used when the driver completes the transfer and +// specifies a amount of bytes it has transfered, and to initiate the next transfer +// from the untransmitted portion of the buffer. +// FxDmaCompletionTypeAbort i used when the driver calls DmaCompleteFinal to indicate +// that's the final transfer and not initiate anymore transfers for the remaining +// data. +// +enum FxDmaCompletionType { + FxDmaCompletionTypeFull = 1, + FxDmaCompletionTypePartial, + FxDmaCompletionTypeAbort, +}; + +// end_wpp + +// +// This tag is used to track whether the request pointer in the transaction +// has a reference taken on it. Since the pointer is guaranteed to be +// 4-byte aligned this can be set and cleared without destroying the pointer. +// +#define FX_STRONG_REF_TAG 0x1 + +// +// Simple set of macros to encode and decode tagged pointers. +// +#define FX_ENCODE_POINTER(T,p,tag) ((T*) ((ULONG_PTR) p | (ULONG_PTR) tag)) +#define FX_DECODE_POINTER(T,p,tag) ((T*) ((ULONG_PTR) p & ~(ULONG_PTR) tag)) +#define FX_IS_POINTER_ENCODED(p,tag) ((((ULONG_PTR) p & (ULONG_PTR) tag) == tag) ? TRUE : FALSE) + +// +// An uninitialized value for Dma completion status +// + +#define UNDEFINED_DMA_COMPLETION_STATUS ((DMA_COMPLETION_STATUS) -1) + +class FxDmaTransactionBase : public FxNonPagedObject { + + friend class FxDmaEnabler; + +public: + + FxDmaTransactionBase( + __in PFX_DRIVER_GLOBALS FxDriverGlobals, + __in USHORT ObjectSize, + __in USHORT ExtraSize, + __in FxDmaEnabler *DmaEnabler + ); + + static + VOID + _ComputeNextTransferAddress( + __in PMDL CurrentMdl, + __in size_t CurrentOffset, + __in ULONG Transferred, + __deref_out PMDL *NextMdl, + __out size_t *NextOffset + ); + + _Must_inspect_result_ + static + NTSTATUS + _CalculateRequiredMapRegisters( + __in PMDL Mdl, + __in size_t CurrentOffset, + __in ULONG Length, + __in ULONG AvailableMapRegisters, + __out_opt PULONG PossibleTransferLength, + __out PULONG MapRegistersRequired + ); + + virtual + BOOLEAN + Dispose( + VOID + ); + + _Must_inspect_result_ + NTSTATUS + Initialize( + __in PFN_WDF_PROGRAM_DMA ProgramDmaFunction, + __in WDF_DMA_DIRECTION DmaDirection, + __in PMDL Mdl, + __in size_t Offset, + __in ULONG Length + ); + + _Must_inspect_result_ + virtual + NTSTATUS + InitializeResources( + VOID + )=0; + + _Must_inspect_result_ + NTSTATUS + Execute( + __in PVOID Context + ); + + _Must_inspect_result_ + virtual + NTSTATUS + StartTransfer( + VOID + )=0; + + _Must_inspect_result_ + virtual + NTSTATUS + StageTransfer( + VOID + )=0; + + BOOLEAN + DmaCompleted( + __in size_t TransferredLength, + __out NTSTATUS * ReturnStatus, + __in FxDmaCompletionType CompletionType + ); + + _Must_inspect_result_ + virtual + NTSTATUS + TransferCompleted( + VOID + )=0; + + VOID + ReleaseForReuse( + __in BOOLEAN ForceRelease + ); + + virtual + VOID + ReleaseResources( + __in BOOLEAN ForceRelease + )=0; + + VOID + GetTransferInfo( + __out_opt ULONG *MapRegisterCount, + __out_opt ULONG *ScatterGatherElementCount + ); + + __forceinline + size_t + GetBytesTransferred( + VOID + ) + { + return m_Transferred; + } + + __forceinline + FxDmaEnabler * + GetDmaEnabler( + VOID + ) + { + return m_DmaEnabler; + } + + __forceinline + FxRequest * + GetRequest( + VOID + ) + { + // + // Strip out the strong reference tag if it's set + // + return FX_DECODE_POINTER(FxRequest, + m_EncodedRequest, + FX_STRONG_REF_TAG); + } + + __forceinline + BOOLEAN + IsRequestReferenced( + VOID + ) + { + return FX_IS_POINTER_ENCODED(m_EncodedRequest, FX_STRONG_REF_TAG); + } + + __forceinline + VOID + SetRequest( + __in FxRequest* Request + ) + { + ASSERT(m_EncodedRequest == NULL); + + // + // Make sure the pointer doesn't have the strong ref flag set already + // + ASSERT(FX_IS_POINTER_ENCODED(Request, FX_STRONG_REF_TAG) == FALSE); + + m_EncodedRequest = Request; + } + + __forceinline + VOID + ReferenceRequest( + VOID + ) + { + ASSERT(m_EncodedRequest != NULL); + ASSERT(IsRequestReferenced() == false); + + // + // Take a reference on the irp to catch completion of request + // when there is a pending DMA transaction. + // While there is no need to take a reference on request itself, + // I'm keeping it to avoid regression as we are so close to + // shipping this. + // + m_EncodedRequest->AddIrpReference(); + + // + // Increment reference to this Request. + // See complementary section in WdfDmaTransactionDelete + // and WdfDmaTransactionRelease. + // + m_EncodedRequest->ADDREF( this ); + + m_EncodedRequest = FX_ENCODE_POINTER(FxRequest, + m_EncodedRequest, + FX_STRONG_REF_TAG); + } + + __forceinline + VOID + ReleaseButRetainRequest( + VOID + ) + { + ASSERT(m_EncodedRequest != NULL); + ASSERT(IsRequestReferenced()); + + // + // Clear the referenced bit on the encoded request. + // + m_EncodedRequest = FX_DECODE_POINTER(FxRequest, + m_EncodedRequest, + FX_STRONG_REF_TAG); + + // + // Release this reference to the Irp and FxRequest. + // + m_EncodedRequest->ReleaseIrpReference(); + + m_EncodedRequest->RELEASE( this ); + } + + __forceinline + VOID + ClearRequest( + VOID + ) + { + if (IsRequestReferenced()) { + ReleaseButRetainRequest(); + } + m_EncodedRequest = NULL; + } + + __forceinline + size_t + GetMaximumFragmentLength( + VOID + ) + { + return m_MaxFragmentLength; + } + + __forceinline + VOID + SetMaximumFragmentLength( + size_t MaximumFragmentLength + ) + { + if (MaximumFragmentLength < m_AdapterInfo->MaximumFragmentLength) { + m_MaxFragmentLength = MaximumFragmentLength; + } + } + + __forceinline + size_t + GetCurrentFragmentLength( + VOID + ) + { + return m_CurrentFragmentLength; + } + + __forceinline + WDFDMATRANSACTION + GetHandle( + VOID + ) + { + return (WDFDMATRANSACTION) GetObjectHandle(); + } + + PVOID + GetTransferContext( + VOID + ) + { + return m_TransferContext; + } + + VOID + SetImmediateExecution( + __in BOOLEAN Value + ); + + BOOLEAN + CancelResourceAllocation( + VOID + ); + + FxDmaTransactionState + GetTransactionState( + VOID + ) + { + return m_State; + } + +protected: + + FxDmaTransactionState m_State; + + WDF_DMA_DIRECTION m_DmaDirection; + + FxDmaEnabler* m_DmaEnabler; + + // + // Depending on the direction of the transfer, this one + // points to either m_ReadAdapterInfo or m_WriteAdapterInfo + // structure of the DMA enabler. + // + FxDmaDescription* m_AdapterInfo; + + // + // Request associated with this transfer. Encoding uses the + // FX_[EN|DE]CODE_POINTER macros with the FX_STRONG_REF_TAG + // to indicate whether the reference has been taken or not + // + FxRequest* m_EncodedRequest; + + // + // Callback and context for ProgramDma function + // + // The callback is overloaded to also hold the callback for + // Packet & System transfer's Reserve callback (to save space.) + // This is possible because the driver may not call execute + // and reserve in parallel on the same transaction. Disambiguate + // using the state of the transaction. + // + FxDmaTransactionProgramOrReserveDma m_DmaAcquiredFunction; + PVOID m_DmaAcquiredContext; + + // + // The DMA transfer context (when using V3 DMA) + // + PVOID m_TransferContext; + + // + // This is the first MDL of the transaction. + // + PMDL m_StartMdl; + + // + // This is the MDL where the current transfer is being executed. + // If the data spans multiple MDL then this would be different + // from the startMDL when we stage large transfers and also + // if the driver performs partial transfers. + // + PMDL m_CurrentFragmentMdl; + + // + // Starting offset in the first m_StartMdl. This might be same as + // m_StartMdl->StartVA. + // + size_t m_StartOffset; + + // + // Points to address where the next transfer will begin. + // + size_t m_CurrentFragmentOffset; + + // + // This is maximum length of transfer that can be made. This is + // computed based on the available map registers and driver + // configuration. + // + size_t m_MaxFragmentLength; + + // + // Length of the whole transaction. + // + size_t m_TransactionLength; + + // + // Number of bytes pending to be transfered. + // + size_t m_Remaining; + + // + // Total number of bytes transfered. + // + size_t m_Transferred; + + // + // Number of bytes transfered in the last transaction. + // + size_t m_CurrentFragmentLength; + + // + // DMA flags for passing to GetScatterGatherListEx & + // AllocateAdapterChannelEx + // + + ULONG m_Flags; + + static + PVOID + GetStartVaFromOffset( + __in PMDL Mdl, + __in size_t Offset + ) + { + return ((PUCHAR) MmGetMdlVirtualAddress(Mdl)) + Offset; + } + + virtual + VOID + Reuse( + VOID + ) + { + return; + } + +}; + +class FxDmaScatterGatherTransaction : public FxDmaTransactionBase { + +public: + + FxDmaScatterGatherTransaction( + __in PFX_DRIVER_GLOBALS FxDriverGlobals, + __in USHORT ExtraSize, + __in FxDmaEnabler *DmaEnabler + ); + + virtual + BOOLEAN + Dispose( + VOID + ); + + _Must_inspect_result_ + virtual + NTSTATUS + InitializeResources( + VOID + ); + + _Must_inspect_result_ + virtual + NTSTATUS + StartTransfer( + VOID + ); + + _Must_inspect_result_ + virtual + NTSTATUS + TransferCompleted( + VOID + ); + + _Must_inspect_result_ + virtual + NTSTATUS + StageTransfer( + VOID + ); + + virtual + VOID + ReleaseResources( + __in BOOLEAN ForceRelease + ); + + _Must_inspect_result_ + static + NTSTATUS + _Create( + __in PFX_DRIVER_GLOBALS FxDriverGlobals, + __in PWDF_OBJECT_ATTRIBUTES Attributes, + __in FxDmaEnabler* DmaEnabler, + __out WDFDMATRANSACTION* Transaction + ); + +protected: + + // + // Scatter-Gather list provided by the system. + // + PSCATTER_GATHER_LIST m_SGList; + + // + // Preallocated memory from lookaside buffer for the + // scatter-gather list when running on XP and later OSes. + // + PVOID m_LookasideBuffer; + + +private: + + static + VOID + _AdapterListControl( + __in DEVICE_OBJECT * DeviceObject, + __in IRP * Irp, + __in SCATTER_GATHER_LIST * SgList, + __in VOID * Context + ); + + _Must_inspect_result_ + NTSTATUS + GetScatterGatherList ( + __in PMDL Mdl, + __in size_t CurrentOffset, + __in ULONG Length, + __in PDRIVER_LIST_CONTROL ExecutionRoutine, + __in PVOID Context + ) + { + NTSTATUS status; + KIRQL irql; + + KeRaiseIrql(DISPATCH_LEVEL, &irql); + + if (m_DmaEnabler->UsesDmaV3()) + { + PDMA_OPERATIONS dmaOperations = + m_AdapterInfo->AdapterObject->DmaOperations; + + status = dmaOperations->GetScatterGatherListEx( + m_AdapterInfo->AdapterObject, + m_DmaEnabler->m_FDO, + GetTransferContext(), + Mdl, + CurrentOffset, + Length, + m_Flags, + ExecutionRoutine, + Context, + (BOOLEAN) m_DmaDirection, + NULL, + NULL, + NULL + ); + } + else + { + status = m_AdapterInfo->AdapterObject->DmaOperations-> + GetScatterGatherList(m_AdapterInfo->AdapterObject, + m_DmaEnabler->m_FDO, + Mdl, + GetStartVaFromOffset(Mdl, CurrentOffset), + Length, + ExecutionRoutine, + Context, + (BOOLEAN) m_DmaDirection); + } + + KeLowerIrql(irql); + + return status; + } + + VOID + PutScatterGatherList( + __in PSCATTER_GATHER_LIST ScatterGather + ) + { + KIRQL irql; + + KeRaiseIrql(DISPATCH_LEVEL, &irql); + + m_AdapterInfo->AdapterObject->DmaOperations-> + PutScatterGatherList(m_AdapterInfo->AdapterObject, + ScatterGather, + (BOOLEAN) m_DmaDirection); + KeLowerIrql(irql); + + return; + } + + _Must_inspect_result_ + NTSTATUS + BuildScatterGatherList( + __in PMDL Mdl, + __in size_t CurrentOffset, + __in ULONG Length, + __in PDRIVER_LIST_CONTROL ExecutionRoutine, + __in PVOID Context, + __in PVOID ScatterGatherBuffer, + __in ULONG ScatterGatherBufferLength + ) + { + NTSTATUS status; + KIRQL irql; + + KeRaiseIrql(DISPATCH_LEVEL, &irql); + + if (m_DmaEnabler->UsesDmaV3()) { + + PDMA_OPERATIONS dmaOperations = + m_AdapterInfo->AdapterObject->DmaOperations; + ULONG flags = 0; + + if (GetDriverGlobals()->IsVersionGreaterThanOrEqualTo(1,15)) { + // + // Though the correct behavior is to pass the m_Flags to the + // BuildScatterGatherListEx function, the code was not doing it + // for versions <= 1.13. To reduce any chance of regression, + // the m_Flags is honored for drivers that are 1.15 + // or newer. + // + flags = m_Flags; + } + + status = dmaOperations->BuildScatterGatherListEx( + m_AdapterInfo->AdapterObject, + m_DmaEnabler->m_FDO, + GetTransferContext(), + Mdl, + CurrentOffset, + Length, + flags, + ExecutionRoutine, + Context, + (BOOLEAN) m_DmaDirection, + ScatterGatherBuffer, + ScatterGatherBufferLength, + NULL, + NULL, + NULL + ); + } + else { + + status = m_AdapterInfo->AdapterObject->DmaOperations-> + BuildScatterGatherList(m_AdapterInfo->AdapterObject, + m_DmaEnabler->m_FDO, + Mdl, + GetStartVaFromOffset(Mdl, CurrentOffset), + Length, + ExecutionRoutine, + Context, + (BOOLEAN) m_DmaDirection, + ScatterGatherBuffer, + ScatterGatherBufferLength); + } + + + KeLowerIrql(irql); + + return status; + } +}; + +class FxDmaPacketTransaction : public FxDmaTransactionBase { + +protected: + FxDmaPacketTransaction( + __in PFX_DRIVER_GLOBALS FxDriverGlobals, + __in USHORT ObjectSize, + __in USHORT ExtraSize, + __in FxDmaEnabler *DmaEnabler + ); + +public: + + _Must_inspect_result_ + virtual + NTSTATUS + InitializeResources( + VOID + ); + + _Must_inspect_result_ + NTSTATUS + ReserveAdapter( + __in ULONG NumberOfMapRegisters, + __in WDF_DMA_DIRECTION Direction, + __in PFN_WDF_RESERVE_DMA Callback, + __in_opt PVOID Context + ); + + VOID + ReleaseAdapter( + VOID + ); + + _Must_inspect_result_ + virtual + NTSTATUS + StartTransfer( + VOID + ); + + _Must_inspect_result_ + virtual + NTSTATUS + TransferCompleted( + VOID + ); + + _Must_inspect_result_ + virtual + NTSTATUS + StageTransfer( + VOID + ); + + virtual + VOID + ReleaseResources( + __in BOOLEAN ForceRelease + ); + + _Must_inspect_result_ + static + NTSTATUS + _Create( + __in PFX_DRIVER_GLOBALS FxDriverGlobals, + __in PWDF_OBJECT_ATTRIBUTES Attributes, + __in FxDmaEnabler* DmaEnabler, + __out WDFDMATRANSACTION* Transaction + ); + + VOID + SetDeviceAddressOffset( + __in ULONG Offset + ) + { + m_DeviceAddressOffset = Offset; + } + +protected: + + // + // Number of map registers to be used in this transfer. + // This value is the least of the number of map registers + // needed to satisfy the current transfer request, and the + // number of available map registers returned by IoGetDmaAdapter. + // + ULONG m_MapRegistersNeeded; + + // + // Opaque-value represents the map registers that the system has + // assigned for this transfer operation. We pass this value in + // FlushAdapterBuffers, FreeMapRegisters, and MapTransfer. + // + PVOID m_MapRegisterBase; + + // + // TRUE when the map register base above is valid. The HAL can give + // us a NULL map register base when double buffering isn't required, + // so we can't just do a NULL test on m_MapRegisterBase to know if + // the DMA channel is allocated. + // + BOOLEAN m_MapRegisterBaseSet; + + // + // For system-DMA this provides the offset from the original + // DeviceAddress used to compute the device register to or from which + // DMA should occur. + // + ULONG m_DeviceAddressOffset; + + // + // 0 if the transaction has not reserved the enabler. Otherwise + // this is the number of map registers requested for the reservation. + // This value persists across a reuse and reinitialization of the + // transaction, and is only cleared when the enabler is released. + // + ULONG m_MapRegistersReserved; + + // + // These fields are used to defer completion or staging while another + // thread/CPU is already staging. They are protected by the + // transfer state lock. + // + // These values are cleared when checked, not in InitializeResources. + // It's possible for a transaction being staged to complete on another + // CPU, get reused and reinitialized. Clearing these values in + // InitializeResources would destroy the state the prior call to + // StageTransfer depends on. + // + struct { + + // + // Non-null when a staging operation is in progress on some CPU. + // When set any attempt to call the DMA completion routine or + // stage the transfer again (due to a call to TransferComplete) + // will be deferred to this thread. + // + PKTHREAD CurrentStagingThread; + + // + // Indicates that a nested or concurrent attempt to stage + // the transaction was deferred. The CurrentStagingThread + // will restage the transaction. + // + BOOLEAN RerunStaging; + + // + // Indicates that a nested or concurrent attempt to call the + // DMA completion routine occurred. The CurrentStagingThread + // will call the DMA completion routine when it unwinds providing + // the saved CompletionStatus + // + BOOLEAN RerunCompletion; + DMA_COMPLETION_STATUS CompletionStatus; + + } m_TransferState; + + // + // Indicates that the DMA transfer has been cancelled. + // Set during StopTransfer and cleared during InitializeResources + // Checked during StageTransfer. Stop and Initialize should never + // race (it's not valid for the driver to stop an uninitialized + // transaction). Stop and Stage can race but in that case Stop + // will mark the transaction context such that MapTransfer fails + // (and that's protected by a HAL lock). + // + // So this field does not need to be volatile or interlocked, but + // it needs to be sized to allow atomic writes. + // + ULONG m_IsCancelled; + + + virtual + VOID + Reuse( + VOID + ) + { + return; + } + +protected: + + inline + SetMapRegisterBase( + __in PVOID Value + ) + { + NT_ASSERTMSG("Map register base is already set", + m_MapRegisterBaseSet == FALSE); + + m_MapRegisterBase = Value; + m_MapRegisterBaseSet = TRUE; + } + + inline + ClearMapRegisterBase( + VOID + ) + { + NT_ASSERTMSG("Map register base was not set", + m_MapRegisterBaseSet == TRUE); + m_MapRegisterBaseSet = FALSE; + } + + inline + IsMapRegisterBaseSet( + VOID + ) + { + return m_MapRegisterBaseSet; + } + + inline + PVOID + GetMapRegisterBase( + VOID + ) + { + NT_ASSERTMSG("Map register base is not set", + m_MapRegisterBaseSet == TRUE); + return m_MapRegisterBase; + } + + virtual + IO_ALLOCATION_ACTION + GetAdapterControlReturnValue( + VOID + ) + { + return DeallocateObjectKeepRegisters; + } + + virtual + BOOLEAN + PreMapTransfer( + VOID + ) + { + return TRUE; + } + + _Acquires_lock_(this) + VOID + __drv_raisesIRQL(DISPATCH_LEVEL) +#pragma prefast(suppress:__WARNING_FAILING_TO_ACQUIRE_MEDIUM_CONFIDENCE, "transferring lock name to 'this->TransferStateLock'") +#pragma prefast(suppress:__WARNING_FAILING_TO_RELEASE_MEDIUM_CONFIDENCE, "transferring lock name to 'this->TransferStateLock'") + LockTransferState( + __out __drv_deref(__drv_savesIRQL) KIRQL *OldIrql + ) + { + Lock(OldIrql); + } + + _Requires_lock_held_(this) + _Releases_lock_(this) + VOID +#pragma prefast(suppress:__WARNING_FAILING_TO_RELEASE_MEDIUM_CONFIDENCE, "transferring lock name from 'this->TransferStateLock'") + UnlockTransferState( + __in __drv_restoresIRQL KIRQL OldIrql + ) + { +#pragma prefast(suppress:__WARNING_CALLER_FAILING_TO_HOLD, "transferring lock name from 'this->TransferStateLock'") + Unlock(OldIrql); + } + + virtual + PDMA_COMPLETION_ROUTINE + GetTransferCompletionRoutine( + VOID + ) + { + return NULL; + } + + static + IO_ALLOCATION_ACTION + _AdapterControl( + __in PDEVICE_OBJECT DeviceObject, + __in PIRP Irp, + __in PVOID MapRegisterBase, + __in PVOID Context + ); + + _Must_inspect_result_ + NTSTATUS + AcquireDevice( + VOID + ) + { + if (m_DmaEnabler->UsesDmaV3() == FALSE) + { + return m_DmaEnabler->GetDevice()->AcquireDmaPacketTransaction(); + } + else + { + return STATUS_SUCCESS; + } + } + + FORCEINLINE + VOID + ReleaseDevice( + VOID + ) + { + if (m_DmaEnabler->UsesDmaV3() == FALSE) + { + m_DmaEnabler->GetDevice()->ReleaseDmaPacketTransaction(); + } + } + + _Must_inspect_result_ + NTSTATUS + AllocateAdapterChannel( + __in BOOLEAN MapRegistersReserved + ) + { + NTSTATUS status; + KIRQL irql; + + KeRaiseIrql(DISPATCH_LEVEL, &irql); + + if (GetDriverGlobals()->FxVerifierOn) { + + if (MapRegistersReserved == FALSE) { + DoTraceLevelMessage( + GetDriverGlobals(), TRACE_LEVEL_VERBOSE, TRACINGDMA, + "Allocating %d map registers for " + "WDFDMATRANSACTION %p", + m_MapRegistersNeeded, + GetHandle() + ); + } + else { + DoTraceLevelMessage( + GetDriverGlobals(), TRACE_LEVEL_VERBOSE, TRACINGDMA, + "Using %d reserved map registers for " + "WDFDMATRANSACTION %p", + m_MapRegistersNeeded, + GetHandle() + ); + } + } + + if (m_DmaEnabler->UsesDmaV3()) { + PDMA_OPERATIONS dmaOperations = + m_AdapterInfo->AdapterObject->DmaOperations; + + if (MapRegistersReserved == FALSE) + { + status = dmaOperations->AllocateAdapterChannelEx( + m_AdapterInfo->AdapterObject, + m_DmaEnabler->m_FDO, + GetTransferContext(), + m_MapRegistersNeeded, + m_Flags, +#pragma prefast(suppress: __WARNING_CLASS_MISMATCH_NONE, "This warning requires a wrapper class for the DRIVER_CONTROL type.") + _AdapterControl, + this, + NULL + ); + } + else { +#pragma prefast(suppress:__WARNING_PASSING_FUNCTION_UNEXPECTED_NULL, "_AdapterControl does not actually use the IRP parameter."); + _AdapterControl(m_DmaEnabler->m_FDO, + NULL, + GetMapRegisterBase(), + this); + status = STATUS_SUCCESS; + } + } + else { + + ASSERTMSG("Prereserved map registers are not compatible with DMA V2", + MapRegistersReserved == FALSE); + + status = m_AdapterInfo->AdapterObject->DmaOperations-> + AllocateAdapterChannel(m_AdapterInfo->AdapterObject, + m_DmaEnabler->m_FDO, + m_MapRegistersNeeded, +#pragma prefast(suppress: __WARNING_CLASS_MISMATCH_NONE, "This warning requires a wrapper class for the DRIVER_CONTROL type.") + _AdapterControl, + this); + } + + KeLowerIrql(irql); + + if (!NT_SUCCESS(status)) + { + DoTraceLevelMessage( + GetDriverGlobals(), TRACE_LEVEL_ERROR, TRACINGDMA, + "Allocating DMA resources (%d map registers) for WDFDMATRANSACTION %p " + "returned %!STATUS!", + m_MapRegistersNeeded, + GetHandle(), + status + ); + } + + return status; + } + + FORCEINLINE + NTSTATUS + MapTransfer( + __out_bcount_opt(ScatterGatherListCb) + PSCATTER_GATHER_LIST ScatterGatherList, + __in ULONG ScatterGatherListCb, + __in_opt PDMA_COMPLETION_ROUTINE CompletionRoutine, + __in_opt PVOID CompletionContext, + __out ULONG *TransferLength + ) + { + // + // Cache globals & object handle since call to MapTransferEx could + // result in a DmaComplete callback before returning. + // + PFX_DRIVER_GLOBALS pFxDriverGlobals = GetDriverGlobals(); + WDFDMATRANSACTION handle = GetHandle(); +#if DBG + ULONG_PTR mapRegistersRequired; + + mapRegistersRequired = ADDRESS_AND_SIZE_TO_SPAN_PAGES( + GetStartVaFromOffset(m_CurrentFragmentMdl, + m_CurrentFragmentOffset), + m_CurrentFragmentLength + ); + NT_ASSERTMSG("Mapping requires too many map registers", + mapRegistersRequired <= m_MapRegistersNeeded); +#endif + + NTSTATUS status; + + // + // Assume we're going to transfer the entire current fragment. + // MapTransfer may say otherwise. + // + + *TransferLength = (ULONG) m_CurrentFragmentLength; + + // + // Map the transfer. + // + + if (pFxDriverGlobals->FxVerifierOn) { + DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGDMA, + "Mapping transfer for WDFDMATRANSACTION %p. " + "MDL %p, Offset %I64x, Length %x, MapRegisterBase %p", + handle, + m_CurrentFragmentMdl, + m_CurrentFragmentOffset, + *TransferLength, + GetMapRegisterBase()); + } + + if (m_DmaEnabler->UsesDmaV3()) { + + PDMA_OPERATIONS dmaOperations = + m_AdapterInfo->AdapterObject->DmaOperations; + + status = dmaOperations->MapTransferEx( + m_AdapterInfo->AdapterObject, + m_CurrentFragmentMdl, + GetMapRegisterBase(), + m_CurrentFragmentOffset, + m_DeviceAddressOffset, + TransferLength, + (BOOLEAN) m_DmaDirection, + ScatterGatherList, + ScatterGatherListCb, + CompletionRoutine, + CompletionContext + ); + + NT_ASSERTMSG( + "With these parameters, MapTransferEx should never fail", + NT_SUCCESS(status) || status == STATUS_CANCELLED + ); + } + else { + NT_ASSERTMSG("cannot use DMA completion routine with DMAv2", + CompletionRoutine == NULL); + + NT_ASSERTMSG( + "scatter gather list length must be large enough for at least one element", + (ScatterGatherListCb >= (sizeof(SCATTER_GATHER_LIST) + + sizeof(SCATTER_GATHER_ELEMENT))) + ); + + // + // This matches the assertion above. There's no way to explain to + // prefast that this code path requires the caller to provide a buffer + // of sufficient size to store the SGL. The only case which doesn't + // provide any buffer is system-mode DMA and that uses DMA v3 and so + // won't go through this path. + // + + __assume((ScatterGatherListCb >= (sizeof(SCATTER_GATHER_LIST) + + sizeof(SCATTER_GATHER_ELEMENT)))); + + ScatterGatherList->NumberOfElements = 1; + ScatterGatherList->Reserved = 0; + ScatterGatherList->Elements[0].Address = + m_AdapterInfo->AdapterObject->DmaOperations-> + MapTransfer(m_AdapterInfo->AdapterObject, + m_CurrentFragmentMdl, + GetMapRegisterBase(), + GetStartVaFromOffset(m_CurrentFragmentMdl, + m_CurrentFragmentOffset), + TransferLength, + (BOOLEAN) m_DmaDirection); + ScatterGatherList->Elements[0].Length = *TransferLength; + + status = STATUS_SUCCESS; + } + + if (pFxDriverGlobals->FxVerifierOn) { + DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGDMA, + "MapTransfer mapped next %d bytes of " + "WDFDMATRANSACTION %p - status %!STATUS!", + *TransferLength, + handle, + status); + } + + return status; + } + + FORCEINLINE + NTSTATUS + FlushAdapterBuffers( + VOID + ) + { + PDMA_OPERATIONS dmaOperations = + m_AdapterInfo->AdapterObject->DmaOperations; + + NTSTATUS status; + +#if DBG + ULONG_PTR mapRegistersRequired; + + mapRegistersRequired = ADDRESS_AND_SIZE_TO_SPAN_PAGES( + GetStartVaFromOffset(m_CurrentFragmentMdl, + m_CurrentFragmentOffset), + m_CurrentFragmentLength + ); + NT_ASSERTMSG("Mapping requires too many map registers", + mapRegistersRequired <= m_MapRegistersNeeded); +#endif + + if (GetDriverGlobals()->FxVerifierOn) { + DoTraceLevelMessage(GetDriverGlobals(), TRACE_LEVEL_VERBOSE, TRACINGDMA, + "Flushing DMA buffers for WDFDMATRANSACTION %p. " + "MDL %p, Offset %I64x, Length %I64x", + GetHandle(), + m_CurrentFragmentMdl, + m_CurrentFragmentOffset, + m_CurrentFragmentLength); + } + + if (m_DmaEnabler->UsesDmaV3()) { + status = dmaOperations->FlushAdapterBuffersEx( + m_AdapterInfo->AdapterObject, + m_CurrentFragmentMdl, + GetMapRegisterBase(), + m_CurrentFragmentOffset, + (ULONG) m_CurrentFragmentLength, + (BOOLEAN) m_DmaDirection + ); + } + else if (dmaOperations->FlushAdapterBuffers( + m_AdapterInfo->AdapterObject, + m_CurrentFragmentMdl, + GetMapRegisterBase(), + GetStartVaFromOffset(m_CurrentFragmentMdl, + m_CurrentFragmentOffset), + (ULONG) m_CurrentFragmentLength, + (BOOLEAN) m_DmaDirection) == FALSE) { + status = STATUS_UNSUCCESSFUL; + } + else { + status = STATUS_SUCCESS; + } + + if (!NT_SUCCESS(status)) { + DoTraceLevelMessage(GetDriverGlobals(), TRACE_LEVEL_ERROR, TRACINGDMA, + "Flushing DMA buffers for WDFDMATRANSACTION %p (" + "MDL %p, Offset %I64x, Length %I64x)" + "completed with %!STATUS!", + GetHandle(), + m_CurrentFragmentMdl, + m_CurrentFragmentOffset, + m_CurrentFragmentLength, + status); + } + + return status; + } + + virtual + VOID + FreeMapRegistersAndAdapter( + VOID + ) + { + KIRQL irql; + + PVOID mapRegisterBase = GetMapRegisterBase(); + + // + // It's illegal to free a NULL map register base, even if the HAL gave it + // to us. + // + if (mapRegisterBase == NULL) { + if (GetDriverGlobals()->FxVerifierOn) { + DoTraceLevelMessage(GetDriverGlobals(), TRACE_LEVEL_VERBOSE, TRACINGDMA, + "Skipping free of %d map registers for WDFDMATRANSACTION %p " + "because base was NULL", + m_MapRegistersNeeded, + GetHandle()); + } + + return; + } + + // + // Free the map registers + // + KeRaiseIrql(DISPATCH_LEVEL, &irql); + + if (GetDriverGlobals()->FxVerifierOn) { + DoTraceLevelMessage(GetDriverGlobals(), TRACE_LEVEL_VERBOSE, TRACINGDMA, + "Freeing %d map registers for WDFDMATRANSACTION %p " + "(base %p)", + m_MapRegistersNeeded, + GetHandle(), + mapRegisterBase); + } + + // + // If we pre-reserved map registers then Reserved contains + // the number to free. Otherwise Needed is the number allocated + // for the last transaction, which is the number to free. + // + m_AdapterInfo->AdapterObject->DmaOperations-> + FreeMapRegisters(m_AdapterInfo->AdapterObject, + mapRegisterBase, + (m_MapRegistersReserved > 0 ? + m_MapRegistersReserved : + m_MapRegistersNeeded)); + KeLowerIrql(irql); + + return; + } + + virtual + VOID + CallEvtDmaCompleted( + __in DMA_COMPLETION_STATUS /* Status */ + ) + { + // + // Packet mode DMA doesn't support cancellation or + // completion routines. So this should never run. + // + ASSERTMSG("EvtDmaCompleted is not a valid callback for " + "a packet-mode transaction", + FALSE); + return; + } + +}; + +class FxDmaSystemTransaction: public FxDmaPacketTransaction { + + friend FxDmaPacketTransaction; + +public: + + FxDmaSystemTransaction( + __in PFX_DRIVER_GLOBALS FxDriverGlobals, + __in USHORT ExtraSize, + __in FxDmaEnabler *DmaEnabler + ); + + _Must_inspect_result_ + static + NTSTATUS + _Create( + __in PFX_DRIVER_GLOBALS FxDriverGlobals, + __in PWDF_OBJECT_ATTRIBUTES Attributes, + __in FxDmaEnabler* DmaEnabler, + __out WDFDMATRANSACTION* Transaction + ); + + VOID + SetConfigureChannelCallback( + __in_opt PFN_WDF_DMA_TRANSACTION_CONFIGURE_DMA_CHANNEL Callback, + __in_opt PVOID Context + ) + { + m_ConfigureChannelFunction.Method = Callback; + m_ConfigureChannelContext = Context; + } + + VOID + SetTransferCompleteCallback( + __in_opt PFN_WDF_DMA_TRANSACTION_DMA_TRANSFER_COMPLETE Callback, + __in_opt PVOID Context + ) + { + m_TransferCompleteFunction.Method = Callback; + m_TransferCompleteContext = Context; + } + + VOID + StopTransfer( + VOID + ); + +protected: + + // + // Callback and context for configure channel callback + // + FxDmaTransactionConfigureChannel m_ConfigureChannelFunction; + PVOID m_ConfigureChannelContext; + + // + // Callback and context for DMA completion callback + // + FxDmaTransactionTransferComplete m_TransferCompleteFunction; + PVOID m_TransferCompleteContext; + + IO_ALLOCATION_ACTION + GetAdapterControlReturnValue( + VOID + ) + { + return KeepObject; + } + + VOID + FreeMapRegistersAndAdapter( + VOID + ) + { + PFX_DRIVER_GLOBALS pFxDriverGlobals = GetDriverGlobals(); + KIRQL irql; + + KeRaiseIrql(DISPATCH_LEVEL, &irql); + + if (pFxDriverGlobals->FxVerifierOn) { + DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGDMA, + "Freeing adapter channel for WDFDMATRANSACTION %p", + GetHandle()); + } + + m_AdapterInfo->AdapterObject->DmaOperations-> + FreeAdapterChannel(m_AdapterInfo->AdapterObject); + KeLowerIrql(irql); + + return; + } + + BOOLEAN + CancelMappedTransfer( + VOID + ) + { + NTSTATUS status; + + ASSERT(m_DmaEnabler->UsesDmaV3()); + + // + // Cancel the transfer. if it's not yet mapped this will mark the + // TC so that mapping will fail. If it's running this will invoke the + // DMA completion routine. + // + status = + m_AdapterInfo->AdapterObject->DmaOperations->CancelMappedTransfer( + m_AdapterInfo->AdapterObject, + GetTransferContext() + ); + + DoTraceLevelMessage(GetDriverGlobals(), TRACE_LEVEL_VERBOSE, TRACINGDMA, + "Stopping WDFDMATRANSACTION %p returned status %!STATUS!", + GetHandle(), + status); + + return NT_SUCCESS(status); + } + + VOID + Reuse( + VOID + ) + { + __super::Reuse(); + m_ConfigureChannelFunction.Method = NULL; + m_ConfigureChannelContext = NULL; + + m_TransferCompleteFunction.Method = NULL; + m_TransferCompleteContext = NULL; + } + + VOID + CallEvtDmaCompleted( + __in DMA_COMPLETION_STATUS Status + ); + + virtual + BOOLEAN + PreMapTransfer( + VOID + ); + + virtual + PDMA_COMPLETION_ROUTINE + GetTransferCompletionRoutine( + VOID + ); + + static DMA_COMPLETION_ROUTINE _SystemDmaCompletion; +}; + +#endif // _FXDMATRANSACTION_HPP_ diff --git a/sdk/lib/drivers/wdf/kmdf/inc/private/fxdmatransactioncallbacks.hpp b/sdk/lib/drivers/wdf/kmdf/inc/private/fxdmatransactioncallbacks.hpp new file mode 100644 index 00000000000..189528c3d3d --- /dev/null +++ b/sdk/lib/drivers/wdf/kmdf/inc/private/fxdmatransactioncallbacks.hpp @@ -0,0 +1,168 @@ +/*++ + +Copyright (c) Microsoft Corporation + +Module Name: + + FxDmaTransactionCallbacks.h + +Abstract: + + This module implements the FxDmaTransaction object callbacks + +Environment: + + kernel mode only + +Revision History: + +--*/ + +#ifndef _FXDMATRANSACTIONCALLBACKS_H +#define _FXDMATRANSACTIONCALLBACKS_H + +// +// FxDmaTransactionProgramDma or FxDmaTransactionReserveDma callback delegate +// These are mutually exclusive callbacks and are packed together in +// the callback structure (C++ won't allow two classes with constructors +// to be together in a union, so the containing class can't do the +// packing) +// +class FxDmaTransactionProgramOrReserveDma : public FxCallback { + +public: + union { + PFN_WDF_PROGRAM_DMA ProgramDma; + PFN_WDF_RESERVE_DMA ReserveDma; + } Method; + + FxDmaTransactionProgramOrReserveDma( + VOID + ) : + FxCallback() + { + Method.ProgramDma = NULL; + } + + BOOLEAN + InvokeProgramDma( + __in WDFDMATRANSACTION Transaction, + __in WDFDEVICE Device, + __in PVOID Context, + __in WDF_DMA_DIRECTION Direction, + __in PSCATTER_GATHER_LIST SgList + ) + { + if (Method.ProgramDma) { + BOOLEAN cc; + + CallbackStart(); + cc = Method.ProgramDma( Transaction, + Device, + Context, + Direction, + SgList ); + CallbackEnd(); + + return cc; + } + else { + return FALSE; + } + } + + VOID + InvokeReserveDma( + __in WDFDMATRANSACTION Transaction, + __in PVOID Context + ) + { + if (Method.ReserveDma) { + CallbackStart(); + Method.ReserveDma( Transaction, Context ); + CallbackEnd(); + } + } + + VOID + Clear( + VOID + ) + { + Method.ProgramDma = NULL; + } +}; + +// +// FxDmaTransactionConfigureChannel callback delegate +// + +class FxDmaTransactionConfigureChannel : public FxCallback { + +public: + PFN_WDF_DMA_TRANSACTION_CONFIGURE_DMA_CHANNEL Method; + + FxDmaTransactionConfigureChannel( + VOID + ) : + FxCallback() + { + Method = NULL; + } + + _Must_inspect_result_ + BOOLEAN + Invoke( + __in WDFDMATRANSACTION DmaTransaction, + __in WDFDEVICE Device, + __in PVOID Context, + __in_opt PMDL Mdl, + __in size_t Offset, + __in size_t Length + ) + { + BOOLEAN b = TRUE; + if (Method) { + CallbackStart(); + b = Method( DmaTransaction, Device, Context, Mdl, Offset, Length ); + CallbackEnd(); + } + return b; + } +}; + +// +// FxDmaTransactionTransferComplete callback delegate +// + +class FxDmaTransactionTransferComplete : public FxCallback { + +public: + PFN_WDF_DMA_TRANSACTION_DMA_TRANSFER_COMPLETE Method; + + FxDmaTransactionTransferComplete( + VOID + ) : + FxCallback() + { + Method = NULL; + } + + VOID + Invoke( + __in WDFDMATRANSACTION Transaction, + __in WDFDEVICE Device, + __in WDFCONTEXT Context, + __in WDF_DMA_DIRECTION Direction, + __in DMA_COMPLETION_STATUS Status + ) + { + if (Method) { + CallbackStart(); + Method( Transaction, Device, Context, Direction, Status ); + CallbackEnd(); + } + } +}; + +#endif // _FXDMATRANSACTIONCALLBACKS_H diff --git a/sdk/lib/drivers/wdf/kmdf/inc/private/fxdpc.hpp b/sdk/lib/drivers/wdf/kmdf/inc/private/fxdpc.hpp new file mode 100644 index 00000000000..97933d35447 --- /dev/null +++ b/sdk/lib/drivers/wdf/kmdf/inc/private/fxdpc.hpp @@ -0,0 +1,201 @@ +/*++ + +Copyright (c) Microsoft Corporation + +Module Name: + + FxDpc.hpp + +Abstract: + + This module implements a frameworks managed DPC that + can synchrononize with driver frameworks object locks. + +Author: + + + +Environment: + + kernel mode only + +Revision History: + + +--*/ + +#ifndef _FXDPC_H_ +#define _FXDPC_H_ + +// +// Driver Frameworks DPC Design: +// +// The driver frameworks provides an optional DPC wrapper object that allows +// the creation of a reference counted DPC object that can synchronize +// automatically with certain frameworks objects. +// +// This provides automatic synchronization between the DPC's execution, and the +// frameworks objects' event callbacks into the device driver. +// +// The WDFDPC object is designed to be re-useable, in which it can be re-linked +// into the DPC queue after firing. +// +// In many cases, the KDPC struct is embedded inside another structure that +// represents a device command block. These device command blocks are typically +// submitted to another device driver. So the calling driver, which is utilizing +// the driver frameworks would not likely have an opportunity to make +// changes to this. In order to support this, the caller can optionally supply +// a DPC object pointer to Initialize, and the WDFDPC object will use this +// embedded user supplied DPC object, and pass its address as the RawDpc +// parameter to the callback function. +// +// If the user does not supply a DPC pointer by passing NULL, then the +// internal DPC object is used, and RawDPC is NULL. +// +// Calling GetDpcPtr returns the DPC to be used, and could be +// the caller supplied DPC, or the embedded one depending on +// whether the caller supplied a user DPC pointer to Initialize. +// +// The GetDpcPtr allows linking of the WDFDPC object into various DPC +// lists by the driver. +// + +class FxDpc : public FxNonPagedObject { + +private: + + KDPC m_Dpc; + + // + // This is the Framework object who is associated with the DPC + // if supplied + // + FxObject* m_Object; + + // + // This is the callback lock for the object this DPC will + // synchronize with + // + FxCallbackLock* m_CallbackLock; + + // + // This is the object whose reference count actually controls + // the lifetime of the m_CallbackLock + // + FxObject* m_CallbackLockObject; + + // + // This is the user supplied callback function + // + PFN_WDF_DPC m_Callback; + + // Ensures only one of either Delete or Cleanup runs down the object + BOOLEAN m_RunningDown; + +public: + static + _Must_inspect_result_ + NTSTATUS + _Create( + __in PFX_DRIVER_GLOBALS FxDriverGlobals, + __in PWDF_DPC_CONFIG Config, + __in PWDF_OBJECT_ATTRIBUTES Attributes, + __in FxObject* ParentObject, + __out WDFDPC* Dpc + ); + + FxDpc( + __in PFX_DRIVER_GLOBALS FxDriverGlobals + ); + + virtual + ~FxDpc( + VOID + ); + + KDPC* + GetDpcPtr( + VOID + ) + { + return &m_Dpc; + } + + WDFOBJECT + GetObject( + VOID + ) + { + if (m_Object != NULL) { + return m_Object->GetObjectHandle(); + } + else { + return NULL; + } + } + +/*++ + +Routine Description: + + Initialize the DPC using either the caller supplied DPC + struct, or if NULL, our own internal one. + +Arguments: + +Returns: + + NTSTATUS + +--*/ + _Must_inspect_result_ + NTSTATUS + Initialize( + __in PWDF_OBJECT_ATTRIBUTES Attributes, + __in PWDF_DPC_CONFIG Config, + __in FxObject* ParentObject, + __out WDFDPC* Dpc + ); + + virtual + BOOLEAN + Dispose( + VOID + ); + + BOOLEAN + Cancel( + __in BOOLEAN Wait + ); + + VOID + DpcHandler( + __in PKDPC Dpc, + __in PVOID SystemArgument1, + __in PVOID SystemArgument2 + ); + +private: + + // + // Called from Dispose, or cleanup list to perform final flushing of any + // outstanding DPC's and dereferencing of objects. + // + VOID + FlushAndRundown( + ); + + static + KDEFERRED_ROUTINE + FxDpcThunk; + + static + VOID + WorkItemThunk( + PDEVICE_OBJECT DeviceObject, + PVOID Context + ); +}; + +#endif // _FXDPC_H_ + diff --git a/sdk/lib/drivers/wdf/kmdf/inc/private/fxdynamics.h b/sdk/lib/drivers/wdf/kmdf/inc/private/fxdynamics.h new file mode 100644 index 00000000000..35a3564dab3 --- /dev/null +++ b/sdk/lib/drivers/wdf/kmdf/inc/private/fxdynamics.h @@ -0,0 +1,6943 @@ +/*++ + +Module Name: FxDynamics.h + +Abstract: + Generated header for WDF APIs + +Environment: + kernel mode only + + Warning: manual changes to this file will be lost. +--*/ + +#ifndef _FXDYNAMICS_H_ +#define _FXDYNAMICS_H_ + + +typedef struct _WDFFUNCTIONS { + + PFN_WDFCHILDLISTCREATE pfnWdfChildListCreate; + PFN_WDFCHILDLISTGETDEVICE pfnWdfChildListGetDevice; + PFN_WDFCHILDLISTRETRIEVEPDO pfnWdfChildListRetrievePdo; + PFN_WDFCHILDLISTRETRIEVEADDRESSDESCRIPTION pfnWdfChildListRetrieveAddressDescription; + PFN_WDFCHILDLISTBEGINSCAN pfnWdfChildListBeginScan; + PFN_WDFCHILDLISTENDSCAN pfnWdfChildListEndScan; + PFN_WDFCHILDLISTBEGINITERATION pfnWdfChildListBeginIteration; + PFN_WDFCHILDLISTRETRIEVENEXTDEVICE pfnWdfChildListRetrieveNextDevice; + PFN_WDFCHILDLISTENDITERATION pfnWdfChildListEndIteration; + PFN_WDFCHILDLISTADDORUPDATECHILDDESCRIPTIONASPRESENT pfnWdfChildListAddOrUpdateChildDescriptionAsPresent; + PFN_WDFCHILDLISTUPDATECHILDDESCRIPTIONASMISSING pfnWdfChildListUpdateChildDescriptionAsMissing; + PFN_WDFCHILDLISTUPDATEALLCHILDDESCRIPTIONSASPRESENT pfnWdfChildListUpdateAllChildDescriptionsAsPresent; + PFN_WDFCHILDLISTREQUESTCHILDEJECT pfnWdfChildListRequestChildEject; + PFN_WDFCOLLECTIONCREATE pfnWdfCollectionCreate; + PFN_WDFCOLLECTIONGETCOUNT pfnWdfCollectionGetCount; + PFN_WDFCOLLECTIONADD pfnWdfCollectionAdd; + PFN_WDFCOLLECTIONREMOVE pfnWdfCollectionRemove; + PFN_WDFCOLLECTIONREMOVEITEM pfnWdfCollectionRemoveItem; + PFN_WDFCOLLECTIONGETITEM pfnWdfCollectionGetItem; + PFN_WDFCOLLECTIONGETFIRSTITEM pfnWdfCollectionGetFirstItem; + PFN_WDFCOLLECTIONGETLASTITEM pfnWdfCollectionGetLastItem; + PFN_WDFCOMMONBUFFERCREATE pfnWdfCommonBufferCreate; + PFN_WDFCOMMONBUFFERGETALIGNEDVIRTUALADDRESS pfnWdfCommonBufferGetAlignedVirtualAddress; + PFN_WDFCOMMONBUFFERGETALIGNEDLOGICALADDRESS pfnWdfCommonBufferGetAlignedLogicalAddress; + PFN_WDFCOMMONBUFFERGETLENGTH pfnWdfCommonBufferGetLength; + PFN_WDFCONTROLDEVICEINITALLOCATE pfnWdfControlDeviceInitAllocate; + PFN_WDFCONTROLDEVICEINITSETSHUTDOWNNOTIFICATION pfnWdfControlDeviceInitSetShutdownNotification; + PFN_WDFCONTROLFINISHINITIALIZING pfnWdfControlFinishInitializing; + PFN_WDFDEVICEGETDEVICESTATE pfnWdfDeviceGetDeviceState; + PFN_WDFDEVICESETDEVICESTATE pfnWdfDeviceSetDeviceState; + PFN_WDFWDMDEVICEGETWDFDEVICEHANDLE pfnWdfWdmDeviceGetWdfDeviceHandle; + PFN_WDFDEVICEWDMGETDEVICEOBJECT pfnWdfDeviceWdmGetDeviceObject; + PFN_WDFDEVICEWDMGETATTACHEDDEVICE pfnWdfDeviceWdmGetAttachedDevice; + PFN_WDFDEVICEWDMGETPHYSICALDEVICE pfnWdfDeviceWdmGetPhysicalDevice; + PFN_WDFDEVICEWDMDISPATCHPREPROCESSEDIRP pfnWdfDeviceWdmDispatchPreprocessedIrp; + PFN_WDFDEVICEADDDEPENDENTUSAGEDEVICEOBJECT pfnWdfDeviceAddDependentUsageDeviceObject; + PFN_WDFDEVICEADDREMOVALRELATIONSPHYSICALDEVICE pfnWdfDeviceAddRemovalRelationsPhysicalDevice; + PFN_WDFDEVICEREMOVEREMOVALRELATIONSPHYSICALDEVICE pfnWdfDeviceRemoveRemovalRelationsPhysicalDevice; + PFN_WDFDEVICECLEARREMOVALRELATIONSDEVICES pfnWdfDeviceClearRemovalRelationsDevices; + PFN_WDFDEVICEGETDRIVER pfnWdfDeviceGetDriver; + PFN_WDFDEVICERETRIEVEDEVICENAME pfnWdfDeviceRetrieveDeviceName; + PFN_WDFDEVICEASSIGNMOFRESOURCENAME pfnWdfDeviceAssignMofResourceName; + PFN_WDFDEVICEGETIOTARGET pfnWdfDeviceGetIoTarget; + PFN_WDFDEVICEGETDEVICEPNPSTATE pfnWdfDeviceGetDevicePnpState; + PFN_WDFDEVICEGETDEVICEPOWERSTATE pfnWdfDeviceGetDevicePowerState; + PFN_WDFDEVICEGETDEVICEPOWERPOLICYSTATE pfnWdfDeviceGetDevicePowerPolicyState; + PFN_WDFDEVICEASSIGNS0IDLESETTINGS pfnWdfDeviceAssignS0IdleSettings; + PFN_WDFDEVICEASSIGNSXWAKESETTINGS pfnWdfDeviceAssignSxWakeSettings; + PFN_WDFDEVICEOPENREGISTRYKEY pfnWdfDeviceOpenRegistryKey; + PFN_WDFDEVICESETSPECIALFILESUPPORT pfnWdfDeviceSetSpecialFileSupport; + PFN_WDFDEVICESETCHARACTERISTICS pfnWdfDeviceSetCharacteristics; + PFN_WDFDEVICEGETCHARACTERISTICS pfnWdfDeviceGetCharacteristics; + PFN_WDFDEVICEGETALIGNMENTREQUIREMENT pfnWdfDeviceGetAlignmentRequirement; + PFN_WDFDEVICESETALIGNMENTREQUIREMENT pfnWdfDeviceSetAlignmentRequirement; + PFN_WDFDEVICEINITFREE pfnWdfDeviceInitFree; + PFN_WDFDEVICEINITSETPNPPOWEREVENTCALLBACKS pfnWdfDeviceInitSetPnpPowerEventCallbacks; + PFN_WDFDEVICEINITSETPOWERPOLICYEVENTCALLBACKS pfnWdfDeviceInitSetPowerPolicyEventCallbacks; + PFN_WDFDEVICEINITSETPOWERPOLICYOWNERSHIP pfnWdfDeviceInitSetPowerPolicyOwnership; + PFN_WDFDEVICEINITREGISTERPNPSTATECHANGECALLBACK pfnWdfDeviceInitRegisterPnpStateChangeCallback; + PFN_WDFDEVICEINITREGISTERPOWERSTATECHANGECALLBACK pfnWdfDeviceInitRegisterPowerStateChangeCallback; + PFN_WDFDEVICEINITREGISTERPOWERPOLICYSTATECHANGECALLBACK pfnWdfDeviceInitRegisterPowerPolicyStateChangeCallback; + PFN_WDFDEVICEINITSETIOTYPE pfnWdfDeviceInitSetIoType; + PFN_WDFDEVICEINITSETEXCLUSIVE pfnWdfDeviceInitSetExclusive; + PFN_WDFDEVICEINITSETPOWERNOTPAGEABLE pfnWdfDeviceInitSetPowerNotPageable; + PFN_WDFDEVICEINITSETPOWERPAGEABLE pfnWdfDeviceInitSetPowerPageable; + PFN_WDFDEVICEINITSETPOWERINRUSH pfnWdfDeviceInitSetPowerInrush; + PFN_WDFDEVICEINITSETDEVICETYPE pfnWdfDeviceInitSetDeviceType; + PFN_WDFDEVICEINITASSIGNNAME pfnWdfDeviceInitAssignName; + PFN_WDFDEVICEINITASSIGNSDDLSTRING pfnWdfDeviceInitAssignSDDLString; + PFN_WDFDEVICEINITSETDEVICECLASS pfnWdfDeviceInitSetDeviceClass; + PFN_WDFDEVICEINITSETCHARACTERISTICS pfnWdfDeviceInitSetCharacteristics; + PFN_WDFDEVICEINITSETFILEOBJECTCONFIG pfnWdfDeviceInitSetFileObjectConfig; + PFN_WDFDEVICEINITSETREQUESTATTRIBUTES pfnWdfDeviceInitSetRequestAttributes; + PFN_WDFDEVICEINITASSIGNWDMIRPPREPROCESSCALLBACK pfnWdfDeviceInitAssignWdmIrpPreprocessCallback; + PFN_WDFDEVICEINITSETIOINCALLERCONTEXTCALLBACK pfnWdfDeviceInitSetIoInCallerContextCallback; + PFN_WDFDEVICECREATE pfnWdfDeviceCreate; + PFN_WDFDEVICESETSTATICSTOPREMOVE pfnWdfDeviceSetStaticStopRemove; + PFN_WDFDEVICECREATEDEVICEINTERFACE pfnWdfDeviceCreateDeviceInterface; + PFN_WDFDEVICESETDEVICEINTERFACESTATE pfnWdfDeviceSetDeviceInterfaceState; + PFN_WDFDEVICERETRIEVEDEVICEINTERFACESTRING pfnWdfDeviceRetrieveDeviceInterfaceString; + PFN_WDFDEVICECREATESYMBOLICLINK pfnWdfDeviceCreateSymbolicLink; + PFN_WDFDEVICEQUERYPROPERTY pfnWdfDeviceQueryProperty; + PFN_WDFDEVICEALLOCANDQUERYPROPERTY pfnWdfDeviceAllocAndQueryProperty; + PFN_WDFDEVICESETPNPCAPABILITIES pfnWdfDeviceSetPnpCapabilities; + PFN_WDFDEVICESETPOWERCAPABILITIES pfnWdfDeviceSetPowerCapabilities; + PFN_WDFDEVICESETBUSINFORMATIONFORCHILDREN pfnWdfDeviceSetBusInformationForChildren; + PFN_WDFDEVICEINDICATEWAKESTATUS pfnWdfDeviceIndicateWakeStatus; + PFN_WDFDEVICESETFAILED pfnWdfDeviceSetFailed; + PFN_WDFDEVICESTOPIDLENOTRACK pfnWdfDeviceStopIdleNoTrack; + PFN_WDFDEVICERESUMEIDLENOTRACK pfnWdfDeviceResumeIdleNoTrack; + PFN_WDFDEVICEGETFILEOBJECT pfnWdfDeviceGetFileObject; + PFN_WDFDEVICEENQUEUEREQUEST pfnWdfDeviceEnqueueRequest; + PFN_WDFDEVICEGETDEFAULTQUEUE pfnWdfDeviceGetDefaultQueue; + PFN_WDFDEVICECONFIGUREREQUESTDISPATCHING pfnWdfDeviceConfigureRequestDispatching; + PFN_WDFDMAENABLERCREATE pfnWdfDmaEnablerCreate; + PFN_WDFDMAENABLERGETMAXIMUMLENGTH pfnWdfDmaEnablerGetMaximumLength; + PFN_WDFDMAENABLERGETMAXIMUMSCATTERGATHERELEMENTS pfnWdfDmaEnablerGetMaximumScatterGatherElements; + PFN_WDFDMAENABLERSETMAXIMUMSCATTERGATHERELEMENTS pfnWdfDmaEnablerSetMaximumScatterGatherElements; + PFN_WDFDMATRANSACTIONCREATE pfnWdfDmaTransactionCreate; + PFN_WDFDMATRANSACTIONINITIALIZE pfnWdfDmaTransactionInitialize; + PFN_WDFDMATRANSACTIONINITIALIZEUSINGREQUEST pfnWdfDmaTransactionInitializeUsingRequest; + PFN_WDFDMATRANSACTIONEXECUTE pfnWdfDmaTransactionExecute; + PFN_WDFDMATRANSACTIONRELEASE pfnWdfDmaTransactionRelease; + PFN_WDFDMATRANSACTIONDMACOMPLETED pfnWdfDmaTransactionDmaCompleted; + PFN_WDFDMATRANSACTIONDMACOMPLETEDWITHLENGTH pfnWdfDmaTransactionDmaCompletedWithLength; + PFN_WDFDMATRANSACTIONDMACOMPLETEDFINAL pfnWdfDmaTransactionDmaCompletedFinal; + PFN_WDFDMATRANSACTIONGETBYTESTRANSFERRED pfnWdfDmaTransactionGetBytesTransferred; + PFN_WDFDMATRANSACTIONSETMAXIMUMLENGTH pfnWdfDmaTransactionSetMaximumLength; + PFN_WDFDMATRANSACTIONGETREQUEST pfnWdfDmaTransactionGetRequest; + PFN_WDFDMATRANSACTIONGETCURRENTDMATRANSFERLENGTH pfnWdfDmaTransactionGetCurrentDmaTransferLength; + PFN_WDFDMATRANSACTIONGETDEVICE pfnWdfDmaTransactionGetDevice; + PFN_WDFDPCCREATE pfnWdfDpcCreate; + PFN_WDFDPCENQUEUE pfnWdfDpcEnqueue; + PFN_WDFDPCCANCEL pfnWdfDpcCancel; + PFN_WDFDPCGETPARENTOBJECT pfnWdfDpcGetParentObject; + PFN_WDFDPCWDMGETDPC pfnWdfDpcWdmGetDpc; + PFN_WDFDRIVERCREATE pfnWdfDriverCreate; + PFN_WDFDRIVERGETREGISTRYPATH pfnWdfDriverGetRegistryPath; + PFN_WDFDRIVERWDMGETDRIVEROBJECT pfnWdfDriverWdmGetDriverObject; + PFN_WDFDRIVEROPENPARAMETERSREGISTRYKEY pfnWdfDriverOpenParametersRegistryKey; + PFN_WDFWDMDRIVERGETWDFDRIVERHANDLE pfnWdfWdmDriverGetWdfDriverHandle; + PFN_WDFDRIVERREGISTERTRACEINFO pfnWdfDriverRegisterTraceInfo; + PFN_WDFDRIVERRETRIEVEVERSIONSTRING pfnWdfDriverRetrieveVersionString; + PFN_WDFDRIVERISVERSIONAVAILABLE pfnWdfDriverIsVersionAvailable; + PFN_WDFFDOINITWDMGETPHYSICALDEVICE pfnWdfFdoInitWdmGetPhysicalDevice; + PFN_WDFFDOINITOPENREGISTRYKEY pfnWdfFdoInitOpenRegistryKey; + PFN_WDFFDOINITQUERYPROPERTY pfnWdfFdoInitQueryProperty; + PFN_WDFFDOINITALLOCANDQUERYPROPERTY pfnWdfFdoInitAllocAndQueryProperty; + PFN_WDFFDOINITSETEVENTCALLBACKS pfnWdfFdoInitSetEventCallbacks; + PFN_WDFFDOINITSETFILTER pfnWdfFdoInitSetFilter; + PFN_WDFFDOINITSETDEFAULTCHILDLISTCONFIG pfnWdfFdoInitSetDefaultChildListConfig; + PFN_WDFFDOQUERYFORINTERFACE pfnWdfFdoQueryForInterface; + PFN_WDFFDOGETDEFAULTCHILDLIST pfnWdfFdoGetDefaultChildList; + PFN_WDFFDOADDSTATICCHILD pfnWdfFdoAddStaticChild; + PFN_WDFFDOLOCKSTATICCHILDLISTFORITERATION pfnWdfFdoLockStaticChildListForIteration; + PFN_WDFFDORETRIEVENEXTSTATICCHILD pfnWdfFdoRetrieveNextStaticChild; + PFN_WDFFDOUNLOCKSTATICCHILDLISTFROMITERATION pfnWdfFdoUnlockStaticChildListFromIteration; + PFN_WDFFILEOBJECTGETFILENAME pfnWdfFileObjectGetFileName; + PFN_WDFFILEOBJECTGETFLAGS pfnWdfFileObjectGetFlags; + PFN_WDFFILEOBJECTGETDEVICE pfnWdfFileObjectGetDevice; + PFN_WDFFILEOBJECTWDMGETFILEOBJECT pfnWdfFileObjectWdmGetFileObject; + PFN_WDFINTERRUPTCREATE pfnWdfInterruptCreate; + PFN_WDFINTERRUPTQUEUEDPCFORISR pfnWdfInterruptQueueDpcForIsr; + PFN_WDFINTERRUPTSYNCHRONIZE pfnWdfInterruptSynchronize; + PFN_WDFINTERRUPTACQUIRELOCK pfnWdfInterruptAcquireLock; + PFN_WDFINTERRUPTRELEASELOCK pfnWdfInterruptReleaseLock; + PFN_WDFINTERRUPTENABLE pfnWdfInterruptEnable; + PFN_WDFINTERRUPTDISABLE pfnWdfInterruptDisable; + PFN_WDFINTERRUPTWDMGETINTERRUPT pfnWdfInterruptWdmGetInterrupt; + PFN_WDFINTERRUPTGETINFO pfnWdfInterruptGetInfo; + PFN_WDFINTERRUPTSETPOLICY pfnWdfInterruptSetPolicy; + PFN_WDFINTERRUPTGETDEVICE pfnWdfInterruptGetDevice; + PFN_WDFIOQUEUECREATE pfnWdfIoQueueCreate; + PFN_WDFIOQUEUEGETSTATE pfnWdfIoQueueGetState; + PFN_WDFIOQUEUESTART pfnWdfIoQueueStart; + PFN_WDFIOQUEUESTOP pfnWdfIoQueueStop; + PFN_WDFIOQUEUESTOPSYNCHRONOUSLY pfnWdfIoQueueStopSynchronously; + PFN_WDFIOQUEUEGETDEVICE pfnWdfIoQueueGetDevice; + PFN_WDFIOQUEUERETRIEVENEXTREQUEST pfnWdfIoQueueRetrieveNextRequest; + PFN_WDFIOQUEUERETRIEVEREQUESTBYFILEOBJECT pfnWdfIoQueueRetrieveRequestByFileObject; + PFN_WDFIOQUEUEFINDREQUEST pfnWdfIoQueueFindRequest; + PFN_WDFIOQUEUERETRIEVEFOUNDREQUEST pfnWdfIoQueueRetrieveFoundRequest; + PFN_WDFIOQUEUEDRAINSYNCHRONOUSLY pfnWdfIoQueueDrainSynchronously; + PFN_WDFIOQUEUEDRAIN pfnWdfIoQueueDrain; + PFN_WDFIOQUEUEPURGESYNCHRONOUSLY pfnWdfIoQueuePurgeSynchronously; + PFN_WDFIOQUEUEPURGE pfnWdfIoQueuePurge; + PFN_WDFIOQUEUEREADYNOTIFY pfnWdfIoQueueReadyNotify; + PFN_WDFIOTARGETCREATE pfnWdfIoTargetCreate; + PFN_WDFIOTARGETOPEN pfnWdfIoTargetOpen; + PFN_WDFIOTARGETCLOSEFORQUERYREMOVE pfnWdfIoTargetCloseForQueryRemove; + PFN_WDFIOTARGETCLOSE pfnWdfIoTargetClose; + PFN_WDFIOTARGETSTART pfnWdfIoTargetStart; + PFN_WDFIOTARGETSTOP pfnWdfIoTargetStop; + PFN_WDFIOTARGETGETSTATE pfnWdfIoTargetGetState; + PFN_WDFIOTARGETGETDEVICE pfnWdfIoTargetGetDevice; + PFN_WDFIOTARGETQUERYTARGETPROPERTY pfnWdfIoTargetQueryTargetProperty; + PFN_WDFIOTARGETALLOCANDQUERYTARGETPROPERTY pfnWdfIoTargetAllocAndQueryTargetProperty; + PFN_WDFIOTARGETQUERYFORINTERFACE pfnWdfIoTargetQueryForInterface; + PFN_WDFIOTARGETWDMGETTARGETDEVICEOBJECT pfnWdfIoTargetWdmGetTargetDeviceObject; + PFN_WDFIOTARGETWDMGETTARGETPHYSICALDEVICE pfnWdfIoTargetWdmGetTargetPhysicalDevice; + PFN_WDFIOTARGETWDMGETTARGETFILEOBJECT pfnWdfIoTargetWdmGetTargetFileObject; + PFN_WDFIOTARGETWDMGETTARGETFILEHANDLE pfnWdfIoTargetWdmGetTargetFileHandle; + PFN_WDFIOTARGETSENDREADSYNCHRONOUSLY pfnWdfIoTargetSendReadSynchronously; + PFN_WDFIOTARGETFORMATREQUESTFORREAD pfnWdfIoTargetFormatRequestForRead; + PFN_WDFIOTARGETSENDWRITESYNCHRONOUSLY pfnWdfIoTargetSendWriteSynchronously; + PFN_WDFIOTARGETFORMATREQUESTFORWRITE pfnWdfIoTargetFormatRequestForWrite; + PFN_WDFIOTARGETSENDIOCTLSYNCHRONOUSLY pfnWdfIoTargetSendIoctlSynchronously; + PFN_WDFIOTARGETFORMATREQUESTFORIOCTL pfnWdfIoTargetFormatRequestForIoctl; + PFN_WDFIOTARGETSENDINTERNALIOCTLSYNCHRONOUSLY pfnWdfIoTargetSendInternalIoctlSynchronously; + PFN_WDFIOTARGETFORMATREQUESTFORINTERNALIOCTL pfnWdfIoTargetFormatRequestForInternalIoctl; + PFN_WDFIOTARGETSENDINTERNALIOCTLOTHERSSYNCHRONOUSLY pfnWdfIoTargetSendInternalIoctlOthersSynchronously; + PFN_WDFIOTARGETFORMATREQUESTFORINTERNALIOCTLOTHERS pfnWdfIoTargetFormatRequestForInternalIoctlOthers; + PFN_WDFMEMORYCREATE pfnWdfMemoryCreate; + PFN_WDFMEMORYCREATEPREALLOCATED pfnWdfMemoryCreatePreallocated; + PFN_WDFMEMORYGETBUFFER pfnWdfMemoryGetBuffer; + PFN_WDFMEMORYASSIGNBUFFER pfnWdfMemoryAssignBuffer; + PFN_WDFMEMORYCOPYTOBUFFER pfnWdfMemoryCopyToBuffer; + PFN_WDFMEMORYCOPYFROMBUFFER pfnWdfMemoryCopyFromBuffer; + PFN_WDFLOOKASIDELISTCREATE pfnWdfLookasideListCreate; + PFN_WDFMEMORYCREATEFROMLOOKASIDE pfnWdfMemoryCreateFromLookaside; + PFN_WDFDEVICEMINIPORTCREATE pfnWdfDeviceMiniportCreate; + PFN_WDFDRIVERMINIPORTUNLOAD pfnWdfDriverMiniportUnload; + PFN_WDFOBJECTGETTYPEDCONTEXTWORKER pfnWdfObjectGetTypedContextWorker; + PFN_WDFOBJECTALLOCATECONTEXT pfnWdfObjectAllocateContext; + PFN_WDFOBJECTCONTEXTGETOBJECT pfnWdfObjectContextGetObject; + PFN_WDFOBJECTREFERENCEACTUAL pfnWdfObjectReferenceActual; + PFN_WDFOBJECTDEREFERENCEACTUAL pfnWdfObjectDereferenceActual; + PFN_WDFOBJECTCREATE pfnWdfObjectCreate; + PFN_WDFOBJECTDELETE pfnWdfObjectDelete; + PFN_WDFOBJECTQUERY pfnWdfObjectQuery; + PFN_WDFPDOINITALLOCATE pfnWdfPdoInitAllocate; + PFN_WDFPDOINITSETEVENTCALLBACKS pfnWdfPdoInitSetEventCallbacks; + PFN_WDFPDOINITASSIGNDEVICEID pfnWdfPdoInitAssignDeviceID; + PFN_WDFPDOINITASSIGNINSTANCEID pfnWdfPdoInitAssignInstanceID; + PFN_WDFPDOINITADDHARDWAREID pfnWdfPdoInitAddHardwareID; + PFN_WDFPDOINITADDCOMPATIBLEID pfnWdfPdoInitAddCompatibleID; + PFN_WDFPDOINITADDDEVICETEXT pfnWdfPdoInitAddDeviceText; + PFN_WDFPDOINITSETDEFAULTLOCALE pfnWdfPdoInitSetDefaultLocale; + PFN_WDFPDOINITASSIGNRAWDEVICE pfnWdfPdoInitAssignRawDevice; + PFN_WDFPDOMARKMISSING pfnWdfPdoMarkMissing; + PFN_WDFPDOREQUESTEJECT pfnWdfPdoRequestEject; + PFN_WDFPDOGETPARENT pfnWdfPdoGetParent; + PFN_WDFPDORETRIEVEIDENTIFICATIONDESCRIPTION pfnWdfPdoRetrieveIdentificationDescription; + PFN_WDFPDORETRIEVEADDRESSDESCRIPTION pfnWdfPdoRetrieveAddressDescription; + PFN_WDFPDOUPDATEADDRESSDESCRIPTION pfnWdfPdoUpdateAddressDescription; + PFN_WDFPDOADDEJECTIONRELATIONSPHYSICALDEVICE pfnWdfPdoAddEjectionRelationsPhysicalDevice; + PFN_WDFPDOREMOVEEJECTIONRELATIONSPHYSICALDEVICE pfnWdfPdoRemoveEjectionRelationsPhysicalDevice; + PFN_WDFPDOCLEAREJECTIONRELATIONSDEVICES pfnWdfPdoClearEjectionRelationsDevices; + PFN_WDFDEVICEADDQUERYINTERFACE pfnWdfDeviceAddQueryInterface; + PFN_WDFREGISTRYOPENKEY pfnWdfRegistryOpenKey; + PFN_WDFREGISTRYCREATEKEY pfnWdfRegistryCreateKey; + PFN_WDFREGISTRYCLOSE pfnWdfRegistryClose; + PFN_WDFREGISTRYWDMGETHANDLE pfnWdfRegistryWdmGetHandle; + PFN_WDFREGISTRYREMOVEKEY pfnWdfRegistryRemoveKey; + PFN_WDFREGISTRYREMOVEVALUE pfnWdfRegistryRemoveValue; + PFN_WDFREGISTRYQUERYVALUE pfnWdfRegistryQueryValue; + PFN_WDFREGISTRYQUERYMEMORY pfnWdfRegistryQueryMemory; + PFN_WDFREGISTRYQUERYMULTISTRING pfnWdfRegistryQueryMultiString; + PFN_WDFREGISTRYQUERYUNICODESTRING pfnWdfRegistryQueryUnicodeString; + PFN_WDFREGISTRYQUERYSTRING pfnWdfRegistryQueryString; + PFN_WDFREGISTRYQUERYULONG pfnWdfRegistryQueryULong; + PFN_WDFREGISTRYASSIGNVALUE pfnWdfRegistryAssignValue; + PFN_WDFREGISTRYASSIGNMEMORY pfnWdfRegistryAssignMemory; + PFN_WDFREGISTRYASSIGNMULTISTRING pfnWdfRegistryAssignMultiString; + PFN_WDFREGISTRYASSIGNUNICODESTRING pfnWdfRegistryAssignUnicodeString; + PFN_WDFREGISTRYASSIGNSTRING pfnWdfRegistryAssignString; + PFN_WDFREGISTRYASSIGNULONG pfnWdfRegistryAssignULong; + PFN_WDFREQUESTCREATE pfnWdfRequestCreate; + PFN_WDFREQUESTCREATEFROMIRP pfnWdfRequestCreateFromIrp; + PFN_WDFREQUESTREUSE pfnWdfRequestReuse; + PFN_WDFREQUESTCHANGETARGET pfnWdfRequestChangeTarget; + PFN_WDFREQUESTFORMATREQUESTUSINGCURRENTTYPE pfnWdfRequestFormatRequestUsingCurrentType; + PFN_WDFREQUESTWDMFORMATUSINGSTACKLOCATION pfnWdfRequestWdmFormatUsingStackLocation; + PFN_WDFREQUESTSEND pfnWdfRequestSend; + PFN_WDFREQUESTGETSTATUS pfnWdfRequestGetStatus; + PFN_WDFREQUESTMARKCANCELABLE pfnWdfRequestMarkCancelable; + PFN_WDFREQUESTUNMARKCANCELABLE pfnWdfRequestUnmarkCancelable; + PFN_WDFREQUESTISCANCELED pfnWdfRequestIsCanceled; + PFN_WDFREQUESTCANCELSENTREQUEST pfnWdfRequestCancelSentRequest; + PFN_WDFREQUESTISFROM32BITPROCESS pfnWdfRequestIsFrom32BitProcess; + PFN_WDFREQUESTSETCOMPLETIONROUTINE pfnWdfRequestSetCompletionRoutine; + PFN_WDFREQUESTGETCOMPLETIONPARAMS pfnWdfRequestGetCompletionParams; + PFN_WDFREQUESTALLOCATETIMER pfnWdfRequestAllocateTimer; + PFN_WDFREQUESTCOMPLETE pfnWdfRequestComplete; + PFN_WDFREQUESTCOMPLETEWITHPRIORITYBOOST pfnWdfRequestCompleteWithPriorityBoost; + PFN_WDFREQUESTCOMPLETEWITHINFORMATION pfnWdfRequestCompleteWithInformation; + PFN_WDFREQUESTGETPARAMETERS pfnWdfRequestGetParameters; + PFN_WDFREQUESTRETRIEVEINPUTMEMORY pfnWdfRequestRetrieveInputMemory; + PFN_WDFREQUESTRETRIEVEOUTPUTMEMORY pfnWdfRequestRetrieveOutputMemory; + PFN_WDFREQUESTRETRIEVEINPUTBUFFER pfnWdfRequestRetrieveInputBuffer; + PFN_WDFREQUESTRETRIEVEOUTPUTBUFFER pfnWdfRequestRetrieveOutputBuffer; + PFN_WDFREQUESTRETRIEVEINPUTWDMMDL pfnWdfRequestRetrieveInputWdmMdl; + PFN_WDFREQUESTRETRIEVEOUTPUTWDMMDL pfnWdfRequestRetrieveOutputWdmMdl; + PFN_WDFREQUESTRETRIEVEUNSAFEUSERINPUTBUFFER pfnWdfRequestRetrieveUnsafeUserInputBuffer; + PFN_WDFREQUESTRETRIEVEUNSAFEUSEROUTPUTBUFFER pfnWdfRequestRetrieveUnsafeUserOutputBuffer; + PFN_WDFREQUESTSETINFORMATION pfnWdfRequestSetInformation; + PFN_WDFREQUESTGETINFORMATION pfnWdfRequestGetInformation; + PFN_WDFREQUESTGETFILEOBJECT pfnWdfRequestGetFileObject; + PFN_WDFREQUESTPROBEANDLOCKUSERBUFFERFORREAD pfnWdfRequestProbeAndLockUserBufferForRead; + PFN_WDFREQUESTPROBEANDLOCKUSERBUFFERFORWRITE pfnWdfRequestProbeAndLockUserBufferForWrite; + PFN_WDFREQUESTGETREQUESTORMODE pfnWdfRequestGetRequestorMode; + PFN_WDFREQUESTFORWARDTOIOQUEUE pfnWdfRequestForwardToIoQueue; + PFN_WDFREQUESTGETIOQUEUE pfnWdfRequestGetIoQueue; + PFN_WDFREQUESTREQUEUE pfnWdfRequestRequeue; + PFN_WDFREQUESTSTOPACKNOWLEDGE pfnWdfRequestStopAcknowledge; + PFN_WDFREQUESTWDMGETIRP pfnWdfRequestWdmGetIrp; + PFN_WDFIORESOURCEREQUIREMENTSLISTSETSLOTNUMBER pfnWdfIoResourceRequirementsListSetSlotNumber; + PFN_WDFIORESOURCEREQUIREMENTSLISTSETINTERFACETYPE pfnWdfIoResourceRequirementsListSetInterfaceType; + PFN_WDFIORESOURCEREQUIREMENTSLISTAPPENDIORESLIST pfnWdfIoResourceRequirementsListAppendIoResList; + PFN_WDFIORESOURCEREQUIREMENTSLISTINSERTIORESLIST pfnWdfIoResourceRequirementsListInsertIoResList; + PFN_WDFIORESOURCEREQUIREMENTSLISTGETCOUNT pfnWdfIoResourceRequirementsListGetCount; + PFN_WDFIORESOURCEREQUIREMENTSLISTGETIORESLIST pfnWdfIoResourceRequirementsListGetIoResList; + PFN_WDFIORESOURCEREQUIREMENTSLISTREMOVE pfnWdfIoResourceRequirementsListRemove; + PFN_WDFIORESOURCEREQUIREMENTSLISTREMOVEBYIORESLIST pfnWdfIoResourceRequirementsListRemoveByIoResList; + PFN_WDFIORESOURCELISTCREATE pfnWdfIoResourceListCreate; + PFN_WDFIORESOURCELISTAPPENDDESCRIPTOR pfnWdfIoResourceListAppendDescriptor; + PFN_WDFIORESOURCELISTINSERTDESCRIPTOR pfnWdfIoResourceListInsertDescriptor; + PFN_WDFIORESOURCELISTUPDATEDESCRIPTOR pfnWdfIoResourceListUpdateDescriptor; + PFN_WDFIORESOURCELISTGETCOUNT pfnWdfIoResourceListGetCount; + PFN_WDFIORESOURCELISTGETDESCRIPTOR pfnWdfIoResourceListGetDescriptor; + PFN_WDFIORESOURCELISTREMOVE pfnWdfIoResourceListRemove; + PFN_WDFIORESOURCELISTREMOVEBYDESCRIPTOR pfnWdfIoResourceListRemoveByDescriptor; + PFN_WDFCMRESOURCELISTAPPENDDESCRIPTOR pfnWdfCmResourceListAppendDescriptor; + PFN_WDFCMRESOURCELISTINSERTDESCRIPTOR pfnWdfCmResourceListInsertDescriptor; + PFN_WDFCMRESOURCELISTGETCOUNT pfnWdfCmResourceListGetCount; + PFN_WDFCMRESOURCELISTGETDESCRIPTOR pfnWdfCmResourceListGetDescriptor; + PFN_WDFCMRESOURCELISTREMOVE pfnWdfCmResourceListRemove; + PFN_WDFCMRESOURCELISTREMOVEBYDESCRIPTOR pfnWdfCmResourceListRemoveByDescriptor; + PFN_WDFSTRINGCREATE pfnWdfStringCreate; + PFN_WDFSTRINGGETUNICODESTRING pfnWdfStringGetUnicodeString; + PFN_WDFOBJECTACQUIRELOCK pfnWdfObjectAcquireLock; + PFN_WDFOBJECTRELEASELOCK pfnWdfObjectReleaseLock; + PFN_WDFWAITLOCKCREATE pfnWdfWaitLockCreate; + PFN_WDFWAITLOCKACQUIRE pfnWdfWaitLockAcquire; + PFN_WDFWAITLOCKRELEASE pfnWdfWaitLockRelease; + PFN_WDFSPINLOCKCREATE pfnWdfSpinLockCreate; + PFN_WDFSPINLOCKACQUIRE pfnWdfSpinLockAcquire; + PFN_WDFSPINLOCKRELEASE pfnWdfSpinLockRelease; + PFN_WDFTIMERCREATE pfnWdfTimerCreate; + PFN_WDFTIMERSTART pfnWdfTimerStart; + PFN_WDFTIMERSTOP pfnWdfTimerStop; + PFN_WDFTIMERGETPARENTOBJECT pfnWdfTimerGetParentObject; + PFN_WDFUSBTARGETDEVICECREATE pfnWdfUsbTargetDeviceCreate; + PFN_WDFUSBTARGETDEVICERETRIEVEINFORMATION pfnWdfUsbTargetDeviceRetrieveInformation; + PFN_WDFUSBTARGETDEVICEGETDEVICEDESCRIPTOR pfnWdfUsbTargetDeviceGetDeviceDescriptor; + PFN_WDFUSBTARGETDEVICERETRIEVECONFIGDESCRIPTOR pfnWdfUsbTargetDeviceRetrieveConfigDescriptor; + PFN_WDFUSBTARGETDEVICEQUERYSTRING pfnWdfUsbTargetDeviceQueryString; + PFN_WDFUSBTARGETDEVICEALLOCANDQUERYSTRING pfnWdfUsbTargetDeviceAllocAndQueryString; + PFN_WDFUSBTARGETDEVICEFORMATREQUESTFORSTRING pfnWdfUsbTargetDeviceFormatRequestForString; + PFN_WDFUSBTARGETDEVICEGETNUMINTERFACES pfnWdfUsbTargetDeviceGetNumInterfaces; + PFN_WDFUSBTARGETDEVICESELECTCONFIG pfnWdfUsbTargetDeviceSelectConfig; + PFN_WDFUSBTARGETDEVICEWDMGETCONFIGURATIONHANDLE pfnWdfUsbTargetDeviceWdmGetConfigurationHandle; + PFN_WDFUSBTARGETDEVICERETRIEVECURRENTFRAMENUMBER pfnWdfUsbTargetDeviceRetrieveCurrentFrameNumber; + PFN_WDFUSBTARGETDEVICESENDCONTROLTRANSFERSYNCHRONOUSLY pfnWdfUsbTargetDeviceSendControlTransferSynchronously; + PFN_WDFUSBTARGETDEVICEFORMATREQUESTFORCONTROLTRANSFER pfnWdfUsbTargetDeviceFormatRequestForControlTransfer; + PFN_WDFUSBTARGETDEVICEISCONNECTEDSYNCHRONOUS pfnWdfUsbTargetDeviceIsConnectedSynchronous; + PFN_WDFUSBTARGETDEVICERESETPORTSYNCHRONOUSLY pfnWdfUsbTargetDeviceResetPortSynchronously; + PFN_WDFUSBTARGETDEVICECYCLEPORTSYNCHRONOUSLY pfnWdfUsbTargetDeviceCyclePortSynchronously; + PFN_WDFUSBTARGETDEVICEFORMATREQUESTFORCYCLEPORT pfnWdfUsbTargetDeviceFormatRequestForCyclePort; + PFN_WDFUSBTARGETDEVICESENDURBSYNCHRONOUSLY pfnWdfUsbTargetDeviceSendUrbSynchronously; + PFN_WDFUSBTARGETDEVICEFORMATREQUESTFORURB pfnWdfUsbTargetDeviceFormatRequestForUrb; + PFN_WDFUSBTARGETPIPEGETINFORMATION pfnWdfUsbTargetPipeGetInformation; + PFN_WDFUSBTARGETPIPEISINENDPOINT pfnWdfUsbTargetPipeIsInEndpoint; + PFN_WDFUSBTARGETPIPEISOUTENDPOINT pfnWdfUsbTargetPipeIsOutEndpoint; + PFN_WDFUSBTARGETPIPEGETTYPE pfnWdfUsbTargetPipeGetType; + PFN_WDFUSBTARGETPIPESETNOMAXIMUMPACKETSIZECHECK pfnWdfUsbTargetPipeSetNoMaximumPacketSizeCheck; + PFN_WDFUSBTARGETPIPEWRITESYNCHRONOUSLY pfnWdfUsbTargetPipeWriteSynchronously; + PFN_WDFUSBTARGETPIPEFORMATREQUESTFORWRITE pfnWdfUsbTargetPipeFormatRequestForWrite; + PFN_WDFUSBTARGETPIPEREADSYNCHRONOUSLY pfnWdfUsbTargetPipeReadSynchronously; + PFN_WDFUSBTARGETPIPEFORMATREQUESTFORREAD pfnWdfUsbTargetPipeFormatRequestForRead; + PFN_WDFUSBTARGETPIPECONFIGCONTINUOUSREADER pfnWdfUsbTargetPipeConfigContinuousReader; + PFN_WDFUSBTARGETPIPEABORTSYNCHRONOUSLY pfnWdfUsbTargetPipeAbortSynchronously; + PFN_WDFUSBTARGETPIPEFORMATREQUESTFORABORT pfnWdfUsbTargetPipeFormatRequestForAbort; + PFN_WDFUSBTARGETPIPERESETSYNCHRONOUSLY pfnWdfUsbTargetPipeResetSynchronously; + PFN_WDFUSBTARGETPIPEFORMATREQUESTFORRESET pfnWdfUsbTargetPipeFormatRequestForReset; + PFN_WDFUSBTARGETPIPESENDURBSYNCHRONOUSLY pfnWdfUsbTargetPipeSendUrbSynchronously; + PFN_WDFUSBTARGETPIPEFORMATREQUESTFORURB pfnWdfUsbTargetPipeFormatRequestForUrb; + PFN_WDFUSBINTERFACEGETINTERFACENUMBER pfnWdfUsbInterfaceGetInterfaceNumber; + PFN_WDFUSBINTERFACEGETNUMENDPOINTS pfnWdfUsbInterfaceGetNumEndpoints; + PFN_WDFUSBINTERFACEGETDESCRIPTOR pfnWdfUsbInterfaceGetDescriptor; + PFN_WDFUSBINTERFACESELECTSETTING pfnWdfUsbInterfaceSelectSetting; + PFN_WDFUSBINTERFACEGETENDPOINTINFORMATION pfnWdfUsbInterfaceGetEndpointInformation; + PFN_WDFUSBTARGETDEVICEGETINTERFACE pfnWdfUsbTargetDeviceGetInterface; + PFN_WDFUSBINTERFACEGETCONFIGUREDSETTINGINDEX pfnWdfUsbInterfaceGetConfiguredSettingIndex; + PFN_WDFUSBINTERFACEGETNUMCONFIGUREDPIPES pfnWdfUsbInterfaceGetNumConfiguredPipes; + PFN_WDFUSBINTERFACEGETCONFIGUREDPIPE pfnWdfUsbInterfaceGetConfiguredPipe; + PFN_WDFUSBTARGETPIPEWDMGETPIPEHANDLE pfnWdfUsbTargetPipeWdmGetPipeHandle; + PFN_WDFVERIFIERDBGBREAKPOINT pfnWdfVerifierDbgBreakPoint; + PFN_WDFVERIFIERKEBUGCHECK pfnWdfVerifierKeBugCheck; + PFN_WDFWMIPROVIDERCREATE pfnWdfWmiProviderCreate; + PFN_WDFWMIPROVIDERGETDEVICE pfnWdfWmiProviderGetDevice; + PFN_WDFWMIPROVIDERISENABLED pfnWdfWmiProviderIsEnabled; + PFN_WDFWMIPROVIDERGETTRACINGHANDLE pfnWdfWmiProviderGetTracingHandle; + PFN_WDFWMIINSTANCECREATE pfnWdfWmiInstanceCreate; + PFN_WDFWMIINSTANCEREGISTER pfnWdfWmiInstanceRegister; + PFN_WDFWMIINSTANCEDEREGISTER pfnWdfWmiInstanceDeregister; + PFN_WDFWMIINSTANCEGETDEVICE pfnWdfWmiInstanceGetDevice; + PFN_WDFWMIINSTANCEGETPROVIDER pfnWdfWmiInstanceGetProvider; + PFN_WDFWMIINSTANCEFIREEVENT pfnWdfWmiInstanceFireEvent; + PFN_WDFWORKITEMCREATE pfnWdfWorkItemCreate; + PFN_WDFWORKITEMENQUEUE pfnWdfWorkItemEnqueue; + PFN_WDFWORKITEMGETPARENTOBJECT pfnWdfWorkItemGetParentObject; + PFN_WDFWORKITEMFLUSH pfnWdfWorkItemFlush; + PFN_WDFCOMMONBUFFERCREATEWITHCONFIG pfnWdfCommonBufferCreateWithConfig; + PFN_WDFDMAENABLERGETFRAGMENTLENGTH pfnWdfDmaEnablerGetFragmentLength; + PFN_WDFDMAENABLERWDMGETDMAADAPTER pfnWdfDmaEnablerWdmGetDmaAdapter; + PFN_WDFUSBINTERFACEGETNUMSETTINGS pfnWdfUsbInterfaceGetNumSettings; + PFN_WDFDEVICEREMOVEDEPENDENTUSAGEDEVICEOBJECT pfnWdfDeviceRemoveDependentUsageDeviceObject; + PFN_WDFDEVICEGETSYSTEMPOWERACTION pfnWdfDeviceGetSystemPowerAction; + PFN_WDFINTERRUPTSETEXTENDEDPOLICY pfnWdfInterruptSetExtendedPolicy; + PFN_WDFIOQUEUEASSIGNFORWARDPROGRESSPOLICY pfnWdfIoQueueAssignForwardProgressPolicy; + PFN_WDFPDOINITASSIGNCONTAINERID pfnWdfPdoInitAssignContainerID; + PFN_WDFPDOINITALLOWFORWARDINGREQUESTTOPARENT pfnWdfPdoInitAllowForwardingRequestToParent; + PFN_WDFREQUESTMARKCANCELABLEEX pfnWdfRequestMarkCancelableEx; + PFN_WDFREQUESTISRESERVED pfnWdfRequestIsReserved; + PFN_WDFREQUESTFORWARDTOPARENTDEVICEIOQUEUE pfnWdfRequestForwardToParentDeviceIoQueue; + PFN_WDFCXDEVICEINITALLOCATE pfnWdfCxDeviceInitAllocate; + PFN_WDFCXDEVICEINITASSIGNWDMIRPPREPROCESSCALLBACK pfnWdfCxDeviceInitAssignWdmIrpPreprocessCallback; + PFN_WDFCXDEVICEINITSETIOINCALLERCONTEXTCALLBACK pfnWdfCxDeviceInitSetIoInCallerContextCallback; + PFN_WDFCXDEVICEINITSETREQUESTATTRIBUTES pfnWdfCxDeviceInitSetRequestAttributes; + PFN_WDFCXDEVICEINITSETFILEOBJECTCONFIG pfnWdfCxDeviceInitSetFileObjectConfig; + PFN_WDFDEVICEWDMDISPATCHIRP pfnWdfDeviceWdmDispatchIrp; + PFN_WDFDEVICEWDMDISPATCHIRPTOIOQUEUE pfnWdfDeviceWdmDispatchIrpToIoQueue; + PFN_WDFDEVICEINITSETREMOVELOCKOPTIONS pfnWdfDeviceInitSetRemoveLockOptions; + PFN_WDFDEVICECONFIGUREWDMIRPDISPATCHCALLBACK pfnWdfDeviceConfigureWdmIrpDispatchCallback; + PFN_WDFDMAENABLERCONFIGURESYSTEMPROFILE pfnWdfDmaEnablerConfigureSystemProfile; + PFN_WDFDMATRANSACTIONINITIALIZEUSINGOFFSET pfnWdfDmaTransactionInitializeUsingOffset; + PFN_WDFDMATRANSACTIONGETTRANSFERINFO pfnWdfDmaTransactionGetTransferInfo; + PFN_WDFDMATRANSACTIONSETCHANNELCONFIGURATIONCALLBACK pfnWdfDmaTransactionSetChannelConfigurationCallback; + PFN_WDFDMATRANSACTIONSETTRANSFERCOMPLETECALLBACK pfnWdfDmaTransactionSetTransferCompleteCallback; + PFN_WDFDMATRANSACTIONSETIMMEDIATEEXECUTION pfnWdfDmaTransactionSetImmediateExecution; + PFN_WDFDMATRANSACTIONALLOCATERESOURCES pfnWdfDmaTransactionAllocateResources; + PFN_WDFDMATRANSACTIONSETDEVICEADDRESSOFFSET pfnWdfDmaTransactionSetDeviceAddressOffset; + PFN_WDFDMATRANSACTIONFREERESOURCES pfnWdfDmaTransactionFreeResources; + PFN_WDFDMATRANSACTIONCANCEL pfnWdfDmaTransactionCancel; + PFN_WDFDMATRANSACTIONWDMGETTRANSFERCONTEXT pfnWdfDmaTransactionWdmGetTransferContext; + PFN_WDFINTERRUPTQUEUEWORKITEMFORISR pfnWdfInterruptQueueWorkItemForIsr; + PFN_WDFINTERRUPTTRYTOACQUIRELOCK pfnWdfInterruptTryToAcquireLock; + PFN_WDFIOQUEUESTOPANDPURGE pfnWdfIoQueueStopAndPurge; + PFN_WDFIOQUEUESTOPANDPURGESYNCHRONOUSLY pfnWdfIoQueueStopAndPurgeSynchronously; + PFN_WDFIOTARGETPURGE pfnWdfIoTargetPurge; + PFN_WDFUSBTARGETDEVICECREATEWITHPARAMETERS pfnWdfUsbTargetDeviceCreateWithParameters; + PFN_WDFUSBTARGETDEVICEQUERYUSBCAPABILITY pfnWdfUsbTargetDeviceQueryUsbCapability; + PFN_WDFUSBTARGETDEVICECREATEURB pfnWdfUsbTargetDeviceCreateUrb; + PFN_WDFUSBTARGETDEVICECREATEISOCHURB pfnWdfUsbTargetDeviceCreateIsochUrb; + PFN_WDFDEVICEWDMASSIGNPOWERFRAMEWORKSETTINGS pfnWdfDeviceWdmAssignPowerFrameworkSettings; + PFN_WDFDMATRANSACTIONSTOPSYSTEMTRANSFER pfnWdfDmaTransactionStopSystemTransfer; + PFN_WDFCXVERIFIERKEBUGCHECK pfnWdfCxVerifierKeBugCheck; + PFN_WDFINTERRUPTREPORTACTIVE pfnWdfInterruptReportActive; + PFN_WDFINTERRUPTREPORTINACTIVE pfnWdfInterruptReportInactive; + PFN_WDFDEVICEINITSETRELEASEHARDWAREORDERONFAILURE pfnWdfDeviceInitSetReleaseHardwareOrderOnFailure; + PFN_WDFGETTRIAGEINFO pfnWdfGetTriageInfo; + PFN_WDFDEVICEINITSETIOTYPEEX pfnWdfDeviceInitSetIoTypeEx; + PFN_WDFDEVICEQUERYPROPERTYEX pfnWdfDeviceQueryPropertyEx; + PFN_WDFDEVICEALLOCANDQUERYPROPERTYEX pfnWdfDeviceAllocAndQueryPropertyEx; + PFN_WDFDEVICEASSIGNPROPERTY pfnWdfDeviceAssignProperty; + PFN_WDFFDOINITQUERYPROPERTYEX pfnWdfFdoInitQueryPropertyEx; + PFN_WDFFDOINITALLOCANDQUERYPROPERTYEX pfnWdfFdoInitAllocAndQueryPropertyEx; + PFN_WDFDEVICESTOPIDLEACTUAL pfnWdfDeviceStopIdleActual; + PFN_WDFDEVICERESUMEIDLEACTUAL pfnWdfDeviceResumeIdleActual; + PFN_WDFDEVICEGETSELFIOTARGET pfnWdfDeviceGetSelfIoTarget; + PFN_WDFDEVICEINITALLOWSELFIOTARGET pfnWdfDeviceInitAllowSelfIoTarget; + PFN_WDFIOTARGETSELFASSIGNDEFAULTIOQUEUE pfnWdfIoTargetSelfAssignDefaultIoQueue; + PFN_WDFDEVICEOPENDEVICEMAPKEY pfnWdfDeviceOpenDevicemapKey; + +} WDFFUNCTIONS, *PWDFFUNCTIONS; + + +typedef struct _WDFVERSION { + + ULONG Size; + ULONG FuncCount; + WDFFUNCTIONS Functions; + +} WDFVERSION, *PWDFVERSION; + + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfChildListCreate)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PWDF_CHILD_LIST_CONFIG Config, + _In_opt_ + PWDF_OBJECT_ATTRIBUTES ChildListAttributes, + _Out_ + WDFCHILDLIST* ChildList + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDFDEVICE +WDFEXPORT(WdfChildListGetDevice)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDFDEVICE +WDFEXPORT(WdfChildListRetrievePdo)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList, + _Inout_ + PWDF_CHILD_RETRIEVE_INFO RetrieveInfo + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfChildListRetrieveAddressDescription)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER IdentificationDescription, + _Inout_ + PWDF_CHILD_ADDRESS_DESCRIPTION_HEADER AddressDescription + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfChildListBeginScan)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfChildListEndScan)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfChildListBeginIteration)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_LIST_ITERATOR Iterator + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfChildListRetrieveNextDevice)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_LIST_ITERATOR Iterator, + _Out_ + WDFDEVICE* Device, + _Inout_opt_ + PWDF_CHILD_RETRIEVE_INFO Info + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfChildListEndIteration)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_LIST_ITERATOR Iterator + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfChildListAddOrUpdateChildDescriptionAsPresent)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER IdentificationDescription, + _In_opt_ + PWDF_CHILD_ADDRESS_DESCRIPTION_HEADER AddressDescription + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfChildListUpdateChildDescriptionAsMissing)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER IdentificationDescription + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfChildListUpdateAllChildDescriptionsAsPresent)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +BOOLEAN +WDFEXPORT(WdfChildListRequestChildEject)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER IdentificationDescription + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfCollectionCreate)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_opt_ + PWDF_OBJECT_ATTRIBUTES CollectionAttributes, + _Out_ + WDFCOLLECTION* Collection + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +ULONG +WDFEXPORT(WdfCollectionGetCount)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCOLLECTION Collection + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfCollectionAdd)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCOLLECTION Collection, + _In_ + WDFOBJECT Object + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfCollectionRemove)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCOLLECTION Collection, + _In_ + WDFOBJECT Item + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfCollectionRemoveItem)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCOLLECTION Collection, + _In_ + ULONG Index + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDFOBJECT +WDFEXPORT(WdfCollectionGetItem)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCOLLECTION Collection, + _In_ + ULONG Index + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDFOBJECT +WDFEXPORT(WdfCollectionGetFirstItem)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCOLLECTION Collection + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDFOBJECT +WDFEXPORT(WdfCollectionGetLastItem)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCOLLECTION Collection + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfCommonBufferCreate)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDMAENABLER DmaEnabler, + _In_ + _When_(Length == 0, __drv_reportError(Length cannot be zero)) + size_t Length, + _In_opt_ + PWDF_OBJECT_ATTRIBUTES Attributes, + _Out_ + WDFCOMMONBUFFER* CommonBuffer + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfCommonBufferCreateWithConfig)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDMAENABLER DmaEnabler, + _In_ + _When_(Length == 0, __drv_reportError(Length cannot be zero)) + size_t Length, + _In_ + PWDF_COMMON_BUFFER_CONFIG Config, + _In_opt_ + PWDF_OBJECT_ATTRIBUTES Attributes, + _Out_ + WDFCOMMONBUFFER* CommonBuffer + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +PVOID +WDFEXPORT(WdfCommonBufferGetAlignedVirtualAddress)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCOMMONBUFFER CommonBuffer + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +PHYSICAL_ADDRESS +WDFEXPORT(WdfCommonBufferGetAlignedLogicalAddress)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCOMMONBUFFER CommonBuffer + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +size_t +WDFEXPORT(WdfCommonBufferGetLength)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCOMMONBUFFER CommonBuffer + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +PWDFDEVICE_INIT +WDFEXPORT(WdfControlDeviceInitAllocate)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDRIVER Driver, + _In_ + CONST UNICODE_STRING* SDDLString + ); + +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfControlDeviceInitSetShutdownNotification)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit, + _In_ + PFN_WDF_DEVICE_SHUTDOWN_NOTIFICATION Notification, + _In_ + UCHAR Flags + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfControlFinishInitializing)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +PWDFCXDEVICE_INIT +WDFEXPORT(WdfCxDeviceInitAllocate)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfCxDeviceInitAssignWdmIrpPreprocessCallback)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFCXDEVICE_INIT CxDeviceInit, + _In_ + PFN_WDFCXDEVICE_WDM_IRP_PREPROCESS EvtCxDeviceWdmIrpPreprocess, + _In_ + UCHAR MajorFunction, + _When_(NumMinorFunctions > 0, _In_reads_bytes_(NumMinorFunctions)) + _When_(NumMinorFunctions == 0, _In_opt_) + PUCHAR MinorFunctions, + _In_ + ULONG NumMinorFunctions + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfCxDeviceInitSetIoInCallerContextCallback)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFCXDEVICE_INIT CxDeviceInit, + _In_ + PFN_WDF_IO_IN_CALLER_CONTEXT EvtIoInCallerContext + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfCxDeviceInitSetRequestAttributes)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFCXDEVICE_INIT CxDeviceInit, + _In_ + PWDF_OBJECT_ATTRIBUTES RequestAttributes + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfCxDeviceInitSetFileObjectConfig)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFCXDEVICE_INIT CxDeviceInit, + _In_ + PWDFCX_FILEOBJECT_CONFIG CxFileObjectConfig, + _In_opt_ + PWDF_OBJECT_ATTRIBUTES FileObjectAttributes + ); + +WDFAPI +VOID +WDFEXPORT(WdfCxVerifierKeBugCheck)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_opt_ + WDFOBJECT Object, + _In_ + ULONG BugCheckCode, + _In_ + ULONG_PTR BugCheckParameter1, + _In_ + ULONG_PTR BugCheckParameter2, + _In_ + ULONG_PTR BugCheckParameter3, + _In_ + ULONG_PTR BugCheckParameter4 + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceGetDeviceState)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _Out_ + PWDF_DEVICE_STATE DeviceState + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceSetDeviceState)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PWDF_DEVICE_STATE DeviceState + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDFDEVICE +WDFEXPORT(WdfWdmDeviceGetWdfDeviceHandle)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PDEVICE_OBJECT DeviceObject + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +PDEVICE_OBJECT +WDFEXPORT(WdfDeviceWdmGetDeviceObject)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +PDEVICE_OBJECT +WDFEXPORT(WdfDeviceWdmGetAttachedDevice)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +PDEVICE_OBJECT +WDFEXPORT(WdfDeviceWdmGetPhysicalDevice)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceWdmDispatchPreprocessedIrp)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PIRP Irp + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceWdmDispatchIrp)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PIRP Irp, + _In_ + WDFCONTEXT DispatchContext + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceWdmDispatchIrpToIoQueue)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PIRP Irp, + _In_ + WDFQUEUE Queue, + _In_ + ULONG Flags + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceAddDependentUsageDeviceObject)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PDEVICE_OBJECT DependentDevice + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceRemoveDependentUsageDeviceObject)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PDEVICE_OBJECT DependentDevice + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceAddRemovalRelationsPhysicalDevice)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PDEVICE_OBJECT PhysicalDevice + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceRemoveRemovalRelationsPhysicalDevice)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PDEVICE_OBJECT PhysicalDevice + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceClearRemovalRelationsDevices)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDFDRIVER +WDFEXPORT(WdfDeviceGetDriver)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceRetrieveDeviceName)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + WDFSTRING String + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceAssignMofResourceName)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PCUNICODE_STRING MofResourceName + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDFIOTARGET +WDFEXPORT(WdfDeviceGetIoTarget)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDF_DEVICE_PNP_STATE +WDFEXPORT(WdfDeviceGetDevicePnpState)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDF_DEVICE_POWER_STATE +WDFEXPORT(WdfDeviceGetDevicePowerState)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDF_DEVICE_POWER_POLICY_STATE +WDFEXPORT(WdfDeviceGetDevicePowerPolicyState)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceAssignS0IdleSettings)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PWDF_DEVICE_POWER_POLICY_IDLE_SETTINGS Settings + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceAssignSxWakeSettings)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PWDF_DEVICE_POWER_POLICY_WAKE_SETTINGS Settings + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceOpenRegistryKey)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + ULONG DeviceInstanceKeyType, + _In_ + ACCESS_MASK DesiredAccess, + _In_opt_ + PWDF_OBJECT_ATTRIBUTES KeyAttributes, + _Out_ + WDFKEY* Key + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceOpenDevicemapKey)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PCUNICODE_STRING KeyName, + _In_ + ACCESS_MASK DesiredAccess, + _In_opt_ + PWDF_OBJECT_ATTRIBUTES KeyAttributes, + _Out_ + WDFKEY* Key + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceSetSpecialFileSupport)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + WDF_SPECIAL_FILE_TYPE FileType, + _In_ + BOOLEAN FileTypeIsSupported + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceSetCharacteristics)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + ULONG DeviceCharacteristics + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +ULONG +WDFEXPORT(WdfDeviceGetCharacteristics)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +ULONG +WDFEXPORT(WdfDeviceGetAlignmentRequirement)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceSetAlignmentRequirement)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + ULONG AlignmentRequirement + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceInitFree)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceInitSetPnpPowerEventCallbacks)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit, + _In_ + PWDF_PNPPOWER_EVENT_CALLBACKS PnpPowerEventCallbacks + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceInitSetPowerPolicyEventCallbacks)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit, + _In_ + PWDF_POWER_POLICY_EVENT_CALLBACKS PowerPolicyEventCallbacks + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceInitSetPowerPolicyOwnership)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit, + _In_ + BOOLEAN IsPowerPolicyOwner + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceInitRegisterPnpStateChangeCallback)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit, + _In_ + WDF_DEVICE_PNP_STATE PnpState, + _In_ + PFN_WDF_DEVICE_PNP_STATE_CHANGE_NOTIFICATION EvtDevicePnpStateChange, + _In_ + ULONG CallbackTypes + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceInitRegisterPowerStateChangeCallback)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit, + _In_ + WDF_DEVICE_POWER_STATE PowerState, + _In_ + PFN_WDF_DEVICE_POWER_STATE_CHANGE_NOTIFICATION EvtDevicePowerStateChange, + _In_ + ULONG CallbackTypes + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceInitRegisterPowerPolicyStateChangeCallback)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit, + _In_ + WDF_DEVICE_POWER_POLICY_STATE PowerPolicyState, + _In_ + PFN_WDF_DEVICE_POWER_POLICY_STATE_CHANGE_NOTIFICATION EvtDevicePowerPolicyStateChange, + _In_ + ULONG CallbackTypes + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceInitSetExclusive)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit, + _In_ + BOOLEAN IsExclusive + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceInitSetIoType)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit, + _In_ + WDF_DEVICE_IO_TYPE IoType + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceInitSetPowerNotPageable)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceInitSetPowerPageable)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceInitSetPowerInrush)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceInitSetDeviceType)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit, + _In_ + DEVICE_TYPE DeviceType + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceInitAssignName)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit, + _In_opt_ + PCUNICODE_STRING DeviceName + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceInitAssignSDDLString)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit, + _In_opt_ + PCUNICODE_STRING SDDLString + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceInitSetDeviceClass)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit, + _In_ + CONST GUID* DeviceClassGuid + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceInitSetCharacteristics)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit, + _In_ + ULONG DeviceCharacteristics, + _In_ + BOOLEAN OrInValues + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceInitSetFileObjectConfig)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit, + _In_ + PWDF_FILEOBJECT_CONFIG FileObjectConfig, + _In_opt_ + PWDF_OBJECT_ATTRIBUTES FileObjectAttributes + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceInitSetRequestAttributes)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit, + _In_ + PWDF_OBJECT_ATTRIBUTES RequestAttributes + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceInitAssignWdmIrpPreprocessCallback)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit, + _In_ + PFN_WDFDEVICE_WDM_IRP_PREPROCESS EvtDeviceWdmIrpPreprocess, + _In_ + UCHAR MajorFunction, + _When_(NumMinorFunctions > 0, _In_reads_bytes_(NumMinorFunctions)) + _When_(NumMinorFunctions == 0, _In_opt_) + PUCHAR MinorFunctions, + _In_ + ULONG NumMinorFunctions + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceInitSetIoInCallerContextCallback)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit, + _In_ + PFN_WDF_IO_IN_CALLER_CONTEXT EvtIoInCallerContext + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceInitSetRemoveLockOptions)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit, + _In_ + PWDF_REMOVE_LOCK_OPTIONS Options + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceCreate)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _Inout_ + PWDFDEVICE_INIT* DeviceInit, + _In_opt_ + PWDF_OBJECT_ATTRIBUTES DeviceAttributes, + _Out_ + WDFDEVICE* Device + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceSetStaticStopRemove)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + BOOLEAN Stoppable + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceCreateDeviceInterface)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + CONST GUID* InterfaceClassGUID, + _In_opt_ + PCUNICODE_STRING ReferenceString + ); + +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceSetDeviceInterfaceState)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + CONST GUID* InterfaceClassGUID, + _In_opt_ + PCUNICODE_STRING ReferenceString, + _In_ + BOOLEAN IsInterfaceEnabled + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceRetrieveDeviceInterfaceString)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + CONST GUID* InterfaceClassGUID, + _In_opt_ + PCUNICODE_STRING ReferenceString, + _In_ + WDFSTRING String + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceCreateSymbolicLink)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PCUNICODE_STRING SymbolicLinkName + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceQueryProperty)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + DEVICE_REGISTRY_PROPERTY DeviceProperty, + _In_ + ULONG BufferLength, + _Out_writes_bytes_all_(BufferLength) + PVOID PropertyBuffer, + _Out_ + PULONG ResultLength + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceAllocAndQueryProperty)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + DEVICE_REGISTRY_PROPERTY DeviceProperty, + _In_ + _Strict_type_match_ + POOL_TYPE PoolType, + _In_opt_ + PWDF_OBJECT_ATTRIBUTES PropertyMemoryAttributes, + _Out_ + WDFMEMORY* PropertyMemory + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceSetPnpCapabilities)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PWDF_DEVICE_PNP_CAPABILITIES PnpCapabilities + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceSetPowerCapabilities)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PWDF_DEVICE_POWER_CAPABILITIES PowerCapabilities + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceSetBusInformationForChildren)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PPNP_BUS_INFORMATION BusInformation + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceIndicateWakeStatus)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + NTSTATUS WaitWakeStatus + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceSetFailed)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + WDF_DEVICE_FAILED_ACTION FailedAction + ); + +_Must_inspect_result_ +_When_(WaitForD0 == 0, _IRQL_requires_max_(DISPATCH_LEVEL)) +_When_(WaitForD0 != 0, _IRQL_requires_max_(PASSIVE_LEVEL)) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceStopIdleNoTrack)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + BOOLEAN WaitForD0 + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceResumeIdleNoTrack)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_Must_inspect_result_ +_When_(WaitForD0 == 0, _IRQL_requires_max_(DISPATCH_LEVEL)) +_When_(WaitForD0 != 0, _IRQL_requires_max_(PASSIVE_LEVEL)) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceStopIdleActual)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + BOOLEAN WaitForD0, + _In_opt_ + PVOID Tag, + _In_ + LONG Line, + _In_z_ + PCHAR File + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceResumeIdleActual)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_opt_ + PVOID Tag, + _In_ + LONG Line, + _In_z_ + PCHAR File + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDFFILEOBJECT +WDFEXPORT(WdfDeviceGetFileObject)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PFILE_OBJECT FileObject + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceEnqueueRequest)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + WDFREQUEST Request + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDFQUEUE +WDFEXPORT(WdfDeviceGetDefaultQueue)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceConfigureRequestDispatching)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + WDFQUEUE Queue, + _In_ + _Strict_type_match_ + WDF_REQUEST_TYPE RequestType + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceConfigureWdmIrpDispatchCallback)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_opt_ + WDFDRIVER Driver, + _In_ + UCHAR MajorFunction, + _In_ + PFN_WDFDEVICE_WDM_IRP_DISPATCH EvtDeviceWdmIrpDisptach, + _In_opt_ + WDFCONTEXT DriverContext + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +POWER_ACTION +WDFEXPORT(WdfDeviceGetSystemPowerAction)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceWdmAssignPowerFrameworkSettings)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PWDF_POWER_FRAMEWORK_SETTINGS PowerFrameworkSettings + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceInitSetReleaseHardwareOrderOnFailure)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit, + _In_ + WDF_RELEASE_HARDWARE_ORDER_ON_FAILURE ReleaseHardwareOrderOnFailure + ); + +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceInitSetIoTypeEx)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit, + _In_ + PWDF_IO_TYPE_CONFIG IoTypeConfig + ); + +_Must_inspect_result_ +_IRQL_requires_max_(APC_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceQueryPropertyEx)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PWDF_DEVICE_PROPERTY_DATA DeviceProperty, + _In_ + ULONG BufferLength, + _Out_ + PVOID PropertyBuffer, + _Out_ + PULONG RequiredSize, + _Out_ + PDEVPROPTYPE Type + ); + +_Must_inspect_result_ +_IRQL_requires_max_(APC_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceAllocAndQueryPropertyEx)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PWDF_DEVICE_PROPERTY_DATA DeviceProperty, + _In_ + _Strict_type_match_ + POOL_TYPE PoolType, + _In_opt_ + PWDF_OBJECT_ATTRIBUTES PropertyMemoryAttributes, + _Out_ + WDFMEMORY* PropertyMemory, + _Out_ + PDEVPROPTYPE Type + ); + +_Must_inspect_result_ +_IRQL_requires_max_(APC_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDeviceAssignProperty)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PWDF_DEVICE_PROPERTY_DATA DeviceProperty, + _In_ + DEVPROPTYPE Type, + _In_ + ULONG Size, + _In_opt_ + PVOID Data + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDFIOTARGET +WDFEXPORT(WdfDeviceGetSelfIoTarget)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +WDFEXPORT(WdfDeviceInitAllowSelfIoTarget)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDmaEnablerCreate)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PWDF_DMA_ENABLER_CONFIG Config, + _In_opt_ + PWDF_OBJECT_ATTRIBUTES Attributes, + _Out_ + WDFDMAENABLER* DmaEnablerHandle + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +WDFEXPORT(WdfDmaEnablerConfigureSystemProfile)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDMAENABLER DmaEnabler, + _In_ + PWDF_DMA_SYSTEM_PROFILE_CONFIG ProfileConfig, + _In_ + WDF_DMA_DIRECTION ConfigDirection + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +size_t +WDFEXPORT(WdfDmaEnablerGetMaximumLength)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDMAENABLER DmaEnabler + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +size_t +WDFEXPORT(WdfDmaEnablerGetMaximumScatterGatherElements)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDMAENABLER DmaEnabler + ); + +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +VOID ... 283438 lines suppressed ...
4 years, 1 month
1
0
0
0
[reactos] 02/04: [KMDF] Make KMDF headers compatible with our SDK and compilers
by Victor Perevertkin
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 ...
4 years, 1 month
1
0
0
0
[reactos] 01/04: [KMDF] Add Kernel-Mode Driver Framework headers v1.17 Taken from Microsoft GitHub repo: https://github.com/microsoft/Windows-Driver-Frameworks/commit/d9c6040fe9fa787964ea99c48a8b35cf1aa978f7
by Victor Perevertkin
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=40462c924e9dce2f00e73…
commit 40462c924e9dce2f00e73f93f4b91f6b757234e4 Author: Victor Perevertkin <victor.perevertkin(a)reactos.org> AuthorDate: Thu Sep 24 23:41:01 2020 +0300 Commit: Victor Perevertkin <victor.perevertkin(a)reactos.org> CommitDate: Mon Nov 2 22:07:15 2020 +0300 [KMDF] Add Kernel-Mode Driver Framework headers v1.17 Taken from Microsoft GitHub repo:
https://github.com/microsoft/Windows-Driver-Frameworks/commit/d9c6040fe9fa7…
Licensed under MIT --- sdk/include/wdf/kmdf/1.17/wdf.h | 130 + sdk/include/wdf/kmdf/1.17/wdfassert.h | 107 + sdk/include/wdf/kmdf/1.17/wdfbugcodes.h | 145 + sdk/include/wdf/kmdf/1.17/wdfchildlist.h | 858 +++++ sdk/include/wdf/kmdf/1.17/wdfcollection.h | 284 ++ sdk/include/wdf/kmdf/1.17/wdfcommonbuffer.h | 249 ++ sdk/include/wdf/kmdf/1.17/wdfcontrol.h | 168 + sdk/include/wdf/kmdf/1.17/wdfcore.h | 176 + sdk/include/wdf/kmdf/1.17/wdfdevice.h | 4496 +++++++++++++++++++++++++ sdk/include/wdf/kmdf/1.17/wdfdmaenabler.h | 509 +++ sdk/include/wdf/kmdf/1.17/wdfdmatransaction.h | 890 +++++ sdk/include/wdf/kmdf/1.17/wdfdpc.h | 243 ++ sdk/include/wdf/kmdf/1.17/wdfdriver.h | 460 +++ sdk/include/wdf/kmdf/1.17/wdffdo.h | 643 ++++ sdk/include/wdf/kmdf/1.17/wdffileobject.h | 166 + sdk/include/wdf/kmdf/1.17/wdffuncenum.h | 473 +++ sdk/include/wdf/kmdf/1.17/wdfglobals.h | 85 + sdk/include/wdf/kmdf/1.17/wdfhwaccess.h | 75 + sdk/include/wdf/kmdf/1.17/wdfinstaller.h | 165 + sdk/include/wdf/kmdf/1.17/wdfinterrupt.h | 810 +++++ sdk/include/wdf/kmdf/1.17/wdfio.h | 1177 +++++++ sdk/include/wdf/kmdf/1.17/wdfiotarget.h | 1351 ++++++++ sdk/include/wdf/kmdf/1.17/wdfmemory.h | 480 +++ sdk/include/wdf/kmdf/1.17/wdfminiport.h | 130 + sdk/include/wdf/kmdf/1.17/wdfobject.h | 837 +++++ sdk/include/wdf/kmdf/1.17/wdfpdo.h | 799 +++++ sdk/include/wdf/kmdf/1.17/wdfpool.h | 61 + sdk/include/wdf/kmdf/1.17/wdfqueryinterface.h | 215 ++ sdk/include/wdf/kmdf/1.17/wdfregistry.h | 737 ++++ sdk/include/wdf/kmdf/1.17/wdfrequest.h | 1768 ++++++++++ sdk/include/wdf/kmdf/1.17/wdfresource.h | 724 ++++ sdk/include/wdf/kmdf/1.17/wdfroletypes.h | 62 + sdk/include/wdf/kmdf/1.17/wdfstatus.h | 254 ++ sdk/include/wdf/kmdf/1.17/wdfstring.h | 124 + sdk/include/wdf/kmdf/1.17/wdfsync.h | 318 ++ sdk/include/wdf/kmdf/1.17/wdftimer.h | 264 ++ sdk/include/wdf/kmdf/1.17/wdftraceenums.h | 91 + sdk/include/wdf/kmdf/1.17/wdftypes.h | 176 + sdk/include/wdf/kmdf/1.17/wdfusb.h | 2592 ++++++++++++++ sdk/include/wdf/kmdf/1.17/wdfverifier.h | 138 + sdk/include/wdf/kmdf/1.17/wdfwmi.h | 642 ++++ sdk/include/wdf/kmdf/1.17/wdfworkitem.h | 215 ++ 42 files changed, 24287 insertions(+) diff --git a/sdk/include/wdf/kmdf/1.17/wdf.h b/sdk/include/wdf/kmdf/1.17/wdf.h new file mode 100644 index 00000000000..892aaa506ac --- /dev/null +++ b/sdk/include/wdf/kmdf/1.17/wdf.h @@ -0,0 +1,130 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + wdf.h + +Abstract: + + Main header file for Windows Driver Frameworks + +Environment: + + kernel mode only + +Revision History: + +--*/ + +// +// NOTE: This header is generated by stubwork. Please make any +// modifications to the corresponding template files +// (.x or .y) and use stubwork to regenerate the header +// + +#ifndef _WDF_H_ +#define _WDF_H_ + +#ifndef WDF_EXTERN_C + #ifdef __cplusplus + #define WDF_EXTERN_C extern "C" + #define WDF_EXTERN_C_START extern "C" { + #define WDF_EXTERN_C_END } + #else + #define WDF_EXTERN_C + #define WDF_EXTERN_C_START + #define WDF_EXTERN_C_END + #endif +#endif + +WDF_EXTERN_C_START + + + +#ifndef _Dispatch_type_ +#include <driverspecs.h> +#endif + + + + + +// +// Rename WdfFunctions to match version number. Build issues relating to +// unresolved externals of WdfFunctions or WdfFunctions_XXXXX indicate +// multiple WDF versions are being included. Ensure WDF version of all input +// binaries match to resolve. +// +#define WdfFunctions WdfFunctions_01017 + +typedef VOID (*WDFFUNC) (VOID); +extern const WDFFUNC *WdfFunctions; +extern WDFFUNC WdfDriverMiniportUnloadOverride; + +_Analysis_mode_(KMDF_INCLUDED) + +// Basic definitions +#include "wdftypes.h" +#include "wdfglobals.h" +#include "wdffuncenum.h" +#include "wdfstatus.h" +#include "wdfassert.h" +#include "wdfverifier.h" +#include "wdfpool.h" + +// generic object +#include "wdfobject.h" + +// Synchronization +#include "wdfsync.h" + +#include "wdfcore.h" + +#include "wdfdriver.h" + +// Objects +#include "WdfQueryInterface.h" +#include "wdfmemory.h" +#include "wdfchildlist.h" +#include "wdffileobject.h" +#include "wdfdevice.h" +#include "wdfcollection.h" +#include "wdfdpc.h" +#include "wdftimer.h" +#include "wdfworkitem.h" +#include "wdfinterrupt.h" +#include "wdfresource.h" + +// I/O +#include "wdfrequest.h" +#include "wdfiotarget.h" +#include "wdfio.h" + +// particular device types +#include "wdffdo.h" +#include "wdfpdo.h" +#include "wdfcontrol.h" + +#include "WdfWMI.h" + +#include "wdfstring.h" +#include "wdfregistry.h" + +// Dma +#include "wdfDmaEnabler.h" +#include "wdfDmaTransaction.h" +#include "wdfCommonBuffer.h" + +#include "wdfbugcodes.h" +#include "wdfroletypes.h" +#include "wdfhwaccess.h" + + + + +WDF_EXTERN_C_END + +#endif // _WDF_H_ + diff --git a/sdk/include/wdf/kmdf/1.17/wdfassert.h b/sdk/include/wdf/kmdf/1.17/wdfassert.h new file mode 100644 index 00000000000..a61dae07b52 --- /dev/null +++ b/sdk/include/wdf/kmdf/1.17/wdfassert.h @@ -0,0 +1,107 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +_WdfVersionBuild_ + +Module Name: + + WdfAssert.h + +Abstract: + + Contains prototypes for dealing with run time asserts + +Author: + +Environment: + + kernel mode only + +Revision History: + +--*/ + +// +// NOTE: This header is generated by stubwork. Please make any +// modifications to the corresponding template files +// (.x or .y) and use stubwork to regenerate the header +// + +#ifndef _WDFASSERT_H_ +#define _WDFASSERT_H_ + +#ifndef WDF_EXTERN_C + #ifdef __cplusplus + #define WDF_EXTERN_C extern "C" + #define WDF_EXTERN_C_START extern "C" { + #define WDF_EXTERN_C_END } + #else + #define WDF_EXTERN_C + #define WDF_EXTERN_C_START + #define WDF_EXTERN_C_END + #endif +#endif + +WDF_EXTERN_C_START + + + + +#if (NTDDI_VERSION >= NTDDI_WIN2K) + +// +// Including here because RtlAssert is not declared in XP and Win2K headers for +// free builds +// +NTSYSAPI +VOID +NTAPI +RtlAssert( + _In_ PVOID FailedAssertion, + _In_ PVOID FileName, + _In_ ULONG LineNumber, + _In_opt_ PSTR Message + ); + + + +// +// WDFVERIFY is active both on checked and free build only if +// the wdf verifier is tuned on +// +#define WDFVERIFY(exp) { \ + if ((WdfDriverGlobals->DriverFlags & WdfVerifyOn) && !(exp)) { \ + RtlAssert( #exp, __FILE__, __LINE__, NULL ); \ + } \ +} + +#define VERIFY_IS_IRQL_PASSIVE_LEVEL() WDFVERIFY(KeGetCurrentIrql() == PASSIVE_LEVEL) + +// +// Following macro is obsolete and it will be phased out in due course +// +#define IS_AT_PASSIVE() WDFVERIFY(KeGetCurrentIrql() == PASSIVE_LEVEL) + +// +// Compile time active "assert". File will not compile if this assert is FALSE. +// +// This compile time assert is designed to catch mismatch in the values of the +// declared constants. So suppress the OACR warning #6326 generated about the +// potential comparison of constants. +// +#define WDFCASSERT(c) { \ + __pragma(warning(suppress: 6326)) \ + switch(0) case (c): case 0: ; \ + } + + + + + +#endif // (NTDDI_VERSION >= NTDDI_WIN2K) + +WDF_EXTERN_C_END + +#endif // _WDFASSERT_H_ + diff --git a/sdk/include/wdf/kmdf/1.17/wdfbugcodes.h b/sdk/include/wdf/kmdf/1.17/wdfbugcodes.h new file mode 100644 index 00000000000..245edcc4379 --- /dev/null +++ b/sdk/include/wdf/kmdf/1.17/wdfbugcodes.h @@ -0,0 +1,145 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +_WdfVersionBuild_ + +Module Name: + + wdfbugcodes.h + +Abstract: + + Lists bugcheck subcode values for the WDF_VIOLATION bugcheck code + +Environment: + + kernel mode only + +Revision History: + +--*/ + +// +// NOTE: This header is generated by stubwork. Please make any +// modifications to the corresponding template files +// (.x or .y) and use stubwork to regenerate the header +// + +#ifndef _WDFBUGCODES_H_ +#define _WDFBUGCODES_H_ + +#ifndef WDF_EXTERN_C + #ifdef __cplusplus + #define WDF_EXTERN_C extern "C" + #define WDF_EXTERN_C_START extern "C" { + #define WDF_EXTERN_C_END } + #else + #define WDF_EXTERN_C + #define WDF_EXTERN_C_START + #define WDF_EXTERN_C_END + #endif +#endif + +WDF_EXTERN_C_START + + + +#if (NTDDI_VERSION >= NTDDI_WIN2K) + +// +// These values are used in Parameter 1 in the bugcheck data +// +// NOTE: Do not change these codes, only add to the end. +// The OCA analysis and debugger tools will look at +// these codes to perform fault analysis. +// +typedef enum _WDF_BUGCHECK_CODES { + WDF_POWER_ROUTINE_TIMED_OUT = 0x1, + WDF_RECURSIVE_LOCK = 0x2, + WDF_VERIFIER_FATAL_ERROR = 0x3, + WDF_REQUIRED_PARAMETER_IS_NULL = 0x4, + WDF_INVALID_HANDLE = 0x5, + WDF_REQUEST_FATAL_ERROR = 0x6, + WDF_OBJECT_ERROR = 0x7, + WDF_DMA_FATAL_ERROR = 0x8, + WDF_INVALID_INTERRUPT = 0x9, + WDF_QUEUE_FATAL_ERROR = 0xA, + WDF_INVALID_LOCK_OPERATION = 0xB, + WDF_PNP_FATAL_ERROR = 0xC, + WDF_POWER_MULTIPLE_PPO = 0xD, + WDF_VERIFIER_IRQL_MISMATCH = 0xE, + WDF_VERIFIER_CRITICAL_REGION_MISMATCH = 0xF, +} WDF_BUGCHECK_CODES; + +typedef enum _WDF_REQUEST_FATAL_ERROR_CODES { + WDF_REQUEST_FATAL_ERROR_NO_MORE_STACK_LOCATIONS = 0x1, + WDF_REQUEST_FATAL_ERROR_NULL_IRP = 0x2, + WDF_REQUEST_FATAL_ERROR_REQUEST_ALREADY_SENT = 0x3, + WDF_REQUEST_FATAL_ERROR_INFORMATION_LENGTH_MISMATCH = 0x4, + WDF_REQUEST_FATAL_ERROR_REQUEST_NOT_IN_QUEUE = 05, +} WDF_REQUEST_FATAL_ERROR_CODES; + + + +typedef struct _WDF_POWER_ROUTINE_TIMED_OUT_DATA { + // + // Current power state associated with the timed out device + // + WDF_DEVICE_POWER_STATE PowerState; + + // + // Current power policy state associated with the timed out device + // + WDF_DEVICE_POWER_POLICY_STATE PowerPolicyState; + + // + // The device object for the timed out device + // + PDEVICE_OBJECT DeviceObject; + + // + // The handle for the timed out device + // + WDFDEVICE Device; + + // + // The thread which is stuck + // + PKTHREAD TimedOutThread; + +} WDF_POWER_ROUTINE_TIMED_OUT_DATA; + +typedef struct _WDF_REQUEST_FATAL_ERROR_INFORMATION_LENGTH_MISMATCH_DATA { + WDFREQUEST Request; + + PIRP Irp; + + ULONG OutputBufferLength; + + ULONG_PTR Information; + + UCHAR MajorFunction; + +} WDF_REQUEST_FATAL_ERROR_INFORMATION_LENGTH_MISMATCH_DATA, + *PWDF_REQUEST_FATAL_ERROR_INFORMATION_LENGTH_MISMATCH_DATA; + +typedef struct _WDF_QUEUE_FATAL_ERROR_DATA { + WDFQUEUE Queue; + + WDFREQUEST Request; + + NTSTATUS Status; + +} WDF_QUEUE_FATAL_ERROR_DATA, *PWDF_QUEUE_FATAL_ERROR_DATA; + + + + +#endif // (NTDDI_VERSION >= NTDDI_WIN2K) + + +WDF_EXTERN_C_END + +#endif // _WDFBUGCODES_H_ + diff --git a/sdk/include/wdf/kmdf/1.17/wdfchildlist.h b/sdk/include/wdf/kmdf/1.17/wdfchildlist.h new file mode 100644 index 00000000000..14f96550b2c --- /dev/null +++ b/sdk/include/wdf/kmdf/1.17/wdfchildlist.h @@ -0,0 +1,858 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +_WdfVersionBuild_ + +Module Name: + + WdfChildList.hpp + +Abstract: + + This module defines the set of APIs to manipulate a WDFCHILDLIST handle. A + WDFCHILDLIST handle maintains a list of descriptions representing + dynamically enumerated child devices. + +Environment: + + kernel mode only + +Revision History: + +--*/ + +// +// NOTE: This header is generated by stubwork. Please make any +// modifications to the corresponding template files +// (.x or .y) and use stubwork to regenerate the header +// + +#ifndef _WDFCHILDLIST_H_ +#define _WDFCHILDLIST_H_ + +#ifndef WDF_EXTERN_C + #ifdef __cplusplus + #define WDF_EXTERN_C extern "C" + #define WDF_EXTERN_C_START extern "C" { + #define WDF_EXTERN_C_END } + #else + #define WDF_EXTERN_C + #define WDF_EXTERN_C_START + #define WDF_EXTERN_C_END + #endif +#endif + +WDF_EXTERN_C_START + + + +#if (NTDDI_VERSION >= NTDDI_WIN2K) + +typedef enum _WDF_CHILD_LIST_RETRIEVE_DEVICE_STATUS { + WdfChildListRetrieveDeviceUndefined = 0, + WdfChildListRetrieveDeviceSuccess, + WdfChildListRetrieveDeviceNotYetCreated, + WdfChildListRetrieveDeviceNoSuchDevice, +} WDF_CHILD_LIST_RETRIEVE_DEVICE_STATUS, *PWDF_CHILD_LIST_RETRIEVE_DEVICE_STATUS; + +typedef enum _WDF_RETRIEVE_CHILD_FLAGS { + WdfRetrieveUnspecified = 0x0000, + WdfRetrievePresentChildren = 0x0001, + WdfRetrieveMissingChildren = 0x0002, + WdfRetrievePendingChildren = 0x0004, + WdfRetrieveAddedChildren = (WdfRetrievePresentChildren | WdfRetrievePendingChildren), + WdfRetrieveAllChildren = (WdfRetrievePresentChildren | WdfRetrievePendingChildren | WdfRetrieveMissingChildren), +} WDF_RETRIEVE_CHILD_FLAGS; + + + +typedef struct _WDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER { + // + // Size in bytes of the entire description, including this header. + // + // Same value as WDF_CHILD_LIST_CONFIG::IdentificationDescriptionSize + // Used as a sanity check. + // + ULONG IdentificationDescriptionSize; +} WDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER, + *PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER; + +VOID +FORCEINLINE +WDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER_INIT( + _Out_ PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER Header, + _In_ ULONG IdentificationDescriptionSize + ) +{ + RtlZeroMemory(Header, IdentificationDescriptionSize); + Header->IdentificationDescriptionSize = IdentificationDescriptionSize; +} + +typedef struct _WDF_CHILD_ADDRESS_DESCRIPTION_HEADER { + // + // Size in bytes of the entire description, including this header. + // + // Same value as WDF_CHILD_LIST_CONFIG::AddressDescriptionSize + // Used as a sanity check. + // + ULONG AddressDescriptionSize; +} WDF_CHILD_ADDRESS_DESCRIPTION_HEADER, + *PWDF_CHILD_ADDRESS_DESCRIPTION_HEADER; + +VOID +FORCEINLINE +WDF_CHILD_ADDRESS_DESCRIPTION_HEADER_INIT( + _Out_ PWDF_CHILD_ADDRESS_DESCRIPTION_HEADER Header, + _In_ ULONG AddressDescriptionSize + ) +{ + RtlZeroMemory(Header, AddressDescriptionSize); + Header->AddressDescriptionSize = AddressDescriptionSize; +} + +typedef +_Function_class_(EVT_WDF_CHILD_LIST_CREATE_DEVICE) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +EVT_WDF_CHILD_LIST_CREATE_DEVICE( + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER IdentificationDescription, + _In_ + PWDFDEVICE_INIT ChildInit + ); + +typedef EVT_WDF_CHILD_LIST_CREATE_DEVICE *PFN_WDF_CHILD_LIST_CREATE_DEVICE; + +typedef +_Function_class_(EVT_WDF_CHILD_LIST_SCAN_FOR_CHILDREN) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +VOID +EVT_WDF_CHILD_LIST_SCAN_FOR_CHILDREN( + _In_ + WDFCHILDLIST ChildList + ); + +typedef EVT_WDF_CHILD_LIST_SCAN_FOR_CHILDREN *PFN_WDF_CHILD_LIST_SCAN_FOR_CHILDREN; + +typedef +_Function_class_(EVT_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_COPY) +_IRQL_requires_same_ +_IRQL_requires_max_(DISPATCH_LEVEL) +VOID +EVT_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_COPY( + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER SourceIdentificationDescription, + _Out_ + PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER DestinationIdentificationDescription + ); + +typedef EVT_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_COPY *PFN_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_COPY; + +typedef +_Function_class_(EVT_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_DUPLICATE) +_IRQL_requires_same_ +_IRQL_requires_max_(DISPATCH_LEVEL) +NTSTATUS +EVT_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_DUPLICATE( + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER SourceIdentificationDescription, + _Out_ + PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER DestinationIdentificationDescription + ); + +typedef EVT_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_DUPLICATE *PFN_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_DUPLICATE; + +typedef +_Function_class_(EVT_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_COMPARE) +_IRQL_requires_same_ +_IRQL_requires_max_(DISPATCH_LEVEL) +BOOLEAN +EVT_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_COMPARE( + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER FirstIdentificationDescription, + _In_ + PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER SecondIdentificationDescription + ); + +typedef EVT_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_COMPARE *PFN_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_COMPARE; + +typedef +_Function_class_(EVT_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_CLEANUP) +_IRQL_requires_same_ +_IRQL_requires_max_(DISPATCH_LEVEL) +VOID +EVT_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_CLEANUP( + _In_ + WDFCHILDLIST ChildList, + _Inout_ + PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER IdentificationDescription + ); + +typedef EVT_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_CLEANUP *PFN_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_CLEANUP; + +typedef +_Function_class_(EVT_WDF_CHILD_LIST_ADDRESS_DESCRIPTION_COPY) +_IRQL_requires_same_ +_IRQL_requires_max_(DISPATCH_LEVEL) +VOID +EVT_WDF_CHILD_LIST_ADDRESS_DESCRIPTION_COPY( + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_ADDRESS_DESCRIPTION_HEADER SourceAddressDescription, + _Out_ + PWDF_CHILD_ADDRESS_DESCRIPTION_HEADER DestinationAddressDescription + ); + +typedef EVT_WDF_CHILD_LIST_ADDRESS_DESCRIPTION_COPY *PFN_WDF_CHILD_LIST_ADDRESS_DESCRIPTION_COPY; + +typedef +_Function_class_(EVT_WDF_CHILD_LIST_ADDRESS_DESCRIPTION_DUPLICATE) +_IRQL_requires_same_ +_IRQL_requires_max_(DISPATCH_LEVEL) +NTSTATUS +EVT_WDF_CHILD_LIST_ADDRESS_DESCRIPTION_DUPLICATE( + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_ADDRESS_DESCRIPTION_HEADER SourceAddressDescription, + _Out_ + PWDF_CHILD_ADDRESS_DESCRIPTION_HEADER DestinationAddressDescription + ); + +typedef EVT_WDF_CHILD_LIST_ADDRESS_DESCRIPTION_DUPLICATE *PFN_WDF_CHILD_LIST_ADDRESS_DESCRIPTION_DUPLICATE; + +typedef +_Function_class_(EVT_WDF_CHILD_LIST_ADDRESS_DESCRIPTION_CLEANUP) +_IRQL_requires_same_ +_IRQL_requires_max_(DISPATCH_LEVEL) +VOID +EVT_WDF_CHILD_LIST_ADDRESS_DESCRIPTION_CLEANUP( + _In_ + WDFCHILDLIST ChildList, + _Inout_ + PWDF_CHILD_ADDRESS_DESCRIPTION_HEADER AddressDescription + ); + +typedef EVT_WDF_CHILD_LIST_ADDRESS_DESCRIPTION_CLEANUP *PFN_WDF_CHILD_LIST_ADDRESS_DESCRIPTION_CLEANUP; + +typedef +_Function_class_(EVT_WDF_CHILD_LIST_DEVICE_REENUMERATED) +_IRQL_requires_same_ +_IRQL_requires_max_(DISPATCH_LEVEL) +BOOLEAN +EVT_WDF_CHILD_LIST_DEVICE_REENUMERATED( + _In_ + WDFCHILDLIST ChildList, + _In_ + WDFDEVICE OldDevice, + _In_ + PWDF_CHILD_ADDRESS_DESCRIPTION_HEADER OldAddressDescription, + _Out_ + PWDF_CHILD_ADDRESS_DESCRIPTION_HEADER NewAddressDescription + ); + +typedef EVT_WDF_CHILD_LIST_DEVICE_REENUMERATED *PFN_WDF_CHILD_LIST_DEVICE_REENUMERATED; + +typedef struct _WDF_CHILD_RETRIEVE_INFO { + // + // Size of the structure in bytes + // + ULONG Size; + + // + // Must be a valid pointer when passed in, copied into upon success + // + PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER IdentificationDescription; + + // + // Optional pointer when passed in, copied into upon success + // + PWDF_CHILD_ADDRESS_DESCRIPTION_HEADER AddressDescription; + + // + // Status of the returned device + // + WDF_CHILD_LIST_RETRIEVE_DEVICE_STATUS Status; + + // + // If provided, will be used for searching through the list of devices + // instead of the default list ID compare function + // + PFN_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_COMPARE EvtChildListIdentificationDescriptionCompare; + +} WDF_CHILD_RETRIEVE_INFO, *PWDF_CHILD_RETRIEVE_INFO; + +VOID +FORCEINLINE +WDF_CHILD_RETRIEVE_INFO_INIT( + _Out_ PWDF_CHILD_RETRIEVE_INFO Info, + _In_ PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER IdentificationDescription + ) +{ + RtlZeroMemory(Info, sizeof(WDF_CHILD_RETRIEVE_INFO)); + + Info->Size = sizeof(WDF_CHILD_RETRIEVE_INFO); + Info->IdentificationDescription = IdentificationDescription; +} + +typedef struct _WDF_CHILD_LIST_CONFIG { + // + // Size of this structure in bytes + // + ULONG Size; + + // + // The size in bytes of an identificaiton description to be used with the + // created WDFCHILDLIST handle + // + ULONG IdentificationDescriptionSize; + + // + // Optional size in bytes of an address description to be used with the + // created WDFCHILDLIST handle. + // + ULONG AddressDescriptionSize; + + // + // Required callback to be invoked when a description on the device list + // needs to be converted into a real WDFDEVICE handle. + // + PFN_WDF_CHILD_LIST_CREATE_DEVICE EvtChildListCreateDevice; + + // + // Optional callback to be invoked when the device list needs to be + // rescanned. This function will be called after the device has entered D0 + // and been fully initialized but before I/O has started. + // + PFN_WDF_CHILD_LIST_SCAN_FOR_CHILDREN EvtChildListScanForChildren; + + // + // Optional callback to be invoked when an identification description needs + // to be copied from one location to another. + // + // If left NULL, RtlCopyMemory will be used to copy the description. + // + PFN_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_COPY EvtChildListIdentificationDescriptionCopy; + + // + // Optional callback to be invoked when an identification description needs + // to be duplicated. As opposed to EvtChildListIdentificationDescriptionCopy, + // EvtChildListIdentificationDescriptionDuplicate can fail. + // + PFN_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_DUPLICATE EvtChildListIdentificationDescriptionDuplicate; + + // + // Optional callback to be invoked when an identification description needs + // to be cleaned up. This function should *NOT* free the description passed + // to it, just free any associated resources. + // + PFN_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_CLEANUP EvtChildListIdentificationDescriptionCleanup; + + // + // Optional callback to be invoked when an identification description needs + // to be compared with another identificaiton description. + // + // If left NULL, RtlCompareMemory will be used to compare the two + // descriptions. + // + PFN_WDF_CHILD_LIST_IDENTIFICATION_DESCRIPTION_COMPARE EvtChildListIdentificationDescriptionCompare; + + // + // Optional callback to be invoked when an address description needs + // to be copied from one location to another. + // + // If left NULL, RtlCopyMemory will be used to copy the description. + // + PFN_WDF_CHILD_LIST_ADDRESS_DESCRIPTION_COPY EvtChildListAddressDescriptionCopy; + + // + // Optional callback to be invoked when an address description needs to be + // duplicated. As opposed to EvtChildListAddressDescriptionCopy, + // EvtChildListAddressDescriptionDuplicate can fail. + // + PFN_WDF_CHILD_LIST_ADDRESS_DESCRIPTION_DUPLICATE EvtChildListAddressDescriptionDuplicate; + + // + // Optional callback to be invoked when an address description needs to be + // cleaned up. This function should *NOT* free the description passed to + // it, just free any associated resources. + // + PFN_WDF_CHILD_LIST_ADDRESS_DESCRIPTION_CLEANUP EvtChildListAddressDescriptionCleanup; + + // + // If provided, will be called when the child's stack requests that the + // child be reenumerated. Returning TRUE allows for the reenumeration to + // proceed. FALSE will no reenumerate the stack. + // + PFN_WDF_CHILD_LIST_DEVICE_REENUMERATED EvtChildListDeviceReenumerated; + +} WDF_CHILD_LIST_CONFIG, *PWDF_CHILD_LIST_CONFIG; + +VOID +FORCEINLINE +WDF_CHILD_LIST_CONFIG_INIT( + _Out_ PWDF_CHILD_LIST_CONFIG Config, + _In_ ULONG IdentificationDescriptionSize, + _In_ PFN_WDF_CHILD_LIST_CREATE_DEVICE EvtChildListCreateDevice + ) +{ + RtlZeroMemory(Config, sizeof(WDF_CHILD_LIST_CONFIG)); + + Config->Size = sizeof(WDF_CHILD_LIST_CONFIG); + Config->IdentificationDescriptionSize = IdentificationDescriptionSize; + Config->EvtChildListCreateDevice = EvtChildListCreateDevice; +} + +typedef struct _WDF_CHILD_LIST_ITERATOR { + // + // Size of this structure in bytes + // + ULONG Size; + + // + // What type of devices to return, see WDF_RETRIEVE_CHILD_FLAGS for + // flag values + // + // + ULONG Flags; + + // + // For internal use, treat this field as opaque + // + PVOID Reserved[4]; + +} WDF_CHILD_LIST_ITERATOR, *PWDF_CHILD_LIST_ITERATOR; + +VOID +FORCEINLINE +WDF_CHILD_LIST_ITERATOR_INIT( + _Out_ PWDF_CHILD_LIST_ITERATOR Iterator, + _In_ ULONG Flags + ) +{ + RtlZeroMemory(Iterator, sizeof(WDF_CHILD_LIST_ITERATOR)); + + Iterator->Size = sizeof(WDF_CHILD_LIST_ITERATOR); + Iterator->Flags = Flags; +} + + +// +// WDF Function: WdfChildListCreate +// +typedef +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +(*PFN_WDFCHILDLISTCREATE)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PWDF_CHILD_LIST_CONFIG Config, + _In_opt_ + PWDF_OBJECT_ATTRIBUTES ChildListAttributes, + _Out_ + WDFCHILDLIST* ChildList + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +FORCEINLINE +WdfChildListCreate( + _In_ + WDFDEVICE Device, + _In_ + PWDF_CHILD_LIST_CONFIG Config, + _In_opt_ + PWDF_OBJECT_ATTRIBUTES ChildListAttributes, + _Out_ + WDFCHILDLIST* ChildList + ) +{ + return ((PFN_WDFCHILDLISTCREATE) WdfFunctions[WdfChildListCreateTableIndex])(WdfDriverGlobals, Device, Config, ChildListAttributes, ChildList); +} + +// +// WDF Function: WdfChildListGetDevice +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDFDEVICE +(*PFN_WDFCHILDLISTGETDEVICE)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFDEVICE +FORCEINLINE +WdfChildListGetDevice( + _In_ + WDFCHILDLIST ChildList + ) +{ + return ((PFN_WDFCHILDLISTGETDEVICE) WdfFunctions[WdfChildListGetDeviceTableIndex])(WdfDriverGlobals, ChildList); +} + +// +// WDF Function: WdfChildListRetrievePdo +// +typedef +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDFDEVICE +(*PFN_WDFCHILDLISTRETRIEVEPDO)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList, + _Inout_ + PWDF_CHILD_RETRIEVE_INFO RetrieveInfo + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFDEVICE +FORCEINLINE +WdfChildListRetrievePdo( + _In_ + WDFCHILDLIST ChildList, + _Inout_ + PWDF_CHILD_RETRIEVE_INFO RetrieveInfo + ) +{ + return ((PFN_WDFCHILDLISTRETRIEVEPDO) WdfFunctions[WdfChildListRetrievePdoTableIndex])(WdfDriverGlobals, ChildList, RetrieveInfo); +} + +// +// WDF Function: WdfChildListRetrieveAddressDescription +// +typedef +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +(*PFN_WDFCHILDLISTRETRIEVEADDRESSDESCRIPTION)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER IdentificationDescription, + _Inout_ + PWDF_CHILD_ADDRESS_DESCRIPTION_HEADER AddressDescription + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +NTSTATUS +FORCEINLINE +WdfChildListRetrieveAddressDescription( + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER IdentificationDescription, + _Inout_ + PWDF_CHILD_ADDRESS_DESCRIPTION_HEADER AddressDescription + ) +{ + return ((PFN_WDFCHILDLISTRETRIEVEADDRESSDESCRIPTION) WdfFunctions[WdfChildListRetrieveAddressDescriptionTableIndex])(WdfDriverGlobals, ChildList, IdentificationDescription, AddressDescription); +} + +// +// WDF Function: WdfChildListBeginScan +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +(*PFN_WDFCHILDLISTBEGINSCAN)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +VOID +FORCEINLINE +WdfChildListBeginScan( + _In_ + WDFCHILDLIST ChildList + ) +{ + ((PFN_WDFCHILDLISTBEGINSCAN) WdfFunctions[WdfChildListBeginScanTableIndex])(WdfDriverGlobals, ChildList); +} + +// +// WDF Function: WdfChildListEndScan +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +(*PFN_WDFCHILDLISTENDSCAN)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +VOID +FORCEINLINE +WdfChildListEndScan( + _In_ + WDFCHILDLIST ChildList + ) +{ + ((PFN_WDFCHILDLISTENDSCAN) WdfFunctions[WdfChildListEndScanTableIndex])(WdfDriverGlobals, ChildList); +} + +// +// WDF Function: WdfChildListBeginIteration +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +(*PFN_WDFCHILDLISTBEGINITERATION)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_LIST_ITERATOR Iterator + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +VOID +FORCEINLINE +WdfChildListBeginIteration( + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_LIST_ITERATOR Iterator + ) +{ + ((PFN_WDFCHILDLISTBEGINITERATION) WdfFunctions[WdfChildListBeginIterationTableIndex])(WdfDriverGlobals, ChildList, Iterator); +} + +// +// WDF Function: WdfChildListRetrieveNextDevice +// +typedef +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +(*PFN_WDFCHILDLISTRETRIEVENEXTDEVICE)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_LIST_ITERATOR Iterator, + _Out_ + WDFDEVICE* Device, + _Inout_opt_ + PWDF_CHILD_RETRIEVE_INFO Info + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +NTSTATUS +FORCEINLINE +WdfChildListRetrieveNextDevice( + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_LIST_ITERATOR Iterator, + _Out_ + WDFDEVICE* Device, + _Inout_opt_ + PWDF_CHILD_RETRIEVE_INFO Info + ) +{ + return ((PFN_WDFCHILDLISTRETRIEVENEXTDEVICE) WdfFunctions[WdfChildListRetrieveNextDeviceTableIndex])(WdfDriverGlobals, ChildList, Iterator, Device, Info); +} + +// +// WDF Function: WdfChildListEndIteration +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +(*PFN_WDFCHILDLISTENDITERATION)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_LIST_ITERATOR Iterator + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +VOID +FORCEINLINE +WdfChildListEndIteration( + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_LIST_ITERATOR Iterator + ) +{ + ((PFN_WDFCHILDLISTENDITERATION) WdfFunctions[WdfChildListEndIterationTableIndex])(WdfDriverGlobals, ChildList, Iterator); +} + +// +// WDF Function: WdfChildListAddOrUpdateChildDescriptionAsPresent +// +typedef +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +(*PFN_WDFCHILDLISTADDORUPDATECHILDDESCRIPTIONASPRESENT)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER IdentificationDescription, + _In_opt_ + PWDF_CHILD_ADDRESS_DESCRIPTION_HEADER AddressDescription + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +NTSTATUS +FORCEINLINE +WdfChildListAddOrUpdateChildDescriptionAsPresent( + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER IdentificationDescription, + _In_opt_ + PWDF_CHILD_ADDRESS_DESCRIPTION_HEADER AddressDescription + ) +{ + return ((PFN_WDFCHILDLISTADDORUPDATECHILDDESCRIPTIONASPRESENT) WdfFunctions[WdfChildListAddOrUpdateChildDescriptionAsPresentTableIndex])(WdfDriverGlobals, ChildList, IdentificationDescription, AddressDescription); +} + +// +// WDF Function: WdfChildListUpdateChildDescriptionAsMissing +// +typedef +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +(*PFN_WDFCHILDLISTUPDATECHILDDESCRIPTIONASMISSING)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER IdentificationDescription + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +NTSTATUS +FORCEINLINE +WdfChildListUpdateChildDescriptionAsMissing( + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER IdentificationDescription + ) +{ + return ((PFN_WDFCHILDLISTUPDATECHILDDESCRIPTIONASMISSING) WdfFunctions[WdfChildListUpdateChildDescriptionAsMissingTableIndex])(WdfDriverGlobals, ChildList, IdentificationDescription); +} + +// +// WDF Function: WdfChildListUpdateAllChildDescriptionsAsPresent +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +(*PFN_WDFCHILDLISTUPDATEALLCHILDDESCRIPTIONSASPRESENT)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +VOID +FORCEINLINE +WdfChildListUpdateAllChildDescriptionsAsPresent( + _In_ + WDFCHILDLIST ChildList + ) +{ + ((PFN_WDFCHILDLISTUPDATEALLCHILDDESCRIPTIONSASPRESENT) WdfFunctions[WdfChildListUpdateAllChildDescriptionsAsPresentTableIndex])(WdfDriverGlobals, ChildList); +} + +// +// WDF Function: WdfChildListRequestChildEject +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +BOOLEAN +(*PFN_WDFCHILDLISTREQUESTCHILDEJECT)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER IdentificationDescription + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +BOOLEAN +FORCEINLINE +WdfChildListRequestChildEject( + _In_ + WDFCHILDLIST ChildList, + _In_ + PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER IdentificationDescription + ) +{ + return ((PFN_WDFCHILDLISTREQUESTCHILDEJECT) WdfFunctions[WdfChildListRequestChildEjectTableIndex])(WdfDriverGlobals, ChildList, IdentificationDescription); +} + + + +#endif // (NTDDI_VERSION >= NTDDI_WIN2K) + + + +WDF_EXTERN_C_END + +#endif // _WDFCHILDLIST_H_ + diff --git a/sdk/include/wdf/kmdf/1.17/wdfcollection.h b/sdk/include/wdf/kmdf/1.17/wdfcollection.h new file mode 100644 index 00000000000..c28ecab6c15 --- /dev/null +++ b/sdk/include/wdf/kmdf/1.17/wdfcollection.h @@ -0,0 +1,284 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +_WdfVersionBuild_ + +Module Name: + + WdfCollection.h + +Abstract: + + This is the interface to the collection object + +Environment: + + kernel mode only + +Revision History: + +--*/ + +// +// NOTE: This header is generated by stubwork. Please make any +// modifications to the corresponding template files +// (.x or .y) and use stubwork to regenerate the header +// + +#ifndef _WDFCOLLECTION_H_ +#define _WDFCOLLECTION_H_ + +#ifndef WDF_EXTERN_C + #ifdef __cplusplus + #define WDF_EXTERN_C extern "C" + #define WDF_EXTERN_C_START extern "C" { + #define WDF_EXTERN_C_END } + #else + #define WDF_EXTERN_C + #define WDF_EXTERN_C_START + #define WDF_EXTERN_C_END + #endif +#endif + +WDF_EXTERN_C_START + + + +#if (NTDDI_VERSION >= NTDDI_WIN2K) + + + +// +// WDF Function: WdfCollectionCreate +// +typedef +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +(*PFN_WDFCOLLECTIONCREATE)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_opt_ + PWDF_OBJECT_ATTRIBUTES CollectionAttributes, + _Out_ + WDFCOLLECTION* Collection + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +NTSTATUS +FORCEINLINE +WdfCollectionCreate( + _In_opt_ + PWDF_OBJECT_ATTRIBUTES CollectionAttributes, + _Out_ + WDFCOLLECTION* Collection + ) +{ + return ((PFN_WDFCOLLECTIONCREATE) WdfFunctions[WdfCollectionCreateTableIndex])(WdfDriverGlobals, CollectionAttributes, Collection); +} + +// +// WDF Function: WdfCollectionGetCount +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +ULONG +(*PFN_WDFCOLLECTIONGETCOUNT)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCOLLECTION Collection + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +ULONG +FORCEINLINE +WdfCollectionGetCount( + _In_ + WDFCOLLECTION Collection + ) +{ + return ((PFN_WDFCOLLECTIONGETCOUNT) WdfFunctions[WdfCollectionGetCountTableIndex])(WdfDriverGlobals, Collection); +} + +// +// WDF Function: WdfCollectionAdd +// +typedef +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +(*PFN_WDFCOLLECTIONADD)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCOLLECTION Collection, + _In_ + WDFOBJECT Object + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +NTSTATUS +FORCEINLINE +WdfCollectionAdd( + _In_ + WDFCOLLECTION Collection, + _In_ + WDFOBJECT Object + ) +{ + return ((PFN_WDFCOLLECTIONADD) WdfFunctions[WdfCollectionAddTableIndex])(WdfDriverGlobals, Collection, Object); +} + +// +// WDF Function: WdfCollectionRemove +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +(*PFN_WDFCOLLECTIONREMOVE)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCOLLECTION Collection, + _In_ + WDFOBJECT Item + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +VOID +FORCEINLINE +WdfCollectionRemove( + _In_ + WDFCOLLECTION Collection, + _In_ + WDFOBJECT Item + ) +{ + ((PFN_WDFCOLLECTIONREMOVE) WdfFunctions[WdfCollectionRemoveTableIndex])(WdfDriverGlobals, Collection, Item); +} + +// +// WDF Function: WdfCollectionRemoveItem +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +(*PFN_WDFCOLLECTIONREMOVEITEM)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCOLLECTION Collection, + _In_ + ULONG Index + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +VOID +FORCEINLINE +WdfCollectionRemoveItem( + _In_ + WDFCOLLECTION Collection, + _In_ + ULONG Index + ) +{ + ((PFN_WDFCOLLECTIONREMOVEITEM) WdfFunctions[WdfCollectionRemoveItemTableIndex])(WdfDriverGlobals, Collection, Index); +} + +// +// WDF Function: WdfCollectionGetItem +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDFOBJECT +(*PFN_WDFCOLLECTIONGETITEM)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCOLLECTION Collection, + _In_ + ULONG Index + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFOBJECT +FORCEINLINE +WdfCollectionGetItem( + _In_ + WDFCOLLECTION Collection, + _In_ + ULONG Index + ) +{ + return ((PFN_WDFCOLLECTIONGETITEM) WdfFunctions[WdfCollectionGetItemTableIndex])(WdfDriverGlobals, Collection, Index); +} + +// +// WDF Function: WdfCollectionGetFirstItem +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDFOBJECT +(*PFN_WDFCOLLECTIONGETFIRSTITEM)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCOLLECTION Collection + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFOBJECT +FORCEINLINE +WdfCollectionGetFirstItem( + _In_ + WDFCOLLECTION Collection + ) +{ + return ((PFN_WDFCOLLECTIONGETFIRSTITEM) WdfFunctions[WdfCollectionGetFirstItemTableIndex])(WdfDriverGlobals, Collection); +} + +// +// WDF Function: WdfCollectionGetLastItem +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDFOBJECT +(*PFN_WDFCOLLECTIONGETLASTITEM)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCOLLECTION Collection + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFOBJECT +FORCEINLINE +WdfCollectionGetLastItem( + _In_ + WDFCOLLECTION Collection + ) +{ + return ((PFN_WDFCOLLECTIONGETLASTITEM) WdfFunctions[WdfCollectionGetLastItemTableIndex])(WdfDriverGlobals, Collection); +} + + + +#endif // (NTDDI_VERSION >= NTDDI_WIN2K) + + +WDF_EXTERN_C_END + +#endif // _WDFCOLLECTION_H_ + diff --git a/sdk/include/wdf/kmdf/1.17/wdfcommonbuffer.h b/sdk/include/wdf/kmdf/1.17/wdfcommonbuffer.h new file mode 100644 index 00000000000..018a83241ab --- /dev/null +++ b/sdk/include/wdf/kmdf/1.17/wdfcommonbuffer.h @@ -0,0 +1,249 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +_WdfVersionBuild_ + +Module Name: + + WdfCommonBuffer.h + +Abstract: + + WDF CommonBuffer support + +Environment: + + Kernel mode only. + +Notes: + +Revision History: + +--*/ + +// +// NOTE: This header is generated by stubwork. Please make any +// modifications to the corresponding template files +// (.x or .y) and use stubwork to regenerate the header +// + +#ifndef _WDFCOMMONBUFFER_H_ +#define _WDFCOMMONBUFFER_H_ + +#ifndef WDF_EXTERN_C + #ifdef __cplusplus + #define WDF_EXTERN_C extern "C" + #define WDF_EXTERN_C_START extern "C" { + #define WDF_EXTERN_C_END } + #else + #define WDF_EXTERN_C + #define WDF_EXTERN_C_START + #define WDF_EXTERN_C_END + #endif +#endif + +WDF_EXTERN_C_START + + + +#if (NTDDI_VERSION >= NTDDI_WIN2K) + + + +typedef struct _WDF_COMMON_BUFFER_CONFIG { + // + // Size of this structure in bytes + // + ULONG Size; + + // + // Alignment requirement of the buffer address + // + ULONG AlignmentRequirement; + +} WDF_COMMON_BUFFER_CONFIG, *PWDF_COMMON_BUFFER_CONFIG; + +VOID +FORCEINLINE +WDF_COMMON_BUFFER_CONFIG_INIT( + _Out_ PWDF_COMMON_BUFFER_CONFIG Config, + _In_ ULONG AlignmentRequirement + ) +{ + RtlZeroMemory(Config, sizeof(WDF_COMMON_BUFFER_CONFIG)); + + Config->Size = sizeof(WDF_COMMON_BUFFER_CONFIG); + Config->AlignmentRequirement = AlignmentRequirement; +} + +// +// WDF Function: WdfCommonBufferCreate +// +typedef +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +(*PFN_WDFCOMMONBUFFERCREATE)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDMAENABLER DmaEnabler, + _In_ + _When_(Length == 0, __drv_reportError(Length cannot be zero)) + size_t Length, + _In_opt_ + PWDF_OBJECT_ATTRIBUTES Attributes, + _Out_ + WDFCOMMONBUFFER* CommonBuffer + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +FORCEINLINE +WdfCommonBufferCreate( + _In_ + WDFDMAENABLER DmaEnabler, + _In_ + _When_(Length == 0, __drv_reportError(Length cannot be zero)) + size_t Length, + _In_opt_ + PWDF_OBJECT_ATTRIBUTES Attributes, + _Out_ + WDFCOMMONBUFFER* CommonBuffer + ) +{ + return ((PFN_WDFCOMMONBUFFERCREATE) WdfFunctions[WdfCommonBufferCreateTableIndex])(WdfDriverGlobals, DmaEnabler, Length, Attributes, CommonBuffer); +} + +// +// WDF Function: WdfCommonBufferCreateWithConfig +// +typedef +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +(*PFN_WDFCOMMONBUFFERCREATEWITHCONFIG)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDMAENABLER DmaEnabler, + _In_ + _When_(Length == 0, __drv_reportError(Length cannot be zero)) + size_t Length, + _In_ + PWDF_COMMON_BUFFER_CONFIG Config, + _In_opt_ + PWDF_OBJECT_ATTRIBUTES Attributes, + _Out_ + WDFCOMMONBUFFER* CommonBuffer + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +FORCEINLINE +WdfCommonBufferCreateWithConfig( + _In_ + WDFDMAENABLER DmaEnabler, + _In_ + _When_(Length == 0, __drv_reportError(Length cannot be zero)) + size_t Length, + _In_ + PWDF_COMMON_BUFFER_CONFIG Config, + _In_opt_ + PWDF_OBJECT_ATTRIBUTES Attributes, + _Out_ + WDFCOMMONBUFFER* CommonBuffer + ) +{ + return ((PFN_WDFCOMMONBUFFERCREATEWITHCONFIG) WdfFunctions[WdfCommonBufferCreateWithConfigTableIndex])(WdfDriverGlobals, DmaEnabler, Length, Config, Attributes, CommonBuffer); +} + +// +// WDF Function: WdfCommonBufferGetAlignedVirtualAddress +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +PVOID +(*PFN_WDFCOMMONBUFFERGETALIGNEDVIRTUALADDRESS)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCOMMONBUFFER CommonBuffer + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +PVOID +FORCEINLINE +WdfCommonBufferGetAlignedVirtualAddress( + _In_ + WDFCOMMONBUFFER CommonBuffer + ) +{ + return ((PFN_WDFCOMMONBUFFERGETALIGNEDVIRTUALADDRESS) WdfFunctions[WdfCommonBufferGetAlignedVirtualAddressTableIndex])(WdfDriverGlobals, CommonBuffer); +} + +// +// WDF Function: WdfCommonBufferGetAlignedLogicalAddress +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +PHYSICAL_ADDRESS +(*PFN_WDFCOMMONBUFFERGETALIGNEDLOGICALADDRESS)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCOMMONBUFFER CommonBuffer + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +PHYSICAL_ADDRESS +FORCEINLINE +WdfCommonBufferGetAlignedLogicalAddress( + _In_ + WDFCOMMONBUFFER CommonBuffer + ) +{ + return ((PFN_WDFCOMMONBUFFERGETALIGNEDLOGICALADDRESS) WdfFunctions[WdfCommonBufferGetAlignedLogicalAddressTableIndex])(WdfDriverGlobals, CommonBuffer); +} + +// +// WDF Function: WdfCommonBufferGetLength +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +size_t +(*PFN_WDFCOMMONBUFFERGETLENGTH)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFCOMMONBUFFER CommonBuffer + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +size_t +FORCEINLINE +WdfCommonBufferGetLength( + _In_ + WDFCOMMONBUFFER CommonBuffer + ) +{ + return ((PFN_WDFCOMMONBUFFERGETLENGTH) WdfFunctions[WdfCommonBufferGetLengthTableIndex])(WdfDriverGlobals, CommonBuffer); +} + + + +#endif // (NTDDI_VERSION >= NTDDI_WIN2K) + + +WDF_EXTERN_C_END + +#endif // _WDFCOMMONBUFFER_H_ + diff --git a/sdk/include/wdf/kmdf/1.17/wdfcontrol.h b/sdk/include/wdf/kmdf/1.17/wdfcontrol.h new file mode 100644 index 00000000000..f94a3aadba7 --- /dev/null +++ b/sdk/include/wdf/kmdf/1.17/wdfcontrol.h @@ -0,0 +1,168 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +_WdfVersionBuild_ + +Module Name: + + wdfcontrol.h + +Abstract: + + Defines functions for controller and creating a "controller" NT4 style + WDFDEVICE handle. + +Environment: + + kernel mode only + +Revision History: + +--*/ + +// +// NOTE: This header is generated by stubwork. Please make any +// modifications to the corresponding template files +// (.x or .y) and use stubwork to regenerate the header +// + +#ifndef _WDFCONTROL_H_ +#define _WDFCONTROL_H_ + +#ifndef WDF_EXTERN_C + #ifdef __cplusplus + #define WDF_EXTERN_C extern "C" + #define WDF_EXTERN_C_START extern "C" { + #define WDF_EXTERN_C_END } + #else + #define WDF_EXTERN_C + #define WDF_EXTERN_C_START + #define WDF_EXTERN_C_END + #endif +#endif + +WDF_EXTERN_C_START + + + +#if (NTDDI_VERSION >= NTDDI_WIN2K) + +typedef +_Function_class_(EVT_WDF_DEVICE_SHUTDOWN_NOTIFICATION) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +VOID +EVT_WDF_DEVICE_SHUTDOWN_NOTIFICATION( + _In_ + WDFDEVICE Device + ); + +typedef EVT_WDF_DEVICE_SHUTDOWN_NOTIFICATION *PFN_WDF_DEVICE_SHUTDOWN_NOTIFICATION; + +typedef enum _WDF_DEVICE_SHUTDOWN_FLAGS { + WdfDeviceShutdown = 0x01, + WdfDeviceLastChanceShutdown = 0x02, +} WDF_DEVICE_SHUTDOWN_FLAGS; + + + +// +// WDF Function: WdfControlDeviceInitAllocate +// +typedef +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +PWDFDEVICE_INIT +(*PFN_WDFCONTROLDEVICEINITALLOCATE)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDRIVER Driver, + _In_ + CONST UNICODE_STRING* SDDLString + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +PWDFDEVICE_INIT +FORCEINLINE +WdfControlDeviceInitAllocate( + _In_ + WDFDRIVER Driver, + _In_ + CONST UNICODE_STRING* SDDLString + ) +{ + return ((PFN_WDFCONTROLDEVICEINITALLOCATE) WdfFunctions[WdfControlDeviceInitAllocateTableIndex])(WdfDriverGlobals, Driver, SDDLString); +} + +// +// WDF Function: WdfControlDeviceInitSetShutdownNotification +// +typedef +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +VOID +(*PFN_WDFCONTROLDEVICEINITSETSHUTDOWNNOTIFICATION)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PWDFDEVICE_INIT DeviceInit, + _In_ + PFN_WDF_DEVICE_SHUTDOWN_NOTIFICATION Notification, + _In_ + UCHAR Flags + ); + +_IRQL_requires_max_(PASSIVE_LEVEL) +VOID +FORCEINLINE +WdfControlDeviceInitSetShutdownNotification( + _In_ + PWDFDEVICE_INIT DeviceInit, + _In_ + PFN_WDF_DEVICE_SHUTDOWN_NOTIFICATION Notification, + _In_ + UCHAR Flags + ) +{ + ((PFN_WDFCONTROLDEVICEINITSETSHUTDOWNNOTIFICATION) WdfFunctions[WdfControlDeviceInitSetShutdownNotificationTableIndex])(WdfDriverGlobals, DeviceInit, Notification, Flags); +} + +// +// WDF Function: WdfControlFinishInitializing +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +(*PFN_WDFCONTROLFINISHINITIALIZING)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +VOID +FORCEINLINE +WdfControlFinishInitializing( + _In_ + WDFDEVICE Device + ) +{ + ((PFN_WDFCONTROLFINISHINITIALIZING) WdfFunctions[WdfControlFinishInitializingTableIndex])(WdfDriverGlobals, Device); +} + + + +#endif // (NTDDI_VERSION >= NTDDI_WIN2K) + + + +WDF_EXTERN_C_END + +#endif // _WDFCONTROL_H_ + diff --git a/sdk/include/wdf/kmdf/1.17/wdfcore.h b/sdk/include/wdf/kmdf/1.17/wdfcore.h new file mode 100644 index 00000000000..ff28279f609 --- /dev/null +++ b/sdk/include/wdf/kmdf/1.17/wdfcore.h @@ -0,0 +1,176 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +_WdfVersionBuild_ + +Module Name: + + wdfcore.h + +Abstract: + + This is the main driver framework. + +Environment: + + kernel mode only + +Revision History: + +--*/ + +// +// NOTE: This header is generated by stubwork. Please make any +// modifications to the corresponding template files +// (.x or .y) and use stubwork to regenerate the header +// + +#ifndef _WDFCORE_H_ +#define _WDFCORE_H_ + +#ifndef WDF_EXTERN_C + #ifdef __cplusplus + #define WDF_EXTERN_C extern "C" + #define WDF_EXTERN_C_START extern "C" { + #define WDF_EXTERN_C_END } + #else + #define WDF_EXTERN_C + #define WDF_EXTERN_C_START + #define WDF_EXTERN_C_END + #endif +#endif + +WDF_EXTERN_C_START + + + +#if (NTDDI_VERSION >= NTDDI_WIN2K) + + + +// +// Time conversion related macros +// +// to to to +// us ms sec +#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 +WDF_REL_TIMEOUT_IN_SEC( + _In_ ULONGLONG Time + ) +{ + return Time * -1 * WDF_TIMEOUT_TO_SEC; +} + +LONGLONG +FORCEINLINE +WDF_ABS_TIMEOUT_IN_SEC( + _In_ ULONGLONG Time + ) +{ + return Time * 1 * WDF_TIMEOUT_TO_SEC; +} + +LONGLONG +FORCEINLINE +WDF_REL_TIMEOUT_IN_MS( + _In_ ULONGLONG Time + ) +{ + return Time * -1 * WDF_TIMEOUT_TO_MS; +} + +LONGLONG +FORCEINLINE +WDF_ABS_TIMEOUT_IN_MS( + _In_ ULONGLONG Time + ) +{ + return Time * 1 * WDF_TIMEOUT_TO_MS; +} + +LONGLONG +FORCEINLINE +WDF_REL_TIMEOUT_IN_US( + _In_ ULONGLONG Time + ) +{ + return Time * -1 * WDF_TIMEOUT_TO_US; +} + +LONGLONG +FORCEINLINE +WDF_ABS_TIMEOUT_IN_US( + _In_ ULONGLONG Time + ) +{ + return Time * 1 * WDF_TIMEOUT_TO_US; +} + +// +// Rounding functions +// +size_t +FORCEINLINE +WDF_ALIGN_SIZE_DOWN( + _In_ size_t Length, + _In_ size_t AlignTo + ) +{ + return Length & ~(AlignTo - 1); +} + +size_t +FORCEINLINE +WDF_ALIGN_SIZE_UP( + _In_ size_t Length, + _In_ size_t AlignTo + ) +{ + return WDF_ALIGN_SIZE_DOWN(Length + AlignTo - 1, AlignTo); +} + + +// +// Pointer math +// +#define WDF_PTR_ADD_OFFSET_TYPE(_ptr, _offset, _type) \ + ((_type) (((PUCHAR) (_ptr)) + (_offset))) + +#define WDF_PTR_ADD_OFFSET(_ptr, _offset) \ + WDF_PTR_ADD_OFFSET_TYPE(_ptr, _offset, PVOID) + +#define WDF_PTR_GET_OFFSET(_base, _addr) \ + (size_t) (((PUCHAR) _addr) - ((PUCHAR) _base)) + +#if (OSVER(NTDDI_VERSION) == NTDDI_WIN2K) +// +// These definitions are necessary for building under a Win2K Environment. +// +#ifndef DECLARE_UNICODE_STRING_SIZE +#define DECLARE_UNICODE_STRING_SIZE(_var, _size) \ +WCHAR _var ## _buffer[_size]; \ +UNICODE_STRING _var = { 0, _size * sizeof(WCHAR) , _var ## _buffer } +#endif + +#undef DECLARE_CONST_UNICODE_STRING +#define DECLARE_CONST_UNICODE_STRING(_variablename, _string) \ +const WCHAR _variablename ## _buffer[] = _string; \ +__pragma(warning(suppress:4204)) __pragma(warning(suppress:4221)) \ +const UNICODE_STRING _variablename = { sizeof(_string) - sizeof(WCHAR), sizeof(_string), (PWSTR) _variablename ## _buffer } + +#endif // (OSVER(NTDDI_VERSION) == NTDDI_WIN2K) + + + +#endif // (NTDDI_VERSION >= NTDDI_WIN2K) + + +WDF_EXTERN_C_END + +#endif // _WDFCORE_H_ + diff --git a/sdk/include/wdf/kmdf/1.17/wdfdevice.h b/sdk/include/wdf/kmdf/1.17/wdfdevice.h new file mode 100644 index 00000000000..370612414f7 --- /dev/null +++ b/sdk/include/wdf/kmdf/1.17/wdfdevice.h @@ -0,0 +1,4496 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +_WdfVersionBuild_ + +Module Name: + + wdfdevice.h + +Abstract: + + +Environment: + + kernel mode only + +Revision History: + +--*/ + +// +// NOTE: This header is generated by stubwork. Please make any +// modifications to the corresponding template files +// (.x or .y) and use stubwork to regenerate the header +// + +#ifndef _WDFDEVICE_H_ +#define _WDFDEVICE_H_ + +#ifndef WDF_EXTERN_C + #ifdef __cplusplus + #define WDF_EXTERN_C extern "C" + #define WDF_EXTERN_C_START extern "C" { + #define WDF_EXTERN_C_END } + #else + #define WDF_EXTERN_C + #define WDF_EXTERN_C_START + #define WDF_EXTERN_C_END + #endif +#endif + +WDF_EXTERN_C_START + + + + +#include <devpropdef.h> + + +#if (NTDDI_VERSION >= NTDDI_WIN2K) + + +// begin_wpp enum +typedef enum _WDF_DEVICE_STATE_FLAGS { + WdfDevStateNP = 0x8000, +} WDF_DEVICE_STATE_FLAGS; + +// end_wpp + +// begin_wpp enum +typedef enum _WDF_DEVICE_PNP_STATE { + WdfDevStatePnpInvalid = 0x00, + WdfDevStatePnpObjectCreated = 0x100, + WdfDevStatePnpCheckForDevicePresence = 0x101, + WdfDevStatePnpEjectFailed = 0x102, + WdfDevStatePnpEjectHardware = 0x103, + WdfDevStatePnpEjectedWaitingForRemove = 0x104, + WdfDevStatePnpInit = 0x105, + WdfDevStatePnpInitStarting = 0x106, + WdfDevStatePnpInitSurpriseRemoved = 0x107, + WdfDevStatePnpHardwareAvailable = 0x108, + WdfDevStatePnpEnableInterfaces = 0x109, + WdfDevStatePnpHardwareAvailablePowerPolicyFailed = 0x10A, + WdfDevStatePnpQueryRemoveAskDriver = 0x10B, + WdfDevStatePnpQueryRemovePending = 0x10C, + WdfDevStatePnpQueryRemoveStaticCheck = 0x10D, + WdfDevStatePnpQueriedRemoving = 0x10E, + WdfDevStatePnpQueryStopAskDriver = 0x10F, + WdfDevStatePnpQueryStopPending = 0x110, + WdfDevStatePnpQueryStopStaticCheck = 0x111, + WdfDevStatePnpQueryCanceled = 0x112, + WdfDevStatePnpRemoved = 0x113, + WdfDevStatePnpPdoRemoved = 0x114, + WdfDevStatePnpRemovedPdoWait = 0x115, + WdfDevStatePnpRemovedPdoSurpriseRemoved = 0x116, + WdfDevStatePnpRemovingDisableInterfaces = 0x117, + WdfDevStatePnpRestarting = 0x118, + WdfDevStatePnpStarted = 0x119, + WdfDevStatePnpStartedCancelStop = 0x11A, + WdfDevStatePnpStartedCancelRemove = 0x11B, + WdfDevStatePnpStartedRemoving = 0x11C, + WdfDevStatePnpStartingFromStopped = 0x11D, + WdfDevStatePnpStopped = 0x11E, + WdfDevStatePnpStoppedWaitForStartCompletion = 0x11F, + WdfDevStatePnpStartedStopping = 0x120, + WdfDevStatePnpSurpriseRemove = 0x121, + WdfDevStatePnpInitQueryRemove = 0x122, + WdfDevStatePnpInitQueryRemoveCanceled = 0x123, + WdfDevStatePnpFdoRemoved = 0x124, + WdfDevStatePnpRemovedWaitForChildren = 0x125, + WdfDevStatePnpQueriedSurpriseRemove = 0x126, + WdfDevStatePnpSurpriseRemoveIoStarted = 0x127, + WdfDevStatePnpFailedPowerDown = 0x128, + WdfDevStatePnpFailedIoStarting = 0x129, + WdfDevStatePnpFailedOwnHardware = 0x12A, + WdfDevStatePnpFailed = 0x12B, + WdfDevStatePnpFailedSurpriseRemoved = 0x12C, + WdfDevStatePnpFailedStarted = 0x12D, + WdfDevStatePnpFailedWaitForRemove = 0x12E, + WdfDevStatePnpFailedInit = 0x12F, + WdfDevStatePnpPdoInitFailed = 0x130, + WdfDevStatePnpRestart = 0x131, + WdfDevStatePnpRestartReleaseHardware = 0x132, + WdfDevStatePnpRestartHardwareAvailable = 0x133, + WdfDevStatePnpPdoRestart = 0x134, + WdfDevStatePnpFinal = 0x135, + WdfDevStatePnpRemovedChildrenRemoved = 0x136, + WdfDevStatePnpQueryRemoveEnsureDeviceAwake = 0x137, + WdfDevStatePnpQueryStopEnsureDeviceAwake = 0x138, + WdfDevStatePnpFailedPowerPolicyRemoved = 0x139, + WdfDevStatePnpNull = 0x13A, +} WDF_DEVICE_PNP_STATE, *PWDF_DEVICE_PNP_STATE; + +// end_wpp + +// begin_wpp enum +typedef enum _WDF_DEVICE_POWER_STATE { + WdfDevStatePowerInvalid = 0x00, + WdfDevStatePowerObjectCreated = 0x300, + WdfDevStatePowerCheckDeviceType = 0x301, + WdfDevStatePowerCheckDeviceTypeNP = 0x302 | WdfDevStateNP, + WdfDevStatePowerCheckParentState = 0x303, + WdfDevStatePowerCheckParentStateNP = 0x304 | WdfDevStateNP, + WdfDevStatePowerEnablingWakeAtBus = 0x305, + WdfDevStatePowerEnablingWakeAtBusNP = 0x306 | WdfDevStateNP, + WdfDevStatePowerD0 = 0x307, + WdfDevStatePowerD0NP = 0x308 | WdfDevStateNP, + WdfDevStatePowerD0BusWakeOwner = 0x309, + WdfDevStatePowerD0BusWakeOwnerNP = 0x30A | WdfDevStateNP, + WdfDevStatePowerD0ArmedForWake = 0x30B, + WdfDevStatePowerD0ArmedForWakeNP = 0x30C | WdfDevStateNP, + WdfDevStatePowerD0DisarmingWakeAtBus = 0x30D, + WdfDevStatePowerD0DisarmingWakeAtBusNP = 0x30E | WdfDevStateNP, + WdfDevStatePowerD0Starting = 0x30F, + WdfDevStatePowerD0StartingConnectInterrupt = 0x310, + WdfDevStatePowerD0StartingDmaEnable = 0x311, + WdfDevStatePowerD0StartingStartSelfManagedIo = 0x312, + WdfDevStatePowerDecideD0State = 0x313, + WdfDevStatePowerGotoD3Stopped = 0x314, + WdfDevStatePowerStopped = 0x315, + WdfDevStatePowerStartingCheckDeviceType = 0x316, + WdfDevStatePowerStartingChild = 0x317, + WdfDevStatePowerDxDisablingWakeAtBus = 0x318, + WdfDevStatePowerDxDisablingWakeAtBusNP = 0x319 | WdfDevStateNP, + WdfDevStatePowerGotoDx = 0x31A, + WdfDevStatePowerGotoDxNP = 0x31B | WdfDevStateNP, + WdfDevStatePowerGotoDxIoStopped = 0x31C, + WdfDevStatePowerGotoDxIoStoppedNP = 0x31D | WdfDevStateNP, + WdfDevStatePowerGotoDxNPFailed = 0x31E | WdfDevStateNP, + WdfDevStatePowerDx = 0x31F, + WdfDevStatePowerDxNP = 0x320 | WdfDevStateNP, + WdfDevStatePowerGotoDxArmedForWake = 0x321, + WdfDevStatePowerGotoDxArmedForWakeNP = 0x322 | WdfDevStateNP, + WdfDevStatePowerGotoDxIoStoppedArmedForWake = 0x323, + WdfDevStatePowerGotoDxIoStoppedArmedForWakeNP = 0x324 | WdfDevStateNP, + WdfDevStatePowerDxArmedForWake = 0x325, + WdfDevStatePowerDxArmedForWakeNP = 0x326 | WdfDevStateNP, + WdfDevStatePowerCheckParentStateArmedForWake = 0x327, + WdfDevStatePowerCheckParentStateArmedForWakeNP = 0x328 | WdfDevStateNP, + WdfDevStatePowerWaitForParentArmedForWake = 0x329, + WdfDevStatePowerWaitForParentArmedForWakeNP = 0x32A | WdfDevStateNP, + WdfDevStatePowerStartSelfManagedIo = 0x32B, + WdfDevStatePowerStartSelfManagedIoNP = 0x32C | WdfDevStateNP, + WdfDevStatePowerStartSelfManagedIoFailed = 0x32D, + WdfDevStatePowerStartSelfManagedIoFailedNP = 0x32E | WdfDevStateNP, + WdfDevStatePowerWaitForParent = 0x32F, + WdfDevStatePowerWaitForParentNP = 0x330 | WdfDevStateNP, + WdfDevStatePowerWakePending = 0x331, + WdfDevStatePowerWakePendingNP = 0x332 | WdfDevStateNP, + WdfDevStatePowerWaking = 0x333, + WdfDevStatePowerWakingNP = 0x334 | WdfDevStateNP, + WdfDevStatePowerWakingConnectInterrupt = 0x335, + WdfDevStatePowerWakingConnectInterruptNP = 0x336 | WdfDevStateNP, + WdfDevStatePowerWakingConnectInterruptFailed = 0x337, + WdfDevStatePowerWakingConnectInterruptFailedNP = 0x338 | WdfDevStateNP, + WdfDevStatePowerWakingDmaEnable = 0x339, + WdfDevStatePowerWakingDmaEnableNP = 0x33A | WdfDevStateNP, + WdfDevStatePowerWakingDmaEnableFailed = 0x33B, + WdfDevStatePowerWakingDmaEnableFailedNP = 0x33C | WdfDevStateNP, + WdfDevStatePowerReportPowerUpFailedDerefParent = 0x33D, + WdfDevStatePowerReportPowerUpFailed = 0x33E, + WdfDevStatePowerPowerFailedPowerDown = 0x33F, + WdfDevStatePowerReportPowerDownFailed = 0x340, + WdfDevStatePowerInitialConnectInterruptFailed = 0x341, + WdfDevStatePowerInitialDmaEnableFailed = 0x342, + WdfDevStatePowerInitialSelfManagedIoFailed = 0x343, + WdfDevStatePowerInitialPowerUpFailedDerefParent = 0x344, + WdfDevStatePowerInitialPowerUpFailed = 0x345, + WdfDevStatePowerDxStoppedDisarmWake = 0x346, + WdfDevStatePowerDxStoppedDisarmWakeNP = 0x347 | WdfDevStateNP, + WdfDevStatePowerGotoDxStoppedDisableInterruptNP = 0x348 | WdfDevStateNP, + WdfDevStatePowerGotoDxStopped = 0x349, + WdfDevStatePowerDxStopped = 0x34A, + WdfDevStatePowerGotoStopped = 0x34B, + WdfDevStatePowerStoppedCompleteDx = 0x34C, + WdfDevStatePowerDxStoppedDecideDxState = 0x34D, + WdfDevStatePowerDxStoppedArmForWake = 0x34E, + WdfDevStatePowerDxStoppedArmForWakeNP = 0x34F | WdfDevStateNP, + WdfDevStatePowerFinalPowerDownFailed = 0x350, + WdfDevStatePowerFinal = 0x351, + WdfDevStatePowerGotoImplicitD3DisarmWakeAtBus = 0x352, + WdfDevStatePowerUpFailed = 0x353, + WdfDevStatePowerUpFailedDerefParent = 0x354, + WdfDevStatePowerGotoDxFailed = 0x355, + WdfDevStatePowerGotoDxStoppedDisableInterrupt = 0x356, + WdfDevStatePowerUpFailedNP = 0x357 | WdfDevStateNP, + WdfDevStatePowerUpFailedDerefParentNP = 0x358 | WdfDevStateNP, + WdfDevStatePowerNotifyingD0ExitToWakeInterrupts = 0x359, + WdfDevStatePowerNotifyingD0EntryToWakeInterrupts = 0x35A, + WdfDevStatePowerNotifyingD0ExitToWakeInterruptsNP = 0x35B | WdfDevStateNP, + WdfDevStatePowerNotifyingD0EntryToWakeInterruptsNP = 0x35C | WdfDevStateNP, + WdfDevStatePowerNull = 0x35D, +} WDF_DEVICE_POWER_STATE, *PWDF_DEVICE_POWER_STATE; + +// end_wpp + + +// begin_wpp enum +typedef enum _WDF_DEVICE_POWER_POLICY_STATE { + WdfDevStatePwrPolInvalid = 0x00, + WdfDevStatePwrPolObjectCreated = 0x500, + WdfDevStatePwrPolStarting = 0x501, + WdfDevStatePwrPolStartingSucceeded = 0x502, + WdfDevStatePwrPolStartingFailed = 0x503, + WdfDevStatePwrPolStartingDecideS0Wake = 0x504, + WdfDevStatePwrPolStartedIdleCapable = 0x505, + WdfDevStatePwrPolTimerExpiredNoWake = 0x506, + WdfDevStatePwrPolTimerExpiredNoWakeCompletePowerDown = 0x507, + WdfDevStatePwrPolWaitingUnarmed = 0x508, + WdfDevStatePwrPolWaitingUnarmedQueryIdle = 0x509, + WdfDevStatePwrPolS0NoWakePowerUp = 0x50A, + WdfDevStatePwrPolS0NoWakeCompletePowerUp = 0x50B, + WdfDevStatePwrPolSystemSleepFromDeviceWaitingUnarmed = 0x50C, + WdfDevStatePwrPolSystemSleepNeedWake = 0x50D, + WdfDevStatePwrPolSystemSleepNeedWakeCompletePowerUp = 0x50E, + WdfDevStatePwrPolSystemSleepPowerRequestFailed = 0x50F, + WdfDevStatePwrPolCheckPowerPageable = 0x510, + WdfDevStatePwrPolSleepingWakeWakeArrived = 0x511, + WdfDevStatePwrPolSleepingWakeRevertArmWake = 0x512, + WdfDevStatePwrPolSystemAsleepWakeArmed = 0x513, + WdfDevStatePwrPolSystemWakeDeviceWakeEnabled = 0x514, + WdfDevStatePwrPolSystemWakeDeviceWakeEnabledWakeCanceled = 0x515, + WdfDevStatePwrPolSystemWakeDeviceWakeDisarm = 0x516, + WdfDevStatePwrPolSystemWakeDeviceWakeTriggered = 0x517, + WdfDevStatePwrPolSystemWakeDeviceWakeTriggeredS0 = 0x518, + WdfDevStatePwrPolSystemWakeDeviceWokeDisarm = 0x519, + WdfDevStatePwrPolSleepingWakeWakeArrivedNP = 0x51A | WdfDevStateNP, + WdfDevStatePwrPolSleepingWakeRevertArmWakeNP = 0x51B | WdfDevStateNP, + WdfDevStatePwrPolSleepingWakePowerDownFailed = 0x51C, + WdfDevStatePwrPolSleepingWakePowerDownFailedWakeCanceled = 0x51D, + WdfDevStatePwrPolSystemAsleepWakeArmedNP = 0x51E | WdfDevStateNP, + WdfDevStatePwrPolSystemWakeDeviceWakeEnabledNP = 0x51F | WdfDevStateNP, + WdfDevStatePwrPolSystemWakeDeviceWakeEnabledWakeCanceledNP = 0x520 | WdfDevStateNP, + WdfDevStatePwrPolSystemWakeDeviceWakeDisarmNP = 0x521 | WdfDevStateNP, + WdfDevStatePwrPolSystemWakeDeviceWakeTriggeredNP = 0x522 | WdfDevStateNP, + WdfDevStatePwrPolSystemWakeDeviceWakeTriggeredS0NP = 0x523 | WdfDevStateNP, + WdfDevStatePwrPolSystemWakeDeviceWokeDisarmNP = 0x524 | WdfDevStateNP, + WdfDevStatePwrPolSystemWakeDeviceWakeCompletePowerUp = 0x525, + WdfDevStatePwrPolSleeping = 0x526, + WdfDevStatePwrPolSleepingNoWakePowerDown = 0x527, + WdfDevStatePwrPolSleepingNoWakeCompletePowerDown = 0x528, + WdfDevStatePwrPolSleepingNoWakeDxRequestFailed = 0x529, + WdfDevStatePwrPolSleepingWakePowerDown = 0x52A, + WdfDevStatePwrPolSleepingSendWake = 0x52B, + WdfDevStatePwrPolSystemAsleepNoWake = 0x52C, + WdfDevStatePwrPolSystemWakeDeviceWakeDisabled = 0x52D, + WdfDevStatePwrPolSystemWakeDeviceToD0 = 0x52E, + WdfDevStatePwrPolSystemWakeDeviceToD0CompletePowerUp = 0x52F, + WdfDevStatePwrPolSystemWakeQueryIdle = 0x530, + WdfDevStatePwrPolStartedWakeCapable = 0x531, + WdfDevStatePwrPolTimerExpiredDecideUsbSS = 0x532, + WdfDevStatePwrPolTimerExpiredWakeCapablePowerDown = 0x533, + WdfDevStatePwrPolTimerExpiredWakeCapableSendWake = 0x534, + WdfDevStatePwrPolTimerExpiredWakeCapableUsbSS = 0x535, + WdfDevStatePwrPolTimerExpiredWakeCapableWakeArrived = 0x536, + WdfDevStatePwrPolTimerExpiredWakeCapableCancelWake = 0x537, + WdfDevStatePwrPolTimerExpiredWakeCapableWakeCanceled = 0x538, + WdfDevStatePwrPolTimerExpiredWakeCapableCleanup = 0x539, + WdfDevStatePwrPolTimerExpiredWakeCapableDxAllocFailed = 0x53A, + WdfDevStatePwrPolTimerExpiredWakeCompletedPowerDown = 0x53B, + WdfDevStatePwrPolTimerExpiredWakeCompletedPowerUp = 0x53C, + WdfDevStatePwrPolWaitingArmedUsbSS = 0x53D, + WdfDevStatePwrPolWaitingArmed = 0x53E, + WdfDevStatePwrPolWaitingArmedQueryIdle = 0x53F, + WdfDevStatePwrPolIoPresentArmed = 0x540, + WdfDevStatePwrPolIoPresentArmedWakeCanceled = 0x541, + WdfDevStatePwrPolS0WakeDisarm = 0x542, + WdfDevStatePwrPolS0WakeCompletePowerUp = 0x543, + WdfDevStatePwrPolTimerExpiredWakeSucceeded = 0x544, + WdfDevStatePwrPolTimerExpiredWakeCompletedDisarm = 0x545, + WdfDevStatePwrPolTimerExpiredWakeCapableWakeSucceeded = 0x546, + WdfDevStatePwrPolTimerExpiredWakeCapableWakeFailed = 0x547, + WdfDevStatePwrPolWakeFailedUsbSS = 0x548, + WdfDevStatePwrPolTimerExpiredWakeCapablePowerDownFailedCancelWake = 0x549, + WdfDevStatePwrPolTimerExpiredWakeCapablePowerDownFailedWakeCanceled = 0x54A, + WdfDevStatePwrPolTimerExpiredWakeCapablePowerDownFailedUsbSS = 0x54B, + WdfDevStatePwrPolCancelingWakeForSystemSleep = 0x54C, + WdfDevStatePwrPolCancelingWakeForSystemSleepWakeCanceled = 0x54D, + WdfDevStatePwrPolDisarmingWakeForSystemSleepCompletePowerUp = 0x54E, + WdfDevStatePwrPolPowerUpForSystemSleepFailed = 0x54F, + WdfDevStatePwrPolWokeFromS0UsbSS = 0x550, + WdfDevStatePwrPolWokeFromS0 = 0x551, + WdfDevStatePwrPolWokeFromS0NotifyDriver = 0x552, + WdfDevStatePwrPolStoppingResetDevice = 0x553, + WdfDevStatePwrPolStoppingResetDeviceCompletePowerUp = 0x554, + WdfDevStatePwrPolStoppingResetDeviceFailed = 0x555, + WdfDevStatePwrPolStoppingD0 = 0x556, + WdfDevStatePwrPolStoppingD0Failed = 0x557, + WdfDevStatePwrPolStoppingDisarmWake = 0x558, + WdfDevStatePwrPolStoppingDisarmWakeCancelWake = 0x559, + WdfDevStatePwrPolStoppingDisarmWakeWakeCanceled = 0x55A, + WdfDevStatePwrPolStopping = 0x55B, + WdfDevStatePwrPolStoppingFailed = 0x55C, + WdfDevStatePwrPolStoppingSendStatus = 0x55D, + WdfDevStatePwrPolStoppingCancelTimer = 0x55E, + WdfDevStatePwrPolStoppingWaitForIdleTimeout = 0x55F, + WdfDevStatePwrPolStoppingCancelUsbSS = 0x560, + WdfDevStatePwrPolStoppingWaitForUsbSSCompletion = 0x561, + WdfDevStatePwrPolStoppingCancelWake = 0x562, + WdfDevStatePwrPolStopped = 0x563, + WdfDevStatePwrPolCancelUsbSS = 0x564, + WdfDevStatePwrPolStarted = 0x565, + WdfDevStatePwrPolStartedCancelTimer = 0x566, + WdfDevStatePwrPolStartedWaitForIdleTimeout = 0x567, + WdfDevStatePwrPolStartedWakeCapableCancelTimerForSleep = 0x568, + WdfDevStatePwrPolStartedWakeCapableWaitForIdleTimeout = 0x569, + WdfDevStatePwrPolStartedWakeCapableSleepingUsbSS = 0x56A, + WdfDevStatePwrPolStartedIdleCapableCancelTimerForSleep = 0x56B, + WdfDevStatePwrPolStartedIdleCapableWaitForIdleTimeout = 0x56C, + WdfDevStatePwrPolDeviceD0PowerRequestFailed = 0x56D, + WdfDevStatePwrPolDevicePowerRequestFailed = 0x56E, + WdfDevStatePwrPolGotoDx = 0x56F, + WdfDevStatePwrPolGotoDxInDx = 0x570, + WdfDevStatePwrPolDx = 0x571, + WdfDevStatePwrPolGotoD0 = 0x572, + WdfDevStatePwrPolGotoD0InD0 = 0x573, + WdfDevStatePwrPolFinal = 0x574, + WdfDevStatePwrPolSleepingPowerDownNotProcessed = 0x575, + WdfDevStatePwrPolTimerExpiredWakeCapablePowerDownNotProcessed = 0x576, + WdfDevStatePwrPolTimerExpiredNoWakePowerDownNotProcessed = 0x577, + WdfDevStatePwrPolTimerExpiredNoWakePoweredDownDisableIdleTimer = 0x578, + WdfDevStatePwrPolStoppingWaitingForImplicitPowerDown = 0x579, + WdfDevStatePwrPolStoppingPoweringUp = 0x57A, + WdfDevStatePwrPolStoppingPoweringDown = 0x57B, + WdfDevStatePwrPolPowerUpForSystemSleepNotSeen = 0x57C, + WdfDevStatePwrPolWaitingArmedStoppingCancelUsbSS = 0x57D, + WdfDevStatePwrPolWaitingArmedWakeFailedCancelUsbSS = 0x57E, + WdfDevStatePwrPolWaitingArmedIoPresentCancelUsbSS = 0x57F, + WdfDevStatePwrPolWaitingArmedWakeSucceededCancelUsbSS = 0x580, + WdfDevStatePwrPolCancelingUsbSSForSystemSleep = 0x581, + WdfDevStatePwrPolStoppingD0CancelUsbSS = 0x582, + WdfDevStatePwrPolStartingPoweredUp = 0x583, + WdfDevStatePwrPolIdleCapableDeviceIdle = 0x584, + WdfDevStatePwrPolDeviceIdleReturnToActive = 0x585, + WdfDevStatePwrPolDeviceIdleSleeping = 0x586, + WdfDevStatePwrPolDeviceIdleStopping = 0x587, + WdfDevStatePwrPolTimerExpiredNoWakeUndoPowerDown = 0x588, + WdfDevStatePwrPolWakeCapableDeviceIdle = 0x589, + WdfDevStatePwrPolWakeCapableUsbSSCompleted = 0x58A, + WdfDevStatePwrPolTimerExpiredWakeCapableUndoPowerDown = 0x58B, + WdfDevStatePwrPolTimerExpiredWakeCompletedHardwareStarted = 0x58C, + WdfDevStatePwrPolStoppedRemoving = 0x58D, + WdfDevStatePwrPolRemoved = 0x58E, + WdfDevStatePwrPolRestarting = 0x58F, + WdfDevStatePwrPolRestartingFailed = 0x590, + WdfDevStatePwrPolStartingPoweredUpFailed = 0x591, + WdfDevStatePwrPolTimerExpiredNoWakeReturnToActive = 0x592, + WdfDevStatePwrPolWaitingArmedWakeInterruptFired = 0x593, + WdfDevStatePwrPolSystemWakeDeviceWakeInterruptFired = 0x594, + WdfDevStatePwrPolSystemWakeDeviceWakeInterruptFiredNP = 0x595 | WdfDevStateNP, + WdfDevStatePwrPolTimerExpiredWakeCapableWakeInterruptArrived = 0x596, + WdfDevStatePwrPolTimerExpiredWakeCapablePowerDownFailedWakeInterruptArrived = 0x597, + WdfDevStatePwrPolWaitingArmedWakeInterruptFiredDuringPowerDown = 0x598, + WdfDevStatePwrPolNull = 0x599, +} WDF_DEVICE_POWER_POLICY_STATE, *PWDF_DEVICE_POWER_POLICY_STATE; + +// end_wpp + +typedef enum _WDF_STATE_NOTIFICATION_TYPE { + StateNotificationInvalid = 0x0000, + StateNotificationEnterState = 0x0001, + StateNotificationPostProcessState = 0x0002, + StateNotificationLeaveState = 0x0004, + StateNotificationAllStates = StateNotificationEnterState | StateNotificationPostProcessState | StateNotificationLeaveState, +} WDF_STATE_NOTIFICATION_TYPE; + +typedef enum _WDF_POWER_POLICY_S0_IDLE_CAPABILITIES { + IdleCapsInvalid = 0, + IdleCannotWakeFromS0, + IdleCanWakeFromS0, + IdleUsbSelectiveSuspend, +} WDF_POWER_POLICY_S0_IDLE_CAPABILITIES; + +typedef enum _WDF_POWER_POLICY_S0_IDLE_USER_CONTROL { + IdleUserControlInvalid = 0, + IdleDoNotAllowUserControl, + IdleAllowUserControl, +} WDF_POWER_POLICY_S0_IDLE_USER_CONTROL; + +typedef enum _WDF_POWER_POLICY_IDLE_TIMEOUT_CONSTANTS { + IdleTimeoutDefaultConstant = 0, +} WDF_POWER_POLICY_IDLE_TIMEOUT_CONSTANTS; + +typedef enum _WDF_POWER_POLICY_SX_WAKE_USER_CONTROL { + WakeUserControlInvalid = 0, + WakeDoNotAllowUserControl, + WakeAllowUserControl, +} WDF_POWER_POLICY_SX_WAKE_USER_CONTROL; + +typedef enum _WDF_POWER_DEVICE_STATE { + WdfPowerDeviceInvalid = 0, + WdfPowerDeviceD0, + WdfPowerDeviceD1, + WdfPowerDeviceD2, + WdfPowerDeviceD3, + WdfPowerDeviceD3Final, + WdfPowerDevicePrepareForHibernation, + WdfPowerDeviceMaximum, +} WDF_POWER_DEVICE_STATE, *PWDF_POWER_DEVICE_STATE; + + + +typedef enum _WDF_DISPATCH_IRP_TO_IO_QUEUE_FLAGS { + WDF_DISPATCH_IRP_TO_IO_QUEUE_NO_FLAGS = 0x00000000, + WDF_DISPATCH_IRP_TO_IO_QUEUE_INVOKE_INCALLERCTX_CALLBACK = 0x00000001, + WDF_DISPATCH_IRP_TO_IO_QUEUE_PREPROCESSED_IRP = 0x00000002, +} WDF_DISPATCH_IRP_TO_IO_QUEUE_FLAGS; + +typedef enum _WDF_SPECIAL_FILE_TYPE { + WdfSpecialFileUndefined = 0, + WdfSpecialFilePaging = 1, + WdfSpecialFileHibernation, + WdfSpecialFileDump, + WdfSpecialFileBoot, + WdfSpecialFileMax, +} WDF_SPECIAL_FILE_TYPE, *PWDF_SPECIAL_FILE_TYPE; + +typedef enum _WDF_DEVICE_IO_TYPE { + WdfDeviceIoUndefined = 0, + WdfDeviceIoNeither, + WdfDeviceIoBuffered, + WdfDeviceIoDirect, + WdfDeviceIoBufferedOrDirect = 4, + WdfDeviceIoMaximum, +} WDF_DEVICE_IO_TYPE, *PWDF_DEVICE_IO_TYPE; + +typedef enum _WDF_FILEOBJECT_CLASS { + WdfFileObjectInvalid = 0, + WdfFileObjectNotRequired = 1, + WdfFileObjectWdfCanUseFsContext = 2, + WdfFileObjectWdfCanUseFsContext2 = 3, + WdfFileObjectWdfCannotUseFsContexts = 4, + WdfFileObjectCanBeOptional = 0x80000000, +} WDF_FILEOBJECT_CLASS, *PWDF_FILEOBJECT_CLASS; + +typedef enum _WDF_DEVICE_FAILED_ACTION { + WdfDeviceFailedUndefined = 0, + WdfDeviceFailedAttemptRestart, + WdfDeviceFailedNoRestart, +} WDF_DEVICE_FAILED_ACTION; + +typedef enum _WDF_RELEASE_HARDWARE_ORDER_ON_FAILURE { + WdfReleaseHardwareOrderOnFailureInvalid = 0, + WdfReleaseHardwareOrderOnFailureEarly, + WdfReleaseHardwareOrderOnFailureAfterDescendants, +} WDF_RELEASE_HARDWARE_ORDER_ON_FAILURE, *PWDF_RELEASE_HARDWARE_ORDER_ON_FAILURE; + + + +// +// If you do not want the auto inclusion of wdmsec.h, define +// WDF_DEVICE_NO_WDMSEC_H before including this file (or wdf.h) +// +#ifndef WDF_DEVICE_NO_WDMSEC_H +#include <wdmsec.h> +#endif // WDF_DEVICE_NO_WDMSEC_H + + +#define WDF_S0_IDLE_ENABLED_VALUE_NAME L"IdleInWorkingState" +#define WDF_SX_WAKE_ENABLED_VALUE_NAME L"WakeFromSleepState" +#define WDF_S0_IDLE_DEFAULT_VALUE_NAME L"WdfDefaultIdleInWorkingState" +#define WDF_SX_WAKE_DEFAULT_VALUE_NAME L"WdfDefaultWakeFromSleepState" +// +// Declare empty definitions so that they may be referenced by +// routines before they are defined. +// +typedef enum _WDF_REQUEST_TYPE WDF_REQUEST_TYPE; + + +typedef +_Function_class_(EVT_WDF_DEVICE_FILE_CREATE) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +VOID +EVT_WDF_DEVICE_FILE_CREATE( + _In_ + WDFDEVICE Device, + _In_ + WDFREQUEST Request, + _In_ + WDFFILEOBJECT FileObject + ); + +typedef EVT_WDF_DEVICE_FILE_CREATE *PFN_WDF_DEVICE_FILE_CREATE; + +typedef +_Function_class_(EVT_WDF_FILE_CLOSE) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +VOID +EVT_WDF_FILE_CLOSE( + _In_ + WDFFILEOBJECT FileObject + ); + +typedef EVT_WDF_FILE_CLOSE *PFN_WDF_FILE_CLOSE; + +typedef +_Function_class_(EVT_WDF_FILE_CLEANUP) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +VOID +EVT_WDF_FILE_CLEANUP( + _In_ + WDFFILEOBJECT FileObject + ); + +typedef EVT_WDF_FILE_CLEANUP *PFN_WDF_FILE_CLEANUP; + +typedef struct _WDF_FILEOBJECT_CONFIG { + // + // Size of this structure in bytes + // + ULONG Size; + + // + // Event callback for create requests + // + PFN_WDF_DEVICE_FILE_CREATE EvtDeviceFileCreate; + + // + // Event callback for close requests + // + PFN_WDF_FILE_CLOSE EvtFileClose; + + // + // Event callback for cleanup requests + // + PFN_WDF_FILE_CLEANUP EvtFileCleanup; + + // + // If WdfTrue, create/cleanup/close file object related requests will be + // sent down the stack. + // + // If WdfFalse, create/cleanup/close will be completed at this location in + // the device stack. + // + // If WdfDefault, behavior depends on device type + // FDO, PDO, Control: use the WdfFalse behavior + // Filter: use the WdfTrue behavior + // + WDF_TRI_STATE AutoForwardCleanupClose; + + // + // Specify whether framework should create WDFFILEOBJECT and also + // whether it can FsContexts fields in the WDM fileobject to store + // WDFFILEOBJECT so that it can avoid table look up and improve perf. + // + WDF_FILEOBJECT_CLASS FileObjectClass; + +} WDF_FILEOBJECT_CONFIG, *PWDF_FILEOBJECT_CONFIG; + +VOID +FORCEINLINE +WDF_FILEOBJECT_CONFIG_INIT( + _Out_ PWDF_FILEOBJECT_CONFIG FileEventCallbacks, + _In_opt_ PFN_WDF_DEVICE_FILE_CREATE EvtDeviceFileCreate, + _In_opt_ PFN_WDF_FILE_CLOSE EvtFileClose, + _In_opt_ PFN_WDF_FILE_CLEANUP EvtFileCleanup + ) +{ + FileEventCallbacks->Size = sizeof(WDF_FILEOBJECT_CONFIG); + + FileEventCallbacks->EvtDeviceFileCreate = EvtDeviceFileCreate; + FileEventCallbacks->EvtFileClose = EvtFileClose; + FileEventCallbacks->EvtFileCleanup = EvtFileCleanup; + + FileEventCallbacks->FileObjectClass = WdfFileObjectWdfCannotUseFsContexts; + FileEventCallbacks->AutoForwardCleanupClose = WdfUseDefault; +} + +typedef struct _WDF_DEVICE_PNP_NOTIFICATION_DATA { + // + // Type of data + // + WDF_STATE_NOTIFICATION_TYPE Type; + + union { + struct { + // + // The current state that is about to be exited + // + WDF_DEVICE_PNP_STATE CurrentState; + + // + // The new state that is about to be entered + // + WDF_DEVICE_PNP_STATE NewState; + } EnterState; + + struct { + // + // The current state + // + WDF_DEVICE_PNP_STATE CurrentState; + } PostProcessState; + + + struct { + // + // The current state that is about to be exitted + // + WDF_DEVICE_PNP_STATE CurrentState; + + // + // The state that is about to be entered + // + WDF_DEVICE_PNP_STATE NewState; + } LeaveState; + } Data; +} WDF_DEVICE_PNP_NOTIFICATION_DATA; + +typedef const WDF_DEVICE_PNP_NOTIFICATION_DATA* PCWDF_DEVICE_PNP_NOTIFICATION_DATA; + +typedef struct _WDF_DEVICE_POWER_NOTIFICATION_DATA { + // + // Type of data + // + WDF_STATE_NOTIFICATION_TYPE Type; + + union { + struct { + // + // The current state that is about to be exitted + // + WDF_DEVICE_POWER_STATE CurrentState; + + // + // The new state that is about to be entered + // + WDF_DEVICE_POWER_STATE NewState; + } EnterState; + + struct { + // + // The current state + // + WDF_DEVICE_POWER_STATE CurrentState; + } PostProcessState; + + + struct { + // + // The current state that is about to be exitted + // + WDF_DEVICE_POWER_STATE CurrentState; + + // + // The state that is about to be entered + // + WDF_DEVICE_POWER_STATE NewState; + } LeaveState; + } Data; +} WDF_DEVICE_POWER_NOTIFICATION_DATA; + +typedef const WDF_DEVICE_POWER_NOTIFICATION_DATA* PCWDF_DEVICE_POWER_NOTIFICATION_DATA; + +typedef struct _WDF_DEVICE_POWER_POLICY_NOTIFICATION_DATA { + // + // Type of data + // + WDF_STATE_NOTIFICATION_TYPE Type; + + union { + struct { + // + // The current state that is about to be exitted + // + WDF_DEVICE_POWER_POLICY_STATE CurrentState; + + // + // The new state that is about to be entered + // + WDF_DEVICE_POWER_POLICY_STATE NewState; + } EnterState; + + struct { + // + // The current state + // + WDF_DEVICE_POWER_POLICY_STATE CurrentState; + } PostProcessState; + + + struct { + // + // The current state that is about to be exitted + // + WDF_DEVICE_POWER_POLICY_STATE CurrentState; + + // + // The state that is about to be entered + // + WDF_DEVICE_POWER_POLICY_STATE NewState; + } LeaveState; + } Data; +} WDF_DEVICE_POWER_POLICY_NOTIFICATION_DATA; + +typedef const WDF_DEVICE_POWER_POLICY_NOTIFICATION_DATA* PCWDF_DEVICE_POWER_POLICY_NOTIFICATION_DATA; + +typedef +_Function_class_(EVT_WDF_DEVICE_PNP_STATE_CHANGE_NOTIFICATION) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +VOID +EVT_WDF_DEVICE_PNP_STATE_CHANGE_NOTIFICATION( + _In_ + WDFDEVICE Device, + _In_ + PCWDF_DEVICE_PNP_NOTIFICATION_DATA NotificationData + ); + +typedef EVT_WDF_DEVICE_PNP_STATE_CHANGE_NOTIFICATION *PFN_WDF_DEVICE_PNP_STATE_CHANGE_NOTIFICATION; + +typedef +_Function_class_(EVT_WDF_DEVICE_POWER_STATE_CHANGE_NOTIFICATION) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +VOID +EVT_WDF_DEVICE_POWER_STATE_CHANGE_NOTIFICATION( + _In_ + WDFDEVICE Device, + _In_ + PCWDF_DEVICE_POWER_NOTIFICATION_DATA NotificationData + ); + +typedef EVT_WDF_DEVICE_POWER_STATE_CHANGE_NOTIFICATION *PFN_WDF_DEVICE_POWER_STATE_CHANGE_NOTIFICATION; + +typedef +_Function_class_(EVT_WDF_DEVICE_POWER_POLICY_STATE_CHANGE_NOTIFICATION) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +VOID +EVT_WDF_DEVICE_POWER_POLICY_STATE_CHANGE_NOTIFICATION( + _In_ + WDFDEVICE Device, + _In_ + PCWDF_DEVICE_POWER_POLICY_NOTIFICATION_DATA NotificationData + ); + +typedef EVT_WDF_DEVICE_POWER_POLICY_STATE_CHANGE_NOTIFICATION *PFN_WDF_DEVICE_POWER_POLICY_STATE_CHANGE_NOTIFICATION; + +#define IdleTimeoutDefaultValue ((ULONG) IdleTimeoutDefaultConstant) + +typedef +_Function_class_(EVT_WDF_DEVICE_D0_ENTRY) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +EVT_WDF_DEVICE_D0_ENTRY( + _In_ + WDFDEVICE Device, + _In_ + WDF_POWER_DEVICE_STATE PreviousState + ); + +typedef EVT_WDF_DEVICE_D0_ENTRY *PFN_WDF_DEVICE_D0_ENTRY; + +typedef +_Function_class_(EVT_WDF_DEVICE_D0_ENTRY_POST_INTERRUPTS_ENABLED) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +EVT_WDF_DEVICE_D0_ENTRY_POST_INTERRUPTS_ENABLED( + _In_ + WDFDEVICE Device, + _In_ + WDF_POWER_DEVICE_STATE PreviousState + ); + +typedef EVT_WDF_DEVICE_D0_ENTRY_POST_INTERRUPTS_ENABLED *PFN_WDF_DEVICE_D0_ENTRY_POST_INTERRUPTS_ENABLED; + +typedef +_Function_class_(EVT_WDF_DEVICE_D0_EXIT) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +EVT_WDF_DEVICE_D0_EXIT( + _In_ + WDFDEVICE Device, + _In_ + WDF_POWER_DEVICE_STATE TargetState + ); + +typedef EVT_WDF_DEVICE_D0_EXIT *PFN_WDF_DEVICE_D0_EXIT; + +typedef +_Function_class_(EVT_WDF_DEVICE_D0_EXIT_PRE_INTERRUPTS_DISABLED) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +EVT_WDF_DEVICE_D0_EXIT_PRE_INTERRUPTS_DISABLED( + _In_ + WDFDEVICE Device, + _In_ + WDF_POWER_DEVICE_STATE TargetState + ); + +typedef EVT_WDF_DEVICE_D0_EXIT_PRE_INTERRUPTS_DISABLED *PFN_WDF_DEVICE_D0_EXIT_PRE_INTERRUPTS_DISABLED; + +typedef +_Function_class_(EVT_WDF_DEVICE_PREPARE_HARDWARE) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +EVT_WDF_DEVICE_PREPARE_HARDWARE( + _In_ + WDFDEVICE Device, + _In_ + WDFCMRESLIST ResourcesRaw, + _In_ + WDFCMRESLIST ResourcesTranslated + ); + +typedef EVT_WDF_DEVICE_PREPARE_HARDWARE *PFN_WDF_DEVICE_PREPARE_HARDWARE; + +typedef +_Function_class_(EVT_WDF_DEVICE_RELEASE_HARDWARE) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +EVT_WDF_DEVICE_RELEASE_HARDWARE( + _In_ + WDFDEVICE Device, + _In_ + WDFCMRESLIST ResourcesTranslated + ); + +typedef EVT_WDF_DEVICE_RELEASE_HARDWARE *PFN_WDF_DEVICE_RELEASE_HARDWARE; + +typedef +_Function_class_(EVT_WDF_DEVICE_SELF_MANAGED_IO_CLEANUP) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +VOID +EVT_WDF_DEVICE_SELF_MANAGED_IO_CLEANUP( + _In_ + WDFDEVICE Device + ); + +typedef EVT_WDF_DEVICE_SELF_MANAGED_IO_CLEANUP *PFN_WDF_DEVICE_SELF_MANAGED_IO_CLEANUP; + +typedef +_Function_class_(EVT_WDF_DEVICE_SELF_MANAGED_IO_FLUSH) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +VOID +EVT_WDF_DEVICE_SELF_MANAGED_IO_FLUSH( + _In_ + WDFDEVICE Device + ); + +typedef EVT_WDF_DEVICE_SELF_MANAGED_IO_FLUSH *PFN_WDF_DEVICE_SELF_MANAGED_IO_FLUSH; + +typedef +_Function_class_(EVT_WDF_DEVICE_SELF_MANAGED_IO_INIT) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +EVT_WDF_DEVICE_SELF_MANAGED_IO_INIT( + _In_ + WDFDEVICE Device + ); + +typedef EVT_WDF_DEVICE_SELF_MANAGED_IO_INIT *PFN_WDF_DEVICE_SELF_MANAGED_IO_INIT; + +typedef +_Function_class_(EVT_WDF_DEVICE_SELF_MANAGED_IO_SUSPEND) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +EVT_WDF_DEVICE_SELF_MANAGED_IO_SUSPEND( + _In_ + WDFDEVICE Device + ); + +typedef EVT_WDF_DEVICE_SELF_MANAGED_IO_SUSPEND *PFN_WDF_DEVICE_SELF_MANAGED_IO_SUSPEND; + +typedef +_Function_class_(EVT_WDF_DEVICE_SELF_MANAGED_IO_RESTART) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +EVT_WDF_DEVICE_SELF_MANAGED_IO_RESTART( + _In_ + WDFDEVICE Device + ); + +typedef EVT_WDF_DEVICE_SELF_MANAGED_IO_RESTART *PFN_WDF_DEVICE_SELF_MANAGED_IO_RESTART; + +typedef +_Function_class_(EVT_WDF_DEVICE_QUERY_STOP) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +EVT_WDF_DEVICE_QUERY_STOP( + _In_ + WDFDEVICE Device + ); + +typedef EVT_WDF_DEVICE_QUERY_STOP *PFN_WDF_DEVICE_QUERY_STOP; + +typedef +_Function_class_(EVT_WDF_DEVICE_QUERY_REMOVE) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +EVT_WDF_DEVICE_QUERY_REMOVE( + _In_ + WDFDEVICE Device + ); + +typedef EVT_WDF_DEVICE_QUERY_REMOVE *PFN_WDF_DEVICE_QUERY_REMOVE; + +typedef +_Function_class_(EVT_WDF_DEVICE_SURPRISE_REMOVAL) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +VOID +EVT_WDF_DEVICE_SURPRISE_REMOVAL( + _In_ + WDFDEVICE Device + ); + +typedef EVT_WDF_DEVICE_SURPRISE_REMOVAL *PFN_WDF_DEVICE_SURPRISE_REMOVAL; + +typedef +_Function_class_(EVT_WDF_DEVICE_USAGE_NOTIFICATION) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +VOID +EVT_WDF_DEVICE_USAGE_NOTIFICATION( + _In_ + WDFDEVICE Device, + _In_ + WDF_SPECIAL_FILE_TYPE NotificationType, + _In_ + BOOLEAN IsInNotificationPath + ); + +typedef EVT_WDF_DEVICE_USAGE_NOTIFICATION *PFN_WDF_DEVICE_USAGE_NOTIFICATION; + +typedef +_Function_class_(EVT_WDF_DEVICE_USAGE_NOTIFICATION_EX) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +EVT_WDF_DEVICE_USAGE_NOTIFICATION_EX( + _In_ + WDFDEVICE Device, + _In_ + WDF_SPECIAL_FILE_TYPE NotificationType, + _In_ + BOOLEAN IsInNotificationPath + ); + +typedef EVT_WDF_DEVICE_USAGE_NOTIFICATION_EX *PFN_WDF_DEVICE_USAGE_NOTIFICATION_EX; + +typedef +_Function_class_(EVT_WDF_DEVICE_RELATIONS_QUERY) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +VOID +EVT_WDF_DEVICE_RELATIONS_QUERY( + _In_ + WDFDEVICE Device, + _In_ + DEVICE_RELATION_TYPE RelationType + ); + +typedef EVT_WDF_DEVICE_RELATIONS_QUERY *PFN_WDF_DEVICE_RELATIONS_QUERY; + +typedef +_Function_class_(EVT_WDF_DEVICE_ARM_WAKE_FROM_S0) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +EVT_WDF_DEVICE_ARM_WAKE_FROM_S0( + _In_ + WDFDEVICE Device + ); + +typedef EVT_WDF_DEVICE_ARM_WAKE_FROM_S0 *PFN_WDF_DEVICE_ARM_WAKE_FROM_S0; + +typedef +_Function_class_(EVT_WDF_DEVICE_ARM_WAKE_FROM_SX) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +EVT_WDF_DEVICE_ARM_WAKE_FROM_SX( + _In_ + WDFDEVICE Device + ); + +typedef EVT_WDF_DEVICE_ARM_WAKE_FROM_SX *PFN_WDF_DEVICE_ARM_WAKE_FROM_SX; + +typedef +_Function_class_(EVT_WDF_DEVICE_ARM_WAKE_FROM_SX_WITH_REASON) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +EVT_WDF_DEVICE_ARM_WAKE_FROM_SX_WITH_REASON( + _In_ + WDFDEVICE Device, + _In_ + BOOLEAN DeviceWakeEnabled, + _In_ + BOOLEAN ChildrenArmedForWake + ); + +typedef EVT_WDF_DEVICE_ARM_WAKE_FROM_SX_WITH_REASON *PFN_WDF_DEVICE_ARM_WAKE_FROM_SX_WITH_REASON; + +typedef +_Function_class_(EVT_WDF_DEVICE_DISARM_WAKE_FROM_S0) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +VOID +EVT_WDF_DEVICE_DISARM_WAKE_FROM_S0( + _In_ + WDFDEVICE Device + ); + +typedef EVT_WDF_DEVICE_DISARM_WAKE_FROM_S0 *PFN_WDF_DEVICE_DISARM_WAKE_FROM_S0; + +typedef +_Function_class_(EVT_WDF_DEVICE_DISARM_WAKE_FROM_SX) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +VOID +EVT_WDF_DEVICE_DISARM_WAKE_FROM_SX( + _In_ + WDFDEVICE Device + ); + +typedef EVT_WDF_DEVICE_DISARM_WAKE_FROM_SX *PFN_WDF_DEVICE_DISARM_WAKE_FROM_SX; + +typedef +_Function_class_(EVT_WDF_DEVICE_WAKE_FROM_S0_TRIGGERED) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +VOID +EVT_WDF_DEVICE_WAKE_FROM_S0_TRIGGERED( + _In_ + WDFDEVICE Device + ); + +typedef EVT_WDF_DEVICE_WAKE_FROM_S0_TRIGGERED *PFN_WDF_DEVICE_WAKE_FROM_S0_TRIGGERED; + +typedef +_Function_class_(EVT_WDF_DEVICE_WAKE_FROM_SX_TRIGGERED) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +VOID +EVT_WDF_DEVICE_WAKE_FROM_SX_TRIGGERED( + _In_ + WDFDEVICE Device + ); + +typedef EVT_WDF_DEVICE_WAKE_FROM_SX_TRIGGERED *PFN_WDF_DEVICE_WAKE_FROM_SX_TRIGGERED; + +typedef struct _WDF_PNPPOWER_EVENT_CALLBACKS { + // + // Size of this structure in bytes + // + ULONG Size; + + PFN_WDF_DEVICE_D0_ENTRY EvtDeviceD0Entry; + PFN_WDF_DEVICE_D0_ENTRY_POST_INTERRUPTS_ENABLED EvtDeviceD0EntryPostInterruptsEnabled; + PFN_WDF_DEVICE_D0_EXIT EvtDeviceD0Exit; + PFN_WDF_DEVICE_D0_EXIT_PRE_INTERRUPTS_DISABLED EvtDeviceD0ExitPreInterruptsDisabled; + PFN_WDF_DEVICE_PREPARE_HARDWARE EvtDevicePrepareHardware; + PFN_WDF_DEVICE_RELEASE_HARDWARE EvtDeviceReleaseHardware; + PFN_WDF_DEVICE_SELF_MANAGED_IO_CLEANUP EvtDeviceSelfManagedIoCleanup; + PFN_WDF_DEVICE_SELF_MANAGED_IO_FLUSH EvtDeviceSelfManagedIoFlush; + PFN_WDF_DEVICE_SELF_MANAGED_IO_INIT EvtDeviceSelfManagedIoInit; + PFN_WDF_DEVICE_SELF_MANAGED_IO_SUSPEND EvtDeviceSelfManagedIoSuspend; + PFN_WDF_DEVICE_SELF_MANAGED_IO_RESTART EvtDeviceSelfManagedIoRestart; + PFN_WDF_DEVICE_SURPRISE_REMOVAL EvtDeviceSurpriseRemoval; + PFN_WDF_DEVICE_QUERY_REMOVE EvtDeviceQueryRemove; + PFN_WDF_DEVICE_QUERY_STOP EvtDeviceQueryStop; + PFN_WDF_DEVICE_USAGE_NOTIFICATION EvtDeviceUsageNotification; + PFN_WDF_DEVICE_RELATIONS_QUERY EvtDeviceRelationsQuery; + PFN_WDF_DEVICE_USAGE_NOTIFICATION_EX EvtDeviceUsageNotificationEx; +} WDF_PNPPOWER_EVENT_CALLBACKS, *PWDF_PNPPOWER_EVENT_CALLBACKS; + +typedef struct _WDF_POWER_POLICY_EVENT_CALLBACKS { + // + // Size of this structure in bytes + // + ULONG Size; + + PFN_WDF_DEVICE_ARM_WAKE_FROM_S0 EvtDeviceArmWakeFromS0; + PFN_WDF_DEVICE_DISARM_WAKE_FROM_S0 EvtDeviceDisarmWakeFromS0; + PFN_WDF_DEVICE_WAKE_FROM_S0_TRIGGERED EvtDeviceWakeFromS0Triggered; + + PFN_WDF_DEVICE_ARM_WAKE_FROM_SX EvtDeviceArmWakeFromSx; + PFN_WDF_DEVICE_DISARM_WAKE_FROM_SX EvtDeviceDisarmWakeFromSx; + PFN_WDF_DEVICE_WAKE_FROM_SX_TRIGGERED EvtDeviceWakeFromSxTriggered; + + PFN_WDF_DEVICE_ARM_WAKE_FROM_SX_WITH_REASON EvtDeviceArmWakeFromSxWithReason; + +} WDF_POWER_POLICY_EVENT_CALLBACKS, *PWDF_POWER_POLICY_EVENT_CALLBACKS; + +VOID +FORCEINLINE +WDF_POWER_POLICY_EVENT_CALLBACKS_INIT( + _Out_ PWDF_POWER_POLICY_EVENT_CALLBACKS Callbacks + ) +{ + RtlZeroMemory(Callbacks, sizeof(WDF_POWER_POLICY_EVENT_CALLBACKS)); + + Callbacks->Size = sizeof(WDF_POWER_POLICY_EVENT_CALLBACKS); +} + +VOID +FORCEINLINE +WDF_PNPPOWER_EVENT_CALLBACKS_INIT( + _Out_ PWDF_PNPPOWER_EVENT_CALLBACKS Callbacks + ) +{ + RtlZeroMemory(Callbacks, sizeof(WDF_PNPPOWER_EVENT_CALLBACKS)); + Callbacks->Size = sizeof(WDF_PNPPOWER_EVENT_CALLBACKS); +} + + +ULONG +FORCEINLINE +WdfDevStateNormalize( + _In_ ULONG State + ) +{ + return State & ~WdfDevStateNP; +} + + +BOOLEAN +FORCEINLINE +WdfDevStateIsNP( + _In_ ULONG State + ) +{ + return (State & WdfDevStateNP) ? TRUE : FALSE; +} + +typedef enum _WDF_POWER_POLICY_IDLE_TIMEOUT_TYPE { + DriverManagedIdleTimeout = 0, + SystemManagedIdleTimeout = 1, + SystemManagedIdleTimeoutWithHint = 2 +} WDF_POWER_POLICY_IDLE_TIMEOUT_TYPE, *PWDF_POWER_POLICY_IDLE_TIMEOUT_TYPE; + +typedef struct _WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS { + // + // Size of this structure in bytes + // + ULONG Size; + + // + // Indicates whether the device can wake itself up while the machine is in + // S0. + // + WDF_POWER_POLICY_S0_IDLE_CAPABILITIES IdleCaps; + + // + // The low power state in which the device will be placed when it is idled + // out while the machine is in S0. + // + DEVICE_POWER_STATE DxState; + + // + // Amount of time the device must be idle before idling out. Timeout is in + // milliseconds. + // + ULONG IdleTimeout; + + // + // Inidcates whether a user can control the idle policy of the device. + // By default, a user is allowed to change the policy. + // + WDF_POWER_POLICY_S0_IDLE_USER_CONTROL UserControlOfIdleSettings; + + // + // If WdfTrue, idling out while the machine is in S0 will be enabled. + // + // If WdfFalse, idling out will be disabled. + // + // If WdfUseDefault, the idling out will be enabled. If + // UserControlOfIdleSettings is set to IdleAllowUserControl, the user's + // settings will override the default. + // + WDF_TRI_STATE Enabled; + + // + // This field is applicable only when IdleCaps == IdleCannotWakeFromS0 + // If WdfTrue,device is powered up on System Wake even if device is idle + // If WdfFalse, device is not powered up on system wake if it is idle + // If WdfUseDefault, the behavior is same as WdfFalse + // + WDF_TRI_STATE PowerUpIdleDeviceOnSystemWake; + + // + // This field determines how the IdleTimeout field is used. + // + // If the value is DriverManagedIdleTimeout, then the idle timeout value + // is determined by the IdleTimeout field of this structure. + // + // If the value is SystemManagedIdleTimeout, then the timeout value is + // determined by the power framework (PoFx) on operating systems where + // the PoFx is available (i.e. Windows 8 and later). The IdleTimeout field + // is ignored on these operating systems. On operating systems where the + // PoFx is not available, the behavior is same as DriverManagedIdleTimeout. + // + // If the value is SystemManagedIdleTimeoutWithHint, then the timeout value + // is determined by the power framework (PoFx) on operating systems where + // the PoFx is available (i.e. Windows 8 and later). In addition, the value + // specified in the IdleTimeout field is provided as a hint to the PoFx in + // determining when the device should be allowed to enter a low-power state. + // Since it is only a hint, the actual duration after which the PoFx allows + // the device to enter a low-power state might be greater than or less than + // the IdleTimeout value. On operating systems where the PoFx is not + // available, the behavior is same as DriverManagedIdleTimeout. + // + WDF_POWER_POLICY_IDLE_TIMEOUT_TYPE IdleTimeoutType; + + // + // This field forces the device to avoid idling in the D3cold power state. + // WDF will ensure, with help from the bus drivers, that the device will + // idle in a D-state that can successfully generate a wake signal, if + // necessary. If the client specifies that DxState == PowerDeviceD3, this + // setting allows the client to distinguish betwen D3hot and D3cold. If + // the client sets DxState == PowerDeviceMaximum, then WDF will pick the + // deepest idle state identified by the bus driver. If that deepest state + // is D3cold, this field allows the client to override that and choose + // D3hot. + // + // If WdfTrue, device will not use D3cold in S0. + // If WdfFalse, device will use D3cold in S0 if the ACPI firmware indicates + // that the device can enter that state, if DxState above does not + // specify some other D-state and, if the device is armed for + // wake, that it can generate its wake signal from D3cold. + // If WdfUseDefault, this setting will be derived from the driver's INF, + // specifically the presence or absence of the following two lines in + // the DDInstall.HW section: + // Include=machine.inf + // Needs=PciD3ColdSupported + // + WDF_TRI_STATE ExcludeD3Cold; + +} WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS, *PWDF_DEVICE_POWER_POLICY_IDLE_SETTINGS; + +VOID +FORCEINLINE +WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS_INIT( + _Out_ PWDF_DEVICE_POWER_POLICY_IDLE_SETTINGS Settings, + _In_ WDF_POWER_POLICY_S0_IDLE_CAPABILITIES IdleCaps + ) +{ + RtlZeroMemory(Settings, sizeof(WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS)); + + Settings->Size = sizeof(WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS); + + Settings->IdleTimeout = IdleTimeoutDefaultValue; + Settings->UserControlOfIdleSettings = IdleAllowUserControl; + Settings->Enabled = WdfUseDefault; + Settings->PowerUpIdleDeviceOnSystemWake = WdfUseDefault; + Settings->IdleTimeoutType = DriverManagedIdleTimeout; + Settings->ExcludeD3Cold = WdfUseDefault; + + Settings->IdleCaps = IdleCaps; + + switch (IdleCaps) { + case IdleUsbSelectiveSuspend: + case IdleCanWakeFromS0: + Settings->DxState = PowerDeviceMaximum; + break; + + case IdleCannotWakeFromS0: + Settings->DxState = PowerDeviceD3; + break; + } +} + +typedef struct _WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS { + // + // Size of this structure in bytes + // + ULONG Size; + + // + // The low power state in which the device will be placed when it is armed + // for wake from Sx. + // + DEVICE_POWER_STATE DxState; + + // + // Inidcates whether a user can control the idle policy of the device. + // By default, a user is allowed to change the policy. + // + WDF_POWER_POLICY_SX_WAKE_USER_CONTROL UserControlOfWakeSettings; + + // + // If WdfTrue, arming the device for wake while the machine is in Sx is + // enabled. + // + // If WdfFalse, arming the device for wake while the machine is in Sx is + // disabled. + // + // If WdfUseDefault, arming will be enabled. If UserControlOfWakeSettings + // is set to WakeAllowUserControl, the user's settings will override the + // default. + // + WDF_TRI_STATE Enabled; + + // + // If set to TRUE, arming the parent device can depend on whether there + // is atleast one child device armed for wake. + // + // If set to FALSE, arming of the parent device will be independent of + // whether any of the child devices are armed for wake. + // + BOOLEAN ArmForWakeIfChildrenAreArmedForWake; + + // + // Indicates that whenever the parent device completes the wake irp + // successfully, the status needs to be also propagated to the child + // devices. This helps in tracking which devices were responsible for + // waking the system. + // + BOOLEAN IndicateChildWakeOnParentWake; + +} WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS, *PWDF_DEVICE_POWER_POLICY_WAKE_SETTINGS; + +VOID +FORCEINLINE +WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS_INIT( + _Out_ PWDF_DEVICE_POWER_POLICY_WAKE_SETTINGS Settings + ) +{ + RtlZeroMemory(Settings, sizeof(WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS)); + + Settings->Size = sizeof(WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS); + + Settings->Enabled = WdfUseDefault; + Settings->DxState = PowerDeviceMaximum; + Settings->UserControlOfWakeSettings = WakeAllowUserControl; +} + +typedef struct _WDF_DEVICE_STATE { + // + // Size of this structure in bytes + // + ULONG Size; + + // + // If set to WdfTrue, the device will be disabled + // + WDF_TRI_STATE Disabled; + + // + // If set to WdfTrue, the device will not be displayed in device manager. + // Once hidden, the device cannot be unhidden. + // + WDF_TRI_STATE DontDisplayInUI; + + // + // If set to WdfTrue, the device is reporting itself as failed. If set + // in conjuction with ResourcesChanged to WdfTrue, the device will receive + // a PnP stop and then a new PnP start device. + // + WDF_TRI_STATE Failed; + + // + // If set to WdfTrue, the device cannot be subsequently disabled. + // + WDF_TRI_STATE NotDisableable; + + + // + // If set to WdfTrue, the device stack will be torn down. + // + WDF_TRI_STATE Removed; + + // + // If set to WdfTrue, the device will be sent another PnP start. If the + // Failed field is set to WdfTrue as well, a PnP stop will be sent before + // the start. + // + WDF_TRI_STATE ResourcesChanged; + +} WDF_DEVICE_STATE, *PWDF_DEVICE_STATE; + +VOID +FORCEINLINE +WDF_DEVICE_STATE_INIT( + _Out_ PWDF_DEVICE_STATE PnpDeviceState + ) +{ + RtlZeroMemory(PnpDeviceState, sizeof(WDF_DEVICE_STATE)); + + PnpDeviceState->Size = sizeof(WDF_DEVICE_STATE); + + // + // Initializes all of the fields to the WdfUseDefault enum value + // + PnpDeviceState->Disabled = WdfUseDefault; + PnpDeviceState->DontDisplayInUI = WdfUseDefault; + PnpDeviceState->Failed = WdfUseDefault; + PnpDeviceState->NotDisableable = WdfUseDefault; + PnpDeviceState->Removed = WdfUseDefault; + PnpDeviceState->ResourcesChanged = WdfUseDefault; +} + +typedef struct _WDF_DEVICE_PNP_CAPABILITIES { + // + // Size of the structure in bytes + // + ULONG Size; + + // + // NOTE: To mark a PDO as raw, call WdfPdoInitAssignRawDevice + // + + WDF_TRI_STATE LockSupported; + WDF_TRI_STATE EjectSupported; + WDF_TRI_STATE Removable; + WDF_TRI_STATE DockDevice; + WDF_TRI_STATE UniqueID; + WDF_TRI_STATE SilentInstall; + WDF_TRI_STATE SurpriseRemovalOK; + WDF_TRI_STATE HardwareDisabled; + WDF_TRI_STATE NoDisplayInUI; + + // + // Default values of -1 indicate not to set this value + // + ULONG Address; + ULONG UINumber; + +} WDF_DEVICE_PNP_CAPABILITIES, *PWDF_DEVICE_PNP_CAPABILITIES; + +VOID +FORCEINLINE +WDF_DEVICE_PNP_CAPABILITIES_INIT( + _Out_ PWDF_DEVICE_PNP_CAPABILITIES Caps + ) +{ + RtlZeroMemory(Caps, sizeof(WDF_DEVICE_PNP_CAPABILITIES)); + + Caps->Size = sizeof(WDF_DEVICE_PNP_CAPABILITIES); + + Caps->LockSupported = WdfUseDefault; + Caps->EjectSupported = WdfUseDefault; + Caps->Removable = WdfUseDefault; + Caps->DockDevice = WdfUseDefault; + Caps->UniqueID = WdfUseDefault; + Caps->SilentInstall = WdfUseDefault; + Caps->SurpriseRemovalOK = WdfUseDefault; + Caps->HardwareDisabled = WdfUseDefault; + Caps->NoDisplayInUI = WdfUseDefault; + + Caps->Address = (ULONG) -1; + Caps->UINumber = (ULONG) -1; +} + +typedef struct _WDF_DEVICE_POWER_CAPABILITIES { + // + // Size of the structure in bytes + // + ULONG Size; + + WDF_TRI_STATE DeviceD1; + WDF_TRI_STATE DeviceD2; + + WDF_TRI_STATE WakeFromD0; + WDF_TRI_STATE WakeFromD1; + WDF_TRI_STATE WakeFromD2; + WDF_TRI_STATE WakeFromD3; + + // + // Default value PowerDeviceMaximum indicates not to set this value + // + DEVICE_POWER_STATE DeviceState[PowerSystemMaximum]; + + // + // Default value PowerDeviceMaximum, PowerSystemMaximum indicates not to + // set this value. + // + DEVICE_POWER_STATE DeviceWake; + SYSTEM_POWER_STATE SystemWake; + + // + // Default values of -1 indicate not to set this value + // + ULONG D1Latency; + ULONG D2Latency; + ULONG D3Latency; + + // + // Ideal Dx state for the device to be put into when the machine moves into + // Sx and the device is not armed for wake. By default, the default will be + // placed into D3. If IdealDxStateForSx is lighter then + // DeviceState[Sx], then DeviceState[Sx] will be used as the Dx state. + // + DEVICE_POWER_STATE IdealDxStateForSx; + +} WDF_DEVICE_POWER_CAPABILITIES, *PWDF_DEVICE_POWER_CAPABILITIES; + +VOID +FORCEINLINE +WDF_DEVICE_POWER_CAPABILITIES_INIT( + _Out_ PWDF_DEVICE_POWER_CAPABILITIES Caps + ) +{ + ULONG i; + + RtlZeroMemory(Caps, sizeof(WDF_DEVICE_POWER_CAPABILITIES)); + + Caps->Size = sizeof(WDF_DEVICE_POWER_CAPABILITIES); + + Caps->DeviceD1 = WdfUseDefault; + Caps->DeviceD2 = WdfUseDefault; + + Caps->WakeFromD0 = WdfUseDefault; + Caps->WakeFromD1 = WdfUseDefault; + Caps->WakeFromD2 = WdfUseDefault; + Caps->WakeFromD3 = WdfUseDefault; + + for (i = 0; i < sizeof(Caps->DeviceState)/sizeof(Caps->DeviceState[1]); i++) { + Caps->DeviceState[i] = PowerDeviceMaximum; + } + + Caps->DeviceWake = PowerDeviceMaximum; + Caps->SystemWake = PowerSystemMaximum; + + Caps->D1Latency = (ULONG) -1; + Caps->D2Latency = (ULONG) -1; + Caps->D3Latency = (ULONG) -1; + + Caps->IdealDxStateForSx = PowerDeviceMaximum; +} + +typedef enum _WDF_REMOVE_LOCK_OPTIONS_FLAGS { + WDF_REMOVE_LOCK_OPTION_ACQUIRE_FOR_IO = 0x00000001 +} WDF_REMOVE_LOCK_OPTIONS_FLAGS; + +typedef struct _WDF_REMOVE_LOCK_OPTIONS { + // + // Size of the structure in bytes + // + ULONG Size; + + // + // Bit field combination of values from the WDF_REMOVE_LOCK_OPTIONS_FLAGS + // enumeration + // + ULONG Flags; +} WDF_REMOVE_LOCK_OPTIONS, *PWDF_REMOVE_LOCK_OPTIONS; + + +// +// Default remove lock options initialization macro +// +VOID +FORCEINLINE +WDF_REMOVE_LOCK_OPTIONS_INIT( + _Out_ PWDF_REMOVE_LOCK_OPTIONS RemoveLockOptions, + _In_ ULONG Flags + ) +{ + RtlZeroMemory(RemoveLockOptions, sizeof(WDF_REMOVE_LOCK_OPTIONS)); + + RemoveLockOptions->Size = sizeof(WDF_REMOVE_LOCK_OPTIONS); + RemoveLockOptions->Flags = Flags; +} + +typedef +_Function_class_(EVT_WDFDEVICE_WDM_IRP_PREPROCESS) +_IRQL_requires_same_ +_IRQL_requires_max_(DISPATCH_LEVEL) +NTSTATUS +EVT_WDFDEVICE_WDM_IRP_PREPROCESS( + _In_ + WDFDEVICE Device, + _Inout_ + PIRP Irp + ); + +typedef EVT_WDFDEVICE_WDM_IRP_PREPROCESS *PFN_WDFDEVICE_WDM_IRP_PREPROCESS; + +typedef +_Function_class_(EVT_WDFDEVICE_WDM_IRP_DISPATCH) +_IRQL_requires_same_ +_IRQL_requires_max_(DISPATCH_LEVEL) +NTSTATUS +EVT_WDFDEVICE_WDM_IRP_DISPATCH( + _In_ + WDFDEVICE Device, + _In_ + UCHAR MajorFunction, + _In_ + UCHAR MinorFunction, + _In_ + ULONG Code, + _In_ + WDFCONTEXT DriverContext, + _Inout_ + PIRP Irp, + _In_ + WDFCONTEXT DispatchContext + ); + +typedef EVT_WDFDEVICE_WDM_IRP_DISPATCH *PFN_WDFDEVICE_WDM_IRP_DISPATCH; + +// +// This is called to pre-process a request using METHOD_NEITHER +// +typedef +_Function_class_(EVT_WDF_IO_IN_CALLER_CONTEXT) +_IRQL_requires_same_ +_IRQL_requires_max_(DISPATCH_LEVEL) +VOID +EVT_WDF_IO_IN_CALLER_CONTEXT( + _In_ + WDFDEVICE Device, + _In_ + WDFREQUEST Request + ); + +typedef EVT_WDF_IO_IN_CALLER_CONTEXT *PFN_WDF_IO_IN_CALLER_CONTEXT; + +typedef +_Function_class_(EVT_WDFDEVICE_WDM_POST_PO_FX_REGISTER_DEVICE) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +EVT_WDFDEVICE_WDM_POST_PO_FX_REGISTER_DEVICE( + _In_ + WDFDEVICE Device, + _In_ + POHANDLE PoHandle + ); + +typedef EVT_WDFDEVICE_WDM_POST_PO_FX_REGISTER_DEVICE *PFN_WDFDEVICE_WDM_POST_PO_FX_REGISTER_DEVICE; + +typedef +_Function_class_(EVT_WDFDEVICE_WDM_PRE_PO_FX_UNREGISTER_DEVICE) +_IRQL_requires_same_ +_IRQL_requires_max_(PASSIVE_LEVEL) +VOID +EVT_WDFDEVICE_WDM_PRE_PO_FX_UNREGISTER_DEVICE( + _In_ + WDFDEVICE Device, + _In_ + POHANDLE PoHandle + ); + +typedef EVT_WDFDEVICE_WDM_PRE_PO_FX_UNREGISTER_DEVICE *PFN_WDFDEVICE_WDM_PRE_PO_FX_UNREGISTER_DEVICE; + +typedef struct _WDF_POWER_FRAMEWORK_SETTINGS { + // + // Size of the structure, in bytes. + // + ULONG Size; + + // + // Client driver's callback function that is invoked after KMDF has + // registered with the power framework. This field can be NULL if the + // client driver does not wish to specify this callback. + // + PFN_WDFDEVICE_WDM_POST_PO_FX_REGISTER_DEVICE EvtDeviceWdmPostPoFxRegisterDevice; + + // + // Client driver's callback function that is invoked before KMDF + // unregisters with the power framework. This field can be NULL if the + // client driver does not wish to specify this callback. + // + PFN_WDFDEVICE_WDM_PRE_PO_FX_UNREGISTER_DEVICE EvtDeviceWdmPrePoFxUnregisterDevice; + + // + // Pointer to a PO_FX_COMPONENT structure that describes the only component + // in the single-component device. This field can be NULL if the client + // driver wants KMDF to use the default specification for this component + // (i.e. support for F0 only). + // + PPO_FX_COMPONENT Component; + + // + // Client driver's PO_FX_COMPONENT_ACTIVE_CONDITION_CALLBACK callback + // function. This field can be NULL if the client driver does not wish to + // specify this callback. + // + PPO_FX_COMPONENT_ACTIVE_CONDITION_CALLBACK ComponentActiveConditionCallback; + + // + // Client driver's PO_FX_COMPONENT_IDLE_CONDITION_CALLBACK callback + // function. This field can be NULL if the client driver does not wish to + // specify this callback. + // + PPO_FX_COMPONENT_IDLE_CONDITION_CALLBACK ComponentIdleConditionCallback; + + // + // Client driver's PO_FX_COMPONENT_IDLE_STATE_CALLBACK callback function. + // This field can be NULL if the client driver does not wish to specify + // this callback. + // + PPO_FX_COMPONENT_IDLE_STATE_CALLBACK ComponentIdleStateCallback; + + // + // Client driver's PO_FX_POWER_CONTROL_CALLBACK callback function. This + // field can be NULL if the client driver does not wish to specify this + // callback. + // + PPO_FX_POWER_CONTROL_CALLBACK PowerControlCallback; + + // + // Context value that is passed in to the ComponentIdleStateCallback and + // PowerControlCallback callback functions. + // + PVOID PoFxDeviceContext; +} WDF_POWER_FRAMEWORK_SETTINGS, *PWDF_POWER_FRAMEWORK_SETTINGS; + +VOID +FORCEINLINE +WDF_POWER_FRAMEWORK_SETTINGS_INIT( + _Out_ PWDF_POWER_FRAMEWORK_SETTINGS PowerFrameworkSettings + ) +{ + RtlZeroMemory(PowerFrameworkSettings, + sizeof(WDF_POWER_FRAMEWORK_SETTINGS)); + PowerFrameworkSettings->Size = sizeof(WDF_POWER_FRAMEWORK_SETTINGS); +} + + +typedef struct _WDF_IO_TYPE_CONFIG { + // + // Size of this structure in bytes + // + ULONG Size; + + // + // <KMDF_DOC/> + // Identifies the method that the driver will use to access data buffers + // that it receives for read and write requests. + // + // <UMDF_DOC/> + // Identifies the method that the driver will "prefer" to use to access data + // buffers that it receives for read and write requests. Note that UMDF + // driver provides just a preference, and not a guarantee.Therefore, + // even if a driver specified direct access method, UMDF might use the + // buffered access method for one or more of the device's requests to + // improve performance. For example, UMDF uses buffered access for small + // buffers, if it can copy the data to the driver's buffer faster than it + // can map the buffers for direct access. + // + WDF_DEVICE_IO_TYPE ReadWriteIoType; + + // + // <UMDF_ONLY/> + // Identifies the method that the driver will "prefer" to use to access data + // buffers that it receives for IOCTL requests. Note that UMDF + // driver provides just a preference, and not a guarantee. Therefore, + // even if a driver specified direct access method, UMDF might use the + // buffered access method for one or more of the device's requests to + // improve performance. For example, UMDF uses buffered access for small + // buffers, if it can copy the data to the driver's buffer faster than it + // can map the buffers for direct access. + // + WDF_DEVICE_IO_TYPE DeviceControlIoType; + + // + // <UMDF_ONLY/> + // Optional, Provides the smallest buffer size (in bytes) for which + // UMDF will use direct access for the buffers. For example, set + // DirectTransferThreshold to "12288" to indicate that UMDF should use buffered + // access for all buffers that are smaller than 12 kilobytes, and direct + // access for buffers equal to or greater than that. Typically, you + // do not need to provide this value because UMDF uses a value that provides + // the best performance. Note that there are other requirements that must be + // met in order to get direct access of buffers. See Docs for details. + // + ULONG DirectTransferThreshold; + +} WDF_IO_TYPE_CONFIG, *PWDF_IO_TYPE_CONFIG; + +VOID +FORCEINLINE +WDF_IO_TYPE_CONFIG_INIT( + _Out_ PWDF_IO_TYPE_CONFIG IoTypeConfig + ) +{ + RtlZeroMemory(IoTypeConfig, sizeof(WDF_IO_TYPE_CONFIG)); + IoTypeConfig->Size = sizeof(WDF_IO_TYPE_CONFIG); + IoTypeConfig->ReadWriteIoType = WdfDeviceIoBuffered; + IoTypeConfig->DeviceControlIoType = WdfDeviceIoBuffered; +} + + + + + +typedef struct _WDF_DEVICE_PROPERTY_DATA { + // + // Size of this structure + // + _In_ ULONG Size; + + // + // A pointer to a DEVPROPKEY structure that specifies the device + // property key. + // + _In_ const DEVPROPKEY * PropertyKey; + + // + // A locale identifier. Set this parameter either to a language-specific + // LCID value or to LOCALE_NEUTRAL. The LOCALE_NEUTRAL LCID specifies + // that the property is language-neutral (that is, not specific to any + // language). Do not set this parameter to LOCALE_SYSTEM_DEFAULT or + // LOCALE_USER_DEFAULT. For more information about language-specific + // LCID values, see LCID Structure. + // + _In_ LCID Lcid; + + // + // Set this parameter to PLUGPLAY_PROPERTY_PERSISTENT if the property + // value set by this routine should persist across computer restarts. + // Otherwise, set Flags to zero. Ignored for Query DDIs. + // + _In_ ULONG Flags; + +} WDF_DEVICE_PROPERTY_DATA, *PWDF_DEVICE_PROPERTY_DATA; + +FORCEINLINE +VOID +WDF_DEVICE_PROPERTY_DATA_INIT ( + _Out_ PWDF_DEVICE_PROPERTY_DATA PropertyData, + _In_ const DEVPROPKEY* PropertyKey + ) +{ + RtlZeroMemory(PropertyData, sizeof(* PropertyData)); + + PropertyData->Size = sizeof(*PropertyData); + PropertyData->PropertyKey = PropertyKey; +} + +// +// VOID +// WdfDeviceStopIdle( +// _In_ WDFDEVICE Device, +// _In_ BOOLEAN WaitForD0 +// ); +// +// VOID +// WdfDeviceStopIdleWithTag( +// _In_ WDFDEVICE Device, +// _In_ BOOLEAN WaitForD0, +// _In_ PVOID Tag +// ); +// +// VOID +// WdfDeviceResumeIdle( +// _In_ WDFDEVICE Device +// ); +// +// VOID +// WdfDeviceResumeIdleWithTag( +// _In_ WDFDEVICE Device +// _In_ PVOID Tag +// ); +// +#define WdfDeviceStopIdle(Device, WaitForD0) \ + WdfDeviceStopIdleWithTag(Device, WaitForD0, NULL) + +#define WdfDeviceStopIdleWithTag(Device, WaitForD0, Tag) \ + WdfDeviceStopIdleActual(Device, WaitForD0, Tag, __LINE__, __FILE__) + +#define WdfDeviceResumeIdle(Device) \ + WdfDeviceResumeIdleWithTag(Device, NULL) + +#define WdfDeviceResumeIdleWithTag(Device, Tag) \ + WdfDeviceResumeIdleActual(Device, Tag, __LINE__, __FILE__) + + + +// +// WDF Function: WdfDeviceGetDeviceState +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +(*PFN_WDFDEVICEGETDEVICESTATE)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _Out_ + PWDF_DEVICE_STATE DeviceState + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +VOID +FORCEINLINE +WdfDeviceGetDeviceState( + _In_ + WDFDEVICE Device, + _Out_ + PWDF_DEVICE_STATE DeviceState + ) +{ + ((PFN_WDFDEVICEGETDEVICESTATE) WdfFunctions[WdfDeviceGetDeviceStateTableIndex])(WdfDriverGlobals, Device, DeviceState); +} + +// +// WDF Function: WdfDeviceSetDeviceState +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +(*PFN_WDFDEVICESETDEVICESTATE)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PWDF_DEVICE_STATE DeviceState + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +VOID +FORCEINLINE +WdfDeviceSetDeviceState( + _In_ + WDFDEVICE Device, + _In_ + PWDF_DEVICE_STATE DeviceState + ) +{ + ((PFN_WDFDEVICESETDEVICESTATE) WdfFunctions[WdfDeviceSetDeviceStateTableIndex])(WdfDriverGlobals, Device, DeviceState); +} + +// +// WDF Function: WdfWdmDeviceGetWdfDeviceHandle +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDFDEVICE +(*PFN_WDFWDMDEVICEGETWDFDEVICEHANDLE)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + PDEVICE_OBJECT DeviceObject + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFDEVICE +FORCEINLINE +WdfWdmDeviceGetWdfDeviceHandle( + _In_ + PDEVICE_OBJECT DeviceObject + ) +{ + return ((PFN_WDFWDMDEVICEGETWDFDEVICEHANDLE) WdfFunctions[WdfWdmDeviceGetWdfDeviceHandleTableIndex])(WdfDriverGlobals, DeviceObject); +} + +// +// WDF Function: WdfDeviceWdmGetDeviceObject +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +PDEVICE_OBJECT +(*PFN_WDFDEVICEWDMGETDEVICEOBJECT)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +PDEVICE_OBJECT +FORCEINLINE +WdfDeviceWdmGetDeviceObject( + _In_ + WDFDEVICE Device + ) +{ + return ((PFN_WDFDEVICEWDMGETDEVICEOBJECT) WdfFunctions[WdfDeviceWdmGetDeviceObjectTableIndex])(WdfDriverGlobals, Device); +} + +// +// WDF Function: WdfDeviceWdmGetAttachedDevice +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +PDEVICE_OBJECT +(*PFN_WDFDEVICEWDMGETATTACHEDDEVICE)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +PDEVICE_OBJECT +FORCEINLINE +WdfDeviceWdmGetAttachedDevice( + _In_ + WDFDEVICE Device + ) +{ + return ((PFN_WDFDEVICEWDMGETATTACHEDDEVICE) WdfFunctions[WdfDeviceWdmGetAttachedDeviceTableIndex])(WdfDriverGlobals, Device); +} + +// +// WDF Function: WdfDeviceWdmGetPhysicalDevice +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +PDEVICE_OBJECT +(*PFN_WDFDEVICEWDMGETPHYSICALDEVICE)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +PDEVICE_OBJECT +FORCEINLINE +WdfDeviceWdmGetPhysicalDevice( + _In_ + WDFDEVICE Device + ) +{ + return ((PFN_WDFDEVICEWDMGETPHYSICALDEVICE) WdfFunctions[WdfDeviceWdmGetPhysicalDeviceTableIndex])(WdfDriverGlobals, Device); +} + +// +// WDF Function: WdfDeviceWdmDispatchPreprocessedIrp +// +typedef +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +(*PFN_WDFDEVICEWDMDISPATCHPREPROCESSEDIRP)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PIRP Irp + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +NTSTATUS +FORCEINLINE +WdfDeviceWdmDispatchPreprocessedIrp( + _In_ + WDFDEVICE Device, + _In_ + PIRP Irp + ) +{ + return ((PFN_WDFDEVICEWDMDISPATCHPREPROCESSEDIRP) WdfFunctions[WdfDeviceWdmDispatchPreprocessedIrpTableIndex])(WdfDriverGlobals, Device, Irp); +} + +// +// WDF Function: WdfDeviceWdmDispatchIrp +// +typedef +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +(*PFN_WDFDEVICEWDMDISPATCHIRP)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PIRP Irp, + _In_ + WDFCONTEXT DispatchContext + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +NTSTATUS +FORCEINLINE +WdfDeviceWdmDispatchIrp( + _In_ + WDFDEVICE Device, + _In_ + PIRP Irp, + _In_ + WDFCONTEXT DispatchContext + ) +{ + return ((PFN_WDFDEVICEWDMDISPATCHIRP) WdfFunctions[WdfDeviceWdmDispatchIrpTableIndex])(WdfDriverGlobals, Device, Irp, DispatchContext); +} + +// +// WDF Function: WdfDeviceWdmDispatchIrpToIoQueue +// +typedef +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +(*PFN_WDFDEVICEWDMDISPATCHIRPTOIOQUEUE)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PIRP Irp, + _In_ + WDFQUEUE Queue, + _In_ + ULONG Flags + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +NTSTATUS +FORCEINLINE +WdfDeviceWdmDispatchIrpToIoQueue( + _In_ + WDFDEVICE Device, + _In_ + PIRP Irp, + _In_ + WDFQUEUE Queue, + _In_ + ULONG Flags + ) +{ + return ((PFN_WDFDEVICEWDMDISPATCHIRPTOIOQUEUE) WdfFunctions[WdfDeviceWdmDispatchIrpToIoQueueTableIndex])(WdfDriverGlobals, Device, Irp, Queue, Flags); +} + +// +// WDF Function: WdfDeviceAddDependentUsageDeviceObject +// +typedef +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +(*PFN_WDFDEVICEADDDEPENDENTUSAGEDEVICEOBJECT)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PDEVICE_OBJECT DependentDevice + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +NTSTATUS +FORCEINLINE +WdfDeviceAddDependentUsageDeviceObject( + _In_ + WDFDEVICE Device, + _In_ + PDEVICE_OBJECT DependentDevice + ) +{ + return ((PFN_WDFDEVICEADDDEPENDENTUSAGEDEVICEOBJECT) WdfFunctions[WdfDeviceAddDependentUsageDeviceObjectTableIndex])(WdfDriverGlobals, Device, DependentDevice); +} + +// +// WDF Function: WdfDeviceRemoveDependentUsageDeviceObject +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +(*PFN_WDFDEVICEREMOVEDEPENDENTUSAGEDEVICEOBJECT)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PDEVICE_OBJECT DependentDevice + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +VOID +FORCEINLINE +WdfDeviceRemoveDependentUsageDeviceObject( + _In_ + WDFDEVICE Device, + _In_ + PDEVICE_OBJECT DependentDevice + ) +{ + ((PFN_WDFDEVICEREMOVEDEPENDENTUSAGEDEVICEOBJECT) WdfFunctions[WdfDeviceRemoveDependentUsageDeviceObjectTableIndex])(WdfDriverGlobals, Device, DependentDevice); +} + +// +// WDF Function: WdfDeviceAddRemovalRelationsPhysicalDevice +// +typedef +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +(*PFN_WDFDEVICEADDREMOVALRELATIONSPHYSICALDEVICE)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PDEVICE_OBJECT PhysicalDevice + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +NTSTATUS +FORCEINLINE +WdfDeviceAddRemovalRelationsPhysicalDevice( + _In_ + WDFDEVICE Device, + _In_ + PDEVICE_OBJECT PhysicalDevice + ) +{ + return ((PFN_WDFDEVICEADDREMOVALRELATIONSPHYSICALDEVICE) WdfFunctions[WdfDeviceAddRemovalRelationsPhysicalDeviceTableIndex])(WdfDriverGlobals, Device, PhysicalDevice); +} + +// +// WDF Function: WdfDeviceRemoveRemovalRelationsPhysicalDevice +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +(*PFN_WDFDEVICEREMOVEREMOVALRELATIONSPHYSICALDEVICE)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PDEVICE_OBJECT PhysicalDevice + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +VOID +FORCEINLINE +WdfDeviceRemoveRemovalRelationsPhysicalDevice( + _In_ + WDFDEVICE Device, + _In_ + PDEVICE_OBJECT PhysicalDevice + ) +{ + ((PFN_WDFDEVICEREMOVEREMOVALRELATIONSPHYSICALDEVICE) WdfFunctions[WdfDeviceRemoveRemovalRelationsPhysicalDeviceTableIndex])(WdfDriverGlobals, Device, PhysicalDevice); +} + +// +// WDF Function: WdfDeviceClearRemovalRelationsDevices +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +(*PFN_WDFDEVICECLEARREMOVALRELATIONSDEVICES)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +VOID +FORCEINLINE +WdfDeviceClearRemovalRelationsDevices( + _In_ + WDFDEVICE Device + ) +{ + ((PFN_WDFDEVICECLEARREMOVALRELATIONSDEVICES) WdfFunctions[WdfDeviceClearRemovalRelationsDevicesTableIndex])(WdfDriverGlobals, Device); +} + +// +// WDF Function: WdfDeviceGetDriver +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDFDRIVER +(*PFN_WDFDEVICEGETDRIVER)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFDRIVER +FORCEINLINE +WdfDeviceGetDriver( + _In_ + WDFDEVICE Device + ) +{ + return ((PFN_WDFDEVICEGETDRIVER) WdfFunctions[WdfDeviceGetDriverTableIndex])(WdfDriverGlobals, Device); +} + +// +// WDF Function: WdfDeviceRetrieveDeviceName +// +typedef +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +(*PFN_WDFDEVICERETRIEVEDEVICENAME)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + WDFSTRING String + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +FORCEINLINE +WdfDeviceRetrieveDeviceName( + _In_ + WDFDEVICE Device, + _In_ + WDFSTRING String + ) +{ + return ((PFN_WDFDEVICERETRIEVEDEVICENAME) WdfFunctions[WdfDeviceRetrieveDeviceNameTableIndex])(WdfDriverGlobals, Device, String); +} + +// +// WDF Function: WdfDeviceAssignMofResourceName +// +typedef +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +(*PFN_WDFDEVICEASSIGNMOFRESOURCENAME)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PCUNICODE_STRING MofResourceName + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +FORCEINLINE +WdfDeviceAssignMofResourceName( + _In_ + WDFDEVICE Device, + _In_ + PCUNICODE_STRING MofResourceName + ) +{ + return ((PFN_WDFDEVICEASSIGNMOFRESOURCENAME) WdfFunctions[WdfDeviceAssignMofResourceNameTableIndex])(WdfDriverGlobals, Device, MofResourceName); +} + +// +// WDF Function: WdfDeviceGetIoTarget +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDFIOTARGET +(*PFN_WDFDEVICEGETIOTARGET)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFIOTARGET +FORCEINLINE +WdfDeviceGetIoTarget( + _In_ + WDFDEVICE Device + ) +{ + return ((PFN_WDFDEVICEGETIOTARGET) WdfFunctions[WdfDeviceGetIoTargetTableIndex])(WdfDriverGlobals, Device); +} + +// +// WDF Function: WdfDeviceGetDevicePnpState +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDF_DEVICE_PNP_STATE +(*PFN_WDFDEVICEGETDEVICEPNPSTATE)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDF_DEVICE_PNP_STATE +FORCEINLINE +WdfDeviceGetDevicePnpState( + _In_ + WDFDEVICE Device + ) +{ + return ((PFN_WDFDEVICEGETDEVICEPNPSTATE) WdfFunctions[WdfDeviceGetDevicePnpStateTableIndex])(WdfDriverGlobals, Device); +} + +// +// WDF Function: WdfDeviceGetDevicePowerState +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDF_DEVICE_POWER_STATE +(*PFN_WDFDEVICEGETDEVICEPOWERSTATE)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDF_DEVICE_POWER_STATE +FORCEINLINE +WdfDeviceGetDevicePowerState( + _In_ + WDFDEVICE Device + ) +{ + return ((PFN_WDFDEVICEGETDEVICEPOWERSTATE) WdfFunctions[WdfDeviceGetDevicePowerStateTableIndex])(WdfDriverGlobals, Device); +} + +// +// WDF Function: WdfDeviceGetDevicePowerPolicyState +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +WDF_DEVICE_POWER_POLICY_STATE +(*PFN_WDFDEVICEGETDEVICEPOWERPOLICYSTATE)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +WDF_DEVICE_POWER_POLICY_STATE +FORCEINLINE +WdfDeviceGetDevicePowerPolicyState( + _In_ + WDFDEVICE Device + ) +{ + return ((PFN_WDFDEVICEGETDEVICEPOWERPOLICYSTATE) WdfFunctions[WdfDeviceGetDevicePowerPolicyStateTableIndex])(WdfDriverGlobals, Device); +} + +// +// WDF Function: WdfDeviceAssignS0IdleSettings +// +typedef +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +(*PFN_WDFDEVICEASSIGNS0IDLESETTINGS)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PWDF_DEVICE_POWER_POLICY_IDLE_SETTINGS Settings + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +NTSTATUS +FORCEINLINE +WdfDeviceAssignS0IdleSettings( + _In_ + WDFDEVICE Device, + _In_ + PWDF_DEVICE_POWER_POLICY_IDLE_SETTINGS Settings + ) +{ + return ((PFN_WDFDEVICEASSIGNS0IDLESETTINGS) WdfFunctions[WdfDeviceAssignS0IdleSettingsTableIndex])(WdfDriverGlobals, Device, Settings); +} + +// +// WDF Function: WdfDeviceAssignSxWakeSettings +// +typedef +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +NTSTATUS +(*PFN_WDFDEVICEASSIGNSXWAKESETTINGS)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PWDF_DEVICE_POWER_POLICY_WAKE_SETTINGS Settings + ); + +_Must_inspect_result_ +_IRQL_requires_max_(DISPATCH_LEVEL) +NTSTATUS +FORCEINLINE +WdfDeviceAssignSxWakeSettings( + _In_ + WDFDEVICE Device, + _In_ + PWDF_DEVICE_POWER_POLICY_WAKE_SETTINGS Settings + ) +{ + return ((PFN_WDFDEVICEASSIGNSXWAKESETTINGS) WdfFunctions[WdfDeviceAssignSxWakeSettingsTableIndex])(WdfDriverGlobals, Device, Settings); +} + +// +// WDF Function: WdfDeviceOpenRegistryKey +// +typedef +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +(*PFN_WDFDEVICEOPENREGISTRYKEY)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + ULONG DeviceInstanceKeyType, + _In_ + ACCESS_MASK DesiredAccess, + _In_opt_ + PWDF_OBJECT_ATTRIBUTES KeyAttributes, + _Out_ + WDFKEY* Key + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +FORCEINLINE +WdfDeviceOpenRegistryKey( + _In_ + WDFDEVICE Device, + _In_ + ULONG DeviceInstanceKeyType, + _In_ + ACCESS_MASK DesiredAccess, + _In_opt_ + PWDF_OBJECT_ATTRIBUTES KeyAttributes, + _Out_ + WDFKEY* Key + ) +{ + return ((PFN_WDFDEVICEOPENREGISTRYKEY) WdfFunctions[WdfDeviceOpenRegistryKeyTableIndex])(WdfDriverGlobals, Device, DeviceInstanceKeyType, DesiredAccess, KeyAttributes, Key); +} + +// +// WDF Function: WdfDeviceOpenDevicemapKey +// +typedef +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +WDFAPI +NTSTATUS +(*PFN_WDFDEVICEOPENDEVICEMAPKEY)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + PCUNICODE_STRING KeyName, + _In_ + ACCESS_MASK DesiredAccess, + _In_opt_ + PWDF_OBJECT_ATTRIBUTES KeyAttributes, + _Out_ + WDFKEY* Key + ); + +_Must_inspect_result_ +_IRQL_requires_max_(PASSIVE_LEVEL) +NTSTATUS +FORCEINLINE +WdfDeviceOpenDevicemapKey( + _In_ + WDFDEVICE Device, + _In_ + PCUNICODE_STRING KeyName, + _In_ + ACCESS_MASK DesiredAccess, + _In_opt_ + PWDF_OBJECT_ATTRIBUTES KeyAttributes, + _Out_ + WDFKEY* Key + ) +{ + return ((PFN_WDFDEVICEOPENDEVICEMAPKEY) WdfFunctions[WdfDeviceOpenDevicemapKeyTableIndex])(WdfDriverGlobals, Device, KeyName, DesiredAccess, KeyAttributes, Key); +} + +// +// WDF Function: WdfDeviceSetSpecialFileSupport +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +(*PFN_WDFDEVICESETSPECIALFILESUPPORT)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + WDF_SPECIAL_FILE_TYPE FileType, + _In_ + BOOLEAN FileTypeIsSupported + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +VOID +FORCEINLINE +WdfDeviceSetSpecialFileSupport( + _In_ + WDFDEVICE Device, + _In_ + WDF_SPECIAL_FILE_TYPE FileType, + _In_ + BOOLEAN FileTypeIsSupported + ) +{ + ((PFN_WDFDEVICESETSPECIALFILESUPPORT) WdfFunctions[WdfDeviceSetSpecialFileSupportTableIndex])(WdfDriverGlobals, Device, FileType, FileTypeIsSupported); +} + +// +// WDF Function: WdfDeviceSetCharacteristics +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +VOID +(*PFN_WDFDEVICESETCHARACTERISTICS)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device, + _In_ + ULONG DeviceCharacteristics + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +VOID +FORCEINLINE +WdfDeviceSetCharacteristics( + _In_ + WDFDEVICE Device, + _In_ + ULONG DeviceCharacteristics + ) +{ + ((PFN_WDFDEVICESETCHARACTERISTICS) WdfFunctions[WdfDeviceSetCharacteristicsTableIndex])(WdfDriverGlobals, Device, DeviceCharacteristics); +} + +// +// WDF Function: WdfDeviceGetCharacteristics +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +ULONG +(*PFN_WDFDEVICEGETCHARACTERISTICS)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +ULONG +FORCEINLINE +WdfDeviceGetCharacteristics( + _In_ + WDFDEVICE Device + ) +{ + return ((PFN_WDFDEVICEGETCHARACTERISTICS) WdfFunctions[WdfDeviceGetCharacteristicsTableIndex])(WdfDriverGlobals, Device); +} + +// +// WDF Function: WdfDeviceGetAlignmentRequirement +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) +WDFAPI +ULONG +(*PFN_WDFDEVICEGETALIGNMENTREQUIREMENT)( + _In_ + PWDF_DRIVER_GLOBALS DriverGlobals, + _In_ + WDFDEVICE Device + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +ULONG +FORCEINLINE +WdfDeviceGetAlignmentRequirement( + _In_ + WDFDEVICE Device + ) +{ + return ((PFN_WDFDEVICEGETALIGNMENTREQUIREMENT) WdfFunctions[WdfDeviceGetAlignmentRequirementTableIndex])(WdfDriverGlobals, Device); +} + +// +// WDF Function: WdfDeviceSetAlignmentRequirement +// +typedef +_IRQL_requires_max_(DISPATCH_LEVEL) ... 19595 lines suppressed ...
4 years, 1 month
1
0
0
0
[reactos] 02/02: [REACTOS] Cleanup INIT and some PAGE section allocations
by Victor Perevertkin
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5c7ce4475e246560d1622…
commit 5c7ce4475e246560d1622b8cc60dc603e3955f66 Author: Victor Perevertkin <victor.perevertkin(a)reactos.org> AuthorDate: Tue Oct 6 22:44:01 2020 +0300 Commit: Victor Perevertkin <victor.perevertkin(a)reactos.org> CommitDate: Mon Nov 2 21:45:31 2020 +0300 [REACTOS] Cleanup INIT and some PAGE section allocations - Change INIT_FUNCTION and INIT_SECTION to CODE_SEG("INIT") and DATA_SEG("INIT") respectively - Remove INIT_FUNCTION from function prototypes - Remove alloc_text pragma calls as they are not needed anymore --- drivers/filesystems/fastfat/fastio.c | 2 +- drivers/filesystems/fastfat/iface.c | 6 +- drivers/filesystems/fastfat/vfat.h | 2 - drivers/filesystems/mup/dfs.c | 2 +- drivers/filesystems/mup/dfs.h | 1 - drivers/filesystems/mup/mup.c | 12 +-- drivers/filesystems/ntfs/ntfs.c | 4 +- drivers/filesystems/ntfs/ntfs.h | 2 - drivers/storage/mountmgr/mntmgr.h | 2 - drivers/storage/mountmgr/mountmgr.c | 4 +- hal/halx86/acpi/busemul.c | 2 +- hal/halx86/acpi/halacpi.c | 14 +-- hal/halx86/apic/rtctimer.c | 6 +- hal/halx86/generic/cmos.c | 6 +- hal/halx86/generic/dma.c | 6 +- hal/halx86/generic/halinit.c | 16 +--- hal/halx86/generic/misc.c | 9 +- hal/halx86/generic/timer.c | 6 +- hal/halx86/generic/usage.c | 53 ++--------- hal/halx86/include/bus.h | 4 - hal/halx86/include/halacpi.h | 1 - hal/halx86/include/halp.h | 19 +--- hal/halx86/legacy/bus/pcibus.c | 18 ++-- hal/halx86/legacy/bussupp.c | 135 ++++------------------------ hal/halx86/legacy/halpcat.c | 21 ++--- hal/halx86/pc98/cmos.c | 6 +- hal/halx86/pcidata.cmake | 8 +- hal/halx86/up/halinit_mini.c | 2 +- ntoskrnl/cache/fssup.c | 4 +- ntoskrnl/cache/newcc.h | 3 - ntoskrnl/cache/section/io.c | 5 -- ntoskrnl/cc/cacheman.c | 4 +- ntoskrnl/cc/view.c | 6 +- ntoskrnl/config/cmalloc.c | 4 +- ntoskrnl/config/cmboot.c | 20 ++--- ntoskrnl/config/cmconfig.c | 6 +- ntoskrnl/config/cmcontrl.c | 6 +- ntoskrnl/config/cmdata.c | 8 +- ntoskrnl/config/cmdelay.c | 4 +- ntoskrnl/config/cmhook.c | 2 +- ntoskrnl/config/cmkcbncb.c | 2 +- ntoskrnl/config/cmsysini.c | 20 ++--- ntoskrnl/dbgk/dbgkobj.c | 2 +- ntoskrnl/ex/callback.c | 2 +- ntoskrnl/ex/event.c | 6 +- ntoskrnl/ex/evtpair.c | 6 +- ntoskrnl/ex/handle.c | 2 +- ntoskrnl/ex/hdlsterm.c | 2 +- ntoskrnl/ex/init.c | 26 +++--- ntoskrnl/ex/keyedevt.c | 2 +- ntoskrnl/ex/lookas.c | 10 +-- ntoskrnl/ex/mutant.c | 6 +- ntoskrnl/ex/profile.c | 6 +- ntoskrnl/ex/pushlock.c | 2 +- ntoskrnl/ex/resource.c | 2 +- ntoskrnl/ex/sem.c | 6 +- ntoskrnl/ex/timer.c | 2 +- ntoskrnl/ex/uuid.c | 10 +-- ntoskrnl/ex/win32k.c | 6 +- ntoskrnl/ex/work.c | 6 +- ntoskrnl/ex/xipdisp.c | 4 +- ntoskrnl/fsrtl/fsrtlpc.c | 4 +- ntoskrnl/fsrtl/largemcb.c | 2 +- ntoskrnl/fsrtl/stackovf.c | 2 +- ntoskrnl/fsrtl/tunnel.c | 4 +- ntoskrnl/inbv/inbv.c | 20 ++--- ntoskrnl/include/internal/amd64/mm.h | 1 - ntoskrnl/include/internal/cc.h | 3 - ntoskrnl/include/internal/cm.h | 16 ---- ntoskrnl/include/internal/dbgk.h | 1 - ntoskrnl/include/internal/ex.h | 21 ----- ntoskrnl/include/internal/fsrtl.h | 3 - ntoskrnl/include/internal/i386/ke.h | 21 +---- ntoskrnl/include/internal/inbv.h | 8 -- ntoskrnl/include/internal/io.h | 13 --- ntoskrnl/include/internal/ke.h | 9 -- ntoskrnl/include/internal/lpc.h | 1 - ntoskrnl/include/internal/mm.h | 14 --- ntoskrnl/include/internal/ob.h | 3 - ntoskrnl/include/internal/po.h | 2 - ntoskrnl/include/internal/ps.h | 4 - ntoskrnl/include/internal/se.h | 6 -- ntoskrnl/io/iomgr/arcname.c | 12 +-- ntoskrnl/io/iomgr/bootlog.c | 9 +- ntoskrnl/io/iomgr/driver.c | 8 +- ntoskrnl/io/iomgr/iomgr.c | 14 ++- ntoskrnl/io/iomgr/ramdisk.c | 8 +- ntoskrnl/io/iomgr/rawfs.c | 2 +- ntoskrnl/io/iomgr/volume.c | 5 -- ntoskrnl/io/pnpmgr/plugplay.c | 7 +- ntoskrnl/io/pnpmgr/pnpinit.c | 4 +- ntoskrnl/io/pnpmgr/pnpmgr.c | 6 +- ntoskrnl/kd/kdinit.c | 4 +- ntoskrnl/kd/kdio.c | 4 +- ntoskrnl/kd64/kdinit.c | 4 +- ntoskrnl/ke/amd64/cpu.c | 3 + ntoskrnl/ke/amd64/except.c | 2 +- ntoskrnl/ke/amd64/kiinit.c | 7 +- ntoskrnl/ke/amd64/krnlinit.c | 6 +- ntoskrnl/ke/arm/kiinit.c | 2 + ntoskrnl/ke/bug.c | 6 +- ntoskrnl/ke/config.c | 4 +- ntoskrnl/ke/i386/cpu.c | 32 +++---- ntoskrnl/ke/i386/exp.c | 2 +- ntoskrnl/ke/i386/kiinit.c | 12 +-- ntoskrnl/ke/i386/mtrr.c | 4 +- ntoskrnl/ke/i386/patpge.c | 6 +- ntoskrnl/ke/krnlinit.c | 8 +- ntoskrnl/ke/powerpc/cpu.c | 7 ++ ntoskrnl/ke/powerpc/exp.c | 2 +- ntoskrnl/ke/powerpc/kiinit.c | 1 + ntoskrnl/ke/powerpc/ppc_irq.c | 2 +- ntoskrnl/lpc/port.c | 2 +- ntoskrnl/mm/ARM3/arm/init.c | 2 +- ntoskrnl/mm/ARM3/expool.c | 6 +- ntoskrnl/mm/ARM3/i386/init.c | 6 +- ntoskrnl/mm/ARM3/largepag.c | 6 +- ntoskrnl/mm/ARM3/miarm.h | 19 ---- ntoskrnl/mm/ARM3/mminit.c | 40 ++++----- ntoskrnl/mm/ARM3/pool.c | 6 +- ntoskrnl/mm/ARM3/procsup.c | 4 +- ntoskrnl/mm/ARM3/sysldr.c | 12 +-- ntoskrnl/mm/ARM3/syspte.c | 2 +- ntoskrnl/mm/amd64/init.c | 16 ++-- ntoskrnl/mm/arm/page.c | 3 +- ntoskrnl/mm/arm/stubs.c | 1 + ntoskrnl/mm/balance.c | 13 +-- ntoskrnl/mm/i386/page.c | 6 +- ntoskrnl/mm/i386/pagepae.c | 6 +- ntoskrnl/mm/mminit.c | 10 +-- ntoskrnl/mm/pagefile.c | 6 +- ntoskrnl/mm/powerpc/page.c | 6 +- ntoskrnl/mm/rmap.c | 6 +- ntoskrnl/mm/section.c | 10 +-- ntoskrnl/ob/obinit.c | 8 +- ntoskrnl/ob/obname.c | 6 +- ntoskrnl/ob/obsdcach.c | 2 +- ntoskrnl/po/power.c | 4 +- ntoskrnl/ps/apphelp.c | 2 +- ntoskrnl/ps/job.c | 2 +- ntoskrnl/ps/psmgr.c | 18 ++-- ntoskrnl/ps/quota.c | 2 +- ntoskrnl/se/acl.c | 6 +- ntoskrnl/se/priv.c | 6 +- ntoskrnl/se/sd.c | 6 +- ntoskrnl/se/semgr.c | 8 +- ntoskrnl/se/sid.c | 6 +- ntoskrnl/se/token.c | 7 +- ntoskrnl/vdm/vdmmain.c | 4 +- sdk/include/ndk/halfuncs.h | 2 - sdk/include/ndk/kefuncs.h | 4 +- win32ss/drivers/miniport/pc98vid/hardware.c | 11 +-- win32ss/drivers/miniport/pc98vid/ioctl.c | 23 ++--- win32ss/drivers/miniport/pc98vid/pc98vid.c | 11 +-- win32ss/gdi/eng/device.c | 2 +- win32ss/gdi/eng/device.h | 1 - win32ss/gdi/eng/engbrush.c | 2 +- win32ss/gdi/eng/ldevobj.c | 2 +- win32ss/gdi/eng/ldevobj.h | 2 - win32ss/gdi/eng/pdevobj.c | 2 +- win32ss/gdi/eng/pdevobj.h | 1 - win32ss/gdi/ntgdi/brush.h | 1 - win32ss/gdi/ntgdi/dc.h | 2 +- win32ss/gdi/ntgdi/dclife.c | 2 +- win32ss/gdi/ntgdi/gdiobj.c | 2 +- win32ss/gdi/ntgdi/gdiobj.h | 1 - win32ss/gdi/ntgdi/palette.c | 2 +- win32ss/gdi/ntgdi/palette.h | 1 - win32ss/user/ntuser/dce.h | 2 +- win32ss/user/ntuser/desktop.c | 2 +- win32ss/user/ntuser/desktop.h | 1 - win32ss/user/ntuser/input.c | 2 +- win32ss/user/ntuser/input.h | 4 +- win32ss/user/ntuser/keyboard.c | 2 +- win32ss/user/ntuser/main.c | 2 +- win32ss/user/ntuser/msgqueue.c | 2 +- win32ss/user/ntuser/msgqueue.h | 2 +- win32ss/user/ntuser/ntuser.c | 2 +- win32ss/user/ntuser/ntuser.h | 2 +- win32ss/user/ntuser/timer.c | 2 +- win32ss/user/ntuser/timer.h | 2 +- win32ss/user/ntuser/windc.c | 2 +- win32ss/user/ntuser/winsta.c | 2 +- win32ss/user/ntuser/winsta.h | 1 - 184 files changed, 397 insertions(+), 906 deletions(-) diff --git a/drivers/filesystems/fastfat/fastio.c b/drivers/filesystems/fastfat/fastio.c index 428fdbb2201..5f1ab235dc6 100644 --- a/drivers/filesystems/fastfat/fastio.c +++ b/drivers/filesystems/fastfat/fastio.c @@ -753,7 +753,7 @@ VfatReleaseFromLazyWrite( ExReleaseResourceLite(&(Fcb->MainResource)); } -INIT_FUNCTION +CODE_SEG("INIT") VOID VfatInitFastIoRoutines( PFAST_IO_DISPATCH FastIoDispatch) diff --git a/drivers/filesystems/fastfat/iface.c b/drivers/filesystems/fastfat/iface.c index f4c6608a3ed..9b3294211f3 100644 --- a/drivers/filesystems/fastfat/iface.c +++ b/drivers/filesystems/fastfat/iface.c @@ -31,10 +31,6 @@ #define NDEBUG #include <debug.h> -#if defined(ALLOC_PRAGMA) -#pragma alloc_text(INIT, DriverEntry) -#endif - /* GLOBALS *****************************************************************/ PVFAT_GLOBAL_DATA VfatGlobalData; @@ -48,7 +44,7 @@ PVFAT_GLOBAL_DATA VfatGlobalData; * RegistryPath = path to our configuration entries * RETURNS: Success or failure */ -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI DriverEntry( diff --git a/drivers/filesystems/fastfat/vfat.h b/drivers/filesystems/fastfat/vfat.h index 943c6b76ab1..e3e5073c411 100644 --- a/drivers/filesystems/fastfat/vfat.h +++ b/drivers/filesystems/fastfat/vfat.h @@ -824,7 +824,6 @@ VfatSetExtendedAttributes( /* fastio.c */ -INIT_FUNCTION VOID VfatInitFastIoRoutines( PFAST_IO_DISPATCH FastIoDispatch); @@ -1129,7 +1128,6 @@ VfatFileSystemControl( /* iface.c */ -INIT_FUNCTION NTSTATUS NTAPI DriverEntry( diff --git a/drivers/filesystems/mup/dfs.c b/drivers/filesystems/mup/dfs.c index 13a4fe205de..61b54d63dd1 100644 --- a/drivers/filesystems/mup/dfs.c +++ b/drivers/filesystems/mup/dfs.c @@ -82,7 +82,7 @@ DfsUnload(PDRIVER_OBJECT DriverObject) UNIMPLEMENTED; } -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS DfsDriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath) diff --git a/drivers/filesystems/mup/dfs.h b/drivers/filesystems/mup/dfs.h index 49194bdc7f5..e8268984ba4 100644 --- a/drivers/filesystems/mup/dfs.h +++ b/drivers/filesystems/mup/dfs.h @@ -51,7 +51,6 @@ DfsUnload( PDRIVER_OBJECT DriverObject ); -INIT_FUNCTION NTSTATUS DfsDriverEntry( PDRIVER_OBJECT DriverObject, diff --git a/drivers/filesystems/mup/mup.c b/drivers/filesystems/mup/mup.c index dfc4e71cf97..760bcfd5368 100644 --- a/drivers/filesystems/mup/mup.c +++ b/drivers/filesystems/mup/mup.c @@ -32,7 +32,7 @@ #define NDEBUG #include <debug.h> -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI DriverEntry( @@ -40,13 +40,13 @@ DriverEntry( PUNICODE_STRING RegistryPath ); -INIT_FUNCTION +CODE_SEG("INIT") VOID MupInitializeData( VOID ); -INIT_FUNCTION +CODE_SEG("INIT") VOID MupInitializeVcb( PMUP_VCB Vcb @@ -79,7 +79,7 @@ NTSTATUS MupOrderedErrorList[] = { STATUS_UNSUCCESSFUL, /* FUNCTIONS ****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID MupInitializeData(VOID) { @@ -105,7 +105,7 @@ MupUninitializeData() ExDeleteResourceLite(&MupVcbLock); } -INIT_FUNCTION +CODE_SEG("INIT") VOID MupInitializeVcb(PMUP_VCB Vcb) { @@ -2510,7 +2510,7 @@ MupUnload(PDRIVER_OBJECT DriverObject) * RegistryPath = path to our configuration entries * RETURNS: Success or failure */ -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI DriverEntry(PDRIVER_OBJECT DriverObject, diff --git a/drivers/filesystems/ntfs/ntfs.c b/drivers/filesystems/ntfs/ntfs.c index a102439cf90..087d56ccdbd 100644 --- a/drivers/filesystems/ntfs/ntfs.c +++ b/drivers/filesystems/ntfs/ntfs.c @@ -49,7 +49,7 @@ PNTFS_GLOBAL_DATA NtfsGlobalData = NULL; * RegistryPath = path to our configuration entries * RETURNS: Success or failure */ -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI DriverEntry(PDRIVER_OBJECT DriverObject, @@ -169,7 +169,7 @@ DriverEntry(PDRIVER_OBJECT DriverObject, * DriverObject = object describing this driver * RETURNS: Nothing */ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI NtfsInitializeFunctionPointers(PDRIVER_OBJECT DriverObject) diff --git a/drivers/filesystems/ntfs/ntfs.h b/drivers/filesystems/ntfs/ntfs.h index aa85b810883..9b00ca3ec15 100644 --- a/drivers/filesystems/ntfs/ntfs.h +++ b/drivers/filesystems/ntfs/ntfs.h @@ -1276,10 +1276,8 @@ NtfsSetVolumeInformation(PNTFS_IRP_CONTEXT IrpContext); /* ntfs.c */ -INIT_FUNCTION DRIVER_INITIALIZE DriverEntry; -INIT_FUNCTION VOID NTAPI NtfsInitializeFunctionPointers(PDRIVER_OBJECT DriverObject); diff --git a/drivers/storage/mountmgr/mntmgr.h b/drivers/storage/mountmgr/mntmgr.h index b92698fdeaf..11fa4bf3b6c 100644 --- a/drivers/storage/mountmgr/mntmgr.h +++ b/drivers/storage/mountmgr/mntmgr.h @@ -176,7 +176,6 @@ extern UNICODE_STRING Volume; extern KEVENT UnloadEvent; extern LONG Unloading; -INIT_FUNCTION DRIVER_INITIALIZE DriverEntry; VOID @@ -229,7 +228,6 @@ HasDriveLetter( IN PDEVICE_INFORMATION DeviceInformation ); -INIT_FUNCTION BOOLEAN MountmgrReadNoAutoMount( IN PUNICODE_STRING RegistryPath diff --git a/drivers/storage/mountmgr/mountmgr.c b/drivers/storage/mountmgr/mountmgr.c index b79bb0f9f01..9ec66ed7217 100644 --- a/drivers/storage/mountmgr/mountmgr.c +++ b/drivers/storage/mountmgr/mountmgr.c @@ -899,7 +899,7 @@ MountMgrUnload(IN struct _DRIVER_OBJECT *DriverObject) /* * @implemented */ -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN MountmgrReadNoAutoMount(IN PUNICODE_STRING RegistryPath) { @@ -1793,7 +1793,7 @@ MountMgrShutdown(IN PDEVICE_OBJECT DeviceObject, /* FUNCTIONS ****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI DriverEntry(IN PDRIVER_OBJECT DriverObject, diff --git a/hal/halx86/acpi/busemul.c b/hal/halx86/acpi/busemul.c index d63c89cce50..e26600a984b 100644 --- a/hal/halx86/acpi/busemul.c +++ b/hal/halx86/acpi/busemul.c @@ -16,7 +16,7 @@ /* PRIVATE FUNCTIONS **********************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpRegisterKdSupportFunctions(VOID) diff --git a/hal/halx86/acpi/halacpi.c b/hal/halx86/acpi/halacpi.c index 7f2779e19cd..da46365b049 100644 --- a/hal/halx86/acpi/halacpi.c +++ b/hal/halx86/acpi/halacpi.c @@ -786,7 +786,7 @@ HaliAcpiTimerInit(IN ULONG TimerPort, //HalaAcpiTimerInit(TimerPort, TimerValExt); } -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI HalpSetupAcpiPhase0(IN PLOADER_PARAMETER_BLOCK LoaderBlock) @@ -907,7 +907,7 @@ HalpSetupAcpiPhase0(IN PLOADER_PARAMETER_BLOCK LoaderBlock) return STATUS_SUCCESS; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpInitializePciBus(VOID) @@ -929,7 +929,7 @@ HalpInitNonBusHandler(VOID) HalFindBusAddressTranslation = HalpFindBusAddressTranslation; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpInitBusHandlers(VOID) @@ -938,7 +938,7 @@ HalpInitBusHandlers(VOID) HalpInitNonBusHandler(); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpBuildAddressMap(VOID) @@ -946,7 +946,7 @@ HalpBuildAddressMap(VOID) /* ACPI is magic baby */ } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI HalpGetDebugPortTable(VOID) @@ -955,7 +955,7 @@ HalpGetDebugPortTable(VOID) (HalpDebugPortTable->BaseAddress.AddressSpaceID == 1)); } -INIT_FUNCTION +CODE_SEG("INIT") ULONG NTAPI HalpIs16BitPortDecodeSupported(VOID) @@ -1065,7 +1065,7 @@ HalpQueryAcpiResourceRequirements(OUT PIO_RESOURCE_REQUIREMENTS_LIST *Requiremen /* * @implemented */ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalReportResourceUsage(VOID) diff --git a/hal/halx86/apic/rtctimer.c b/hal/halx86/apic/rtctimer.c index 62318f724ba..817e6e2de88 100644 --- a/hal/halx86/apic/rtctimer.c +++ b/hal/halx86/apic/rtctimer.c @@ -15,10 +15,6 @@ #define NDEBUG #include <debug.h> -#if defined(ALLOC_PRAGMA) && !defined(_MINIHAL_) -#pragma alloc_text(INIT, HalpInitializeClock) -#endif - /* GLOBALS ********************************************************************/ const UCHAR HalpClockVector = 0xD1; @@ -92,7 +88,7 @@ RtcSetClockRate(UCHAR ClockRate) HalpReleaseCmosSpinLock(); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpInitializeClock(VOID) diff --git a/hal/halx86/generic/cmos.c b/hal/halx86/generic/cmos.c index 2703c6a89ff..75a09b1bfe2 100644 --- a/hal/halx86/generic/cmos.c +++ b/hal/halx86/generic/cmos.c @@ -13,10 +13,6 @@ #define NDEBUG #include <debug.h> -#if defined(ALLOC_PRAGMA) && !defined(_MINIHAL_) -#pragma alloc_text(INIT, HalpInitializeCmos) -#endif - /* GLOBALS *******************************************************************/ UCHAR HalpCmosCenturyOffset; @@ -157,7 +153,7 @@ HalpSetCmosData(IN ULONG BusNumber, return Length - Len; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpInitializeCmos(VOID) diff --git a/hal/halx86/generic/dma.c b/hal/halx86/generic/dma.c index d8a8a696319..e7cbeb32f7d 100644 --- a/hal/halx86/generic/dma.c +++ b/hal/halx86/generic/dma.c @@ -77,10 +77,6 @@ #define NDEBUG #include <debug.h> -#if defined(ALLOC_PRAGMA) && !defined(_MINIHAL_) -#pragma alloc_text(INIT, HalpInitDma) -#endif - #define MAX_SG_ELEMENTS 0x10 #ifndef _MINIHAL_ @@ -152,7 +148,7 @@ static DMA_OPERATIONS HalpDmaOperations = { #endif #ifndef _MINIHAL_ -INIT_FUNCTION +CODE_SEG("INIT") VOID HalpInitDma(VOID) { diff --git a/hal/halx86/generic/halinit.c b/hal/halx86/generic/halinit.c index 90183d1fb4f..5b6ed2831b5 100644 --- a/hal/halx86/generic/halinit.c +++ b/hal/halx86/generic/halinit.c @@ -12,25 +12,13 @@ #define NDEBUG #include <debug.h> -INIT_FUNCTION -VOID -NTAPI -HalpGetParameters( - IN PLOADER_PARAMETER_BLOCK LoaderBlock -); - -#if defined(ALLOC_PRAGMA) && !defined(_MINIHAL_) -#pragma alloc_text(INIT, HalInitSystem) -#pragma alloc_text(INIT, HalpGetParameters) -#endif - /* GLOBALS *******************************************************************/ BOOLEAN HalpPciLockSettings; /* PRIVATE FUNCTIONS *********************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpGetParameters(IN PLOADER_PARAMETER_BLOCK LoaderBlock) @@ -77,7 +65,7 @@ HalInitializeProcessor( /* * @implemented */ -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI HalInitSystem(IN ULONG BootPhase, diff --git a/hal/halx86/generic/misc.c b/hal/halx86/generic/misc.c index 67b8bcf08fd..c776d0a7db0 100644 --- a/hal/halx86/generic/misc.c +++ b/hal/halx86/generic/misc.c @@ -12,11 +12,6 @@ #define NDEBUG #include <debug.h> -#if defined(ALLOC_PRAGMA) && !defined(_MINIHAL_) -#pragma alloc_text(INIT, HalpMarkAcpiHal) -#pragma alloc_text(INIT, HalpReportSerialNumber) -#endif - /* GLOBALS *******************************************************************/ UCHAR HalpSerialLen; @@ -25,7 +20,7 @@ CHAR HalpSerialNumber[31]; /* PRIVATE FUNCTIONS **********************************************************/ #ifndef _MINIHAL_ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpReportSerialNumber(VOID) @@ -56,7 +51,7 @@ HalpReportSerialNumber(VOID) } } -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI HalpMarkAcpiHal(VOID) diff --git a/hal/halx86/generic/timer.c b/hal/halx86/generic/timer.c index 3d5b1b0e521..d7405d27f1e 100644 --- a/hal/halx86/generic/timer.c +++ b/hal/halx86/generic/timer.c @@ -13,10 +13,6 @@ #define NDEBUG #include <debug.h> -#if defined(ALLOC_PRAGMA) && !defined(_MINIHAL_) -#pragma alloc_text(INIT, HalpInitializeClock) -#endif - /* GLOBALS *******************************************************************/ #define PIT_LATCH 0x00 @@ -90,7 +86,7 @@ HalpSetTimerRollOver(USHORT RollOver) __writeeflags(Flags); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpInitializeClock(VOID) diff --git a/hal/halx86/generic/usage.c b/hal/halx86/generic/usage.c index 78ad3c6bf54..0652e817a95 100644 --- a/hal/halx86/generic/usage.c +++ b/hal/halx86/generic/usage.c @@ -12,45 +12,6 @@ #define NDEBUG #include <debug.h> -INIT_FUNCTION -VOID -NTAPI -HalpGetResourceSortValue( - IN PCM_PARTIAL_RESOURCE_DESCRIPTOR Descriptor, - OUT PULONG Scale, - OUT PLARGE_INTEGER Value -); - -INIT_FUNCTION -VOID -NTAPI -HalpBuildPartialFromIdt( - IN ULONG Entry, - IN PCM_PARTIAL_RESOURCE_DESCRIPTOR RawDescriptor, - IN PCM_PARTIAL_RESOURCE_DESCRIPTOR TranslatedDescriptor -); - -INIT_FUNCTION -VOID -NTAPI -HalpBuildPartialFromAddress( - IN INTERFACE_TYPE Interface, - IN PADDRESS_USAGE CurrentAddress, - IN ULONG Element, - IN PCM_PARTIAL_RESOURCE_DESCRIPTOR RawDescriptor, - IN PCM_PARTIAL_RESOURCE_DESCRIPTOR TranslatedDescriptor -); - -#if defined(ALLOC_PRAGMA) && !defined(_MINIHAL_) -#pragma alloc_text(INIT, HalpBuildPartialFromAddress) -#pragma alloc_text(INIT, HalpBuildPartialFromIdt) -#pragma alloc_text(INIT, HalpEnableInterruptHandler) -#pragma alloc_text(INIT, HalpGetNMICrashFlag) -#pragma alloc_text(INIT, HalpGetResourceSortValue) -#pragma alloc_text(INIT, HalpRegisterVector) -#pragma alloc_text(INIT, HalpReportResourceUsage) -#endif - /* GLOBALS ********************************************************************/ BOOLEAN HalpGetInfoFromACPI; @@ -155,7 +116,7 @@ ADDRESS_USAGE HalpDefaultIoSpace = /* FUNCTIONS ******************************************************************/ #ifndef _MINIHAL_ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpGetResourceSortValue(IN PCM_PARTIAL_RESOURCE_DESCRIPTOR Descriptor, @@ -195,7 +156,7 @@ HalpGetResourceSortValue(IN PCM_PARTIAL_RESOURCE_DESCRIPTOR Descriptor, } } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpBuildPartialFromIdt(IN ULONG Entry, @@ -233,7 +194,7 @@ HalpBuildPartialFromIdt(IN ULONG Entry, TranslatedDescriptor->u.Interrupt.Level = HalpIDTUsage[Entry].Irql; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpBuildPartialFromAddress(IN INTERFACE_TYPE Interface, @@ -301,7 +262,7 @@ HalpBuildPartialFromAddress(IN INTERFACE_TYPE Interface, } } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpReportResourceUsage(IN PUNICODE_STRING HalName, @@ -580,7 +541,7 @@ HalpReportResourceUsage(IN PUNICODE_STRING HalName, } #endif /* !_MINIHAL_ */ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpRegisterVector(IN UCHAR Flags, @@ -597,7 +558,7 @@ HalpRegisterVector(IN UCHAR Flags, } #ifndef _MINIHAL_ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpEnableInterruptHandler(IN UCHAR Flags, @@ -620,7 +581,7 @@ HalpEnableInterruptHandler(IN UCHAR Flags, HalEnableSystemInterrupt(SystemVector, Irql, Mode); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpGetNMICrashFlag(VOID) diff --git a/hal/halx86/include/bus.h b/hal/halx86/include/bus.h index d7af1ea5eee..cfda40f9b34 100644 --- a/hal/halx86/include/bus.h +++ b/hal/halx86/include/bus.h @@ -282,7 +282,6 @@ extern PCI_CONFIG_HANDLER PCIConfigHandler; extern PCI_CONFIG_HANDLER PCIConfigHandlerType1; extern PCI_CONFIG_HANDLER PCIConfigHandlerType2; -INIT_FUNCTION PPCI_REGISTRY_INFO_INTERNAL NTAPI HalpQueryPciRegistryInfo( @@ -426,14 +425,12 @@ HalpSetCmosData( IN ULONG Length ); -INIT_FUNCTION VOID NTAPI HalpInitializePciBus( VOID ); -INIT_FUNCTION VOID NTAPI HalpInitializePciStubs( @@ -473,7 +470,6 @@ HalpFindBusAddressTranslation( IN BOOLEAN NextBus ); -INIT_FUNCTION VOID NTAPI HalpRegisterPciDebuggingDeviceInfo( diff --git a/hal/halx86/include/halacpi.h b/hal/halx86/include/halacpi.h index a4a68f6793e..8f51fdf3693 100644 --- a/hal/halx86/include/halacpi.h +++ b/hal/halx86/include/halacpi.h @@ -24,7 +24,6 @@ HalpAcpiGetTable( IN ULONG Signature ); -INIT_FUNCTION NTSTATUS NTAPI HalpSetupAcpiPhase0( diff --git a/hal/halx86/include/halp.h b/hal/halx86/include/halp.h index 1ab78747e73..a93d4e517a9 100644 --- a/hal/halx86/include/halp.h +++ b/hal/halx86/include/halp.h @@ -189,7 +189,6 @@ typedef struct _HalAddressUsage PADAPTER_OBJECT NTAPI HalpAllocateAdapterEx(ULONG NumberOfMapRegisters,BOOLEAN IsMaster, BOOLEAN Dma32BitAddresses); /* sysinfo.c */ -INIT_FUNCTION VOID NTAPI HalpRegisterVector(IN UCHAR Flags, @@ -197,7 +196,6 @@ HalpRegisterVector(IN UCHAR Flags, IN ULONG SystemVector, IN KIRQL Irql); -INIT_FUNCTION VOID NTAPI HalpEnableInterruptHandler(IN UCHAR Flags, @@ -219,7 +217,7 @@ DECLSPEC_NORETURN VOID FASTCALL HalpDispatchInterrupt2ndEntry(IN PKTRAP_FRAME Tr extern BOOLEAN HalpProfilingStopped; /* timer.c */ -INIT_FUNCTION VOID NTAPI HalpInitializeClock(VOID); +VOID NTAPI HalpInitializeClock(VOID); VOID __cdecl HalpClockInterrupt(VOID); VOID __cdecl HalpProfileInterrupt(VOID); @@ -237,7 +235,7 @@ HalpCalibrateStallExecution(VOID); VOID HalpInitPciBus (VOID); /* dma.c */ -INIT_FUNCTION VOID HalpInitDma (VOID); +VOID HalpInitDma (VOID); /* Non-generic initialization */ VOID HalpInitPhase0 (PLOADER_PARAMETER_BLOCK LoaderBlock); @@ -256,14 +254,12 @@ HalpCheckPowerButton( VOID ); -INIT_FUNCTION VOID NTAPI HalpRegisterKdSupportFunctions( VOID ); -INIT_FUNCTION NTSTATUS NTAPI HalpSetupPciDeviceForDebugging( @@ -271,7 +267,6 @@ HalpSetupPciDeviceForDebugging( IN OUT PDEBUG_DEVICE_DESCRIPTOR PciDevice ); -INIT_FUNCTION NTSTATUS NTAPI HalpReleasePciDeviceForDebugging( @@ -371,7 +366,6 @@ HaliHaltSystem( // // CMOS Routines // -INIT_FUNCTION VOID NTAPI HalpInitializeCmos( @@ -426,42 +420,36 @@ HalpOpenRegistryKey( IN BOOLEAN Create ); -INIT_FUNCTION VOID NTAPI HalpGetNMICrashFlag( VOID ); -INIT_FUNCTION BOOLEAN NTAPI HalpGetDebugPortTable( VOID ); -INIT_FUNCTION VOID NTAPI HalpReportSerialNumber( VOID ); -INIT_FUNCTION NTSTATUS NTAPI HalpMarkAcpiHal( VOID ); -INIT_FUNCTION VOID NTAPI HalpBuildAddressMap( VOID ); -INIT_FUNCTION VOID NTAPI HalpReportResourceUsage( @@ -469,7 +457,6 @@ HalpReportResourceUsage( IN INTERFACE_TYPE InterfaceType ); -INIT_FUNCTION ULONG NTAPI HalpIs16BitPortDecodeSupported( @@ -490,7 +477,6 @@ KeUpdateSystemTime( IN KIRQL OldIrql ); -INIT_FUNCTION VOID NTAPI HalpInitBusHandlers( @@ -503,7 +489,6 @@ HaliInitPnpDriver( VOID ); -INIT_FUNCTION VOID NTAPI HalpDebugPciDumpBus( diff --git a/hal/halx86/legacy/bus/pcibus.c b/hal/halx86/legacy/bus/pcibus.c index ab7ed855cdc..ee5ff34a28c 100644 --- a/hal/halx86/legacy/bus/pcibus.c +++ b/hal/halx86/legacy/bus/pcibus.c @@ -12,14 +12,6 @@ #define NDEBUG #include <debug.h> -#if defined(ALLOC_PRAGMA) && !defined(_MINIHAL_) -#pragma alloc_text(INIT, HalpInitializePciStubs) -#pragma alloc_text(INIT, HalpQueryPciRegistryInfo) -#pragma alloc_text(INIT, HalpRegisterPciDebuggingDeviceInfo) -#pragma alloc_text(INIT, HalpReleasePciDeviceForDebugging) -#pragma alloc_text(INIT, HalpSetupPciDeviceForDebugging) -#endif - /* GLOBALS *******************************************************************/ extern BOOLEAN HalpPciLockSettings; @@ -623,7 +615,7 @@ HalpGetISAFixedPCIIrq(IN PBUS_HANDLER BusHandler, return STATUS_SUCCESS; } -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI HalpSetupPciDeviceForDebugging(IN PVOID LoaderBlock, @@ -633,7 +625,7 @@ HalpSetupPciDeviceForDebugging(IN PVOID LoaderBlock, return STATUS_NOT_IMPLEMENTED; } -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI HalpReleasePciDeviceForDebugging(IN OUT PDEBUG_DEVICE_DESCRIPTOR PciDevice) @@ -642,7 +634,7 @@ HalpReleasePciDeviceForDebugging(IN OUT PDEBUG_DEVICE_DESCRIPTOR PciDevice) return STATUS_NOT_IMPLEMENTED; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpRegisterPciDebuggingDeviceInfo(VOID) @@ -877,7 +869,7 @@ HaliPciInterfaceReadConfig(IN PBUS_HANDLER RootBusHandler, return Length; } -INIT_FUNCTION +CODE_SEG("INIT") PPCI_REGISTRY_INFO_INTERNAL NTAPI HalpQueryPciRegistryInfo(VOID) @@ -1110,7 +1102,7 @@ HalpQueryPciRegistryInfo(VOID) #endif } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpInitializePciStubs(VOID) diff --git a/hal/halx86/legacy/bussupp.c b/hal/halx86/legacy/bussupp.c index 87fe6cbab72..20174bb8b73 100644 --- a/hal/halx86/legacy/bussupp.c +++ b/hal/halx86/legacy/bussupp.c @@ -12,111 +12,6 @@ #define NDEBUG #include <debug.h> -INIT_FUNCTION -PBUS_HANDLER -NTAPI -HalpAllocateAndInitPciBusHandler( - IN ULONG PciType, - IN ULONG BusNo, - IN BOOLEAN TestAllocation -); - -INIT_FUNCTION -VOID -NTAPI -HalpFixupPciSupportedRanges( - IN ULONG BusCount -); - -INIT_FUNCTION -NTSTATUS -NTAPI -HalpGetChipHacks( - IN USHORT VendorId, - IN USHORT DeviceId, - IN UCHAR RevisionId, - IN PULONG HackFlags -); - -INIT_FUNCTION -BOOLEAN -NTAPI -HalpGetPciBridgeConfig( - IN ULONG PciType, - IN PUCHAR BusCount -); - -INIT_FUNCTION -BOOLEAN -NTAPI -HalpIsBridgeDevice( - IN PPCI_COMMON_CONFIG PciData -); - -INIT_FUNCTION -BOOLEAN -NTAPI -HalpIsIdeDevice( - IN PPCI_COMMON_CONFIG PciData -); - -INIT_FUNCTION -BOOLEAN -NTAPI -HalpIsRecognizedCard( - IN PPCI_REGISTRY_INFO_INTERNAL PciRegistryInfo, - IN PPCI_COMMON_CONFIG PciData, - IN ULONG Flags -); - -INIT_FUNCTION -BOOLEAN -NTAPI -HalpIsValidPCIDevice( - IN PBUS_HANDLER BusHandler, - IN PCI_SLOT_NUMBER Slot -); - -INIT_FUNCTION -NTSTATUS -NTAPI -HalpMarkChipsetDecode( - IN BOOLEAN OverrideEnable -); - -INIT_FUNCTION -VOID -NTAPI -HalpRegisterInternalBusHandlers( - VOID -); - -INIT_FUNCTION -VOID -NTAPI -ShowSize( - IN ULONG Size -); - - -#if defined(ALLOC_PRAGMA) && !defined(_MINIHAL_) -#pragma alloc_text(INIT, HalpAllocateAndInitPciBusHandler) -#pragma alloc_text(INIT, HalpDebugPciDumpBus) -#pragma alloc_text(INIT, HalpFixupPciSupportedRanges) -#pragma alloc_text(INIT, HalpGetChipHacks) -#pragma alloc_text(INIT, HalpGetPciBridgeConfig) -#pragma alloc_text(INIT, HalpInitBusHandlers) -#pragma alloc_text(INIT, HalpInitializePciBus) -#pragma alloc_text(INIT, HalpIsBridgeDevice) -#pragma alloc_text(INIT, HalpIsIdeDevice) -#pragma alloc_text(INIT, HalpIsRecognizedCard) -#pragma alloc_text(INIT, HalpIsValidPCIDevice) -#pragma alloc_text(INIT, HalpMarkChipsetDecode) -#pragma alloc_text(INIT, HalpRegisterKdSupportFunctions) -#pragma alloc_text(INIT, HalpRegisterInternalBusHandlers) -#pragma alloc_text(INIT, ShowSize) -#endif - /* GLOBALS ********************************************************************/ extern KSPIN_LOCK HalpPCIConfigLock; @@ -171,7 +66,7 @@ HalpAllocateBusHandler(IN INTERFACE_TYPE InterfaceType, return Bus; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpRegisterInternalBusHandlers(VOID) @@ -246,7 +141,7 @@ HalpRegisterInternalBusHandlers(VOID) } #ifndef _MINIHAL_ -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI HalpMarkChipsetDecode(BOOLEAN OverrideEnable) @@ -294,7 +189,7 @@ HalpMarkChipsetDecode(BOOLEAN OverrideEnable) return Status; } -INIT_FUNCTION +CODE_SEG("INIT") PBUS_HANDLER NTAPI HalpAllocateAndInitPciBusHandler(IN ULONG PciType, @@ -379,7 +274,7 @@ HalpAllocateAndInitPciBusHandler(IN ULONG PciType, return Bus; } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI HalpIsValidPCIDevice(IN PBUS_HANDLER BusHandler, @@ -441,7 +336,7 @@ HalpIsValidPCIDevice(IN PBUS_HANDLER BusHandler, static BOOLEAN WarningsGiven[5]; -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI HalpGetChipHacks(IN USHORT VendorId, @@ -505,7 +400,7 @@ HalpGetChipHacks(IN USHORT VendorId, return Status; } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI HalpIsRecognizedCard(IN PPCI_REGISTRY_INFO_INTERNAL PciRegistryInfo, @@ -586,7 +481,7 @@ HalpIsRecognizedCard(IN PPCI_REGISTRY_INFO_INTERNAL PciRegistryInfo, return FALSE; } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI HalpIsIdeDevice(IN PPCI_COMMON_CONFIG PciData) @@ -639,7 +534,7 @@ HalpIsIdeDevice(IN PPCI_COMMON_CONFIG PciData) return FALSE; } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI HalpIsBridgeDevice(IN PPCI_COMMON_CONFIG PciData) @@ -653,7 +548,7 @@ HalpIsBridgeDevice(IN PPCI_COMMON_CONFIG PciData) (PciData->SubClass == PCI_SUBCLASS_BR_CARDBUS))); } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI HalpGetPciBridgeConfig(IN ULONG PciType, @@ -706,7 +601,7 @@ HalpGetPciBridgeConfig(IN ULONG PciType, return FALSE; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpFixupPciSupportedRanges(IN ULONG BusCount) @@ -769,7 +664,7 @@ HalpFixupPciSupportedRanges(IN ULONG BusCount) } } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI ShowSize(ULONG x) @@ -801,7 +696,7 @@ ShowSize(ULONG x) */ #include "pci_classes.h" #include "pci_vendors.h" -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpDebugPciDumpBus(IN ULONG i, @@ -986,7 +881,7 @@ HalpDebugPciDumpBus(IN ULONG i, } #endif -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpInitializePciBus(VOID) @@ -1225,7 +1120,7 @@ HalpInitializePciBus(VOID) #endif } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpInitBusHandlers(VOID) @@ -1234,7 +1129,7 @@ HalpInitBusHandlers(VOID) HalpRegisterInternalBusHandlers(); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpRegisterKdSupportFunctions(VOID) diff --git a/hal/halx86/legacy/halpcat.c b/hal/halx86/legacy/halpcat.c index 4b6033e51ee..445b6924201 100644 --- a/hal/halx86/legacy/halpcat.c +++ b/hal/halx86/legacy/halpcat.c @@ -12,15 +12,6 @@ #define NDEBUG #include <debug.h> -#if defined(ALLOC_PRAGMA) && !defined(_MINIHAL_) -//#pragma alloc_text(INIT, HaliInitPnpDriver) -#pragma alloc_text(INIT, HalpBuildAddressMap) -#pragma alloc_text(INIT, HalpGetDebugPortTable) -#pragma alloc_text(INIT, HalpIs16BitPortDecodeSupported) -#pragma alloc_text(INIT, HalpSetupAcpiPhase0) -#pragma alloc_text(INIT, HalReportResourceUsage) -#endif - /* GLOBALS ********************************************************************/ /* This determines the HAL type */ @@ -38,7 +29,7 @@ PWCHAR HalName = L"PC Compatible Eisa/Isa HAL"; /* PRIVATE FUNCTIONS **********************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI HalpSetupAcpiPhase0(IN PLOADER_PARAMETER_BLOCK LoaderBlock) @@ -47,7 +38,7 @@ HalpSetupAcpiPhase0(IN PLOADER_PARAMETER_BLOCK LoaderBlock) return STATUS_NO_SUCH_DEVICE; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpBuildAddressMap(VOID) @@ -59,7 +50,7 @@ HalpBuildAddressMap(VOID) //HalpAddROMRanges(); } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI HalpGetDebugPortTable(VOID) @@ -68,7 +59,7 @@ HalpGetDebugPortTable(VOID) return FALSE; } -INIT_FUNCTION +CODE_SEG("INIT") ULONG NTAPI HalpIs16BitPortDecodeSupported(VOID) @@ -78,7 +69,7 @@ HalpIs16BitPortDecodeSupported(VOID) } #if 0 -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI HaliInitPnpDriver(VOID) @@ -92,7 +83,7 @@ HaliInitPnpDriver(VOID) /* * @implemented */ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalReportResourceUsage(VOID) diff --git a/hal/halx86/pc98/cmos.c b/hal/halx86/pc98/cmos.c index 99dd76135fa..f20e9567c7b 100644 --- a/hal/halx86/pc98/cmos.c +++ b/hal/halx86/pc98/cmos.c @@ -12,10 +12,6 @@ #define NDEBUG #include <debug.h> -#if defined(ALLOC_PRAGMA) && !defined(_MINIHAL_) -#pragma alloc_text(INIT, HalpInitializeCmos) -#endif - /* GLOBALS *******************************************************************/ /* @@ -165,7 +161,7 @@ HalpSetCmosData( return 0; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HalpInitializeCmos(VOID) diff --git a/hal/halx86/pcidata.cmake b/hal/halx86/pcidata.cmake index fe779417d6c..de18293f589 100644 --- a/hal/halx86/pcidata.cmake +++ b/hal/halx86/pcidata.cmake @@ -3,11 +3,11 @@ # add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/pci_classes.c ${CMAKE_CURRENT_BINARY_DIR}/pci_classes.h - COMMAND native-bin2c ${CMAKE_CURRENT_SOURCE_DIR}/legacy/bus/pci_classes.ids ${CMAKE_CURRENT_BINARY_DIR}/pci_classes.c ${CMAKE_CURRENT_BINARY_DIR}/pci_classes.h BINSTR ClassTable INIT_SECTION ${CMAKE_CURRENT_SOURCE_DIR}/include/hal.h - DEPENDS native-bin2c ${CMAKE_CURRENT_SOURCE_DIR}/legacy/bus/pci_classes.ids) + COMMAND native-bin2c ${CMAKE_CURRENT_SOURCE_DIR}/legacy/bus/pci_classes.ids ${CMAKE_CURRENT_BINARY_DIR}/pci_classes.c ${CMAKE_CURRENT_BINARY_DIR}/pci_classes.h BINSTR ClassTable DATA_SEG\(\"INIT\"\) ${CMAKE_CURRENT_SOURCE_DIR}/include/hal.h + DEPENDS native-bin2c ${CMAKE_CURRENT_SOURCE_DIR}/legacy/bus/pci_classes.ids VERBATIM) add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/pci_vendors.c ${CMAKE_CURRENT_BINARY_DIR}/pci_vendors.h - COMMAND native-bin2c ${CMAKE_CURRENT_SOURCE_DIR}/legacy/bus/pci_vendors.ids ${CMAKE_CURRENT_BINARY_DIR}/pci_vendors.c ${CMAKE_CURRENT_BINARY_DIR}/pci_vendors.h BINSTR VendorTable INIT_SECTION ${CMAKE_CURRENT_SOURCE_DIR}/include/hal.h - DEPENDS native-bin2c ${CMAKE_CURRENT_SOURCE_DIR}/legacy/bus/pci_vendors.ids) + COMMAND native-bin2c ${CMAKE_CURRENT_SOURCE_DIR}/legacy/bus/pci_vendors.ids ${CMAKE_CURRENT_BINARY_DIR}/pci_vendors.c ${CMAKE_CURRENT_BINARY_DIR}/pci_vendors.h BINSTR VendorTable DATA_SEG\(\"INIT\"\) ${CMAKE_CURRENT_SOURCE_DIR}/include/hal.h + DEPENDS native-bin2c ${CMAKE_CURRENT_SOURCE_DIR}/legacy/bus/pci_vendors.ids VERBATIM) ##################################### diff --git a/hal/halx86/up/halinit_mini.c b/hal/halx86/up/halinit_mini.c index 505a23a93e3..3f2ebf94025 100644 --- a/hal/halx86/up/halinit_mini.c +++ b/hal/halx86/up/halinit_mini.c @@ -34,7 +34,7 @@ HalpInitPhase1(VOID) { } -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI HalpSetupAcpiPhase0(IN PLOADER_PARAMETER_BLOCK LoaderBlock) diff --git a/ntoskrnl/cache/fssup.c b/ntoskrnl/cache/fssup.c index f608361b587..fa24c83bc84 100644 --- a/ntoskrnl/cache/fssup.c +++ b/ntoskrnl/cache/fssup.c @@ -77,7 +77,7 @@ LIST_ENTRY CcpAllSharedCacheMaps; /* FUNCTIONS ******************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI CcInitializeCacheManager(VOID) @@ -108,7 +108,7 @@ CcInitializeCacheManager(VOID) return TRUE; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI CcPfInitializePrefetcher(VOID) diff --git a/ntoskrnl/cache/newcc.h b/ntoskrnl/cache/newcc.h index a668c523282..adbf1c5d926 100644 --- a/ntoskrnl/cache/newcc.h +++ b/ntoskrnl/cache/newcc.h @@ -38,7 +38,6 @@ typedef struct _NOCC_CACHE_MAP ULONG ReadAheadGranularity; } NOCC_CACHE_MAP, *PNOCC_CACHE_MAP; -INIT_FUNCTION VOID NTAPI CcPfInitializePrefetcher(VOID); @@ -54,7 +53,6 @@ CcMdlWriteComplete2(IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN PMDL MdlChain); -INIT_FUNCTION VOID NTAPI CcInitView(VOID); @@ -64,7 +62,6 @@ NTAPI CcpUnpinData(PNOCC_BCB Bcb, BOOLEAN ActuallyRelease); -INIT_FUNCTION BOOLEAN NTAPI CcInitializeCacheManager(VOID); diff --git a/ntoskrnl/cache/section/io.c b/ntoskrnl/cache/section/io.c index 605363e4b5b..20454abb905 100644 --- a/ntoskrnl/cache/section/io.c +++ b/ntoskrnl/cache/section/io.c @@ -50,11 +50,6 @@ #include <debug.h> #include <reactos/exeformat.h> -#if defined (ALLOC_PRAGMA) -#pragma alloc_text(INIT, MmCreatePhysicalMemorySection) -#pragma alloc_text(INIT, MmInitSectionImplementation) -#endif - KEVENT CcpLazyWriteEvent; PDEVICE_OBJECT diff --git a/ntoskrnl/cc/cacheman.c b/ntoskrnl/cc/cacheman.c index 9c7bf43298f..6086360db25 100644 --- a/ntoskrnl/cc/cacheman.c +++ b/ntoskrnl/cc/cacheman.c @@ -22,7 +22,7 @@ static ULONG BugCheckFileId = 0x4 << 16; /* FUNCTIONS *****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI CcPfInitializePrefetcher(VOID) @@ -40,7 +40,7 @@ CcPfInitializePrefetcher(VOID) /* FIXME: Setup the rest of the prefetecher */ } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI CcInitializeCacheManager(VOID) diff --git a/ntoskrnl/cc/view.c b/ntoskrnl/cc/view.c index fde2bbc926a..42e9d244edd 100644 --- a/ntoskrnl/cc/view.c +++ b/ntoskrnl/cc/view.c @@ -36,10 +36,6 @@ #define NDEBUG #include <debug.h> -#if defined (ALLOC_PRAGMA) -#pragma alloc_text(INIT, CcInitView) -#endif - /* GLOBALS *******************************************************************/ LIST_ENTRY DirtyVacbListHead; @@ -1529,7 +1525,7 @@ CcGetFileObjectFromSectionPtrs ( return NULL; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI CcInitView ( diff --git a/ntoskrnl/config/cmalloc.c b/ntoskrnl/config/cmalloc.c index 2c2868ea7cb..eda161da97e 100644 --- a/ntoskrnl/config/cmalloc.c +++ b/ntoskrnl/config/cmalloc.c @@ -23,7 +23,7 @@ LIST_ENTRY CmpFreeDelayItemsListHead; /* FUNCTIONS *****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI CmpInitCmPrivateAlloc(VOID) @@ -38,7 +38,7 @@ CmpInitCmPrivateAlloc(VOID) } } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI CmpInitCmPrivateDelayAlloc(VOID) diff --git a/ntoskrnl/config/cmboot.c b/ntoskrnl/config/cmboot.c index f1790284fcf..fc7cbf56fde 100644 --- a/ntoskrnl/config/cmboot.c +++ b/ntoskrnl/config/cmboot.c @@ -19,7 +19,7 @@ extern ULONG InitSafeBootMode; /* FUNCTIONS ******************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") HCELL_INDEX NTAPI CmpFindControlSet(IN PHHIVE SystemHive, @@ -129,7 +129,7 @@ CmpFindControlSet(IN PHHIVE SystemHive, return ControlSetCell; } -INIT_FUNCTION +CODE_SEG("INIT") ULONG NTAPI CmpFindTagIndex(IN PHHIVE Hive, @@ -179,7 +179,7 @@ CmpFindTagIndex(IN PHHIVE Hive, return -2; } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI CmpAddDriverToList(IN PHHIVE Hive, @@ -346,7 +346,7 @@ CmpAddDriverToList(IN PHHIVE Hive, return TRUE; } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI CmpIsLoadType(IN PHHIVE Hive, @@ -377,7 +377,7 @@ CmpIsLoadType(IN PHHIVE Hive, return (*Data == LoadType); } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI CmpFindDrivers(IN PHHIVE Hive, @@ -499,7 +499,7 @@ CmpFindDrivers(IN PHHIVE Hive, return TRUE; } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI CmpDoSort(IN PLIST_ENTRY DriverListHead, @@ -556,7 +556,7 @@ CmpDoSort(IN PLIST_ENTRY DriverListHead, return TRUE; } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI CmpSortDriverList(IN PHHIVE Hive, @@ -605,7 +605,7 @@ CmpSortDriverList(IN PHHIVE Hive, return CmpDoSort(DriverListHead, &DependList); } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI CmpOrderGroup(IN PBOOT_DRIVER_NODE StartNode, @@ -668,7 +668,7 @@ CmpOrderGroup(IN PBOOT_DRIVER_NODE StartNode, return TRUE; } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI CmpResolveDriverDependencies(IN PLIST_ENTRY DriverListHead) @@ -718,7 +718,7 @@ CmpResolveDriverDependencies(IN PLIST_ENTRY DriverListHead) return TRUE; } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI CmpIsSafe(IN PHHIVE Hive, diff --git a/ntoskrnl/config/cmconfig.c b/ntoskrnl/config/cmconfig.c index be46cfeb2cf..42c428f971e 100644 --- a/ntoskrnl/config/cmconfig.c +++ b/ntoskrnl/config/cmconfig.c @@ -14,7 +14,7 @@ /* FUNCTIONS *****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI CmpInitializeRegistryNode(IN PCONFIGURATION_COMPONENT_DATA CurrentEntry, @@ -199,7 +199,7 @@ CmpInitializeRegistryNode(IN PCONFIGURATION_COMPONENT_DATA CurrentEntry, return Status; } -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI CmpSetupConfigurationTree(IN PCONFIGURATION_COMPONENT_DATA CurrentEntry, @@ -322,7 +322,7 @@ CmpSetupConfigurationTree(IN PCONFIGURATION_COMPONENT_DATA CurrentEntry, return STATUS_SUCCESS; } -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI CmpInitializeHardwareConfiguration(IN PLOADER_PARAMETER_BLOCK LoaderBlock) diff --git a/ntoskrnl/config/cmcontrl.c b/ntoskrnl/config/cmcontrl.c index 935d55bf301..fdce4c9ab6d 100644 --- a/ntoskrnl/config/cmcontrl.c +++ b/ntoskrnl/config/cmcontrl.c @@ -16,7 +16,7 @@ /* FUNCTIONS *****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") LANGID NTAPI CmpConvertLangId(IN LPWSTR Name, @@ -67,7 +67,7 @@ CmpConvertLangId(IN LPWSTR Name, return LangId; } -INIT_FUNCTION +CODE_SEG("INIT") HCELL_INDEX NTAPI CmpWalkPath(IN PHHIVE SystemHive, @@ -98,7 +98,7 @@ CmpWalkPath(IN PHHIVE SystemHive, } } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI CmGetSystemControlValues(IN PVOID SystemHiveData, diff --git a/ntoskrnl/config/cmdata.c b/ntoskrnl/config/cmdata.c index 922b7f847d6..eb1c39bf320 100644 --- a/ntoskrnl/config/cmdata.c +++ b/ntoskrnl/config/cmdata.c @@ -65,7 +65,7 @@ ULONG CmpTypeCount[MaximumType + 1]; HANDLE CmpRegistryRootHandle; -INIT_SECTION UNICODE_STRING CmClassName[MaximumClass + 1] = +DATA_SEG("INIT") UNICODE_STRING CmClassName[MaximumClass + 1] = { RTL_CONSTANT_STRING(L"System"), RTL_CONSTANT_STRING(L"Processor"), @@ -77,7 +77,7 @@ INIT_SECTION UNICODE_STRING CmClassName[MaximumClass + 1] = RTL_CONSTANT_STRING(L"Undefined") }; -INIT_SECTION UNICODE_STRING CmTypeName[MaximumType + 1] = +DATA_SEG("INIT") UNICODE_STRING CmTypeName[MaximumType + 1] = { RTL_CONSTANT_STRING(L"System"), RTL_CONSTANT_STRING(L"CentralProcessor"), @@ -123,7 +123,7 @@ INIT_SECTION UNICODE_STRING CmTypeName[MaximumType + 1] = RTL_CONSTANT_STRING(L"Undefined") }; -INIT_SECTION CMP_MF_TYPE CmpMultifunctionTypes[] = +DATA_SEG("INIT") CMP_MF_TYPE CmpMultifunctionTypes[] = { {"ISA", Isa, 0}, {"MCA", MicroChannel, 0}, @@ -136,7 +136,7 @@ INIT_SECTION CMP_MF_TYPE CmpMultifunctionTypes[] = {NULL, Internal, 0} }; -INIT_SECTION CM_SYSTEM_CONTROL_VECTOR CmControlVector[] = +DATA_SEG("INIT") CM_SYSTEM_CONTROL_VECTOR CmControlVector[] = { { L"Session Manager", diff --git a/ntoskrnl/config/cmdelay.c b/ntoskrnl/config/cmdelay.c index 34321eaba3c..4dfad0f6f58 100644 --- a/ntoskrnl/config/cmdelay.c +++ b/ntoskrnl/config/cmdelay.c @@ -185,7 +185,7 @@ CmpDelayCloseWorker(IN PVOID Context) CmpUnlockRegistry(); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI CmpInitializeDelayedCloseTable(VOID) @@ -262,7 +262,7 @@ CmpDelayDerefKCBWorker(IN PVOID Context) CmpUnlockRegistry(); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI CmpInitDelayDerefKCBEngine(VOID) diff --git a/ntoskrnl/config/cmhook.c b/ntoskrnl/config/cmhook.c index 1ba3c5bbbda..c4438d00e75 100644 --- a/ntoskrnl/config/cmhook.c +++ b/ntoskrnl/config/cmhook.c @@ -32,7 +32,7 @@ typedef struct _REGISTRY_CALLBACK /* PRIVATE FUNCTIONS *********************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI CmpInitCallback(VOID) diff --git a/ntoskrnl/config/cmkcbncb.c b/ntoskrnl/config/cmkcbncb.c index d9b0941e129..cb4035f75cc 100644 --- a/ntoskrnl/config/cmkcbncb.c +++ b/ntoskrnl/config/cmkcbncb.c @@ -20,7 +20,7 @@ PCM_NAME_HASH_TABLE_ENTRY CmpNameCacheTable; /* FUNCTIONS *****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI CmpInitializeCache(VOID) diff --git a/ntoskrnl/config/cmsysini.c b/ntoskrnl/config/cmsysini.c index 5eae71f0d31..9b9c37bd27a 100644 --- a/ntoskrnl/config/cmsysini.c +++ b/ntoskrnl/config/cmsysini.c @@ -391,7 +391,7 @@ CmpInitHiveFromFile(IN PCUNICODE_STRING HiveName, return STATUS_SUCCESS; } -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI CmpSetSystemValues(IN PLOADER_PARAMETER_BLOCK LoaderBlock) @@ -447,7 +447,7 @@ Quit: } static -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS CmpCreateHardwareProfile(HANDLE ControlSetHandle) { @@ -518,7 +518,7 @@ done: return Status; } -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI CmpCreateControlSet(IN PLOADER_PARAMETER_BLOCK LoaderBlock) @@ -859,7 +859,7 @@ CmpLinkHiveToMaster(IN PUNICODE_STRING LinkName, return STATUS_SUCCESS; } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI CmpInitializeSystemHive(IN PLOADER_PARAMETER_BLOCK LoaderBlock) @@ -976,7 +976,7 @@ CmpInitializeSystemHive(IN PLOADER_PARAMETER_BLOCK LoaderBlock) return TRUE; } -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI CmpCreateObjectTypes(VOID) @@ -1010,7 +1010,7 @@ CmpCreateObjectTypes(VOID) return ObCreateObjectType(&Name, &ObjectTypeInitializer, NULL, &CmpKeyObjectType); } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI CmpCreateRootNode(IN PHHIVE Hive, @@ -1066,7 +1066,7 @@ CmpCreateRootNode(IN PHHIVE Hive, return TRUE; } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI CmpCreateRegistryRoot(VOID) @@ -1505,7 +1505,7 @@ CmpInitializeHiveList(VOID) CmpNoVolatileCreates = TRUE; } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI CmInitSystem1(VOID) @@ -1721,7 +1721,7 @@ CmInitSystem1(VOID) return TRUE; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI CmpFreeDriverList(IN PHHIVE Hive, @@ -1770,7 +1770,7 @@ CmpFreeDriverList(IN PHHIVE Hive, } } -INIT_FUNCTION +CODE_SEG("INIT") PUNICODE_STRING* NTAPI CmGetSystemDriverList(VOID) diff --git a/ntoskrnl/dbgk/dbgkobj.c b/ntoskrnl/dbgk/dbgkobj.c index d335ad2b8fd..8bc2235faea 100644 --- a/ntoskrnl/dbgk/dbgkobj.c +++ b/ntoskrnl/dbgk/dbgkobj.c @@ -1492,7 +1492,7 @@ DbgkClearProcessDebugObject(IN PEPROCESS Process, return STATUS_SUCCESS; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI DbgkInitialize(VOID) diff --git a/ntoskrnl/ex/callback.c b/ntoskrnl/ex/callback.c index 1d363822e69..59fc2e7135c 100644 --- a/ntoskrnl/ex/callback.c +++ b/ntoskrnl/ex/callback.c @@ -250,7 +250,7 @@ ExpDeleteCallback(IN PVOID Object) * @remarks None * *--*/ -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI ExpInitializeCallbacks(VOID) diff --git a/ntoskrnl/ex/event.c b/ntoskrnl/ex/event.c index e00e49cb9c0..f8ddee00ad4 100644 --- a/ntoskrnl/ex/event.c +++ b/ntoskrnl/ex/event.c @@ -13,10 +13,6 @@ #define NDEBUG #include <debug.h> -#if defined (ALLOC_PRAGMA) -#pragma alloc_text(INIT, ExpInitializeEventImplementation) -#endif - /* GLOBALS *******************************************************************/ POBJECT_TYPE ExEventObjectType = NULL; @@ -37,7 +33,7 @@ static const INFORMATION_CLASS_INFO ExEventInfoClass[] = /* FUNCTIONS *****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI ExpInitializeEventImplementation(VOID) diff --git a/ntoskrnl/ex/evtpair.c b/ntoskrnl/ex/evtpair.c index 114c160eb3a..f4171e35437 100644 --- a/ntoskrnl/ex/evtpair.c +++ b/ntoskrnl/ex/evtpair.c @@ -13,10 +13,6 @@ #define NDEBUG #include <debug.h> -#if defined (ALLOC_PRAGMA) -#pragma alloc_text(INIT, ExpInitializeEventPairImplementation) -#endif - /* GLOBALS *******************************************************************/ POBJECT_TYPE ExEventPairObjectType = NULL; @@ -31,7 +27,7 @@ GENERIC_MAPPING ExEventPairMapping = /* FUNCTIONS *****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI ExpInitializeEventPairImplementation(VOID) diff --git a/ntoskrnl/ex/handle.c b/ntoskrnl/ex/handle.c index 061e51b8882..be4406bc56a 100644 --- a/ntoskrnl/ex/handle.c +++ b/ntoskrnl/ex/handle.c @@ -22,7 +22,7 @@ EX_PUSH_LOCK HandleTableListLock; /* PRIVATE FUNCTIONS *********************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI ExpInitializeHandleTables(VOID) diff --git a/ntoskrnl/ex/hdlsterm.c b/ntoskrnl/ex/hdlsterm.c index 3b8dc13ea6f..b6b68425ebf 100644 --- a/ntoskrnl/ex/hdlsterm.c +++ b/ntoskrnl/ex/hdlsterm.c @@ -183,7 +183,7 @@ HdlspEnableTerminal(IN BOOLEAN Enable) return STATUS_SUCCESS; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI HeadlessInit(IN PLOADER_PARAMETER_BLOCK LoaderBlock) diff --git a/ntoskrnl/ex/init.c b/ntoskrnl/ex/init.c index 537fba3593b..8eb867b09cd 100644 --- a/ntoskrnl/ex/init.c +++ b/ntoskrnl/ex/init.c @@ -19,7 +19,7 @@ RTL_SIZEOF_THROUGH_FIELD(LOADER_PARAMETER_EXTENSION, AcpiTableSize) /* Temporary hack */ -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI MmArmInitSystem( @@ -92,7 +92,7 @@ BOOLEAN ExpRealTimeIsUniversal; /* FUNCTIONS ****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI ExpCreateSystemRootLink(IN PLOADER_PARAMETER_BLOCK LoaderBlock) @@ -204,7 +204,7 @@ ExpCreateSystemRootLink(IN PLOADER_PARAMETER_BLOCK LoaderBlock) return STATUS_SUCCESS; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI ExpInitNls(IN PLOADER_PARAMETER_BLOCK LoaderBlock) @@ -380,7 +380,7 @@ ExpInitNls(IN PLOADER_PARAMETER_BLOCK LoaderBlock) ExpNlsTableBase = SectionBase; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI ExpLoadInitialProcess(IN PINIT_BUFFER InitBuffer, @@ -597,7 +597,7 @@ ExpLoadInitialProcess(IN PINIT_BUFFER InitBuffer, *ProcessEnvironment = EnvironmentPtr; } -INIT_FUNCTION +CODE_SEG("INIT") ULONG NTAPI ExComputeTickCountMultiplier(IN ULONG ClockIncrement) @@ -630,7 +630,7 @@ ExComputeTickCountMultiplier(IN ULONG ClockIncrement) return (MsIncrement << 24) | MsRemainder; } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI ExpInitSystemPhase0(VOID) @@ -653,7 +653,7 @@ ExpInitSystemPhase0(VOID) return TRUE; } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI ExpInitSystemPhase1(VOID) @@ -734,7 +734,7 @@ ExpInitSystemPhase1(VOID) return TRUE; } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI ExInitSystem(VOID) @@ -760,7 +760,7 @@ ExInitSystem(VOID) } } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI ExpIsLoaderValid(IN PLOADER_PARAMETER_BLOCK LoaderBlock) @@ -786,7 +786,7 @@ ExpIsLoaderValid(IN PLOADER_PARAMETER_BLOCK LoaderBlock) return TRUE; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI ExpLoadBootSymbols(IN PLOADER_PARAMETER_BLOCK LoaderBlock) @@ -867,7 +867,7 @@ ExpLoadBootSymbols(IN PLOADER_PARAMETER_BLOCK LoaderBlock) } } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI ExBurnMemory(IN PLOADER_PARAMETER_BLOCK LoaderBlock, @@ -913,7 +913,7 @@ ExBurnMemory(IN PLOADER_PARAMETER_BLOCK LoaderBlock, } } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI ExpInitializeExecutive(IN ULONG Cpu, @@ -1332,7 +1332,7 @@ VOID NTAPI MmFreeLoaderBlock(IN PLOADER_PARAMETER_BLOCK LoaderBlock); -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI Phase1InitializationDiscard(IN PVOID Context) diff --git a/ntoskrnl/ex/keyedevt.c b/ntoskrnl/ex/keyedevt.c index aff93b8fa94..50678b66ebb 100644 --- a/ntoskrnl/ex/keyedevt.c +++ b/ntoskrnl/ex/keyedevt.c @@ -42,7 +42,7 @@ GENERIC_MAPPING ExpKeyedEventMapping = /* FUNCTIONS *****************************************************************/ _IRQL_requires_max_(APC_LEVEL) -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI ExpInitializeKeyedEventImplementation(VOID) diff --git a/ntoskrnl/ex/lookas.c b/ntoskrnl/ex/lookas.c index 376d94baf3a..89cdc49e554 100644 --- a/ntoskrnl/ex/lookas.c +++ b/ntoskrnl/ex/lookas.c @@ -12,10 +12,6 @@ #define NDEBUG #include <debug.h> -#if defined (ALLOC_PRAGMA) -#pragma alloc_text(INIT, ExpInitLookasideLists) -#endif - /* GLOBALS *******************************************************************/ LIST_ENTRY ExpNonPagedLookasideListHead; @@ -29,7 +25,7 @@ GENERAL_LOOKASIDE ExpSmallPagedPoolLookasideLists[MAXIMUM_PROCESSORS]; /* PRIVATE FUNCTIONS *********************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI ExInitializeSystemLookasideList(IN PGENERAL_LOOKASIDE List, @@ -57,7 +53,7 @@ ExInitializeSystemLookasideList(IN PGENERAL_LOOKASIDE List, List->LastAllocateHits = 0; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI ExInitPoolLookasidePointers(VOID) @@ -87,7 +83,7 @@ ExInitPoolLookasidePointers(VOID) } } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI ExpInitLookasideLists(VOID) diff --git a/ntoskrnl/ex/mutant.c b/ntoskrnl/ex/mutant.c index c69d026fe97..de3b1d947a8 100644 --- a/ntoskrnl/ex/mutant.c +++ b/ntoskrnl/ex/mutant.c @@ -13,10 +13,6 @@ #define NDEBUG #include <debug.h> -#if defined (ALLOC_PRAGMA) -#pragma alloc_text(INIT, ExpInitializeMutantImplementation) -#endif - /* DATA **********************************************************************/ POBJECT_TYPE ExMutantObjectType = NULL; @@ -50,7 +46,7 @@ ExpDeleteMutant(PVOID ObjectBody) FALSE); } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI ExpInitializeMutantImplementation(VOID) diff --git a/ntoskrnl/ex/profile.c b/ntoskrnl/ex/profile.c index 54540072460..45c49f2586a 100644 --- a/ntoskrnl/ex/profile.c +++ b/ntoskrnl/ex/profile.c @@ -13,10 +13,6 @@ #define NDEBUG #include <debug.h> -#if defined (ALLOC_PRAGMA) -#pragma alloc_text(INIT, ExpInitializeProfileImplementation) -#endif - #define TAG_PROFILE 'forP' /* GLOBALS *******************************************************************/ @@ -62,7 +58,7 @@ ExpDeleteProfile(PVOID ObjectBody) if (Profile->Process) ObDereferenceObject(Profile->Process); } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI ExpInitializeProfileImplementation(VOID) diff --git a/ntoskrnl/ex/pushlock.c b/ntoskrnl/ex/pushlock.c index 855231393a6..34deacc9c5c 100644 --- a/ntoskrnl/ex/pushlock.c +++ b/ntoskrnl/ex/pushlock.c @@ -39,7 +39,7 @@ ULONG ExPushLockSpinCount = 0; * @remarks The ExpInitializePushLocks routine sets up the spin on SMP machines. * *--*/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI ExpInitializePushLocks(VOID) diff --git a/ntoskrnl/ex/resource.c b/ntoskrnl/ex/resource.c index 192f8702e30..d64de3b28d4 100644 --- a/ntoskrnl/ex/resource.c +++ b/ntoskrnl/ex/resource.c @@ -163,7 +163,7 @@ ExpCheckForApcsDisabled(IN KIRQL Irql, * @remarks This routine should only be called once, during system startup. * *--*/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI ExpResourceInitialization(VOID) diff --git a/ntoskrnl/ex/sem.c b/ntoskrnl/ex/sem.c index 13db388013f..937bc614f3c 100644 --- a/ntoskrnl/ex/sem.c +++ b/ntoskrnl/ex/sem.c @@ -13,10 +13,6 @@ #define NDEBUG #include <debug.h> -#if defined (ALLOC_PRAGMA) -#pragma alloc_text(INIT, ExpInitializeSemaphoreImplementation) -#endif - /* GLOBALS ******************************************************************/ POBJECT_TYPE ExSemaphoreObjectType; @@ -37,7 +33,7 @@ static const INFORMATION_CLASS_INFO ExSemaphoreInfoClass[] = /* FUNCTIONS *****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI ExpInitializeSemaphoreImplementation(VOID) diff --git a/ntoskrnl/ex/timer.c b/ntoskrnl/ex/timer.c index a10ee751225..b982b2f71ea 100644 --- a/ntoskrnl/ex/timer.c +++ b/ntoskrnl/ex/timer.c @@ -217,7 +217,7 @@ ExpTimerApcKernelRoutine(IN PKAPC Apc, ObDereferenceObjectEx(Timer, DerefsToDo); } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI ExpInitializeTimerImplementation(VOID) diff --git a/ntoskrnl/ex/uuid.c b/ntoskrnl/ex/uuid.c index b69200b1a86..b196d6e9833 100644 --- a/ntoskrnl/ex/uuid.c +++ b/ntoskrnl/ex/uuid.c @@ -29,12 +29,6 @@ /* 10000 in 100-ns model = 0.1 microsecond */ #define TIME_FRAME 10000 -#if defined (ALLOC_PRAGMA) -#pragma alloc_text(INIT, ExpUuidInitialization) -#pragma alloc_text(INIT, ExLuidInitialization) -#endif - - /* GLOBALS ****************************************************************/ FAST_MUTEX ExpUuidLock; @@ -52,7 +46,7 @@ LARGE_INTEGER ExpLuid = {{0x3e9, 0x0}}; /* * @implemented */ -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI ExpUuidInitialization(VOID) @@ -324,7 +318,7 @@ ExpUuidGetValues(PUUID_CACHED_VALUES_STRUCT CachedValues) /* * @implemented */ -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI ExLuidInitialization(VOID) diff --git a/ntoskrnl/ex/win32k.c b/ntoskrnl/ex/win32k.c index 5e3b02c9035..7f34cdf3125 100644 --- a/ntoskrnl/ex/win32k.c +++ b/ntoskrnl/ex/win32k.c @@ -10,10 +10,6 @@ #define NDEBUG #include <debug.h> -#if defined (ALLOC_PRAGMA) -#pragma alloc_text(INIT, ExpWin32kInit) -#endif - typedef struct _WIN32_KERNEL_OBJECT_HEADER { ULONG SessionId; @@ -257,7 +253,7 @@ ExpDesktopClose(IN PEPROCESS Process OPTIONAL, &Parameters); } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI ExpWin32kInit(VOID) diff --git a/ntoskrnl/ex/work.c b/ntoskrnl/ex/work.c index 4196162c1f1..3884eb0b952 100644 --- a/ntoskrnl/ex/work.c +++ b/ntoskrnl/ex/work.c @@ -12,10 +12,6 @@ #define NDEBUG #include <debug.h> -#if defined (ALLOC_PRAGMA) -#pragma alloc_text(INIT, ExpInitializeWorkerThreads) -#endif - /* DATA **********************************************************************/ /* Number of worker threads for each Queue */ @@ -515,7 +511,7 @@ ExpWorkerThreadBalanceManager(IN PVOID Context) * @remarks This routine is only called once during system initialization. * *--*/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI ExpInitializeWorkerThreads(VOID) diff --git a/ntoskrnl/ex/xipdisp.c b/ntoskrnl/ex/xipdisp.c index 669a706f77b..fec7600c654 100644 --- a/ntoskrnl/ex/xipdisp.c +++ b/ntoskrnl/ex/xipdisp.c @@ -25,7 +25,7 @@ XIPDispatch(IN ULONG DispatchCode, return STATUS_NOT_IMPLEMENTED; } -INIT_FUNCTION +CODE_SEG("INIT") PMEMORY_ALLOCATION_DESCRIPTOR NTAPI XIPpFindMemoryDescriptor(IN PLOADER_PARAMETER_BLOCK LoaderBlock) @@ -49,7 +49,7 @@ XIPpFindMemoryDescriptor(IN PLOADER_PARAMETER_BLOCK LoaderBlock) return NULL; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI XIPInit(IN PLOADER_PARAMETER_BLOCK LoaderBlock) diff --git a/ntoskrnl/fsrtl/fsrtlpc.c b/ntoskrnl/fsrtl/fsrtlpc.c index 30d0b46d837..8857bf29b68 100644 --- a/ntoskrnl/fsrtl/fsrtlpc.c +++ b/ntoskrnl/fsrtl/fsrtlpc.c @@ -16,7 +16,7 @@ PERESOURCE FsRtlPagingIoResources; ULONG FsRtlPagingIoResourceSelector; -INIT_FUNCTION NTSTATUS NTAPI FsRtlInitializeWorkerThread(VOID); +CODE_SEG("INIT") NTSTATUS NTAPI FsRtlInitializeWorkerThread(VOID); extern KSEMAPHORE FsRtlpUncSemaphore; static const UCHAR LegalAnsiCharacterArray[] = @@ -155,7 +155,7 @@ const UCHAR * const FsRtlLegalAnsiCharacterArray = LegalAnsiCharacterArray; /* PRIVATE FUNCTIONS *********************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI FsRtlInitSystem(VOID) diff --git a/ntoskrnl/fsrtl/largemcb.c b/ntoskrnl/fsrtl/largemcb.c index a70584b6663..0ce7949e5ff 100644 --- a/ntoskrnl/fsrtl/largemcb.c +++ b/ntoskrnl/fsrtl/largemcb.c @@ -472,7 +472,7 @@ FsRtlInitializeLargeMcb(IN PLARGE_MCB Mcb, /* * @implemented */ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI FsRtlInitializeLargeMcbs(VOID) diff --git a/ntoskrnl/fsrtl/stackovf.c b/ntoskrnl/fsrtl/stackovf.c index 7462b83a733..5975628c2b5 100644 --- a/ntoskrnl/fsrtl/stackovf.c +++ b/ntoskrnl/fsrtl/stackovf.c @@ -144,7 +144,7 @@ FsRtlWorkerThread(IN PVOID StartContext) /* * @implemented */ -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI FsRtlInitializeWorkerThread(VOID) diff --git a/ntoskrnl/fsrtl/tunnel.c b/ntoskrnl/fsrtl/tunnel.c index 545cf2f2144..7f40f466192 100644 --- a/ntoskrnl/fsrtl/tunnel.c +++ b/ntoskrnl/fsrtl/tunnel.c @@ -129,7 +129,7 @@ FsRtlPruneTunnelCache( } } -INIT_FUNCTION +CODE_SEG("INIT") VOID FsRtlGetTunnelParameterValue( IN PUNICODE_STRING ParameterName, @@ -193,7 +193,7 @@ FsRtlGetTunnelParameterValue( ZwClose(hKey); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI FsRtlInitializeTunnels(VOID) diff --git a/ntoskrnl/inbv/inbv.c b/ntoskrnl/inbv/inbv.c index 6757f71b3bc..ae7ca62f6f8 100644 --- a/ntoskrnl/inbv/inbv.c +++ b/ntoskrnl/inbv/inbv.c @@ -347,7 +347,7 @@ BitBltAligned( /* FUNCTIONS *****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") PVOID NTAPI FindBitmapResource(IN PLOADER_PARAMETER_BLOCK LoaderBlock, @@ -412,7 +412,7 @@ FindBitmapResource(IN PLOADER_PARAMETER_BLOCK LoaderBlock, return Data; } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI InbvDriverInitialize(IN PLOADER_PARAMETER_BLOCK LoaderBlock, @@ -756,7 +756,7 @@ InbvSolidColorFill(IN ULONG Left, } } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI InbvUpdateProgressBar(IN ULONG Progress) @@ -844,7 +844,7 @@ InbvScreenToBufferBlt(OUT PUCHAR Buffer, } } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI InbvSetProgressBarCoordinates(IN ULONG Left, @@ -862,7 +862,7 @@ InbvSetProgressBarCoordinates(IN ULONG Left, ShowProgressBar = TRUE; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI InbvSetProgressBarSubset(IN ULONG Floor, @@ -878,7 +878,7 @@ InbvSetProgressBarSubset(IN ULONG Floor, InbvProgressState.Bias = (Ceiling * 100) - Floor; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI InbvIndicateProgress(VOID) @@ -1070,7 +1070,7 @@ InbvRotationThread( PsTerminateSystemThread(STATUS_SUCCESS); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI InbvRotBarInit(VOID) @@ -1080,7 +1080,7 @@ InbvRotBarInit(VOID) } #endif -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI DisplayBootBitmap(IN BOOLEAN TextMode) @@ -1364,7 +1364,7 @@ DisplayBootBitmap(IN BOOLEAN TextMode) #endif } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI DisplayFilter(PCHAR *String) @@ -1388,7 +1388,7 @@ DisplayFilter(PCHAR *String) } } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI FinalizeBootLogo(VOID) diff --git a/ntoskrnl/include/internal/amd64/mm.h b/ntoskrnl/include/internal/amd64/mm.h index f6c96bdc7e9..1afab8fd17b 100644 --- a/ntoskrnl/include/internal/amd64/mm.h +++ b/ntoskrnl/include/internal/amd64/mm.h @@ -295,7 +295,6 @@ MI_IS_MAPPED_PTE(PMMPTE PointerPte) (PointerPte->u.Hard.PageFrameNumber != 0)); } -INIT_FUNCTION FORCEINLINE VOID MmInitGlobalKernelPageDirectory(VOID) diff --git a/ntoskrnl/include/internal/cc.h b/ntoskrnl/include/internal/cc.h index 11bf97c2707..18c0b9effa2 100644 --- a/ntoskrnl/include/internal/cc.h +++ b/ntoskrnl/include/internal/cc.h @@ -286,7 +286,6 @@ extern LAZY_WRITER LazyWriter; #define NODE_TYPE_PRIVATE_MAP 0x02FE #define NODE_TYPE_SHARED_MAP 0x02FF -INIT_FUNCTION VOID NTAPI CcPfInitializePrefetcher( @@ -323,7 +322,6 @@ CcRosGetVacb( PROS_VACB *Vacb ); -INIT_FUNCTION VOID NTAPI CcInitView(VOID); @@ -340,7 +338,6 @@ NTSTATUS NTAPI CcWriteVirtualAddress(PROS_VACB Vacb); -INIT_FUNCTION BOOLEAN NTAPI CcInitializeCacheManager(VOID); diff --git a/ntoskrnl/include/internal/cm.h b/ntoskrnl/include/internal/cm.h index 19f70265585..62d31b38544 100644 --- a/ntoskrnl/include/internal/cm.h +++ b/ntoskrnl/include/internal/cm.h @@ -695,7 +695,6 @@ CmpFlushNotify( IN BOOLEAN LockHeld ); -INIT_FUNCTION VOID NTAPI CmpInitCallback( @@ -705,28 +704,24 @@ CmpInitCallback( // // KCB Cache/Delay Routines // -INIT_FUNCTION VOID NTAPI CmpInitializeCache( VOID ); -INIT_FUNCTION VOID NTAPI CmpInitCmPrivateDelayAlloc( VOID ); -INIT_FUNCTION VOID NTAPI CmpInitCmPrivateAlloc( VOID ); -INIT_FUNCTION VOID NTAPI CmpInitDelayDerefKCBEngine( @@ -969,7 +964,6 @@ VOID NTAPI CmpRemoveFromDelayedClose(IN PCM_KEY_CONTROL_BLOCK Kcb); -INIT_FUNCTION VOID NTAPI CmpInitializeDelayedCloseTable( @@ -1168,7 +1162,6 @@ CmpCreateLinkNode( // // Boot Routines // -INIT_FUNCTION HCELL_INDEX NTAPI CmpFindControlSet( @@ -1178,7 +1171,6 @@ CmpFindControlSet( OUT PBOOLEAN AutoSelect ); -INIT_FUNCTION VOID NTAPI CmGetSystemControlValues( @@ -1195,7 +1187,6 @@ CmpSaveBootControlSet( // // Hardware Configuration Routines // -INIT_FUNCTION NTSTATUS NTAPI CmpInitializeRegistryNode( @@ -1213,7 +1204,6 @@ CmpInitializeMachineDependentConfiguration( IN PLOADER_PARAMETER_BLOCK LoaderBlock ); -INIT_FUNCTION NTSTATUS NTAPI CmpInitializeHardwareConfiguration( @@ -1418,7 +1408,6 @@ CmSaveMergedKeys( // // Startup and Shutdown // -INIT_FUNCTION BOOLEAN NTAPI CmInitSystem1( @@ -1446,14 +1435,12 @@ CmpSetVersionData( // // Driver List Routines // -INIT_FUNCTION PUNICODE_STRING* NTAPI CmGetSystemDriverList( VOID ); -INIT_FUNCTION BOOLEAN NTAPI CmpFindDrivers( @@ -1464,7 +1451,6 @@ CmpFindDrivers( IN PLIST_ENTRY DriverListHead ); -INIT_FUNCTION BOOLEAN NTAPI CmpSortDriverList( @@ -1473,14 +1459,12 @@ CmpSortDriverList( IN PLIST_ENTRY DriverListHead ); -INIT_FUNCTION BOOLEAN NTAPI CmpResolveDriverDependencies( IN PLIST_ENTRY DriverListHead ); -INIT_FUNCTION BOOLEAN NTAPI CmpIsSafe( diff --git a/ntoskrnl/include/internal/dbgk.h b/ntoskrnl/include/internal/dbgk.h index ef49aebbc53..96cbb1f309b 100644 --- a/ntoskrnl/include/internal/dbgk.h +++ b/ntoskrnl/include/internal/dbgk.h @@ -46,7 +46,6 @@ #define DBGKTRACE(x, fmt, ...) DPRINT(fmt, ##__VA_ARGS__) #endif -INIT_FUNCTION VOID NTAPI DbgkInitialize( diff --git a/ntoskrnl/include/internal/ex.h b/ntoskrnl/include/internal/ex.h index 0690b7b9801..5ec4a8434f5 100644 --- a/ntoskrnl/include/internal/ex.h +++ b/ntoskrnl/include/internal/ex.h @@ -185,7 +185,6 @@ typedef struct _UUID_CACHED_VALUES_STRUCT /* INITIALIZATION FUNCTIONS *************************************************/ -INIT_FUNCTION BOOLEAN NTAPI ExpWin32kInit(VOID); @@ -200,7 +199,6 @@ Phase1Initialization( IN PVOID Context ); -INIT_FUNCTION VOID NTAPI ExpInitializePushLocks(VOID); @@ -211,7 +209,6 @@ ExRefreshTimeZoneInformation( IN PLARGE_INTEGER SystemBootTime ); -INIT_FUNCTION VOID NTAPI ExpInitializeWorkerThreads(VOID); @@ -220,12 +217,10 @@ VOID NTAPI ExSwapinWorkerThreads(IN BOOLEAN AllowSwap); -INIT_FUNCTION VOID NTAPI ExpInitLookasideLists(VOID); -INIT_FUNCTION VOID NTAPI ExInitializeSystemLookasideList( @@ -237,22 +232,18 @@ ExInitializeSystemLookasideList( IN PLIST_ENTRY ListHead ); -INIT_FUNCTION BOOLEAN NTAPI ExpInitializeCallbacks(VOID); -INIT_FUNCTION BOOLEAN NTAPI ExpUuidInitialization(VOID); -INIT_FUNCTION BOOLEAN NTAPI ExLuidInitialization(VOID); -INIT_FUNCTION VOID NTAPI ExpInitializeExecutive( @@ -264,47 +255,38 @@ VOID NTAPI ExShutdownSystem(VOID); -INIT_FUNCTION BOOLEAN NTAPI ExpInitializeEventImplementation(VOID); -INIT_FUNCTION BOOLEAN NTAPI ExpInitializeKeyedEventImplementation(VOID); -INIT_FUNCTION BOOLEAN NTAPI ExpInitializeEventPairImplementation(VOID); -INIT_FUNCTION BOOLEAN NTAPI ExpInitializeSemaphoreImplementation(VOID); -INIT_FUNCTION BOOLEAN NTAPI ExpInitializeMutantImplementation(VOID); -INIT_FUNCTION BOOLEAN NTAPI ExpInitializeTimerImplementation(VOID); -INIT_FUNCTION BOOLEAN NTAPI ExpInitializeProfileImplementation(VOID); -INIT_FUNCTION VOID NTAPI ExpResourceInitialization(VOID); -INIT_FUNCTION VOID NTAPI ExInitPoolLookasidePointers(VOID); @@ -444,7 +426,6 @@ typedef BOOLEAN ULONG_PTR Context ); -INIT_FUNCTION VOID NTAPI ExpInitializeHandleTables( @@ -1500,14 +1481,12 @@ ExTimerRundown( VOID ); -INIT_FUNCTION VOID NTAPI HeadlessInit( IN PLOADER_PARAMETER_BLOCK LoaderBlock ); -INIT_FUNCTION VOID NTAPI XIPInit( diff --git a/ntoskrnl/include/internal/fsrtl.h b/ntoskrnl/include/internal/fsrtl.h index 67464d4abb2..6e65bd78886 100644 --- a/ntoskrnl/include/internal/fsrtl.h +++ b/ntoskrnl/include/internal/fsrtl.h @@ -108,14 +108,12 @@ typedef struct _INT_MAPPING // // Initialization Routines // -INIT_FUNCTION VOID NTAPI FsRtlInitializeLargeMcbs( VOID ); -INIT_FUNCTION VOID NTAPI FsRtlInitializeTunnels( @@ -131,7 +129,6 @@ FsRtlPTeardownPerFileObjectContexts( IN PFILE_OBJECT FileObject ); -INIT_FUNCTION BOOLEAN NTAPI FsRtlInitSystem( diff --git a/ntoskrnl/include/internal/i386/ke.h b/ntoskrnl/include/internal/i386/ke.h index 7ce491e2915..5a41246212f 100644 --- a/ntoskrnl/include/internal/i386/ke.h +++ b/ntoskrnl/include/internal/i386/ke.h @@ -321,7 +321,6 @@ KiSetTebBase(PKPCR Pcr, PVOID TebAddress) Ke386SetGdtEntryBase(&Pcr->GDT[KGDT_R3_TEB / sizeof(KGDTENTRY)], TebAddress); } -INIT_FUNCTION VOID FASTCALL Ki386InitializeTss( @@ -330,36 +329,30 @@ Ki386InitializeTss( IN PKGDTENTRY Gdt ); -INIT_FUNCTION VOID NTAPI KiSetCR0Bits(VOID); -INIT_FUNCTION VOID NTAPI KiGetCacheInformation(VOID); -INIT_FUNCTION BOOLEAN NTAPI KiIsNpxPresent( VOID ); -INIT_FUNCTION BOOLEAN NTAPI KiIsNpxErrataPresent( VOID ); -INIT_FUNCTION VOID NTAPI KiSetProcessorType(VOID); -INIT_FUNCTION ULONG NTAPI KiGetFeatureBits(VOID); @@ -394,21 +387,18 @@ Ki386SetupAndExitToV86Mode( OUT PTEB VdmTeb ); -INIT_FUNCTION VOID NTAPI KeI386VdmInitialize( VOID ); -INIT_FUNCTION ULONG_PTR NTAPI Ki386EnableGlobalPage( IN ULONG_PTR Context ); -INIT_FUNCTION ULONG_PTR NTAPI Ki386EnableTargetLargePage( @@ -436,56 +426,48 @@ Ki386EnableCurrentLargePage( IN ULONG Cr3 ); -INIT_FUNCTION VOID NTAPI KiI386PentiumLockErrataFixup( VOID ); -INIT_FUNCTION VOID NTAPI KiInitializePAT( VOID ); -INIT_FUNCTION VOID NTAPI KiInitializeMTRR( IN BOOLEAN FinalCpu ); -INIT_FUNCTION VOID NTAPI KiAmdK6InitializeMTRR( VOID ); -INIT_FUNCTION VOID NTAPI KiRestoreFastSyscallReturnState( VOID ); -INIT_FUNCTION ULONG_PTR NTAPI Ki386EnableDE( IN ULONG_PTR Context ); -INIT_FUNCTION ULONG_PTR NTAPI Ki386EnableFxsr( IN ULONG_PTR Context ); -INIT_FUNCTION ULONG_PTR NTAPI Ki386EnableXMMIExceptions( @@ -809,12 +791,11 @@ KiCheckForApcDelivery(IN PKTRAP_FRAME TrapFrame) // // Switches from boot loader to initial kernel stack // -INIT_FUNCTION FORCEINLINE VOID KiSwitchToBootStack(IN ULONG_PTR InitialStack) { - INIT_FUNCTION VOID NTAPI KiSystemStartupBootStack(VOID); + VOID NTAPI KiSystemStartupBootStack(VOID); /* We have to switch to a new stack before continuing kernel initialization */ #ifdef __GNUC__ diff --git a/ntoskrnl/include/internal/inbv.h b/ntoskrnl/include/internal/inbv.h index 148c112d367..204a2aa8023 100644 --- a/ntoskrnl/include/internal/inbv.h +++ b/ntoskrnl/include/internal/inbv.h @@ -6,7 +6,6 @@ // // Driver Initialization // -INIT_FUNCTION BOOLEAN NTAPI InbvDriverInitialize( @@ -33,14 +32,12 @@ InbvBitBlt( // // Progress-Bar Functions // -INIT_FUNCTION VOID NTAPI InbvIndicateProgress( VOID ); -INIT_FUNCTION VOID NTAPI InbvSetProgressBarSubset( @@ -48,7 +45,6 @@ InbvSetProgressBarSubset( _In_ ULONG Ceiling ); -INIT_FUNCTION VOID NTAPI InbvUpdateProgressBar( @@ -58,28 +54,24 @@ InbvUpdateProgressBar( // // Boot Splash-Screen Functions // -INIT_FUNCTION VOID NTAPI InbvRotBarInit( VOID ); -INIT_FUNCTION VOID NTAPI DisplayBootBitmap( IN BOOLEAN TextMode ); -INIT_FUNCTION VOID NTAPI DisplayFilter( IN PCHAR *String ); -INIT_FUNCTION VOID NTAPI FinalizeBootLogo( diff --git a/ntoskrnl/include/internal/io.h b/ntoskrnl/include/internal/io.h index 73f862c003d..d0e0bb5e94e 100644 --- a/ntoskrnl/include/internal/io.h +++ b/ntoskrnl/include/internal/io.h @@ -587,7 +587,6 @@ PipCallDriverAddDevice( IN PDRIVER_OBJECT DriverObject ); -INIT_FUNCTION NTSTATUS NTAPI IopInitializePlugPlayServices( @@ -698,7 +697,6 @@ IoDestroyDriverList( VOID ); -INIT_FUNCTION NTSTATUS IopInitPlugPlayEvents(VOID); @@ -754,14 +752,12 @@ IopCreateDeviceKeyPath( // // PnP Routines // -INIT_FUNCTION NTSTATUS NTAPI IopUpdateRootKey( VOID ); -INIT_FUNCTION NTSTATUS NTAPI PiInitCacheGroupInformation( @@ -799,14 +795,12 @@ PnpRegSzToString( // // Initialization Routines // -INIT_FUNCTION NTSTATUS NTAPI IopCreateArcNames( IN PLOADER_PARAMETER_BLOCK LoaderBlock ); -INIT_FUNCTION NTSTATUS NTAPI IopReassignSystemRoot( @@ -814,7 +808,6 @@ IopReassignSystemRoot( OUT PANSI_STRING NtBootPath ); -INIT_FUNCTION BOOLEAN NTAPI IoInitSystem( @@ -1011,13 +1004,11 @@ IopShutdownBaseFileSystems( // // Boot logging support // -INIT_FUNCTION VOID IopInitBootLog( IN BOOLEAN StartBootLog ); -INIT_FUNCTION VOID IopStartBootLog( VOID @@ -1089,7 +1080,6 @@ RawFsIsRawFileSystemDeviceObject( IN PDEVICE_OBJECT DeviceObject ); -INIT_FUNCTION NTSTATUS NTAPI RawFsDriverEntry( @@ -1122,14 +1112,12 @@ PnpRootRegisterDevice( // // Driver Routines // -INIT_FUNCTION VOID FASTCALL IopInitializeBootDrivers( VOID ); -INIT_FUNCTION VOID FASTCALL IopInitializeSystemDrivers( @@ -1386,7 +1374,6 @@ IoSetIoCompletion( // // Ramdisk Routines // -INIT_FUNCTION NTSTATUS NTAPI IopStartRamdisk( diff --git a/ntoskrnl/include/internal/ke.h b/ntoskrnl/include/internal/ke.h index 1abde8fff67..7bdd97fd8ee 100644 --- a/ntoskrnl/include/internal/ke.h +++ b/ntoskrnl/include/internal/ke.h @@ -724,12 +724,10 @@ KeQueryValuesProcess(IN PKPROCESS Process, /* INITIALIZATION FUNCTIONS *************************************************/ -INIT_FUNCTION BOOLEAN NTAPI KeInitSystem(VOID); -INIT_FUNCTION VOID NTAPI KeInitExceptions(VOID); @@ -738,12 +736,10 @@ VOID NTAPI KeInitInterrupts(VOID); -INIT_FUNCTION VOID NTAPI KiInitializeBugCheck(VOID); -INIT_FUNCTION VOID NTAPI KiSystemStartup( @@ -904,7 +900,6 @@ KiChainedDispatch( IN PKINTERRUPT Interrupt ); -INIT_FUNCTION VOID NTAPI KiInitializeMachineType( @@ -922,7 +917,6 @@ KiSetupStackAndInitializeKernel( IN PLOADER_PARAMETER_BLOCK LoaderBlock ); -INIT_FUNCTION VOID NTAPI KiInitSpinLocks( @@ -930,7 +924,6 @@ KiInitSpinLocks( IN CCHAR Number ); -INIT_FUNCTION LARGE_INTEGER NTAPI KiComputeReciprocal( @@ -938,7 +931,6 @@ KiComputeReciprocal( OUT PUCHAR Shift ); -INIT_FUNCTION VOID NTAPI KiInitSystem( @@ -967,7 +959,6 @@ KiCallbackReturn( IN NTSTATUS Status ); -INIT_FUNCTION VOID NTAPI KiInitMachineDependent(VOID); diff --git a/ntoskrnl/include/internal/lpc.h b/ntoskrnl/include/internal/lpc.h index 667309ebdde..e862a4f2476 100644 --- a/ntoskrnl/include/internal/lpc.h +++ b/ntoskrnl/include/internal/lpc.h @@ -137,7 +137,6 @@ LpcExitThread( // // Initialization functions // -INIT_FUNCTION BOOLEAN NTAPI LpcInitSystem( diff --git a/ntoskrnl/include/internal/mm.h b/ntoskrnl/include/internal/mm.h index fb70f3b460b..4ef728cd25b 100644 --- a/ntoskrnl/include/internal/mm.h +++ b/ntoskrnl/include/internal/mm.h @@ -565,7 +565,6 @@ MiCheckAllProcessMemoryAreas(VOID); /* npool.c *******************************************************************/ -INIT_FUNCTION VOID NTAPI MiInitializeNonPagedPool(VOID); @@ -616,7 +615,6 @@ MmInit1( VOID ); -INIT_FUNCTION BOOLEAN NTAPI MmInitSystem(IN ULONG Phase, @@ -633,7 +631,6 @@ VOID NTAPI MmFreeSwapPage(SWAPENTRY Entry); -INIT_FUNCTION VOID NTAPI MmInitPagingFile(VOID); @@ -802,7 +799,6 @@ MmDeleteKernelStack(PVOID Stack, /* balance.c *****************************************************************/ -INIT_FUNCTION VOID NTAPI MmInitializeMemoryConsumer( @@ -810,7 +806,6 @@ MmInitializeMemoryConsumer( NTSTATUS (*Trim)(ULONG Target, ULONG Priority, PULONG NrFreed) ); -INIT_FUNCTION VOID NTAPI MmInitializeBalancer( @@ -833,7 +828,6 @@ MmRequestPageMemoryConsumer( PPFN_NUMBER AllocatedPage ); -INIT_FUNCTION VOID NTAPI MiInitBalancerThread(VOID); @@ -879,7 +873,6 @@ MmDeleteRmap( PVOID Address ); -INIT_FUNCTION VOID NTAPI MmInitializeRmapList(VOID); @@ -1089,7 +1082,6 @@ MmIsDisabledPage( PVOID Address ); -INIT_FUNCTION VOID NTAPI MmInitGlobalKernelPageDirectory(VOID); @@ -1192,7 +1184,6 @@ MmCreateProcessAddressSpace( IN PULONG_PTR DirectoryTableBase ); -INIT_FUNCTION NTSTATUS NTAPI MmInitializeHandBuiltProcess( @@ -1200,7 +1191,6 @@ MmInitializeHandBuiltProcess( IN PULONG_PTR DirectoryTableBase ); -INIT_FUNCTION NTSTATUS NTAPI MmInitializeHandBuiltProcess2( @@ -1320,7 +1310,6 @@ MmProtectSectionView( PULONG OldProtect ); -INIT_FUNCTION NTSTATUS NTAPI MmInitSectionImplementation(VOID); @@ -1343,7 +1332,6 @@ MmPageOutSectionView( ULONG_PTR Entry ); -INIT_FUNCTION NTSTATUS NTAPI MmCreatePhysicalMemorySection(VOID); @@ -1362,14 +1350,12 @@ MmFreeSectionSegments(PFILE_OBJECT FileObject); /* sysldr.c ******************************************************************/ -INIT_FUNCTION VOID NTAPI MiReloadBootLoadedDrivers( IN PLOADER_PARAMETER_BLOCK LoaderBlock ); -INIT_FUNCTION BOOLEAN NTAPI MiInitializeLoadedModuleList( diff --git a/ntoskrnl/include/internal/ob.h b/ntoskrnl/include/internal/ob.h index 41e1af894a9..f73b99b0a72 100644 --- a/ntoskrnl/include/internal/ob.h +++ b/ntoskrnl/include/internal/ob.h @@ -159,7 +159,6 @@ typedef struct _OB_TEMP_BUFFER // // Startup and Shutdown Functions // -INIT_FUNCTION BOOLEAN NTAPI ObInitSystem( @@ -430,7 +429,6 @@ ObInheritDeviceMap( IN PEPROCESS Process ); -INIT_FUNCTION NTSTATUS NTAPI ObpCreateDosDevicesDirectory( @@ -452,7 +450,6 @@ ObpReferenceDeviceMap( // // Security descriptor cache functions // -INIT_FUNCTION NTSTATUS NTAPI ObpInitSdCache( diff --git a/ntoskrnl/include/internal/po.h b/ntoskrnl/include/internal/po.h index 0d722347381..beb3f3b4112 100644 --- a/ntoskrnl/include/internal/po.h +++ b/ntoskrnl/include/internal/po.h @@ -264,14 +264,12 @@ typedef struct _POP_SHUTDOWN_WAIT_ENTRY // // Initialization routines // -INIT_FUNCTION BOOLEAN NTAPI PoInitSystem( IN ULONG BootPhase ); -INIT_FUNCTION VOID NTAPI PoInitializePrcb( diff --git a/ntoskrnl/include/internal/ps.h b/ntoskrnl/include/internal/ps.h index fd360cfa330..b6eb06d2504 100644 --- a/ntoskrnl/include/internal/ps.h +++ b/ntoskrnl/include/internal/ps.h @@ -90,7 +90,6 @@ PspShutdownProcessManager( VOID ); -INIT_FUNCTION BOOLEAN NTAPI PsInitSystem( @@ -121,7 +120,6 @@ PspMapSystemDll( IN BOOLEAN UseLargePages ); -INIT_FUNCTION NTSTATUS NTAPI PsLocateSystemDll( @@ -354,7 +352,6 @@ PspRemoveProcessFromJob( IN PEJOB Job ); -INIT_FUNCTION VOID NTAPI PspInitializeJobStructures( @@ -418,7 +415,6 @@ PspIsProcessExiting(IN PEPROCESS Process); // // Apphelp functions // -INIT_FUNCTION NTSTATUS NTAPI ApphelpCacheInitialize(VOID); diff --git a/ntoskrnl/include/internal/se.h b/ntoskrnl/include/internal/se.h index 722d2d9a2aa..56a1287d8bf 100644 --- a/ntoskrnl/include/internal/se.h +++ b/ntoskrnl/include/internal/se.h @@ -243,27 +243,22 @@ SepSidInTokenEx( ); /* Functions */ -INIT_FUNCTION BOOLEAN NTAPI SeInitSystem(VOID); -INIT_FUNCTION VOID NTAPI SepInitPrivileges(VOID); -INIT_FUNCTION BOOLEAN NTAPI SepInitSecurityIDs(VOID); -INIT_FUNCTION BOOLEAN NTAPI SepInitDACLs(VOID); -INIT_FUNCTION BOOLEAN NTAPI SepInitSDs(VOID); @@ -330,7 +325,6 @@ SepCreateImpersonationTokenDacl( _Out_ PACL* Dacl ); -INIT_FUNCTION VOID NTAPI SepInitializeTokenImplementation(VOID); diff --git a/ntoskrnl/io/iomgr/arcname.c b/ntoskrnl/io/iomgr/arcname.c index 852f7e02632..2e7cbb968b1 100644 --- a/ntoskrnl/io/iomgr/arcname.c +++ b/ntoskrnl/io/iomgr/arcname.c @@ -21,13 +21,13 @@ PCHAR IoLoaderArcBootDeviceName; /* FUNCTIONS *****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI IopCreateArcNamesCd(IN PLOADER_PARAMETER_BLOCK LoaderBlock ); -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI IopCreateArcNamesDisk(IN PLOADER_PARAMETER_BLOCK LoaderBlock, @@ -35,7 +35,7 @@ IopCreateArcNamesDisk(IN PLOADER_PARAMETER_BLOCK LoaderBlock, IN PBOOLEAN FoundBoot ); -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI IopCreateArcNames(IN PLOADER_PARAMETER_BLOCK LoaderBlock) @@ -146,7 +146,7 @@ IopCreateArcNames(IN PLOADER_PARAMETER_BLOCK LoaderBlock) return Status; } -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI IopCreateArcNamesCd(IN PLOADER_PARAMETER_BLOCK LoaderBlock) @@ -408,7 +408,7 @@ Cleanup: return Status; } -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI IopCreateArcNamesDisk(IN PLOADER_PARAMETER_BLOCK LoaderBlock, @@ -830,7 +830,7 @@ Cleanup: return Status; } -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI IopReassignSystemRoot(IN PLOADER_PARAMETER_BLOCK LoaderBlock, diff --git a/ntoskrnl/io/iomgr/bootlog.c b/ntoskrnl/io/iomgr/bootlog.c index 347a25d9b11..df2af12ee07 100644 --- a/ntoskrnl/io/iomgr/bootlog.c +++ b/ntoskrnl/io/iomgr/bootlog.c @@ -13,11 +13,6 @@ #define NDEBUG #include <debug.h> -#if defined (ALLOC_PRAGMA) -#pragma alloc_text(INIT, IopInitBootLog) -#pragma alloc_text(INIT, IopStartBootLog) -#endif - /* GLOBALS ******************************************************************/ static BOOLEAN IopBootLogCreate = FALSE; @@ -29,7 +24,7 @@ static ERESOURCE IopBootLogResource; /* FUNCTIONS ****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID IopInitBootLog(BOOLEAN StartBootLog) { @@ -38,7 +33,7 @@ IopInitBootLog(BOOLEAN StartBootLog) } -INIT_FUNCTION +CODE_SEG("INIT") VOID IopStartBootLog(VOID) { diff --git a/ntoskrnl/io/iomgr/driver.c b/ntoskrnl/io/iomgr/driver.c index 330a0bf8ed9..3c4f3433ecf 100644 --- a/ntoskrnl/io/iomgr/driver.c +++ b/ntoskrnl/io/iomgr/driver.c @@ -722,7 +722,7 @@ MiResolveImageReferences(IN PVOID ImageBase, // // Used for images already loaded (boot drivers) // -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI LdrProcessDriverModule(PLDR_DATA_TABLE_ENTRY LdrEntry, @@ -804,7 +804,7 @@ LdrProcessDriverModule(PLDR_DATA_TABLE_ENTRY LdrEntry, * * Initialize a driver that is already loaded in memory. */ -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI IopInitializeBuiltinDriver(IN PLDR_DATA_TABLE_ENTRY BootLdrEntry) @@ -935,7 +935,7 @@ IopInitializeBuiltinDriver(IN PLDR_DATA_TABLE_ENTRY BootLdrEntry) * Return Value * None */ -INIT_FUNCTION +CODE_SEG("INIT") VOID FASTCALL IopInitializeBootDrivers(VOID) @@ -1135,7 +1135,7 @@ IopInitializeBootDrivers(VOID) PnPBootDriversLoaded = TRUE; } -INIT_FUNCTION +CODE_SEG("INIT") VOID FASTCALL IopInitializeSystemDrivers(VOID) diff --git a/ntoskrnl/io/iomgr/iomgr.c b/ntoskrnl/io/iomgr/iomgr.c index d815dda0c3b..ecdf3fbdb5e 100644 --- a/ntoskrnl/io/iomgr/iomgr.c +++ b/ntoskrnl/io/iomgr/iomgr.c @@ -87,13 +87,9 @@ extern GENERAL_LOOKASIDE IoCompletionPacketLookaside; PLOADER_PARAMETER_BLOCK IopLoaderBlock; -#if defined (ALLOC_PRAGMA) -#pragma alloc_text(INIT, IoInitSystem) -#endif - /* INIT FUNCTIONS ************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI IopInitLookasideLists(VOID) @@ -240,7 +236,7 @@ IopInitLookasideLists(VOID) } } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI IopCreateObjectTypes(VOID) @@ -329,7 +325,7 @@ IopCreateObjectTypes(VOID) return TRUE; } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI IopCreateRootDirectories(VOID) @@ -394,7 +390,7 @@ IopCreateRootDirectories(VOID) return TRUE; } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI IopMarkBootPartition(IN PLOADER_PARAMETER_BLOCK LoaderBlock) @@ -464,7 +460,7 @@ IopMarkBootPartition(IN PLOADER_PARAMETER_BLOCK LoaderBlock) return TRUE; } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI IoInitSystem(IN PLOADER_PARAMETER_BLOCK LoaderBlock) diff --git a/ntoskrnl/io/iomgr/ramdisk.c b/ntoskrnl/io/iomgr/ramdisk.c index fd78ddf4601..b959e964fff 100644 --- a/ntoskrnl/io/iomgr/ramdisk.c +++ b/ntoskrnl/io/iomgr/ramdisk.c @@ -18,15 +18,9 @@ extern KEVENT PiEnumerationFinished; -/* DATA ***********************************************************************/ - -#if defined (ALLOC_PRAGMA) -#pragma alloc_text(INIT, IopStartRamdisk) -#endif - /* FUNCTIONS ******************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI IopStartRamdisk(IN PLOADER_PARAMETER_BLOCK LoaderBlock) diff --git a/ntoskrnl/io/iomgr/rawfs.c b/ntoskrnl/io/iomgr/rawfs.c index e653131f5a2..b903fe3a31d 100644 --- a/ntoskrnl/io/iomgr/rawfs.c +++ b/ntoskrnl/io/iomgr/rawfs.c @@ -1187,7 +1187,7 @@ RawUnload(IN PDRIVER_OBJECT DriverObject) #endif } -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI RawFsDriverEntry(IN PDRIVER_OBJECT DriverObject, diff --git a/ntoskrnl/io/iomgr/volume.c b/ntoskrnl/io/iomgr/volume.c index 878c0426dbd..024823636f5 100644 --- a/ntoskrnl/io/iomgr/volume.c +++ b/ntoskrnl/io/iomgr/volume.c @@ -15,11 +15,6 @@ #define NDEBUG #include <debug.h> -#if defined (ALLOC_PRAGMA) -#pragma alloc_text(INIT, IoInitFileSystemImplementation) -#pragma alloc_text(INIT, IoInitVpbImplementation) -#endif - /* GLOBALS ******************************************************************/ ERESOURCE IopDatabaseResource; diff --git a/ntoskrnl/io/pnpmgr/plugplay.c b/ntoskrnl/io/pnpmgr/plugplay.c index 933e514d9f9..4f930e9bc55 100644 --- a/ntoskrnl/io/pnpmgr/plugplay.c +++ b/ntoskrnl/io/pnpmgr/plugplay.c @@ -12,10 +12,6 @@ #define NDEBUG #include <debug.h> -#if defined (ALLOC_PRAGMA) -#pragma alloc_text(INIT, IopInitPlugPlayEvents) -#endif - typedef struct _PNP_EVENT_ENTRY { LIST_ENTRY ListEntry; @@ -30,7 +26,8 @@ static KEVENT IopPnpNotifyEvent; /* FUNCTIONS *****************************************************************/ -NTSTATUS INIT_FUNCTION +CODE_SEG("INIT") +NTSTATUS IopInitPlugPlayEvents(VOID) { InitializeListHead(&IopPnpEventQueueHead); diff --git a/ntoskrnl/io/pnpmgr/pnpinit.c b/ntoskrnl/io/pnpmgr/pnpinit.c index b4c99683609..dd33a4b0258 100644 --- a/ntoskrnl/io/pnpmgr/pnpinit.c +++ b/ntoskrnl/io/pnpmgr/pnpinit.c @@ -93,7 +93,7 @@ IopInitializeArbiters(VOID) } -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI PiInitCacheGroupInformation(VOID) @@ -425,7 +425,7 @@ Exit: return Status; } -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI IopInitializePlugPlayServices(VOID) diff --git a/ntoskrnl/io/pnpmgr/pnpmgr.c b/ntoskrnl/io/pnpmgr/pnpmgr.c index 50e608e3730..3e142b081d0 100644 --- a/ntoskrnl/io/pnpmgr/pnpmgr.c +++ b/ntoskrnl/io/pnpmgr/pnpmgr.c @@ -1025,7 +1025,7 @@ cleanup: } static -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS IopEnumerateDetectedDevices( IN HANDLE hBaseKey, @@ -1466,7 +1466,7 @@ cleanup: } static -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN IopIsFirmwareMapperDisabled(VOID) { @@ -1535,7 +1535,7 @@ IopIsFirmwareMapperDisabled(VOID) return (KeyValue != 0) ? TRUE : FALSE; } -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI IopUpdateRootKey(VOID) diff --git a/ntoskrnl/kd/kdinit.c b/ntoskrnl/kd/kdinit.c index a73ec17ecad..fddde5a5bfd 100644 --- a/ntoskrnl/kd/kdinit.c +++ b/ntoskrnl/kd/kdinit.c @@ -39,7 +39,7 @@ extern ANSI_STRING KdpLogFileName; /* PRIVATE FUNCTIONS *********************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") PCHAR NTAPI KdpGetDebugMode(PCHAR Currentp2) @@ -135,7 +135,7 @@ KdpGetDebugMode(PCHAR Currentp2) return p2; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KdpCallInitRoutine(ULONG BootPhase) diff --git a/ntoskrnl/kd/kdio.c b/ntoskrnl/kd/kdio.c index 678a335741f..b1bfae48224 100644 --- a/ntoskrnl/kd/kdio.c +++ b/ntoskrnl/kd/kdio.c @@ -58,7 +58,7 @@ static KSPIN_LOCK KdpDmesgLogSpinLock; * * See also: kd64\kdinit.c */ -static INIT_FUNCTION +static CODE_SEG("INIT") SIZE_T KdpGetMemorySizeInMBs(IN PLOADER_PARAMETER_BLOCK LoaderBlock) { @@ -99,7 +99,7 @@ KdpGetMemorySizeInMBs(IN PLOADER_PARAMETER_BLOCK LoaderBlock) } /* See also: kd64\kdinit.c */ -static INIT_FUNCTION +static CODE_SEG("INIT") VOID KdpPrintBanner(IN SIZE_T MemSizeMBs) { diff --git a/ntoskrnl/kd64/kdinit.c b/ntoskrnl/kd64/kdinit.c index 43d2e8fc6b5..6b8319605db 100644 --- a/ntoskrnl/kd64/kdinit.c +++ b/ntoskrnl/kd64/kdinit.c @@ -26,7 +26,7 @@ * * See also: kd\kdio.c */ -static INIT_FUNCTION +static CODE_SEG("INIT") SIZE_T KdpGetMemorySizeInMBs(IN PLOADER_PARAMETER_BLOCK LoaderBlock) { @@ -67,7 +67,7 @@ KdpGetMemorySizeInMBs(IN PLOADER_PARAMETER_BLOCK LoaderBlock) } /* See also: kd\kdio.c */ -static INIT_FUNCTION +static CODE_SEG("INIT") VOID KdpPrintBanner(IN SIZE_T MemSizeMBs) { diff --git a/ntoskrnl/ke/amd64/cpu.c b/ntoskrnl/ke/amd64/cpu.c index 3c2b706a906..e41f0083552 100644 --- a/ntoskrnl/ke/amd64/cpu.c +++ b/ntoskrnl/ke/amd64/cpu.c @@ -50,6 +50,7 @@ static const CHAR CmpRiseID[] = "RiseRiseRise"; /* FUNCTIONS *****************************************************************/ +CODE_SEG("INIT") VOID NTAPI KiSetProcessorType(VOID) @@ -120,6 +121,7 @@ KiGetCpuVendor(VOID) return CPU_UNKNOWN; } +CODE_SEG("INIT") ULONG NTAPI KiGetFeatureBits(VOID) @@ -209,6 +211,7 @@ KiGetFeatureBits(VOID) return FeatureBits; } +CODE_SEG("INIT") VOID NTAPI KiGetCacheInformation(VOID) diff --git a/ntoskrnl/ke/amd64/except.c b/ntoskrnl/ke/amd64/except.c index 40b01064d84..c095bb0dc5d 100644 --- a/ntoskrnl/ke/amd64/except.c +++ b/ntoskrnl/ke/amd64/except.c @@ -53,7 +53,7 @@ KDESCRIPTOR KiIdtDescriptor = {{0}, sizeof(KiIdt) - 1, KiIdt}; /* FUNCTIONS *****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KeInitExceptions(VOID) diff --git a/ntoskrnl/ke/amd64/kiinit.c b/ntoskrnl/ke/amd64/kiinit.c index c951a083657..c8610b83e6b 100644 --- a/ntoskrnl/ke/amd64/kiinit.c +++ b/ntoskrnl/ke/amd64/kiinit.c @@ -40,7 +40,7 @@ void KiSystemCallEntry32(); /* FUNCTIONS *****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiInitMachineDependent(VOID) @@ -160,6 +160,7 @@ KiInitializePcr(IN PKIPCR Pcr, KeSetCurrentIrql(PASSIVE_LEVEL); } +CODE_SEG("INIT") VOID NTAPI KiInitializeCpu(PKIPCR Pcr) @@ -268,7 +269,7 @@ KiInitializeTss(IN PKTSS64 Tss, __ltr(KGDT64_SYS_TSS); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiInitializeKernelMachineDependent( @@ -365,7 +366,7 @@ KiInitModuleList(IN PLOADER_PARAMETER_BLOCK LoaderBlock) } } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock) diff --git a/ntoskrnl/ke/amd64/krnlinit.c b/ntoskrnl/ke/amd64/krnlinit.c index 93519095f98..8b5d7003cdf 100644 --- a/ntoskrnl/ke/amd64/krnlinit.c +++ b/ntoskrnl/ke/amd64/krnlinit.c @@ -20,7 +20,7 @@ extern BOOLEAN RtlpUse16ByteSLists; /* FUNCTIONS *****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiInitializeKernel(IN PKPROCESS InitProcess, @@ -51,7 +51,7 @@ KiInitializeHandBuiltThread( } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiSystemStartupBootStack(VOID) @@ -134,7 +134,7 @@ KiSystemStartupBootStack(VOID) KiIdleLoop(); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiInitializeKernel(IN PKPROCESS InitProcess, diff --git a/ntoskrnl/ke/arm/kiinit.c b/ntoskrnl/ke/arm/kiinit.c index ef7f9949a74..03f22153de3 100644 --- a/ntoskrnl/ke/arm/kiinit.c +++ b/ntoskrnl/ke/arm/kiinit.c @@ -31,6 +31,7 @@ extern PVOID KiArmVectorTable; /* FUNCTIONS ******************************************************************/ +CODE_SEG("INIT") VOID NTAPI KiInitMachineDependent(VOID) @@ -305,6 +306,7 @@ KiInitializePcr(IN ULONG ProcessorNumber, #endif } +CODE_SEG("INIT") VOID KiInitializeMachineType(VOID) { diff --git a/ntoskrnl/ke/bug.c b/ntoskrnl/ke/bug.c index 5d5a4a7e2d4..f7b9175feab 100644 --- a/ntoskrnl/ke/bug.c +++ b/ntoskrnl/ke/bug.c @@ -13,10 +13,6 @@ #define NDEBUG #include <debug.h> -#if defined (ALLOC_PRAGMA) -#pragma alloc_text(INIT, KiInitializeBugCheck) -#endif - /* GLOBALS *******************************************************************/ LIST_ENTRY KeBugcheckCallbackListHead; @@ -295,7 +291,7 @@ KeRosDumpStackFrames(IN PULONG_PTR Frame OPTIONAL, } } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiInitializeBugCheck(VOID) diff --git a/ntoskrnl/ke/config.c b/ntoskrnl/ke/config.c index ca3d8b009b3..b5b958552e5 100644 --- a/ntoskrnl/ke/config.c +++ b/ntoskrnl/ke/config.c @@ -17,7 +17,7 @@ /* * @implemented */ -INIT_FUNCTION +CODE_SEG("INIT") PCONFIGURATION_COMPONENT_DATA NTAPI KeFindConfigurationEntry(IN PCONFIGURATION_COMPONENT_DATA Child, @@ -38,7 +38,7 @@ KeFindConfigurationEntry(IN PCONFIGURATION_COMPONENT_DATA Child, /* * @implemented */ -INIT_FUNCTION +CODE_SEG("INIT") PCONFIGURATION_COMPONENT_DATA NTAPI KeFindConfigurationNextEntry(IN PCONFIGURATION_COMPONENT_DATA Child, diff --git a/ntoskrnl/ke/i386/cpu.c b/ntoskrnl/ke/i386/cpu.c index 224178d2e60..043ab2b62d2 100644 --- a/ntoskrnl/ke/i386/cpu.c +++ b/ntoskrnl/ke/i386/cpu.c @@ -85,7 +85,7 @@ setCx86(UCHAR reg, UCHAR data) /* FUNCTIONS *****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiSetProcessorType(VOID) @@ -152,7 +152,7 @@ KiSetProcessorType(VOID) __writeeflags(EFlags); } -INIT_FUNCTION +CODE_SEG("INIT") ULONG NTAPI KiGetCpuVendor(VOID) @@ -208,7 +208,7 @@ KiGetCpuVendor(VOID) return CPU_UNKNOWN; } -INIT_FUNCTION +CODE_SEG("INIT") ULONG NTAPI KiGetFeatureBits(VOID) @@ -454,7 +454,7 @@ KiGetFeatureBits(VOID) return FeatureBits; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiGetCacheInformation(VOID) @@ -722,7 +722,7 @@ KiGetCacheInformation(VOID) Pcr->SecondLevelCacheAssociativity); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiSetCR0Bits(VOID) @@ -739,7 +739,7 @@ KiSetCR0Bits(VOID) __writecr0(Cr0); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiInitializeTSS2(IN PKTSS Tss, @@ -793,7 +793,7 @@ KiInitializeTSS(IN PKTSS Tss) Tss->Ss0 = KGDT_R0_DATA; } -INIT_FUNCTION +CODE_SEG("INIT") VOID FASTCALL Ki386InitializeTss(IN PKTSS Tss, @@ -982,7 +982,7 @@ KiSaveProcessorControlState(OUT PKPROCESSOR_STATE ProcessorState) ProcessorState->SpecialRegisters.Ldtr = Ke386GetLocalDescriptorTable(); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiInitializeMachineType(VOID) @@ -991,7 +991,7 @@ KiInitializeMachineType(VOID) KeI386MachineType = KeLoaderBlock->u.I386.MachineType & 0x000FF; } -INIT_FUNCTION +CODE_SEG("INIT") ULONG_PTR NTAPI KiLoadFastSyscallMachineSpecificRegisters(IN ULONG_PTR Context) @@ -1005,7 +1005,7 @@ KiLoadFastSyscallMachineSpecificRegisters(IN ULONG_PTR Context) return 0; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiRestoreFastSyscallReturnState(VOID) @@ -1039,7 +1039,7 @@ KiRestoreFastSyscallReturnState(VOID) } } -INIT_FUNCTION +CODE_SEG("INIT") ULONG_PTR NTAPI Ki386EnableDE(IN ULONG_PTR Context) @@ -1049,7 +1049,7 @@ Ki386EnableDE(IN ULONG_PTR Context) return 0; } -INIT_FUNCTION +CODE_SEG("INIT") ULONG_PTR NTAPI Ki386EnableFxsr(IN ULONG_PTR Context) @@ -1059,7 +1059,7 @@ Ki386EnableFxsr(IN ULONG_PTR Context) return 0; } -INIT_FUNCTION +CODE_SEG("INIT") ULONG_PTR NTAPI Ki386EnableXMMIExceptions(IN ULONG_PTR Context) @@ -1082,7 +1082,7 @@ Ki386EnableXMMIExceptions(IN ULONG_PTR Context) return 0; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiI386PentiumLockErrataFixup(VOID) @@ -1158,7 +1158,7 @@ KiSaveProcessorState(IN PKTRAP_FRAME TrapFrame, KiSaveProcessorControlState(&Prcb->ProcessorState); } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI KiIsNpxPresent(VOID) @@ -1199,7 +1199,7 @@ KiIsNpxPresent(VOID) return TRUE; } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI KiIsNpxErrataPresent(VOID) diff --git a/ntoskrnl/ke/i386/exp.c b/ntoskrnl/ke/i386/exp.c index 25cc92f4f01..a64faa1d60c 100644 --- a/ntoskrnl/ke/i386/exp.c +++ b/ntoskrnl/ke/i386/exp.c @@ -17,7 +17,7 @@ /* FUNCTIONS *****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KeInitExceptions(VOID) diff --git a/ntoskrnl/ke/i386/kiinit.c b/ntoskrnl/ke/i386/kiinit.c index 7fc38067730..9fb22698bca 100644 --- a/ntoskrnl/ke/i386/kiinit.c +++ b/ntoskrnl/ke/i386/kiinit.c @@ -31,7 +31,7 @@ ULONGLONG BootCycles, BootCyclesEnd; /* FUNCTIONS *****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiInitMachineDependent(VOID) @@ -330,7 +330,7 @@ KiInitMachineDependent(VOID) KiSetCR0Bits(); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiInitializePcr(IN ULONG ProcessorNumber, @@ -392,7 +392,7 @@ KiInitializePcr(IN ULONG ProcessorNumber, Pcr->PrcbData.MultiThreadProcessorSet = Pcr->PrcbData.SetMember; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiInitializeKernel(IN PKPROCESS InitProcess, @@ -615,7 +615,7 @@ KiInitializeKernel(IN PKPROCESS InitProcess, LoaderBlock->Prcb = 0; } -INIT_FUNCTION +CODE_SEG("INIT") VOID FASTCALL KiGetMachineBootPointers(IN PKGDTENTRY *Gdt, @@ -656,7 +656,7 @@ KiGetMachineBootPointers(IN PKGDTENTRY *Gdt, TssSelector.HighWord.Bytes.BaseHi << 24); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiSystemStartupBootStack(VOID) @@ -708,7 +708,7 @@ KiMarkPageAsReadOnly( __invlpg(Address); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock) diff --git a/ntoskrnl/ke/i386/mtrr.c b/ntoskrnl/ke/i386/mtrr.c index ed2a7fb7ba1..67a59509964 100644 --- a/ntoskrnl/ke/i386/mtrr.c +++ b/ntoskrnl/ke/i386/mtrr.c @@ -16,7 +16,7 @@ /* FUNCTIONS *****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiInitializeMTRR(IN BOOLEAN FinalCpu) @@ -25,7 +25,7 @@ KiInitializeMTRR(IN BOOLEAN FinalCpu) DPRINT("MTRR support detected but not yet taken advantage of\n"); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiAmdK6InitializeMTRR(VOID) diff --git a/ntoskrnl/ke/i386/patpge.c b/ntoskrnl/ke/i386/patpge.c index 8a27d7a7384..80324ac7b7e 100644 --- a/ntoskrnl/ke/i386/patpge.c +++ b/ntoskrnl/ke/i386/patpge.c @@ -17,7 +17,7 @@ /* FUNCTIONS *****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") ULONG_PTR NTAPI Ki386EnableGlobalPage(IN ULONG_PTR Context) @@ -55,7 +55,7 @@ Ki386EnableGlobalPage(IN ULONG_PTR Context) return 0; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiInitializePAT(VOID) @@ -64,7 +64,7 @@ KiInitializePAT(VOID) DPRINT("PAT support detected but not yet taken advantage of\n"); } -INIT_FUNCTION +CODE_SEG("INIT") ULONG_PTR NTAPI Ki386EnableTargetLargePage(IN ULONG_PTR Context) diff --git a/ntoskrnl/ke/krnlinit.c b/ntoskrnl/ke/krnlinit.c index accdeae7efb..d74d805715d 100644 --- a/ntoskrnl/ke/krnlinit.c +++ b/ntoskrnl/ke/krnlinit.c @@ -65,7 +65,7 @@ KSPIN_LOCK KiReverseStallIpiLock; /* FUNCTIONS *****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiInitSystem(VOID) @@ -117,7 +117,7 @@ KiInitSystem(VOID) sizeof(KeServiceDescriptorTable)); } -INIT_FUNCTION +CODE_SEG("INIT") LARGE_INTEGER NTAPI KiComputeReciprocal(IN LONG Divisor, @@ -181,7 +181,7 @@ KiComputeReciprocal(IN LONG Divisor, return Reciprocal; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KiInitSpinLocks(IN PKPRCB Prcb, @@ -287,7 +287,7 @@ KiInitSpinLocks(IN PKPRCB Prcb, } } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI KeInitSystem(VOID) diff --git a/ntoskrnl/ke/powerpc/cpu.c b/ntoskrnl/ke/powerpc/cpu.c index 571389ea995..c3f72573a36 100644 --- a/ntoskrnl/ke/powerpc/cpu.c +++ b/ntoskrnl/ke/powerpc/cpu.c @@ -57,6 +57,7 @@ RDMSR(IN ULONG Register) /* FUNCTIONS *****************************************************************/ +CODE_SEG("INIT") VOID NTAPI KiSetProcessorType(VOID) @@ -70,6 +71,7 @@ KiGetCpuVendor(VOID) return 0; } +CODE_SEG("INIT") ULONG NTAPI KiGetFeatureBits(VOID) @@ -79,6 +81,7 @@ KiGetFeatureBits(VOID) return FeatureBits; } +CODE_SEG("INIT") VOID NTAPI KiGetCacheInformation(VOID) @@ -124,6 +127,7 @@ KiSaveProcessorControlState(OUT PKPROCESSOR_STATE ProcessorState) { } +CODE_SEG("INIT") VOID NTAPI KiInitializeMachineType(VOID) @@ -137,12 +141,14 @@ KiLoadFastSyscallMachineSpecificRegisters(IN ULONG_PTR Context) return 0; } +CODE_SEG("INIT") VOID NTAPI KiRestoreFastSyscallReturnState(VOID) { } +CODE_SEG("INIT") ULONG_PTR NTAPI Ki386EnableDE(IN ULONG_PTR Context) @@ -150,6 +156,7 @@ Ki386EnableDE(IN ULONG_PTR Context) return 0; } +CODE_SEG("INIT") ULONG_PTR NTAPI Ki386EnableFxsr(IN ULONG_PTR Context) diff --git a/ntoskrnl/ke/powerpc/exp.c b/ntoskrnl/ke/powerpc/exp.c index 52cced20b6f..9de6097cba3 100644 --- a/ntoskrnl/ke/powerpc/exp.c +++ b/ntoskrnl/ke/powerpc/exp.c @@ -17,7 +17,7 @@ /* FUNCTIONS *****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KeInitExceptions(VOID) diff --git a/ntoskrnl/ke/powerpc/kiinit.c b/ntoskrnl/ke/powerpc/kiinit.c index 5b564092893..01f6c2aa57d 100644 --- a/ntoskrnl/ke/powerpc/kiinit.c +++ b/ntoskrnl/ke/powerpc/kiinit.c @@ -343,6 +343,7 @@ AppCpuInit: (PVOID)LoaderBlock); } +CODE_SEG("INIT") VOID NTAPI KiInitMachineDependent(VOID) diff --git a/ntoskrnl/ke/powerpc/ppc_irq.c b/ntoskrnl/ke/powerpc/ppc_irq.c index 25cdb1168a3..baa933b4f2c 100644 --- a/ntoskrnl/ke/powerpc/ppc_irq.c +++ b/ntoskrnl/ke/powerpc/ppc_irq.c @@ -145,7 +145,7 @@ static ISR_TABLE IsrTable[NR_TRAPS][1]; /* FUNCTIONS ****************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI KeInitInterrupts (VOID) diff --git a/ntoskrnl/lpc/port.c b/ntoskrnl/lpc/port.c index ea49eb0c4b5..19597b154fe 100644 --- a/ntoskrnl/lpc/port.c +++ b/ntoskrnl/lpc/port.c @@ -31,7 +31,7 @@ static GENERIC_MAPPING LpcpPortMapping = /* PRIVATE FUNCTIONS *********************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI LpcInitSystem(VOID) diff --git a/ntoskrnl/mm/ARM3/arm/init.c b/ntoskrnl/mm/ARM3/arm/init.c index 106044b5b4d..60d0be5be86 100644 --- a/ntoskrnl/mm/ARM3/arm/init.c +++ b/ntoskrnl/mm/ARM3/arm/init.c @@ -57,7 +57,7 @@ PVOID MmHyperSpaceEnd; /* PRIVATE FUNCTIONS **********************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI MiInitMachineDependent(IN PLOADER_PARAMETER_BLOCK LoaderBlock) diff --git a/ntoskrnl/mm/ARM3/expool.c b/ntoskrnl/mm/ARM3/expool.c index e5c3bfe007f..2cda0ac5b06 100644 --- a/ntoskrnl/mm/ARM3/expool.c +++ b/ntoskrnl/mm/ARM3/expool.c @@ -622,7 +622,7 @@ MiDumpPoolConsumers(BOOLEAN CalledFromDbg, ULONG Tag, ULONG Mask, ULONG Flags) /* PRIVATE FUNCTIONS **********************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI ExpSeedHotTags(VOID) @@ -952,7 +952,7 @@ ExpInsertPoolTracker(IN ULONG Key, DPRINT1("Out of pool tag space, ignoring...\n"); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI ExInitializePoolDescriptor(IN PPOOL_DESCRIPTOR PoolDescriptor, @@ -1003,7 +1003,7 @@ ExInitializePoolDescriptor(IN PPOOL_DESCRIPTOR PoolDescriptor, ASSERT(PoolType != PagedPoolSession); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI InitializePool(IN POOL_TYPE PoolType, diff --git a/ntoskrnl/mm/ARM3/i386/init.c b/ntoskrnl/mm/ARM3/i386/init.c index bd14a83e19b..fce53bee2ee 100644 --- a/ntoskrnl/mm/ARM3/i386/init.c +++ b/ntoskrnl/mm/ARM3/i386/init.c @@ -39,7 +39,7 @@ MMPTE MmDecommittedPte = {{MM_DECOMMIT << MM_PTE_SOFTWARE_PROTECTION_BITS}}; /* PRIVATE FUNCTIONS **********************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiInitializeSessionSpaceLayout(VOID) @@ -120,7 +120,7 @@ MiInitializeSessionSpaceLayout(VOID) MM_ALLOCATION_GRANULARITY); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiComputeNonPagedPoolVa(IN ULONG FreePages) @@ -236,7 +236,7 @@ MiComputeNonPagedPoolVa(IN ULONG FreePages) } } -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI MiInitMachineDependent(IN PLOADER_PARAMETER_BLOCK LoaderBlock) diff --git a/ntoskrnl/mm/ARM3/largepag.c b/ntoskrnl/mm/ARM3/largepag.c index e0c5ce9d56c..9611ab88fa1 100644 --- a/ntoskrnl/mm/ARM3/largepag.c +++ b/ntoskrnl/mm/ARM3/largepag.c @@ -28,7 +28,7 @@ BOOLEAN MiLargePageAllDrivers; /* FUNCTIONS ******************************************************************/ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiInitializeLargePageSupport(VOID) @@ -48,7 +48,7 @@ MiInitializeLargePageSupport(VOID) #endif } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiSyncCachedRanges(VOID) @@ -62,7 +62,7 @@ MiSyncCachedRanges(VOID) } } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiInitializeDriverLargePageList(VOID) diff --git a/ntoskrnl/mm/ARM3/miarm.h b/ntoskrnl/mm/ARM3/miarm.h index 8b6cc19b45e..b374e94ad75 100644 --- a/ntoskrnl/mm/ARM3/miarm.h +++ b/ntoskrnl/mm/ARM3/miarm.h @@ -1703,7 +1703,6 @@ MiQueryPageTableReferences(IN PVOID Address) return *RefCount; } -INIT_FUNCTION BOOLEAN NTAPI MmArmInitSystem( @@ -1711,40 +1710,34 @@ MmArmInitSystem( IN PLOADER_PARAMETER_BLOCK LoaderBlock ); -INIT_FUNCTION VOID NTAPI MiInitializeSessionSpaceLayout(VOID); -INIT_FUNCTION NTSTATUS NTAPI MiInitMachineDependent( IN PLOADER_PARAMETER_BLOCK LoaderBlock ); -INIT_FUNCTION VOID NTAPI MiComputeColorInformation( VOID ); -INIT_FUNCTION VOID NTAPI MiMapPfnDatabase( IN PLOADER_PARAMETER_BLOCK LoaderBlock ); -INIT_FUNCTION VOID NTAPI MiInitializeColorTables( VOID ); -INIT_FUNCTION VOID NTAPI MiInitializePfnDatabase( @@ -1763,21 +1756,18 @@ MiInitializeSessionIds( VOID ); -INIT_FUNCTION BOOLEAN NTAPI MiInitializeMemoryEvents( VOID ); -INIT_FUNCTION PFN_NUMBER NTAPI MxGetNextPage( IN PFN_NUMBER PageCount ); -INIT_FUNCTION PPHYSICAL_MEMORY_DESCRIPTOR NTAPI MmInitializeMemoryLimits( @@ -1824,28 +1814,24 @@ MiCheckPdeForPagedPool( IN PVOID Address ); -INIT_FUNCTION VOID NTAPI MiInitializeNonPagedPool( VOID ); -INIT_FUNCTION VOID NTAPI MiInitializeNonPagedPoolThresholds( VOID ); -INIT_FUNCTION VOID NTAPI MiInitializePoolEvents( VOID ); -INIT_FUNCTION VOID // NTAPI // InitializePool( // @@ -1854,7 +1840,6 @@ InitializePool( // ); // // FIXFIX: THIS ONE TOO -INIT_FUNCTION VOID NTAPI ExInitializePoolDescriptor( @@ -1871,7 +1856,6 @@ MiInitializeSessionPool( VOID ); -INIT_FUNCTION VOID NTAPI MiInitializeSystemPtes( @@ -2033,21 +2017,18 @@ MiLookupDataTableEntry( IN PVOID Address ); -INIT_FUNCTION VOID NTAPI MiInitializeDriverLargePageList( VOID ); -INIT_FUNCTION VOID NTAPI MiInitializeLargePageSupport( VOID ); -INIT_FUNCTION VOID NTAPI MiSyncCachedRanges( diff --git a/ntoskrnl/mm/ARM3/mminit.c b/ntoskrnl/mm/ARM3/mminit.c index 0bae38e3e02..64e2193a558 100644 --- a/ntoskrnl/mm/ARM3/mminit.c +++ b/ntoskrnl/mm/ARM3/mminit.c @@ -477,7 +477,7 @@ MiScanMemoryDescriptors(IN PLOADER_PARAMETER_BLOCK LoaderBlock) MxOldFreeDescriptor = *MxFreeDescriptor; } -INIT_FUNCTION +CODE_SEG("INIT") PFN_NUMBER NTAPI MxGetNextPage(IN PFN_NUMBER PageCount) @@ -502,7 +502,7 @@ MxGetNextPage(IN PFN_NUMBER PageCount) return Pfn; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiComputeColorInformation(VOID) @@ -556,7 +556,7 @@ MiComputeColorInformation(VOID) KeGetCurrentPrcb()->SecondaryColorMask = MmSecondaryColorMask; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiInitializeColorTables(VOID) @@ -607,7 +607,7 @@ MiInitializeColorTables(VOID) } #ifndef _M_AMD64 -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI MiIsRegularMemory(IN PLOADER_PARAMETER_BLOCK LoaderBlock, @@ -666,7 +666,7 @@ MiIsRegularMemory(IN PLOADER_PARAMETER_BLOCK LoaderBlock, return FALSE; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiMapPfnDatabase(IN PLOADER_PARAMETER_BLOCK LoaderBlock) @@ -762,7 +762,7 @@ MiMapPfnDatabase(IN PLOADER_PARAMETER_BLOCK LoaderBlock) MxFreeDescriptor->PageCount = FreePageCount; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiBuildPfnDatabaseFromPages(IN PLOADER_PARAMETER_BLOCK LoaderBlock) @@ -871,7 +871,7 @@ MiBuildPfnDatabaseFromPages(IN PLOADER_PARAMETER_BLOCK LoaderBlock) } } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiBuildPfnDatabaseZeroPage(VOID) @@ -894,7 +894,7 @@ MiBuildPfnDatabaseZeroPage(VOID) } } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiBuildPfnDatabaseFromLoaderBlock(IN PLOADER_PARAMETER_BLOCK LoaderBlock) @@ -1038,7 +1038,7 @@ MiBuildPfnDatabaseFromLoaderBlock(IN PLOADER_PARAMETER_BLOCK LoaderBlock) } } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiBuildPfnDatabaseSelf(VOID) @@ -1068,7 +1068,7 @@ MiBuildPfnDatabaseSelf(VOID) } } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiInitializePfnDatabase(IN PLOADER_PARAMETER_BLOCK LoaderBlock) @@ -1087,7 +1087,7 @@ MiInitializePfnDatabase(IN PLOADER_PARAMETER_BLOCK LoaderBlock) } #endif /* !_M_AMD64 */ -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MmFreeLoaderBlock(IN PLOADER_PARAMETER_BLOCK LoaderBlock) @@ -1197,7 +1197,7 @@ MmFreeLoaderBlock(IN PLOADER_PARAMETER_BLOCK LoaderBlock) ExFreePoolWithTag(Buffer, 'lMmM'); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiAdjustWorkingSetManagerParameters(IN BOOLEAN Client) @@ -1212,7 +1212,7 @@ MiAdjustWorkingSetManagerParameters(IN BOOLEAN Client) } } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiNotifyMemoryEvents(VOID) @@ -1238,7 +1238,7 @@ MiNotifyMemoryEvents(VOID) } } -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI MiCreateMemoryEvent(IN PUNICODE_STRING Name, @@ -1333,7 +1333,7 @@ CleanUp: return Status; } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI MiInitializeMemoryEvents(VOID) @@ -1412,7 +1412,7 @@ MiInitializeMemoryEvents(VOID) return TRUE; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiAddHalIoMappings(VOID) @@ -1616,7 +1616,7 @@ MmDumpArmPfnDatabase(IN BOOLEAN StatusOnly) KeLowerIrql(OldIrql); } -INIT_FUNCTION +CODE_SEG("INIT") PPHYSICAL_MEMORY_DESCRIPTOR NTAPI MmInitializeMemoryLimits(IN PLOADER_PARAMETER_BLOCK LoaderBlock, @@ -1745,7 +1745,7 @@ MmInitializeMemoryLimits(IN PLOADER_PARAMETER_BLOCK LoaderBlock, return Buffer; } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiBuildPagedPool(VOID) @@ -1988,7 +1988,7 @@ MiBuildPagedPool(VOID) MiInitializeSystemSpaceMap(NULL); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiDbgDumpMemoryDescriptors(VOID) @@ -2040,7 +2040,7 @@ MiDbgDumpMemoryDescriptors(VOID) DPRINT1("Total: %08lX (%lu MB)\n", (ULONG)TotalPages, (ULONG)(TotalPages * PAGE_SIZE) / 1024 / 1024); } -INIT_FUNCTION +CODE_SEG("INIT") BOOLEAN NTAPI MmArmInitSystem(IN ULONG Phase, diff --git a/ntoskrnl/mm/ARM3/pool.c b/ntoskrnl/mm/ARM3/pool.c index 347aa6ba967..7c0e1bb93ba 100644 --- a/ntoskrnl/mm/ARM3/pool.c +++ b/ntoskrnl/mm/ARM3/pool.c @@ -178,7 +178,7 @@ MiProtectedPoolRemoveEntryList(IN PLIST_ENTRY Entry) if (PoolBlink) MiProtectFreeNonPagedPool(PoolBlink, 1); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiInitializeNonPagedPoolThresholds(VOID) @@ -195,7 +195,7 @@ MiInitializeNonPagedPoolThresholds(VOID) ASSERT(MiLowNonPagedPoolThreshold < MiHighNonPagedPoolThreshold); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiInitializePoolEvents(VOID) @@ -270,7 +270,7 @@ MiInitializePoolEvents(VOID) KeReleaseQueuedSpinLock(LockQueueMmNonPagedPoolLock, OldIrql); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiInitializeNonPagedPool(VOID) diff --git a/ntoskrnl/mm/ARM3/procsup.c b/ntoskrnl/mm/ARM3/procsup.c index e3aa8336bbd..a183f8a099f 100644 --- a/ntoskrnl/mm/ARM3/procsup.c +++ b/ntoskrnl/mm/ARM3/procsup.c @@ -1117,7 +1117,7 @@ MmInitializeProcessAddressSpace(IN PEPROCESS Process, return Status; } -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI MmInitializeHandBuiltProcess(IN PEPROCESS Process, @@ -1142,7 +1142,7 @@ MmInitializeHandBuiltProcess(IN PEPROCESS Process, return STATUS_SUCCESS; } -INIT_FUNCTION +CODE_SEG("INIT") NTSTATUS NTAPI MmInitializeHandBuiltProcess2(IN PEPROCESS Process) diff --git a/ntoskrnl/mm/ARM3/sysldr.c b/ntoskrnl/mm/ARM3/sysldr.c index d414b1f6b43..811defcde8b 100644 --- a/ntoskrnl/mm/ARM3/sysldr.c +++ b/ntoskrnl/mm/ARM3/sysldr.c @@ -587,7 +587,7 @@ MiProcessLoaderEntry(IN PLDR_DATA_TABLE_ENTRY LdrEntry, KeLeaveCriticalRegion(); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiUpdateThunks(IN PLOADER_PARAMETER_BLOCK LoaderBlock, @@ -1445,7 +1445,7 @@ MiFreeInitializationCode(IN PVOID InitStart, NULL); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiFindInitializationCode(OUT PVOID *StartVa, @@ -1688,7 +1688,7 @@ MmFreeDriverInitialization(IN PLDR_DATA_TABLE_ENTRY LdrEntry) MiDeleteSystemPageableVm(StartPte, PageCount, 0, NULL); } -INIT_FUNCTION +CODE_SEG("INIT") VOID NTAPI MiReloadBootLoadedDrivers(IN PLOADER_PARAMETER_BLOCK LoaderBlock) @@ -1877,7 +1877,7 @@ MiReloadBootLoadedDrivers(IN PLOADER_PARAMETER_BLOCK LoaderBlock) ... 1445 lines suppressed ...
4 years, 1 month
1
0
0
0
[reactos] 01/02: [NDK][CMAKE] Introduce DATA_SEG and CODE_SEG macro These are for putting code and data to non-default sections At the same time, move INIT section attributes declaration to cmake files
by Victor Perevertkin
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=658f742c2d70cc16844dc…
commit 658f742c2d70cc16844dcf4eeaddcb358dc755fc Author: Victor Perevertkin <victor.perevertkin(a)reactos.org> AuthorDate: Tue Oct 6 22:36:45 2020 +0300 Commit: Victor Perevertkin <victor.perevertkin(a)reactos.org> CommitDate: Mon Nov 2 21:27:06 2020 +0300 [NDK][CMAKE] Introduce DATA_SEG and CODE_SEG macro These are for putting code and data to non-default sections At the same time, move INIT section attributes declaration to cmake files --- hal/halx86/CMakeLists.txt | 2 +- ntoskrnl/CMakeLists.txt | 2 +- sdk/cmake/msvc.cmake | 4 ++-- sdk/include/ndk/section_attribs.h | 16 +++++----------- 4 files changed, 9 insertions(+), 15 deletions(-) diff --git a/hal/halx86/CMakeLists.txt b/hal/halx86/CMakeLists.txt index c7f1bdaccb5..e56a791d8da 100644 --- a/hal/halx86/CMakeLists.txt +++ b/hal/halx86/CMakeLists.txt @@ -52,7 +52,7 @@ function(add_hal _halname) set_module_type(${_halname} kerneldll ENTRYPOINT HalInitSystem 8) add_cd_file(TARGET ${_halname} DESTINATION reactos/system32 NO_CAB FOR all) if(MSVC) - add_target_link_flags(${_halname} "/ignore:4216 /ignore:4078") + add_target_link_flags(${_halname} "/ignore:4216 /SECTION:INIT,ERWD") else() target_link_libraries(${_halname} -lgcc) endif() diff --git a/ntoskrnl/CMakeLists.txt b/ntoskrnl/CMakeLists.txt index e1823f70019..13ca75e351a 100644 --- a/ntoskrnl/CMakeLists.txt +++ b/ntoskrnl/CMakeLists.txt @@ -36,7 +36,7 @@ set_subsystem(ntoskrnl native) if(MSVC) set_image_base(ntoskrnl 0x00400000) add_target_link_flags(ntoskrnl "/SECTION:.rsrc,!DP") #Accessed from bugcheck code - add_target_link_flags(ntoskrnl "/SECTION:INIT,D") + add_target_link_flags(ntoskrnl "/SECTION:INIT,ERWD") else() if(GDB) # Completely disable optimizations when debugging the kernel diff --git a/sdk/cmake/msvc.cmake b/sdk/cmake/msvc.cmake index d4aed60c361..a3048c34e1d 100644 --- a/sdk/cmake/msvc.cmake +++ b/sdk/cmake/msvc.cmake @@ -248,9 +248,9 @@ function(set_module_type_toolchain MODULE TYPE) add_target_link_flags(${MODULE} "/DLL") elseif(${TYPE} STREQUAL "kernelmodedriver") # Disable linker warning 4078 (multiple sections found with different attributes) for INIT section use - add_target_link_flags(${MODULE} "/DRIVER /IGNORE:4078 /SECTION:INIT,D") + add_target_link_flags(${MODULE} "/DRIVER /SECTION:INIT,ERWD") elseif(${TYPE} STREQUAL "wdmdriver") - add_target_link_flags(${MODULE} "/DRIVER:WDM /IGNORE:4078 /SECTION:INIT,D") + add_target_link_flags(${MODULE} "/DRIVER:WDM /SECTION:INIT,ERWD") endif() if(RUNTIME_CHECKS) diff --git a/sdk/include/ndk/section_attribs.h b/sdk/include/ndk/section_attribs.h index 2d1007aac6a..4b2a6100f32 100644 --- a/sdk/include/ndk/section_attribs.h +++ b/sdk/include/ndk/section_attribs.h @@ -8,7 +8,7 @@ Header Name: Abstract: - Preprocessor definitions to put code and data into the INIT section. + Preprocessor definitions to put code and data into specific sections. Author: @@ -20,19 +20,13 @@ Author: #if defined(__GNUC__) || defined(__clang__) -#define INIT_SECTION __attribute__((section ("INIT"))) -#define INIT_FUNCTION __attribute__((section ("INIT"))) +#define DATA_SEG(segment) __attribute__((section(segment))) +#define CODE_SEG(segment) __attribute__((section(segment))) #elif defined(_MSC_VER) -#pragma comment(linker, "/SECTION:INIT,ERW") -#define INIT_SECTION __declspec(allocate("INIT")) -#if (_MSC_VER >= 1800) // Visual Studio 2013 / version 12.0 -#define INIT_FUNCTION __declspec(code_seg("INIT")) -#else -#pragma section("INIT", read,execute,discard) -#define INIT_FUNCTION -#endif +#define DATA_SEG(segment) __declspec(allocate(segment)) +#define CODE_SEG(segment) __declspec(code_seg(segment)) #else
4 years, 1 month
1
0
0
0
[reactos] 01/01: [MOUNTMGR] Move the driver to drivers/storage Effectively mountmgr.sys is an essential part of the storage stack
by Victor Perevertkin
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ba447018c873a8fc50b81…
commit ba447018c873a8fc50b81d929e713546a7b306c7 Author: Victor Perevertkin <victor.perevertkin(a)reactos.org> AuthorDate: Sun Nov 1 12:35:56 2020 +0300 Commit: Victor Perevertkin <victor.perevertkin(a)reactos.org> CommitDate: Sun Nov 1 12:35:56 2020 +0300 [MOUNTMGR] Move the driver to drivers/storage Effectively mountmgr.sys is an essential part of the storage stack --- CODEOWNERS | 2 +- drivers/filters/CMakeLists.txt | 1 - drivers/storage/CMakeLists.txt | 1 + drivers/{filters => storage}/mountmgr/CMakeLists.txt | 0 drivers/{filters => storage}/mountmgr/database.c | 0 drivers/{filters => storage}/mountmgr/device.c | 0 drivers/{filters => storage}/mountmgr/mntmgr.h | 0 drivers/{filters => storage}/mountmgr/mountmgr.c | 0 drivers/{filters => storage}/mountmgr/mountmgr.rc | 0 drivers/{filters => storage}/mountmgr/notify.c | 0 drivers/{filters => storage}/mountmgr/point.c | 0 drivers/{filters => storage}/mountmgr/symlink.c | 0 drivers/{filters => storage}/mountmgr/uniqueid.c | 0 13 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CODEOWNERS b/CODEOWNERS index fe17ea072da..f93cde130e2 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -185,7 +185,7 @@ # Mount Point Manager # M: HeisSpiter, Heis Spiter, Pierre Schweitzer # S: Maintained -/drivers/filters/mountmgr/ @HeisSpiter +/drivers/storage/mountmgr/ @HeisSpiter # Network Drivers # M: diff --git a/drivers/filters/CMakeLists.txt b/drivers/filters/CMakeLists.txt index 2d135dd9199..bd6c76497cb 100644 --- a/drivers/filters/CMakeLists.txt +++ b/drivers/filters/CMakeLists.txt @@ -1,2 +1 @@ add_subdirectory(fltmgr) -add_subdirectory(mountmgr) diff --git a/drivers/storage/CMakeLists.txt b/drivers/storage/CMakeLists.txt index aafce81c642..b3f0f02a4c4 100644 --- a/drivers/storage/CMakeLists.txt +++ b/drivers/storage/CMakeLists.txt @@ -1,4 +1,5 @@ add_subdirectory(class) add_subdirectory(floppy) add_subdirectory(ide) +add_subdirectory(mountmgr) add_subdirectory(port) diff --git a/drivers/filters/mountmgr/CMakeLists.txt b/drivers/storage/mountmgr/CMakeLists.txt similarity index 100% rename from drivers/filters/mountmgr/CMakeLists.txt rename to drivers/storage/mountmgr/CMakeLists.txt diff --git a/drivers/filters/mountmgr/database.c b/drivers/storage/mountmgr/database.c similarity index 100% rename from drivers/filters/mountmgr/database.c rename to drivers/storage/mountmgr/database.c diff --git a/drivers/filters/mountmgr/device.c b/drivers/storage/mountmgr/device.c similarity index 100% rename from drivers/filters/mountmgr/device.c rename to drivers/storage/mountmgr/device.c diff --git a/drivers/filters/mountmgr/mntmgr.h b/drivers/storage/mountmgr/mntmgr.h similarity index 100% rename from drivers/filters/mountmgr/mntmgr.h rename to drivers/storage/mountmgr/mntmgr.h diff --git a/drivers/filters/mountmgr/mountmgr.c b/drivers/storage/mountmgr/mountmgr.c similarity index 100% rename from drivers/filters/mountmgr/mountmgr.c rename to drivers/storage/mountmgr/mountmgr.c diff --git a/drivers/filters/mountmgr/mountmgr.rc b/drivers/storage/mountmgr/mountmgr.rc similarity index 100% rename from drivers/filters/mountmgr/mountmgr.rc rename to drivers/storage/mountmgr/mountmgr.rc diff --git a/drivers/filters/mountmgr/notify.c b/drivers/storage/mountmgr/notify.c similarity index 100% rename from drivers/filters/mountmgr/notify.c rename to drivers/storage/mountmgr/notify.c diff --git a/drivers/filters/mountmgr/point.c b/drivers/storage/mountmgr/point.c similarity index 100% rename from drivers/filters/mountmgr/point.c rename to drivers/storage/mountmgr/point.c diff --git a/drivers/filters/mountmgr/symlink.c b/drivers/storage/mountmgr/symlink.c similarity index 100% rename from drivers/filters/mountmgr/symlink.c rename to drivers/storage/mountmgr/symlink.c diff --git a/drivers/filters/mountmgr/uniqueid.c b/drivers/storage/mountmgr/uniqueid.c similarity index 100% rename from drivers/filters/mountmgr/uniqueid.c rename to drivers/storage/mountmgr/uniqueid.c
4 years, 1 month
1
0
0
0
← Newer
1
...
12
13
14
15
16
17
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Results per page:
10
25
50
100
200