Reactos

[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

+4045 -2385
+1
sdk/lib/drivers/CMakeLists.txt
··· 11 11 add_subdirectory(rtlver) 12 12 add_subdirectory(rxce) 13 13 add_subdirectory(sound) 14 + add_subdirectory(wdf)
+217
sdk/lib/drivers/wdf/CMakeLists.txt
··· 1 + 2 + remove_definitions(-D_WIN32_WINNT=0x502) 3 + 4 + list(APPEND SOURCE_SHARED 5 + shared/core/fxcxdeviceinit.cpp 6 + # shared/core/fxcxdeviceinitapi.cpp 7 + shared/core/fxdevice.cpp 8 + shared/core/fxdeviceapi.cpp 9 + shared/core/fxdevicebase.cpp 10 + shared/core/fxdevicecontrolapi.cpp 11 + shared/core/fxdeviceinit.cpp 12 + shared/core/fxdeviceinitapi.cpp 13 + shared/core/fxdisposelist.cpp 14 + shared/core/fxdriver.cpp 15 + shared/core/fxdriverapi.cpp 16 + shared/core/fxfileobject.cpp 17 + shared/core/fxfileobjectapi.cpp 18 + shared/core/fxirpqueue.cpp 19 + # shared/core/fxlock.cpp 20 + shared/core/fxlookasidelist.cpp 21 + shared/core/fxlookasidelistapi.cpp 22 + shared/core/fxmemorybuffer.cpp 23 + shared/core/fxmemorybufferapi.cpp 24 + shared/core/fxmemorybufferfromlookaside.cpp 25 + shared/core/fxmemorybufferfrompool.cpp 26 + shared/core/fxmemorybufferpreallocated.cpp 27 + shared/core/fxmemorybufferpreallocatedapi.cpp 28 + shared/core/fxmemoryobject.cpp 29 + shared/core/fxpagedlookasidelist.cpp 30 + shared/core/fxrequest.cpp 31 + shared/core/fxrequestapi.cpp 32 + shared/core/fxrequestbase.cpp 33 + shared/core/fxrequestcontext.cpp 34 + shared/core/fxrequestmemory.cpp 35 + shared/core/fxrequestoutputbuffer.cpp 36 + shared/core/fxrequestsystembuffer.cpp 37 + shared/core/fxsyncrequest.cpp 38 + shared/core/fxsystemworkitem.cpp 39 + shared/core/fxtimer.cpp 40 + shared/core/fxtimerapi.cpp 41 + shared/core/fxworkitem.cpp 42 + shared/core/fxworkitemapi.cpp 43 + # shared/core/verifierapi.cpp 44 + shared/irphandlers/default/fxdefaultirphandler.cpp 45 + shared/irphandlers/general/fxpkggeneral.cpp 46 + shared/irphandlers/io/fxioqueue.cpp 47 + shared/irphandlers/io/fxioqueueapi.cpp 48 + shared/irphandlers/io/fxpkgio.cpp 49 + shared/irphandlers/package/fxpackage.cpp 50 + # shared/irphandlers/pnp/devicepwrreqstatemachine.cpp 51 + shared/irphandlers/pnp/eventqueue.cpp 52 + shared/irphandlers/pnp/fdopower.cpp 53 + # shared/irphandlers/pnp/fxinterruptapi.cpp 54 + shared/irphandlers/pnp/fxpkgfdo.cpp 55 + shared/irphandlers/pnp/fxpkgpdo.cpp 56 + shared/irphandlers/pnp/fxpkgpnp.cpp 57 + shared/irphandlers/pnp/interruptobject.cpp 58 + shared/irphandlers/pnp/notpowerpolicyownerstatemachine.cpp 59 + shared/irphandlers/pnp/pdopower.cpp 60 + shared/irphandlers/pnp/pnpstatemachine.cpp 61 + shared/irphandlers/pnp/poweridlestatemachine.cpp 62 + shared/irphandlers/pnp/powerpolicystatemachine.cpp 63 + shared/irphandlers/pnp/powerstatemachine.cpp 64 + shared/irphandlers/pnp/poxinterface.cpp # stubs 65 + shared/irphandlers/pnp/selfmanagediostatemachine.cpp 66 + shared/irphandlers/pnp/wakeinterruptstatemachine.cpp 67 + shared/object/dbgtrace.cpp 68 + shared/object/fxobject.cpp 69 + shared/object/fxobjectapi.cpp 70 + shared/object/fxobjectstatemachine.cpp 71 + shared/object/fxtagtracker.cpp 72 + shared/object/fxuserobject.cpp 73 + shared/object/fxuserobjectapi.cpp 74 + shared/object/fxvalidatefunctions.cpp 75 + shared/object/fxverifierbugcheck.cpp 76 + shared/object/fxverifierlock.cpp 77 + shared/object/globals.cpp 78 + shared/object/handleapi.cpp 79 + shared/object/wdfpool.cpp 80 + shared/support/fxcollection.cpp 81 + shared/support/fxcollectionapi.cpp 82 + # shared/support/fxdeviceinterface.cpp 83 + shared/support/fxdeviceinterfaceapi.cpp 84 + shared/support/fxdevicetext.cpp 85 + shared/support/fxregistryapi.cpp 86 + shared/support/fxregkey.cpp 87 + shared/support/fxrequestbuffer.cpp 88 + # shared/support/fxresourceapi.cpp 89 + shared/support/fxresourcecollection.cpp 90 + shared/support/fxspinlock.cpp 91 + shared/support/fxspinlockapi.cpp 92 + shared/support/fxstring.cpp 93 + shared/support/fxstringapi.cpp 94 + # shared/support/fxtelemetry.cpp 95 + shared/support/fxtransactionedlist.cpp 96 + shared/support/fxwaitlock.cpp 97 + shared/support/fxwaitlockapi.cpp 98 + shared/support/stringutil.cpp 99 + shared/targets/general/fxiotarget.cpp 100 + shared/targets/general/fxiotargetapi.cpp 101 + shared/targets/general/fxiotargetremote.cpp 102 + shared/targets/general/fxiotargetself.cpp 103 + # shared/targets/usb/fxusbdevice.cpp 104 + # shared/targets/usb/fxusbdeviceapi.cpp 105 + # shared/targets/usb/fxusbinterface.cpp 106 + # shared/targets/usb/fxusbinterfaceapi.cpp 107 + # shared/targets/usb/fxusbpipe.cpp 108 + # shared/targets/usb/fxusbpipeapi.cpp 109 + # shared/targets/usb/usbutil.cpp 110 + ) 111 + 112 + list(APPEND SOURCE_KM 113 + kmdf/src/core/fxbugcheckcallback.cpp 114 + kmdf/src/core/fxchildlist.cpp 115 + kmdf/src/core/fxchildlistapi.cpp 116 + kmdf/src/core/fxdevicefdoapi.cpp 117 + kmdf/src/core/fxdevicepdoapi.cpp 118 + kmdf/src/core/fxdpc.cpp 119 + kmdf/src/core/fxdpcapi.cpp 120 + kmdf/src/core/fxsystemthread.cpp 121 + # kmdf/src/core/tracing.cpp 122 + # kmdf/src/dma/base/fxcommonbuffer.cpp # requires DMA stuff 123 + # kmdf/src/dma/base/fxcommonbufferapi.cpp # requires DMA stuff 124 + # kmdf/src/dma/base/fxdmaenabler.cpp 125 + # kmdf/src/dma/base/fxdmaenablerapi.cpp 126 + # kmdf/src/dma/base/fxdmatransaction.cpp 127 + # kmdf/src/dma/base/fxdmatransactionapi.cpp 128 + # kmdf/src/dynamic/version/version.cpp 129 + kmdf/src/fxtosharedinterface/fxobject/fxobjectinfokm.cpp 130 + # kmdf/src/irphandlers/wmi/fxwmiapi.cpp 131 + # kmdf/src/irphandlers/wmi/fxwmiinstance.cpp 132 + # kmdf/src/irphandlers/wmi/fxwmiirphandler.cpp 133 + # kmdf/src/irphandlers/wmi/fxwmiprovider.cpp 134 + # kmdf/src/librarycommon/fxlibrarycommon.cpp 135 + kmdf/src/support/fxqueryinterface.cpp 136 + kmdf/src/support/fxqueryinterfaceapi.cpp 137 + kmdf/src/support/fxrelateddevice.cpp 138 + kmdf/src/support/fxrelateddevicelist.cpp 139 + kmdf/src/support/probeandlock.c 140 + shared/core/km/fxdeviceapikm.cpp 141 + shared/core/km/fxdevicebasekm.cpp 142 + shared/core/km/fxdeviceinitkm.cpp 143 + shared/core/km/fxdevicekm.cpp 144 + shared/core/km/fxdriverapikm.cpp 145 + shared/core/km/fxdriverkm.cpp 146 + shared/core/km/fxfileobjectapikm.cpp 147 + shared/core/km/fxfileobjectkm.cpp 148 + shared/core/km/fxnpagedlookasidelistkm.cpp 149 + shared/core/km/fxrequestkm.cpp 150 + shared/core/km/fxrequestsystembufferkm.cpp 151 + shared/irphandlers/io/km/fxioqueuekm.cpp 152 + shared/irphandlers/pnp/km/eventqueuekm.cpp 153 + shared/irphandlers/pnp/km/fxpkgfdokm.cpp 154 + shared/irphandlers/pnp/km/fxpkgpdokm.cpp 155 + shared/irphandlers/pnp/km/fxpkgpnpkm.cpp 156 + shared/irphandlers/pnp/km/interruptobjectkm.cpp 157 + shared/irphandlers/pnp/km/pnpstatemachinekm.cpp 158 + shared/irphandlers/pnp/km/powerpolicystatemachinekm.cpp 159 + shared/irphandlers/pnp/km/powerstatemachinekm.cpp # stubs 160 + # shared/irphandlers/pnp/km/poxinterfacekm.cpp 161 + shared/irphandlers/pnp/km/supportkm.cpp 162 + shared/object/km/fxobjectkm.cpp 163 + shared/object/km/globalskm.cpp 164 + shared/object/km/wdfpoolkm.cpp 165 + shared/primitives/km/mxgeneralkm.cpp 166 + shared/support/km/fxdeviceinterfacekm.cpp 167 + shared/support/km/fxregkeykm.cpp 168 + shared/support/km/fxrequestbufferkm.cpp 169 + shared/support/km/fxresourcecollectionkm.cpp 170 + # shared/support/km/fxtelemetrykm.cpp 171 + shared/targets/general/fxiotarget.cpp 172 + shared/targets/general/fxiotargetapi.cpp 173 + shared/targets/general/fxiotargetremote.cpp 174 + shared/targets/general/fxiotargetself.cpp 175 + shared/targets/general/km/fxiotargetapikm.cpp 176 + shared/targets/general/km/fxiotargetkm.cpp 177 + shared/targets/general/km/fxiotargetremotekm.cpp 178 + reactos_special.cpp 179 + ) 180 + 181 + # add_library(wdf01000 MODULE ${SOURCE}) 182 + 183 + # set_module_type(wdf01000 kernelmodedriver ENTRYPOINT 0) 184 + # add_importlibs(wdf01000 ntoskrnl hal wdfldr) 185 + # add_cd_file(TARGET wdf01000 DESTINATION reactos/system32/drivers FOR all) 186 + # add_registry_inf(wdf01000_reg.inf) 187 + 188 + add_library(wdf01000 ${SOURCE_SHARED} ${SOURCE_KM}) 189 + 190 + target_compile_definitions(wdf01000 191 + PUBLIC WDF_DEVICE_NO_WDMSEC_H _WIN32_WINNT=0x603 NTDDI_VERSION=0x06030000 # NTDDI_WINBLUE 192 + PRIVATE FX_CORE_MODE=1 FX_CORE_KERNEL_MODE=1 193 + PRIVATE __WDF_MAJOR_VERSION=1 __WDF_MINOR_VERSION=17 __WDF_BUILD_NUMBER=7600) 194 + 195 + target_include_directories(wdf01000 196 + PUBLIC ${REACTOS_SOURCE_DIR}/sdk/include/wdf/kmdf/1.17 197 + PRIVATE 198 + shared/inc/primitives/common 199 + shared/inc/primitives/km 200 + shared/inc/private/common 201 + shared/inc/private/km 202 + kmdf/inc/private 203 + shared/object # fxobjectpch.hpp 204 + shared/support # fxsupportpch.hpp 205 + shared/core # coreprivshared.hpp 206 + shared/irphandlers # irphandlerspriv.hpp 207 + shared/irphandlers/pnp # pnppriv.hpp 208 + shared/irphandlers/pnp/km # pnpprivkm.hpp 209 + ) 210 + 211 + target_link_libraries(wdf01000 ntoskrnl_vista ${PSEH_LIB}) 212 + 213 + if(GCC) 214 + target_compile_options(wdf01000 215 + PRIVATE -Wno-write-strings -Wno-unknown-pragmas -Wno-switch 216 + PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-Wno-reorder -Wno-invalid-offsetof -Wno-delete-non-virtual-dtor>) 217 + endif()
+105 -99
sdk/lib/drivers/wdf/kmdf/inc/private/fx.hpp
··· 28 28 #include "mx.h" 29 29 } 30 30 31 - #include "FxMacros.hpp" 31 + #include "fxmacros.hpp" 32 32 33 33 extern "C" { 34 34 #include "wdf.h" 35 - #include "wdmsec.h" 35 + // #include "wdmsec.h" 36 36 #include "wdmguid.h" 37 37 38 - #include "wdfdevicepri.h" 39 - #include "wdfiotargetpri.h" 38 + // #include "wdfdevicepri.h" 39 + // #include "wdfiotargetpri.h" 40 40 #include "wdfcx.h" 41 41 #include "wdfldr.h" 42 42 43 - #include <FxDynamicsWrapper.h> 43 + #include <fxdynamicswrapper.h> 44 44 45 45 #include "wdf10.h" 46 46 #include "wdf11.h" ··· 57 57 // Integer overflow functions 58 58 #include "ntintsafe.h" 59 59 60 - #include "FxForward.hpp" 60 + #include "fxforward.hpp" 61 61 62 62 //KMDF defines for shared type names 63 - #include "FxTypeDefsKm.hpp" 63 + #include "fxtypedefskm.hpp" 64 64 65 + // #include "fxwmicompat.h" 66 + // #include "fxtrace.h" 67 + #if defined(EVENT_TRACING) 65 68 #include "fxwmicompat.h" 66 69 #include "fxtrace.h" 70 + #else 71 + #include "dbgtrace.h" 72 + #endif // EVENT_TRACING 67 73 #include "fxtypes.h" 68 74 #include "fxrequestcontexttypes.h" 69 75 #include "fxpool.h" 70 - #include "FxGlobalsKM.h" 71 - #include "FxPoolInlines.hpp" 76 + #include "fxglobalskm.h" 77 + #include "fxpoolinlines.hpp" 72 78 #include "fxverifier.h" 73 79 #include "fxverifierkm.h" 74 - #include "FxMdl.h" 75 - #include "FxProbeAndLock.h" 80 + #include "fxmdl.h" 81 + #include "fxprobeandlock.h" 76 82 77 - #include "FxPerfTraceKm.hpp" 78 - #include "DriverFrameworks-KernelMode-KmEvents.h" 83 + #include "fxperftracekm.hpp" 84 + // #include "DriverFrameworks-KernelMode-KmEvents.h" 79 85 80 - #include <NtStrSafe.h> 86 + #include <ntstrsafe.h> 81 87 82 - #include "FxStump.hpp" 88 + #include "fxstump.hpp" 83 89 84 - #include "FxRequestBuffer.hpp" 90 + #include "fxrequestbuffer.hpp" 85 91 86 - #include "FxTagTracker.hpp" 92 + #include "fxtagtracker.hpp" 87 93 88 94 // internal locks 89 - #include "FxVerifierLock.hpp" 90 - #include "FxLock.hpp" 95 + #include "fxverifierlock.hpp" 96 + #include "fxlock.hpp" 91 97 92 98 // base objects 93 99 #include "fxobject.hpp" 94 - #include "FxPagedObject.hpp" 95 - #include "FxNonPagedObject.hpp" 100 + #include "fxpagedobject.hpp" 101 + #include "fxnonpagedobject.hpp" 96 102 97 103 #include "fxhandle.h" 98 104 99 105 // external locks 100 - #include "FxWaitLock.hpp" 101 - #include "FxSpinLock.hpp" 106 + #include "fxwaitlock.hpp" 107 + #include "fxspinlock.hpp" 102 108 103 109 // utitilty classes and functions 104 - #include "FxTransactionedList.hpp" 105 - #include "FxRelatedDeviceList.hpp" 106 - #include "FxDisposeList.hpp" 107 - #include "FxCollection.hpp" 108 - #include "StringUtil.hpp" 110 + #include "fxtransactionedlist.hpp" 111 + #include "fxrelateddevicelist.hpp" 112 + #include "fxdisposelist.hpp" 113 + #include "fxcollection.hpp" 114 + #include "stringutil.hpp" 109 115 110 116 // abstract classes 111 - #include "IFxHasCallbacks.hpp" 117 + #include "ifxhascallbacks.hpp" 112 118 113 119 // callback delegation and locking 114 - #include "FxSystemThread.hpp" 115 - #include "FxSystemWorkItem.hpp" 116 - #include "FxCallbackLock.hpp" 117 - #include "FxCallbackSpinLock.hpp" 118 - #include "FxCallbackMutexLock.hpp" 119 - #include "FxCallback.hpp" 120 - #include "FxSystemThread.hpp" 120 + #include "fxsystemthread.hpp" 121 + #include "fxsystemworkitem.hpp" 122 + #include "fxcallbacklock.hpp" 123 + #include "fxcallbackspinlock.hpp" 124 + #include "fxcallbackmutexlock.hpp" 125 + #include "fxcallback.hpp" 126 + #include "fxsystemthread.hpp" 121 127 122 - #include "IFxMemory.hpp" 123 - #include "FxLookasideList.hpp" 124 - #include "FxNPagedLookasideList.hpp" 125 - #include "FxPagedLookasideList.hpp" 126 - #include "FxMemoryObject.hpp" 127 - #include "FxMemoryBuffer.hpp" 128 - #include "FxMemoryBufferFromPool.hpp" 129 - #include "FxMemoryBufferPreallocated.hpp" 130 - #include "FxMemoryBufferFromLookaside.hpp" 131 - #include "FxRequestMemory.hpp" 132 - #include "FxRegKey.hpp" 133 - #include "FxAutoRegistry.hpp" 134 - #include "FxAutoString.hpp" 135 - #include "FxString.hpp" 128 + #include "ifxmemory.hpp" 129 + #include "fxlookasidelist.hpp" 130 + #include "fxnpagedlookasidelist.hpp" 131 + #include "fxpagedlookasidelist.hpp" 132 + #include "fxmemoryobject.hpp" 133 + #include "fxmemorybuffer.hpp" 134 + #include "fxmemorybufferfrompool.hpp" 135 + #include "fxmemorybufferpreallocated.hpp" 136 + #include "fxmemorybufferfromlookaside.hpp" 137 + #include "fxrequestmemory.hpp" 138 + #include "fxregkey.hpp" 139 + #include "fxautoregistry.hpp" 140 + #include "fxautostring.hpp" 141 + #include "fxstring.hpp" 136 142 137 - #include "FxValidateFunctions.hpp" 138 - #include "FxRequestValidateFunctions.hpp" 143 + #include "fxvalidatefunctions.hpp" 144 + #include "fxrequestvalidatefunctions.hpp" 139 145 140 - #include "FxResource.hpp" 141 - #include "FxRelatedDevice.hpp" 142 - #include "FxDeviceInterface.hpp" 143 - #include "FxQueryInterface.hpp" 144 - #include "FxDeviceText.hpp" 146 + #include "fxresource.hpp" 147 + #include "fxrelateddevice.hpp" 148 + #include "fxdeviceinterface.hpp" 149 + #include "fxqueryinterface.hpp" 150 + #include "fxdevicetext.hpp" 145 151 146 - #include "FxIrp.hpp" 147 - #include "FxDriver.hpp" 152 + #include "fxirp.hpp" 153 + #include "fxdriver.hpp" 148 154 149 155 // generic package interface 150 - #include "FxPackage.hpp" 151 - #include "FxPkgGeneral.hpp" 152 - #include "FxDefaultIrpHandler.hpp" 153 - #include "FxPkgPnp.hpp" 154 - #include "FxWatchDog.hpp" 156 + #include "fxpackage.hpp" 157 + #include "fxpkggeneral.hpp" 158 + #include "fxdefaultirphandler.hpp" 159 + #include "fxpkgpnp.hpp" 160 + #include "fxwatchdog.hpp" 155 161 156 162 // Device support 157 - #include "FxChildList.hpp" 158 - #include "FxCxDeviceInfo.hpp" 159 - #include "FxDevice.hpp" 163 + #include "fxchildlist.hpp" 164 + #include "fxcxdeviceinfo.hpp" 165 + #include "fxdevice.hpp" 160 166 161 - #include "FxPkgIo.hpp" 167 + #include "fxpkgio.hpp" 162 168 163 - #include "FxDeviceToMxInterface.hpp" 169 + #include "fxdevicetomxinterface.hpp" 164 170 165 - #include "FxIrpQueue.hpp" 166 - #include "FxRequestContext.hpp" 167 - #include "FxRequestCallbacks.hpp" 168 - #include "FxRequestBase.hpp" 169 - #include "FxRequest.hpp" 170 - #include "FxSyncRequest.hpp" 171 + #include "fxirpqueue.hpp" 172 + #include "fxrequestcontext.hpp" 173 + #include "fxrequestcallbacks.hpp" 174 + #include "fxrequestbase.hpp" 175 + #include "fxrequest.hpp" 176 + #include "fxsyncrequest.hpp" 171 177 172 178 // specialized irp handlers (ie packages) 173 - #include "FxPkgFdo.hpp" 174 - #include "FxPkgPdo.hpp" 175 - #include "FxWmiIrpHandler.hpp" 176 - #include "FxWmiProvider.hpp" 177 - #include "FxWmiInstance.hpp" 179 + #include "fxpkgfdo.hpp" 180 + #include "fxpkgpdo.hpp" 181 + #include "fxwmiirphandler.hpp" 182 + #include "fxwmiprovider.hpp" 183 + #include "fxwmiinstance.hpp" 178 184 179 185 // queus for read, write, (internal) IOCTL 180 - #include "FxIoQueue.hpp" 181 - #include "FxFileObject.hpp" 182 - #include "FxIrpPreprocessInfo.hpp" 183 - #include "FxIrpDynamicDispatchInfo.hpp" 186 + #include "fxioqueue.hpp" 187 + #include "fxfileobject.hpp" 188 + #include "fxirppreprocessinfo.hpp" 189 + #include "fxirpdynamicdispatchinfo.hpp" 184 190 185 - #include "FxDpc.hpp" 186 - #include "FxWorkItem.hpp" 187 - #include "FxTimer.hpp" 188 - #include "FxInterruptKm.hpp" 191 + #include "fxdpc.hpp" 192 + #include "fxworkitem.hpp" 193 + #include "fxtimer.hpp" 194 + #include "fxinterruptkm.hpp" 189 195 190 196 // IO targets (device lower edge interface) 191 - #include "FxIoTarget.hpp" 192 - #include "FxIoTargetRemote.hpp" 193 - #include "FxIoTargetSelf.hpp" 197 + #include "fxiotarget.hpp" 198 + #include "fxiotargetremote.hpp" 199 + #include "fxiotargetself.hpp" 194 200 195 - #include "FxUsbDevice.hpp" 196 - #include "FxUsbInterface.hpp" 197 - #include "FxUsbPipe.hpp" 201 + #include "fxusbdevice.hpp" 202 + #include "fxusbinterface.hpp" 203 + #include "fxusbpipe.hpp" 198 204 199 205 // DMA support 200 - #include "FxDmaEnabler.hpp" 201 - #include "FxDmaTransaction.hpp" 202 - #include "FxCommonBuffer.hpp" 206 + #include "fxdmaenabler.hpp" 207 + #include "fxdmatransaction.hpp" 208 + #include "fxcommonbuffer.hpp" 203 209 204 210 // Triage info. 205 - #include "wdftriage.h" 211 + // #include "wdftriage.h" 206 212 207 - #include "FxTelemetry.hpp" 213 + #include "fxtelemetry.hpp" 208 214 #endif // _FX_H
+8 -4
sdk/lib/drivers/wdf/kmdf/inc/private/fxdmatransaction.hpp
··· 5 5 #define _FXDMATRANSACTION_HPP_ 6 6 7 7 extern "C" { 8 - #include "FxDmaTransaction.hpp.tmh" 8 + // #include "FxDmaTransaction.hpp.tmh" 9 9 } 10 10 11 - #include "FxDmaTransactionCallbacks.hpp" 11 + #include "fxdmatransactioncallbacks.hpp" 12 12 13 13 // 14 14 // This type is used to allocate scatter-gather list of 1 element on the stack. 15 15 // 16 - typedef __declspec(align(MEMORY_ALLOCATION_ALIGNMENT))UCHAR UCHAR_MEMORY_ALIGNED; 16 + typedef DECLSPEC_ALIGN(MEMORY_ALLOCATION_ALIGNMENT) UCHAR UCHAR_MEMORY_ALIGNED; 17 17 18 18 // begin_wpp enum 19 19 ··· 912 912 protected: 913 913 914 914 inline 915 + void 915 916 SetMapRegisterBase( 916 917 __in PVOID Value 917 918 ) ··· 924 925 } 925 926 926 927 inline 928 + void 927 929 ClearMapRegisterBase( 928 930 VOID 929 931 ) ··· 934 936 } 935 937 936 938 inline 939 + BOOLEAN 937 940 IsMapRegisterBaseSet( 938 941 VOID 939 942 ) ··· 1005 1008 1006 1009 static 1007 1010 IO_ALLOCATION_ACTION 1011 + STDCALL 1008 1012 _AdapterControl( 1009 1013 __in PDEVICE_OBJECT DeviceObject, 1010 1014 __in PIRP Irp, ··· 1528 1532 VOID 1529 1533 ) 1530 1534 { 1531 - __super::Reuse(); 1535 + FxDmaPacketTransaction::Reuse(); // __super call 1532 1536 m_ConfigureChannelFunction.Method = NULL; 1533 1537 m_ConfigureChannelContext = NULL; 1534 1538
+1046 -286
sdk/lib/drivers/wdf/kmdf/inc/private/fxdynamics.h
··· 14 14 #ifndef _FXDYNAMICS_H_ 15 15 #define _FXDYNAMICS_H_ 16 16 17 + typedef WDFAPI NTSTATUS 18 + (STDCALL *PFN_ROSWDFUNIMPLEMENTED)(VOID); 19 + 20 + WDFAPI 21 + NTSTATUS 22 + STDCALL 23 + WdfApiNotImplemented(); 24 + 17 25 18 26 typedef struct _WDFFUNCTIONS { 19 27 ··· 38 46 PFN_WDFCOLLECTIONGETITEM pfnWdfCollectionGetItem; 39 47 PFN_WDFCOLLECTIONGETFIRSTITEM pfnWdfCollectionGetFirstItem; 40 48 PFN_WDFCOLLECTIONGETLASTITEM pfnWdfCollectionGetLastItem; 41 - PFN_WDFCOMMONBUFFERCREATE pfnWdfCommonBufferCreate; 42 - PFN_WDFCOMMONBUFFERGETALIGNEDVIRTUALADDRESS pfnWdfCommonBufferGetAlignedVirtualAddress; 43 - PFN_WDFCOMMONBUFFERGETALIGNEDLOGICALADDRESS pfnWdfCommonBufferGetAlignedLogicalAddress; 44 - PFN_WDFCOMMONBUFFERGETLENGTH pfnWdfCommonBufferGetLength; 49 + // PFN_WDFCOMMONBUFFERCREATE pfnWdfCommonBufferCreate; 50 + // PFN_WDFCOMMONBUFFERGETALIGNEDVIRTUALADDRESS pfnWdfCommonBufferGetAlignedVirtualAddress; 51 + // PFN_WDFCOMMONBUFFERGETALIGNEDLOGICALADDRESS pfnWdfCommonBufferGetAlignedLogicalAddress; 52 + // PFN_WDFCOMMONBUFFERGETLENGTH pfnWdfCommonBufferGetLength; 53 + PFN_ROSWDFUNIMPLEMENTED pfnWdfCommonBufferCreate; 54 + PFN_ROSWDFUNIMPLEMENTED pfnWdfCommonBufferGetAlignedVirtualAddress; 55 + PFN_ROSWDFUNIMPLEMENTED pfnWdfCommonBufferGetAlignedLogicalAddress; 56 + PFN_ROSWDFUNIMPLEMENTED pfnWdfCommonBufferGetLength; 57 + 45 58 PFN_WDFCONTROLDEVICEINITALLOCATE pfnWdfControlDeviceInitAllocate; 46 59 PFN_WDFCONTROLDEVICEINITSETSHUTDOWNNOTIFICATION pfnWdfControlDeviceInitSetShutdownNotification; 47 60 PFN_WDFCONTROLFINISHINITIALIZING pfnWdfControlFinishInitializing; ··· 111 124 PFN_WDFDEVICEENQUEUEREQUEST pfnWdfDeviceEnqueueRequest; 112 125 PFN_WDFDEVICEGETDEFAULTQUEUE pfnWdfDeviceGetDefaultQueue; 113 126 PFN_WDFDEVICECONFIGUREREQUESTDISPATCHING pfnWdfDeviceConfigureRequestDispatching; 114 - PFN_WDFDMAENABLERCREATE pfnWdfDmaEnablerCreate; 115 - PFN_WDFDMAENABLERGETMAXIMUMLENGTH pfnWdfDmaEnablerGetMaximumLength; 116 - PFN_WDFDMAENABLERGETMAXIMUMSCATTERGATHERELEMENTS pfnWdfDmaEnablerGetMaximumScatterGatherElements; 117 - PFN_WDFDMAENABLERSETMAXIMUMSCATTERGATHERELEMENTS pfnWdfDmaEnablerSetMaximumScatterGatherElements; 118 - PFN_WDFDMATRANSACTIONCREATE pfnWdfDmaTransactionCreate; 119 - PFN_WDFDMATRANSACTIONINITIALIZE pfnWdfDmaTransactionInitialize; 120 - PFN_WDFDMATRANSACTIONINITIALIZEUSINGREQUEST pfnWdfDmaTransactionInitializeUsingRequest; 121 - PFN_WDFDMATRANSACTIONEXECUTE pfnWdfDmaTransactionExecute; 122 - PFN_WDFDMATRANSACTIONRELEASE pfnWdfDmaTransactionRelease; 123 - PFN_WDFDMATRANSACTIONDMACOMPLETED pfnWdfDmaTransactionDmaCompleted; 124 - PFN_WDFDMATRANSACTIONDMACOMPLETEDWITHLENGTH pfnWdfDmaTransactionDmaCompletedWithLength; 125 - PFN_WDFDMATRANSACTIONDMACOMPLETEDFINAL pfnWdfDmaTransactionDmaCompletedFinal; 126 - PFN_WDFDMATRANSACTIONGETBYTESTRANSFERRED pfnWdfDmaTransactionGetBytesTransferred; 127 - PFN_WDFDMATRANSACTIONSETMAXIMUMLENGTH pfnWdfDmaTransactionSetMaximumLength; 128 - PFN_WDFDMATRANSACTIONGETREQUEST pfnWdfDmaTransactionGetRequest; 129 - PFN_WDFDMATRANSACTIONGETCURRENTDMATRANSFERLENGTH pfnWdfDmaTransactionGetCurrentDmaTransferLength; 130 - PFN_WDFDMATRANSACTIONGETDEVICE pfnWdfDmaTransactionGetDevice; 127 + // PFN_WDFDMAENABLERCREATE pfnWdfDmaEnablerCreate; 128 + // PFN_WDFDMAENABLERGETMAXIMUMLENGTH pfnWdfDmaEnablerGetMaximumLength; 129 + // PFN_WDFDMAENABLERGETMAXIMUMSCATTERGATHERELEMENTS pfnWdfDmaEnablerGetMaximumScatterGatherElements; 130 + // PFN_WDFDMAENABLERSETMAXIMUMSCATTERGATHERELEMENTS pfnWdfDmaEnablerSetMaximumScatterGatherElements; 131 + // PFN_WDFDMATRANSACTIONCREATE pfnWdfDmaTransactionCreate; 132 + // PFN_WDFDMATRANSACTIONINITIALIZE pfnWdfDmaTransactionInitialize; 133 + // PFN_WDFDMATRANSACTIONINITIALIZEUSINGREQUEST pfnWdfDmaTransactionInitializeUsingRequest; 134 + // PFN_WDFDMATRANSACTIONEXECUTE pfnWdfDmaTransactionExecute; 135 + // PFN_WDFDMATRANSACTIONRELEASE pfnWdfDmaTransactionRelease; 136 + // PFN_WDFDMATRANSACTIONDMACOMPLETED pfnWdfDmaTransactionDmaCompleted; 137 + // PFN_WDFDMATRANSACTIONDMACOMPLETEDWITHLENGTH pfnWdfDmaTransactionDmaCompletedWithLength; 138 + // PFN_WDFDMATRANSACTIONDMACOMPLETEDFINAL pfnWdfDmaTransactionDmaCompletedFinal; 139 + // PFN_WDFDMATRANSACTIONGETBYTESTRANSFERRED pfnWdfDmaTransactionGetBytesTransferred; 140 + // PFN_WDFDMATRANSACTIONSETMAXIMUMLENGTH pfnWdfDmaTransactionSetMaximumLength; 141 + // PFN_WDFDMATRANSACTIONGETREQUEST pfnWdfDmaTransactionGetRequest; 142 + // PFN_WDFDMATRANSACTIONGETCURRENTDMATRANSFERLENGTH pfnWdfDmaTransactionGetCurrentDmaTransferLength; 143 + // PFN_WDFDMATRANSACTIONGETDEVICE pfnWdfDmaTransactionGetDevice; 144 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaEnablerCreate; 145 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaEnablerGetMaximumLength; 146 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaEnablerGetMaximumScatterGatherElements; 147 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaEnablerSetMaximumScatterGatherElements; 148 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionCreate; 149 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionInitialize; 150 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionInitializeUsingRequest; 151 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionExecute; 152 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionRelease; 153 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionDmaCompleted; 154 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionDmaCompletedWithLength; 155 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionDmaCompletedFinal; 156 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionGetBytesTransferred; 157 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionSetMaximumLength; 158 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionGetRequest; 159 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionGetCurrentDmaTransferLength; 160 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionGetDevice; 161 + 131 162 PFN_WDFDPCCREATE pfnWdfDpcCreate; 132 163 PFN_WDFDPCENQUEUE pfnWdfDpcEnqueue; 133 164 PFN_WDFDPCCANCEL pfnWdfDpcCancel; ··· 158 189 PFN_WDFFILEOBJECTGETFLAGS pfnWdfFileObjectGetFlags; 159 190 PFN_WDFFILEOBJECTGETDEVICE pfnWdfFileObjectGetDevice; 160 191 PFN_WDFFILEOBJECTWDMGETFILEOBJECT pfnWdfFileObjectWdmGetFileObject; 161 - PFN_WDFINTERRUPTCREATE pfnWdfInterruptCreate; 162 - PFN_WDFINTERRUPTQUEUEDPCFORISR pfnWdfInterruptQueueDpcForIsr; 163 - PFN_WDFINTERRUPTSYNCHRONIZE pfnWdfInterruptSynchronize; 164 - PFN_WDFINTERRUPTACQUIRELOCK pfnWdfInterruptAcquireLock; 165 - PFN_WDFINTERRUPTRELEASELOCK pfnWdfInterruptReleaseLock; 166 - PFN_WDFINTERRUPTENABLE pfnWdfInterruptEnable; 167 - PFN_WDFINTERRUPTDISABLE pfnWdfInterruptDisable; 168 - PFN_WDFINTERRUPTWDMGETINTERRUPT pfnWdfInterruptWdmGetInterrupt; 169 - PFN_WDFINTERRUPTGETINFO pfnWdfInterruptGetInfo; 170 - PFN_WDFINTERRUPTSETPOLICY pfnWdfInterruptSetPolicy; 171 - PFN_WDFINTERRUPTGETDEVICE pfnWdfInterruptGetDevice; 192 + // PFN_WDFINTERRUPTCREATE pfnWdfInterruptCreate; 193 + // PFN_WDFINTERRUPTQUEUEDPCFORISR pfnWdfInterruptQueueDpcForIsr; 194 + // PFN_WDFINTERRUPTSYNCHRONIZE pfnWdfInterruptSynchronize; 195 + // PFN_WDFINTERRUPTACQUIRELOCK pfnWdfInterruptAcquireLock; 196 + // PFN_WDFINTERRUPTRELEASELOCK pfnWdfInterruptReleaseLock; 197 + // PFN_WDFINTERRUPTENABLE pfnWdfInterruptEnable; 198 + // PFN_WDFINTERRUPTDISABLE pfnWdfInterruptDisable; 199 + // PFN_WDFINTERRUPTWDMGETINTERRUPT pfnWdfInterruptWdmGetInterrupt; 200 + // PFN_WDFINTERRUPTGETINFO pfnWdfInterruptGetInfo; 201 + // PFN_WDFINTERRUPTSETPOLICY pfnWdfInterruptSetPolicy; 202 + // PFN_WDFINTERRUPTGETDEVICE pfnWdfInterruptGetDevice; 203 + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptCreate; 204 + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptQueueDpcForIsr; 205 + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptSynchronize; 206 + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptAcquireLock; 207 + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptReleaseLock; 208 + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptEnable; 209 + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptDisable; 210 + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptWdmGetInterrupt; 211 + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptGetInfo; 212 + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptSetPolicy; 213 + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptGetDevice; 214 + 172 215 PFN_WDFIOQUEUECREATE pfnWdfIoQueueCreate; 173 216 PFN_WDFIOQUEUEGETSTATE pfnWdfIoQueueGetState; 174 217 PFN_WDFIOQUEUESTART pfnWdfIoQueueStart; ··· 303 346 PFN_WDFREQUESTREQUEUE pfnWdfRequestRequeue; 304 347 PFN_WDFREQUESTSTOPACKNOWLEDGE pfnWdfRequestStopAcknowledge; 305 348 PFN_WDFREQUESTWDMGETIRP pfnWdfRequestWdmGetIrp; 306 - PFN_WDFIORESOURCEREQUIREMENTSLISTSETSLOTNUMBER pfnWdfIoResourceRequirementsListSetSlotNumber; 307 - PFN_WDFIORESOURCEREQUIREMENTSLISTSETINTERFACETYPE pfnWdfIoResourceRequirementsListSetInterfaceType; 308 - PFN_WDFIORESOURCEREQUIREMENTSLISTAPPENDIORESLIST pfnWdfIoResourceRequirementsListAppendIoResList; 309 - PFN_WDFIORESOURCEREQUIREMENTSLISTINSERTIORESLIST pfnWdfIoResourceRequirementsListInsertIoResList; 310 - PFN_WDFIORESOURCEREQUIREMENTSLISTGETCOUNT pfnWdfIoResourceRequirementsListGetCount; 311 - PFN_WDFIORESOURCEREQUIREMENTSLISTGETIORESLIST pfnWdfIoResourceRequirementsListGetIoResList; 312 - PFN_WDFIORESOURCEREQUIREMENTSLISTREMOVE pfnWdfIoResourceRequirementsListRemove; 313 - PFN_WDFIORESOURCEREQUIREMENTSLISTREMOVEBYIORESLIST pfnWdfIoResourceRequirementsListRemoveByIoResList; 314 - PFN_WDFIORESOURCELISTCREATE pfnWdfIoResourceListCreate; 315 - PFN_WDFIORESOURCELISTAPPENDDESCRIPTOR pfnWdfIoResourceListAppendDescriptor; 316 - PFN_WDFIORESOURCELISTINSERTDESCRIPTOR pfnWdfIoResourceListInsertDescriptor; 317 - PFN_WDFIORESOURCELISTUPDATEDESCRIPTOR pfnWdfIoResourceListUpdateDescriptor; 318 - PFN_WDFIORESOURCELISTGETCOUNT pfnWdfIoResourceListGetCount; 319 - PFN_WDFIORESOURCELISTGETDESCRIPTOR pfnWdfIoResourceListGetDescriptor; 320 - PFN_WDFIORESOURCELISTREMOVE pfnWdfIoResourceListRemove; 321 - PFN_WDFIORESOURCELISTREMOVEBYDESCRIPTOR pfnWdfIoResourceListRemoveByDescriptor; 322 - PFN_WDFCMRESOURCELISTAPPENDDESCRIPTOR pfnWdfCmResourceListAppendDescriptor; 323 - PFN_WDFCMRESOURCELISTINSERTDESCRIPTOR pfnWdfCmResourceListInsertDescriptor; 324 - PFN_WDFCMRESOURCELISTGETCOUNT pfnWdfCmResourceListGetCount; 325 - PFN_WDFCMRESOURCELISTGETDESCRIPTOR pfnWdfCmResourceListGetDescriptor; 326 - PFN_WDFCMRESOURCELISTREMOVE pfnWdfCmResourceListRemove; 327 - PFN_WDFCMRESOURCELISTREMOVEBYDESCRIPTOR pfnWdfCmResourceListRemoveByDescriptor; 349 + // PFN_WDFIORESOURCEREQUIREMENTSLISTSETSLOTNUMBER pfnWdfIoResourceRequirementsListSetSlotNumber; 350 + // PFN_WDFIORESOURCEREQUIREMENTSLISTSETINTERFACETYPE pfnWdfIoResourceRequirementsListSetInterfaceType; 351 + // PFN_WDFIORESOURCEREQUIREMENTSLISTAPPENDIORESLIST pfnWdfIoResourceRequirementsListAppendIoResList; 352 + // PFN_WDFIORESOURCEREQUIREMENTSLISTINSERTIORESLIST pfnWdfIoResourceRequirementsListInsertIoResList; 353 + // PFN_WDFIORESOURCEREQUIREMENTSLISTGETCOUNT pfnWdfIoResourceRequirementsListGetCount; 354 + // PFN_WDFIORESOURCEREQUIREMENTSLISTGETIORESLIST pfnWdfIoResourceRequirementsListGetIoResList; 355 + // PFN_WDFIORESOURCEREQUIREMENTSLISTREMOVE pfnWdfIoResourceRequirementsListRemove; 356 + // PFN_WDFIORESOURCEREQUIREMENTSLISTREMOVEBYIORESLIST pfnWdfIoResourceRequirementsListRemoveByIoResList; 357 + // PFN_WDFIORESOURCELISTCREATE pfnWdfIoResourceListCreate; 358 + // PFN_WDFIORESOURCELISTAPPENDDESCRIPTOR pfnWdfIoResourceListAppendDescriptor; 359 + // PFN_WDFIORESOURCELISTINSERTDESCRIPTOR pfnWdfIoResourceListInsertDescriptor; 360 + // PFN_WDFIORESOURCELISTUPDATEDESCRIPTOR pfnWdfIoResourceListUpdateDescriptor; 361 + // PFN_WDFIORESOURCELISTGETCOUNT pfnWdfIoResourceListGetCount; 362 + // PFN_WDFIORESOURCELISTGETDESCRIPTOR pfnWdfIoResourceListGetDescriptor; 363 + // PFN_WDFIORESOURCELISTREMOVE pfnWdfIoResourceListRemove; 364 + // PFN_WDFIORESOURCELISTREMOVEBYDESCRIPTOR pfnWdfIoResourceListRemoveByDescriptor; 365 + // PFN_WDFCMRESOURCELISTAPPENDDESCRIPTOR pfnWdfCmResourceListAppendDescriptor; 366 + // PFN_WDFCMRESOURCELISTINSERTDESCRIPTOR pfnWdfCmResourceListInsertDescriptor; 367 + // PFN_WDFCMRESOURCELISTGETCOUNT pfnWdfCmResourceListGetCount; 368 + // PFN_WDFCMRESOURCELISTGETDESCRIPTOR pfnWdfCmResourceListGetDescriptor; 369 + // PFN_WDFCMRESOURCELISTREMOVE pfnWdfCmResourceListRemove; 370 + // PFN_WDFCMRESOURCELISTREMOVEBYDESCRIPTOR pfnWdfCmResourceListRemoveByDescriptor; 371 + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceRequirementsListSetSlotNumber; 372 + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceRequirementsListSetInterfaceType; 373 + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceRequirementsListAppendIoResList; 374 + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceRequirementsListInsertIoResList; 375 + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceRequirementsListGetCount; 376 + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceRequirementsListGetIoResList; 377 + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceRequirementsListRemove; 378 + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceRequirementsListRemoveByIoResList; 379 + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceListCreate; 380 + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceListAppendDescriptor; 381 + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceListInsertDescriptor; 382 + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceListUpdateDescriptor; 383 + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceListGetCount; 384 + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceListGetDescriptor; 385 + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceListRemove; 386 + PFN_ROSWDFUNIMPLEMENTED pfnWdfIoResourceListRemoveByDescriptor; 387 + PFN_ROSWDFUNIMPLEMENTED pfnWdfCmResourceListAppendDescriptor; 388 + PFN_ROSWDFUNIMPLEMENTED pfnWdfCmResourceListInsertDescriptor; 389 + PFN_ROSWDFUNIMPLEMENTED pfnWdfCmResourceListGetCount; 390 + PFN_ROSWDFUNIMPLEMENTED pfnWdfCmResourceListGetDescriptor; 391 + PFN_ROSWDFUNIMPLEMENTED pfnWdfCmResourceListRemove; 392 + PFN_ROSWDFUNIMPLEMENTED pfnWdfCmResourceListRemoveByDescriptor; 393 + 328 394 PFN_WDFSTRINGCREATE pfnWdfStringCreate; 329 395 PFN_WDFSTRINGGETUNICODESTRING pfnWdfStringGetUnicodeString; 330 396 PFN_WDFOBJECTACQUIRELOCK pfnWdfObjectAcquireLock; ··· 339 405 PFN_WDFTIMERSTART pfnWdfTimerStart; 340 406 PFN_WDFTIMERSTOP pfnWdfTimerStop; 341 407 PFN_WDFTIMERGETPARENTOBJECT pfnWdfTimerGetParentObject; 342 - PFN_WDFUSBTARGETDEVICECREATE pfnWdfUsbTargetDeviceCreate; 343 - PFN_WDFUSBTARGETDEVICERETRIEVEINFORMATION pfnWdfUsbTargetDeviceRetrieveInformation; 344 - PFN_WDFUSBTARGETDEVICEGETDEVICEDESCRIPTOR pfnWdfUsbTargetDeviceGetDeviceDescriptor; 345 - PFN_WDFUSBTARGETDEVICERETRIEVECONFIGDESCRIPTOR pfnWdfUsbTargetDeviceRetrieveConfigDescriptor; 346 - PFN_WDFUSBTARGETDEVICEQUERYSTRING pfnWdfUsbTargetDeviceQueryString; 347 - PFN_WDFUSBTARGETDEVICEALLOCANDQUERYSTRING pfnWdfUsbTargetDeviceAllocAndQueryString; 348 - PFN_WDFUSBTARGETDEVICEFORMATREQUESTFORSTRING pfnWdfUsbTargetDeviceFormatRequestForString; 349 - PFN_WDFUSBTARGETDEVICEGETNUMINTERFACES pfnWdfUsbTargetDeviceGetNumInterfaces; 350 - PFN_WDFUSBTARGETDEVICESELECTCONFIG pfnWdfUsbTargetDeviceSelectConfig; 351 - PFN_WDFUSBTARGETDEVICEWDMGETCONFIGURATIONHANDLE pfnWdfUsbTargetDeviceWdmGetConfigurationHandle; 352 - PFN_WDFUSBTARGETDEVICERETRIEVECURRENTFRAMENUMBER pfnWdfUsbTargetDeviceRetrieveCurrentFrameNumber; 353 - PFN_WDFUSBTARGETDEVICESENDCONTROLTRANSFERSYNCHRONOUSLY pfnWdfUsbTargetDeviceSendControlTransferSynchronously; 354 - PFN_WDFUSBTARGETDEVICEFORMATREQUESTFORCONTROLTRANSFER pfnWdfUsbTargetDeviceFormatRequestForControlTransfer; 355 - PFN_WDFUSBTARGETDEVICEISCONNECTEDSYNCHRONOUS pfnWdfUsbTargetDeviceIsConnectedSynchronous; 356 - PFN_WDFUSBTARGETDEVICERESETPORTSYNCHRONOUSLY pfnWdfUsbTargetDeviceResetPortSynchronously; 357 - PFN_WDFUSBTARGETDEVICECYCLEPORTSYNCHRONOUSLY pfnWdfUsbTargetDeviceCyclePortSynchronously; 358 - PFN_WDFUSBTARGETDEVICEFORMATREQUESTFORCYCLEPORT pfnWdfUsbTargetDeviceFormatRequestForCyclePort; 359 - PFN_WDFUSBTARGETDEVICESENDURBSYNCHRONOUSLY pfnWdfUsbTargetDeviceSendUrbSynchronously; 360 - PFN_WDFUSBTARGETDEVICEFORMATREQUESTFORURB pfnWdfUsbTargetDeviceFormatRequestForUrb; 361 - PFN_WDFUSBTARGETPIPEGETINFORMATION pfnWdfUsbTargetPipeGetInformation; 362 - PFN_WDFUSBTARGETPIPEISINENDPOINT pfnWdfUsbTargetPipeIsInEndpoint; 363 - PFN_WDFUSBTARGETPIPEISOUTENDPOINT pfnWdfUsbTargetPipeIsOutEndpoint; 364 - PFN_WDFUSBTARGETPIPEGETTYPE pfnWdfUsbTargetPipeGetType; 365 - PFN_WDFUSBTARGETPIPESETNOMAXIMUMPACKETSIZECHECK pfnWdfUsbTargetPipeSetNoMaximumPacketSizeCheck; 366 - PFN_WDFUSBTARGETPIPEWRITESYNCHRONOUSLY pfnWdfUsbTargetPipeWriteSynchronously; 367 - PFN_WDFUSBTARGETPIPEFORMATREQUESTFORWRITE pfnWdfUsbTargetPipeFormatRequestForWrite; 368 - PFN_WDFUSBTARGETPIPEREADSYNCHRONOUSLY pfnWdfUsbTargetPipeReadSynchronously; 369 - PFN_WDFUSBTARGETPIPEFORMATREQUESTFORREAD pfnWdfUsbTargetPipeFormatRequestForRead; 370 - PFN_WDFUSBTARGETPIPECONFIGCONTINUOUSREADER pfnWdfUsbTargetPipeConfigContinuousReader; 371 - PFN_WDFUSBTARGETPIPEABORTSYNCHRONOUSLY pfnWdfUsbTargetPipeAbortSynchronously; 372 - PFN_WDFUSBTARGETPIPEFORMATREQUESTFORABORT pfnWdfUsbTargetPipeFormatRequestForAbort; 373 - PFN_WDFUSBTARGETPIPERESETSYNCHRONOUSLY pfnWdfUsbTargetPipeResetSynchronously; 374 - PFN_WDFUSBTARGETPIPEFORMATREQUESTFORRESET pfnWdfUsbTargetPipeFormatRequestForReset; 375 - PFN_WDFUSBTARGETPIPESENDURBSYNCHRONOUSLY pfnWdfUsbTargetPipeSendUrbSynchronously; 376 - PFN_WDFUSBTARGETPIPEFORMATREQUESTFORURB pfnWdfUsbTargetPipeFormatRequestForUrb; 377 - PFN_WDFUSBINTERFACEGETINTERFACENUMBER pfnWdfUsbInterfaceGetInterfaceNumber; 378 - PFN_WDFUSBINTERFACEGETNUMENDPOINTS pfnWdfUsbInterfaceGetNumEndpoints; 379 - PFN_WDFUSBINTERFACEGETDESCRIPTOR pfnWdfUsbInterfaceGetDescriptor; 380 - PFN_WDFUSBINTERFACESELECTSETTING pfnWdfUsbInterfaceSelectSetting; 381 - PFN_WDFUSBINTERFACEGETENDPOINTINFORMATION pfnWdfUsbInterfaceGetEndpointInformation; 382 - PFN_WDFUSBTARGETDEVICEGETINTERFACE pfnWdfUsbTargetDeviceGetInterface; 383 - PFN_WDFUSBINTERFACEGETCONFIGUREDSETTINGINDEX pfnWdfUsbInterfaceGetConfiguredSettingIndex; 384 - PFN_WDFUSBINTERFACEGETNUMCONFIGUREDPIPES pfnWdfUsbInterfaceGetNumConfiguredPipes; 385 - PFN_WDFUSBINTERFACEGETCONFIGUREDPIPE pfnWdfUsbInterfaceGetConfiguredPipe; 386 - PFN_WDFUSBTARGETPIPEWDMGETPIPEHANDLE pfnWdfUsbTargetPipeWdmGetPipeHandle; 387 - PFN_WDFVERIFIERDBGBREAKPOINT pfnWdfVerifierDbgBreakPoint; 388 - PFN_WDFVERIFIERKEBUGCHECK pfnWdfVerifierKeBugCheck; 389 - PFN_WDFWMIPROVIDERCREATE pfnWdfWmiProviderCreate; 390 - PFN_WDFWMIPROVIDERGETDEVICE pfnWdfWmiProviderGetDevice; 391 - PFN_WDFWMIPROVIDERISENABLED pfnWdfWmiProviderIsEnabled; 392 - PFN_WDFWMIPROVIDERGETTRACINGHANDLE pfnWdfWmiProviderGetTracingHandle; 393 - PFN_WDFWMIINSTANCECREATE pfnWdfWmiInstanceCreate; 394 - PFN_WDFWMIINSTANCEREGISTER pfnWdfWmiInstanceRegister; 395 - PFN_WDFWMIINSTANCEDEREGISTER pfnWdfWmiInstanceDeregister; 396 - PFN_WDFWMIINSTANCEGETDEVICE pfnWdfWmiInstanceGetDevice; 397 - PFN_WDFWMIINSTANCEGETPROVIDER pfnWdfWmiInstanceGetProvider; 398 - PFN_WDFWMIINSTANCEFIREEVENT pfnWdfWmiInstanceFireEvent; 408 + // PFN_WDFUSBTARGETDEVICECREATE pfnWdfUsbTargetDeviceCreate; 409 + // PFN_WDFUSBTARGETDEVICERETRIEVEINFORMATION pfnWdfUsbTargetDeviceRetrieveInformation; 410 + // PFN_WDFUSBTARGETDEVICEGETDEVICEDESCRIPTOR pfnWdfUsbTargetDeviceGetDeviceDescriptor; 411 + // PFN_WDFUSBTARGETDEVICERETRIEVECONFIGDESCRIPTOR pfnWdfUsbTargetDeviceRetrieveConfigDescriptor; 412 + // PFN_WDFUSBTARGETDEVICEQUERYSTRING pfnWdfUsbTargetDeviceQueryString; 413 + // PFN_WDFUSBTARGETDEVICEALLOCANDQUERYSTRING pfnWdfUsbTargetDeviceAllocAndQueryString; 414 + // PFN_WDFUSBTARGETDEVICEFORMATREQUESTFORSTRING pfnWdfUsbTargetDeviceFormatRequestForString; 415 + // PFN_WDFUSBTARGETDEVICEGETNUMINTERFACES pfnWdfUsbTargetDeviceGetNumInterfaces; 416 + // PFN_WDFUSBTARGETDEVICESELECTCONFIG pfnWdfUsbTargetDeviceSelectConfig; 417 + // PFN_WDFUSBTARGETDEVICEWDMGETCONFIGURATIONHANDLE pfnWdfUsbTargetDeviceWdmGetConfigurationHandle; 418 + // PFN_WDFUSBTARGETDEVICERETRIEVECURRENTFRAMENUMBER pfnWdfUsbTargetDeviceRetrieveCurrentFrameNumber; 419 + // PFN_WDFUSBTARGETDEVICESENDCONTROLTRANSFERSYNCHRONOUSLY pfnWdfUsbTargetDeviceSendControlTransferSynchronously; 420 + // PFN_WDFUSBTARGETDEVICEFORMATREQUESTFORCONTROLTRANSFER pfnWdfUsbTargetDeviceFormatRequestForControlTransfer; 421 + // PFN_WDFUSBTARGETDEVICEISCONNECTEDSYNCHRONOUS pfnWdfUsbTargetDeviceIsConnectedSynchronous; 422 + // PFN_WDFUSBTARGETDEVICERESETPORTSYNCHRONOUSLY pfnWdfUsbTargetDeviceResetPortSynchronously; 423 + // PFN_WDFUSBTARGETDEVICECYCLEPORTSYNCHRONOUSLY pfnWdfUsbTargetDeviceCyclePortSynchronously; 424 + // PFN_WDFUSBTARGETDEVICEFORMATREQUESTFORCYCLEPORT pfnWdfUsbTargetDeviceFormatRequestForCyclePort; 425 + // PFN_WDFUSBTARGETDEVICESENDURBSYNCHRONOUSLY pfnWdfUsbTargetDeviceSendUrbSynchronously; 426 + // PFN_WDFUSBTARGETDEVICEFORMATREQUESTFORURB pfnWdfUsbTargetDeviceFormatRequestForUrb; 427 + // PFN_WDFUSBTARGETPIPEGETINFORMATION pfnWdfUsbTargetPipeGetInformation; 428 + // PFN_WDFUSBTARGETPIPEISINENDPOINT pfnWdfUsbTargetPipeIsInEndpoint; 429 + // PFN_WDFUSBTARGETPIPEISOUTENDPOINT pfnWdfUsbTargetPipeIsOutEndpoint; 430 + // PFN_WDFUSBTARGETPIPEGETTYPE pfnWdfUsbTargetPipeGetType; 431 + // PFN_WDFUSBTARGETPIPESETNOMAXIMUMPACKETSIZECHECK pfnWdfUsbTargetPipeSetNoMaximumPacketSizeCheck; 432 + // PFN_WDFUSBTARGETPIPEWRITESYNCHRONOUSLY pfnWdfUsbTargetPipeWriteSynchronously; 433 + // PFN_WDFUSBTARGETPIPEFORMATREQUESTFORWRITE pfnWdfUsbTargetPipeFormatRequestForWrite; 434 + // PFN_WDFUSBTARGETPIPEREADSYNCHRONOUSLY pfnWdfUsbTargetPipeReadSynchronously; 435 + // PFN_WDFUSBTARGETPIPEFORMATREQUESTFORREAD pfnWdfUsbTargetPipeFormatRequestForRead; 436 + // PFN_WDFUSBTARGETPIPECONFIGCONTINUOUSREADER pfnWdfUsbTargetPipeConfigContinuousReader; 437 + // PFN_WDFUSBTARGETPIPEABORTSYNCHRONOUSLY pfnWdfUsbTargetPipeAbortSynchronously; 438 + // PFN_WDFUSBTARGETPIPEFORMATREQUESTFORABORT pfnWdfUsbTargetPipeFormatRequestForAbort; 439 + // PFN_WDFUSBTARGETPIPERESETSYNCHRONOUSLY pfnWdfUsbTargetPipeResetSynchronously; 440 + // PFN_WDFUSBTARGETPIPEFORMATREQUESTFORRESET pfnWdfUsbTargetPipeFormatRequestForReset; 441 + // PFN_WDFUSBTARGETPIPESENDURBSYNCHRONOUSLY pfnWdfUsbTargetPipeSendUrbSynchronously; 442 + // PFN_WDFUSBTARGETPIPEFORMATREQUESTFORURB pfnWdfUsbTargetPipeFormatRequestForUrb; 443 + // PFN_WDFUSBINTERFACEGETINTERFACENUMBER pfnWdfUsbInterfaceGetInterfaceNumber; 444 + // PFN_WDFUSBINTERFACEGETNUMENDPOINTS pfnWdfUsbInterfaceGetNumEndpoints; 445 + // PFN_WDFUSBINTERFACEGETDESCRIPTOR pfnWdfUsbInterfaceGetDescriptor; 446 + // PFN_WDFUSBINTERFACESELECTSETTING pfnWdfUsbInterfaceSelectSetting; 447 + // PFN_WDFUSBINTERFACEGETENDPOINTINFORMATION pfnWdfUsbInterfaceGetEndpointInformation; 448 + // PFN_WDFUSBTARGETDEVICEGETINTERFACE pfnWdfUsbTargetDeviceGetInterface; 449 + // PFN_WDFUSBINTERFACEGETCONFIGUREDSETTINGINDEX pfnWdfUsbInterfaceGetConfiguredSettingIndex; 450 + // PFN_WDFUSBINTERFACEGETNUMCONFIGUREDPIPES pfnWdfUsbInterfaceGetNumConfiguredPipes; 451 + // PFN_WDFUSBINTERFACEGETCONFIGUREDPIPE pfnWdfUsbInterfaceGetConfiguredPipe; 452 + // PFN_WDFUSBTARGETPIPEWDMGETPIPEHANDLE pfnWdfUsbTargetPipeWdmGetPipeHandle; 453 + // PFN_WDFVERIFIERDBGBREAKPOINT pfnWdfVerifierDbgBreakPoint; 454 + // PFN_WDFVERIFIERKEBUGCHECK pfnWdfVerifierKeBugCheck; 455 + // PFN_WDFWMIPROVIDERCREATE pfnWdfWmiProviderCreate; 456 + // PFN_WDFWMIPROVIDERGETDEVICE pfnWdfWmiProviderGetDevice; 457 + // PFN_WDFWMIPROVIDERISENABLED pfnWdfWmiProviderIsEnabled; 458 + // PFN_WDFWMIPROVIDERGETTRACINGHANDLE pfnWdfWmiProviderGetTracingHandle; 459 + // PFN_WDFWMIINSTANCECREATE pfnWdfWmiInstanceCreate; 460 + // PFN_WDFWMIINSTANCEREGISTER pfnWdfWmiInstanceRegister; 461 + // PFN_WDFWMIINSTANCEDEREGISTER pfnWdfWmiInstanceDeregister; 462 + // PFN_WDFWMIINSTANCEGETDEVICE pfnWdfWmiInstanceGetDevice; 463 + // PFN_WDFWMIINSTANCEGETPROVIDER pfnWdfWmiInstanceGetProvider; 464 + // PFN_WDFWMIINSTANCEFIREEVENT pfnWdfWmiInstanceFireEvent; 465 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceCreate; 466 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceRetrieveInformation; 467 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceGetDeviceDescriptor; 468 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceRetrieveConfigDescriptor; 469 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceQueryString; 470 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceAllocAndQueryString; 471 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceFormatRequestForString; 472 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceGetNumInterfaces; 473 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceSelectConfig; 474 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceWdmGetConfigurationHandle; 475 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceRetrieveCurrentFrameNumber; 476 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceSendControlTransferSynchronously; 477 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceFormatRequestForControlTransfer; 478 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceIsConnectedSynchronous; 479 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceResetPortSynchronously; 480 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceCyclePortSynchronously; 481 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceFormatRequestForCyclePort; 482 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceSendUrbSynchronously; 483 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceFormatRequestForUrb; 484 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeGetInformation; 485 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeIsInEndpoint; 486 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeIsOutEndpoint; 487 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeGetType; 488 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeSetNoMaximumPacketSizeCheck; 489 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeWriteSynchronously; 490 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeFormatRequestForWrite; 491 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeReadSynchronously; 492 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeFormatRequestForRead; 493 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeConfigContinuousReader; 494 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeAbortSynchronously; 495 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeFormatRequestForAbort; 496 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeResetSynchronously; 497 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeFormatRequestForReset; 498 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeSendUrbSynchronously; 499 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeFormatRequestForUrb; 500 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbInterfaceGetInterfaceNumber; 501 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbInterfaceGetNumEndpoints; 502 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbInterfaceGetDescriptor; 503 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbInterfaceSelectSetting; 504 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbInterfaceGetEndpointInformation; 505 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceGetInterface; 506 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbInterfaceGetConfiguredSettingIndex; 507 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbInterfaceGetNumConfiguredPipes; 508 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbInterfaceGetConfiguredPipe; 509 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetPipeWdmGetPipeHandle; 510 + PFN_ROSWDFUNIMPLEMENTED pfnWdfVerifierDbgBreakPoint; 511 + PFN_ROSWDFUNIMPLEMENTED pfnWdfVerifierKeBugCheck; 512 + PFN_ROSWDFUNIMPLEMENTED pfnWdfWmiProviderCreate; 513 + PFN_ROSWDFUNIMPLEMENTED pfnWdfWmiProviderGetDevice; 514 + PFN_ROSWDFUNIMPLEMENTED pfnWdfWmiProviderIsEnabled; 515 + PFN_ROSWDFUNIMPLEMENTED pfnWdfWmiProviderGetTracingHandle; 516 + PFN_ROSWDFUNIMPLEMENTED pfnWdfWmiInstanceCreate; 517 + PFN_ROSWDFUNIMPLEMENTED pfnWdfWmiInstanceRegister; 518 + PFN_ROSWDFUNIMPLEMENTED pfnWdfWmiInstanceDeregister; 519 + PFN_ROSWDFUNIMPLEMENTED pfnWdfWmiInstanceGetDevice; 520 + PFN_ROSWDFUNIMPLEMENTED pfnWdfWmiInstanceGetProvider; 521 + PFN_ROSWDFUNIMPLEMENTED pfnWdfWmiInstanceFireEvent; 522 + 399 523 PFN_WDFWORKITEMCREATE pfnWdfWorkItemCreate; 400 524 PFN_WDFWORKITEMENQUEUE pfnWdfWorkItemEnqueue; 401 525 PFN_WDFWORKITEMGETPARENTOBJECT pfnWdfWorkItemGetParentObject; 402 526 PFN_WDFWORKITEMFLUSH pfnWdfWorkItemFlush; 403 - PFN_WDFCOMMONBUFFERCREATEWITHCONFIG pfnWdfCommonBufferCreateWithConfig; 404 - PFN_WDFDMAENABLERGETFRAGMENTLENGTH pfnWdfDmaEnablerGetFragmentLength; 405 - PFN_WDFDMAENABLERWDMGETDMAADAPTER pfnWdfDmaEnablerWdmGetDmaAdapter; 406 - PFN_WDFUSBINTERFACEGETNUMSETTINGS pfnWdfUsbInterfaceGetNumSettings; 527 + // PFN_WDFCOMMONBUFFERCREATEWITHCONFIG pfnWdfCommonBufferCreateWithConfig; 528 + // PFN_WDFDMAENABLERGETFRAGMENTLENGTH pfnWdfDmaEnablerGetFragmentLength; 529 + // PFN_WDFDMAENABLERWDMGETDMAADAPTER pfnWdfDmaEnablerWdmGetDmaAdapter; 530 + // PFN_WDFUSBINTERFACEGETNUMSETTINGS pfnWdfUsbInterfaceGetNumSettings; 531 + PFN_ROSWDFUNIMPLEMENTED pfnWdfCommonBufferCreateWithConfig; 532 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaEnablerGetFragmentLength; 533 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaEnablerWdmGetDmaAdapter; 534 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbInterfaceGetNumSettings; 535 + 407 536 PFN_WDFDEVICEREMOVEDEPENDENTUSAGEDEVICEOBJECT pfnWdfDeviceRemoveDependentUsageDeviceObject; 408 537 PFN_WDFDEVICEGETSYSTEMPOWERACTION pfnWdfDeviceGetSystemPowerAction; 409 - PFN_WDFINTERRUPTSETEXTENDEDPOLICY pfnWdfInterruptSetExtendedPolicy; 538 + // PFN_WDFINTERRUPTSETEXTENDEDPOLICY pfnWdfInterruptSetExtendedPolicy; 539 + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptSetExtendedPolicy; 540 + 410 541 PFN_WDFIOQUEUEASSIGNFORWARDPROGRESSPOLICY pfnWdfIoQueueAssignForwardProgressPolicy; 411 542 PFN_WDFPDOINITASSIGNCONTAINERID pfnWdfPdoInitAssignContainerID; 412 543 PFN_WDFPDOINITALLOWFORWARDINGREQUESTTOPARENT pfnWdfPdoInitAllowForwardingRequestToParent; 413 544 PFN_WDFREQUESTMARKCANCELABLEEX pfnWdfRequestMarkCancelableEx; 414 545 PFN_WDFREQUESTISRESERVED pfnWdfRequestIsReserved; 415 546 PFN_WDFREQUESTFORWARDTOPARENTDEVICEIOQUEUE pfnWdfRequestForwardToParentDeviceIoQueue; 416 - PFN_WDFCXDEVICEINITALLOCATE pfnWdfCxDeviceInitAllocate; 417 - PFN_WDFCXDEVICEINITASSIGNWDMIRPPREPROCESSCALLBACK pfnWdfCxDeviceInitAssignWdmIrpPreprocessCallback; 418 - PFN_WDFCXDEVICEINITSETIOINCALLERCONTEXTCALLBACK pfnWdfCxDeviceInitSetIoInCallerContextCallback; 419 - PFN_WDFCXDEVICEINITSETREQUESTATTRIBUTES pfnWdfCxDeviceInitSetRequestAttributes; 420 - PFN_WDFCXDEVICEINITSETFILEOBJECTCONFIG pfnWdfCxDeviceInitSetFileObjectConfig; 547 + // PFN_WDFCXDEVICEINITALLOCATE pfnWdfCxDeviceInitAllocate; 548 + // PFN_WDFCXDEVICEINITASSIGNWDMIRPPREPROCESSCALLBACK pfnWdfCxDeviceInitAssignWdmIrpPreprocessCallback; 549 + // PFN_WDFCXDEVICEINITSETIOINCALLERCONTEXTCALLBACK pfnWdfCxDeviceInitSetIoInCallerContextCallback; 550 + // PFN_WDFCXDEVICEINITSETREQUESTATTRIBUTES pfnWdfCxDeviceInitSetRequestAttributes; 551 + // PFN_WDFCXDEVICEINITSETFILEOBJECTCONFIG pfnWdfCxDeviceInitSetFileObjectConfig; 552 + PFN_ROSWDFUNIMPLEMENTED pfnWdfCxDeviceInitAllocate; 553 + PFN_ROSWDFUNIMPLEMENTED pfnWdfCxDeviceInitAssignWdmIrpPreprocessCallback; 554 + PFN_ROSWDFUNIMPLEMENTED pfnWdfCxDeviceInitSetIoInCallerContextCallback; 555 + PFN_ROSWDFUNIMPLEMENTED pfnWdfCxDeviceInitSetRequestAttributes; 556 + PFN_ROSWDFUNIMPLEMENTED pfnWdfCxDeviceInitSetFileObjectConfig; 557 + 421 558 PFN_WDFDEVICEWDMDISPATCHIRP pfnWdfDeviceWdmDispatchIrp; 422 559 PFN_WDFDEVICEWDMDISPATCHIRPTOIOQUEUE pfnWdfDeviceWdmDispatchIrpToIoQueue; 423 560 PFN_WDFDEVICEINITSETREMOVELOCKOPTIONS pfnWdfDeviceInitSetRemoveLockOptions; 424 561 PFN_WDFDEVICECONFIGUREWDMIRPDISPATCHCALLBACK pfnWdfDeviceConfigureWdmIrpDispatchCallback; 425 - PFN_WDFDMAENABLERCONFIGURESYSTEMPROFILE pfnWdfDmaEnablerConfigureSystemProfile; 426 - PFN_WDFDMATRANSACTIONINITIALIZEUSINGOFFSET pfnWdfDmaTransactionInitializeUsingOffset; 427 - PFN_WDFDMATRANSACTIONGETTRANSFERINFO pfnWdfDmaTransactionGetTransferInfo; 428 - PFN_WDFDMATRANSACTIONSETCHANNELCONFIGURATIONCALLBACK pfnWdfDmaTransactionSetChannelConfigurationCallback; 429 - PFN_WDFDMATRANSACTIONSETTRANSFERCOMPLETECALLBACK pfnWdfDmaTransactionSetTransferCompleteCallback; 430 - PFN_WDFDMATRANSACTIONSETIMMEDIATEEXECUTION pfnWdfDmaTransactionSetImmediateExecution; 431 - PFN_WDFDMATRANSACTIONALLOCATERESOURCES pfnWdfDmaTransactionAllocateResources; 432 - PFN_WDFDMATRANSACTIONSETDEVICEADDRESSOFFSET pfnWdfDmaTransactionSetDeviceAddressOffset; 433 - PFN_WDFDMATRANSACTIONFREERESOURCES pfnWdfDmaTransactionFreeResources; 434 - PFN_WDFDMATRANSACTIONCANCEL pfnWdfDmaTransactionCancel; 435 - PFN_WDFDMATRANSACTIONWDMGETTRANSFERCONTEXT pfnWdfDmaTransactionWdmGetTransferContext; 436 - PFN_WDFINTERRUPTQUEUEWORKITEMFORISR pfnWdfInterruptQueueWorkItemForIsr; 437 - PFN_WDFINTERRUPTTRYTOACQUIRELOCK pfnWdfInterruptTryToAcquireLock; 562 + // PFN_WDFDMAENABLERCONFIGURESYSTEMPROFILE pfnWdfDmaEnablerConfigureSystemProfile; 563 + // PFN_WDFDMATRANSACTIONINITIALIZEUSINGOFFSET pfnWdfDmaTransactionInitializeUsingOffset; 564 + // PFN_WDFDMATRANSACTIONGETTRANSFERINFO pfnWdfDmaTransactionGetTransferInfo; 565 + // PFN_WDFDMATRANSACTIONSETCHANNELCONFIGURATIONCALLBACK pfnWdfDmaTransactionSetChannelConfigurationCallback; 566 + // PFN_WDFDMATRANSACTIONSETTRANSFERCOMPLETECALLBACK pfnWdfDmaTransactionSetTransferCompleteCallback; 567 + // PFN_WDFDMATRANSACTIONSETIMMEDIATEEXECUTION pfnWdfDmaTransactionSetImmediateExecution; 568 + // PFN_WDFDMATRANSACTIONALLOCATERESOURCES pfnWdfDmaTransactionAllocateResources; 569 + // PFN_WDFDMATRANSACTIONSETDEVICEADDRESSOFFSET pfnWdfDmaTransactionSetDeviceAddressOffset; 570 + // PFN_WDFDMATRANSACTIONFREERESOURCES pfnWdfDmaTransactionFreeResources; 571 + // PFN_WDFDMATRANSACTIONCANCEL pfnWdfDmaTransactionCancel; 572 + // PFN_WDFDMATRANSACTIONWDMGETTRANSFERCONTEXT pfnWdfDmaTransactionWdmGetTransferContext; 573 + // PFN_WDFINTERRUPTQUEUEWORKITEMFORISR pfnWdfInterruptQueueWorkItemForIsr; 574 + // PFN_WDFINTERRUPTTRYTOACQUIRELOCK pfnWdfInterruptTryToAcquireLock; 575 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaEnablerConfigureSystemProfile; 576 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionInitializeUsingOffset; 577 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionGetTransferInfo; 578 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionSetChannelConfigurationCallback; 579 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionSetTransferCompleteCallback; 580 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionSetImmediateExecution; 581 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionAllocateResources; 582 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionSetDeviceAddressOffset; 583 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionFreeResources; 584 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionCancel; 585 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionWdmGetTransferContext; 586 + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptQueueWorkItemForIsr; 587 + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptTryToAcquireLock; 588 + 438 589 PFN_WDFIOQUEUESTOPANDPURGE pfnWdfIoQueueStopAndPurge; 439 590 PFN_WDFIOQUEUESTOPANDPURGESYNCHRONOUSLY pfnWdfIoQueueStopAndPurgeSynchronously; 440 591 PFN_WDFIOTARGETPURGE pfnWdfIoTargetPurge; 441 - PFN_WDFUSBTARGETDEVICECREATEWITHPARAMETERS pfnWdfUsbTargetDeviceCreateWithParameters; 442 - PFN_WDFUSBTARGETDEVICEQUERYUSBCAPABILITY pfnWdfUsbTargetDeviceQueryUsbCapability; 443 - PFN_WDFUSBTARGETDEVICECREATEURB pfnWdfUsbTargetDeviceCreateUrb; 444 - PFN_WDFUSBTARGETDEVICECREATEISOCHURB pfnWdfUsbTargetDeviceCreateIsochUrb; 592 + // PFN_WDFUSBTARGETDEVICECREATEWITHPARAMETERS pfnWdfUsbTargetDeviceCreateWithParameters; 593 + // PFN_WDFUSBTARGETDEVICEQUERYUSBCAPABILITY pfnWdfUsbTargetDeviceQueryUsbCapability; 594 + // PFN_WDFUSBTARGETDEVICECREATEURB pfnWdfUsbTargetDeviceCreateUrb; 595 + // PFN_WDFUSBTARGETDEVICECREATEISOCHURB pfnWdfUsbTargetDeviceCreateIsochUrb; 596 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceCreateWithParameters; 597 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceQueryUsbCapability; 598 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceCreateUrb; 599 + PFN_ROSWDFUNIMPLEMENTED pfnWdfUsbTargetDeviceCreateIsochUrb; 600 + 445 601 PFN_WDFDEVICEWDMASSIGNPOWERFRAMEWORKSETTINGS pfnWdfDeviceWdmAssignPowerFrameworkSettings; 446 - PFN_WDFDMATRANSACTIONSTOPSYSTEMTRANSFER pfnWdfDmaTransactionStopSystemTransfer; 447 - PFN_WDFCXVERIFIERKEBUGCHECK pfnWdfCxVerifierKeBugCheck; 448 - PFN_WDFINTERRUPTREPORTACTIVE pfnWdfInterruptReportActive; 449 - PFN_WDFINTERRUPTREPORTINACTIVE pfnWdfInterruptReportInactive; 602 + // PFN_WDFDMATRANSACTIONSTOPSYSTEMTRANSFER pfnWdfDmaTransactionStopSystemTransfer; 603 + // PFN_WDFCXVERIFIERKEBUGCHECK pfnWdfCxVerifierKeBugCheck; 604 + // PFN_WDFINTERRUPTREPORTACTIVE pfnWdfInterruptReportActive; 605 + // PFN_WDFINTERRUPTREPORTINACTIVE pfnWdfInterruptReportInactive; 606 + PFN_ROSWDFUNIMPLEMENTED pfnWdfDmaTransactionStopSystemTransfer; 607 + PFN_ROSWDFUNIMPLEMENTED pfnWdfCxVerifierKeBugCheck; 608 + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptReportActive; 609 + PFN_ROSWDFUNIMPLEMENTED pfnWdfInterruptReportInactive; 610 + 450 611 PFN_WDFDEVICEINITSETRELEASEHARDWAREORDERONFAILURE pfnWdfDeviceInitSetReleaseHardwareOrderOnFailure; 451 - PFN_WDFGETTRIAGEINFO pfnWdfGetTriageInfo; 612 + // PFN_WDFGETTRIAGEINFO pfnWdfGetTriageInfo; 613 + PFN_ROSWDFUNIMPLEMENTED pfnWdfGetTriageInfo; 614 + 452 615 PFN_WDFDEVICEINITSETIOTYPEEX pfnWdfDeviceInitSetIoTypeEx; 453 616 PFN_WDFDEVICEQUERYPROPERTYEX pfnWdfDeviceQueryPropertyEx; 454 617 PFN_WDFDEVICEALLOCANDQUERYPROPERTYEX pfnWdfDeviceAllocAndQueryPropertyEx; ··· 478 641 _IRQL_requires_max_(PASSIVE_LEVEL) 479 642 WDFAPI 480 643 NTSTATUS 644 + STDCALL 481 645 WDFEXPORT(WdfChildListCreate)( 482 646 _In_ 483 647 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 494 658 _IRQL_requires_max_(DISPATCH_LEVEL) 495 659 WDFAPI 496 660 WDFDEVICE 661 + STDCALL 497 662 WDFEXPORT(WdfChildListGetDevice)( 498 663 _In_ 499 664 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 505 670 _IRQL_requires_max_(DISPATCH_LEVEL) 506 671 WDFAPI 507 672 WDFDEVICE 673 + STDCALL 508 674 WDFEXPORT(WdfChildListRetrievePdo)( 509 675 _In_ 510 676 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 518 684 _IRQL_requires_max_(DISPATCH_LEVEL) 519 685 WDFAPI 520 686 NTSTATUS 687 + STDCALL 521 688 WDFEXPORT(WdfChildListRetrieveAddressDescription)( 522 689 _In_ 523 690 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 532 699 _IRQL_requires_max_(DISPATCH_LEVEL) 533 700 WDFAPI 534 701 VOID 702 + STDCALL 535 703 WDFEXPORT(WdfChildListBeginScan)( 536 704 _In_ 537 705 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 542 710 _IRQL_requires_max_(DISPATCH_LEVEL) 543 711 WDFAPI 544 712 VOID 713 + STDCALL 545 714 WDFEXPORT(WdfChildListEndScan)( 546 715 _In_ 547 716 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 552 721 _IRQL_requires_max_(DISPATCH_LEVEL) 553 722 WDFAPI 554 723 VOID 724 + STDCALL 555 725 WDFEXPORT(WdfChildListBeginIteration)( 556 726 _In_ 557 727 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 565 735 _IRQL_requires_max_(DISPATCH_LEVEL) 566 736 WDFAPI 567 737 NTSTATUS 738 + STDCALL 568 739 WDFEXPORT(WdfChildListRetrieveNextDevice)( 569 740 _In_ 570 741 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 581 752 _IRQL_requires_max_(DISPATCH_LEVEL) 582 753 WDFAPI 583 754 VOID 755 + STDCALL 584 756 WDFEXPORT(WdfChildListEndIteration)( 585 757 _In_ 586 758 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 594 766 _IRQL_requires_max_(DISPATCH_LEVEL) 595 767 WDFAPI 596 768 NTSTATUS 769 + STDCALL 597 770 WDFEXPORT(WdfChildListAddOrUpdateChildDescriptionAsPresent)( 598 771 _In_ 599 772 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 609 782 _IRQL_requires_max_(DISPATCH_LEVEL) 610 783 WDFAPI 611 784 NTSTATUS 785 + STDCALL 612 786 WDFEXPORT(WdfChildListUpdateChildDescriptionAsMissing)( 613 787 _In_ 614 788 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 621 795 _IRQL_requires_max_(DISPATCH_LEVEL) 622 796 WDFAPI 623 797 VOID 798 + STDCALL 624 799 WDFEXPORT(WdfChildListUpdateAllChildDescriptionsAsPresent)( 625 800 _In_ 626 801 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 631 806 _IRQL_requires_max_(DISPATCH_LEVEL) 632 807 WDFAPI 633 808 BOOLEAN 809 + STDCALL 634 810 WDFEXPORT(WdfChildListRequestChildEject)( 635 811 _In_ 636 812 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 644 820 _IRQL_requires_max_(DISPATCH_LEVEL) 645 821 WDFAPI 646 822 NTSTATUS 823 + STDCALL 647 824 WDFEXPORT(WdfCollectionCreate)( 648 825 _In_ 649 826 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 656 833 _IRQL_requires_max_(DISPATCH_LEVEL) 657 834 WDFAPI 658 835 ULONG 836 + STDCALL 659 837 WDFEXPORT(WdfCollectionGetCount)( 660 838 _In_ 661 839 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 667 845 _IRQL_requires_max_(DISPATCH_LEVEL) 668 846 WDFAPI 669 847 NTSTATUS 848 + STDCALL 670 849 WDFEXPORT(WdfCollectionAdd)( 671 850 _In_ 672 851 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 679 858 _IRQL_requires_max_(DISPATCH_LEVEL) 680 859 WDFAPI 681 860 VOID 861 + STDCALL 682 862 WDFEXPORT(WdfCollectionRemove)( 683 863 _In_ 684 864 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 691 871 _IRQL_requires_max_(DISPATCH_LEVEL) 692 872 WDFAPI 693 873 VOID 874 + STDCALL 694 875 WDFEXPORT(WdfCollectionRemoveItem)( 695 876 _In_ 696 877 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 703 884 _IRQL_requires_max_(DISPATCH_LEVEL) 704 885 WDFAPI 705 886 WDFOBJECT 887 + STDCALL 706 888 WDFEXPORT(WdfCollectionGetItem)( 707 889 _In_ 708 890 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 715 897 _IRQL_requires_max_(DISPATCH_LEVEL) 716 898 WDFAPI 717 899 WDFOBJECT 900 + STDCALL 718 901 WDFEXPORT(WdfCollectionGetFirstItem)( 719 902 _In_ 720 903 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 725 908 _IRQL_requires_max_(DISPATCH_LEVEL) 726 909 WDFAPI 727 910 WDFOBJECT 911 + STDCALL 728 912 WDFEXPORT(WdfCollectionGetLastItem)( 729 913 _In_ 730 914 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 736 920 _IRQL_requires_max_(PASSIVE_LEVEL) 737 921 WDFAPI 738 922 NTSTATUS 923 + STDCALL 739 924 WDFEXPORT(WdfCommonBufferCreate)( 740 925 _In_ 741 926 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 754 939 _IRQL_requires_max_(PASSIVE_LEVEL) 755 940 WDFAPI 756 941 NTSTATUS 942 + STDCALL 757 943 WDFEXPORT(WdfCommonBufferCreateWithConfig)( 758 944 _In_ 759 945 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 773 959 _IRQL_requires_max_(DISPATCH_LEVEL) 774 960 WDFAPI 775 961 PVOID 962 + STDCALL 776 963 WDFEXPORT(WdfCommonBufferGetAlignedVirtualAddress)( 777 964 _In_ 778 965 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 783 970 _IRQL_requires_max_(DISPATCH_LEVEL) 784 971 WDFAPI 785 972 PHYSICAL_ADDRESS 973 + STDCALL 786 974 WDFEXPORT(WdfCommonBufferGetAlignedLogicalAddress)( 787 975 _In_ 788 976 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 793 981 _IRQL_requires_max_(DISPATCH_LEVEL) 794 982 WDFAPI 795 983 size_t 984 + STDCALL 796 985 WDFEXPORT(WdfCommonBufferGetLength)( 797 986 _In_ 798 987 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 804 993 _IRQL_requires_max_(PASSIVE_LEVEL) 805 994 WDFAPI 806 995 PWDFDEVICE_INIT 996 + STDCALL 807 997 WDFEXPORT(WdfControlDeviceInitAllocate)( 808 998 _In_ 809 999 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 816 1006 _IRQL_requires_max_(PASSIVE_LEVEL) 817 1007 WDFAPI 818 1008 VOID 1009 + STDCALL 819 1010 WDFEXPORT(WdfControlDeviceInitSetShutdownNotification)( 820 1011 _In_ 821 1012 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 830 1021 _IRQL_requires_max_(DISPATCH_LEVEL) 831 1022 WDFAPI 832 1023 VOID 1024 + STDCALL 833 1025 WDFEXPORT(WdfControlFinishInitializing)( 834 1026 _In_ 835 1027 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 841 1033 _IRQL_requires_max_(PASSIVE_LEVEL) 842 1034 WDFAPI 843 1035 PWDFCXDEVICE_INIT 1036 + STDCALL 844 1037 WDFEXPORT(WdfCxDeviceInitAllocate)( 845 1038 _In_ 846 1039 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 852 1045 _IRQL_requires_max_(DISPATCH_LEVEL) 853 1046 WDFAPI 854 1047 NTSTATUS 1048 + STDCALL 855 1049 WDFEXPORT(WdfCxDeviceInitAssignWdmIrpPreprocessCallback)( 856 1050 _In_ 857 1051 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 871 1065 _IRQL_requires_max_(DISPATCH_LEVEL) 872 1066 WDFAPI 873 1067 VOID 1068 + STDCALL 874 1069 WDFEXPORT(WdfCxDeviceInitSetIoInCallerContextCallback)( 875 1070 _In_ 876 1071 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 883 1078 _IRQL_requires_max_(DISPATCH_LEVEL) 884 1079 WDFAPI 885 1080 VOID 1081 + STDCALL 886 1082 WDFEXPORT(WdfCxDeviceInitSetRequestAttributes)( 887 1083 _In_ 888 1084 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 895 1091 _IRQL_requires_max_(DISPATCH_LEVEL) 896 1092 WDFAPI 897 1093 VOID 1094 + STDCALL 898 1095 WDFEXPORT(WdfCxDeviceInitSetFileObjectConfig)( 899 1096 _In_ 900 1097 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 908 1105 909 1106 WDFAPI 910 1107 VOID 1108 + STDCALL 911 1109 WDFEXPORT(WdfCxVerifierKeBugCheck)( 912 1110 _In_ 913 1111 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 928 1126 _IRQL_requires_max_(DISPATCH_LEVEL) 929 1127 WDFAPI 930 1128 VOID 1129 + STDCALL 931 1130 WDFEXPORT(WdfDeviceGetDeviceState)( 932 1131 _In_ 933 1132 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 940 1139 _IRQL_requires_max_(DISPATCH_LEVEL) 941 1140 WDFAPI 942 1141 VOID 1142 + STDCALL 943 1143 WDFEXPORT(WdfDeviceSetDeviceState)( 944 1144 _In_ 945 1145 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 952 1152 _IRQL_requires_max_(DISPATCH_LEVEL) 953 1153 WDFAPI 954 1154 WDFDEVICE 1155 + STDCALL 955 1156 WDFEXPORT(WdfWdmDeviceGetWdfDeviceHandle)( 956 1157 _In_ 957 1158 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 962 1163 _IRQL_requires_max_(DISPATCH_LEVEL) 963 1164 WDFAPI 964 1165 PDEVICE_OBJECT 1166 + STDCALL 965 1167 WDFEXPORT(WdfDeviceWdmGetDeviceObject)( 966 1168 _In_ 967 1169 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 972 1174 _IRQL_requires_max_(DISPATCH_LEVEL) 973 1175 WDFAPI 974 1176 PDEVICE_OBJECT 1177 + STDCALL 975 1178 WDFEXPORT(WdfDeviceWdmGetAttachedDevice)( 976 1179 _In_ 977 1180 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 982 1185 _IRQL_requires_max_(DISPATCH_LEVEL) 983 1186 WDFAPI 984 1187 PDEVICE_OBJECT 1188 + STDCALL 985 1189 WDFEXPORT(WdfDeviceWdmGetPhysicalDevice)( 986 1190 _In_ 987 1191 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 993 1197 _IRQL_requires_max_(DISPATCH_LEVEL) 994 1198 WDFAPI 995 1199 NTSTATUS 1200 + STDCALL 996 1201 WDFEXPORT(WdfDeviceWdmDispatchPreprocessedIrp)( 997 1202 _In_ 998 1203 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1006 1211 _IRQL_requires_max_(DISPATCH_LEVEL) 1007 1212 WDFAPI 1008 1213 NTSTATUS 1214 + STDCALL 1009 1215 WDFEXPORT(WdfDeviceWdmDispatchIrp)( 1010 1216 _In_ 1011 1217 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1021 1227 _IRQL_requires_max_(DISPATCH_LEVEL) 1022 1228 WDFAPI 1023 1229 NTSTATUS 1230 + STDCALL 1024 1231 WDFEXPORT(WdfDeviceWdmDispatchIrpToIoQueue)( 1025 1232 _In_ 1026 1233 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1038 1245 _IRQL_requires_max_(DISPATCH_LEVEL) 1039 1246 WDFAPI 1040 1247 NTSTATUS 1248 + STDCALL 1041 1249 WDFEXPORT(WdfDeviceAddDependentUsageDeviceObject)( 1042 1250 _In_ 1043 1251 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1050 1258 _IRQL_requires_max_(DISPATCH_LEVEL) 1051 1259 WDFAPI 1052 1260 VOID 1261 + STDCALL 1053 1262 WDFEXPORT(WdfDeviceRemoveDependentUsageDeviceObject)( 1054 1263 _In_ 1055 1264 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1063 1272 _IRQL_requires_max_(DISPATCH_LEVEL) 1064 1273 WDFAPI 1065 1274 NTSTATUS 1275 + STDCALL 1066 1276 WDFEXPORT(WdfDeviceAddRemovalRelationsPhysicalDevice)( 1067 1277 _In_ 1068 1278 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1075 1285 _IRQL_requires_max_(DISPATCH_LEVEL) 1076 1286 WDFAPI 1077 1287 VOID 1288 + STDCALL 1078 1289 WDFEXPORT(WdfDeviceRemoveRemovalRelationsPhysicalDevice)( 1079 1290 _In_ 1080 1291 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1087 1298 _IRQL_requires_max_(DISPATCH_LEVEL) 1088 1299 WDFAPI 1089 1300 VOID 1301 + STDCALL 1090 1302 WDFEXPORT(WdfDeviceClearRemovalRelationsDevices)( 1091 1303 _In_ 1092 1304 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1097 1309 _IRQL_requires_max_(DISPATCH_LEVEL) 1098 1310 WDFAPI 1099 1311 WDFDRIVER 1312 + STDCALL 1100 1313 WDFEXPORT(WdfDeviceGetDriver)( 1101 1314 _In_ 1102 1315 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1108 1321 _IRQL_requires_max_(PASSIVE_LEVEL) 1109 1322 WDFAPI 1110 1323 NTSTATUS 1324 + STDCALL 1111 1325 WDFEXPORT(WdfDeviceRetrieveDeviceName)( 1112 1326 _In_ 1113 1327 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1121 1335 _IRQL_requires_max_(PASSIVE_LEVEL) 1122 1336 WDFAPI 1123 1337 NTSTATUS 1338 + STDCALL 1124 1339 WDFEXPORT(WdfDeviceAssignMofResourceName)( 1125 1340 _In_ 1126 1341 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1133 1348 _IRQL_requires_max_(DISPATCH_LEVEL) 1134 1349 WDFAPI 1135 1350 WDFIOTARGET 1351 + STDCALL 1136 1352 WDFEXPORT(WdfDeviceGetIoTarget)( 1137 1353 _In_ 1138 1354 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1143 1359 _IRQL_requires_max_(DISPATCH_LEVEL) 1144 1360 WDFAPI 1145 1361 WDF_DEVICE_PNP_STATE 1362 + STDCALL 1146 1363 WDFEXPORT(WdfDeviceGetDevicePnpState)( 1147 1364 _In_ 1148 1365 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1153 1370 _IRQL_requires_max_(DISPATCH_LEVEL) 1154 1371 WDFAPI 1155 1372 WDF_DEVICE_POWER_STATE 1373 + STDCALL 1156 1374 WDFEXPORT(WdfDeviceGetDevicePowerState)( 1157 1375 _In_ 1158 1376 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1163 1381 _IRQL_requires_max_(DISPATCH_LEVEL) 1164 1382 WDFAPI 1165 1383 WDF_DEVICE_POWER_POLICY_STATE 1384 + STDCALL 1166 1385 WDFEXPORT(WdfDeviceGetDevicePowerPolicyState)( 1167 1386 _In_ 1168 1387 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1174 1393 _IRQL_requires_max_(DISPATCH_LEVEL) 1175 1394 WDFAPI 1176 1395 NTSTATUS 1396 + STDCALL 1177 1397 WDFEXPORT(WdfDeviceAssignS0IdleSettings)( 1178 1398 _In_ 1179 1399 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1187 1407 _IRQL_requires_max_(DISPATCH_LEVEL) 1188 1408 WDFAPI 1189 1409 NTSTATUS 1410 + STDCALL 1190 1411 WDFEXPORT(WdfDeviceAssignSxWakeSettings)( 1191 1412 _In_ 1192 1413 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1200 1421 _IRQL_requires_max_(PASSIVE_LEVEL) 1201 1422 WDFAPI 1202 1423 NTSTATUS 1424 + STDCALL 1203 1425 WDFEXPORT(WdfDeviceOpenRegistryKey)( 1204 1426 _In_ 1205 1427 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1219 1441 _IRQL_requires_max_(PASSIVE_LEVEL) 1220 1442 WDFAPI 1221 1443 NTSTATUS 1444 + STDCALL 1222 1445 WDFEXPORT(WdfDeviceOpenDevicemapKey)( 1223 1446 _In_ 1224 1447 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1237 1460 _IRQL_requires_max_(DISPATCH_LEVEL) 1238 1461 WDFAPI 1239 1462 VOID 1463 + STDCALL 1240 1464 WDFEXPORT(WdfDeviceSetSpecialFileSupport)( 1241 1465 _In_ 1242 1466 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1251 1475 _IRQL_requires_max_(DISPATCH_LEVEL) 1252 1476 WDFAPI 1253 1477 VOID 1478 + STDCALL 1254 1479 WDFEXPORT(WdfDeviceSetCharacteristics)( 1255 1480 _In_ 1256 1481 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1263 1488 _IRQL_requires_max_(DISPATCH_LEVEL) 1264 1489 WDFAPI 1265 1490 ULONG 1491 + STDCALL 1266 1492 WDFEXPORT(WdfDeviceGetCharacteristics)( 1267 1493 _In_ 1268 1494 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1273 1499 _IRQL_requires_max_(DISPATCH_LEVEL) 1274 1500 WDFAPI 1275 1501 ULONG 1502 + STDCALL 1276 1503 WDFEXPORT(WdfDeviceGetAlignmentRequirement)( 1277 1504 _In_ 1278 1505 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1283 1510 _IRQL_requires_max_(DISPATCH_LEVEL) 1284 1511 WDFAPI 1285 1512 VOID 1513 + STDCALL 1286 1514 WDFEXPORT(WdfDeviceSetAlignmentRequirement)( 1287 1515 _In_ 1288 1516 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1295 1523 _IRQL_requires_max_(DISPATCH_LEVEL) 1296 1524 WDFAPI 1297 1525 VOID 1526 + STDCALL 1298 1527 WDFEXPORT(WdfDeviceInitFree)( 1299 1528 _In_ 1300 1529 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1305 1534 _IRQL_requires_max_(DISPATCH_LEVEL) 1306 1535 WDFAPI 1307 1536 VOID 1537 + STDCALL 1308 1538 WDFEXPORT(WdfDeviceInitSetPnpPowerEventCallbacks)( 1309 1539 _In_ 1310 1540 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1317 1547 _IRQL_requires_max_(DISPATCH_LEVEL) 1318 1548 WDFAPI 1319 1549 VOID 1550 + STDCALL 1320 1551 WDFEXPORT(WdfDeviceInitSetPowerPolicyEventCallbacks)( 1321 1552 _In_ 1322 1553 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1329 1560 _IRQL_requires_max_(DISPATCH_LEVEL) 1330 1561 WDFAPI 1331 1562 VOID 1563 + STDCALL 1332 1564 WDFEXPORT(WdfDeviceInitSetPowerPolicyOwnership)( 1333 1565 _In_ 1334 1566 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1342 1574 _IRQL_requires_max_(PASSIVE_LEVEL) 1343 1575 WDFAPI 1344 1576 NTSTATUS 1577 + STDCALL 1345 1578 WDFEXPORT(WdfDeviceInitRegisterPnpStateChangeCallback)( 1346 1579 _In_ 1347 1580 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1359 1592 _IRQL_requires_max_(PASSIVE_LEVEL) 1360 1593 WDFAPI 1361 1594 NTSTATUS 1595 + STDCALL 1362 1596 WDFEXPORT(WdfDeviceInitRegisterPowerStateChangeCallback)( 1363 1597 _In_ 1364 1598 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1376 1610 _IRQL_requires_max_(PASSIVE_LEVEL) 1377 1611 WDFAPI 1378 1612 NTSTATUS 1613 + STDCALL 1379 1614 WDFEXPORT(WdfDeviceInitRegisterPowerPolicyStateChangeCallback)( 1380 1615 _In_ 1381 1616 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1392 1627 _IRQL_requires_max_(DISPATCH_LEVEL) 1393 1628 WDFAPI 1394 1629 VOID 1630 + STDCALL 1395 1631 WDFEXPORT(WdfDeviceInitSetExclusive)( 1396 1632 _In_ 1397 1633 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1404 1640 _IRQL_requires_max_(DISPATCH_LEVEL) 1405 1641 WDFAPI 1406 1642 VOID 1643 + STDCALL 1407 1644 WDFEXPORT(WdfDeviceInitSetIoType)( 1408 1645 _In_ 1409 1646 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1416 1653 _IRQL_requires_max_(DISPATCH_LEVEL) 1417 1654 WDFAPI 1418 1655 VOID 1656 + STDCALL 1419 1657 WDFEXPORT(WdfDeviceInitSetPowerNotPageable)( 1420 1658 _In_ 1421 1659 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1426 1664 _IRQL_requires_max_(DISPATCH_LEVEL) 1427 1665 WDFAPI 1428 1666 VOID 1667 + STDCALL 1429 1668 WDFEXPORT(WdfDeviceInitSetPowerPageable)( 1430 1669 _In_ 1431 1670 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1436 1675 _IRQL_requires_max_(DISPATCH_LEVEL) 1437 1676 WDFAPI 1438 1677 VOID 1678 + STDCALL 1439 1679 WDFEXPORT(WdfDeviceInitSetPowerInrush)( 1440 1680 _In_ 1441 1681 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1446 1686 _IRQL_requires_max_(DISPATCH_LEVEL) 1447 1687 WDFAPI 1448 1688 VOID 1689 + STDCALL 1449 1690 WDFEXPORT(WdfDeviceInitSetDeviceType)( 1450 1691 _In_ 1451 1692 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1459 1700 _IRQL_requires_max_(PASSIVE_LEVEL) 1460 1701 WDFAPI 1461 1702 NTSTATUS 1703 + STDCALL 1462 1704 WDFEXPORT(WdfDeviceInitAssignName)( 1463 1705 _In_ 1464 1706 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1472 1714 _IRQL_requires_max_(PASSIVE_LEVEL) 1473 1715 WDFAPI 1474 1716 NTSTATUS 1717 + STDCALL 1475 1718 WDFEXPORT(WdfDeviceInitAssignSDDLString)( 1476 1719 _In_ 1477 1720 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1484 1727 _IRQL_requires_max_(DISPATCH_LEVEL) 1485 1728 WDFAPI 1486 1729 VOID 1730 + STDCALL 1487 1731 WDFEXPORT(WdfDeviceInitSetDeviceClass)( 1488 1732 _In_ 1489 1733 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1496 1740 _IRQL_requires_max_(DISPATCH_LEVEL) 1497 1741 WDFAPI 1498 1742 VOID 1743 + STDCALL 1499 1744 WDFEXPORT(WdfDeviceInitSetCharacteristics)( 1500 1745 _In_ 1501 1746 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1510 1755 _IRQL_requires_max_(DISPATCH_LEVEL) 1511 1756 WDFAPI 1512 1757 VOID 1758 + STDCALL 1513 1759 WDFEXPORT(WdfDeviceInitSetFileObjectConfig)( 1514 1760 _In_ 1515 1761 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1524 1770 _IRQL_requires_max_(DISPATCH_LEVEL) 1525 1771 WDFAPI 1526 1772 VOID 1773 + STDCALL 1527 1774 WDFEXPORT(WdfDeviceInitSetRequestAttributes)( 1528 1775 _In_ 1529 1776 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1537 1784 _IRQL_requires_max_(DISPATCH_LEVEL) 1538 1785 WDFAPI 1539 1786 NTSTATUS 1787 + STDCALL 1540 1788 WDFEXPORT(WdfDeviceInitAssignWdmIrpPreprocessCallback)( 1541 1789 _In_ 1542 1790 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1556 1804 _IRQL_requires_max_(DISPATCH_LEVEL) 1557 1805 WDFAPI 1558 1806 VOID 1807 + STDCALL 1559 1808 WDFEXPORT(WdfDeviceInitSetIoInCallerContextCallback)( 1560 1809 _In_ 1561 1810 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1568 1817 _IRQL_requires_max_(DISPATCH_LEVEL) 1569 1818 WDFAPI 1570 1819 VOID 1820 + STDCALL 1571 1821 WDFEXPORT(WdfDeviceInitSetRemoveLockOptions)( 1572 1822 _In_ 1573 1823 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1581 1831 _IRQL_requires_max_(PASSIVE_LEVEL) 1582 1832 WDFAPI 1583 1833 NTSTATUS 1834 + STDCALL 1584 1835 WDFEXPORT(WdfDeviceCreate)( 1585 1836 _In_ 1586 1837 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1595 1846 _IRQL_requires_max_(DISPATCH_LEVEL) 1596 1847 WDFAPI 1597 1848 VOID 1849 + STDCALL 1598 1850 WDFEXPORT(WdfDeviceSetStaticStopRemove)( 1599 1851 _In_ 1600 1852 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1608 1860 _IRQL_requires_max_(PASSIVE_LEVEL) 1609 1861 WDFAPI 1610 1862 NTSTATUS 1863 + STDCALL 1611 1864 WDFEXPORT(WdfDeviceCreateDeviceInterface)( 1612 1865 _In_ 1613 1866 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1622 1875 _IRQL_requires_max_(PASSIVE_LEVEL) 1623 1876 WDFAPI 1624 1877 VOID 1878 + STDCALL 1625 1879 WDFEXPORT(WdfDeviceSetDeviceInterfaceState)( 1626 1880 _In_ 1627 1881 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1639 1893 _IRQL_requires_max_(PASSIVE_LEVEL) 1640 1894 WDFAPI 1641 1895 NTSTATUS 1896 + STDCALL 1642 1897 WDFEXPORT(WdfDeviceRetrieveDeviceInterfaceString)( 1643 1898 _In_ 1644 1899 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1656 1911 _IRQL_requires_max_(PASSIVE_LEVEL) 1657 1912 WDFAPI 1658 1913 NTSTATUS 1914 + STDCALL 1659 1915 WDFEXPORT(WdfDeviceCreateSymbolicLink)( 1660 1916 _In_ 1661 1917 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1669 1925 _IRQL_requires_max_(PASSIVE_LEVEL) 1670 1926 WDFAPI 1671 1927 NTSTATUS 1928 + STDCALL 1672 1929 WDFEXPORT(WdfDeviceQueryProperty)( 1673 1930 _In_ 1674 1931 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1688 1945 _IRQL_requires_max_(PASSIVE_LEVEL) 1689 1946 WDFAPI 1690 1947 NTSTATUS 1948 + STDCALL 1691 1949 WDFEXPORT(WdfDeviceAllocAndQueryProperty)( 1692 1950 _In_ 1693 1951 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1707 1965 _IRQL_requires_max_(DISPATCH_LEVEL) 1708 1966 WDFAPI 1709 1967 VOID 1968 + STDCALL 1710 1969 WDFEXPORT(WdfDeviceSetPnpCapabilities)( 1711 1970 _In_ 1712 1971 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1719 1978 _IRQL_requires_max_(DISPATCH_LEVEL) 1720 1979 WDFAPI 1721 1980 VOID 1981 + STDCALL 1722 1982 WDFEXPORT(WdfDeviceSetPowerCapabilities)( 1723 1983 _In_ 1724 1984 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1731 1991 _IRQL_requires_max_(DISPATCH_LEVEL) 1732 1992 WDFAPI 1733 1993 VOID 1994 + STDCALL 1734 1995 WDFEXPORT(WdfDeviceSetBusInformationForChildren)( 1735 1996 _In_ 1736 1997 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1744 2005 _IRQL_requires_max_(DISPATCH_LEVEL) 1745 2006 WDFAPI 1746 2007 NTSTATUS 2008 + STDCALL 1747 2009 WDFEXPORT(WdfDeviceIndicateWakeStatus)( 1748 2010 _In_ 1749 2011 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1756 2018 _IRQL_requires_max_(DISPATCH_LEVEL) 1757 2019 WDFAPI 1758 2020 VOID 2021 + STDCALL 1759 2022 WDFEXPORT(WdfDeviceSetFailed)( 1760 2023 _In_ 1761 2024 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1770 2033 _When_(WaitForD0 != 0, _IRQL_requires_max_(PASSIVE_LEVEL)) 1771 2034 WDFAPI 1772 2035 NTSTATUS 2036 + STDCALL 1773 2037 WDFEXPORT(WdfDeviceStopIdleNoTrack)( 1774 2038 _In_ 1775 2039 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1782 2046 _IRQL_requires_max_(DISPATCH_LEVEL) 1783 2047 WDFAPI 1784 2048 VOID 2049 + STDCALL 1785 2050 WDFEXPORT(WdfDeviceResumeIdleNoTrack)( 1786 2051 _In_ 1787 2052 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1794 2059 _When_(WaitForD0 != 0, _IRQL_requires_max_(PASSIVE_LEVEL)) 1795 2060 WDFAPI 1796 2061 NTSTATUS 2062 + STDCALL 1797 2063 WDFEXPORT(WdfDeviceStopIdleActual)( 1798 2064 _In_ 1799 2065 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1812 2078 _IRQL_requires_max_(DISPATCH_LEVEL) 1813 2079 WDFAPI 1814 2080 VOID 2081 + STDCALL 1815 2082 WDFEXPORT(WdfDeviceResumeIdleActual)( 1816 2083 _In_ 1817 2084 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1828 2095 _IRQL_requires_max_(DISPATCH_LEVEL) 1829 2096 WDFAPI 1830 2097 WDFFILEOBJECT 2098 + STDCALL 1831 2099 WDFEXPORT(WdfDeviceGetFileObject)( 1832 2100 _In_ 1833 2101 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1841 2109 _IRQL_requires_max_(DISPATCH_LEVEL) 1842 2110 WDFAPI 1843 2111 NTSTATUS 2112 + STDCALL 1844 2113 WDFEXPORT(WdfDeviceEnqueueRequest)( 1845 2114 _In_ 1846 2115 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1853 2122 _IRQL_requires_max_(DISPATCH_LEVEL) 1854 2123 WDFAPI 1855 2124 WDFQUEUE 2125 + STDCALL 1856 2126 WDFEXPORT(WdfDeviceGetDefaultQueue)( 1857 2127 _In_ 1858 2128 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1864 2134 _IRQL_requires_max_(DISPATCH_LEVEL) 1865 2135 WDFAPI 1866 2136 NTSTATUS 2137 + STDCALL 1867 2138 WDFEXPORT(WdfDeviceConfigureRequestDispatching)( 1868 2139 _In_ 1869 2140 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1880 2151 _IRQL_requires_max_(DISPATCH_LEVEL) 1881 2152 WDFAPI 1882 2153 NTSTATUS 2154 + STDCALL 1883 2155 WDFEXPORT(WdfDeviceConfigureWdmIrpDispatchCallback)( 1884 2156 _In_ 1885 2157 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1898 2170 _IRQL_requires_max_(DISPATCH_LEVEL) 1899 2171 WDFAPI 1900 2172 POWER_ACTION 2173 + STDCALL 1901 2174 WDFEXPORT(WdfDeviceGetSystemPowerAction)( 1902 2175 _In_ 1903 2176 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1909 2182 _IRQL_requires_max_(PASSIVE_LEVEL) 1910 2183 WDFAPI 1911 2184 NTSTATUS 2185 + STDCALL 1912 2186 WDFEXPORT(WdfDeviceWdmAssignPowerFrameworkSettings)( 1913 2187 _In_ 1914 2188 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1921 2195 _IRQL_requires_max_(DISPATCH_LEVEL) 1922 2196 WDFAPI 1923 2197 VOID 2198 + STDCALL 1924 2199 WDFEXPORT(WdfDeviceInitSetReleaseHardwareOrderOnFailure)( 1925 2200 _In_ 1926 2201 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1933 2208 _IRQL_requires_max_(PASSIVE_LEVEL) 1934 2209 WDFAPI 1935 2210 VOID 2211 + STDCALL 1936 2212 WDFEXPORT(WdfDeviceInitSetIoTypeEx)( 1937 2213 _In_ 1938 2214 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1946 2222 _IRQL_requires_max_(APC_LEVEL) 1947 2223 WDFAPI 1948 2224 NTSTATUS 2225 + STDCALL 1949 2226 WDFEXPORT(WdfDeviceQueryPropertyEx)( 1950 2227 _In_ 1951 2228 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1967 2244 _IRQL_requires_max_(APC_LEVEL) 1968 2245 WDFAPI 1969 2246 NTSTATUS 2247 + STDCALL 1970 2248 WDFEXPORT(WdfDeviceAllocAndQueryPropertyEx)( 1971 2249 _In_ 1972 2250 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1989 2267 _IRQL_requires_max_(APC_LEVEL) 1990 2268 WDFAPI 1991 2269 NTSTATUS 2270 + STDCALL 1992 2271 WDFEXPORT(WdfDeviceAssignProperty)( 1993 2272 _In_ 1994 2273 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2007 2286 _IRQL_requires_max_(DISPATCH_LEVEL) 2008 2287 WDFAPI 2009 2288 WDFIOTARGET 2289 + STDCALL 2010 2290 WDFEXPORT(WdfDeviceGetSelfIoTarget)( 2011 2291 _In_ 2012 2292 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2017 2297 _IRQL_requires_max_(DISPATCH_LEVEL) 2018 2298 WDFAPI 2019 2299 VOID 2300 + STDCALL 2020 2301 WDFEXPORT(WdfDeviceInitAllowSelfIoTarget)( 2021 2302 _In_ 2022 2303 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2028 2309 _IRQL_requires_max_(PASSIVE_LEVEL) 2029 2310 WDFAPI 2030 2311 NTSTATUS 2312 + STDCALL 2031 2313 WDFEXPORT(WdfDmaEnablerCreate)( 2032 2314 _In_ 2033 2315 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2045 2327 _IRQL_requires_max_(PASSIVE_LEVEL) 2046 2328 WDFAPI 2047 2329 NTSTATUS 2330 + STDCALL 2048 2331 WDFEXPORT(WdfDmaEnablerConfigureSystemProfile)( 2049 2332 _In_ 2050 2333 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2059 2342 _IRQL_requires_max_(DISPATCH_LEVEL) 2060 2343 WDFAPI 2061 2344 size_t 2345 + STDCALL 2062 2346 WDFEXPORT(WdfDmaEnablerGetMaximumLength)( 2063 2347 _In_ 2064 2348 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2069 2353 _IRQL_requires_max_(DISPATCH_LEVEL) 2070 2354 WDFAPI 2071 2355 size_t 2356 + STDCALL 2072 2357 WDFEXPORT(WdfDmaEnablerGetMaximumScatterGatherElements)( 2073 2358 _In_ 2074 2359 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2079 2364 _IRQL_requires_max_(PASSIVE_LEVEL) 2080 2365 WDFAPI 2081 2366 VOID 2367 + STDCALL 2082 2368 WDFEXPORT(WdfDmaEnablerSetMaximumScatterGatherElements)( 2083 2369 _In_ 2084 2370 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2092 2378 _IRQL_requires_max_(DISPATCH_LEVEL) 2093 2379 WDFAPI 2094 2380 size_t 2381 + STDCALL 2095 2382 WDFEXPORT(WdfDmaEnablerGetFragmentLength)( 2096 2383 _In_ 2097 2384 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2104 2391 _IRQL_requires_max_(DISPATCH_LEVEL) 2105 2392 WDFAPI 2106 2393 PDMA_ADAPTER 2394 + STDCALL 2107 2395 WDFEXPORT(WdfDmaEnablerWdmGetDmaAdapter)( 2108 2396 _In_ 2109 2397 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2117 2405 _IRQL_requires_max_(DISPATCH_LEVEL) 2118 2406 WDFAPI 2119 2407 NTSTATUS 2408 + STDCALL 2120 2409 WDFEXPORT(WdfDmaTransactionCreate)( 2121 2410 _In_ 2122 2411 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2132 2421 _IRQL_requires_max_(DISPATCH_LEVEL) 2133 2422 WDFAPI 2134 2423 NTSTATUS 2424 + STDCALL 2135 2425 WDFEXPORT(WdfDmaTransactionInitialize)( 2136 2426 _In_ 2137 2427 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2154 2444 _IRQL_requires_max_(DISPATCH_LEVEL) 2155 2445 WDFAPI 2156 2446 NTSTATUS 2447 + STDCALL 2157 2448 WDFEXPORT(WdfDmaTransactionInitializeUsingOffset)( 2158 2449 _In_ 2159 2450 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2176 2467 _IRQL_requires_max_(DISPATCH_LEVEL) 2177 2468 WDFAPI 2178 2469 NTSTATUS 2470 + STDCALL 2179 2471 WDFEXPORT(WdfDmaTransactionInitializeUsingRequest)( 2180 2472 _In_ 2181 2473 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2193 2485 _IRQL_requires_max_(DISPATCH_LEVEL) 2194 2486 WDFAPI 2195 2487 NTSTATUS 2488 + STDCALL 2196 2489 WDFEXPORT(WdfDmaTransactionExecute)( 2197 2490 _In_ 2198 2491 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2206 2499 _IRQL_requires_max_(DISPATCH_LEVEL) 2207 2500 WDFAPI 2208 2501 NTSTATUS 2502 + STDCALL 2209 2503 WDFEXPORT(WdfDmaTransactionRelease)( 2210 2504 _In_ 2211 2505 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2216 2510 _IRQL_requires_max_(DISPATCH_LEVEL) 2217 2511 WDFAPI 2218 2512 BOOLEAN 2513 + STDCALL 2219 2514 WDFEXPORT(WdfDmaTransactionDmaCompleted)( 2220 2515 _In_ 2221 2516 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2228 2523 _IRQL_requires_max_(DISPATCH_LEVEL) 2229 2524 WDFAPI 2230 2525 BOOLEAN 2526 + STDCALL 2231 2527 WDFEXPORT(WdfDmaTransactionDmaCompletedWithLength)( 2232 2528 _In_ 2233 2529 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2242 2538 _IRQL_requires_max_(DISPATCH_LEVEL) 2243 2539 WDFAPI 2244 2540 BOOLEAN 2541 + STDCALL 2245 2542 WDFEXPORT(WdfDmaTransactionDmaCompletedFinal)( 2246 2543 _In_ 2247 2544 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2256 2553 _IRQL_requires_max_(DISPATCH_LEVEL) 2257 2554 WDFAPI 2258 2555 size_t 2556 + STDCALL 2259 2557 WDFEXPORT(WdfDmaTransactionGetBytesTransferred)( 2260 2558 _In_ 2261 2559 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2266 2564 _IRQL_requires_max_(DISPATCH_LEVEL) 2267 2565 WDFAPI 2268 2566 VOID 2567 + STDCALL 2269 2568 WDFEXPORT(WdfDmaTransactionSetMaximumLength)( 2270 2569 _In_ 2271 2570 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2278 2577 _IRQL_requires_max_(DISPATCH_LEVEL) 2279 2578 WDFAPI 2280 2579 WDFREQUEST 2580 + STDCALL 2281 2581 WDFEXPORT(WdfDmaTransactionGetRequest)( 2282 2582 _In_ 2283 2583 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2288 2588 _IRQL_requires_max_(DISPATCH_LEVEL) 2289 2589 WDFAPI 2290 2590 size_t 2591 + STDCALL 2291 2592 WDFEXPORT(WdfDmaTransactionGetCurrentDmaTransferLength)( 2292 2593 _In_ 2293 2594 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2298 2599 _IRQL_requires_max_(DISPATCH_LEVEL) 2299 2600 WDFAPI 2300 2601 WDFDEVICE 2602 + STDCALL 2301 2603 WDFEXPORT(WdfDmaTransactionGetDevice)( 2302 2604 _In_ 2303 2605 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2308 2610 _IRQL_requires_max_(DISPATCH_LEVEL) 2309 2611 WDFAPI 2310 2612 VOID 2613 + STDCALL 2311 2614 WDFEXPORT(WdfDmaTransactionGetTransferInfo)( 2312 2615 _In_ 2313 2616 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2322 2625 _IRQL_requires_max_(DISPATCH_LEVEL) 2323 2626 WDFAPI 2324 2627 VOID 2628 + STDCALL 2325 2629 WDFEXPORT(WdfDmaTransactionSetChannelConfigurationCallback)( 2326 2630 _In_ 2327 2631 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2336 2640 _IRQL_requires_max_(DISPATCH_LEVEL) 2337 2641 WDFAPI 2338 2642 VOID 2643 + STDCALL 2339 2644 WDFEXPORT(WdfDmaTransactionSetTransferCompleteCallback)( 2340 2645 _In_ 2341 2646 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2350 2655 _IRQL_requires_max_(DISPATCH_LEVEL) 2351 2656 WDFAPI 2352 2657 VOID 2658 + STDCALL 2353 2659 WDFEXPORT(WdfDmaTransactionSetImmediateExecution)( 2354 2660 _In_ 2355 2661 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2362 2668 _IRQL_requires_max_(DISPATCH_LEVEL) 2363 2669 WDFAPI 2364 2670 NTSTATUS 2671 + STDCALL 2365 2672 WDFEXPORT(WdfDmaTransactionAllocateResources)( 2366 2673 _In_ 2367 2674 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2380 2687 _IRQL_requires_max_(DISPATCH_LEVEL) 2381 2688 WDFAPI 2382 2689 VOID 2690 + STDCALL 2383 2691 WDFEXPORT(WdfDmaTransactionSetDeviceAddressOffset)( 2384 2692 _In_ 2385 2693 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2392 2700 _IRQL_requires_max_(DISPATCH_LEVEL) 2393 2701 WDFAPI 2394 2702 VOID 2703 + STDCALL 2395 2704 WDFEXPORT(WdfDmaTransactionFreeResources)( 2396 2705 _In_ 2397 2706 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2402 2711 _IRQL_requires_max_(DISPATCH_LEVEL) 2403 2712 WDFAPI 2404 2713 BOOLEAN 2714 + STDCALL 2405 2715 WDFEXPORT(WdfDmaTransactionCancel)( 2406 2716 _In_ 2407 2717 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2412 2722 _IRQL_requires_max_(DISPATCH_LEVEL) 2413 2723 WDFAPI 2414 2724 PVOID 2725 + STDCALL 2415 2726 WDFEXPORT(WdfDmaTransactionWdmGetTransferContext)( 2416 2727 _In_ 2417 2728 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2422 2733 _IRQL_requires_max_(DISPATCH_LEVEL) 2423 2734 WDFAPI 2424 2735 VOID 2736 + STDCALL 2425 2737 WDFEXPORT(WdfDmaTransactionStopSystemTransfer)( 2426 2738 _In_ 2427 2739 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2433 2745 _IRQL_requires_max_(DISPATCH_LEVEL) 2434 2746 WDFAPI 2435 2747 NTSTATUS 2748 + STDCALL 2436 2749 WDFEXPORT(WdfDpcCreate)( 2437 2750 _In_ 2438 2751 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2447 2760 _IRQL_requires_max_(HIGH_LEVEL) 2448 2761 WDFAPI 2449 2762 BOOLEAN 2763 + STDCALL 2450 2764 WDFEXPORT(WdfDpcEnqueue)( 2451 2765 _In_ 2452 2766 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2458 2772 _When_(Wait == __false, _IRQL_requires_max_(HIGH_LEVEL)) 2459 2773 WDFAPI 2460 2774 BOOLEAN 2775 + STDCALL 2461 2776 WDFEXPORT(WdfDpcCancel)( 2462 2777 _In_ 2463 2778 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2470 2785 _IRQL_requires_max_(HIGH_LEVEL) 2471 2786 WDFAPI 2472 2787 WDFOBJECT 2788 + STDCALL 2473 2789 WDFEXPORT(WdfDpcGetParentObject)( 2474 2790 _In_ 2475 2791 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2480 2796 _IRQL_requires_max_(HIGH_LEVEL) 2481 2797 WDFAPI 2482 2798 PKDPC 2799 + STDCALL 2483 2800 WDFEXPORT(WdfDpcWdmGetDpc)( 2484 2801 _In_ 2485 2802 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2491 2808 _IRQL_requires_max_(PASSIVE_LEVEL) 2492 2809 WDFAPI 2493 2810 NTSTATUS 2811 + STDCALL 2494 2812 WDFEXPORT(WdfDriverCreate)( 2495 2813 _In_ 2496 2814 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2509 2827 _IRQL_requires_max_(PASSIVE_LEVEL) 2510 2828 WDFAPI 2511 2829 PWSTR 2830 + STDCALL 2512 2831 WDFEXPORT(WdfDriverGetRegistryPath)( 2513 2832 _In_ 2514 2833 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2519 2838 _IRQL_requires_max_(DISPATCH_LEVEL) 2520 2839 WDFAPI 2521 2840 PDRIVER_OBJECT 2841 + STDCALL 2522 2842 WDFEXPORT(WdfDriverWdmGetDriverObject)( 2523 2843 _In_ 2524 2844 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2530 2850 _IRQL_requires_max_(PASSIVE_LEVEL) 2531 2851 WDFAPI 2532 2852 NTSTATUS 2853 + STDCALL 2533 2854 WDFEXPORT(WdfDriverOpenParametersRegistryKey)( 2534 2855 _In_ 2535 2856 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2546 2867 _IRQL_requires_max_(DISPATCH_LEVEL) 2547 2868 WDFAPI 2548 2869 WDFDRIVER 2870 + STDCALL 2549 2871 WDFEXPORT(WdfWdmDriverGetWdfDriverHandle)( 2550 2872 _In_ 2551 2873 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2557 2879 _IRQL_requires_max_(PASSIVE_LEVEL) 2558 2880 WDFAPI 2559 2881 NTSTATUS 2882 + STDCALL 2560 2883 WDFEXPORT(WdfDriverRegisterTraceInfo)( 2561 2884 _In_ 2562 2885 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2572 2895 _IRQL_requires_max_(PASSIVE_LEVEL) 2573 2896 WDFAPI 2574 2897 NTSTATUS 2898 + STDCALL 2575 2899 WDFEXPORT(WdfDriverRetrieveVersionString)( 2576 2900 _In_ 2577 2901 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2585 2909 _IRQL_requires_max_(PASSIVE_LEVEL) 2586 2910 WDFAPI 2587 2911 BOOLEAN 2912 + STDCALL 2588 2913 WDFEXPORT(WdfDriverIsVersionAvailable)( 2589 2914 _In_ 2590 2915 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2597 2922 _IRQL_requires_max_(DISPATCH_LEVEL) 2598 2923 WDFAPI 2599 2924 PDEVICE_OBJECT 2925 + STDCALL 2600 2926 WDFEXPORT(WdfFdoInitWdmGetPhysicalDevice)( 2601 2927 _In_ 2602 2928 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2608 2934 _IRQL_requires_max_(PASSIVE_LEVEL) 2609 2935 WDFAPI 2610 2936 NTSTATUS 2937 + STDCALL 2611 2938 WDFEXPORT(WdfFdoInitOpenRegistryKey)( 2612 2939 _In_ 2613 2940 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2627 2954 _IRQL_requires_max_(PASSIVE_LEVEL) 2628 2955 WDFAPI 2629 2956 NTSTATUS 2957 + STDCALL 2630 2958 WDFEXPORT(WdfFdoInitQueryProperty)( 2631 2959 _In_ 2632 2960 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2646 2974 _IRQL_requires_max_(PASSIVE_LEVEL) 2647 2975 WDFAPI 2648 2976 NTSTATUS 2977 + STDCALL 2649 2978 WDFEXPORT(WdfFdoInitAllocAndQueryProperty)( 2650 2979 _In_ 2651 2980 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2666 2995 _IRQL_requires_max_(PASSIVE_LEVEL) 2667 2996 WDFAPI 2668 2997 NTSTATUS 2998 + STDCALL 2669 2999 WDFEXPORT(WdfFdoInitQueryPropertyEx)( 2670 3000 _In_ 2671 3001 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2687 3017 _IRQL_requires_max_(PASSIVE_LEVEL) 2688 3018 WDFAPI 2689 3019 NTSTATUS 3020 + STDCALL 2690 3021 WDFEXPORT(WdfFdoInitAllocAndQueryPropertyEx)( 2691 3022 _In_ 2692 3023 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2708 3039 _IRQL_requires_max_(PASSIVE_LEVEL) 2709 3040 WDFAPI 2710 3041 VOID 3042 + STDCALL 2711 3043 WDFEXPORT(WdfFdoInitSetEventCallbacks)( 2712 3044 _In_ 2713 3045 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2720 3052 _IRQL_requires_max_(PASSIVE_LEVEL) 2721 3053 WDFAPI 2722 3054 VOID 3055 + STDCALL 2723 3056 WDFEXPORT(WdfFdoInitSetFilter)( 2724 3057 _In_ 2725 3058 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2730 3063 _IRQL_requires_max_(PASSIVE_LEVEL) 2731 3064 WDFAPI 2732 3065 VOID 3066 + STDCALL 2733 3067 WDFEXPORT(WdfFdoInitSetDefaultChildListConfig)( 2734 3068 _In_ 2735 3069 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2745 3079 _IRQL_requires_max_(PASSIVE_LEVEL) 2746 3080 WDFAPI 2747 3081 NTSTATUS 3082 + STDCALL 2748 3083 WDFEXPORT(WdfFdoQueryForInterface)( 2749 3084 _In_ 2750 3085 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2765 3100 _IRQL_requires_max_(DISPATCH_LEVEL) 2766 3101 WDFAPI 2767 3102 WDFCHILDLIST 3103 + STDCALL 2768 3104 WDFEXPORT(WdfFdoGetDefaultChildList)( 2769 3105 _In_ 2770 3106 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2776 3112 _IRQL_requires_max_(DISPATCH_LEVEL) 2777 3113 WDFAPI 2778 3114 NTSTATUS 3115 + STDCALL 2779 3116 WDFEXPORT(WdfFdoAddStaticChild)( 2780 3117 _In_ 2781 3118 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2788 3125 _IRQL_requires_max_(DISPATCH_LEVEL) 2789 3126 WDFAPI 2790 3127 VOID 3128 + STDCALL 2791 3129 WDFEXPORT(WdfFdoLockStaticChildListForIteration)( 2792 3130 _In_ 2793 3131 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2799 3137 _IRQL_requires_max_(DISPATCH_LEVEL) 2800 3138 WDFAPI 2801 3139 WDFDEVICE 3140 + STDCALL 2802 3141 WDFEXPORT(WdfFdoRetrieveNextStaticChild)( 2803 3142 _In_ 2804 3143 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2813 3152 _IRQL_requires_max_(DISPATCH_LEVEL) 2814 3153 WDFAPI 2815 3154 VOID 3155 + STDCALL 2816 3156 WDFEXPORT(WdfFdoUnlockStaticChildListFromIteration)( 2817 3157 _In_ 2818 3158 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2823 3163 _IRQL_requires_max_(PASSIVE_LEVEL) 2824 3164 WDFAPI 2825 3165 PUNICODE_STRING 3166 + STDCALL 2826 3167 WDFEXPORT(WdfFileObjectGetFileName)( 2827 3168 _In_ 2828 3169 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2833 3174 _IRQL_requires_max_(DISPATCH_LEVEL) 2834 3175 WDFAPI 2835 3176 ULONG 3177 + STDCALL 2836 3178 WDFEXPORT(WdfFileObjectGetFlags)( 2837 3179 _In_ 2838 3180 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2843 3185 _IRQL_requires_max_(DISPATCH_LEVEL) 2844 3186 WDFAPI 2845 3187 WDFDEVICE 3188 + STDCALL 2846 3189 WDFEXPORT(WdfFileObjectGetDevice)( 2847 3190 _In_ 2848 3191 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2853 3196 _IRQL_requires_max_(DISPATCH_LEVEL) 2854 3197 WDFAPI 2855 3198 PFILE_OBJECT 3199 + STDCALL 2856 3200 WDFEXPORT(WdfFileObjectWdmGetFileObject)( 2857 3201 _In_ 2858 3202 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2864 3208 _IRQL_requires_max_(DISPATCH_LEVEL) 2865 3209 WDFAPI 2866 3210 NTSTATUS 3211 + STDCALL 2867 3212 WDFEXPORT(WdfInterruptCreate)( 2868 3213 _In_ 2869 3214 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2879 3224 2880 3225 WDFAPI 2881 3226 BOOLEAN 3227 + STDCALL 2882 3228 WDFEXPORT(WdfInterruptQueueDpcForIsr)( 2883 3229 _In_ 2884 3230 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2888 3234 2889 3235 WDFAPI 2890 3236 BOOLEAN 3237 + STDCALL 2891 3238 WDFEXPORT(WdfInterruptQueueWorkItemForIsr)( 2892 3239 _In_ 2893 3240 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2898 3245 _IRQL_requires_max_(DISPATCH_LEVEL) 2899 3246 WDFAPI 2900 3247 BOOLEAN 3248 + STDCALL 2901 3249 WDFEXPORT(WdfInterruptSynchronize)( 2902 3250 _In_ 2903 3251 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2912 3260 _IRQL_requires_max_(DISPATCH_LEVEL + 1) 2913 3261 WDFAPI 2914 3262 VOID 3263 + STDCALL 2915 3264 WDFEXPORT(WdfInterruptAcquireLock)( 2916 3265 _In_ 2917 3266 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2924 3273 _IRQL_requires_max_(DISPATCH_LEVEL + 1) 2925 3274 WDFAPI 2926 3275 VOID 3276 + STDCALL 2927 3277 WDFEXPORT(WdfInterruptReleaseLock)( 2928 3278 _In_ 2929 3279 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2936 3286 _IRQL_requires_max_(PASSIVE_LEVEL) 2937 3287 WDFAPI 2938 3288 VOID 3289 + STDCALL 2939 3290 WDFEXPORT(WdfInterruptEnable)( 2940 3291 _In_ 2941 3292 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2946 3297 _IRQL_requires_max_(PASSIVE_LEVEL) 2947 3298 WDFAPI 2948 3299 VOID 3300 + STDCALL 2949 3301 WDFEXPORT(WdfInterruptDisable)( 2950 3302 _In_ 2951 3303 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2956 3308 _Must_inspect_result_ 2957 3309 WDFAPI 2958 3310 PKINTERRUPT 3311 + STDCALL 2959 3312 WDFEXPORT(WdfInterruptWdmGetInterrupt)( 2960 3313 _In_ 2961 3314 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2966 3319 _IRQL_requires_max_(DISPATCH_LEVEL) 2967 3320 WDFAPI 2968 3321 VOID 3322 + STDCALL 2969 3323 WDFEXPORT(WdfInterruptGetInfo)( 2970 3324 _In_ 2971 3325 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2978 3332 _IRQL_requires_max_(DISPATCH_LEVEL) 2979 3333 WDFAPI 2980 3334 VOID 3335 + STDCALL 2981 3336 WDFEXPORT(WdfInterruptSetPolicy)( 2982 3337 _In_ 2983 3338 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2994 3349 _IRQL_requires_max_(DISPATCH_LEVEL) 2995 3350 WDFAPI 2996 3351 VOID 3352 + STDCALL 2997 3353 WDFEXPORT(WdfInterruptSetExtendedPolicy)( 2998 3354 _In_ 2999 3355 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3005 3361 3006 3362 WDFAPI 3007 3363 WDFDEVICE 3364 + STDCALL 3008 3365 WDFEXPORT(WdfInterruptGetDevice)( 3009 3366 _In_ 3010 3367 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3017 3374 _IRQL_requires_max_(PASSIVE_LEVEL) 3018 3375 WDFAPI 3019 3376 BOOLEAN 3377 + STDCALL 3020 3378 WDFEXPORT(WdfInterruptTryToAcquireLock)( 3021 3379 _In_ 3022 3380 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3029 3387 _IRQL_requires_max_(DISPATCH_LEVEL) 3030 3388 WDFAPI 3031 3389 VOID 3390 + STDCALL 3032 3391 WDFEXPORT(WdfInterruptReportActive)( 3033 3392 _In_ 3034 3393 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3039 3398 _IRQL_requires_max_(DISPATCH_LEVEL) 3040 3399 WDFAPI 3041 3400 VOID 3401 + STDCALL 3042 3402 WDFEXPORT(WdfInterruptReportInactive)( 3043 3403 _In_ 3044 3404 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3050 3410 _IRQL_requires_max_(DISPATCH_LEVEL) 3051 3411 WDFAPI 3052 3412 NTSTATUS 3413 + STDCALL 3053 3414 WDFEXPORT(WdfIoQueueCreate)( 3054 3415 _In_ 3055 3416 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3066 3427 _IRQL_requires_max_(DISPATCH_LEVEL) 3067 3428 WDFAPI 3068 3429 WDF_IO_QUEUE_STATE 3430 + STDCALL 3069 3431 WDFEXPORT(WdfIoQueueGetState)( 3070 3432 _In_ 3071 3433 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3080 3442 _IRQL_requires_max_(DISPATCH_LEVEL) 3081 3443 WDFAPI 3082 3444 VOID 3445 + STDCALL 3083 3446 WDFEXPORT(WdfIoQueueStart)( 3084 3447 _In_ 3085 3448 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3090 3453 _IRQL_requires_max_(DISPATCH_LEVEL) 3091 3454 WDFAPI 3092 3455 VOID 3456 + STDCALL 3093 3457 WDFEXPORT(WdfIoQueueStop)( 3094 3458 _In_ 3095 3459 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3106 3470 _IRQL_requires_max_(PASSIVE_LEVEL) 3107 3471 WDFAPI 3108 3472 VOID 3473 + STDCALL 3109 3474 WDFEXPORT(WdfIoQueueStopSynchronously)( 3110 3475 _In_ 3111 3476 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3116 3481 _IRQL_requires_max_(DISPATCH_LEVEL) 3117 3482 WDFAPI 3118 3483 WDFDEVICE 3484 + STDCALL 3119 3485 WDFEXPORT(WdfIoQueueGetDevice)( 3120 3486 _In_ 3121 3487 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3127 3493 _IRQL_requires_max_(DISPATCH_LEVEL) 3128 3494 WDFAPI 3129 3495 NTSTATUS 3496 + STDCALL 3130 3497 WDFEXPORT(WdfIoQueueRetrieveNextRequest)( 3131 3498 _In_ 3132 3499 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3140 3507 _IRQL_requires_max_(DISPATCH_LEVEL) 3141 3508 WDFAPI 3142 3509 NTSTATUS 3510 + STDCALL 3143 3511 WDFEXPORT(WdfIoQueueRetrieveRequestByFileObject)( 3144 3512 _In_ 3145 3513 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3155 3523 _IRQL_requires_max_(DISPATCH_LEVEL) 3156 3524 WDFAPI 3157 3525 NTSTATUS 3526 + STDCALL 3158 3527 WDFEXPORT(WdfIoQueueFindRequest)( 3159 3528 _In_ 3160 3529 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3174 3543 _IRQL_requires_max_(DISPATCH_LEVEL) 3175 3544 WDFAPI 3176 3545 NTSTATUS 3546 + STDCALL 3177 3547 WDFEXPORT(WdfIoQueueRetrieveFoundRequest)( 3178 3548 _In_ 3179 3549 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3188 3558 _IRQL_requires_max_(PASSIVE_LEVEL) 3189 3559 WDFAPI 3190 3560 VOID 3561 + STDCALL 3191 3562 WDFEXPORT(WdfIoQueueDrainSynchronously)( 3192 3563 _In_ 3193 3564 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3198 3569 _IRQL_requires_max_(DISPATCH_LEVEL) 3199 3570 WDFAPI 3200 3571 VOID 3572 + STDCALL 3201 3573 WDFEXPORT(WdfIoQueueDrain)( 3202 3574 _In_ 3203 3575 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3214 3586 _IRQL_requires_max_(PASSIVE_LEVEL) 3215 3587 WDFAPI 3216 3588 VOID 3589 + STDCALL 3217 3590 WDFEXPORT(WdfIoQueuePurgeSynchronously)( 3218 3591 _In_ 3219 3592 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3224 3597 _IRQL_requires_max_(DISPATCH_LEVEL) 3225 3598 WDFAPI 3226 3599 VOID 3600 + STDCALL 3227 3601 WDFEXPORT(WdfIoQueuePurge)( 3228 3602 _In_ 3229 3603 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3241 3615 _IRQL_requires_max_(DISPATCH_LEVEL) 3242 3616 WDFAPI 3243 3617 NTSTATUS 3618 + STDCALL 3244 3619 WDFEXPORT(WdfIoQueueReadyNotify)( 3245 3620 _In_ 3246 3621 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3256 3631 _IRQL_requires_max_(PASSIVE_LEVEL) 3257 3632 WDFAPI 3258 3633 NTSTATUS 3634 + STDCALL 3259 3635 WDFEXPORT(WdfIoQueueAssignForwardProgressPolicy)( 3260 3636 _In_ 3261 3637 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3268 3644 _IRQL_requires_max_(DISPATCH_LEVEL) 3269 3645 WDFAPI 3270 3646 VOID 3647 + STDCALL 3271 3648 WDFEXPORT(WdfIoQueueStopAndPurge)( 3272 3649 _In_ 3273 3650 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3284 3661 _IRQL_requires_max_(PASSIVE_LEVEL) 3285 3662 WDFAPI 3286 3663 VOID 3664 + STDCALL 3287 3665 WDFEXPORT(WdfIoQueueStopAndPurgeSynchronously)( 3288 3666 _In_ 3289 3667 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3295 3673 _IRQL_requires_max_(PASSIVE_LEVEL) 3296 3674 WDFAPI 3297 3675 NTSTATUS 3676 + STDCALL 3298 3677 WDFEXPORT(WdfIoTargetCreate)( 3299 3678 _In_ 3300 3679 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3310 3689 _IRQL_requires_max_(PASSIVE_LEVEL) 3311 3690 WDFAPI 3312 3691 NTSTATUS 3692 + STDCALL 3313 3693 WDFEXPORT(WdfIoTargetOpen)( 3314 3694 _In_ 3315 3695 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3322 3702 _IRQL_requires_max_(PASSIVE_LEVEL) 3323 3703 WDFAPI 3324 3704 VOID 3705 + STDCALL 3325 3706 WDFEXPORT(WdfIoTargetCloseForQueryRemove)( 3326 3707 _In_ 3327 3708 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3332 3713 _IRQL_requires_max_(PASSIVE_LEVEL) 3333 3714 WDFAPI 3334 3715 VOID 3716 + STDCALL 3335 3717 WDFEXPORT(WdfIoTargetClose)( 3336 3718 _In_ 3337 3719 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3343 3725 _IRQL_requires_max_(DISPATCH_LEVEL) 3344 3726 WDFAPI 3345 3727 NTSTATUS 3728 + STDCALL 3346 3729 WDFEXPORT(WdfIoTargetStart)( 3347 3730 _In_ 3348 3731 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3354 3737 _When_(Action == 0 || Action == 1 || Action == 2, _IRQL_requires_max_(PASSIVE_LEVEL)) 3355 3738 WDFAPI 3356 3739 VOID 3740 + STDCALL 3357 3741 WDFEXPORT(WdfIoTargetStop)( 3358 3742 _In_ 3359 3743 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3368 3752 _When_(Action == 0 || Action == 1, _IRQL_requires_max_(PASSIVE_LEVEL)) 3369 3753 WDFAPI 3370 3754 VOID 3755 + STDCALL 3371 3756 WDFEXPORT(WdfIoTargetPurge)( 3372 3757 _In_ 3373 3758 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3381 3766 _IRQL_requires_max_(DISPATCH_LEVEL) 3382 3767 WDFAPI 3383 3768 WDF_IO_TARGET_STATE 3769 + STDCALL 3384 3770 WDFEXPORT(WdfIoTargetGetState)( 3385 3771 _In_ 3386 3772 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3391 3777 _IRQL_requires_max_(DISPATCH_LEVEL) 3392 3778 WDFAPI 3393 3779 WDFDEVICE 3780 + STDCALL 3394 3781 WDFEXPORT(WdfIoTargetGetDevice)( 3395 3782 _In_ 3396 3783 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3402 3789 _IRQL_requires_max_(PASSIVE_LEVEL) 3403 3790 WDFAPI 3404 3791 NTSTATUS 3792 + STDCALL 3405 3793 WDFEXPORT(WdfIoTargetQueryTargetProperty)( 3406 3794 _In_ 3407 3795 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3422 3810 _IRQL_requires_max_(PASSIVE_LEVEL) 3423 3811 WDFAPI 3424 3812 NTSTATUS 3813 + STDCALL 3425 3814 WDFEXPORT(WdfIoTargetAllocAndQueryTargetProperty)( 3426 3815 _In_ 3427 3816 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3442 3831 _IRQL_requires_max_(PASSIVE_LEVEL) 3443 3832 WDFAPI 3444 3833 NTSTATUS 3834 + STDCALL 3445 3835 WDFEXPORT(WdfIoTargetQueryForInterface)( 3446 3836 _In_ 3447 3837 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3462 3852 _IRQL_requires_max_(DISPATCH_LEVEL) 3463 3853 WDFAPI 3464 3854 PDEVICE_OBJECT 3855 + STDCALL 3465 3856 WDFEXPORT(WdfIoTargetWdmGetTargetDeviceObject)( 3466 3857 _In_ 3467 3858 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3472 3863 _IRQL_requires_max_(DISPATCH_LEVEL) 3473 3864 WDFAPI 3474 3865 PDEVICE_OBJECT 3866 + STDCALL 3475 3867 WDFEXPORT(WdfIoTargetWdmGetTargetPhysicalDevice)( 3476 3868 _In_ 3477 3869 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3482 3874 _IRQL_requires_max_(DISPATCH_LEVEL) 3483 3875 WDFAPI 3484 3876 PFILE_OBJECT 3877 + STDCALL 3485 3878 WDFEXPORT(WdfIoTargetWdmGetTargetFileObject)( 3486 3879 _In_ 3487 3880 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3492 3885 _IRQL_requires_max_(DISPATCH_LEVEL) 3493 3886 WDFAPI 3494 3887 HANDLE 3888 + STDCALL 3495 3889 WDFEXPORT(WdfIoTargetWdmGetTargetFileHandle)( 3496 3890 _In_ 3497 3891 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3503 3897 _IRQL_requires_max_(PASSIVE_LEVEL) 3504 3898 WDFAPI 3505 3899 NTSTATUS 3900 + STDCALL 3506 3901 WDFEXPORT(WdfIoTargetSendReadSynchronously)( 3507 3902 _In_ 3508 3903 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3524 3919 _IRQL_requires_max_(DISPATCH_LEVEL) 3525 3920 WDFAPI 3526 3921 NTSTATUS 3922 + STDCALL 3527 3923 WDFEXPORT(WdfIoTargetFormatRequestForRead)( 3528 3924 _In_ 3529 3925 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3543 3939 _IRQL_requires_max_(PASSIVE_LEVEL) 3544 3940 WDFAPI 3545 3941 NTSTATUS 3942 + STDCALL 3546 3943 WDFEXPORT(WdfIoTargetSendWriteSynchronously)( 3547 3944 _In_ 3548 3945 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3564 3961 _IRQL_requires_max_(DISPATCH_LEVEL) 3565 3962 WDFAPI 3566 3963 NTSTATUS 3964 + STDCALL 3567 3965 WDFEXPORT(WdfIoTargetFormatRequestForWrite)( 3568 3966 _In_ 3569 3967 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3583 3981 _IRQL_requires_max_(PASSIVE_LEVEL) 3584 3982 WDFAPI 3585 3983 NTSTATUS 3984 + STDCALL 3586 3985 WDFEXPORT(WdfIoTargetSendIoctlSynchronously)( 3587 3986 _In_ 3588 3987 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3606 4005 _IRQL_requires_max_(DISPATCH_LEVEL) 3607 4006 WDFAPI 3608 4007 NTSTATUS 4008 + STDCALL 3609 4009 WDFEXPORT(WdfIoTargetFormatRequestForIoctl)( 3610 4010 _In_ 3611 4011 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3629 4029 _IRQL_requires_max_(PASSIVE_LEVEL) 3630 4030 WDFAPI 3631 4031 NTSTATUS 4032 + STDCALL 3632 4033 WDFEXPORT(WdfIoTargetSendInternalIoctlSynchronously)( 3633 4034 _In_ 3634 4035 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3652 4053 _IRQL_requires_max_(DISPATCH_LEVEL) 3653 4054 WDFAPI 3654 4055 NTSTATUS 4056 + STDCALL 3655 4057 WDFEXPORT(WdfIoTargetFormatRequestForInternalIoctl)( 3656 4058 _In_ 3657 4059 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3675 4077 _IRQL_requires_max_(PASSIVE_LEVEL) 3676 4078 WDFAPI 3677 4079 NTSTATUS 4080 + STDCALL 3678 4081 WDFEXPORT(WdfIoTargetSendInternalIoctlOthersSynchronously)( 3679 4082 _In_ 3680 4083 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3700 4103 _IRQL_requires_max_(DISPATCH_LEVEL) 3701 4104 WDFAPI 3702 4105 NTSTATUS 4106 + STDCALL 3703 4107 WDFEXPORT(WdfIoTargetFormatRequestForInternalIoctlOthers)( 3704 4108 _In_ 3705 4109 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3726 4130 _IRQL_requires_max_(DISPATCH_LEVEL) 3727 4131 WDFAPI 3728 4132 NTSTATUS 4133 + STDCALL 3729 4134 WDFEXPORT(WdfIoTargetSelfAssignDefaultIoQueue)( 3730 4135 _In_ 3731 4136 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3740 4145 _When_(PoolType == 0 || PoolType == 256, _IRQL_requires_max_(DISPATCH_LEVEL)) 3741 4146 WDFAPI 3742 4147 NTSTATUS 4148 + STDCALL 3743 4149 WDFEXPORT(WdfMemoryCreate)( 3744 4150 _In_ 3745 4151 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3763 4169 _IRQL_requires_max_(DISPATCH_LEVEL) 3764 4170 WDFAPI 3765 4171 NTSTATUS 4172 + STDCALL 3766 4173 WDFEXPORT(WdfMemoryCreatePreallocated)( 3767 4174 _In_ 3768 4175 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3780 4187 _IRQL_requires_max_(DISPATCH_LEVEL) 3781 4188 WDFAPI 3782 4189 PVOID 4190 + STDCALL 3783 4191 WDFEXPORT(WdfMemoryGetBuffer)( 3784 4192 _In_ 3785 4193 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3793 4201 _IRQL_requires_max_(DISPATCH_LEVEL) 3794 4202 WDFAPI 3795 4203 NTSTATUS 4204 + STDCALL 3796 4205 WDFEXPORT(WdfMemoryAssignBuffer)( 3797 4206 _In_ 3798 4207 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3809 4218 _IRQL_requires_max_(DISPATCH_LEVEL) 3810 4219 WDFAPI 3811 4220 NTSTATUS 4221 + STDCALL 3812 4222 WDFEXPORT(WdfMemoryCopyToBuffer)( 3813 4223 _In_ 3814 4224 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3827 4237 _IRQL_requires_max_(DISPATCH_LEVEL) 3828 4238 WDFAPI 3829 4239 NTSTATUS 4240 + STDCALL 3830 4241 WDFEXPORT(WdfMemoryCopyFromBuffer)( 3831 4242 _In_ 3832 4243 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3846 4257 _When_(PoolType == 0 || PoolType == 256, _IRQL_requires_max_(DISPATCH_LEVEL)) 3847 4258 WDFAPI 3848 4259 NTSTATUS 4260 + STDCALL 3849 4261 WDFEXPORT(WdfLookasideListCreate)( 3850 4262 _In_ 3851 4263 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3869 4281 _IRQL_requires_max_(DISPATCH_LEVEL) 3870 4282 WDFAPI 3871 4283 NTSTATUS 4284 + STDCALL 3872 4285 WDFEXPORT(WdfMemoryCreateFromLookaside)( 3873 4286 _In_ 3874 4287 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3882 4295 _IRQL_requires_max_(PASSIVE_LEVEL) 3883 4296 WDFAPI 3884 4297 NTSTATUS 4298 + STDCALL 3885 4299 WDFEXPORT(WdfDeviceMiniportCreate)( 3886 4300 _In_ 3887 4301 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3901 4315 3902 4316 WDFAPI 3903 4317 VOID 4318 + STDCALL 3904 4319 WDFEXPORT(WdfDriverMiniportUnload)( 3905 4320 _In_ 3906 4321 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3922 4337 3923 4338 WDFAPI 3924 4339 NTSTATUS 4340 + STDCALL 3925 4341 WDFEXPORT(WdfObjectAllocateContext)( 3926 4342 _In_ 3927 4343 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3945 4361 3946 4362 WDFAPI 3947 4363 VOID 4364 + STDCALL 3948 4365 WDFEXPORT(WdfObjectReferenceActual)( 3949 4366 _In_ 3950 4367 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3960 4377 3961 4378 WDFAPI 3962 4379 VOID 4380 + STDCALL 3963 4381 WDFEXPORT(WdfObjectDereferenceActual)( 3964 4382 _In_ 3965 4383 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3977 4395 _IRQL_requires_max_(DISPATCH_LEVEL) 3978 4396 WDFAPI 3979 4397 NTSTATUS 4398 + STDCALL 3980 4399 WDFEXPORT(WdfObjectCreate)( 3981 4400 _In_ 3982 4401 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3989 4408 _IRQL_requires_max_(DISPATCH_LEVEL) 3990 4409 WDFAPI 3991 4410 VOID 4411 + STDCALL 3992 4412 WDFEXPORT(WdfObjectDelete)( 3993 4413 _In_ 3994 4414 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4000 4420 _IRQL_requires_max_(DISPATCH_LEVEL) 4001 4421 WDFAPI 4002 4422 NTSTATUS 4423 + STDCALL 4003 4424 WDFEXPORT(WdfObjectQuery)( 4004 4425 _In_ 4005 4426 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4017 4438 _IRQL_requires_max_(PASSIVE_LEVEL) 4018 4439 WDFAPI 4019 4440 PWDFDEVICE_INIT 4441 + STDCALL 4020 4442 WDFEXPORT(WdfPdoInitAllocate)( 4021 4443 _In_ 4022 4444 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4027 4449 _IRQL_requires_max_(PASSIVE_LEVEL) 4028 4450 WDFAPI 4029 4451 VOID 4452 + STDCALL 4030 4453 WDFEXPORT(WdfPdoInitSetEventCallbacks)( 4031 4454 _In_ 4032 4455 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4040 4463 _IRQL_requires_max_(PASSIVE_LEVEL) 4041 4464 WDFAPI 4042 4465 NTSTATUS 4466 + STDCALL 4043 4467 WDFEXPORT(WdfPdoInitAssignDeviceID)( 4044 4468 _In_ 4045 4469 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4053 4477 _IRQL_requires_max_(PASSIVE_LEVEL) 4054 4478 WDFAPI 4055 4479 NTSTATUS 4480 + STDCALL 4056 4481 WDFEXPORT(WdfPdoInitAssignInstanceID)( 4057 4482 _In_ 4058 4483 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4066 4491 _IRQL_requires_max_(PASSIVE_LEVEL) 4067 4492 WDFAPI 4068 4493 NTSTATUS 4494 + STDCALL 4069 4495 WDFEXPORT(WdfPdoInitAddHardwareID)( 4070 4496 _In_ 4071 4497 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4079 4505 _IRQL_requires_max_(PASSIVE_LEVEL) 4080 4506 WDFAPI 4081 4507 NTSTATUS 4508 + STDCALL 4082 4509 WDFEXPORT(WdfPdoInitAddCompatibleID)( 4083 4510 _In_ 4084 4511 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4092 4519 _IRQL_requires_max_(PASSIVE_LEVEL) 4093 4520 WDFAPI 4094 4521 NTSTATUS 4522 + STDCALL 4095 4523 WDFEXPORT(WdfPdoInitAssignContainerID)( 4096 4524 _In_ 4097 4525 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4105 4533 _IRQL_requires_max_(PASSIVE_LEVEL) 4106 4534 WDFAPI 4107 4535 NTSTATUS 4536 + STDCALL 4108 4537 WDFEXPORT(WdfPdoInitAddDeviceText)( 4109 4538 _In_ 4110 4539 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4121 4550 _IRQL_requires_max_(PASSIVE_LEVEL) 4122 4551 WDFAPI 4123 4552 VOID 4553 + STDCALL 4124 4554 WDFEXPORT(WdfPdoInitSetDefaultLocale)( 4125 4555 _In_ 4126 4556 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4134 4564 _IRQL_requires_max_(PASSIVE_LEVEL) 4135 4565 WDFAPI 4136 4566 NTSTATUS 4567 + STDCALL 4137 4568 WDFEXPORT(WdfPdoInitAssignRawDevice)( 4138 4569 _In_ 4139 4570 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4146 4577 _IRQL_requires_max_(PASSIVE_LEVEL) 4147 4578 WDFAPI 4148 4579 VOID 4580 + STDCALL 4149 4581 WDFEXPORT(WdfPdoInitAllowForwardingRequestToParent)( 4150 4582 _In_ 4151 4583 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4157 4589 _IRQL_requires_max_(DISPATCH_LEVEL) 4158 4590 WDFAPI 4159 4591 NTSTATUS 4592 + STDCALL 4160 4593 WDFEXPORT(WdfPdoMarkMissing)( 4161 4594 _In_ 4162 4595 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4167 4600 _IRQL_requires_max_(DISPATCH_LEVEL) 4168 4601 WDFAPI 4169 4602 VOID 4603 + STDCALL 4170 4604 WDFEXPORT(WdfPdoRequestEject)( 4171 4605 _In_ 4172 4606 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4177 4611 _IRQL_requires_max_(DISPATCH_LEVEL) 4178 4612 WDFAPI 4179 4613 WDFDEVICE 4614 + STDCALL 4180 4615 WDFEXPORT(WdfPdoGetParent)( 4181 4616 _In_ 4182 4617 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4188 4623 _IRQL_requires_max_(DISPATCH_LEVEL) 4189 4624 WDFAPI 4190 4625 NTSTATUS 4626 + STDCALL 4191 4627 WDFEXPORT(WdfPdoRetrieveIdentificationDescription)( 4192 4628 _In_ 4193 4629 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4201 4637 _IRQL_requires_max_(DISPATCH_LEVEL) 4202 4638 WDFAPI 4203 4639 NTSTATUS 4640 + STDCALL 4204 4641 WDFEXPORT(WdfPdoRetrieveAddressDescription)( 4205 4642 _In_ 4206 4643 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4214 4651 _IRQL_requires_max_(DISPATCH_LEVEL) 4215 4652 WDFAPI 4216 4653 NTSTATUS 4654 + STDCALL 4217 4655 WDFEXPORT(WdfPdoUpdateAddressDescription)( 4218 4656 _In_ 4219 4657 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4227 4665 _IRQL_requires_max_(DISPATCH_LEVEL) 4228 4666 WDFAPI 4229 4667 NTSTATUS 4668 + STDCALL 4230 4669 WDFEXPORT(WdfPdoAddEjectionRelationsPhysicalDevice)( 4231 4670 _In_ 4232 4671 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4239 4678 _IRQL_requires_max_(DISPATCH_LEVEL) 4240 4679 WDFAPI 4241 4680 VOID 4681 + STDCALL 4242 4682 WDFEXPORT(WdfPdoRemoveEjectionRelationsPhysicalDevice)( 4243 4683 _In_ 4244 4684 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4251 4691 _IRQL_requires_max_(DISPATCH_LEVEL) 4252 4692 WDFAPI 4253 4693 VOID 4694 + STDCALL 4254 4695 WDFEXPORT(WdfPdoClearEjectionRelationsDevices)( 4255 4696 _In_ 4256 4697 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4262 4703 _IRQL_requires_max_(PASSIVE_LEVEL) 4263 4704 WDFAPI 4264 4705 NTSTATUS 4706 + STDCALL 4265 4707 WDFEXPORT(WdfDeviceAddQueryInterface)( 4266 4708 _In_ 4267 4709 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4275 4717 _IRQL_requires_max_(PASSIVE_LEVEL) 4276 4718 WDFAPI 4277 4719 NTSTATUS 4720 + STDCALL 4278 4721 WDFEXPORT(WdfRegistryOpenKey)( 4279 4722 _In_ 4280 4723 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4294 4737 _IRQL_requires_max_(PASSIVE_LEVEL) 4295 4738 WDFAPI 4296 4739 NTSTATUS 4740 + STDCALL 4297 4741 WDFEXPORT(WdfRegistryCreateKey)( 4298 4742 _In_ 4299 4743 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4316 4760 _IRQL_requires_max_(PASSIVE_LEVEL) 4317 4761 WDFAPI 4318 4762 VOID 4763 + STDCALL 4319 4764 WDFEXPORT(WdfRegistryClose)( 4320 4765 _In_ 4321 4766 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4326 4771 _IRQL_requires_max_(PASSIVE_LEVEL) 4327 4772 WDFAPI 4328 4773 HANDLE 4774 + STDCALL 4329 4775 WDFEXPORT(WdfRegistryWdmGetHandle)( 4330 4776 _In_ 4331 4777 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4337 4783 _IRQL_requires_max_(PASSIVE_LEVEL) 4338 4784 WDFAPI 4339 4785 NTSTATUS 4786 + STDCALL 4340 4787 WDFEXPORT(WdfRegistryRemoveKey)( 4341 4788 _In_ 4342 4789 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4348 4795 _IRQL_requires_max_(PASSIVE_LEVEL) 4349 4796 WDFAPI 4350 4797 NTSTATUS 4798 + STDCALL 4351 4799 WDFEXPORT(WdfRegistryRemoveValue)( 4352 4800 _In_ 4353 4801 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4361 4809 _IRQL_requires_max_(PASSIVE_LEVEL) 4362 4810 WDFAPI 4363 4811 NTSTATUS 4812 + STDCALL 4364 4813 WDFEXPORT(WdfRegistryQueryValue)( 4365 4814 _In_ 4366 4815 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4382 4831 _IRQL_requires_max_(PASSIVE_LEVEL) 4383 4832 WDFAPI 4384 4833 NTSTATUS 4834 + STDCALL 4385 4835 WDFEXPORT(WdfRegistryQueryMemory)( 4386 4836 _In_ 4387 4837 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4404 4854 _IRQL_requires_max_(PASSIVE_LEVEL) 4405 4855 WDFAPI 4406 4856 NTSTATUS 4857 + STDCALL 4407 4858 WDFEXPORT(WdfRegistryQueryMultiString)( 4408 4859 _In_ 4409 4860 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4421 4872 _IRQL_requires_max_(PASSIVE_LEVEL) 4422 4873 WDFAPI 4423 4874 NTSTATUS 4875 + STDCALL 4424 4876 WDFEXPORT(WdfRegistryQueryUnicodeString)( 4425 4877 _In_ 4426 4878 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4438 4890 _IRQL_requires_max_(PASSIVE_LEVEL) 4439 4891 WDFAPI 4440 4892 NTSTATUS 4893 + STDCALL 4441 4894 WDFEXPORT(WdfRegistryQueryString)( 4442 4895 _In_ 4443 4896 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4453 4906 _IRQL_requires_max_(PASSIVE_LEVEL) 4454 4907 WDFAPI 4455 4908 NTSTATUS 4909 + STDCALL 4456 4910 WDFEXPORT(WdfRegistryQueryULong)( 4457 4911 _In_ 4458 4912 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4468 4922 _IRQL_requires_max_(PASSIVE_LEVEL) 4469 4923 WDFAPI 4470 4924 NTSTATUS 4925 + STDCALL 4471 4926 WDFEXPORT(WdfRegistryAssignValue)( 4472 4927 _In_ 4473 4928 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4487 4942 _IRQL_requires_max_(PASSIVE_LEVEL) 4488 4943 WDFAPI 4489 4944 NTSTATUS 4945 + STDCALL 4490 4946 WDFEXPORT(WdfRegistryAssignMemory)( 4491 4947 _In_ 4492 4948 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4506 4962 _IRQL_requires_max_(PASSIVE_LEVEL) 4507 4963 WDFAPI 4508 4964 NTSTATUS 4965 + STDCALL 4509 4966 WDFEXPORT(WdfRegistryAssignMultiString)( 4510 4967 _In_ 4511 4968 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4521 4978 _IRQL_requires_max_(PASSIVE_LEVEL) 4522 4979 WDFAPI 4523 4980 NTSTATUS 4981 + STDCALL 4524 4982 WDFEXPORT(WdfRegistryAssignUnicodeString)( 4525 4983 _In_ 4526 4984 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4536 4994 _IRQL_requires_max_(PASSIVE_LEVEL) 4537 4995 WDFAPI 4538 4996 NTSTATUS 4997 + STDCALL 4539 4998 WDFEXPORT(WdfRegistryAssignString)( 4540 4999 _In_ 4541 5000 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4551 5010 _IRQL_requires_max_(PASSIVE_LEVEL) 4552 5011 WDFAPI 4553 5012 NTSTATUS 5013 + STDCALL 4554 5014 WDFEXPORT(WdfRegistryAssignULong)( 4555 5015 _In_ 4556 5016 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4566 5026 _IRQL_requires_max_(DISPATCH_LEVEL) 4567 5027 WDFAPI 4568 5028 NTSTATUS 5029 + STDCALL 4569 5030 WDFEXPORT(WdfRequestCreate)( 4570 5031 _In_ 4571 5032 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4581 5042 _IRQL_requires_max_(DISPATCH_LEVEL) 4582 5043 WDFAPI 4583 5044 NTSTATUS 5045 + STDCALL 4584 5046 WDFEXPORT(WdfRequestCreateFromIrp)( 4585 5047 _In_ 4586 5048 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4597 5059 _IRQL_requires_max_(DISPATCH_LEVEL) 4598 5060 WDFAPI 4599 5061 NTSTATUS 5062 + STDCALL 4600 5063 WDFEXPORT(WdfRequestReuse)( 4601 5064 _In_ 4602 5065 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4610 5073 _IRQL_requires_max_(DISPATCH_LEVEL) 4611 5074 WDFAPI 4612 5075 NTSTATUS 5076 + STDCALL 4613 5077 WDFEXPORT(WdfRequestChangeTarget)( 4614 5078 _In_ 4615 5079 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4622 5086 _IRQL_requires_max_(DISPATCH_LEVEL) 4623 5087 WDFAPI 4624 5088 VOID 5089 + STDCALL 4625 5090 WDFEXPORT(WdfRequestFormatRequestUsingCurrentType)( 4626 5091 _In_ 4627 5092 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4632 5097 _IRQL_requires_max_(DISPATCH_LEVEL) 4633 5098 WDFAPI 4634 5099 VOID 5100 + STDCALL 4635 5101 WDFEXPORT(WdfRequestWdmFormatUsingStackLocation)( 4636 5102 _In_ 4637 5103 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4645 5111 _When_(Options->Flags & WDF_REQUEST_SEND_OPTION_SYNCHRONOUS == 0, _Must_inspect_result_) 4646 5112 WDFAPI 4647 5113 BOOLEAN 5114 + STDCALL 4648 5115 WDFEXPORT(WdfRequestSend)( 4649 5116 _In_ 4650 5117 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4660 5127 _IRQL_requires_max_(DISPATCH_LEVEL) 4661 5128 WDFAPI 4662 5129 NTSTATUS 5130 + STDCALL 4663 5131 WDFEXPORT(WdfRequestGetStatus)( 4664 5132 _In_ 4665 5133 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4670 5138 _IRQL_requires_max_(DISPATCH_LEVEL) 4671 5139 WDFAPI 4672 5140 VOID 5141 + STDCALL 4673 5142 WDFEXPORT(WdfRequestMarkCancelable)( 4674 5143 _In_ 4675 5144 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4683 5152 _IRQL_requires_max_(DISPATCH_LEVEL) 4684 5153 WDFAPI 4685 5154 NTSTATUS 5155 + STDCALL 4686 5156 WDFEXPORT(WdfRequestMarkCancelableEx)( 4687 5157 _In_ 4688 5158 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4696 5166 _IRQL_requires_max_(DISPATCH_LEVEL) 4697 5167 WDFAPI 4698 5168 NTSTATUS 5169 + STDCALL 4699 5170 WDFEXPORT(WdfRequestUnmarkCancelable)( 4700 5171 _In_ 4701 5172 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4707 5178 _IRQL_requires_max_(DISPATCH_LEVEL) 4708 5179 WDFAPI 4709 5180 BOOLEAN 5181 + STDCALL 4710 5182 WDFEXPORT(WdfRequestIsCanceled)( 4711 5183 _In_ 4712 5184 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4717 5189 _IRQL_requires_max_(DISPATCH_LEVEL) 4718 5190 WDFAPI 4719 5191 BOOLEAN 5192 + STDCALL 4720 5193 WDFEXPORT(WdfRequestCancelSentRequest)( 4721 5194 _In_ 4722 5195 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4728 5201 _IRQL_requires_max_(APC_LEVEL) 4729 5202 WDFAPI 4730 5203 BOOLEAN 5204 + STDCALL 4731 5205 WDFEXPORT(WdfRequestIsFrom32BitProcess)( 4732 5206 _In_ 4733 5207 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4738 5212 _IRQL_requires_max_(DISPATCH_LEVEL) 4739 5213 WDFAPI 4740 5214 VOID 5215 + STDCALL 4741 5216 WDFEXPORT(WdfRequestSetCompletionRoutine)( 4742 5217 _In_ 4743 5218 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4752 5227 _IRQL_requires_max_(DISPATCH_LEVEL) 4753 5228 WDFAPI 4754 5229 VOID 5230 + STDCALL 4755 5231 WDFEXPORT(WdfRequestGetCompletionParams)( 4756 5232 _In_ 4757 5233 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4765 5241 _IRQL_requires_max_(DISPATCH_LEVEL) 4766 5242 WDFAPI 4767 5243 NTSTATUS 5244 + STDCALL 4768 5245 WDFEXPORT(WdfRequestAllocateTimer)( 4769 5246 _In_ 4770 5247 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4775 5252 _IRQL_requires_max_(DISPATCH_LEVEL) 4776 5253 WDFAPI 4777 5254 VOID 5255 + STDCALL 4778 5256 WDFEXPORT(WdfRequestComplete)( 4779 5257 _In_ 4780 5258 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4787 5265 _IRQL_requires_max_(DISPATCH_LEVEL) 4788 5266 WDFAPI 4789 5267 VOID 5268 + STDCALL 4790 5269 WDFEXPORT(WdfRequestCompleteWithPriorityBoost)( 4791 5270 _In_ 4792 5271 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4801 5280 _IRQL_requires_max_(DISPATCH_LEVEL) 4802 5281 WDFAPI 4803 5282 VOID 5283 + STDCALL 4804 5284 WDFEXPORT(WdfRequestCompleteWithInformation)( 4805 5285 _In_ 4806 5286 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4815 5295 _IRQL_requires_max_(DISPATCH_LEVEL) 4816 5296 WDFAPI 4817 5297 VOID 5298 + STDCALL 4818 5299 WDFEXPORT(WdfRequestGetParameters)( 4819 5300 _In_ 4820 5301 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4828 5309 _IRQL_requires_max_(DISPATCH_LEVEL) 4829 5310 WDFAPI 4830 5311 NTSTATUS 5312 + STDCALL 4831 5313 WDFEXPORT(WdfRequestRetrieveInputMemory)( 4832 5314 _In_ 4833 5315 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4841 5323 _IRQL_requires_max_(DISPATCH_LEVEL) 4842 5324 WDFAPI 4843 5325 NTSTATUS 5326 + STDCALL 4844 5327 WDFEXPORT(WdfRequestRetrieveOutputMemory)( 4845 5328 _In_ 4846 5329 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4854 5337 _IRQL_requires_max_(DISPATCH_LEVEL) 4855 5338 WDFAPI 4856 5339 NTSTATUS 5340 + STDCALL 4857 5341 WDFEXPORT(WdfRequestRetrieveInputBuffer)( 4858 5342 _In_ 4859 5343 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4871 5355 _IRQL_requires_max_(DISPATCH_LEVEL) 4872 5356 WDFAPI 4873 5357 NTSTATUS 5358 + STDCALL 4874 5359 WDFEXPORT(WdfRequestRetrieveOutputBuffer)( 4875 5360 _In_ 4876 5361 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4888 5373 _IRQL_requires_max_(DISPATCH_LEVEL) 4889 5374 WDFAPI 4890 5375 NTSTATUS 5376 + STDCALL 4891 5377 WDFEXPORT(WdfRequestRetrieveInputWdmMdl)( 4892 5378 _In_ 4893 5379 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4901 5387 _IRQL_requires_max_(DISPATCH_LEVEL) 4902 5388 WDFAPI 4903 5389 NTSTATUS 5390 + STDCALL 4904 5391 WDFEXPORT(WdfRequestRetrieveOutputWdmMdl)( 4905 5392 _In_ 4906 5393 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4914 5401 _IRQL_requires_max_(PASSIVE_LEVEL) 4915 5402 WDFAPI 4916 5403 NTSTATUS 5404 + STDCALL 4917 5405 WDFEXPORT(WdfRequestRetrieveUnsafeUserInputBuffer)( 4918 5406 _In_ 4919 5407 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4931 5419 _IRQL_requires_max_(PASSIVE_LEVEL) 4932 5420 WDFAPI 4933 5421 NTSTATUS 5422 + STDCALL 4934 5423 WDFEXPORT(WdfRequestRetrieveUnsafeUserOutputBuffer)( 4935 5424 _In_ 4936 5425 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4947 5436 _IRQL_requires_max_(DISPATCH_LEVEL) 4948 5437 WDFAPI 4949 5438 VOID 5439 + STDCALL 4950 5440 WDFEXPORT(WdfRequestSetInformation)( 4951 5441 _In_ 4952 5442 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4959 5449 _IRQL_requires_max_(DISPATCH_LEVEL) 4960 5450 WDFAPI 4961 5451 ULONG_PTR 5452 + STDCALL 4962 5453 WDFEXPORT(WdfRequestGetInformation)( 4963 5454 _In_ 4964 5455 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4969 5460 _IRQL_requires_max_(DISPATCH_LEVEL) 4970 5461 WDFAPI 4971 5462 WDFFILEOBJECT 5463 + STDCALL 4972 5464 WDFEXPORT(WdfRequestGetFileObject)( 4973 5465 _In_ 4974 5466 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4980 5472 _IRQL_requires_max_(PASSIVE_LEVEL) 4981 5473 WDFAPI 4982 5474 NTSTATUS 5475 + STDCALL 4983 5476 WDFEXPORT(WdfRequestProbeAndLockUserBufferForRead)( 4984 5477 _In_ 4985 5478 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 4997 5490 _IRQL_requires_max_(PASSIVE_LEVEL) 4998 5491 WDFAPI 4999 5492 NTSTATUS 5493 + STDCALL 5000 5494 WDFEXPORT(WdfRequestProbeAndLockUserBufferForWrite)( 5001 5495 _In_ 5002 5496 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5013 5507 _IRQL_requires_max_(DISPATCH_LEVEL) 5014 5508 WDFAPI 5015 5509 KPROCESSOR_MODE 5510 + STDCALL 5016 5511 WDFEXPORT(WdfRequestGetRequestorMode)( 5017 5512 _In_ 5018 5513 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5024 5519 _IRQL_requires_max_(DISPATCH_LEVEL) 5025 5520 WDFAPI 5026 5521 NTSTATUS 5522 + STDCALL 5027 5523 WDFEXPORT(WdfRequestForwardToIoQueue)( 5028 5524 _In_ 5029 5525 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5036 5532 _IRQL_requires_max_(DISPATCH_LEVEL) 5037 5533 WDFAPI 5038 5534 WDFQUEUE 5535 + STDCALL 5039 5536 WDFEXPORT(WdfRequestGetIoQueue)( 5040 5537 _In_ 5041 5538 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5047 5544 _IRQL_requires_max_(DISPATCH_LEVEL) 5048 5545 WDFAPI 5049 5546 NTSTATUS 5547 + STDCALL 5050 5548 WDFEXPORT(WdfRequestRequeue)( 5051 5549 _In_ 5052 5550 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5057 5555 _IRQL_requires_max_(DISPATCH_LEVEL) 5058 5556 WDFAPI 5059 5557 VOID 5558 + STDCALL 5060 5559 WDFEXPORT(WdfRequestStopAcknowledge)( 5061 5560 _In_ 5062 5561 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5069 5568 _IRQL_requires_max_(DISPATCH_LEVEL) 5070 5569 WDFAPI 5071 5570 PIRP 5571 + STDCALL 5072 5572 WDFEXPORT(WdfRequestWdmGetIrp)( 5073 5573 _In_ 5074 5574 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5079 5579 _IRQL_requires_max_(DISPATCH_LEVEL) 5080 5580 WDFAPI 5081 5581 BOOLEAN 5582 + STDCALL 5082 5583 WDFEXPORT(WdfRequestIsReserved)( 5083 5584 _In_ 5084 5585 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5090 5591 _IRQL_requires_max_(DISPATCH_LEVEL) 5091 5592 WDFAPI 5092 5593 NTSTATUS 5594 + STDCALL 5093 5595 WDFEXPORT(WdfRequestForwardToParentDeviceIoQueue)( 5094 5596 _In_ 5095 5597 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5104 5606 _IRQL_requires_max_(DISPATCH_LEVEL) 5105 5607 WDFAPI 5106 5608 VOID 5609 + STDCALL 5107 5610 WDFEXPORT(WdfIoResourceRequirementsListSetSlotNumber)( 5108 5611 _In_ 5109 5612 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5116 5619 _IRQL_requires_max_(DISPATCH_LEVEL) 5117 5620 WDFAPI 5118 5621 VOID 5622 + STDCALL 5119 5623 WDFEXPORT(WdfIoResourceRequirementsListSetInterfaceType)( 5120 5624 _In_ 5121 5625 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5130 5634 _IRQL_requires_max_(DISPATCH_LEVEL) 5131 5635 WDFAPI 5132 5636 NTSTATUS 5637 + STDCALL 5133 5638 WDFEXPORT(WdfIoResourceRequirementsListAppendIoResList)( 5134 5639 _In_ 5135 5640 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5143 5648 _IRQL_requires_max_(DISPATCH_LEVEL) 5144 5649 WDFAPI 5145 5650 NTSTATUS 5651 + STDCALL 5146 5652 WDFEXPORT(WdfIoResourceRequirementsListInsertIoResList)( 5147 5653 _In_ 5148 5654 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5157 5663 _IRQL_requires_max_(DISPATCH_LEVEL) 5158 5664 WDFAPI 5159 5665 ULONG 5666 + STDCALL 5160 5667 WDFEXPORT(WdfIoResourceRequirementsListGetCount)( 5161 5668 _In_ 5162 5669 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5167 5674 _IRQL_requires_max_(DISPATCH_LEVEL) 5168 5675 WDFAPI 5169 5676 WDFIORESLIST 5677 + STDCALL 5170 5678 WDFEXPORT(WdfIoResourceRequirementsListGetIoResList)( 5171 5679 _In_ 5172 5680 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5179 5687 _IRQL_requires_max_(DISPATCH_LEVEL) 5180 5688 WDFAPI 5181 5689 VOID 5690 + STDCALL 5182 5691 WDFEXPORT(WdfIoResourceRequirementsListRemove)( 5183 5692 _In_ 5184 5693 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5191 5700 _IRQL_requires_max_(DISPATCH_LEVEL) 5192 5701 WDFAPI 5193 5702 VOID 5703 + STDCALL 5194 5704 WDFEXPORT(WdfIoResourceRequirementsListRemoveByIoResList)( 5195 5705 _In_ 5196 5706 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5204 5714 _IRQL_requires_max_(DISPATCH_LEVEL) 5205 5715 WDFAPI 5206 5716 NTSTATUS 5717 + STDCALL 5207 5718 WDFEXPORT(WdfIoResourceListCreate)( 5208 5719 _In_ 5209 5720 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5219 5730 _IRQL_requires_max_(DISPATCH_LEVEL) 5220 5731 WDFAPI 5221 5732 NTSTATUS 5733 + STDCALL 5222 5734 WDFEXPORT(WdfIoResourceListAppendDescriptor)( 5223 5735 _In_ 5224 5736 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5232 5744 _IRQL_requires_max_(DISPATCH_LEVEL) 5233 5745 WDFAPI 5234 5746 NTSTATUS 5747 + STDCALL 5235 5748 WDFEXPORT(WdfIoResourceListInsertDescriptor)( 5236 5749 _In_ 5237 5750 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5246 5759 _IRQL_requires_max_(DISPATCH_LEVEL) 5247 5760 WDFAPI 5248 5761 VOID 5762 + STDCALL 5249 5763 WDFEXPORT(WdfIoResourceListUpdateDescriptor)( 5250 5764 _In_ 5251 5765 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5260 5774 _IRQL_requires_max_(DISPATCH_LEVEL) 5261 5775 WDFAPI 5262 5776 ULONG 5777 + STDCALL 5263 5778 WDFEXPORT(WdfIoResourceListGetCount)( 5264 5779 _In_ 5265 5780 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5270 5785 _IRQL_requires_max_(DISPATCH_LEVEL) 5271 5786 WDFAPI 5272 5787 PIO_RESOURCE_DESCRIPTOR 5788 + STDCALL 5273 5789 WDFEXPORT(WdfIoResourceListGetDescriptor)( 5274 5790 _In_ 5275 5791 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5282 5798 _IRQL_requires_max_(DISPATCH_LEVEL) 5283 5799 WDFAPI 5284 5800 VOID 5801 + STDCALL 5285 5802 WDFEXPORT(WdfIoResourceListRemove)( 5286 5803 _In_ 5287 5804 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5294 5811 _IRQL_requires_max_(DISPATCH_LEVEL) 5295 5812 WDFAPI 5296 5813 VOID 5814 + STDCALL 5297 5815 WDFEXPORT(WdfIoResourceListRemoveByDescriptor)( 5298 5816 _In_ 5299 5817 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5307 5825 _IRQL_requires_max_(DISPATCH_LEVEL) 5308 5826 WDFAPI 5309 5827 NTSTATUS 5828 + STDCALL 5310 5829 WDFEXPORT(WdfCmResourceListAppendDescriptor)( 5311 5830 _In_ 5312 5831 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5320 5839 _IRQL_requires_max_(DISPATCH_LEVEL) 5321 5840 WDFAPI 5322 5841 NTSTATUS 5842 + STDCALL 5323 5843 WDFEXPORT(WdfCmResourceListInsertDescriptor)( 5324 5844 _In_ 5325 5845 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5334 5854 _IRQL_requires_max_(DISPATCH_LEVEL) 5335 5855 WDFAPI 5336 5856 ULONG 5857 + STDCALL 5337 5858 WDFEXPORT(WdfCmResourceListGetCount)( 5338 5859 _In_ 5339 5860 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5344 5865 _IRQL_requires_max_(DISPATCH_LEVEL) 5345 5866 WDFAPI 5346 5867 PCM_PARTIAL_RESOURCE_DESCRIPTOR 5868 + STDCALL 5347 5869 WDFEXPORT(WdfCmResourceListGetDescriptor)( 5348 5870 _In_ 5349 5871 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5356 5878 _IRQL_requires_max_(DISPATCH_LEVEL) 5357 5879 WDFAPI 5358 5880 VOID 5881 + STDCALL 5359 5882 WDFEXPORT(WdfCmResourceListRemove)( 5360 5883 _In_ 5361 5884 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5368 5891 _IRQL_requires_max_(DISPATCH_LEVEL) 5369 5892 WDFAPI 5370 5893 VOID 5894 + STDCALL 5371 5895 WDFEXPORT(WdfCmResourceListRemoveByDescriptor)( 5372 5896 _In_ 5373 5897 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5381 5905 _IRQL_requires_max_(PASSIVE_LEVEL) 5382 5906 WDFAPI 5383 5907 NTSTATUS 5908 + STDCALL 5384 5909 WDFEXPORT(WdfStringCreate)( 5385 5910 _In_ 5386 5911 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5395 5920 _IRQL_requires_max_(PASSIVE_LEVEL) 5396 5921 WDFAPI 5397 5922 VOID 5923 + STDCALL 5398 5924 WDFEXPORT(WdfStringGetUnicodeString)( 5399 5925 _In_ 5400 5926 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5407 5933 _IRQL_requires_max_(DISPATCH_LEVEL) 5408 5934 WDFAPI 5409 5935 VOID 5936 + STDCALL 5410 5937 WDFEXPORT(WdfObjectAcquireLock)( 5411 5938 _In_ 5412 5939 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5419 5946 _IRQL_requires_max_(DISPATCH_LEVEL) 5420 5947 WDFAPI 5421 5948 VOID 5949 + STDCALL 5422 5950 WDFEXPORT(WdfObjectReleaseLock)( 5423 5951 _In_ 5424 5952 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5432 5960 _IRQL_requires_max_(DISPATCH_LEVEL) 5433 5961 WDFAPI 5434 5962 NTSTATUS 5963 + STDCALL 5435 5964 WDFEXPORT(WdfWaitLockCreate)( 5436 5965 _In_ 5437 5966 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5449 5978 _When_(Timeout != NULL, _Must_inspect_result_) 5450 5979 WDFAPI 5451 5980 NTSTATUS 5981 + STDCALL 5452 5982 WDFEXPORT(WdfWaitLockAcquire)( 5453 5983 _In_ 5454 5984 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5462 5992 _IRQL_requires_max_(DISPATCH_LEVEL) 5463 5993 WDFAPI 5464 5994 VOID 5995 + STDCALL 5465 5996 WDFEXPORT(WdfWaitLockRelease)( 5466 5997 _In_ 5467 5998 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5475 6006 _IRQL_requires_max_(DISPATCH_LEVEL) 5476 6007 WDFAPI 5477 6008 NTSTATUS 6009 + STDCALL 5478 6010 WDFEXPORT(WdfSpinLockCreate)( 5479 6011 _In_ 5480 6012 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5488 6020 _IRQL_raises_(DISPATCH_LEVEL) 5489 6021 WDFAPI 5490 6022 VOID 6023 + STDCALL 5491 6024 WDFEXPORT(WdfSpinLockAcquire)( 5492 6025 _In_ 5493 6026 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5502 6035 _IRQL_requires_min_(DISPATCH_LEVEL) 5503 6036 WDFAPI 5504 6037 VOID 6038 + STDCALL 5505 6039 WDFEXPORT(WdfSpinLockRelease)( 5506 6040 _In_ 5507 6041 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5516 6050 _IRQL_requires_max_(DISPATCH_LEVEL) 5517 6051 WDFAPI 5518 6052 NTSTATUS 6053 + STDCALL 5519 6054 WDFEXPORT(WdfTimerCreate)( 5520 6055 _In_ 5521 6056 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5530 6065 _IRQL_requires_max_(DISPATCH_LEVEL) 5531 6066 WDFAPI 5532 6067 BOOLEAN 6068 + STDCALL 5533 6069 WDFEXPORT(WdfTimerStart)( 5534 6070 _In_ 5535 6071 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5543 6079 _When_(Wait == __false, _IRQL_requires_max_(DISPATCH_LEVEL)) 5544 6080 WDFAPI 5545 6081 BOOLEAN 6082 + STDCALL 5546 6083 WDFEXPORT(WdfTimerStop)( 5547 6084 _In_ 5548 6085 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5555 6092 _IRQL_requires_max_(DISPATCH_LEVEL) 5556 6093 WDFAPI 5557 6094 WDFOBJECT 6095 + STDCALL 5558 6096 WDFEXPORT(WdfTimerGetParentObject)( 5559 6097 _In_ 5560 6098 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5566 6104 _IRQL_requires_max_(PASSIVE_LEVEL) 5567 6105 WDFAPI 5568 6106 NTSTATUS 6107 + STDCALL 5569 6108 WDFEXPORT(WdfUsbTargetDeviceCreate)( 5570 6109 _In_ 5571 6110 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5581 6120 _IRQL_requires_max_(PASSIVE_LEVEL) 5582 6121 WDFAPI 5583 6122 NTSTATUS 6123 + STDCALL 5584 6124 WDFEXPORT(WdfUsbTargetDeviceCreateWithParameters)( 5585 6125 _In_ 5586 6126 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5598 6138 _IRQL_requires_max_(DISPATCH_LEVEL) 5599 6139 WDFAPI 5600 6140 NTSTATUS 6141 + STDCALL 5601 6142 WDFEXPORT(WdfUsbTargetDeviceRetrieveInformation)( 5602 6143 _In_ 5603 6144 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5610 6151 _IRQL_requires_max_(PASSIVE_LEVEL) 5611 6152 WDFAPI 5612 6153 VOID 6154 + STDCALL 5613 6155 WDFEXPORT(WdfUsbTargetDeviceGetDeviceDescriptor)( 5614 6156 _In_ 5615 6157 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5623 6165 _IRQL_requires_max_(PASSIVE_LEVEL) 5624 6166 WDFAPI 5625 6167 NTSTATUS 6168 + STDCALL 5626 6169 WDFEXPORT(WdfUsbTargetDeviceRetrieveConfigDescriptor)( 5627 6170 _In_ 5628 6171 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5638 6181 _IRQL_requires_max_(PASSIVE_LEVEL) 5639 6182 WDFAPI 5640 6183 NTSTATUS 6184 + STDCALL 5641 6185 WDFEXPORT(WdfUsbTargetDeviceQueryString)( 5642 6186 _In_ 5643 6187 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5661 6205 _IRQL_requires_max_(PASSIVE_LEVEL) 5662 6206 WDFAPI 5663 6207 NTSTATUS 6208 + STDCALL 5664 6209 WDFEXPORT(WdfUsbTargetDeviceAllocAndQueryString)( 5665 6210 _In_ 5666 6211 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5682 6227 _IRQL_requires_max_(DISPATCH_LEVEL) 5683 6228 WDFAPI 5684 6229 NTSTATUS 6230 + STDCALL 5685 6231 WDFEXPORT(WdfUsbTargetDeviceFormatRequestForString)( 5686 6232 _In_ 5687 6233 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5702 6248 _IRQL_requires_max_(DISPATCH_LEVEL) 5703 6249 WDFAPI 5704 6250 UCHAR 6251 + STDCALL 5705 6252 WDFEXPORT(WdfUsbTargetDeviceGetNumInterfaces)( 5706 6253 _In_ 5707 6254 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5713 6260 _IRQL_requires_max_(PASSIVE_LEVEL) 5714 6261 WDFAPI 5715 6262 NTSTATUS 6263 + STDCALL 5716 6264 WDFEXPORT(WdfUsbTargetDeviceSelectConfig)( 5717 6265 _In_ 5718 6266 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5727 6275 _IRQL_requires_max_(DISPATCH_LEVEL) 5728 6276 WDFAPI 5729 6277 USBD_CONFIGURATION_HANDLE 6278 + STDCALL 5730 6279 WDFEXPORT(WdfUsbTargetDeviceWdmGetConfigurationHandle)( 5731 6280 _In_ 5732 6281 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5738 6287 _IRQL_requires_max_(DISPATCH_LEVEL) 5739 6288 WDFAPI 5740 6289 NTSTATUS 6290 + STDCALL 5741 6291 WDFEXPORT(WdfUsbTargetDeviceRetrieveCurrentFrameNumber)( 5742 6292 _In_ 5743 6293 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5751 6301 _IRQL_requires_max_(PASSIVE_LEVEL) 5752 6302 WDFAPI 5753 6303 NTSTATUS 6304 + STDCALL 5754 6305 WDFEXPORT(WdfUsbTargetDeviceSendControlTransferSynchronously)( 5755 6306 _In_ 5756 6307 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5772 6323 _IRQL_requires_max_(DISPATCH_LEVEL) 5773 6324 WDFAPI 5774 6325 NTSTATUS 6326 + STDCALL 5775 6327 WDFEXPORT(WdfUsbTargetDeviceFormatRequestForControlTransfer)( 5776 6328 _In_ 5777 6329 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5791 6343 _IRQL_requires_max_(PASSIVE_LEVEL) 5792 6344 WDFAPI 5793 6345 NTSTATUS 6346 + STDCALL 5794 6347 WDFEXPORT(WdfUsbTargetDeviceIsConnectedSynchronous)( 5795 6348 _In_ 5796 6349 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5802 6355 _IRQL_requires_max_(PASSIVE_LEVEL) 5803 6356 WDFAPI 5804 6357 NTSTATUS 6358 + STDCALL 5805 6359 WDFEXPORT(WdfUsbTargetDeviceResetPortSynchronously)( 5806 6360 _In_ 5807 6361 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5813 6367 _IRQL_requires_max_(PASSIVE_LEVEL) 5814 6368 WDFAPI 5815 6369 NTSTATUS 6370 + STDCALL 5816 6371 WDFEXPORT(WdfUsbTargetDeviceCyclePortSynchronously)( 5817 6372 _In_ 5818 6373 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5824 6379 _IRQL_requires_max_(DISPATCH_LEVEL) 5825 6380 WDFAPI 5826 6381 NTSTATUS 6382 + STDCALL 5827 6383 WDFEXPORT(WdfUsbTargetDeviceFormatRequestForCyclePort)( 5828 6384 _In_ 5829 6385 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5837 6393 _IRQL_requires_max_(PASSIVE_LEVEL) 5838 6394 WDFAPI 5839 6395 NTSTATUS 6396 + STDCALL 5840 6397 WDFEXPORT(WdfUsbTargetDeviceSendUrbSynchronously)( 5841 6398 _In_ 5842 6399 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5854 6411 _IRQL_requires_max_(DISPATCH_LEVEL) 5855 6412 WDFAPI 5856 6413 NTSTATUS 6414 + STDCALL 5857 6415 WDFEXPORT(WdfUsbTargetDeviceFormatRequestForUrb)( 5858 6416 _In_ 5859 6417 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5871 6429 _IRQL_requires_max_(PASSIVE_LEVEL) 5872 6430 WDFAPI 5873 6431 NTSTATUS 6432 + STDCALL 5874 6433 WDFEXPORT(WdfUsbTargetDeviceQueryUsbCapability)( 5875 6434 _In_ 5876 6435 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5893 6452 _IRQL_requires_max_(DISPATCH_LEVEL) 5894 6453 WDFAPI 5895 6454 NTSTATUS 6455 + STDCALL 5896 6456 WDFEXPORT(WdfUsbTargetDeviceCreateUrb)( 5897 6457 _In_ 5898 6458 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5910 6470 _IRQL_requires_max_(DISPATCH_LEVEL) 5911 6471 WDFAPI 5912 6472 NTSTATUS 6473 + STDCALL 5913 6474 WDFEXPORT(WdfUsbTargetDeviceCreateIsochUrb)( 5914 6475 _In_ 5915 6476 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5928 6489 _IRQL_requires_max_(DISPATCH_LEVEL) 5929 6490 WDFAPI 5930 6491 VOID 6492 + STDCALL 5931 6493 WDFEXPORT(WdfUsbTargetPipeGetInformation)( 5932 6494 _In_ 5933 6495 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5940 6502 _IRQL_requires_max_(DISPATCH_LEVEL) 5941 6503 WDFAPI 5942 6504 BOOLEAN 6505 + STDCALL 5943 6506 WDFEXPORT(WdfUsbTargetPipeIsInEndpoint)( 5944 6507 _In_ 5945 6508 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5950 6513 _IRQL_requires_max_(DISPATCH_LEVEL) 5951 6514 WDFAPI 5952 6515 BOOLEAN 6516 + STDCALL 5953 6517 WDFEXPORT(WdfUsbTargetPipeIsOutEndpoint)( 5954 6518 _In_ 5955 6519 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5960 6524 _IRQL_requires_max_(DISPATCH_LEVEL) 5961 6525 WDFAPI 5962 6526 WDF_USB_PIPE_TYPE 6527 + STDCALL 5963 6528 WDFEXPORT(WdfUsbTargetPipeGetType)( 5964 6529 _In_ 5965 6530 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5970 6535 _IRQL_requires_max_(DISPATCH_LEVEL) 5971 6536 WDFAPI 5972 6537 VOID 6538 + STDCALL 5973 6539 WDFEXPORT(WdfUsbTargetPipeSetNoMaximumPacketSizeCheck)( 5974 6540 _In_ 5975 6541 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 5981 6547 _IRQL_requires_max_(PASSIVE_LEVEL) 5982 6548 WDFAPI 5983 6549 NTSTATUS 6550 + STDCALL 5984 6551 WDFEXPORT(WdfUsbTargetPipeWriteSynchronously)( 5985 6552 _In_ 5986 6553 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6000 6567 _IRQL_requires_max_(DISPATCH_LEVEL) 6001 6568 WDFAPI 6002 6569 NTSTATUS 6570 + STDCALL 6003 6571 WDFEXPORT(WdfUsbTargetPipeFormatRequestForWrite)( 6004 6572 _In_ 6005 6573 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6017 6585 _IRQL_requires_max_(PASSIVE_LEVEL) 6018 6586 WDFAPI 6019 6587 NTSTATUS 6588 + STDCALL 6020 6589 WDFEXPORT(WdfUsbTargetPipeReadSynchronously)( 6021 6590 _In_ 6022 6591 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6036 6605 _IRQL_requires_max_(DISPATCH_LEVEL) 6037 6606 WDFAPI 6038 6607 NTSTATUS 6608 + STDCALL 6039 6609 WDFEXPORT(WdfUsbTargetPipeFormatRequestForRead)( 6040 6610 _In_ 6041 6611 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6053 6623 _IRQL_requires_max_(DISPATCH_LEVEL) 6054 6624 WDFAPI 6055 6625 NTSTATUS 6626 + STDCALL 6056 6627 WDFEXPORT(WdfUsbTargetPipeConfigContinuousReader)( 6057 6628 _In_ 6058 6629 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6066 6637 _IRQL_requires_max_(PASSIVE_LEVEL) 6067 6638 WDFAPI 6068 6639 NTSTATUS 6640 + STDCALL 6069 6641 WDFEXPORT(WdfUsbTargetPipeAbortSynchronously)( 6070 6642 _In_ 6071 6643 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6081 6653 _IRQL_requires_max_(DISPATCH_LEVEL) 6082 6654 WDFAPI 6083 6655 NTSTATUS 6656 + STDCALL 6084 6657 WDFEXPORT(WdfUsbTargetPipeFormatRequestForAbort)( 6085 6658 _In_ 6086 6659 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6094 6667 _IRQL_requires_max_(PASSIVE_LEVEL) 6095 6668 WDFAPI 6096 6669 NTSTATUS 6670 + STDCALL 6097 6671 WDFEXPORT(WdfUsbTargetPipeResetSynchronously)( 6098 6672 _In_ 6099 6673 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6109 6683 _IRQL_requires_max_(DISPATCH_LEVEL) 6110 6684 WDFAPI 6111 6685 NTSTATUS 6686 + STDCALL 6112 6687 WDFEXPORT(WdfUsbTargetPipeFormatRequestForReset)( 6113 6688 _In_ 6114 6689 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6122 6697 _IRQL_requires_max_(PASSIVE_LEVEL) 6123 6698 WDFAPI 6124 6699 NTSTATUS 6700 + STDCALL 6125 6701 WDFEXPORT(WdfUsbTargetPipeSendUrbSynchronously)( 6126 6702 _In_ 6127 6703 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6139 6715 _IRQL_requires_max_(DISPATCH_LEVEL) 6140 6716 WDFAPI 6141 6717 NTSTATUS 6718 + STDCALL 6142 6719 WDFEXPORT(WdfUsbTargetPipeFormatRequestForUrb)( 6143 6720 _In_ 6144 6721 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6155 6732 _IRQL_requires_max_(DISPATCH_LEVEL) 6156 6733 WDFAPI 6157 6734 BYTE 6735 + STDCALL 6158 6736 WDFEXPORT(WdfUsbInterfaceGetInterfaceNumber)( 6159 6737 _In_ 6160 6738 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6165 6743 _IRQL_requires_max_(DISPATCH_LEVEL) 6166 6744 WDFAPI 6167 6745 BYTE 6746 + STDCALL 6168 6747 WDFEXPORT(WdfUsbInterfaceGetNumEndpoints)( 6169 6748 _In_ 6170 6749 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6177 6756 _IRQL_requires_max_(DISPATCH_LEVEL) 6178 6757 WDFAPI 6179 6758 VOID 6759 + STDCALL 6180 6760 WDFEXPORT(WdfUsbInterfaceGetDescriptor)( 6181 6761 _In_ 6182 6762 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6191 6771 _IRQL_requires_max_(DISPATCH_LEVEL) 6192 6772 WDFAPI 6193 6773 BYTE 6774 + STDCALL 6194 6775 WDFEXPORT(WdfUsbInterfaceGetNumSettings)( 6195 6776 _In_ 6196 6777 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6202 6783 _IRQL_requires_max_(PASSIVE_LEVEL) 6203 6784 WDFAPI 6204 6785 NTSTATUS 6786 + STDCALL 6205 6787 WDFEXPORT(WdfUsbInterfaceSelectSetting)( 6206 6788 _In_ 6207 6789 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6216 6798 _IRQL_requires_max_(DISPATCH_LEVEL) 6217 6799 WDFAPI 6218 6800 VOID 6801 + STDCALL 6219 6802 WDFEXPORT(WdfUsbInterfaceGetEndpointInformation)( 6220 6803 _In_ 6221 6804 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6232 6815 _IRQL_requires_max_(DISPATCH_LEVEL) 6233 6816 WDFAPI 6234 6817 WDFUSBINTERFACE 6818 + STDCALL 6235 6819 WDFEXPORT(WdfUsbTargetDeviceGetInterface)( 6236 6820 _In_ 6237 6821 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6244 6828 _IRQL_requires_max_(DISPATCH_LEVEL) 6245 6829 WDFAPI 6246 6830 BYTE 6831 + STDCALL 6247 6832 WDFEXPORT(WdfUsbInterfaceGetConfiguredSettingIndex)( 6248 6833 _In_ 6249 6834 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6254 6839 _IRQL_requires_max_(DISPATCH_LEVEL) 6255 6840 WDFAPI 6256 6841 BYTE 6842 + STDCALL 6257 6843 WDFEXPORT(WdfUsbInterfaceGetNumConfiguredPipes)( 6258 6844 _In_ 6259 6845 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6264 6850 _IRQL_requires_max_(DISPATCH_LEVEL) 6265 6851 WDFAPI 6266 6852 WDFUSBPIPE 6853 + STDCALL 6267 6854 WDFEXPORT(WdfUsbInterfaceGetConfiguredPipe)( 6268 6855 _In_ 6269 6856 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6278 6865 _IRQL_requires_max_(DISPATCH_LEVEL) 6279 6866 WDFAPI 6280 6867 USBD_PIPE_HANDLE 6868 + STDCALL 6281 6869 WDFEXPORT(WdfUsbTargetPipeWdmGetPipeHandle)( 6282 6870 _In_ 6283 6871 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6287 6875 6288 6876 WDFAPI 6289 6877 VOID 6878 + STDCALL 6290 6879 WDFEXPORT(WdfVerifierDbgBreakPoint)( 6291 6880 _In_ 6292 6881 PWDF_DRIVER_GLOBALS DriverGlobals ··· 6294 6883 6295 6884 WDFAPI 6296 6885 VOID 6886 + STDCALL 6297 6887 WDFEXPORT(WdfVerifierKeBugCheck)( 6298 6888 _In_ 6299 6889 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6311 6901 6312 6902 WDFAPI 6313 6903 PVOID 6904 + STDCALL 6314 6905 WDFEXPORT(WdfGetTriageInfo)( 6315 6906 _In_ 6316 6907 PWDF_DRIVER_GLOBALS DriverGlobals ··· 6320 6911 _IRQL_requires_max_(DISPATCH_LEVEL) 6321 6912 WDFAPI 6322 6913 NTSTATUS 6914 + STDCALL 6323 6915 WDFEXPORT(WdfWmiProviderCreate)( 6324 6916 _In_ 6325 6917 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6336 6928 _IRQL_requires_max_(DISPATCH_LEVEL) 6337 6929 WDFAPI 6338 6930 WDFDEVICE 6931 + STDCALL 6339 6932 WDFEXPORT(WdfWmiProviderGetDevice)( 6340 6933 _In_ 6341 6934 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6346 6939 _IRQL_requires_max_(DISPATCH_LEVEL) 6347 6940 WDFAPI 6348 6941 BOOLEAN 6942 + STDCALL 6349 6943 WDFEXPORT(WdfWmiProviderIsEnabled)( 6350 6944 _In_ 6351 6945 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6358 6952 _IRQL_requires_max_(DISPATCH_LEVEL) 6359 6953 WDFAPI 6360 6954 ULONGLONG 6955 + STDCALL 6361 6956 WDFEXPORT(WdfWmiProviderGetTracingHandle)( 6362 6957 _In_ 6363 6958 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6369 6964 _IRQL_requires_max_(DISPATCH_LEVEL) 6370 6965 WDFAPI 6371 6966 NTSTATUS 6967 + STDCALL 6372 6968 WDFEXPORT(WdfWmiInstanceCreate)( 6373 6969 _In_ 6374 6970 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6386 6982 _IRQL_requires_max_(PASSIVE_LEVEL) 6387 6983 WDFAPI 6388 6984 NTSTATUS 6985 + STDCALL 6389 6986 WDFEXPORT(WdfWmiInstanceRegister)( 6390 6987 _In_ 6391 6988 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6396 6993 _IRQL_requires_max_(PASSIVE_LEVEL) 6397 6994 WDFAPI 6398 6995 VOID 6996 + STDCALL 6399 6997 WDFEXPORT(WdfWmiInstanceDeregister)( 6400 6998 _In_ 6401 6999 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6406 7004 _IRQL_requires_max_(DISPATCH_LEVEL) 6407 7005 WDFAPI 6408 7006 WDFDEVICE 7007 + STDCALL 6409 7008 WDFEXPORT(WdfWmiInstanceGetDevice)( 6410 7009 _In_ 6411 7010 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6416 7015 _IRQL_requires_max_(DISPATCH_LEVEL) 6417 7016 WDFAPI 6418 7017 WDFWMIPROVIDER 7018 + STDCALL 6419 7019 WDFEXPORT(WdfWmiInstanceGetProvider)( 6420 7020 _In_ 6421 7021 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6427 7027 _IRQL_requires_max_(APC_LEVEL) 6428 7028 WDFAPI 6429 7029 NTSTATUS 7030 + STDCALL 6430 7031 WDFEXPORT(WdfWmiInstanceFireEvent)( 6431 7032 _In_ 6432 7033 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6442 7043 _IRQL_requires_max_(DISPATCH_LEVEL) 6443 7044 WDFAPI 6444 7045 NTSTATUS 7046 + STDCALL 6445 7047 WDFEXPORT(WdfWorkItemCreate)( 6446 7048 _In_ 6447 7049 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6456 7058 _IRQL_requires_max_(DISPATCH_LEVEL) 6457 7059 WDFAPI 6458 7060 VOID 7061 + STDCALL 6459 7062 WDFEXPORT(WdfWorkItemEnqueue)( 6460 7063 _In_ 6461 7064 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6466 7069 _IRQL_requires_max_(DISPATCH_LEVEL) 6467 7070 WDFAPI 6468 7071 WDFOBJECT 7072 + STDCALL 6469 7073 WDFEXPORT(WdfWorkItemGetParentObject)( 6470 7074 _In_ 6471 7075 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6476 7080 _IRQL_requires_max_(PASSIVE_LEVEL) 6477 7081 WDFAPI 6478 7082 VOID 7083 + STDCALL 6479 7084 WDFEXPORT(WdfWorkItemFlush)( 6480 7085 _In_ 6481 7086 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 6511 7116 WDFEXPORT(WdfCollectionGetItem), 6512 7117 WDFEXPORT(WdfCollectionGetFirstItem), 6513 7118 WDFEXPORT(WdfCollectionGetLastItem), 6514 - WDFEXPORT(WdfCommonBufferCreate), 6515 - WDFEXPORT(WdfCommonBufferGetAlignedVirtualAddress), 6516 - WDFEXPORT(WdfCommonBufferGetAlignedLogicalAddress), 6517 - WDFEXPORT(WdfCommonBufferGetLength), 7119 + // WDFEXPORT(WdfCommonBufferCreate), 7120 + // WDFEXPORT(WdfCommonBufferGetAlignedVirtualAddress), 7121 + // WDFEXPORT(WdfCommonBufferGetAlignedLogicalAddress), 7122 + // WDFEXPORT(WdfCommonBufferGetLength), 7123 + WdfApiNotImplemented, 7124 + WdfApiNotImplemented, 7125 + WdfApiNotImplemented, 7126 + WdfApiNotImplemented, 7127 + 6518 7128 WDFEXPORT(WdfControlDeviceInitAllocate), 6519 7129 WDFEXPORT(WdfControlDeviceInitSetShutdownNotification), 6520 7130 WDFEXPORT(WdfControlFinishInitializing), ··· 6584 7194 WDFEXPORT(WdfDeviceEnqueueRequest), 6585 7195 WDFEXPORT(WdfDeviceGetDefaultQueue), 6586 7196 WDFEXPORT(WdfDeviceConfigureRequestDispatching), 6587 - WDFEXPORT(WdfDmaEnablerCreate), 6588 - WDFEXPORT(WdfDmaEnablerGetMaximumLength), 6589 - WDFEXPORT(WdfDmaEnablerGetMaximumScatterGatherElements), 6590 - WDFEXPORT(WdfDmaEnablerSetMaximumScatterGatherElements), 6591 - WDFEXPORT(WdfDmaTransactionCreate), 6592 - WDFEXPORT(WdfDmaTransactionInitialize), 6593 - WDFEXPORT(WdfDmaTransactionInitializeUsingRequest), 6594 - WDFEXPORT(WdfDmaTransactionExecute), 6595 - WDFEXPORT(WdfDmaTransactionRelease), 6596 - WDFEXPORT(WdfDmaTransactionDmaCompleted), 6597 - WDFEXPORT(WdfDmaTransactionDmaCompletedWithLength), 6598 - WDFEXPORT(WdfDmaTransactionDmaCompletedFinal), 6599 - WDFEXPORT(WdfDmaTransactionGetBytesTransferred), 6600 - WDFEXPORT(WdfDmaTransactionSetMaximumLength), 6601 - WDFEXPORT(WdfDmaTransactionGetRequest), 6602 - WDFEXPORT(WdfDmaTransactionGetCurrentDmaTransferLength), 6603 - WDFEXPORT(WdfDmaTransactionGetDevice), 7197 + // WDFEXPORT(WdfDmaEnablerCreate), 7198 + // WDFEXPORT(WdfDmaEnablerGetMaximumLength), 7199 + // WDFEXPORT(WdfDmaEnablerGetMaximumScatterGatherElements), 7200 + // WDFEXPORT(WdfDmaEnablerSetMaximumScatterGatherElements), 7201 + // WDFEXPORT(WdfDmaTransactionCreate), 7202 + // WDFEXPORT(WdfDmaTransactionInitialize), 7203 + // WDFEXPORT(WdfDmaTransactionInitializeUsingRequest), 7204 + // WDFEXPORT(WdfDmaTransactionExecute), 7205 + // WDFEXPORT(WdfDmaTransactionRelease), 7206 + // WDFEXPORT(WdfDmaTransactionDmaCompleted), 7207 + // WDFEXPORT(WdfDmaTransactionDmaCompletedWithLength), 7208 + // WDFEXPORT(WdfDmaTransactionDmaCompletedFinal), 7209 + // WDFEXPORT(WdfDmaTransactionGetBytesTransferred), 7210 + // WDFEXPORT(WdfDmaTransactionSetMaximumLength), 7211 + // WDFEXPORT(WdfDmaTransactionGetRequest), 7212 + // WDFEXPORT(WdfDmaTransactionGetCurrentDmaTransferLength), 7213 + // WDFEXPORT(WdfDmaTransactionGetDevice), 7214 + WdfApiNotImplemented, 7215 + WdfApiNotImplemented, 7216 + WdfApiNotImplemented, 7217 + WdfApiNotImplemented, 7218 + WdfApiNotImplemented, 7219 + WdfApiNotImplemented, 7220 + WdfApiNotImplemented, 7221 + WdfApiNotImplemented, 7222 + WdfApiNotImplemented, 7223 + WdfApiNotImplemented, 7224 + WdfApiNotImplemented, 7225 + WdfApiNotImplemented, 7226 + WdfApiNotImplemented, 7227 + WdfApiNotImplemented, 7228 + WdfApiNotImplemented, 7229 + WdfApiNotImplemented, 7230 + WdfApiNotImplemented, 7231 + 6604 7232 WDFEXPORT(WdfDpcCreate), 6605 7233 WDFEXPORT(WdfDpcEnqueue), 6606 7234 WDFEXPORT(WdfDpcCancel), ··· 6631 7259 WDFEXPORT(WdfFileObjectGetFlags), 6632 7260 WDFEXPORT(WdfFileObjectGetDevice), 6633 7261 WDFEXPORT(WdfFileObjectWdmGetFileObject), 6634 - WDFEXPORT(WdfInterruptCreate), 6635 - WDFEXPORT(WdfInterruptQueueDpcForIsr), 6636 - WDFEXPORT(WdfInterruptSynchronize), 6637 - WDFEXPORT(WdfInterruptAcquireLock), 6638 - WDFEXPORT(WdfInterruptReleaseLock), 6639 - WDFEXPORT(WdfInterruptEnable), 6640 - WDFEXPORT(WdfInterruptDisable), 6641 - WDFEXPORT(WdfInterruptWdmGetInterrupt), 6642 - WDFEXPORT(WdfInterruptGetInfo), 6643 - WDFEXPORT(WdfInterruptSetPolicy), 6644 - WDFEXPORT(WdfInterruptGetDevice), 7262 + // WDFEXPORT(WdfInterruptCreate), 7263 + // WDFEXPORT(WdfInterruptQueueDpcForIsr), 7264 + // WDFEXPORT(WdfInterruptSynchronize), 7265 + // WDFEXPORT(WdfInterruptAcquireLock), 7266 + // WDFEXPORT(WdfInterruptReleaseLock), 7267 + // WDFEXPORT(WdfInterruptEnable), 7268 + // WDFEXPORT(WdfInterruptDisable), 7269 + // WDFEXPORT(WdfInterruptWdmGetInterrupt), 7270 + // WDFEXPORT(WdfInterruptGetInfo), 7271 + // WDFEXPORT(WdfInterruptSetPolicy), 7272 + // WDFEXPORT(WdfInterruptGetDevice), 7273 + WdfApiNotImplemented, 7274 + WdfApiNotImplemented, 7275 + WdfApiNotImplemented, 7276 + WdfApiNotImplemented, 7277 + WdfApiNotImplemented, 7278 + WdfApiNotImplemented, 7279 + WdfApiNotImplemented, 7280 + WdfApiNotImplemented, 7281 + WdfApiNotImplemented, 7282 + WdfApiNotImplemented, 7283 + WdfApiNotImplemented, 7284 + 6645 7285 WDFEXPORT(WdfIoQueueCreate), 6646 7286 WDFEXPORT(WdfIoQueueGetState), 6647 7287 WDFEXPORT(WdfIoQueueStart), ··· 6776 7416 WDFEXPORT(WdfRequestRequeue), 6777 7417 WDFEXPORT(WdfRequestStopAcknowledge), 6778 7418 WDFEXPORT(WdfRequestWdmGetIrp), 6779 - WDFEXPORT(WdfIoResourceRequirementsListSetSlotNumber), 6780 - WDFEXPORT(WdfIoResourceRequirementsListSetInterfaceType), 6781 - WDFEXPORT(WdfIoResourceRequirementsListAppendIoResList), 6782 - WDFEXPORT(WdfIoResourceRequirementsListInsertIoResList), 6783 - WDFEXPORT(WdfIoResourceRequirementsListGetCount), 6784 - WDFEXPORT(WdfIoResourceRequirementsListGetIoResList), 6785 - WDFEXPORT(WdfIoResourceRequirementsListRemove), 6786 - WDFEXPORT(WdfIoResourceRequirementsListRemoveByIoResList), 6787 - WDFEXPORT(WdfIoResourceListCreate), 6788 - WDFEXPORT(WdfIoResourceListAppendDescriptor), 6789 - WDFEXPORT(WdfIoResourceListInsertDescriptor), 6790 - WDFEXPORT(WdfIoResourceListUpdateDescriptor), 6791 - WDFEXPORT(WdfIoResourceListGetCount), 6792 - WDFEXPORT(WdfIoResourceListGetDescriptor), 6793 - WDFEXPORT(WdfIoResourceListRemove), 6794 - WDFEXPORT(WdfIoResourceListRemoveByDescriptor), 6795 - WDFEXPORT(WdfCmResourceListAppendDescriptor), 6796 - WDFEXPORT(WdfCmResourceListInsertDescriptor), 6797 - WDFEXPORT(WdfCmResourceListGetCount), 6798 - WDFEXPORT(WdfCmResourceListGetDescriptor), 6799 - WDFEXPORT(WdfCmResourceListRemove), 6800 - WDFEXPORT(WdfCmResourceListRemoveByDescriptor), 7419 + // WDFEXPORT(WdfIoResourceRequirementsListSetSlotNumber), 7420 + // WDFEXPORT(WdfIoResourceRequirementsListSetInterfaceType), 7421 + // WDFEXPORT(WdfIoResourceRequirementsListAppendIoResList), 7422 + // WDFEXPORT(WdfIoResourceRequirementsListInsertIoResList), 7423 + // WDFEXPORT(WdfIoResourceRequirementsListGetCount), 7424 + // WDFEXPORT(WdfIoResourceRequirementsListGetIoResList), 7425 + // WDFEXPORT(WdfIoResourceRequirementsListRemove), 7426 + // WDFEXPORT(WdfIoResourceRequirementsListRemoveByIoResList), 7427 + // WDFEXPORT(WdfIoResourceListCreate), 7428 + // WDFEXPORT(WdfIoResourceListAppendDescriptor), 7429 + // WDFEXPORT(WdfIoResourceListInsertDescriptor), 7430 + // WDFEXPORT(WdfIoResourceListUpdateDescriptor), 7431 + // WDFEXPORT(WdfIoResourceListGetCount), 7432 + // WDFEXPORT(WdfIoResourceListGetDescriptor), 7433 + // WDFEXPORT(WdfIoResourceListRemove), 7434 + // WDFEXPORT(WdfIoResourceListRemoveByDescriptor), 7435 + // WDFEXPORT(WdfCmResourceListAppendDescriptor), 7436 + // WDFEXPORT(WdfCmResourceListInsertDescriptor), 7437 + // WDFEXPORT(WdfCmResourceListGetCount), 7438 + // WDFEXPORT(WdfCmResourceListGetDescriptor), 7439 + // WDFEXPORT(WdfCmResourceListRemove), 7440 + // WDFEXPORT(WdfCmResourceListRemoveByDescriptor), 7441 + WdfApiNotImplemented, 7442 + WdfApiNotImplemented, 7443 + WdfApiNotImplemented, 7444 + WdfApiNotImplemented, 7445 + WdfApiNotImplemented, 7446 + WdfApiNotImplemented, 7447 + WdfApiNotImplemented, 7448 + WdfApiNotImplemented, 7449 + WdfApiNotImplemented, 7450 + WdfApiNotImplemented, 7451 + WdfApiNotImplemented, 7452 + WdfApiNotImplemented, 7453 + WdfApiNotImplemented, 7454 + WdfApiNotImplemented, 7455 + WdfApiNotImplemented, 7456 + WdfApiNotImplemented, 7457 + WdfApiNotImplemented, 7458 + WdfApiNotImplemented, 7459 + WdfApiNotImplemented, 7460 + WdfApiNotImplemented, 7461 + WdfApiNotImplemented, 7462 + WdfApiNotImplemented, 7463 + 6801 7464 WDFEXPORT(WdfStringCreate), 6802 7465 WDFEXPORT(WdfStringGetUnicodeString), 6803 7466 WDFEXPORT(WdfObjectAcquireLock), ··· 6812 7475 WDFEXPORT(WdfTimerStart), 6813 7476 WDFEXPORT(WdfTimerStop), 6814 7477 WDFEXPORT(WdfTimerGetParentObject), 6815 - WDFEXPORT(WdfUsbTargetDeviceCreate), 6816 - WDFEXPORT(WdfUsbTargetDeviceRetrieveInformation), 6817 - WDFEXPORT(WdfUsbTargetDeviceGetDeviceDescriptor), 6818 - WDFEXPORT(WdfUsbTargetDeviceRetrieveConfigDescriptor), 6819 - WDFEXPORT(WdfUsbTargetDeviceQueryString), 6820 - WDFEXPORT(WdfUsbTargetDeviceAllocAndQueryString), 6821 - WDFEXPORT(WdfUsbTargetDeviceFormatRequestForString), 6822 - WDFEXPORT(WdfUsbTargetDeviceGetNumInterfaces), 6823 - WDFEXPORT(WdfUsbTargetDeviceSelectConfig), 6824 - WDFEXPORT(WdfUsbTargetDeviceWdmGetConfigurationHandle), 6825 - WDFEXPORT(WdfUsbTargetDeviceRetrieveCurrentFrameNumber), 6826 - WDFEXPORT(WdfUsbTargetDeviceSendControlTransferSynchronously), 6827 - WDFEXPORT(WdfUsbTargetDeviceFormatRequestForControlTransfer), 6828 - WDFEXPORT(WdfUsbTargetDeviceIsConnectedSynchronous), 6829 - WDFEXPORT(WdfUsbTargetDeviceResetPortSynchronously), 6830 - WDFEXPORT(WdfUsbTargetDeviceCyclePortSynchronously), 6831 - WDFEXPORT(WdfUsbTargetDeviceFormatRequestForCyclePort), 6832 - WDFEXPORT(WdfUsbTargetDeviceSendUrbSynchronously), 6833 - WDFEXPORT(WdfUsbTargetDeviceFormatRequestForUrb), 6834 - WDFEXPORT(WdfUsbTargetPipeGetInformation), 6835 - WDFEXPORT(WdfUsbTargetPipeIsInEndpoint), 6836 - WDFEXPORT(WdfUsbTargetPipeIsOutEndpoint), 6837 - WDFEXPORT(WdfUsbTargetPipeGetType), 6838 - WDFEXPORT(WdfUsbTargetPipeSetNoMaximumPacketSizeCheck), 6839 - WDFEXPORT(WdfUsbTargetPipeWriteSynchronously), 6840 - WDFEXPORT(WdfUsbTargetPipeFormatRequestForWrite), 6841 - WDFEXPORT(WdfUsbTargetPipeReadSynchronously), 6842 - WDFEXPORT(WdfUsbTargetPipeFormatRequestForRead), 6843 - WDFEXPORT(WdfUsbTargetPipeConfigContinuousReader), 6844 - WDFEXPORT(WdfUsbTargetPipeAbortSynchronously), 6845 - WDFEXPORT(WdfUsbTargetPipeFormatRequestForAbort), 6846 - WDFEXPORT(WdfUsbTargetPipeResetSynchronously), 6847 - WDFEXPORT(WdfUsbTargetPipeFormatRequestForReset), 6848 - WDFEXPORT(WdfUsbTargetPipeSendUrbSynchronously), 6849 - WDFEXPORT(WdfUsbTargetPipeFormatRequestForUrb), 6850 - WDFEXPORT(WdfUsbInterfaceGetInterfaceNumber), 6851 - WDFEXPORT(WdfUsbInterfaceGetNumEndpoints), 6852 - WDFEXPORT(WdfUsbInterfaceGetDescriptor), 6853 - WDFEXPORT(WdfUsbInterfaceSelectSetting), 6854 - WDFEXPORT(WdfUsbInterfaceGetEndpointInformation), 6855 - WDFEXPORT(WdfUsbTargetDeviceGetInterface), 6856 - WDFEXPORT(WdfUsbInterfaceGetConfiguredSettingIndex), 6857 - WDFEXPORT(WdfUsbInterfaceGetNumConfiguredPipes), 6858 - WDFEXPORT(WdfUsbInterfaceGetConfiguredPipe), 6859 - WDFEXPORT(WdfUsbTargetPipeWdmGetPipeHandle), 6860 - WDFEXPORT(WdfVerifierDbgBreakPoint), 6861 - WDFEXPORT(WdfVerifierKeBugCheck), 6862 - WDFEXPORT(WdfWmiProviderCreate), 6863 - WDFEXPORT(WdfWmiProviderGetDevice), 6864 - WDFEXPORT(WdfWmiProviderIsEnabled), 6865 - WDFEXPORT(WdfWmiProviderGetTracingHandle), 6866 - WDFEXPORT(WdfWmiInstanceCreate), 6867 - WDFEXPORT(WdfWmiInstanceRegister), 6868 - WDFEXPORT(WdfWmiInstanceDeregister), 6869 - WDFEXPORT(WdfWmiInstanceGetDevice), 6870 - WDFEXPORT(WdfWmiInstanceGetProvider), 6871 - WDFEXPORT(WdfWmiInstanceFireEvent), 7478 + // WDFEXPORT(WdfUsbTargetDeviceCreate), 7479 + // WDFEXPORT(WdfUsbTargetDeviceRetrieveInformation), 7480 + // WDFEXPORT(WdfUsbTargetDeviceGetDeviceDescriptor), 7481 + // WDFEXPORT(WdfUsbTargetDeviceRetrieveConfigDescriptor), 7482 + // WDFEXPORT(WdfUsbTargetDeviceQueryString), 7483 + // WDFEXPORT(WdfUsbTargetDeviceAllocAndQueryString), 7484 + // WDFEXPORT(WdfUsbTargetDeviceFormatRequestForString), 7485 + // WDFEXPORT(WdfUsbTargetDeviceGetNumInterfaces), 7486 + // WDFEXPORT(WdfUsbTargetDeviceSelectConfig), 7487 + // WDFEXPORT(WdfUsbTargetDeviceWdmGetConfigurationHandle), 7488 + // WDFEXPORT(WdfUsbTargetDeviceRetrieveCurrentFrameNumber), 7489 + // WDFEXPORT(WdfUsbTargetDeviceSendControlTransferSynchronously), 7490 + // WDFEXPORT(WdfUsbTargetDeviceFormatRequestForControlTransfer), 7491 + // WDFEXPORT(WdfUsbTargetDeviceIsConnectedSynchronous), 7492 + // WDFEXPORT(WdfUsbTargetDeviceResetPortSynchronously), 7493 + // WDFEXPORT(WdfUsbTargetDeviceCyclePortSynchronously), 7494 + // WDFEXPORT(WdfUsbTargetDeviceFormatRequestForCyclePort), 7495 + // WDFEXPORT(WdfUsbTargetDeviceSendUrbSynchronously), 7496 + // WDFEXPORT(WdfUsbTargetDeviceFormatRequestForUrb), 7497 + // WDFEXPORT(WdfUsbTargetPipeGetInformation), 7498 + // WDFEXPORT(WdfUsbTargetPipeIsInEndpoint), 7499 + // WDFEXPORT(WdfUsbTargetPipeIsOutEndpoint), 7500 + // WDFEXPORT(WdfUsbTargetPipeGetType), 7501 + // WDFEXPORT(WdfUsbTargetPipeSetNoMaximumPacketSizeCheck), 7502 + // WDFEXPORT(WdfUsbTargetPipeWriteSynchronously), 7503 + // WDFEXPORT(WdfUsbTargetPipeFormatRequestForWrite), 7504 + // WDFEXPORT(WdfUsbTargetPipeReadSynchronously), 7505 + // WDFEXPORT(WdfUsbTargetPipeFormatRequestForRead), 7506 + // WDFEXPORT(WdfUsbTargetPipeConfigContinuousReader), 7507 + // WDFEXPORT(WdfUsbTargetPipeAbortSynchronously), 7508 + // WDFEXPORT(WdfUsbTargetPipeFormatRequestForAbort), 7509 + // WDFEXPORT(WdfUsbTargetPipeResetSynchronously), 7510 + // WDFEXPORT(WdfUsbTargetPipeFormatRequestForReset), 7511 + // WDFEXPORT(WdfUsbTargetPipeSendUrbSynchronously), 7512 + // WDFEXPORT(WdfUsbTargetPipeFormatRequestForUrb), 7513 + // WDFEXPORT(WdfUsbInterfaceGetInterfaceNumber), 7514 + // WDFEXPORT(WdfUsbInterfaceGetNumEndpoints), 7515 + // WDFEXPORT(WdfUsbInterfaceGetDescriptor), 7516 + // WDFEXPORT(WdfUsbInterfaceSelectSetting), 7517 + // WDFEXPORT(WdfUsbInterfaceGetEndpointInformation), 7518 + // WDFEXPORT(WdfUsbTargetDeviceGetInterface), 7519 + // WDFEXPORT(WdfUsbInterfaceGetConfiguredSettingIndex), 7520 + // WDFEXPORT(WdfUsbInterfaceGetNumConfiguredPipes), 7521 + // WDFEXPORT(WdfUsbInterfaceGetConfiguredPipe), 7522 + // WDFEXPORT(WdfUsbTargetPipeWdmGetPipeHandle), 7523 + // WDFEXPORT(WdfVerifierDbgBreakPoint), 7524 + // WDFEXPORT(WdfVerifierKeBugCheck), 7525 + // WDFEXPORT(WdfWmiProviderCreate), 7526 + // WDFEXPORT(WdfWmiProviderGetDevice), 7527 + // WDFEXPORT(WdfWmiProviderIsEnabled), 7528 + // WDFEXPORT(WdfWmiProviderGetTracingHandle), 7529 + // WDFEXPORT(WdfWmiInstanceCreate), 7530 + // WDFEXPORT(WdfWmiInstanceRegister), 7531 + // WDFEXPORT(WdfWmiInstanceDeregister), 7532 + // WDFEXPORT(WdfWmiInstanceGetDevice), 7533 + // WDFEXPORT(WdfWmiInstanceGetProvider), 7534 + // WDFEXPORT(WdfWmiInstanceFireEvent), 7535 + WdfApiNotImplemented, 7536 + WdfApiNotImplemented, 7537 + WdfApiNotImplemented, 7538 + WdfApiNotImplemented, 7539 + WdfApiNotImplemented, 7540 + WdfApiNotImplemented, 7541 + WdfApiNotImplemented, 7542 + WdfApiNotImplemented, 7543 + WdfApiNotImplemented, 7544 + WdfApiNotImplemented, 7545 + WdfApiNotImplemented, 7546 + WdfApiNotImplemented, 7547 + WdfApiNotImplemented, 7548 + WdfApiNotImplemented, 7549 + WdfApiNotImplemented, 7550 + WdfApiNotImplemented, 7551 + WdfApiNotImplemented, 7552 + WdfApiNotImplemented, 7553 + WdfApiNotImplemented, 7554 + WdfApiNotImplemented, 7555 + WdfApiNotImplemented, 7556 + WdfApiNotImplemented, 7557 + WdfApiNotImplemented, 7558 + WdfApiNotImplemented, 7559 + WdfApiNotImplemented, 7560 + WdfApiNotImplemented, 7561 + WdfApiNotImplemented, 7562 + WdfApiNotImplemented, 7563 + WdfApiNotImplemented, 7564 + WdfApiNotImplemented, 7565 + WdfApiNotImplemented, 7566 + WdfApiNotImplemented, 7567 + WdfApiNotImplemented, 7568 + WdfApiNotImplemented, 7569 + WdfApiNotImplemented, 7570 + WdfApiNotImplemented, 7571 + WdfApiNotImplemented, 7572 + WdfApiNotImplemented, 7573 + WdfApiNotImplemented, 7574 + WdfApiNotImplemented, 7575 + WdfApiNotImplemented, 7576 + WdfApiNotImplemented, 7577 + WdfApiNotImplemented, 7578 + WdfApiNotImplemented, 7579 + WdfApiNotImplemented, 7580 + WdfApiNotImplemented, 7581 + WdfApiNotImplemented, 7582 + WdfApiNotImplemented, 7583 + WdfApiNotImplemented, 7584 + WdfApiNotImplemented, 7585 + WdfApiNotImplemented, 7586 + WdfApiNotImplemented, 7587 + WdfApiNotImplemented, 7588 + WdfApiNotImplemented, 7589 + WdfApiNotImplemented, 7590 + WdfApiNotImplemented, 7591 + WdfApiNotImplemented, 7592 + 6872 7593 WDFEXPORT(WdfWorkItemCreate), 6873 7594 WDFEXPORT(WdfWorkItemEnqueue), 6874 7595 WDFEXPORT(WdfWorkItemGetParentObject), 6875 7596 WDFEXPORT(WdfWorkItemFlush), 6876 - WDFEXPORT(WdfCommonBufferCreateWithConfig), 6877 - WDFEXPORT(WdfDmaEnablerGetFragmentLength), 6878 - WDFEXPORT(WdfDmaEnablerWdmGetDmaAdapter), 6879 - WDFEXPORT(WdfUsbInterfaceGetNumSettings), 7597 + // WDFEXPORT(WdfCommonBufferCreateWithConfig), 7598 + // WDFEXPORT(WdfDmaEnablerGetFragmentLength), 7599 + // WDFEXPORT(WdfDmaEnablerWdmGetDmaAdapter), 7600 + // WDFEXPORT(WdfUsbInterfaceGetNumSettings), 7601 + WdfApiNotImplemented, 7602 + WdfApiNotImplemented, 7603 + WdfApiNotImplemented, 7604 + WdfApiNotImplemented, 7605 + 6880 7606 WDFEXPORT(WdfDeviceRemoveDependentUsageDeviceObject), 6881 7607 WDFEXPORT(WdfDeviceGetSystemPowerAction), 6882 - WDFEXPORT(WdfInterruptSetExtendedPolicy), 7608 + // WDFEXPORT(WdfInterruptSetExtendedPolicy), 7609 + WdfApiNotImplemented, 7610 + 6883 7611 WDFEXPORT(WdfIoQueueAssignForwardProgressPolicy), 6884 7612 WDFEXPORT(WdfPdoInitAssignContainerID), 6885 7613 WDFEXPORT(WdfPdoInitAllowForwardingRequestToParent), 6886 7614 WDFEXPORT(WdfRequestMarkCancelableEx), 6887 7615 WDFEXPORT(WdfRequestIsReserved), 6888 7616 WDFEXPORT(WdfRequestForwardToParentDeviceIoQueue), 6889 - WDFEXPORT(WdfCxDeviceInitAllocate), 6890 - WDFEXPORT(WdfCxDeviceInitAssignWdmIrpPreprocessCallback), 6891 - WDFEXPORT(WdfCxDeviceInitSetIoInCallerContextCallback), 6892 - WDFEXPORT(WdfCxDeviceInitSetRequestAttributes), 6893 - WDFEXPORT(WdfCxDeviceInitSetFileObjectConfig), 7617 + // WDFEXPORT(WdfCxDeviceInitAllocate), 7618 + // WDFEXPORT(WdfCxDeviceInitAssignWdmIrpPreprocessCallback), 7619 + // WDFEXPORT(WdfCxDeviceInitSetIoInCallerContextCallback), 7620 + // WDFEXPORT(WdfCxDeviceInitSetRequestAttributes), 7621 + // WDFEXPORT(WdfCxDeviceInitSetFileObjectConfig), 7622 + WdfApiNotImplemented, 7623 + WdfApiNotImplemented, 7624 + WdfApiNotImplemented, 7625 + WdfApiNotImplemented, 7626 + WdfApiNotImplemented, 7627 + 6894 7628 WDFEXPORT(WdfDeviceWdmDispatchIrp), 6895 7629 WDFEXPORT(WdfDeviceWdmDispatchIrpToIoQueue), 6896 7630 WDFEXPORT(WdfDeviceInitSetRemoveLockOptions), 6897 7631 WDFEXPORT(WdfDeviceConfigureWdmIrpDispatchCallback), 6898 - WDFEXPORT(WdfDmaEnablerConfigureSystemProfile), 6899 - WDFEXPORT(WdfDmaTransactionInitializeUsingOffset), 6900 - WDFEXPORT(WdfDmaTransactionGetTransferInfo), 6901 - WDFEXPORT(WdfDmaTransactionSetChannelConfigurationCallback), 6902 - WDFEXPORT(WdfDmaTransactionSetTransferCompleteCallback), 6903 - WDFEXPORT(WdfDmaTransactionSetImmediateExecution), 6904 - WDFEXPORT(WdfDmaTransactionAllocateResources), 6905 - WDFEXPORT(WdfDmaTransactionSetDeviceAddressOffset), 6906 - WDFEXPORT(WdfDmaTransactionFreeResources), 6907 - WDFEXPORT(WdfDmaTransactionCancel), 6908 - WDFEXPORT(WdfDmaTransactionWdmGetTransferContext), 6909 - WDFEXPORT(WdfInterruptQueueWorkItemForIsr), 6910 - WDFEXPORT(WdfInterruptTryToAcquireLock), 7632 + // WDFEXPORT(WdfDmaEnablerConfigureSystemProfile), 7633 + // WDFEXPORT(WdfDmaTransactionInitializeUsingOffset), 7634 + // WDFEXPORT(WdfDmaTransactionGetTransferInfo), 7635 + // WDFEXPORT(WdfDmaTransactionSetChannelConfigurationCallback), 7636 + // WDFEXPORT(WdfDmaTransactionSetTransferCompleteCallback), 7637 + // WDFEXPORT(WdfDmaTransactionSetImmediateExecution), 7638 + // WDFEXPORT(WdfDmaTransactionAllocateResources), 7639 + // WDFEXPORT(WdfDmaTransactionSetDeviceAddressOffset), 7640 + // WDFEXPORT(WdfDmaTransactionFreeResources), 7641 + // WDFEXPORT(WdfDmaTransactionCancel), 7642 + // WDFEXPORT(WdfDmaTransactionWdmGetTransferContext), 7643 + // WDFEXPORT(WdfInterruptQueueWorkItemForIsr), 7644 + // WDFEXPORT(WdfInterruptTryToAcquireLock), 7645 + WdfApiNotImplemented, 7646 + WdfApiNotImplemented, 7647 + WdfApiNotImplemented, 7648 + WdfApiNotImplemented, 7649 + WdfApiNotImplemented, 7650 + WdfApiNotImplemented, 7651 + WdfApiNotImplemented, 7652 + WdfApiNotImplemented, 7653 + WdfApiNotImplemented, 7654 + WdfApiNotImplemented, 7655 + WdfApiNotImplemented, 7656 + WdfApiNotImplemented, 7657 + WdfApiNotImplemented, 7658 + 6911 7659 WDFEXPORT(WdfIoQueueStopAndPurge), 6912 7660 WDFEXPORT(WdfIoQueueStopAndPurgeSynchronously), 6913 7661 WDFEXPORT(WdfIoTargetPurge), 6914 - WDFEXPORT(WdfUsbTargetDeviceCreateWithParameters), 6915 - WDFEXPORT(WdfUsbTargetDeviceQueryUsbCapability), 6916 - WDFEXPORT(WdfUsbTargetDeviceCreateUrb), 6917 - WDFEXPORT(WdfUsbTargetDeviceCreateIsochUrb), 7662 + // WDFEXPORT(WdfUsbTargetDeviceCreateWithParameters), 7663 + // WDFEXPORT(WdfUsbTargetDeviceQueryUsbCapability), 7664 + // WDFEXPORT(WdfUsbTargetDeviceCreateUrb), 7665 + // WDFEXPORT(WdfUsbTargetDeviceCreateIsochUrb), 7666 + WdfApiNotImplemented, 7667 + WdfApiNotImplemented, 7668 + WdfApiNotImplemented, 7669 + WdfApiNotImplemented, 7670 + 6918 7671 WDFEXPORT(WdfDeviceWdmAssignPowerFrameworkSettings), 6919 - WDFEXPORT(WdfDmaTransactionStopSystemTransfer), 6920 - WDFEXPORT(WdfCxVerifierKeBugCheck), 6921 - WDFEXPORT(WdfInterruptReportActive), 6922 - WDFEXPORT(WdfInterruptReportInactive), 7672 + // WDFEXPORT(WdfDmaTransactionStopSystemTransfer), 7673 + // WDFEXPORT(WdfCxVerifierKeBugCheck), 7674 + // WDFEXPORT(WdfInterruptReportActive), 7675 + // WDFEXPORT(WdfInterruptReportInactive), 7676 + WdfApiNotImplemented, 7677 + WdfApiNotImplemented, 7678 + WdfApiNotImplemented, 7679 + WdfApiNotImplemented, 7680 + 6923 7681 WDFEXPORT(WdfDeviceInitSetReleaseHardwareOrderOnFailure), 6924 - WDFEXPORT(WdfGetTriageInfo), 7682 + // WDFEXPORT(WdfGetTriageInfo), 7683 + WdfApiNotImplemented, 7684 + 6925 7685 WDFEXPORT(WdfDeviceInitSetIoTypeEx), 6926 7686 WDFEXPORT(WdfDeviceQueryPropertyEx), 6927 7687 WDFEXPORT(WdfDeviceAllocAndQueryPropertyEx),
+2 -4
sdk/lib/drivers/wdf/kmdf/inc/private/fxdynamicswrapper.h
··· 7 7 // 8 8 9 9 extern "C" { 10 - #pragma warning(disable:4200) // zero-sized array in struct/union 11 10 #include <usbdrivr.h> 12 - #pragma warning(default:4200) 13 11 14 12 #include <wdfusb.h> 15 13 #include <wdfminiport.h> 16 - #include "FxDynamics.h" 17 - #include "VfFxDynamics.h" 14 + #include "fxdynamics.h" 15 + #include "vffxdynamics.h" 18 16 }
+1 -1
sdk/lib/drivers/wdf/kmdf/inc/private/fxprobeandlock.h
··· 35 35 36 36 } 37 37 38 - #endif __FXPROBEANDLOCK_H__ 38 + #endif // __FXPROBEANDLOCK_H__
+137 -146
sdk/lib/drivers/wdf/kmdf/src/core/fxbugcheckcallback.cpp
··· 20 20 21 21 22 22 #include "fxcorepch.hpp" 23 - #include "FxIFR.h" 24 - #include "fxIFRKm.h" // kernel mode only IFR definitions 25 - #include "FxLdr.h" 26 - #include "FxBugcheck.h" 23 + #include "fxifr.h" 24 + #include "fxifrkm.h" // kernel mode only IFR definitions 25 + #include "fxldr.h" 26 + #include "fxbugcheck.h" 27 27 28 - #include <aux_klib.h> 28 + // #include <aux_klib.h> 29 29 30 30 // 31 31 // Disable warnings of features used by the standard headers ··· 35 35 // Disable warning C4201: nonstandard extension used : nameless struct/union 36 36 // Disable warning C4214: nonstandard extension used : bit field types other than int 37 37 // 38 - #pragma warning(disable:4115 4200 4201 4214) 38 + // #pragma warning(disable:4115 4200 4201 4214) 39 39 #include <ntimage.h> 40 - #pragma warning(default:4115 4200 4201 4214) 40 + // #pragma warning(default:4115 4200 4201 4214) 41 41 42 42 43 43 extern "C" { ··· 125 125 __out PULONG ImageSize 126 126 ) 127 127 { 128 - NTSTATUS status = STATUS_UNSUCCESSFUL; 129 - ULONG modulesSize = 0; 130 - AUX_MODULE_EXTENDED_INFO* modules = NULL; 131 - AUX_MODULE_EXTENDED_INFO* module; 132 - PVOID addressInImage = NULL; 133 - ULONG numberOfModules; 134 - ULONG i; 128 + // NTSTATUS status = STATUS_UNSUCCESSFUL; 129 + // ULONG modulesSize = 0; 130 + // AUX_MODULE_EXTENDED_INFO* modules = NULL; 131 + // AUX_MODULE_EXTENDED_INFO* module; 132 + // PVOID addressInImage = NULL; 133 + // ULONG numberOfModules; 134 + // ULONG i; 135 135 136 - // 137 - // Basic validation. 138 - // 139 - if (NULL == DriverObject || NULL == ImageBase || NULL == ImageSize) { 140 - status = STATUS_INVALID_PARAMETER; 141 - goto exit; 142 - } 136 + // // 137 + // // Basic validation. 138 + // // 139 + // if (NULL == DriverObject || NULL == ImageBase || NULL == ImageSize) { 140 + // status = STATUS_INVALID_PARAMETER; 141 + // goto exit; 142 + // } 143 143 144 - // 145 - // Get the address of a well known entry in the Image. 146 - // 147 - addressInImage = (PVOID) DriverObject->DriverStart; 148 - ASSERT(addressInImage != NULL); 144 + // // 145 + // // Get the address of a well known entry in the Image. 146 + // // 147 + // addressInImage = (PVOID) DriverObject->DriverStart; 148 + // ASSERT(addressInImage != NULL); 149 149 150 - // 151 - // Initialize the AUX Kernel Library. 152 - // 153 - status = AuxKlibInitialize(); 154 - if (!NT_SUCCESS(status)) { 155 - goto exit; 156 - } 150 + // // 151 + // // Initialize the AUX Kernel Library. 152 + // // 153 + // status = AuxKlibInitialize(); 154 + // if (!NT_SUCCESS(status)) { 155 + // goto exit; 156 + // } 157 157 158 - // 159 - // Get size of area needed for loaded modules. 160 - // 161 - status = AuxKlibQueryModuleInformation(&modulesSize, 162 - sizeof(AUX_MODULE_EXTENDED_INFO), 163 - NULL); 158 + // // 159 + // // Get size of area needed for loaded modules. 160 + // // 161 + // status = AuxKlibQueryModuleInformation(&modulesSize, 162 + // sizeof(AUX_MODULE_EXTENDED_INFO), 163 + // NULL); 164 164 165 - if (!NT_SUCCESS(status) || (0 == modulesSize)) { 166 - goto exit; 167 - } 165 + // if (!NT_SUCCESS(status) || (0 == modulesSize)) { 166 + // goto exit; 167 + // } 168 168 169 - numberOfModules = modulesSize / sizeof(AUX_MODULE_EXTENDED_INFO); 169 + // numberOfModules = modulesSize / sizeof(AUX_MODULE_EXTENDED_INFO); 170 170 171 - // 172 - // Allocate returned-sized memory for the modules area. 173 - // 174 - modules = (AUX_MODULE_EXTENDED_INFO*) ExAllocatePoolWithTag(PagedPool, 175 - modulesSize, 176 - '30LW'); 177 - if (NULL == modules) { 178 - status = STATUS_INSUFFICIENT_RESOURCES; 179 - goto exit; 180 - } 171 + // // 172 + // // Allocate returned-sized memory for the modules area. 173 + // // 174 + // modules = (AUX_MODULE_EXTENDED_INFO*) ExAllocatePoolWithTag(PagedPool, 175 + // modulesSize, 176 + // '30LW'); 177 + // if (NULL == modules) { 178 + // status = STATUS_INSUFFICIENT_RESOURCES; 179 + // goto exit; 180 + // } 181 181 182 - // 183 - // Request the modules array be filled with module information. 184 - // 185 - status = AuxKlibQueryModuleInformation(&modulesSize, 186 - sizeof(AUX_MODULE_EXTENDED_INFO), 187 - modules); 182 + // // 183 + // // Request the modules array be filled with module information. 184 + // // 185 + // status = AuxKlibQueryModuleInformation(&modulesSize, 186 + // sizeof(AUX_MODULE_EXTENDED_INFO), 187 + // modules); 188 188 189 - if (!NT_SUCCESS(status)) { 190 - goto exit; 191 - } 189 + // if (!NT_SUCCESS(status)) { 190 + // goto exit; 191 + // } 192 192 193 - // 194 - // Traverse list, searching for the well known address in Image for which the 195 - // module's Image Base Address is in its range. 196 - // 197 - module = modules; 193 + // // 194 + // // Traverse list, searching for the well known address in Image for which the 195 + // // module's Image Base Address is in its range. 196 + // // 197 + // module = modules; 198 198 199 - for (i=0; i < numberOfModules; i++) { 199 + // for (i=0; i < numberOfModules; i++) { 200 200 201 - if (addressInImage >= module->BasicInfo.ImageBase && 202 - addressInImage < WDF_PTR_ADD_OFFSET(module->BasicInfo.ImageBase, 203 - module->ImageSize)) { 201 + // if (addressInImage >= module->BasicInfo.ImageBase && 202 + // addressInImage < WDF_PTR_ADD_OFFSET(module->BasicInfo.ImageBase, 203 + // module->ImageSize)) { 204 204 205 - *ImageBase = module->BasicInfo.ImageBase; 206 - *ImageSize = module->ImageSize; 205 + // *ImageBase = module->BasicInfo.ImageBase; 206 + // *ImageSize = module->ImageSize; 207 207 208 - status = STATUS_SUCCESS; 209 - goto exit; 210 - } 211 - module++; 212 - } 208 + // status = STATUS_SUCCESS; 209 + // goto exit; 210 + // } 211 + // module++; 212 + // } 213 213 214 - status = STATUS_NOT_FOUND; 214 + // status = STATUS_NOT_FOUND; 215 215 216 - exit: 216 + // exit: 217 217 218 - if (modules != NULL) { 219 - ExFreePool(modules); 220 - modules = NULL; 221 - } 218 + // if (modules != NULL) { 219 + // ExFreePool(modules); 220 + // modules = NULL; 221 + // } 222 222 223 - return status; 223 + // return status; 224 + ROSWDFNOTIMPLEMENTED; 225 + return STATUS_NOT_IMPLEMENTED; 224 226 } 225 227 226 228 _Must_inspect_result_ ··· 246 248 247 249 --*/ 248 250 { 249 - PVOID codeAddr = NULL; 250 - BOOLEAN found = FALSE; 251 - KBUGCHECK_DATA bugCheckData = {0}; 252 - 253 - if (FxDriverGlobals->FxForceLogsInMiniDump) { 254 - return TRUE; 255 - } 256 - 257 - // 258 - // Retrieve the bugcheck parameters. 259 - // 260 - bugCheckData.BugCheckDataSize = sizeof(KBUGCHECK_DATA); 261 - AuxKlibGetBugCheckData(&bugCheckData); 262 - 263 - // 264 - // Check whether the code address that caused the bugcheck is from this wdf 265 - // driver. 266 - // 267 - switch (bugCheckData.BugCheckCode) { 268 - 269 - case KERNEL_APC_PENDING_DURING_EXIT: // 0x20 270 - codeAddr = (PVOID)bugCheckData.Parameter1; 271 - found = FxpIsAddressKnownToWdf(codeAddr, FxDriverGlobals); 272 - break; 273 - 274 - case KMODE_EXCEPTION_NOT_HANDLED: // 0x1E 275 - case SYSTEM_THREAD_EXCEPTION_NOT_HANDLED: // 0x7E 276 - case KERNEL_MODE_EXCEPTION_NOT_HANDLED: // 0x8E 277 - codeAddr = (PVOID)bugCheckData.Parameter2; 278 - found = FxpIsAddressKnownToWdf(codeAddr, FxDriverGlobals); 279 - break; 280 - 281 - case PAGE_FAULT_IN_NONPAGED_AREA: // 0x50 282 - codeAddr = (PVOID)bugCheckData.Parameter3; 283 - found = FxpIsAddressKnownToWdf(codeAddr, FxDriverGlobals); 284 - break; 285 - 286 - case IRQL_NOT_LESS_OR_EQUAL: // 0xA 287 - case DRIVER_IRQL_NOT_LESS_OR_EQUAL: // 0xD1 288 - codeAddr = (PVOID)bugCheckData.Parameter4; 289 - found = FxpIsAddressKnownToWdf(codeAddr, FxDriverGlobals); 290 - break; 291 - } 251 + // PVOID codeAddr = NULL; 252 + // BOOLEAN found = FALSE; 253 + // KBUGCHECK_DATA bugCheckData = {0}; 292 254 293 - // 294 - // If the code address was found in the wdf driver, then set the flag in the 295 - // driver globals to indicate that the IFR data has to be written to the 296 - // mini-dump. 297 - // 298 - if (found) { 299 - FxDriverGlobals->FxForceLogsInMiniDump = TRUE; 300 - } 255 + // if (FxDriverGlobals->FxForceLogsInMiniDump) { 256 + // return TRUE; 257 + // } 301 258 259 + // // 260 + // // Retrieve the bugcheck parameters. 261 + // // 262 + // bugCheckData.BugCheckDataSize = sizeof(KBUGCHECK_DATA); 263 + // AuxKlibGetBugCheckData(&bugCheckData); 302 264 265 + // // 266 + // // Check whether the code address that caused the bugcheck is from this wdf 267 + // // driver. 268 + // // 269 + // switch (bugCheckData.BugCheckCode) { 303 270 271 + // case KERNEL_APC_PENDING_DURING_EXIT: // 0x20 272 + // codeAddr = (PVOID)bugCheckData.Parameter1; 273 + // found = FxpIsAddressKnownToWdf(codeAddr, FxDriverGlobals); 274 + // break; 304 275 276 + // case KMODE_EXCEPTION_NOT_HANDLED: // 0x1E 277 + // case SYSTEM_THREAD_EXCEPTION_NOT_HANDLED: // 0x7E 278 + // case KERNEL_MODE_EXCEPTION_NOT_HANDLED: // 0x8E 279 + // codeAddr = (PVOID)bugCheckData.Parameter2; 280 + // found = FxpIsAddressKnownToWdf(codeAddr, FxDriverGlobals); 281 + // break; 305 282 283 + // case PAGE_FAULT_IN_NONPAGED_AREA: // 0x50 284 + // codeAddr = (PVOID)bugCheckData.Parameter3; 285 + // found = FxpIsAddressKnownToWdf(codeAddr, FxDriverGlobals); 286 + // break; 306 287 307 - 308 - 309 - 310 - 311 - 312 - 313 - 314 - 288 + // case IRQL_NOT_LESS_OR_EQUAL: // 0xA 289 + // case DRIVER_IRQL_NOT_LESS_OR_EQUAL: // 0xD1 290 + // codeAddr = (PVOID)bugCheckData.Parameter4; 291 + // found = FxpIsAddressKnownToWdf(codeAddr, FxDriverGlobals); 292 + // break; 293 + // } 315 294 316 - return found; 295 + // // 296 + // // If the code address was found in the wdf driver, then set the flag in the 297 + // // driver globals to indicate that the IFR data has to be written to the 298 + // // mini-dump. 299 + // // 300 + // if (found) { 301 + // FxDriverGlobals->FxForceLogsInMiniDump = TRUE; 302 + // } 303 + // return found; 304 + ROSWDFNOTIMPLEMENTED; 305 + return FALSE; 317 306 } 318 307 319 308 VOID 309 + STDCALL 320 310 FxpBugCheckCallback( 321 311 __in KBUGCHECK_CALLBACK_REASON Reason, 322 312 __in PKBUGCHECK_REASON_CALLBACK_RECORD Record, ··· 567 557 } 568 558 569 559 VOID 560 + STDCALL 570 561 FxpLibraryBugCheckCallback( 571 562 __in KBUGCHECK_CALLBACK_REASON Reason, 572 563 __in PKBUGCHECK_REASON_CALLBACK_RECORD /* Record */, ··· 1043 1034 // 1044 1035 // Intialize the procgrp down level library. 1045 1036 // 1046 - WdmlibProcgrpInitialize(); 1037 + // WdmlibProcgrpInitialize(); __REACTOS__ : haha we don't support ProcGrp 1047 1038 1048 1039 // 1049 1040 // Capture maximum number of processors.
+1 -4
sdk/lib/drivers/wdf/kmdf/src/core/fxchildlist.cpp
··· 25 25 #include "fxcorepch.hpp" 26 26 27 27 extern "C" { 28 - #include "FxChildList.tmh" 28 + // #include "FxChildList.tmh" 29 29 } 30 30 31 31 FxDeviceDescriptionEntry::FxDeviceDescriptionEntry( ··· 1145 1145 for (ple = m_ModificationListHead.Flink; 1146 1146 ple != &m_ModificationListHead; 1147 1147 ple = ple->Flink) { 1148 - BOOLEAN check; 1149 - 1150 - check = FALSE; 1151 1148 1152 1149 pEntry = FxDeviceDescriptionEntry::_FromModificationLink(ple); 1153 1150
+14 -1
sdk/lib/drivers/wdf/kmdf/src/core/fxchildlistapi.cpp
··· 25 25 #include "fxcorepch.hpp" 26 26 27 27 extern "C" { 28 - #include "FxChildListAPI.tmh" 28 + // #include "FxChildListAPI.tmh" 29 29 } 30 30 31 31 // ··· 36 36 _Must_inspect_result_ 37 37 __drv_maxIRQL(PASSIVE_LEVEL) 38 38 NTSTATUS 39 + STDCALL 39 40 WDFEXPORT(WdfChildListCreate)( 40 41 __in 41 42 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 125 126 126 127 __drv_maxIRQL(DISPATCH_LEVEL) 127 128 WDFDEVICE 129 + STDCALL 128 130 WDFEXPORT(WdfChildListGetDevice)( 129 131 __in 130 132 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 150 152 _Must_inspect_result_ 151 153 __drv_maxIRQL(DISPATCH_LEVEL) 152 154 NTSTATUS 155 + STDCALL 153 156 WDFEXPORT(WdfChildListRetrieveAddressDescription)( 154 157 __in 155 158 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 226 229 227 230 __drv_maxIRQL(DISPATCH_LEVEL) 228 231 VOID 232 + STDCALL 229 233 WDFEXPORT(WdfChildListBeginScan)( 230 234 __in 231 235 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 250 254 251 255 __drv_maxIRQL(DISPATCH_LEVEL) 252 256 VOID 257 + STDCALL 253 258 WDFEXPORT(WdfChildListEndScan)( 254 259 __in 255 260 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 274 279 275 280 __drv_maxIRQL(DISPATCH_LEVEL) 276 281 VOID 282 + STDCALL 277 283 WDFEXPORT(WdfChildListBeginIteration)( 278 284 __in 279 285 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 323 329 _Must_inspect_result_ 324 330 __drv_maxIRQL(DISPATCH_LEVEL) 325 331 NTSTATUS 332 + STDCALL 326 333 WDFEXPORT(WdfChildListRetrieveNextDevice)( 327 334 __in 328 335 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 425 432 426 433 __drv_maxIRQL(DISPATCH_LEVEL) 427 434 VOID 435 + STDCALL 428 436 WDFEXPORT(WdfChildListEndIteration)( 429 437 __in 430 438 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 473 481 _Must_inspect_result_ 474 482 __drv_maxIRQL(DISPATCH_LEVEL) 475 483 NTSTATUS 484 + STDCALL 476 485 WDFEXPORT(WdfChildListAddOrUpdateChildDescriptionAsPresent)( 477 486 __in 478 487 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 561 570 _Must_inspect_result_ 562 571 __drv_maxIRQL(DISPATCH_LEVEL) 563 572 NTSTATUS 573 + STDCALL 564 574 WDFEXPORT(WdfChildListUpdateChildDescriptionAsMissing)( 565 575 __in 566 576 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 609 619 610 620 __drv_maxIRQL(DISPATCH_LEVEL) 611 621 VOID 622 + STDCALL 612 623 WDFEXPORT(WdfChildListUpdateAllChildDescriptionsAsPresent)( 613 624 __in 614 625 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 637 648 _Must_inspect_result_ 638 649 __drv_maxIRQL(DISPATCH_LEVEL) 639 650 WDFDEVICE 651 + STDCALL 640 652 WDFEXPORT(WdfChildListRetrievePdo)( 641 653 __in 642 654 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 734 746 735 747 __drv_maxIRQL(DISPATCH_LEVEL) 736 748 BOOLEAN 749 + STDCALL 737 750 WDFEXPORT(WdfChildListRequestChildEject)( 738 751 __in 739 752 PWDF_DRIVER_GLOBALS DriverGlobals,
+7 -1
sdk/lib/drivers/wdf/kmdf/src/core/fxdevicefdoapi.cpp
··· 25 25 #include "fxcorepch.hpp" 26 26 27 27 extern "C" { 28 - #include "FxDeviceFdoApi.tmh" 28 + // #include "FxDeviceFdoApi.tmh" 29 29 } 30 30 31 31 // ··· 36 36 _Must_inspect_result_ 37 37 __drv_maxIRQL(DISPATCH_LEVEL) 38 38 NTSTATUS 39 + STDCALL 39 40 WDFEXPORT(WdfFdoAddStaticChild)( 40 41 __in 41 42 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 121 122 122 123 __drv_maxIRQL(DISPATCH_LEVEL) 123 124 VOID 125 + STDCALL 124 126 WDFEXPORT(WdfFdoLockStaticChildListForIteration)( 125 127 __in 126 128 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 179 181 _Must_inspect_result_ 180 182 __drv_maxIRQL(DISPATCH_LEVEL) 181 183 WDFDEVICE 184 + STDCALL 182 185 WDFEXPORT(WdfFdoRetrieveNextStaticChild)( 183 186 __in 184 187 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 256 259 257 260 __drv_maxIRQL(DISPATCH_LEVEL) 258 261 VOID 262 + STDCALL 259 263 WDFEXPORT(WdfFdoUnlockStaticChildListFromIteration)( 260 264 __in 261 265 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 311 315 _Must_inspect_result_ 312 316 __drv_maxIRQL(PASSIVE_LEVEL) 313 317 NTSTATUS 318 + STDCALL 314 319 WDFEXPORT(WdfFdoQueryForInterface)( 315 320 __in 316 321 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 405 410 406 411 __drv_maxIRQL(DISPATCH_LEVEL) 407 412 WDFCHILDLIST 413 + STDCALL 408 414 WDFEXPORT(WdfFdoGetDefaultChildList)( 409 415 __in 410 416 PWDF_DRIVER_GLOBALS DriverGlobals,
+19 -10
sdk/lib/drivers/wdf/kmdf/src/core/fxdevicepdoapi.cpp
··· 25 25 #include "fxcorepch.hpp" 26 26 27 27 extern "C" { 28 - #include "FxDevicePdoApi.tmh" 28 + // #include "FxDevicePdoApi.tmh" 29 29 } 30 30 31 31 NTSTATUS ··· 87 87 _Must_inspect_result_ 88 88 __drv_maxIRQL(DISPATCH_LEVEL) 89 89 NTSTATUS 90 + STDCALL 90 91 WDFEXPORT(WdfPdoMarkMissing)( 91 92 __in 92 93 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 101 102 102 103 status = GetPdoPackageFromDeviceHandle(GetFxDriverGlobals(DriverGlobals), 103 104 Device, 104 - __FUNCTION__, 105 + (PCHAR)__FUNCTION__, 105 106 &pPkgPdo, 106 107 &pFxDriverGlobals, 107 108 &pDevice); ··· 120 121 __drv_maxIRQL(DISPATCH_LEVEL) 121 122 WDFAPI 122 123 VOID 124 + STDCALL 123 125 WDFEXPORT(WdfPdoRequestEject)( 124 126 __in 125 127 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 134 136 135 137 status = GetPdoPackageFromDeviceHandle(GetFxDriverGlobals(DriverGlobals), 136 138 Device, 137 - __FUNCTION__, 139 + (PCHAR)__FUNCTION__, 138 140 &pPkgPdo, 139 141 &pFxDriverGlobals, 140 142 &pDevice); ··· 163 165 164 166 __drv_maxIRQL(DISPATCH_LEVEL) 165 167 WDFDEVICE 168 + STDCALL 166 169 WDFEXPORT(WdfPdoGetParent)( 167 170 __in 168 171 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 177 180 178 181 status = GetPdoPackageFromDeviceHandle(GetFxDriverGlobals(DriverGlobals), 179 182 Device, 180 - __FUNCTION__, 183 + (PCHAR)__FUNCTION__, 181 184 &pPkgPdo, 182 185 &pFxDriverGlobals, 183 186 &pDevice); ··· 197 200 __drv_maxIRQL(DISPATCH_LEVEL) 198 201 WDFAPI 199 202 NTSTATUS 203 + STDCALL 200 204 WDFEXPORT(WdfPdoRetrieveIdentificationDescription)( 201 205 __in 202 206 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 212 216 213 217 status = GetPdoPackageFromDeviceHandle(GetFxDriverGlobals(DriverGlobals), 214 218 Device, 215 - __FUNCTION__, 219 + (PCHAR)__FUNCTION__, 216 220 &pPkgPdo, 217 221 &pFxDriverGlobals); 218 222 ··· 251 255 __drv_maxIRQL(DISPATCH_LEVEL) 252 256 WDFAPI 253 257 NTSTATUS 258 + STDCALL 254 259 WDFEXPORT(WdfPdoRetrieveAddressDescription)( 255 260 __in 256 261 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 266 271 267 272 status = GetPdoPackageFromDeviceHandle(GetFxDriverGlobals(DriverGlobals), 268 273 Device, 269 - __FUNCTION__, 274 + (PCHAR)__FUNCTION__, 270 275 &pPkgPdo, 271 276 &pFxDriverGlobals); 272 277 ··· 307 312 __drv_maxIRQL(DISPATCH_LEVEL) 308 313 WDFAPI 309 314 NTSTATUS 315 + STDCALL 310 316 WDFEXPORT(WdfPdoUpdateAddressDescription)( 311 317 __in 312 318 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 322 328 323 329 status = GetPdoPackageFromDeviceHandle(GetFxDriverGlobals(DriverGlobals), 324 330 Device, 325 - __FUNCTION__, 331 + (PCHAR)__FUNCTION__, 326 332 &pPkgPdo, 327 333 &pFxDriverGlobals); 328 334 ··· 354 360 _Must_inspect_result_ 355 361 __drv_maxIRQL(DISPATCH_LEVEL) 356 362 NTSTATUS 363 + STDCALL 357 364 WDFEXPORT(WdfPdoAddEjectionRelationsPhysicalDevice)( 358 365 __in 359 366 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 386 393 387 394 status = GetPdoPackageFromDeviceHandle(GetFxDriverGlobals(DriverGlobals), 388 395 Device, 389 - __FUNCTION__, 396 + (PCHAR)__FUNCTION__, 390 397 &pPkgPdo, 391 398 &pFxDriverGlobals); 392 399 ··· 403 410 404 411 __drv_maxIRQL(DISPATCH_LEVEL) 405 412 VOID 413 + STDCALL 406 414 WDFEXPORT(WdfPdoRemoveEjectionRelationsPhysicalDevice)( 407 415 __in 408 416 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 434 442 435 443 status = GetPdoPackageFromDeviceHandle(GetFxDriverGlobals(DriverGlobals), 436 444 Device, 437 - __FUNCTION__, 445 + (PCHAR)__FUNCTION__, 438 446 &pPkgPdo, 439 447 &pFxDriverGlobals); 440 448 ··· 449 457 450 458 __drv_maxIRQL(DISPATCH_LEVEL) 451 459 VOID 460 + STDCALL 452 461 WDFEXPORT(WdfPdoClearEjectionRelationsDevices)( 453 462 __in 454 463 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 476 485 477 486 status = GetPdoPackageFromDeviceHandle(GetFxDriverGlobals(DriverGlobals), 478 487 Device, 479 - __FUNCTION__, 488 + (PCHAR)__FUNCTION__, 480 489 &pPkgPdo, 481 490 &pFxDriverGlobals); 482 491
+2 -2
sdk/lib/drivers/wdf/kmdf/src/core/fxdpc.cpp
··· 26 26 27 27 #include "fxcorepch.hpp" 28 28 29 - #include "FxDpc.hpp" 29 + #include "fxdpc.hpp" 30 30 31 31 // Tracing support 32 32 extern "C" { 33 - #include "FxDpc.tmh" 33 + // #include "FxDpc.tmh" 34 34 } 35 35 36 36 //
+7 -2
sdk/lib/drivers/wdf/kmdf/src/core/fxdpcapi.cpp
··· 25 25 26 26 #include "fxcorepch.hpp" 27 27 28 - #include "FxDpc.hpp" 28 + #include "fxdpc.hpp" 29 29 30 30 extern "C" { 31 - #include "FxDpcApi.tmh" 31 + // #include "FxDpcApi.tmh" 32 32 } 33 33 34 34 // ··· 39 39 _Must_inspect_result_ 40 40 __drv_maxIRQL(DISPATCH_LEVEL) 41 41 NTSTATUS 42 + STDCALL 42 43 WDFEXPORT(WdfDpcCreate)( 43 44 __in 44 45 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 129 130 130 131 __drv_maxIRQL(HIGH_LEVEL) 131 132 KDPC* 133 + STDCALL 132 134 WDFEXPORT(WdfDpcWdmGetDpc)( 133 135 __in 134 136 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 166 168 167 169 __drv_maxIRQL(HIGH_LEVEL) 168 170 BOOLEAN 171 + STDCALL 169 172 WDFEXPORT(WdfDpcEnqueue)( 170 173 __in 171 174 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 202 205 __drv_when(Wait == __true, __drv_maxIRQL(PASSIVE_LEVEL)) 203 206 __drv_when(Wait == __false, __drv_maxIRQL(HIGH_LEVEL)) 204 207 BOOLEAN 208 + STDCALL 205 209 WDFEXPORT(WdfDpcCancel)( 206 210 __in 207 211 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 254 258 255 259 __drv_maxIRQL(HIGH_LEVEL) 256 260 WDFOBJECT 261 + STDCALL 257 262 WDFEXPORT(WdfDpcGetParentObject)( 258 263 __in 259 264 PWDF_DRIVER_GLOBALS DriverGlobals,
+6 -6
sdk/lib/drivers/wdf/kmdf/src/core/fxsystemthread.cpp
··· 27 27 #include "fxcorepch.hpp" 28 28 29 29 extern "C" { 30 - #include "FxSystemThread.tmh" 30 + // #include "FxSystemThread.tmh" 31 31 } 32 32 33 33 ··· 151 151 // 152 152 // The thread itself will release this reference in its exit routine 153 153 // 154 - ADDREF(FxSystemThread::StaticThreadThunk); 154 + ADDREF((PVOID)FxSystemThread::StaticThreadThunk); 155 155 156 156 status = PsCreateSystemThread( 157 157 &threadHandle, ··· 171 171 // 172 172 // Release the reference taken above due to failure 173 173 // 174 - RELEASE(FxSystemThread::StaticThreadThunk); 174 + RELEASE((PVOID)FxSystemThread::StaticThreadThunk); 175 175 } 176 176 else { 177 177 status = ObReferenceObjectByHandle( ··· 347 347 m_Exit = TRUE; 348 348 349 349 // Add a reference which will be released by the reaper 350 - ADDREF(FxSystemThread::StaticReaperThunk); 350 + ADDREF((PVOID)FxSystemThread::StaticReaperThunk); 351 351 352 352 Unlock(irql); 353 353 ··· 524 524 Unlock(irql); 525 525 526 526 // Release the object reference held by the thread 527 - RELEASE(FxSystemThread::StaticThreadThunk); 527 + RELEASE((PVOID)FxSystemThread::StaticThreadThunk); 528 528 529 529 status = PsTerminateSystemThread(STATUS_SUCCESS); 530 530 UNREFERENCED_PARAMETER(status); ··· 635 635 636 636 ObDereferenceObject(m_ThreadPtr); 637 637 638 - RELEASE(FxSystemThread::StaticReaperThunk); 638 + RELEASE((PVOID)FxSystemThread::StaticReaperThunk); 639 639 640 640 return; 641 641 }
+3 -3
sdk/lib/drivers/wdf/kmdf/src/core/tracing.cpp
··· 30 30 31 31 // We use DoTraceMessage 32 32 extern "C" { 33 - #include "tracing.tmh" 33 + // #include "tracing.tmh" 34 34 } 35 35 36 36 #include <initguid.h> 37 - #include "fxIFR.h" // shared struct between IFR and debug ext. 38 - #include "fxIFRKm.h" // kernel mode only IFR definitions 37 + #include "fxifr.h" // shared struct between IFR and debug ext. 38 + #include "fxifrkm.h" // kernel mode only IFR definitions 39 39 40 40 41 41 //=============================================================================
+2 -2
sdk/lib/drivers/wdf/kmdf/src/dma/base/fxcommonbuffer.cpp
··· 21 21 22 22 --*/ 23 23 24 - #include "FxDmaPCH.hpp" 24 + #include "fxdmapch.hpp" 25 25 26 26 extern "C" { 27 - #include "FxCommonBuffer.tmh" 27 + // #include "FxCommonBuffer.tmh" 28 28 } 29 29 30 30 FxCommonBuffer::FxCommonBuffer(
+7 -2
sdk/lib/drivers/wdf/kmdf/src/dma/base/fxcommonbufferapi.cpp
··· 21 21 22 22 --*/ 23 23 24 - #include "FxDmaPCH.hpp" 24 + #include "fxdmapch.hpp" 25 25 26 26 extern "C" { 27 - #include "FxCommonBufferAPI.tmh" 27 + // #include "FxCommonBufferAPI.tmh" 28 28 } 29 29 30 30 // ··· 35 35 _Must_inspect_result_ 36 36 __drv_maxIRQL(PASSIVE_LEVEL) 37 37 NTSTATUS 38 + STDCALL 38 39 WDFEXPORT(WdfCommonBufferCreate)( 39 40 __in 40 41 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 134 135 _Must_inspect_result_ 135 136 __drv_maxIRQL(PASSIVE_LEVEL) 136 137 NTSTATUS 138 + STDCALL 137 139 WDFEXPORT(WdfCommonBufferCreateWithConfig)( 138 140 __in 139 141 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 245 247 246 248 __drv_maxIRQL(DISPATCH_LEVEL) 247 249 PVOID 250 + STDCALL 248 251 WDFEXPORT(WdfCommonBufferGetAlignedVirtualAddress)( 249 252 __in 250 253 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 264 267 265 268 __drv_maxIRQL(DISPATCH_LEVEL) 266 269 PHYSICAL_ADDRESS 270 + STDCALL 267 271 WDFEXPORT(WdfCommonBufferGetAlignedLogicalAddress)( 268 272 __in 269 273 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 283 287 284 288 __drv_maxIRQL(DISPATCH_LEVEL) 285 289 size_t 290 + STDCALL 286 291 WDFEXPORT(WdfCommonBufferGetLength)( 287 292 __in 288 293 PWDF_DRIVER_GLOBALS DriverGlobals,
+2 -2
sdk/lib/drivers/wdf/kmdf/src/dma/base/fxdmaenabler.cpp
··· 21 21 22 22 --*/ 23 23 24 - #include "FxDmaPCH.hpp" 24 + #include "fxdmapch.hpp" 25 25 26 26 extern "C" { 27 - #include "FxDmaEnabler.tmh" 27 + // #include "FxDmaEnabler.tmh" 28 28 } 29 29 30 30 FxDmaEnabler::FxDmaEnabler(
+2 -2
sdk/lib/drivers/wdf/kmdf/src/dma/base/fxdmaenablerapi.cpp
··· 21 21 22 22 --*/ 23 23 24 - #include "FxDmaPCH.hpp" 24 + #include "fxdmapch.hpp" 25 25 26 26 extern "C" { 27 - #include "FxDmaEnablerAPI.tmh" 27 + // #include "FxDmaEnablerAPI.tmh" 28 28 } 29 29 30 30 //
+1 -1
sdk/lib/drivers/wdf/kmdf/src/dma/base/fxdmapch.hpp
··· 4 4 extern "C" { 5 5 #include <ntddk.h> 6 6 } 7 - #include <Fx.hpp> 7 + #include <fx.hpp>
+3 -3
sdk/lib/drivers/wdf/kmdf/src/dma/base/fxdmatransaction.cpp
··· 21 21 22 22 --*/ 23 23 24 - #include "FxDmaPCH.hpp" 24 + #include "fxdmapch.hpp" 25 25 26 26 extern "C" { 27 - #include "FxDmaTransaction.tmh" 27 + // #include "FxDmaTransaction.tmh" 28 28 } 29 29 30 30 FxDmaTransactionBase::FxDmaTransactionBase( ··· 842 842 { 843 843 BOOLEAN ret; 844 844 845 - ret = __super::Dispose(); 845 + ret = FxDmaTransactionBase::Dispose(); // __super call 846 846 847 847 // 848 848 // Free Lookaside Buffer which held SGList
+2 -2
sdk/lib/drivers/wdf/kmdf/src/dma/base/fxdmatransactionapi.cpp
··· 21 21 22 22 --*/ 23 23 24 - #include "FxDmaPCH.hpp" 24 + #include "fxdmapch.hpp" 25 25 26 26 extern "C" { 27 - #include "FxDmaTransactionAPI.tmh" 27 + // #include "FxDmaTransactionAPI.tmh" 28 28 } 29 29 30 30 //
+3 -3
sdk/lib/drivers/wdf/kmdf/src/dynamic/version/version.cpp
··· 44 44 // available in public symbols. Various WDFKD debug commands use these 45 45 // internal structures to provide information about WDF. 46 46 //----------------------------------------------------------------------------- 47 - #include "FxIFR.h" 47 + #include "fxifr.h" 48 48 49 49 extern "C" { 50 50 ··· 78 78 79 79 extern "C" { 80 80 81 - #include "FxDynamics.h" 81 + #include "fxdynamics.h" 82 82 83 - #include "FxLibraryCommon.h" 83 + #include "fxlibrarycommon.h" 84 84 85 85 #define KMDF_DEFAULT_NAME "Wdf" ## \ 86 86 LITERAL(__WDF_MAJOR_VERSION_STRING) ## \
+5 -5
sdk/lib/drivers/wdf/kmdf/src/fxtosharedinterface/fxobject/fxobjectinfokm.cpp
··· 27 27 28 28 #include "fxobjectpch.hpp" 29 29 30 - #include "FxMemoryBufferPreallocated.hpp" 31 - #include "FxUserObject.hpp" 32 - #include "FxUsbDevice.hpp" 33 - #include "FxUsbPipe.hpp" 34 - #include "FxUsbInterface.hpp" 30 + #include "fxmemorybufferpreallocated.hpp" 31 + #include "fxuserobject.hpp" 32 + #include "fxusbdevice.hpp" 33 + #include "fxusbpipe.hpp" 34 + #include "fxusbinterface.hpp" 35 35 36 36 extern "C" 37 37 {
+1 -1
sdk/lib/drivers/wdf/kmdf/src/irphandlers/wmi/fxwmiapi.cpp
··· 31 31 // Extern "C" the tmh file and all external APIs 32 32 // 33 33 extern "C" { 34 - #include "FxWmiAPI.tmh" 34 + #include "fxwmiapi.tmh" 35 35 36 36 _Must_inspect_result_ 37 37 __drv_maxIRQL(DISPATCH_LEVEL)
+2 -2
sdk/lib/drivers/wdf/kmdf/src/irphandlers/wmi/fxwmiinstance.cpp
··· 22 22 #include "fxwmipch.hpp" 23 23 24 24 extern "C" { 25 - #include "FxWmiInstance.tmh" 25 + // #include "FxWmiInstance.tmh" 26 26 } 27 27 28 28 FxWmiInstance::FxWmiInstance( ··· 56 56 // of instances. If we don't do this, the provider will have a list which 57 57 // contains entries which have been freed. 58 58 // 59 - return __super::Dispose(); 59 + return FxNonPagedObject::Dispose(); // __super call 60 60 } 61 61 62 62 _Must_inspect_result_
+1 -1
sdk/lib/drivers/wdf/kmdf/src/irphandlers/wmi/fxwmiirphandler.cpp
··· 25 25 #include "fxwmipch.hpp" 26 26 27 27 extern "C" { 28 - #include "FxWmiIrpHandler.tmh" 28 + // #include "FxWmiIrpHandler.tmh" 29 29 } 30 30 31 31 #ifndef WppDebug
+2 -2
sdk/lib/drivers/wdf/kmdf/src/irphandlers/wmi/fxwmiprovider.cpp
··· 22 22 #include "fxwmipch.hpp" 23 23 24 24 extern "C" { 25 - #include "FxWmiProvider.tmh" 25 + // #include "FxWmiProvider.tmh" 26 26 } 27 27 28 28 FxWmiProvider::FxWmiProvider( ··· 80 80 // 81 81 m_Parent->RemoveProvider(this); 82 82 83 - return __super::Dispose(); 83 + return FxNonPagedObject::Dispose(); // __super call 84 84 } 85 85 86 86 _Must_inspect_result_
+3 -3
sdk/lib/drivers/wdf/kmdf/src/librarycommon/fxlibrarycommon.cpp
··· 19 19 20 20 #include "fx.hpp" 21 21 #include "fxldr.h" 22 - #include "FxLibraryCommon.h" 23 - #include "FxTelemetry.hpp" 24 - #include "WdfVersionLog.h" 22 + #include "fxlibrarycommon.h" 23 + #include "fxtelemetry.hpp" 24 + #include "wdfversionlog.h" 25 25 #include "minwindef.h" 26 26 27 27 extern "C" {
+2 -2
sdk/lib/drivers/wdf/kmdf/src/support/fxqueryinterface.cpp
··· 22 22 23 23 --*/ 24 24 25 - #include "FxSupportPch.hpp" 25 + #include "fxsupportpch.hpp" 26 26 27 27 extern "C" { 28 - #include "FxQueryInterface.tmh" 28 + // #include "FxQueryInterface.tmh" 29 29 } 30 30 31 31 FxQueryInterface::FxQueryInterface(
+3 -2
sdk/lib/drivers/wdf/kmdf/src/support/fxqueryinterfaceapi.cpp
··· 22 22 Revision History: 23 23 24 24 --*/ 25 - #include "FxSupportPch.hpp" 25 + #include "fxsupportpch.hpp" 26 26 27 27 extern "C" { 28 - #include "FxQueryInterfaceAPI.tmh" 28 + // #include "FxQueryInterfaceAPI.tmh" 29 29 } 30 30 31 31 // ··· 35 35 _Must_inspect_result_ 36 36 __drv_maxIRQL(PASSIVE_LEVEL) 37 37 NTSTATUS 38 + STDCALL 38 39 WDFEXPORT(WdfDeviceAddQueryInterface)( 39 40 __in 40 41 PWDF_DRIVER_GLOBALS DriverGlobals,
+1 -1
sdk/lib/drivers/wdf/kmdf/src/support/fxrelateddevice.cpp
··· 23 23 24 24 --*/ 25 25 26 - #include "FxSupportPch.hpp" 26 + #include "fxsupportpch.hpp" 27 27 28 28 FxRelatedDevice::FxRelatedDevice( 29 29 __in PDEVICE_OBJECT DeviceObject,
+2 -2
sdk/lib/drivers/wdf/kmdf/src/support/fxrelateddevicelist.cpp
··· 22 22 23 23 --*/ 24 24 25 - #include "FxSupportPch.hpp" 25 + #include "fxsupportpch.hpp" 26 26 27 27 _Must_inspect_result_ 28 28 NTSTATUS ··· 111 111 } 112 112 113 113 pEntry = NULL; 114 - while ((pEntry = __super::GetNextEntryLocked(pEntry)) != NULL) { 114 + while ((pEntry = FxSpinLockTransactionedList::GetNextEntryLocked(pEntry)) != NULL) { // __super call 115 115 pInList = CONTAINING_RECORD(pEntry, FxRelatedDevice, m_TransactionedEntry); 116 116 117 117 if (pInList->m_DeviceObject == pNew->m_DeviceObject) {
+23 -11
sdk/lib/drivers/wdf/kmdf/src/support/probeandlock.c
··· 30 30 // 31 31 32 32 #include <ntddk.h> 33 + #include <pseh/pseh2.h> // __REACTOS__ 33 34 34 35 NTSTATUS 35 36 FxProbeAndLockForRead( ··· 37 38 __in KPROCESSOR_MODE AccessMode 38 39 ) 39 40 { 40 - try { 41 + _SEH2_TRY 42 + { 41 43 MmProbeAndLockPages(Mdl, AccessMode, IoReadAccess); 42 - } except(EXCEPTION_EXECUTE_HANDLER) { 43 - return GetExceptionCode(); 44 + } 45 + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) 46 + { 47 + _SEH2_YIELD(return _SEH2_GetExceptionCode()); 44 48 } 49 + _SEH2_END; 45 50 46 51 return STATUS_SUCCESS; 47 52 } ··· 52 57 __in KPROCESSOR_MODE AccessMode 53 58 ) 54 59 { 55 - try { 60 + _SEH2_TRY 61 + { 56 62 MmProbeAndLockPages(Mdl, AccessMode, IoWriteAccess); 57 - } except(EXCEPTION_EXECUTE_HANDLER) { 58 - return GetExceptionCode(); 59 63 } 64 + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) 65 + { 66 + _SEH2_YIELD(return _SEH2_GetExceptionCode()); 67 + } 68 + _SEH2_END; 69 + 60 70 return STATUS_SUCCESS; 61 71 } 62 72 ··· 67 77 __in LOCK_OPERATION Operation 68 78 ) 69 79 { 70 - try { 80 + _SEH2_TRY 81 + { 71 82 MmProbeAndLockPages(Mdl, AccessMode, Operation); 72 - } except(EXCEPTION_EXECUTE_HANDLER) { 73 - return GetExceptionCode(); 83 + } 84 + _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) 85 + { 86 + _SEH2_YIELD(return _SEH2_GetExceptionCode()); 74 87 } 88 + _SEH2_END; 75 89 76 90 return STATUS_SUCCESS; 77 91 } 78 - 79 -
+72
sdk/lib/drivers/wdf/reactos_special.cpp
··· 1 + #include <stdarg.h> 2 + #include <stddef.h> 3 + #include <stdio.h> 4 + #include <string.h> 5 + #include <ntverp.h> 6 + 7 + extern "C" { 8 + #include <ntddk.h> 9 + #include <ntstrsafe.h> 10 + } 11 + 12 + #define FX_DYNAMICS_GENERATE_TABLE 1 13 + 14 + #include "fx.hpp" 15 + 16 + // #include <fxldr.h> 17 + // #include "fxbugcheck.h" 18 + 19 + 20 + //----------------------------------------- ------------------------------------ 21 + 22 + extern "C" { 23 + 24 + #include "fxdynamics.h" 25 + 26 + // #include "FxLibraryCommon.h" 27 + 28 + typedef VOID (*WDFFUNC) (VOID); 29 + 30 + const WDFFUNC *WdfFunctions_01017 = (WDFFUNC *)(&WdfVersion.Functions); 31 + // DECLSPEC_ALIGN(MAX_NATURAL_ALIGNMENT) UINT8 WdfDriverGlobalsVal[248] = { 0 }; // sizeof(FX_DRIVER_GLOBALS) 32 + // PWDF_DRIVER_GLOBALS WdfDriverGlobals = &((PFX_DRIVER_GLOBALS)&WdfDriverGlobalsVal)->Public; 33 + WDF_BIND_INFO WdfBindInfo = {0}; 34 + PWDF_DRIVER_GLOBALS WdfDriverGlobals; 35 + 36 + #define KMDF_DEFAULT_NAME "Wdf01000" 37 + 38 + PCHAR WdfLdrType = KMDF_DEFAULT_NAME; 39 + 40 + WDFAPI 41 + NTSTATUS 42 + STDCALL 43 + WdfApiNotImplemented() 44 + { 45 + DbgPrint("ReactOS KMDF: %s non-implemented API called\n"); 46 + __debugbreak(); 47 + return STATUS_UNSUCCESSFUL; 48 + } 49 + 50 + // called in WdfDriverCreate in fxdriverapi.cpp 51 + VOID 52 + RosInitWdf() 53 + { 54 + WdfDriverGlobals = FxAllocateDriverGlobals(); 55 + PFX_DRIVER_GLOBALS fxDriverGlobals = GetFxDriverGlobals(WdfDriverGlobals); 56 + 57 + WdfBindInfo.Size = sizeof(WDF_BIND_INFO); 58 + WdfBindInfo.Version.Major = 1; 59 + WdfBindInfo.Version.Minor = 9; 60 + WdfBindInfo.Version.Build = 7600; 61 + WdfBindInfo.FuncCount = WdfVersion.FuncCount; 62 + WdfBindInfo.FuncTable = (WDFFUNC *)(&WdfVersion.Functions); 63 + fxDriverGlobals->WdfBindInfo = &WdfBindInfo; 64 + } 65 + 66 + void 67 + __cxa_pure_virtual() 68 + { 69 + __debugbreak(); 70 + } 71 + 72 + } // extern "C"
+62 -62
sdk/lib/drivers/wdf/shared/core/coreprivshared.hpp
··· 46 46 #include "mx.h" 47 47 } 48 48 49 - #include "FxMin.hpp" 49 + #include "fxmin.hpp" 50 50 51 51 #include "wdfmemory.h" 52 52 #include "wdfrequest.h" 53 53 #include "wdfdevice.h" 54 - #include "wdfdevicepri.h" 55 - #include "wdfiotargetpri.h" 54 + // #include "wdfdevicepri.h" 55 + // #include "wdfiotargetpri.h" 56 56 #include "wdfwmi.h" 57 - #include "wdfChildList.h" 57 + #include "wdfchildlist.h" 58 58 #include "wdfpdo.h" 59 59 #include "wdffdo.h" 60 60 #include "wdfiotarget.h" ··· 62 62 #include "wdfcx.h" 63 63 #include "wdfio.h" 64 64 #include "wdfqueryinterface.h" 65 - #include "wdftriage.h" 65 + // #include "wdftriage.h" 66 66 67 67 #if (FX_CORE_MODE == FX_CORE_USER_MODE) 68 - #include "FxIrpUm.hpp" 68 + #include "fxirpum.hpp" 69 69 #else 70 - #include "FxIrpKm.hpp" 70 + #include "fxirpkm.hpp" 71 71 #endif 72 72 73 73 // <FxSystemWorkItem.hpp> ··· 77 77 IN PVOID Parameter 78 78 ); 79 79 80 - #include "FxIrpQueue.hpp" 80 + #include "fxirpqueue.hpp" 81 81 82 82 83 83 // </FxSystemWorkItem.hpp> 84 84 85 85 86 - #include "FxProbeAndLock.h" 87 - #include "FxPackage.hpp" 88 - #include "FxCollection.hpp" 89 - #include "FxDeviceInitShared.hpp" 86 + #include "fxprobeandlock.h" 87 + #include "fxpackage.hpp" 88 + #include "fxcollection.hpp" 89 + #include "fxdeviceinitshared.hpp" 90 90 91 - #include "IfxMemory.hpp" 92 - #include "FxCallback.hpp" 93 - #include "FxRequestContext.hpp" 94 - #include "FxRequestContextTypes.h" 95 - #include "FxRequestBase.hpp" 96 - #include "FxMemoryObject.hpp" 97 - #include "FxMemoryBuffer.hpp" 91 + #include "ifxmemory.hpp" 92 + #include "fxcallback.hpp" 93 + #include "fxrequestcontext.hpp" 94 + #include "fxrequestcontexttypes.h" 95 + #include "fxrequestbase.hpp" 96 + #include "fxmemoryobject.hpp" 97 + #include "fxmemorybuffer.hpp" 98 98 99 - #include "FxMemoryBufferFromPool.hpp" 99 + #include "fxmemorybufferfrompool.hpp" 100 100 101 - #include "FxMemoryBufferPreallocated.hpp" 101 + #include "fxmemorybufferpreallocated.hpp" 102 102 103 - #include "FxTransactionedList.hpp" 103 + #include "fxtransactionedlist.hpp" 104 104 105 105 // 106 106 // MERGE temp: We may not need these include files here, 107 107 // temporarily including them to verify they compile in shared code 108 108 // 109 - #include "FxRequestValidateFunctions.hpp" 110 - #include "FxRequestCallbacks.hpp" 109 + #include "fxrequestvalidatefunctions.hpp" 110 + #include "fxrequestcallbacks.hpp" 111 111 112 112 // support 113 - #include "StringUtil.hpp" 114 - #include "FxAutoString.hpp" 115 - #include "FxString.hpp" 116 - #include "FxDeviceText.hpp" 117 - #include "FxCallback.hpp" 118 - #include "FxDisposeList.hpp" 119 - #include "FxSystemThread.hpp" 113 + #include "stringutil.hpp" 114 + #include "fxautostring.hpp" 115 + #include "fxstring.hpp" 116 + #include "fxdevicetext.hpp" 117 + #include "fxcallback.hpp" 118 + #include "fxdisposelist.hpp" 119 + #include "fxsystemthread.hpp" 120 120 121 - #include "FxIrpPreprocessInfo.hpp" 122 - #include "FxPnpCallbacks.hpp" 121 + #include "fxirppreprocessinfo.hpp" 122 + #include "fxpnpcallbacks.hpp" 123 123 124 124 // device init 125 - #include "FxCxDeviceInit.hpp" 126 - #include "FxCxDeviceInfo.hpp" 127 - #include "FxDeviceInit.hpp" 125 + #include "fxcxdeviceinit.hpp" 126 + #include "fxcxdeviceinfo.hpp" 127 + #include "fxdeviceinit.hpp" 128 128 129 - #include "FxDeviceToMxInterface.hpp" 129 + #include "fxdevicetomxinterface.hpp" 130 130 131 131 // request 132 - #include "FxRequestMemory.hpp" 133 - #include "FxRequest.hpp" 134 - #include "FxRequestBuffer.hpp" 135 - #include "FxSyncRequest.hpp" 132 + #include "fxrequestmemory.hpp" 133 + #include "fxrequest.hpp" 134 + #include "fxrequestbuffer.hpp" 135 + #include "fxsyncrequest.hpp" 136 136 137 137 // io target 138 - #include "FxIoTarget.hpp" 139 - #include "FxIoTargetSelf.hpp" 138 + #include "fxiotarget.hpp" 139 + #include "fxiotargetself.hpp" 140 140 141 - #include "FxSystemWorkItem.hpp" 142 - #include "FxCallbackMutexLock.hpp" 143 - #include "FxDriver.hpp" 141 + #include "fxsystemworkitem.hpp" 142 + #include "fxcallbackmutexlock.hpp" 143 + #include "fxdriver.hpp" 144 144 145 - #include "FxDeviceInterface.hpp" 146 - #include "FxQueryInterface.hpp" 145 + #include "fxdeviceinterface.hpp" 146 + #include "fxqueryinterface.hpp" 147 147 148 - #include "FxCallbackSpinLock.hpp" 149 - #include "FxDefaultIrpHandler.hpp" 150 - #include "FxWmiIrpHandler.hpp" 148 + #include "fxcallbackspinlock.hpp" 149 + #include "fxdefaultirphandler.hpp" 150 + #include "fxwmiirphandler.hpp" 151 151 152 152 // packages 153 - #include "FxPkgIo.hpp" 154 - #include "FxPkgPnp.hpp" 155 - #include "FxPkgFdo.hpp" 156 - #include "FxPkgPdo.hpp" 157 - #include "FxPkgGeneral.hpp" 158 - #include "FxFileObject.hpp" 159 - #include "FxIoQueue.hpp" 160 - #include "FxDevice.hpp" 161 - #include "FxTelemetry.hpp" 153 + #include "fxpkgio.hpp" 154 + #include "fxpkgpnp.hpp" 155 + #include "fxpkgfdo.hpp" 156 + #include "fxpkgpdo.hpp" 157 + #include "fxpkggeneral.hpp" 158 + #include "fxfileobject.hpp" 159 + #include "fxioqueue.hpp" 160 + #include "fxdevice.hpp" 161 + #include "fxtelemetry.hpp" 162 162 163 - #include "FxChildList.hpp" 163 + #include "fxchildlist.hpp" 164 164 165 - #include "FxLookasideList.hpp" 165 + #include "fxlookasidelist.hpp" 166 166 167 167 /*#if FX_IS_KERNEL_MODE 168 168 #include "wdfrequest.h"
+1 -1
sdk/lib/drivers/wdf/shared/core/fxcxdeviceinit.cpp
··· 26 26 #include "coreprivshared.hpp" 27 27 28 28 extern "C" { 29 - #include "FxCxDeviceInit.tmh" 29 + // #include "FxCxDeviceInit.tmh" 30 30 } 31 31 32 32 WDFCXDEVICE_INIT::WDFCXDEVICE_INIT()
+1 -1
sdk/lib/drivers/wdf/shared/core/fxcxdeviceinitapi.cpp
··· 28 28 #include "coreprivshared.hpp" 29 29 30 30 extern "C" { 31 - #include "FxCxDeviceInitApi.tmh" 31 + // #include "FxCxDeviceInitApi.tmh" 32 32 } 33 33 34 34 //
+14 -17
sdk/lib/drivers/wdf/shared/core/fxdevice.cpp
··· 25 25 #include "coreprivshared.hpp" 26 26 27 27 extern "C" { 28 - #include "FxDevice.tmh" 28 + // #include "FxDevice.tmh" 29 29 } 30 30 31 31 // ··· 681 681 PFX_DRIVER_GLOBALS pGlobals; 682 682 PLIST_ENTRY next; 683 683 NTSTATUS status; 684 - BOOLEAN wmiTracing; 685 684 size_t reqCtxSize; 686 685 PWDFCXDEVICE_INIT cxInit; 687 686 CCHAR cxIndex; 688 687 FxCxDeviceInfo* cxDeviceInfo; 689 688 690 689 pGlobals = GetDriverGlobals(); 691 - wmiTracing = FALSE; 692 690 m_Exclusive = DeviceInit->Exclusive; 693 691 cxIndex = 0; 694 692 ··· 832 830 833 831 834 832 835 - m_PkgWmi = new(pGlobals) FxWmiIrpHandler(pGlobals, this); 836 - if (m_PkgWmi == NULL) { 837 - return STATUS_INSUFFICIENT_RESOURCES; 838 - } 839 - InstallPackage(m_PkgWmi); 833 + // m_PkgWmi = new(pGlobals) FxWmiIrpHandler(pGlobals, this); __REACTOS__ 834 + // if (m_PkgWmi == NULL) { 835 + // return STATUS_INSUFFICIENT_RESOURCES; 836 + // } 837 + // InstallPackage(m_PkgWmi); 840 838 #endif 841 839 842 840 // ··· 1019 1017 // administrator complete control over the device. No other users 1020 1018 // may access the device. 1021 1019 // 1022 - pSddl = (PUNICODE_STRING) &SDDL_DEVOBJ_SYS_ALL_ADM_ALL; 1020 + // pSddl = (PUNICODE_STRING) &SDDL_DEVOBJ_SYS_ALL_ADM_ALL; 1021 + pSddl = NULL; // __REACTOS__ : wdmsec.lib is not supported 1023 1022 } 1024 1023 1025 1024 status = Mx::MxCreateDeviceSecure( ··· 1217 1216 // we delete the device object, otherwise we can bugcheck when 1218 1217 // running under driver verifier. 1219 1218 // 1220 - m_PkgWmi->Deregister(); 1219 + // m_PkgWmi->Deregister(); __REACTOS__ 1221 1220 } 1222 1221 1223 1222 // ··· 1236 1235 } 1237 1236 } 1238 1237 1239 - __super::DeleteObject(); 1238 + FxDeviceBase::DeleteObject(); // __super call 1240 1239 } 1241 1240 1242 1241 BOOLEAN ··· 1262 1261 // valid to reference the pointer because there is an explicit 1263 1262 // reference on the object that was taken when we created this object. 1264 1263 // 1265 - m_PkgWmi->Deregister(); 1264 + // m_PkgWmi->Deregister(); __REACTOS__ 1266 1265 } 1267 1266 1268 1267 // ··· 1289 1288 return FALSE; 1290 1289 } 1291 1290 1292 - return __super::Dispose(); 1291 + return FxDeviceBase::Dispose(); // __super call 1293 1292 } 1294 1293 1295 1294 _Must_inspect_result_ ··· 1456 1455 ) 1457 1456 { 1458 1457 NTSTATUS status; 1459 - MdDeviceObject devObj; 1460 1458 UCHAR major, minor; 1461 1459 FxIrp irp(Irp); 1462 1460 ··· 1468 1466 // EvtDevicePreprocess returns. To not touch freed pool, capture all 1469 1467 // values we will need before preprocessing. 1470 1468 // 1471 - devObj = Device->GetDeviceObject(); 1472 1469 1473 1470 if (Info->ClassExtension == FALSE) { 1474 1471 status = Info->Dispatch[major].EvtDevicePreprocess( Device->GetHandle(), ··· 1518 1515 next = (PLIST_ENTRY)DispatchContext; 1519 1516 1520 1517 ASSERT(NULL != DispatchContext && 1521 - ((UCHAR)DispatchContext & FX_IN_DISPATCH_CALLBACK) == 0); 1518 + ((UCHAR)(ULONG_PTR)DispatchContext & FX_IN_DISPATCH_CALLBACK) == 0); 1522 1519 1523 1520 // 1524 1521 // Check for any driver/class-extensions' preprocess requirements. ··· 1762 1759 break; 1763 1760 1764 1761 default: 1765 - return __super::QueryInterface(Params); 1762 + return FxDeviceBase::QueryInterface(Params); // __super call 1766 1763 } 1767 1764 1768 1765 return STATUS_SUCCESS;
+38 -3
sdk/lib/drivers/wdf/shared/core/fxdeviceapi.cpp
··· 26 26 #include "fxiotarget.hpp" 27 27 28 28 extern "C" { 29 - #include "FxDeviceApi.tmh" 29 + // #include "FxDeviceApi.tmh" 30 30 } 31 31 32 32 struct FxOffsetAndName { ··· 43 43 44 44 __drv_maxIRQL(DISPATCH_LEVEL) 45 45 WDFDRIVER 46 + STDCALL 46 47 WDFEXPORT(WdfDeviceGetDriver)( 47 48 __in 48 49 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 83 84 84 85 __drv_maxIRQL(DISPATCH_LEVEL) 85 86 WDFIOTARGET 87 + STDCALL 86 88 WDFEXPORT(WdfDeviceGetIoTarget)( 87 89 __in 88 90 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 111 113 112 114 _IRQL_requires_max_(DISPATCH_LEVEL) 113 115 WDFIOTARGET 116 + STDCALL 114 117 WDFEXPORT(WdfDeviceGetSelfIoTarget)( 115 118 _In_ 116 119 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 160 163 _Must_inspect_result_ 161 164 __drv_maxIRQL(PASSIVE_LEVEL) 162 165 NTSTATUS 166 + STDCALL 163 167 WDFEXPORT(WdfDeviceRetrieveDeviceName)( 164 168 __in 165 169 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 208 212 209 213 __drv_maxIRQL(DISPATCH_LEVEL) 210 214 VOID 215 + STDCALL 211 216 WDFEXPORT(WdfDeviceSetCharacteristics)( 212 217 __in 213 218 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 234 239 235 240 __drv_maxIRQL(DISPATCH_LEVEL) 236 241 ULONG 242 + STDCALL 237 243 WDFEXPORT(WdfDeviceGetCharacteristics)( 238 244 __in 239 245 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 258 264 259 265 __drv_maxIRQL(DISPATCH_LEVEL) 260 266 ULONG 267 + STDCALL 261 268 WDFEXPORT(WdfDeviceGetAlignmentRequirement)( 262 269 __in 263 270 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 282 289 283 290 __drv_maxIRQL(DISPATCH_LEVEL) 284 291 VOID 292 + STDCALL 285 293 WDFEXPORT(WdfDeviceSetAlignmentRequirement)( 286 294 __in 287 295 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 308 316 309 317 __drv_maxIRQL(DISPATCH_LEVEL) 310 318 WDF_DEVICE_PNP_STATE 319 + STDCALL 311 320 WDFEXPORT(WdfDeviceGetDevicePnpState)( 312 321 __in 313 322 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 329 338 330 339 __drv_maxIRQL(DISPATCH_LEVEL) 331 340 WDF_DEVICE_POWER_STATE 341 + STDCALL 332 342 WDFEXPORT(WdfDeviceGetDevicePowerState)( 333 343 __in 334 344 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 350 360 351 361 __drv_maxIRQL(DISPATCH_LEVEL) 352 362 WDF_DEVICE_POWER_POLICY_STATE 363 + STDCALL 353 364 WDFEXPORT(WdfDeviceGetDevicePowerPolicyState)( 354 365 __in 355 366 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 372 383 _Must_inspect_result_ 373 384 __drv_maxIRQL(DISPATCH_LEVEL) 374 385 NTSTATUS 386 + STDCALL 375 387 WDFEXPORT(WdfDeviceAssignS0IdleSettings)( 376 388 __in 377 389 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 484 496 _Must_inspect_result_ 485 497 __drv_maxIRQL(DISPATCH_LEVEL) 486 498 NTSTATUS 499 + STDCALL 487 500 WDFEXPORT(WdfDeviceAssignSxWakeSettings)( 488 501 __in 489 502 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 579 592 _Must_inspect_result_ 580 593 __drv_maxIRQL(PASSIVE_LEVEL) 581 594 NTSTATUS 595 + STDCALL 582 596 WDFEXPORT(WdfDeviceOpenRegistryKey)( 583 597 __in 584 598 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 635 649 _Must_inspect_result_ 636 650 _IRQL_requires_max_(PASSIVE_LEVEL) 637 651 NTSTATUS 652 + STDCALL 638 653 WDFEXPORT(WdfDeviceOpenDevicemapKey) ( 639 654 _In_ 640 655 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 727 742 728 743 __drv_maxIRQL(DISPATCH_LEVEL) 729 744 VOID 745 + STDCALL 730 746 WDFEXPORT(WdfDeviceGetDeviceState)( 731 747 __in 732 748 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 765 781 766 782 __drv_maxIRQL(DISPATCH_LEVEL) 767 783 VOID 784 + STDCALL 768 785 WDFEXPORT(WdfDeviceSetDeviceState)( 769 786 __in 770 787 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 846 863 _Must_inspect_result_ 847 864 __drv_maxIRQL(PASSIVE_LEVEL) 848 865 NTSTATUS 866 + STDCALL 849 867 WDFEXPORT(WdfDeviceCreate)( 850 868 __in 851 869 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 957 975 _Must_inspect_result_ 958 976 __drv_maxIRQL(PASSIVE_LEVEL) 959 977 NTSTATUS 978 + STDCALL 960 979 WDFEXPORT(WdfDeviceCreateSymbolicLink)( 961 980 __in 962 981 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 969 988 DDI_ENTRY(); 970 989 971 990 PFX_DRIVER_GLOBALS pFxDriverGlobals; 972 - PUNICODE_STRING pName; 973 991 FxAutoString pdoName; 974 992 FxDevice* pDevice; 975 993 NTSTATUS status; ··· 979 997 FX_TYPE_DEVICE, 980 998 (PVOID *) &pDevice, 981 999 &pFxDriverGlobals); 982 - pName = NULL; 983 1000 984 1001 FxPointerNotNull(pFxDriverGlobals, SymbolicLinkName); 985 1002 ··· 1022 1039 _Must_inspect_result_ 1023 1040 __drv_maxIRQL(PASSIVE_LEVEL) 1024 1041 NTSTATUS 1042 + STDCALL 1025 1043 WDFEXPORT(WdfDeviceQueryProperty)( 1026 1044 __in 1027 1045 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1109 1127 _Must_inspect_result_ 1110 1128 __drv_maxIRQL(PASSIVE_LEVEL) 1111 1129 NTSTATUS 1130 + STDCALL 1112 1131 WDFEXPORT(WdfDeviceAllocAndQueryProperty)( 1113 1132 __in 1114 1133 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1201 1220 1202 1221 __drv_maxIRQL(DISPATCH_LEVEL) 1203 1222 VOID 1223 + STDCALL 1204 1224 WDFEXPORT(WdfDeviceSetStaticStopRemove)( 1205 1225 __in 1206 1226 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1237 1257 1238 1258 __drv_maxIRQL(DISPATCH_LEVEL) 1239 1259 VOID 1260 + STDCALL 1240 1261 WDFEXPORT(WdfDeviceSetFailed)( 1241 1262 __in 1242 1263 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1368 1389 __drv_when(WaitForD0 == 0, __drv_maxIRQL(DISPATCH_LEVEL)) 1369 1390 __drv_when(WaitForD0 != 0, __drv_maxIRQL(PASSIVE_LEVEL)) 1370 1391 NTSTATUS 1392 + STDCALL 1371 1393 WDFEXPORT(WdfDeviceStopIdleNoTrack)( 1372 1394 __in 1373 1395 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1395 1417 __drv_when(WaitForD0 == 0, __drv_maxIRQL(DISPATCH_LEVEL)) 1396 1418 __drv_when(WaitForD0 != 0, __drv_maxIRQL(PASSIVE_LEVEL)) 1397 1419 NTSTATUS 1420 + STDCALL 1398 1421 WDFEXPORT(WdfDeviceStopIdleActual)( 1399 1422 __in 1400 1423 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1426 1449 1427 1450 __drv_maxIRQL(DISPATCH_LEVEL) 1428 1451 VOID 1452 + STDCALL 1429 1453 WDFEXPORT(WdfDeviceResumeIdleNoTrack)( 1430 1454 __in 1431 1455 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1444 1468 1445 1469 __drv_maxIRQL(DISPATCH_LEVEL) 1446 1470 VOID 1471 + STDCALL 1447 1472 WDFEXPORT(WdfDeviceResumeIdleActual)( 1448 1473 __in 1449 1474 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1468 1493 1469 1494 __drv_maxIRQL(DISPATCH_LEVEL) 1470 1495 VOID 1496 + STDCALL 1471 1497 WDFEXPORT(WdfDeviceSetPnpCapabilities)( 1472 1498 __in 1473 1499 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1565 1591 1566 1592 __drv_maxIRQL(DISPATCH_LEVEL) 1567 1593 VOID 1594 + STDCALL 1568 1595 WDFEXPORT(WdfDeviceSetPowerCapabilities)( 1569 1596 __in 1570 1597 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1734 1761 _Must_inspect_result_ 1735 1762 __drv_maxIRQL(DISPATCH_LEVEL) 1736 1763 NTSTATUS 1764 + STDCALL 1737 1765 WDFEXPORT(WdfDeviceConfigureRequestDispatching)( 1738 1766 __in 1739 1767 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1865 1893 1866 1894 __drv_maxIRQL(DISPATCH_LEVEL) 1867 1895 WDFQUEUE 1896 + STDCALL 1868 1897 WDFEXPORT(WdfDeviceGetDefaultQueue)( 1869 1898 __in 1870 1899 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1927 1956 _Must_inspect_result_ 1928 1957 __drv_maxIRQL(DISPATCH_LEVEL) 1929 1958 NTSTATUS 1959 + STDCALL 1930 1960 WDFEXPORT(WdfDeviceEnqueueRequest)( 1931 1961 __in 1932 1962 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2002 2032 2003 2033 __drv_maxIRQL(DISPATCH_LEVEL) 2004 2034 POWER_ACTION 2035 + STDCALL 2005 2036 WDFEXPORT(WdfDeviceGetSystemPowerAction)( 2006 2037 __in 2007 2038 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2055 2086 _IRQL_requires_max_(APC_LEVEL) 2056 2087 WDFAPI 2057 2088 NTSTATUS 2089 + STDCALL 2058 2090 WDFEXPORT(WdfDeviceQueryPropertyEx)( 2059 2091 _In_ 2060 2092 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2186 2218 _IRQL_requires_max_(APC_LEVEL) 2187 2219 WDFAPI 2188 2220 NTSTATUS 2221 + STDCALL 2189 2222 WDFEXPORT(WdfDeviceAllocAndQueryPropertyEx)( 2190 2223 _In_ 2191 2224 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2303 2336 _IRQL_requires_max_(APC_LEVEL) 2304 2337 WDFAPI 2305 2338 NTSTATUS 2339 + STDCALL 2306 2340 WDFEXPORT(WdfDeviceAssignProperty)( 2307 2341 _In_ 2308 2342 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2408 2442 __drv_maxIRQL(DISPATCH_LEVEL) 2409 2443 WDFAPI 2410 2444 NTSTATUS 2445 + STDCALL 2411 2446 WDFEXPORT(WdfDeviceConfigureWdmIrpDispatchCallback)( 2412 2447 _In_ 2413 2448 PWDF_DRIVER_GLOBALS DriverGlobals,
+2 -2
sdk/lib/drivers/wdf/shared/core/fxdevicebase.cpp
··· 25 25 #include "coreprivshared.hpp" 26 26 27 27 extern "C" { 28 - #include "FxDeviceBase.tmh" 28 + // #include "FxDeviceBase.tmh" 29 29 } 30 30 31 31 FxDeviceBase::FxDeviceBase( ··· 83 83 break; 84 84 85 85 default: 86 - return __super::QueryInterface(Params); 86 + return FxNonPagedObject::QueryInterface(Params); // __super call 87 87 } 88 88 89 89 return STATUS_SUCCESS;
+3 -2
sdk/lib/drivers/wdf/shared/core/fxdevicecontrolapi.cpp
··· 25 25 #include "coreprivshared.hpp" 26 26 27 27 extern "C" { 28 - #include "FxDeviceControlAPI.tmh" 28 + // #include "FxDeviceControlAPI.tmh" 29 29 } 30 30 31 31 extern "C" { 32 32 33 33 __drv_maxIRQL(DISPATCH_LEVEL) 34 34 VOID 35 + STDCALL 35 36 WDFEXPORT(WdfControlFinishInitializing)( 36 37 __in 37 38 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 51 52 MxDeviceObject device(pDevice->GetDeviceObject()); 52 53 53 54 if (pDevice->IsLegacy()) { 54 - pDevice->m_PkgWmi->Register(); 55 + // pDevice->m_PkgWmi->Register(); __REACTOS__ 55 56 device.SetFlags(device.GetFlags() & ~DO_DEVICE_INITIALIZING); 56 57 } 57 58 else {
+1 -1
sdk/lib/drivers/wdf/shared/core/fxdeviceinit.cpp
··· 24 24 #include "coreprivshared.hpp" 25 25 26 26 extern "C" { 27 - #include "FxDeviceInit.tmh" 27 + // #include "FxDeviceInit.tmh" 28 28 } 29 29 30 30 WDFDEVICE_INIT::WDFDEVICE_INIT(
+48 -1
sdk/lib/drivers/wdf/shared/core/fxdeviceinitapi.cpp
··· 25 25 #include "coreprivshared.hpp" 26 26 27 27 extern "C" { 28 - #include "FxDeviceInitApi.tmh" 28 + // #include "FxDeviceInitApi.tmh" 29 29 } 30 30 31 31 typedef struct _WDF_PNPPOWER_EVENT_CALLBACKS_V1_9 { ··· 137 137 138 138 __drv_maxIRQL(DISPATCH_LEVEL) 139 139 VOID 140 + STDCALL 140 141 WDFEXPORT(WdfDeviceInitFree)( 141 142 __in 142 143 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 155 156 156 157 __drv_maxIRQL(DISPATCH_LEVEL) 157 158 VOID 159 + STDCALL 158 160 WDFEXPORT(WdfDeviceInitSetIoType)( 159 161 __in 160 162 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 179 181 _IRQL_requires_max_(PASSIVE_LEVEL) 180 182 WDFAPI 181 183 VOID 184 + STDCALL 182 185 WDFEXPORT(WdfDeviceInitSetIoTypeEx)( 183 186 _In_ 184 187 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 211 214 212 215 __drv_maxIRQL(DISPATCH_LEVEL) 213 216 VOID 217 + STDCALL 214 218 WDFEXPORT(WdfDeviceInitSetExclusive)( 215 219 __in 216 220 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 229 233 230 234 __drv_maxIRQL(DISPATCH_LEVEL) 231 235 VOID 236 + STDCALL 232 237 WDFEXPORT(WdfDeviceInitSetDeviceType)( 233 238 __in 234 239 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 247 252 248 253 __drv_maxIRQL(DISPATCH_LEVEL) 249 254 VOID 255 + STDCALL 250 256 WDFEXPORT(WdfDeviceInitSetPowerNotPageable)( 251 257 __in 252 258 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 263 269 264 270 __drv_maxIRQL(DISPATCH_LEVEL) 265 271 VOID 272 + STDCALL 266 273 WDFEXPORT(WdfDeviceInitSetPowerPageable)( 267 274 __in 268 275 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 279 286 280 287 __drv_maxIRQL(DISPATCH_LEVEL) 281 288 VOID 289 + STDCALL 282 290 WDFEXPORT(WdfDeviceInitSetPowerInrush)( 283 291 __in 284 292 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 300 308 _Must_inspect_result_ 301 309 __drv_maxIRQL(PASSIVE_LEVEL) 302 310 NTSTATUS 311 + STDCALL 303 312 WDFEXPORT(WdfDeviceInitAssignName)( 304 313 __in 305 314 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 351 360 352 361 __drv_maxIRQL(DISPATCH_LEVEL) 353 362 VOID 363 + STDCALL 354 364 WDFEXPORT(WdfDeviceInitSetCharacteristics)( 355 365 __in 356 366 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 385 395 386 396 __drv_maxIRQL(DISPATCH_LEVEL) 387 397 VOID 398 + STDCALL 388 399 WDFEXPORT(WdfDeviceInitSetFileObjectConfig)( 389 400 __in 390 401 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 555 566 556 567 __drv_maxIRQL(DISPATCH_LEVEL) 557 568 VOID 569 + STDCALL 558 570 WDFEXPORT(WdfDeviceInitSetRequestAttributes)( 559 571 __in 560 572 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 595 607 _Must_inspect_result_ 596 608 __drv_maxIRQL(PASSIVE_LEVEL) 597 609 NTSTATUS 610 + STDCALL 598 611 WDFEXPORT(WdfDeviceInitAssignSDDLString)( 599 612 __in 600 613 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 659 672 660 673 __drv_maxIRQL(DISPATCH_LEVEL) 661 674 VOID 675 + STDCALL 662 676 WDFEXPORT(WdfDeviceInitSetDeviceClass)( 663 677 __in 664 678 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 685 699 686 700 __drv_maxIRQL(DISPATCH_LEVEL) 687 701 VOID 702 + STDCALL 688 703 WDFEXPORT(WdfDeviceInitSetPnpPowerEventCallbacks)( 689 704 __in 690 705 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 748 763 749 764 __drv_maxIRQL(DISPATCH_LEVEL) 750 765 VOID 766 + STDCALL 751 767 WDFEXPORT(WdfDeviceInitSetPowerPolicyEventCallbacks)( 752 768 __in 753 769 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 809 825 810 826 __drv_maxIRQL(DISPATCH_LEVEL) 811 827 VOID 828 + STDCALL 812 829 WDFEXPORT(WdfDeviceInitSetPowerPolicyOwnership)( 813 830 __in 814 831 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 828 845 _Must_inspect_result_ 829 846 __drv_maxIRQL(PASSIVE_LEVEL) 830 847 NTSTATUS 848 + STDCALL 831 849 WDFEXPORT(WdfDeviceInitRegisterPnpStateChangeCallback)( 832 850 __in 833 851 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 907 925 _Must_inspect_result_ 908 926 __drv_maxIRQL(PASSIVE_LEVEL) 909 927 NTSTATUS 928 + STDCALL 910 929 WDFEXPORT(WdfDeviceInitRegisterPowerStateChangeCallback)( 911 930 __in 912 931 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 987 1006 _Must_inspect_result_ 988 1007 __drv_maxIRQL(PASSIVE_LEVEL) 989 1008 NTSTATUS 1009 + STDCALL 990 1010 WDFEXPORT(WdfDeviceInitRegisterPowerPolicyStateChangeCallback)( 991 1011 __in 992 1012 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1068 1088 __drv_maxIRQL(DISPATCH_LEVEL) 1069 1089 WDFAPI 1070 1090 NTSTATUS 1091 + STDCALL 1071 1092 WDFEXPORT(WdfDeviceInitAssignWdmIrpPreprocessCallback)( 1072 1093 __in 1073 1094 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1168 1189 1169 1190 __drv_maxIRQL(DISPATCH_LEVEL) 1170 1191 VOID 1192 + STDCALL 1171 1193 WDFEXPORT(WdfDeviceInitSetIoInCallerContextCallback)( 1172 1194 __in 1173 1195 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1222 1244 1223 1245 __drv_maxIRQL(DISPATCH_LEVEL) 1224 1246 VOID 1247 + STDCALL 1225 1248 WDFEXPORT(WdfDeviceInitSetRemoveLockOptions)( 1226 1249 __in 1227 1250 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1287 1310 1288 1311 __drv_maxIRQL(DISPATCH_LEVEL) 1289 1312 VOID 1313 + STDCALL 1290 1314 WDFEXPORT(WdfDeviceInitSetReleaseHardwareOrderOnFailure)( 1291 1315 __in 1292 1316 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1317 1341 1318 1342 _IRQL_requires_max_(DISPATCH_LEVEL) 1319 1343 VOID 1344 + STDCALL 1320 1345 WDFEXPORT(WdfDeviceInitAllowSelfIoTarget)( 1321 1346 _In_ 1322 1347 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1358 1383 1359 1384 __drv_maxIRQL(DISPATCH_LEVEL) 1360 1385 PDEVICE_OBJECT 1386 + STDCALL 1361 1387 WDFEXPORT(WdfFdoInitWdmGetPhysicalDevice)( 1362 1388 __in 1363 1389 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1384 1410 _Must_inspect_result_ 1385 1411 __drv_maxIRQL(PASSIVE_LEVEL) 1386 1412 NTSTATUS 1413 + STDCALL 1387 1414 WDFEXPORT(WdfFdoInitOpenRegistryKey)( 1388 1415 __in 1389 1416 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1435 1462 1436 1463 __drv_maxIRQL(PASSIVE_LEVEL) 1437 1464 VOID 1465 + STDCALL 1438 1466 WDFEXPORT(WdfFdoInitSetFilter)( 1439 1467 __in 1440 1468 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1468 1496 _Must_inspect_result_ 1469 1497 __drv_maxIRQL(PASSIVE_LEVEL) 1470 1498 NTSTATUS 1499 + STDCALL 1471 1500 WDFEXPORT(WdfFdoInitQueryProperty)( 1472 1501 __in 1473 1502 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1544 1573 _Must_inspect_result_ 1545 1574 __drv_maxIRQL(PASSIVE_LEVEL) 1546 1575 NTSTATUS 1576 + STDCALL 1547 1577 WDFEXPORT(WdfFdoInitAllocAndQueryProperty)( 1548 1578 __in 1549 1579 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1627 1657 1628 1658 __drv_maxIRQL(PASSIVE_LEVEL) 1629 1659 VOID 1660 + STDCALL 1630 1661 WDFEXPORT(WdfFdoInitSetEventCallbacks)( 1631 1662 __in 1632 1663 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1688 1719 1689 1720 __drv_maxIRQL(PASSIVE_LEVEL) 1690 1721 VOID 1722 + STDCALL 1691 1723 WDFEXPORT(WdfFdoInitSetDefaultChildListConfig)( 1692 1724 __in 1693 1725 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1754 1786 _IRQL_requires_max_(PASSIVE_LEVEL) 1755 1787 WDFAPI 1756 1788 NTSTATUS 1789 + STDCALL 1757 1790 WDFEXPORT(WdfFdoInitQueryPropertyEx)( 1758 1791 _In_ 1759 1792 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1871 1904 _IRQL_requires_max_(PASSIVE_LEVEL) 1872 1905 WDFAPI 1873 1906 NTSTATUS 1907 + STDCALL 1874 1908 WDFEXPORT(WdfFdoInitAllocAndQueryPropertyEx)( 1875 1909 _In_ 1876 1910 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1995 2029 _Must_inspect_result_ 1996 2030 __drv_maxIRQL(PASSIVE_LEVEL) 1997 2031 PWDFDEVICE_INIT 2032 + STDCALL 1998 2033 WDFEXPORT(WdfPdoInitAllocate)( 1999 2034 __in 2000 2035 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2050 2085 2051 2086 __drv_maxIRQL(PASSIVE_LEVEL) 2052 2087 VOID 2088 + STDCALL 2053 2089 WDFEXPORT(WdfPdoInitSetEventCallbacks)( 2054 2090 __in 2055 2091 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2096 2132 _Must_inspect_result_ 2097 2133 __drv_maxIRQL(PASSIVE_LEVEL) 2098 2134 NTSTATUS 2135 + STDCALL 2099 2136 WDFEXPORT(WdfPdoInitAssignDeviceID)( 2100 2137 __in 2101 2138 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2154 2191 _Must_inspect_result_ 2155 2192 __drv_maxIRQL(PASSIVE_LEVEL) 2156 2193 NTSTATUS 2194 + STDCALL 2157 2195 WDFEXPORT(WdfPdoInitAssignInstanceID)( 2158 2196 __in 2159 2197 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2212 2250 _Must_inspect_result_ 2213 2251 __drv_maxIRQL(PASSIVE_LEVEL) 2214 2252 NTSTATUS 2253 + STDCALL 2215 2254 WDFEXPORT(WdfPdoInitAddHardwareID)( 2216 2255 __in 2217 2256 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2277 2316 _Must_inspect_result_ 2278 2317 __drv_maxIRQL(PASSIVE_LEVEL) 2279 2318 NTSTATUS 2319 + STDCALL 2280 2320 WDFEXPORT(WdfPdoInitAddCompatibleID)( 2281 2321 __in 2282 2322 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2342 2382 _Must_inspect_result_ 2343 2383 __drv_maxIRQL(PASSIVE_LEVEL) 2344 2384 NTSTATUS 2385 + STDCALL 2345 2386 WDFEXPORT(WdfPdoInitAssignContainerID)( 2346 2387 __in 2347 2388 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2402 2443 _Must_inspect_result_ 2403 2444 __drv_maxIRQL(PASSIVE_LEVEL) 2404 2445 NTSTATUS 2446 + STDCALL 2405 2447 WDFEXPORT(WdfPdoInitAddDeviceText)( 2406 2448 __in 2407 2449 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2505 2547 2506 2548 __drv_maxIRQL(PASSIVE_LEVEL) 2507 2549 VOID 2550 + STDCALL 2508 2551 WDFEXPORT(WdfPdoInitSetDefaultLocale)( 2509 2552 __in 2510 2553 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2540 2583 _Must_inspect_result_ 2541 2584 __drv_maxIRQL(PASSIVE_LEVEL) 2542 2585 NTSTATUS 2586 + STDCALL 2543 2587 WDFEXPORT(WdfPdoInitAssignRawDevice)( 2544 2588 __in 2545 2589 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2583 2627 2584 2628 __drv_maxIRQL(PASSIVE_LEVEL) 2585 2629 VOID 2630 + STDCALL 2586 2631 WDFEXPORT(WdfPdoInitAllowForwardingRequestToParent)( 2587 2632 __in 2588 2633 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2628 2673 _Must_inspect_result_ 2629 2674 __drv_maxIRQL(PASSIVE_LEVEL) 2630 2675 PWDFDEVICE_INIT 2676 + STDCALL 2631 2677 WDFEXPORT(WdfControlDeviceInitAllocate)( 2632 2678 __in 2633 2679 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2666 2712 2667 2713 __drv_maxIRQL(PASSIVE_LEVEL) 2668 2714 VOID 2715 + STDCALL 2669 2716 WDFEXPORT(WdfControlDeviceInitSetShutdownNotification)( 2670 2717 __in 2671 2718 PWDF_DRIVER_GLOBALS DriverGlobals,
+3 -3
sdk/lib/drivers/wdf/shared/core/fxdisposelist.cpp
··· 31 31 32 32 #include "coreprivshared.hpp" 33 33 34 - #include "FxDisposeList.hpp" 34 + #include "fxdisposelist.hpp" 35 35 36 36 // Tracing support 37 37 extern "C" { 38 - #include "FxDisposeList.tmh" 38 + // #include "FxDisposeList.tmh" 39 39 } 40 40 41 41 FxDisposeList::FxDisposeList( ··· 121 121 122 122 ASSERT(m_List.Next == NULL); 123 123 124 - __super::Dispose(); 124 + FxNonPagedObject::Dispose(); // __super call 125 125 126 126 return TRUE; 127 127 }
+2 -2
sdk/lib/drivers/wdf/shared/core/fxdriver.cpp
··· 27 27 28 28 // Tracing support 29 29 extern "C" { 30 - #include "FxDriver.tmh" 30 + // #include "FxDriver.tmh" 31 31 } 32 32 33 33 FxDriver::FxDriver( ··· 133 133 m_DisposeList->WaitForEmpty(); 134 134 } 135 135 136 - return __super::Dispose(); 136 + return FxNonPagedObject::Dispose(); // __super call 137 137 } 138 138 139 139 VOID
+15 -2
sdk/lib/drivers/wdf/shared/core/fxdriverapi.cpp
··· 27 27 // Tracing support 28 28 extern "C" { 29 29 #include <ntverp.h> 30 - #include "FxDriverApi.tmh" 30 + // #include "FxDriverApi.tmh" 31 31 } 32 32 33 - #include "FxTelemetry.hpp" 33 + #include "fxtelemetry.hpp" 34 34 35 35 // 36 36 // extern the whole file ··· 44 44 45 45 __drv_maxIRQL(PASSIVE_LEVEL) 46 46 PWSTR 47 + STDCALL 47 48 WDFEXPORT(WdfDriverGetRegistryPath)( 48 49 __in 49 50 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 71 72 return pDriver->GetRegistryPathUnicodeString()->Buffer; 72 73 } 73 74 75 + VOID 76 + RosInitWdf(); 77 + 74 78 _Must_inspect_result_ 75 79 __drv_maxIRQL(PASSIVE_LEVEL) 76 80 NTSTATUS 81 + STDCALL 77 82 WDFEXPORT(WdfDriverCreate)( 78 83 __in 79 84 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 98 103 const LONG validFlags = WdfDriverInitNonPnpDriver | 99 104 WdfDriverInitNoDispatchOverride; 100 105 106 + RosInitWdf(); 107 + DriverGlobals = WdfDriverGlobals; 108 + 101 109 hDriver = NULL; 102 110 pFxDriverGlobals = GetFxDriverGlobals(DriverGlobals); 103 111 ··· 302 310 *Driver = hDriver; 303 311 } 304 312 313 + #ifndef __REACTOS__ 305 314 if (FX_TELEMETRY_ENABLED(g_TelemetryProvider, pFxDriverGlobals)) { 306 315 FxAutoString imageName; 307 316 ··· 329 338 imageName.m_UnicodeString.Buffer, 330 339 pVersionStr); 331 340 } 341 + #endif // __REACTOS__ 332 342 } 333 343 else { 334 344 if (pDriver != NULL) { ··· 344 354 _Must_inspect_result_ 345 355 __drv_maxIRQL(PASSIVE_LEVEL) 346 356 NTSTATUS 357 + STDCALL 347 358 WDFEXPORT(WdfDriverRegisterTraceInfo)( 348 359 __in 349 360 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 368 379 _Must_inspect_result_ 369 380 __drv_maxIRQL(PASSIVE_LEVEL) 370 381 NTSTATUS 382 + STDCALL 371 383 WDFEXPORT(WdfDriverRetrieveVersionString)( 372 384 __in 373 385 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 442 454 _Must_inspect_result_ 443 455 __drv_maxIRQL(PASSIVE_LEVEL) 444 456 BOOLEAN 457 + STDCALL 445 458 WDFEXPORT(WdfDriverIsVersionAvailable)( 446 459 __in 447 460 PWDF_DRIVER_GLOBALS DriverGlobals,
+2 -2
sdk/lib/drivers/wdf/shared/core/fxfileobject.cpp
··· 27 27 28 28 // Tracing support 29 29 extern "C" { 30 - #include "FxFileObject.tmh" 30 + // #include "FxFileObject.tmh" 31 31 } 32 32 33 33 // ··· 501 501 break; 502 502 503 503 default: 504 - return __super::QueryInterface(Params); 504 + return FxNonPagedObject::QueryInterface(Params); // __super call 505 505 } 506 506 507 507 return STATUS_SUCCESS;
+5 -2
sdk/lib/drivers/wdf/shared/core/fxfileobjectapi.cpp
··· 24 24 --*/ 25 25 26 26 #include "coreprivshared.hpp" 27 - #include "FxFileObject.hpp" 27 + #include "fxfileobject.hpp" 28 28 29 29 extern "C" { 30 - #include "FxFileObjectApi.tmh" 30 + // #include "FxFileObjectApi.tmh" 31 31 } 32 32 33 33 // ··· 37 37 38 38 __drv_maxIRQL(PASSIVE_LEVEL) 39 39 PUNICODE_STRING 40 + STDCALL 40 41 WDFEXPORT(WdfFileObjectGetFileName)( 41 42 __in 42 43 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 93 94 94 95 __drv_maxIRQL(DISPATCH_LEVEL) 95 96 ULONG 97 + STDCALL 96 98 WDFEXPORT(WdfFileObjectGetFlags)( 97 99 __in 98 100 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 139 141 140 142 __drv_maxIRQL(DISPATCH_LEVEL) 141 143 WDFDEVICE 144 + STDCALL 142 145 WDFEXPORT(WdfFileObjectGetDevice)( 143 146 __in 144 147 PWDF_DRIVER_GLOBALS DriverGlobals,
+1 -1
sdk/lib/drivers/wdf/shared/core/fxirpqueue.cpp
··· 32 32 33 33 // Tracing support 34 34 extern "C" { 35 - #include "FxIrpQueue.tmh" 35 + // #include "FxIrpQueue.tmh" 36 36 } 37 37 38 38 //
+1 -1
sdk/lib/drivers/wdf/shared/core/fxlookasidelist.cpp
··· 22 22 --*/ 23 23 24 24 #include "coreprivshared.hpp" 25 - #include "FxLookasideList.hpp" 25 + #include "fxlookasidelist.hpp" 26 26 27 27 FxLookasideList::FxLookasideList( 28 28 __in PFX_DRIVER_GLOBALS FxDriverGlobals,
+5 -3
sdk/lib/drivers/wdf/shared/core/fxlookasidelistapi.cpp
··· 22 22 --*/ 23 23 24 24 #include "coreprivshared.hpp" 25 - #include "FxNPagedLookasideList.hpp" 26 - #include "FxPagedLookasideList.hpp" 25 + #include "fxnpagedlookasidelist.hpp" 26 + #include "fxpagedlookasidelist.hpp" 27 27 28 28 extern "C" { 29 - #include "FxLookasideListAPI.tmh" 29 + // #include "FxLookasideListAPI.tmh" 30 30 } 31 31 32 32 extern "C" { ··· 36 36 __drv_when(PoolType == 0 || PoolType == 256, __drv_maxIRQL(DISPATCH_LEVEL)) 37 37 NTSTATUS 38 38 WDFAPI 39 + STDCALL 39 40 WDFEXPORT(WdfLookasideListCreate)( 40 41 __in 41 42 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 235 236 __drv_maxIRQL(DISPATCH_LEVEL) 236 237 NTSTATUS 237 238 WDFAPI 239 + STDCALL 238 240 WDFEXPORT(WdfMemoryCreateFromLookaside)( 239 241 __in 240 242 PWDF_DRIVER_GLOBALS DriverGlobals,
+2 -2
sdk/lib/drivers/wdf/shared/core/fxmemorybuffer.cpp
··· 21 21 --*/ 22 22 23 23 #include "coreprivshared.hpp" 24 - #include "FxMemoryBuffer.hpp" 24 + #include "fxmemorybuffer.hpp" 25 25 26 26 extern "C" { 27 - #include "FxMemoryBuffer.tmh" 27 + // #include "FxMemoryBuffer.tmh" 28 28 } 29 29 30 30 _Must_inspect_result_
+6 -2
sdk/lib/drivers/wdf/shared/core/fxmemorybufferapi.cpp
··· 22 22 --*/ 23 23 24 24 #include "coreprivshared.hpp" 25 - #include "FxMemoryBuffer.hpp" 25 + #include "fxmemorybuffer.hpp" 26 26 27 27 extern "C" { 28 - #include "FxMemoryBufferAPI.tmh" 28 + // #include "FxMemoryBufferAPI.tmh" 29 29 } 30 30 31 31 extern "C" { ··· 35 35 __drv_when(PoolType == 0 || PoolType == 256, __drv_maxIRQL(DISPATCH_LEVEL)) 36 36 WDFAPI 37 37 NTSTATUS 38 + STDCALL 38 39 WDFEXPORT(WdfMemoryCreate)( 39 40 __in 40 41 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 164 165 __drv_maxIRQL(DISPATCH_LEVEL) 165 166 PVOID 166 167 WDFAPI 168 + STDCALL 167 169 WDFEXPORT(WdfMemoryGetBuffer)( 168 170 __in 169 171 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 207 209 __drv_maxIRQL(DISPATCH_LEVEL) 208 210 NTSTATUS 209 211 WDFAPI 212 + STDCALL 210 213 WDFEXPORT(WdfMemoryCopyToBuffer)( 211 214 __in 212 215 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 285 288 __drv_maxIRQL(DISPATCH_LEVEL) 286 289 NTSTATUS 287 290 WDFAPI 291 + STDCALL 288 292 WDFEXPORT(WdfMemoryCopyFromBuffer)( 289 293 __in 290 294 PWDF_DRIVER_GLOBALS DriverGlobals,
+4 -4
sdk/lib/drivers/wdf/shared/core/fxmemorybufferfromlookaside.cpp
··· 22 22 --*/ 23 23 24 24 #include "coreprivshared.hpp" 25 - #include "FxNPagedLookasideList.hpp" 26 - #include "FxMemoryBufferFromLookaside.hpp" 25 + #include "fxnpagedlookasidelist.hpp" 26 + #include "fxmemorybufferfromlookaside.hpp" 27 27 28 28 FxMemoryBufferFromLookaside::FxMemoryBufferFromLookaside( 29 29 __in PFX_DRIVER_GLOBALS FxDriverGlobals, ··· 215 215 // within the destructor b/c then all parent objects would be destructing on 216 216 // freed pool. 217 217 // 218 - FxMemoryBufferFromLookaside::~FxMemoryBufferFromLookaside(); 218 + this->~FxMemoryBufferFromLookaside(); 219 219 220 220 // 221 221 // After FxLookaside::Reclaim, this no longer points to valid memory so we ··· 268 268 // 269 269 // Free the object itself 270 270 // 271 - __super::SelfDestruct(); 271 + FxMemoryBufferFromLookaside::SelfDestruct(); // __super call 272 272 } 273 273 274 274 _Must_inspect_result_
+2 -2
sdk/lib/drivers/wdf/shared/core/fxmemorybufferpreallocated.cpp
··· 21 21 --*/ 22 22 23 23 #include "coreprivshared.hpp" 24 - #include "FxMemoryBufferPreallocated.hpp" 24 + #include "fxmemorybufferpreallocated.hpp" 25 25 26 26 FxMemoryBufferPreallocated::FxMemoryBufferPreallocated( 27 27 _In_ PFX_DRIVER_GLOBALS FxDriverGlobals, ··· 125 125 return STATUS_SUCCESS; 126 126 } 127 127 else { 128 - return __super::QueryInterface(Params); 128 + return FxMemoryObject::QueryInterface(Params); // __super call 129 129 } 130 130 } 131 131
+4 -2
sdk/lib/drivers/wdf/shared/core/fxmemorybufferpreallocatedapi.cpp
··· 22 22 --*/ 23 23 24 24 #include "coreprivshared.hpp" 25 - #include "FxMemoryBufferPreallocated.hpp" 25 + #include "fxmemorybufferpreallocated.hpp" 26 26 27 27 extern "C" { 28 - #include "FxMemoryBufferPreallocatedAPI.tmh" 28 + // #include "FxMemoryBufferPreallocatedAPI.tmh" 29 29 } 30 30 31 31 extern "C" { ··· 34 34 __drv_maxIRQL(DISPATCH_LEVEL) 35 35 WDFAPI 36 36 NTSTATUS 37 + STDCALL 37 38 WDFEXPORT(WdfMemoryCreatePreallocated)( 38 39 __in 39 40 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 136 137 __drv_maxIRQL(DISPATCH_LEVEL) 137 138 WDFAPI 138 139 NTSTATUS 140 + STDCALL 139 141 WDFEXPORT(WdfMemoryAssignBuffer)( 140 142 _In_ 141 143 PWDF_DRIVER_GLOBALS DriverGlobals,
+1 -1
sdk/lib/drivers/wdf/shared/core/fxmemoryobject.cpp
··· 23 23 #include "coreprivshared.hpp" 24 24 25 25 extern "C" { 26 - #include "FxMemoryObject.tmh" 26 + // #include "FxMemoryObject.tmh" 27 27 } 28 28 29 29 FxMemoryObject::FxMemoryObject(
+2 -2
sdk/lib/drivers/wdf/shared/core/fxpagedlookasidelist.cpp
··· 23 23 24 24 #include "coreprivshared.hpp" 25 25 26 - #include "FxPagedLookasideList.hpp" 27 - #include "FxMemoryBufferFromLookaside.hpp" 26 + #include "fxpagedlookasidelist.hpp" 27 + #include "fxmemorybufferfromlookaside.hpp" 28 28 29 29 FxPagedLookasideListFromPool::FxPagedLookasideListFromPool( 30 30 __in PFX_DRIVER_GLOBALS FxDriverGlobals,
+5 -15
sdk/lib/drivers/wdf/shared/core/fxrequest.cpp
··· 27 27 28 28 // Tracing support 29 29 extern "C" { 30 - #include "FxRequest.tmh" 30 + // #include "FxRequest.tmh" 31 31 } 32 - 33 - 34 - 35 - 36 - 37 - 38 - #define WDF_REQUEST_REUSE_MUST_COMPLETE 2 39 32 40 33 FxRequest::FxRequest( 41 34 __in PFX_DRIVER_GLOBALS FxDriverGlobals, ··· 1298 1291 NTSTATUS status; 1299 1292 ULONG length; 1300 1293 KIRQL irql; 1301 - BOOLEAN mapMdl, mdlMapped; 1294 + BOOLEAN mapMdl; 1302 1295 UCHAR majorFunction; 1303 1296 1304 1297 status = STATUS_SUCCESS; 1305 1298 length = 0x0; 1306 1299 mapMdl = FALSE; 1307 - mdlMapped = FALSE; 1308 1300 irql = PASSIVE_LEVEL; 1309 1301 majorFunction = m_Irp.GetMajorFunction(); 1310 1302 ··· 2146 2138 ) 2147 2139 { 2148 2140 FxIrp currentIrp; 2149 - FxRequestContext* pContext; 2150 2141 PFX_DRIVER_GLOBALS pFxDriverGlobals = GetDriverGlobals(); 2151 2142 2152 2143 // ··· 2177 2168 SetCompletionRoutine(NULL, NULL); 2178 2169 } 2179 2170 2180 - pContext = NULL; 2181 2171 currentIrp.SetIrp(m_Irp.GetIrp()); 2182 2172 2183 2173 if (currentIrp.GetIrp() != NULL) { ··· 2743 2733 // || || Fall || || 2744 2734 // \/ \/ through \/ \/ 2745 2735 default: 2746 - return __super::QueryInterface(Params); 2736 + return FxRequestBase::QueryInterface(Params); // __super call 2747 2737 } 2748 2738 2749 2739 return STATUS_SUCCESS; ··· 3114 3104 allocFromIo = IsAllocatedFromIo(); 3115 3105 canComplete = IsCanComplete(); 3116 3106 3117 - retValue = __super::Release(Tag, Line, File); 3107 + retValue = FxRequestBase::Release(Tag, Line, File); // __super call 3118 3108 3119 3109 if (reservedRequest && retValue == 1 && m_Completed) { 3120 3110 // ··· 3195 3185 // 3196 3186 // Destroy the object 3197 3187 // 3198 - FxRequestFromLookaside::~FxRequestFromLookaside(); 3188 + // FxRequestFromLookaside::~FxRequestFromLookaside(); __REACTOS__ 3199 3189 3200 3190 if (IsRequestForwardedToParent()) { 3201 3191
+43 -1
sdk/lib/drivers/wdf/shared/core/fxrequestapi.cpp
··· 28 28 29 29 // Tracing support 30 30 extern "C" { 31 - #include "FxRequestApi.tmh" 31 + // #include "FxRequestApi.tmh" 32 32 33 33 // 34 34 // Verifiers ··· 64 64 _Must_inspect_result_ 65 65 __drv_maxIRQL(DISPATCH_LEVEL) 66 66 NTSTATUS 67 + STDCALL 67 68 WDFEXPORT(WdfRequestCreate)( 68 69 __in 69 70 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 156 157 _Must_inspect_result_ 157 158 __drv_maxIRQL(DISPATCH_LEVEL) 158 159 NTSTATUS 160 + STDCALL 159 161 WDFEXPORT(WdfRequestCreateFromIrp)( 160 162 __in 161 163 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 255 257 256 258 __drv_maxIRQL(DISPATCH_LEVEL) 257 259 NTSTATUS 260 + STDCALL 258 261 WDFEXPORT(WdfRequestReuse)( 259 262 __in 260 263 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 326 329 _Must_inspect_result_ 327 330 __drv_maxIRQL(DISPATCH_LEVEL) 328 331 NTSTATUS 332 + STDCALL 329 333 WDFEXPORT(WdfRequestChangeTarget)( 330 334 __in 331 335 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 379 383 __drv_maxIRQL(DISPATCH_LEVEL) 380 384 VOID 381 385 WDFAPI 386 + STDCALL 382 387 WDFEXPORT(WdfRequestComplete)( 383 388 __in 384 389 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 439 444 __drv_maxIRQL(DISPATCH_LEVEL) 440 445 VOID 441 446 WDFAPI 447 + STDCALL 442 448 WDFEXPORT(WdfRequestCompleteWithPriorityBoost)( 443 449 __in 444 450 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 507 513 __drv_maxIRQL(DISPATCH_LEVEL) 508 514 VOID 509 515 WDFAPI 516 + STDCALL 510 517 WDFEXPORT(WdfRequestCompleteWithInformation)( 511 518 __in 512 519 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 574 581 __drv_maxIRQL(DISPATCH_LEVEL) 575 582 VOID 576 583 WDFAPI 584 + STDCALL 577 585 WDFEXPORT(WdfRequestSetInformation)( 578 586 __in 579 587 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 630 638 __drv_maxIRQL(DISPATCH_LEVEL) 631 639 ULONG_PTR 632 640 WDFAPI 641 + STDCALL 633 642 WDFEXPORT(WdfRequestGetInformation)( 634 643 __in 635 644 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 673 682 __drv_maxIRQL(DISPATCH_LEVEL) 674 683 NTSTATUS 675 684 WDFAPI 685 + STDCALL 676 686 WDFEXPORT(WdfRequestRetrieveInputMemory)( 677 687 __in 678 688 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 784 794 __drv_maxIRQL(DISPATCH_LEVEL) 785 795 NTSTATUS 786 796 WDFAPI 797 + STDCALL 787 798 WDFEXPORT(WdfRequestRetrieveOutputMemory)( 788 799 __in 789 800 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 906 917 __drv_maxIRQL(DISPATCH_LEVEL) 907 918 NTSTATUS 908 919 WDFAPI 920 + STDCALL 909 921 WDFEXPORT(WdfRequestRetrieveInputBuffer)( 910 922 __in 911 923 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1049 1061 __drv_maxIRQL(DISPATCH_LEVEL) 1050 1062 NTSTATUS 1051 1063 WDFAPI 1064 + STDCALL 1052 1065 WDFEXPORT(WdfRequestRetrieveOutputBuffer)( 1053 1066 __in 1054 1067 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1202 1215 __drv_maxIRQL(PASSIVE_LEVEL) 1203 1216 NTSTATUS 1204 1217 WDFAPI 1218 + STDCALL 1205 1219 WDFEXPORT(WdfRequestRetrieveUnsafeUserInputBuffer)( 1206 1220 __in 1207 1221 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1405 1419 __drv_maxIRQL(PASSIVE_LEVEL) 1406 1420 NTSTATUS 1407 1421 WDFAPI 1422 + STDCALL 1408 1423 WDFEXPORT(WdfRequestRetrieveUnsafeUserOutputBuffer)( 1409 1424 __in 1410 1425 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1606 1621 __drv_maxIRQL(DISPATCH_LEVEL) 1607 1622 NTSTATUS 1608 1623 WDFAPI 1624 + STDCALL 1609 1625 WDFEXPORT(WdfRequestRetrieveInputWdmMdl)( 1610 1626 __in 1611 1627 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1705 1721 __drv_maxIRQL(DISPATCH_LEVEL) 1706 1722 NTSTATUS 1707 1723 WDFAPI 1724 + STDCALL 1708 1725 WDFEXPORT(WdfRequestRetrieveOutputWdmMdl)( 1709 1726 __in 1710 1727 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1850 1867 _Must_inspect_result_ 1851 1868 __drv_maxIRQL(DISPATCH_LEVEL) 1852 1869 BOOLEAN 1870 + STDCALL 1853 1871 WDFEXPORT(WdfRequestSend)( 1854 1872 __in 1855 1873 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2104 2122 _Must_inspect_result_ 2105 2123 __drv_maxIRQL(DISPATCH_LEVEL) 2106 2124 NTSTATUS 2125 + STDCALL 2107 2126 WDFEXPORT(WdfRequestGetStatus)( 2108 2127 __in 2109 2128 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2124 2143 __drv_maxIRQL(DISPATCH_LEVEL) 2125 2144 BOOLEAN 2126 2145 WDFAPI 2146 + STDCALL 2127 2147 WDFEXPORT(WdfRequestCancelSentRequest)( 2128 2148 __in 2129 2149 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2176 2196 _Must_inspect_result_ 2177 2197 __drv_maxIRQL(APC_LEVEL) 2178 2198 BOOLEAN 2199 + STDCALL 2179 2200 WDFEXPORT(WdfRequestIsFrom32BitProcess)( 2180 2201 __in 2181 2202 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2221 2242 __drv_maxIRQL(DISPATCH_LEVEL) 2222 2243 2223 2244 VOID 2245 + STDCALL 2224 2246 WDFEXPORT(WdfRequestFormatRequestUsingCurrentType)( 2225 2247 __in 2226 2248 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2291 2313 __drv_maxIRQL(DISPATCH_LEVEL) 2292 2314 VOID 2293 2315 WDFAPI 2316 + STDCALL 2294 2317 WDFEXPORT(WdfRequestWdmFormatUsingStackLocation)( 2295 2318 __in 2296 2319 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2371 2394 __drv_maxIRQL(DISPATCH_LEVEL) 2372 2395 VOID 2373 2396 WDFAPI 2397 + STDCALL 2374 2398 WDFEXPORT(WdfRequestSetCompletionRoutine)( 2375 2399 __in 2376 2400 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2409 2433 __drv_maxIRQL(DISPATCH_LEVEL) 2410 2434 VOID 2411 2435 WDFAPI 2436 + STDCALL 2412 2437 WDFEXPORT(WdfRequestGetParameters)( 2413 2438 __in 2414 2439 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2458 2483 __drv_maxIRQL(DISPATCH_LEVEL) 2459 2484 VOID 2460 2485 WDFAPI 2486 + STDCALL 2461 2487 WDFEXPORT(WdfRequestGetCompletionParams)( 2462 2488 __in 2463 2489 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2504 2530 __drv_maxIRQL(DISPATCH_LEVEL) 2505 2531 MdIrp 2506 2532 WDFAPI 2533 + STDCALL 2507 2534 WDFEXPORT(WdfRequestWdmGetIrp)( 2508 2535 __in 2509 2536 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2568 2595 __drv_maxIRQL(DISPATCH_LEVEL) 2569 2596 NTSTATUS 2570 2597 WDFAPI 2598 + STDCALL 2571 2599 WDFEXPORT(WdfRequestAllocateTimer)( 2572 2600 __in 2573 2601 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2610 2638 __drv_maxIRQL(DISPATCH_LEVEL) 2611 2639 WDFFILEOBJECT 2612 2640 WDFAPI 2641 + STDCALL 2613 2642 WDFEXPORT(WdfRequestGetFileObject)( 2614 2643 __in 2615 2644 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2689 2718 __drv_maxIRQL(PASSIVE_LEVEL) 2690 2719 NTSTATUS 2691 2720 WDFAPI 2721 + STDCALL 2692 2722 WDFEXPORT(WdfRequestProbeAndLockUserBufferForRead)( 2693 2723 __in 2694 2724 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2790 2820 __drv_maxIRQL(PASSIVE_LEVEL) 2791 2821 NTSTATUS 2792 2822 WDFAPI 2823 + STDCALL 2793 2824 WDFEXPORT(WdfRequestProbeAndLockUserBufferForWrite)( 2794 2825 __in 2795 2826 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2888 2919 __drv_maxIRQL(DISPATCH_LEVEL) 2889 2920 KPROCESSOR_MODE 2890 2921 WDFAPI 2922 + STDCALL 2891 2923 WDFEXPORT(WdfRequestGetRequestorMode)( 2892 2924 __in 2893 2925 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 2930 2962 __drv_maxIRQL(DISPATCH_LEVEL) 2931 2963 WDFQUEUE 2932 2964 WDFAPI 2965 + STDCALL 2933 2966 WDFEXPORT(WdfRequestGetIoQueue)( 2934 2967 __in 2935 2968 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3052 3085 _Must_inspect_result_ 3053 3086 __drv_maxIRQL(DISPATCH_LEVEL) 3054 3087 NTSTATUS 3088 + STDCALL 3055 3089 WDFEXPORT(WdfRequestForwardToIoQueue)( 3056 3090 __in 3057 3091 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3206 3240 _Must_inspect_result_ 3207 3241 __drv_maxIRQL(DISPATCH_LEVEL) 3208 3242 NTSTATUS 3243 + STDCALL 3209 3244 WDFEXPORT(WdfRequestForwardToParentDeviceIoQueue)( 3210 3245 __in 3211 3246 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3338 3373 _Must_inspect_result_ 3339 3374 __drv_maxIRQL(DISPATCH_LEVEL) 3340 3375 NTSTATUS 3376 + STDCALL 3341 3377 WDFEXPORT(WdfRequestRequeue)( 3342 3378 __in 3343 3379 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3396 3432 3397 3433 __drv_maxIRQL(DISPATCH_LEVEL) 3398 3434 VOID 3435 + STDCALL 3399 3436 WDFEXPORT(WdfRequestMarkCancelable)( 3400 3437 __in 3401 3438 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3465 3502 _Must_inspect_result_ 3466 3503 __drv_maxIRQL(DISPATCH_LEVEL) 3467 3504 NTSTATUS 3505 + STDCALL 3468 3506 WDFEXPORT(WdfRequestMarkCancelableEx)( 3469 3507 __in 3470 3508 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3538 3576 _Must_inspect_result_ 3539 3577 __drv_maxIRQL(DISPATCH_LEVEL) 3540 3578 NTSTATUS 3579 + STDCALL 3541 3580 WDFEXPORT(WdfRequestUnmarkCancelable)( 3542 3581 __in 3543 3582 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3619 3658 _Must_inspect_result_ 3620 3659 __drv_maxIRQL(DISPATCH_LEVEL) 3621 3660 BOOLEAN 3661 + STDCALL 3622 3662 WDFEXPORT(WdfRequestIsCanceled)( 3623 3663 __in 3624 3664 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3666 3706 3667 3707 __drv_maxIRQL(DISPATCH_LEVEL) 3668 3708 VOID 3709 + STDCALL 3669 3710 WDFEXPORT(WdfRequestStopAcknowledge)( 3670 3711 __in 3671 3712 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 3723 3764 3724 3765 __drv_maxIRQL(DISPATCH_LEVEL) 3725 3766 BOOLEAN 3767 + STDCALL 3726 3768 WDFEXPORT(WdfRequestIsReserved)( 3727 3769 __in 3728 3770 PWDF_DRIVER_GLOBALS DriverGlobals,
+2 -2
sdk/lib/drivers/wdf/shared/core/fxrequestbase.cpp
··· 26 26 27 27 // Tracing support 28 28 extern "C" { 29 - #include "FxRequestBase.tmh" 29 + // #include "FxRequestBase.tmh" 30 30 } 31 31 32 32 FxRequestBase::FxRequestBase( ··· 811 811 return TRUE; 812 812 } 813 813 814 - __declspec(noreturn) 814 + DECLSPEC_NORETURN 815 815 VOID 816 816 FxRequestBase::FatalError( 817 817 __in NTSTATUS Status
+1 -1
sdk/lib/drivers/wdf/shared/core/fxrequestcontext.cpp
··· 28 28 29 29 // Tracing support 30 30 extern "C" { 31 - #include "FxRequestContext.tmh" 31 + // #include "FxRequestContext.tmh" 32 32 } 33 33 34 34 FxRequestContext::FxRequestContext(
+1 -1
sdk/lib/drivers/wdf/shared/core/fxrequestmemory.cpp
··· 156 156 return STATUS_SUCCESS; 157 157 } 158 158 else { 159 - return __super::QueryInterface(Params); 159 + return FxMemoryBufferPreallocated::QueryInterface(Params); // __super call 160 160 } 161 161 } 162 162
+1 -1
sdk/lib/drivers/wdf/shared/core/fxrequestoutputbuffer.cpp
··· 29 29 30 30 // Tracing support 31 31 extern "C" { 32 - #include "FxRequestOutputBuffer.tmh" 32 + // #include "FxRequestOutputBuffer.tmh" 33 33 } 34 34 35 35 PVOID
+1 -1
sdk/lib/drivers/wdf/shared/core/fxrequestsystembuffer.cpp
··· 30 30 31 31 // Tracing support 32 32 extern "C" { 33 - #include "FxRequestSystemBuffer.tmh" 33 + // #include "FxRequestSystemBuffer.tmh" 34 34 } 35 35 36 36 size_t
+2 -2
sdk/lib/drivers/wdf/shared/core/fxsyncrequest.cpp
··· 26 26 27 27 // Tracing support 28 28 extern "C" { 29 - #include "FxSyncRequest.tmh" 29 + // #include "FxSyncRequest.tmh" 30 30 } 31 31 32 32 FxSyncRequest::FxSyncRequest( ··· 126 126 // Release the initial reference taken on create. Use the base release call 127 127 // so that we don't unnecessarily set the event unless we have to. 128 128 // 129 - count = __super::RELEASE(NULL); 129 + count = FxRequestBase::RELEASE(NULL); // __super call 130 130 131 131 // 132 132 // For a driver supplied request(m_TrueRequest) the request context is
+2 -2
sdk/lib/drivers/wdf/shared/core/fxsystemworkitem.cpp
··· 26 26 27 27 #include "coreprivshared.hpp" 28 28 29 - #include "FxSystemWorkItem.hpp" 29 + #include "fxsystemworkitem.hpp" 30 30 31 31 // Tracing support 32 32 extern "C" { 33 - #include "FxSystemWorkItem.tmh" 33 + // #include "FxSystemWorkItem.tmh" 34 34 } 35 35 36 36 //
+8 -6
sdk/lib/drivers/wdf/shared/core/fxtimer.cpp
··· 26 26 27 27 #include "coreprivshared.hpp" 28 28 29 - #include "FxTimer.hpp" 29 + #include "fxtimer.hpp" 30 30 31 31 // Tracing support 32 32 extern "C" { 33 - #include "FxTimer.tmh" 33 + // #include "FxTimer.tmh" 34 34 } 35 35 36 36 // ··· 160 160 // 161 161 162 162 #if (FX_CORE_MODE == FX_CORE_KERNEL_MODE) 163 - if (pFxDriverGlobals->IsVersionGreaterThanOrEqualTo(1,13)) { 164 - status = m_Timer.InitializeEx(this, FxTimer::_FxTimerExtCallbackThunk, m_Period, 165 - m_TolerableDelay, m_UseHighResolutionTimer); 166 - } else { 163 + // __REACTOS__ Ex timers are not supported 164 + // if (pFxDriverGlobals->IsVersionGreaterThanOrEqualTo(1,13)) { 165 + // status = m_Timer.InitializeEx(this, FxTimer::_FxTimerExtCallbackThunk, m_Period, 166 + // m_TolerableDelay, m_UseHighResolutionTimer); 167 + // } else 168 + { 167 169 status = m_Timer.Initialize(this, FxTimer::_FxTimerDpcThunk, m_Period); 168 170 } 169 171 #else
+6 -2
sdk/lib/drivers/wdf/shared/core/fxtimerapi.cpp
··· 25 25 26 26 #include "coreprivshared.hpp" 27 27 28 - #include "FxTimer.hpp" 28 + #include "fxtimer.hpp" 29 29 30 30 extern "C" { 31 - #include "FxTimerApi.tmh" 31 + // #include "FxTimerApi.tmh" 32 32 } 33 33 34 34 // ··· 39 39 _Must_inspect_result_ 40 40 __drv_maxIRQL(DISPATCH_LEVEL) 41 41 NTSTATUS 42 + STDCALL 42 43 WDFEXPORT(WdfTimerCreate)( 43 44 __in 44 45 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 199 200 200 201 __drv_maxIRQL(DISPATCH_LEVEL) 201 202 BOOLEAN 203 + STDCALL 202 204 WDFEXPORT(WdfTimerStart)( 203 205 __in 204 206 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 245 247 __drv_when(Wait == __true, __drv_maxIRQL(PASSIVE_LEVEL)) 246 248 __drv_when(Wait == __false, __drv_maxIRQL(DISPATCH_LEVEL)) 247 249 BOOLEAN 250 + STDCALL 248 251 WDFEXPORT(WdfTimerStop)( 249 252 __in 250 253 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 295 298 296 299 __drv_maxIRQL(DISPATCH_LEVEL) 297 300 WDFOBJECT 301 + STDCALL 298 302 WDFEXPORT(WdfTimerGetParentObject)( 299 303 __in 300 304 PWDF_DRIVER_GLOBALS DriverGlobals,
+6 -6
sdk/lib/drivers/wdf/shared/core/fxworkitem.cpp
··· 26 26 27 27 #include "coreprivshared.hpp" 28 28 29 - #include "FxWorkItem.hpp" 29 + #include "fxworkitem.hpp" 30 30 31 31 #if (FX_CORE_MODE == FX_CORE_USER_MODE) 32 32 // ··· 37 37 38 38 // Tracing support 39 39 extern "C" { 40 - #include "FxWorkItem.tmh" 40 + // #include "FxWorkItem.tmh" 41 41 } 42 42 43 43 FxWorkItem::FxWorkItem( ··· 319 319 // object and Globals while they are outstanding. 320 320 // These will be released when the workitem completes. 321 321 // 322 - ADDREF(WorkItemThunk); 323 - pFxDriverGlobals->ADDREF(WorkItemThunk); 322 + ADDREF((PVOID)WorkItemThunk); 323 + pFxDriverGlobals->ADDREF((PVOID)WorkItemThunk); 324 324 325 325 enqueue = TRUE; 326 326 } ··· 436 436 // Release the reference on the FxWorkItem and Globals taken when Enqueue 437 437 // was done. This may release the FxWorkItem if it is running down. 438 438 // 439 - pWorkItem->RELEASE(WorkItemThunk); 439 + pWorkItem->RELEASE((PVOID)WorkItemThunk); 440 440 441 441 // 442 442 // This may release the driver if it is running down. 443 443 // 444 - pFxDriverGlobals->RELEASE(WorkItemThunk); 444 + pFxDriverGlobals->RELEASE((PVOID)WorkItemThunk); 445 445 } 446 446 447 447 VOID
+6 -2
sdk/lib/drivers/wdf/shared/core/fxworkitemapi.cpp
··· 25 25 26 26 #include "coreprivshared.hpp" 27 27 28 - #include "FxWorkItem.hpp" 28 + #include "fxworkitem.hpp" 29 29 30 30 extern "C" { 31 - #include "FxWorkItemApi.tmh" 31 + // #include "FxWorkItemApi.tmh" 32 32 } 33 33 34 34 ··· 40 40 _Must_inspect_result_ 41 41 __drv_maxIRQL(DISPATCH_LEVEL) 42 42 NTSTATUS 43 + STDCALL 43 44 WDFEXPORT(WdfWorkItemCreate)( 44 45 __in 45 46 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 144 145 145 146 __drv_maxIRQL(DISPATCH_LEVEL) 146 147 VOID 148 + STDCALL 147 149 WDFEXPORT(WdfWorkItemEnqueue)( 148 150 __in 149 151 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 180 182 181 183 __drv_maxIRQL(DISPATCH_LEVEL) 182 184 WDFOBJECT 185 + STDCALL 183 186 WDFEXPORT(WdfWorkItemGetParentObject)( 184 187 __in 185 188 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 219 222 220 223 __drv_maxIRQL(PASSIVE_LEVEL) 221 224 VOID 225 + STDCALL 222 226 WDFEXPORT(WdfWorkItemFlush)( 223 227 __in 224 228 PWDF_DRIVER_GLOBALS DriverGlobals,
+20 -2
sdk/lib/drivers/wdf/shared/core/km/fxdeviceapikm.cpp
··· 26 26 #include "fxiotarget.hpp" 27 27 28 28 extern "C" { 29 - #include "FxDeviceApiKm.tmh" 29 + // #include "FxDeviceApiKm.tmh" 30 30 } 31 31 32 32 // ··· 58 58 59 59 __drv_maxIRQL(DISPATCH_LEVEL) 60 60 WDFDEVICE 61 + STDCALL 61 62 WDFEXPORT(WdfWdmDeviceGetWdfDeviceHandle)( 62 63 __in 63 64 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 72 73 73 74 __drv_maxIRQL(DISPATCH_LEVEL) 74 75 PDEVICE_OBJECT 76 + STDCALL 75 77 WDFEXPORT(WdfDeviceWdmGetDeviceObject)( 76 78 __in 77 79 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 91 93 92 94 __drv_maxIRQL(DISPATCH_LEVEL) 93 95 PDEVICE_OBJECT 96 + STDCALL 94 97 WDFEXPORT(WdfDeviceWdmGetAttachedDevice)( 95 98 __in 96 99 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 111 114 112 115 __drv_maxIRQL(DISPATCH_LEVEL) 113 116 PDEVICE_OBJECT 117 + STDCALL 114 118 WDFEXPORT(WdfDeviceWdmGetPhysicalDevice)( 115 119 __in 116 120 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 130 134 131 135 __drv_maxIRQL(DISPATCH_LEVEL) 132 136 WDFFILEOBJECT 137 + STDCALL 133 138 WDFEXPORT(WdfDeviceGetFileObject)( 134 139 __in 135 140 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 206 211 _Must_inspect_result_ 207 212 __drv_maxIRQL(DISPATCH_LEVEL) 208 213 NTSTATUS 214 + STDCALL 209 215 WDFEXPORT(WdfDeviceWdmDispatchPreprocessedIrp)( 210 216 __in 211 217 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 316 322 _Must_inspect_result_ 317 323 __drv_maxIRQL(DISPATCH_LEVEL) 318 324 NTSTATUS 325 + STDCALL 319 326 WDFEXPORT(WdfDeviceWdmDispatchIrp)( 320 327 __in 321 328 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 361 368 FxPointerNotNull(device->GetDriverGlobals(), Irp); 362 369 FxPointerNotNull(device->GetDriverGlobals(), DispatchContext); 363 370 364 - if ((UCHAR)DispatchContext & FX_IN_DISPATCH_CALLBACK) { 371 + if ((UCHAR)(ULONG_PTR)DispatchContext & FX_IN_DISPATCH_CALLBACK) { 365 372 // 366 373 // Called from a dispach irp callback. 367 374 // ··· 395 402 _Must_inspect_result_ 396 403 __drv_maxIRQL(DISPATCH_LEVEL) 397 404 NTSTATUS 405 + STDCALL 398 406 WDFEXPORT(WdfDeviceWdmDispatchIrpToIoQueue)( 399 407 __in 400 408 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 497 505 _Must_inspect_result_ 498 506 __drv_maxIRQL(DISPATCH_LEVEL) 499 507 NTSTATUS 508 + STDCALL 500 509 WDFEXPORT(WdfDeviceAddDependentUsageDeviceObject)( 501 510 __in 502 511 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 522 531 523 532 __drv_maxIRQL(DISPATCH_LEVEL) 524 533 VOID 534 + STDCALL 525 535 WDFEXPORT(WdfDeviceRemoveDependentUsageDeviceObject)( 526 536 __in 527 537 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 548 558 _Must_inspect_result_ 549 559 __drv_maxIRQL(PASSIVE_LEVEL) 550 560 NTSTATUS 561 + STDCALL 551 562 WDFEXPORT(WdfDeviceAssignMofResourceName)( 552 563 __in 553 564 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 606 617 607 618 __drv_maxIRQL(DISPATCH_LEVEL) 608 619 VOID 620 + STDCALL 609 621 WDFEXPORT(WdfDeviceSetSpecialFileSupport)( 610 622 __in 611 623 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 646 658 _Must_inspect_result_ 647 659 __drv_maxIRQL(DISPATCH_LEVEL) 648 660 NTSTATUS 661 + STDCALL 649 662 WDFEXPORT(WdfDeviceIndicateWakeStatus)( 650 663 __in 651 664 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 706 719 707 720 __drv_maxIRQL(DISPATCH_LEVEL) 708 721 VOID 722 + STDCALL 709 723 WDFEXPORT(WdfDeviceSetBusInformationForChildren)( 710 724 __in 711 725 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 730 744 _Must_inspect_result_ 731 745 __drv_maxIRQL(DISPATCH_LEVEL) 732 746 NTSTATUS 747 + STDCALL 733 748 WDFEXPORT(WdfDeviceAddRemovalRelationsPhysicalDevice)( 734 749 __in 735 750 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 770 785 771 786 __drv_maxIRQL(DISPATCH_LEVEL) 772 787 VOID 788 + STDCALL 773 789 WDFEXPORT(WdfDeviceRemoveRemovalRelationsPhysicalDevice)( 774 790 __in 775 791 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 810 826 811 827 __drv_maxIRQL(DISPATCH_LEVEL) 812 828 VOID 829 + STDCALL 813 830 WDFEXPORT(WdfDeviceClearRemovalRelationsDevices)( 814 831 __in 815 832 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 843 860 _Must_inspect_result_ 844 861 __drv_maxIRQL(PASSIVE_LEVEL) 845 862 NTSTATUS 863 + STDCALL 846 864 WDFEXPORT(WdfDeviceWdmAssignPowerFrameworkSettings)( 847 865 __in 848 866 PWDF_DRIVER_GLOBALS DriverGlobals,
+1 -1
sdk/lib/drivers/wdf/shared/core/km/fxdevicebasekm.cpp
··· 25 25 #include "coreprivshared.hpp" 26 26 27 27 extern "C" { 28 - #include "FxDeviceBaseKm.tmh" 28 + // #include "FxDeviceBaseKm.tmh" 29 29 } 30 30 31 31 _Must_inspect_result_
+1 -1
sdk/lib/drivers/wdf/shared/core/km/fxdeviceinitkm.cpp
··· 25 25 #include "coreprivshared.hpp" 26 26 27 27 extern "C" { 28 - #include "FxDeviceInitKm.tmh" 28 + // #include "FxDeviceInitKm.tmh" 29 29 } 30 30 31 31 VOID
+17 -16
sdk/lib/drivers/wdf/shared/core/km/fxdevicekm.cpp
··· 25 25 #include "coreprivshared.hpp" 26 26 27 27 extern "C" { 28 - #include "FxDeviceKm.tmh" 28 + // #include "FxDeviceKm.tmh" 29 29 } 30 30 31 31 _Must_inspect_result_ ··· 192 192 return status; 193 193 } 194 194 195 - status = m_PkgWmi->PostCreateDeviceInitialize(); 196 - if (!NT_SUCCESS(status)) { 197 - return status; 198 - } 195 + // status = m_PkgWmi->PostCreateDeviceInitialize(); __REACTOS__ 196 + // if (!NT_SUCCESS(status)) { 197 + // return status; 198 + // } 199 199 200 200 status = m_PkgGeneral->PostCreateDeviceInitialize(DeviceInit); 201 201 if (!NT_SUCCESS(status)) { ··· 302 302 pPkgPdo->m_AllowForwardRequestToParent = TRUE; 303 303 } 304 304 305 - status = m_PkgWmi->PostCreateDeviceInitialize(); 306 - if (!NT_SUCCESS(status)) { 307 - return status; 308 - } 305 + // status = m_PkgWmi->PostCreateDeviceInitialize(); __REACTOS__ 306 + // if (!NT_SUCCESS(status)) { 307 + // return status; 308 + // } 309 309 310 310 status = m_PkgGeneral->PostCreateDeviceInitialize(DeviceInit); 311 311 if (!NT_SUCCESS(status)) { ··· 410 410 return status; 411 411 } 412 412 413 - status = m_PkgWmi->PostCreateDeviceInitialize(); 414 - if (!NT_SUCCESS(status)) { 415 - return status; 416 - } 413 + // status = m_PkgWmi->PostCreateDeviceInitialize(); __REACTOS__ 414 + // if (!NT_SUCCESS(status)) { 415 + // return status; 416 + // } 417 417 418 418 status = m_PkgGeneral->PostCreateDeviceInitialize(DeviceInit); 419 419 if (!NT_SUCCESS(status)) { ··· 489 489 VOID 490 490 ) 491 491 { 492 - return m_PkgWmi->Register(); 492 + // return m_PkgWmi->Register(); __REACTOS__ 493 + return STATUS_SUCCESS; 493 494 } 494 495 495 496 VOID ··· 497 498 VOID 498 499 ) 499 500 { 500 - m_PkgWmi->Deregister(); 501 + // m_PkgWmi->Deregister(); __REACTOS__ 501 502 } 502 503 503 504 VOID ··· 505 506 VOID 506 507 ) 507 508 { 508 - m_PkgWmi->Cleanup(); 509 + // m_PkgWmi->Cleanup(); __REACTOS__ 509 510 } 510 511 511 512 NTSTATUS
+6 -1
sdk/lib/drivers/wdf/shared/core/km/fxdriverapikm.cpp
··· 27 27 // Tracing support 28 28 extern "C" { 29 29 #include <ntverp.h> 30 - #include "FxDriverApiKm.tmh" 30 + // #include "FxDriverApiKm.tmh" 31 31 } 32 32 33 33 // ··· 38 38 _Must_inspect_result_ 39 39 __drv_maxIRQL(PASSIVE_LEVEL) 40 40 NTSTATUS 41 + STDCALL 41 42 WDFEXPORT(WdfDriverOpenParametersRegistryKey)( 42 43 __in 43 44 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 117 118 118 119 __drv_maxIRQL(DISPATCH_LEVEL) 119 120 PDRIVER_OBJECT 121 + STDCALL 120 122 WDFEXPORT(WdfDriverWdmGetDriverObject)( 121 123 __in 122 124 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 136 138 137 139 __drv_maxIRQL(DISPATCH_LEVEL) 138 140 WDFDRIVER 141 + STDCALL 139 142 WDFEXPORT(WdfWdmDriverGetWdfDriverHandle)( 140 143 __in 141 144 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 149 152 } 150 153 151 154 VOID 155 + STDCALL 152 156 WDFEXPORT(WdfDriverMiniportUnload)( 153 157 __in 154 158 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 169 173 _Must_inspect_result_ 170 174 __drv_maxIRQL(PASSIVE_LEVEL) 171 175 NTSTATUS 176 + STDCALL 172 177 WDFEXPORT(WdfDeviceMiniportCreate)( 173 178 __in 174 179 PWDF_DRIVER_GLOBALS DriverGlobals,
+1 -1
sdk/lib/drivers/wdf/shared/core/km/fxdriverkm.cpp
··· 29 29 30 30 // Tracing support 31 31 extern "C" { 32 - #include "FxDriverKm.tmh" 32 + // #include "FxDriverKm.tmh" 33 33 } 34 34 35 35 _Must_inspect_result_
+3 -2
sdk/lib/drivers/wdf/shared/core/km/fxfileobjectapikm.cpp
··· 22 22 --*/ 23 23 24 24 #include "coreprivshared.hpp" 25 - #include "FxFileObject.hpp" 25 + #include "fxfileobject.hpp" 26 26 27 27 extern "C" { 28 - #include "FxFileObjectApiKm.tmh" 28 + // #include "FxFileObjectApiKm.tmh" 29 29 } 30 30 31 31 // ··· 35 35 36 36 __drv_maxIRQL(DISPATCH_LEVEL) 37 37 PFILE_OBJECT 38 + STDCALL 38 39 WDFEXPORT(WdfFileObjectWdmGetFileObject)( 39 40 __in 40 41 PWDF_DRIVER_GLOBALS DriverGlobals,
+1 -1
sdk/lib/drivers/wdf/shared/core/km/fxfileobjectkm.cpp
··· 27 27 28 28 // Tracing support 29 29 extern "C" { 30 - #include "FxFileObjectKm.tmh" 30 + // #include "FxFileObjectKm.tmh" 31 31 } 32 32 33 33 VOID
+2 -2
sdk/lib/drivers/wdf/shared/core/km/fxnpagedlookasidelistkm.cpp
··· 23 23 24 24 #include "coreprivshared.hpp" 25 25 26 - #include "FxNPagedLookasideList.hpp" 27 - #include "FxMemoryBufferFromLookaside.hpp" 26 + #include "fxnpagedlookasidelist.hpp" 27 + #include "fxmemorybufferfromlookaside.hpp" 28 28 29 29 FxNPagedLookasideList::FxNPagedLookasideList( 30 30 __in PFX_DRIVER_GLOBALS FxDriverGlobals,
+3 -3
sdk/lib/drivers/wdf/shared/core/km/fxrequestkm.cpp
··· 27 27 28 28 // Tracing support 29 29 extern "C" { 30 - #include "FxRequestKm.tmh" 30 + // #include "FxRequestKm.tmh" 31 31 } 32 32 33 33 VOID ··· 51 51 52 52 --*/ 53 53 { 54 - PWDF_REQUEST_PARAMETERS pWdfRequestParameters; 55 - PIO_STACK_LOCATION pIoStackLocation; 54 + PWDF_REQUEST_PARAMETERS pWdfRequestParameters = NULL; 55 + PIO_STACK_LOCATION pIoStackLocation = NULL; 56 56 57 57 UNREFERENCED_PARAMETER(pWdfRequestParameters); 58 58 UNREFERENCED_PARAMETER(pIoStackLocation);
+1 -1
sdk/lib/drivers/wdf/shared/core/km/fxrequestsystembufferkm.cpp
··· 30 30 31 31 // Tracing support 32 32 extern "C" { 33 - #include "FxRequestSystemBufferKm.tmh" 33 + // #include "FxRequestSystemBufferKm.tmh" 34 34 } 35 35 36 36 _Must_inspect_result_
+3 -3
sdk/lib/drivers/wdf/shared/enhancedverif/vfpriv.hpp
··· 23 23 --*/ 24 24 25 25 #if FX_CORE_MODE==FX_CORE_KERNEL_MODE 26 - #include "VfPrivKm.hpp" 26 + #include "vfprivkm.hpp" 27 27 #else if ((FX_CORE_MODE)==(FX_CORE_USER_MODE)) 28 - #include "VfPrivUm.hpp" 28 + #include "vfprivum.hpp" 29 29 #endif 30 30 31 31 extern "C" { 32 - #include "FxDynamics.h" 32 + #include "fxdynamics.h" 33 33 } 34 34 #include "vfeventhooks.hpp" 35 35
+5 -3
sdk/lib/drivers/wdf/shared/inc/primitives/common/mx.h
··· 25 25 26 26 #pragma once 27 27 28 - #include "MxMacros.h" 28 + #include "mxmacros.h" 29 29 30 30 // 31 31 // Greater than 64 logical processors support: direct DDK to include the new ··· 34 34 // 35 35 #define NT_PROCESSOR_GROUPS 1 36 36 37 + #define WDF_VIOLATION ((ULONG)0x0000010DL) 38 + 37 39 #if (FX_CORE_MODE == FX_CORE_USER_MODE) 38 - #include "MxUm.h" 40 + #include "mxum.h" 39 41 #elif (FX_CORE_MODE == FX_CORE_KERNEL_MODE) 40 - #include "MxKm.h" 42 + #include "mxkm.h" 41 43 #endif 42 44
+1 -1
sdk/lib/drivers/wdf/shared/inc/primitives/common/mxdriverobject.h
··· 66 66 m_DriverObject = DriverObject; 67 67 } 68 68 69 - PVOID 69 + PDRIVER_ADD_DEVICE 70 70 GetDriverExtensionAddDevice( 71 71 VOID 72 72 );
+1
sdk/lib/drivers/wdf/shared/inc/primitives/common/mxgeneral.h
··· 126 126 127 127 128 128 static 129 + DECLSPEC_NORETURN 129 130 VOID 130 131 MxBugCheckEx( 131 132 __in ULONG BugCheckCode,
+5 -1
sdk/lib/drivers/wdf/shared/inc/primitives/km/mxdeviceobjectkm.h
··· 14 14 15 15 #pragma once 16 16 17 - #include "MxDeviceObject.h" 17 + #include "mxdeviceobject.h" 18 18 19 19 __inline 20 20 CCHAR ··· 65 65 VOID 66 66 ) 67 67 { 68 + #ifdef _MSC_VER 68 69 #pragma warning(disable:28129) 70 + #endif 69 71 return m_DeviceObject->Flags; 70 72 } 71 73 ··· 75 77 ULONG Flags 76 78 ) 77 79 { 80 + #ifdef _MSC_VER 78 81 #pragma warning(disable:28129) 82 + #endif 79 83 m_DeviceObject->Flags = Flags; 80 84 } 81 85
+2 -2
sdk/lib/drivers/wdf/shared/inc/primitives/km/mxdriverobjectkm.h
··· 18 18 typedef DRIVER_UNLOAD MdDriverUnloadType, *MdDriverUnload; 19 19 typedef DRIVER_DISPATCH MdDriverDispatchType, *MdDriverDispatch; 20 20 21 - #include "MxDriverObject.h" 21 + #include "mxdriverobject.h" 22 22 23 23 __inline 24 - PVOID 24 + PDRIVER_ADD_DEVICE 25 25 MxDriverObject::GetDriverExtensionAddDevice( 26 26 VOID 27 27 )
+3 -1
sdk/lib/drivers/wdf/shared/inc/primitives/km/mxeventkm.h
··· 25 25 26 26 typedef KEVENT MdEvent; 27 27 28 - #include "MxEvent.h" 28 + #include "mxevent.h" 29 29 30 30 __inline 31 31 MxEvent::MxEvent() ··· 49 49 50 50 __inline 51 51 NTSTATUS 52 + #ifdef _MSC_VER 52 53 #pragma prefast(suppress:__WARNING_UNMATCHED_DECL_ANNO, "_Must_inspect_result_ not needed in kernel mode as the function always succeeds"); 54 + #endif 53 55 MxEvent::Initialize( 54 56 __in EVENT_TYPE Type, 55 57 __in BOOLEAN InitialState
+1 -1
sdk/lib/drivers/wdf/shared/inc/primitives/km/mxfileobjectkm.h
··· 14 14 15 15 #pragma once 16 16 17 - #include "MxFileObject.h" 17 + #include "mxfileobject.h" 18 18 19 19 __inline 20 20 PUNICODE_STRING
+19 -2
sdk/lib/drivers/wdf/shared/inc/primitives/km/mxgeneralkm.h
··· 37 37 typedef KSERVICE_ROUTINE MdInterruptServiceRoutineType, *MdInterruptServiceRoutine; 38 38 typedef KSYNCHRONIZE_ROUTINE MdInterruptSynchronizeRoutineType, *MdInterruptSynchronizeRoutine; 39 39 40 - #include "MxGeneral.h" 40 + #include "mxgeneral.h" 41 41 #include <ntstrsafe.h> 42 42 43 43 __inline ··· 138 138 __in ULONG_PTR BugCheckParameter4 139 139 ) 140 140 { 141 + #ifdef _MSC_VER 141 142 #pragma prefast(suppress:__WARNING_USE_OTHER_FUNCTION, "KeBugCheckEx is the intent."); 143 + #endif 142 144 KeBugCheckEx( 143 145 BugCheckCode, 144 146 BugCheckParameter1, ··· 146 148 BugCheckParameter3, 147 149 BugCheckParameter4 148 150 ); 151 + 152 + UNREACHABLE; 149 153 } 150 154 151 155 __inline ··· 177 181 UNREFERENCED_PARAMETER(Message); 178 182 UNREFERENCED_PARAMETER(Condition); 179 183 180 - ASSERTMSG(Message, Condition); 184 + ASSERT(Condition); 185 + 186 + // ASSERTMSG(Message, Condition); TODO: wtf 181 187 } 182 188 183 189 _Acquires_lock_(_Global_critical_region_) ··· 524 530 _Out_ MdDeviceObject *DeviceObject 525 531 ) 526 532 { 533 + #ifndef __REACTOS__ // we don't have wdmsec.lib 527 534 return IoCreateDeviceSecure(DriverObject, 528 535 DeviceExtensionSize, 529 536 DeviceName, ··· 533 540 DefaultSDDLString, 534 541 DeviceClassGuid, 535 542 DeviceObject); 543 + #else 544 + return IoCreateDevice( 545 + DriverObject, 546 + DeviceExtensionSize, 547 + DeviceName, 548 + DeviceType, 549 + DeviceCharacteristics, 550 + Exclusive, 551 + DeviceObject); 552 + #endif 536 553 } 537 554 538 555 __inline
+14 -14
sdk/lib/drivers/wdf/shared/inc/primitives/km/mxkm.h
··· 26 26 #pragma once 27 27 28 28 #include <ntddk.h> 29 - #include <procgrp.h> 30 - #include <wdmsec.h> 29 + // #include <procgrp.h> 30 + // #include <wdmsec.h> 31 31 32 - #include <wmikm.h> 33 - #include <ntwmi.h> 32 + // #include <wmikm.h> 33 + // #include <ntwmi.h> 34 34 35 35 typedef KDEFERRED_ROUTINE MdDeferredRoutineType, *MdDeferredRoutine; 36 36 typedef EXT_CALLBACK MdExtCallbackType, *MdExtCallback; 37 37 #define FX_DEVICEMAP_PATH L"\\REGISTRY\\MACHINE\\HARDWARE\\DEVICEMAP\\" 38 38 39 - #include "MxGeneralKm.h" 40 - #include "MxLockKm.h" 41 - #include "MxPagedLockKm.h" 42 - #include "MxEventKm.h" 43 - #include "MxMemoryKm.h" 44 - #include "MxTimerKm.h" 45 - #include "MxWorkItemKm.h" 46 - #include "MxDriverObjectKm.h" 47 - #include "MxDeviceObjectKm.h" 48 - #include "MxFileObjectKm.h" 39 + #include "mxgeneralkm.h" 40 + #include "mxlockkm.h" 41 + #include "mxpagedlockkm.h" 42 + #include "mxeventkm.h" 43 + #include "mxmemorykm.h" 44 + #include "mxtimerkm.h" 45 + #include "mxworkitemkm.h" 46 + #include "mxdriverobjectkm.h" 47 + #include "mxdeviceobjectkm.h" 48 + #include "mxfileobjectkm.h" 49 49
+2 -2
sdk/lib/drivers/wdf/shared/inc/primitives/km/mxlockkm.h
··· 23 23 24 24 #pragma once 25 25 26 - #include "DbgMacros.h" 26 + #include "dbgmacros.h" 27 27 28 28 typedef KSPIN_LOCK MdLock; 29 29 30 - #include "MxLock.h" 30 + #include "mxlock.h" 31 31 32 32 __inline 33 33 MxLock::MxLock(
+1 -1
sdk/lib/drivers/wdf/shared/inc/primitives/km/mxmemorykm.h
··· 23 23 24 24 #pragma once 25 25 26 - #include "MxMemory.h" 26 + #include "mxmemory.h" 27 27 28 28 __inline 29 29 PVOID
+4 -2
sdk/lib/drivers/wdf/shared/inc/primitives/km/mxpagedlockkm.h
··· 23 23 24 24 #pragma once 25 25 26 - #include "DbgMacros.h" 26 + #include "dbgmacros.h" 27 27 28 28 typedef FAST_MUTEX MdPagedLock; 29 29 30 - #include "MxPagedLock.h" 30 + #include "mxpagedlock.h" 31 31 32 32 __inline 33 33 MxPagedLock::MxPagedLock( ··· 46 46 47 47 __inline 48 48 NTSTATUS 49 + #ifdef _MSC_VER 49 50 #pragma prefast(suppress:__WARNING_UNMATCHED_DEFN, "_Must_inspect_result_ not needed in kernel mode as the function always succeeds"); 51 + #endif 50 52 MxPagedLockNoDynam::Initialize( 51 53 ) 52 54 {
+64 -59
sdk/lib/drivers/wdf/shared/inc/primitives/km/mxtimerkm.h
··· 47 47 // 48 48 BOOLEAN m_IsExtTimer; 49 49 50 - #pragma warning(push) 51 - #pragma warning( disable: 4201 ) // nonstandard extension used : nameless struct/union 50 + // #pragma warning(push) 51 + // #pragma warning( disable: 4201 ) // nonstandard extension used : nameless struct/union 52 52 53 53 union { 54 54 struct { ··· 69 69 }; 70 70 }; 71 71 72 - #pragma warning(pop) 72 + // #pragma warning(pop) 73 73 74 74 // 75 75 // Context to be passed in to the callback function ··· 78 78 79 79 } MdTimer; 80 80 81 - #include "MxTimer.h" 81 + #include "mxtimer.h" 82 82 83 83 MxTimer::MxTimer( 84 84 VOID ··· 94 94 VOID 95 95 ) 96 96 { 97 - BOOLEAN wasCancelled; 97 + // __REACTOS__ Ex timers are not supported 98 + // BOOLEAN wasCancelled; 98 99 99 - if (m_Timer.m_IsExtTimer && 100 - m_Timer.m_KernelExTimer) { 101 - wasCancelled = ExDeleteTimer(m_Timer.m_KernelExTimer, 102 - TRUE, // Cancel if pending. We don't expect 103 - // it to be pending though 104 - FALSE,// Wait 105 - NULL); 106 - // 107 - // Timer should not have been pending 108 - // 109 - ASSERT(wasCancelled == FALSE); 110 - m_Timer.m_KernelExTimer = NULL; 111 - } 100 + // if (m_Timer.m_IsExtTimer && 101 + // m_Timer.m_KernelExTimer) { 102 + // wasCancelled = ExDeleteTimer(m_Timer.m_KernelExTimer, 103 + // TRUE, // Cancel if pending. We don't expect 104 + // // it to be pending though 105 + // FALSE,// Wait 106 + // NULL); 107 + // // 108 + // // Timer should not have been pending 109 + // // 110 + // ASSERT(wasCancelled == FALSE); 111 + // m_Timer.m_KernelExTimer = NULL; 112 + // } 112 113 } 113 114 114 115 NTSTATUS 116 + #ifdef _MSC_VER 115 117 #pragma prefast(suppress:__WARNING_UNMATCHED_DECL_ANNO, "_Must_inspect_result_ not needed in kernel mode as the function always succeeds"); 118 + #endif 116 119 MxTimer::Initialize( 117 120 __in_opt PVOID TimerContext, 118 121 __in MdDeferredRoutine TimerCallback, ··· 166 169 --*/ 167 170 168 171 { 169 - NTSTATUS status; 170 - ULONG attributes = 0; 172 + // NTSTATUS status; 173 + // ULONG attributes = 0; 171 174 172 - m_Timer.m_TimerContext = TimerContext; 173 - m_Timer.m_ExTimerCallback = TimerCallback; 174 - m_Timer.m_Period = Period; 175 + // m_Timer.m_TimerContext = TimerContext; 176 + // m_Timer.m_ExTimerCallback = TimerCallback; 177 + // m_Timer.m_Period = Period; 175 178 176 - if (TolerableDelay != 0) { 179 + // if (TolerableDelay != 0) { 177 180 178 - attributes |= EX_TIMER_NO_WAKE; 181 + // attributes |= EX_TIMER_NO_WAKE; 179 182 180 - } else if (UseHighResolutionTimer) { 183 + // } else if (UseHighResolutionTimer) { 181 184 182 - attributes |= EX_TIMER_HIGH_RESOLUTION; 183 - } 185 + // attributes |= EX_TIMER_HIGH_RESOLUTION; 186 + // } 184 187 185 - m_Timer.m_KernelExTimer = ExAllocateTimer(m_Timer.m_ExTimerCallback, 186 - TimerContext, 187 - attributes); 188 - if (m_Timer.m_KernelExTimer) { 188 + // m_Timer.m_KernelExTimer = ExAllocateTimer(m_Timer.m_ExTimerCallback, 189 + // TimerContext, 190 + // attributes); 191 + // if (m_Timer.m_KernelExTimer) { 189 192 190 - status = STATUS_SUCCESS; 193 + // status = STATUS_SUCCESS; 191 194 192 - } else { 195 + // } else { 193 196 194 - status = STATUS_INSUFFICIENT_RESOURCES; 195 - } 197 + // status = STATUS_INSUFFICIENT_RESOURCES; 198 + // } 196 199 197 - m_Timer.m_IsExtTimer = TRUE; 200 + // m_Timer.m_IsExtTimer = TRUE; 198 201 199 - return status; 202 + // return status; 203 + return STATUS_NOT_IMPLEMENTED; // __REACTOS__ Ex timers are not supported 200 204 } 201 205 202 206 ··· 208 212 ) 209 213 { 210 214 if (m_Timer.m_IsExtTimer) { 215 + // __REACTOS__ Ex timers are not supported 216 + // EXT_SET_PARAMETERS parameters; 211 217 212 - EXT_SET_PARAMETERS parameters; 218 + // ExInitializeSetTimerParameters(&parameters); 213 219 214 - ExInitializeSetTimerParameters(&parameters); 220 + // // 221 + // // We get the delay in ms but the underlying API needs it in 100 ns 222 + // // units. Convert tolerable delay from ms to 100 ns. However, 223 + // // MAXULONG (TolerableDelayUnlimited) has a special meaning that the 224 + // // system should never be woken up, so we assign the corresponding 225 + // // special value for Ex timers 226 + // // 227 + // if (TolerableDelay == TolerableDelayUnlimited) { 228 + // parameters.NoWakeTolerance = EX_TIMER_UNLIMITED_TOLERANCE; 229 + // } else { 230 + // parameters.NoWakeTolerance = ((LONGLONG) TolerableDelay) * 10 * 1000; 231 + // } 215 232 216 - // 217 - // We get the delay in ms but the underlying API needs it in 100 ns 218 - // units. Convert tolerable delay from ms to 100 ns. However, 219 - // MAXULONG (TolerableDelayUnlimited) has a special meaning that the 220 - // system should never be woken up, so we assign the corresponding 221 - // special value for Ex timers 222 - // 223 - if (TolerableDelay == TolerableDelayUnlimited) { 224 - parameters.NoWakeTolerance = EX_TIMER_UNLIMITED_TOLERANCE; 225 - } else { 226 - parameters.NoWakeTolerance = ((LONGLONG) TolerableDelay) * 10 * 1000; 227 - } 228 - 229 - return ExSetTimer(m_Timer.m_KernelExTimer, 230 - DueTime.QuadPart, 231 - (((LONGLONG) m_Timer.m_Period) * 10 * 1000), 232 - &parameters); 233 - 233 + // return ExSetTimer(m_Timer.m_KernelExTimer, 234 + // DueTime.QuadPart, 235 + // (((LONGLONG) m_Timer.m_Period) * 10 * 1000), 236 + // &parameters); 237 + return FALSE; 234 238 } else { 235 239 236 240 return KeSetCoalescableTimer(&(m_Timer.KernelTimer), ··· 273 277 BOOLEAN bRetVal; 274 278 275 279 if (m_Timer.m_IsExtTimer) { 276 - bRetVal = ExCancelTimer(m_Timer.m_KernelExTimer, NULL); 280 + bRetVal = FALSE; 281 + // bRetVal = ExCancelTimer(m_Timer.m_KernelExTimer, NULL); // __REACTOS__ Ex timers are not supported 277 282 278 283 } else { 279 284 bRetVal = KeCancelTimer(&(m_Timer.KernelTimer));
+1 -1
sdk/lib/drivers/wdf/shared/inc/primitives/km/mxworkitemkm.h
··· 26 26 typedef IO_WORKITEM_ROUTINE MX_WORKITEM_ROUTINE, *PMX_WORKITEM_ROUTINE; 27 27 typedef PIO_WORKITEM MdWorkItem; 28 28 29 - #include "MxWorkItem.h" 29 + #include "mxworkitem.h" 30 30 31 31 __inline 32 32 MxWorkItem::MxWorkItem(
-2
sdk/lib/drivers/wdf/shared/inc/primitives/um/mxum.h
··· 45 45 46 46 #include "wdmdefs.h" 47 47 48 - #define WDF_VIOLATION ((ULONG)0x0000010DL) 49 - 50 48 #define FX_PLUGPLAY_REGKEY_DEVICEMAP 0x8 51 49 52 50 //
+5
sdk/lib/drivers/wdf/shared/inc/private/common/dbgtrace.h
··· 68 68 #define TRACINGDRIVER 0x00001000 69 69 #define TRACINGPNPPOWERSTATES 0x00002000 70 70 71 + #define TRACINGDMA 0x00004000 // __REACTOS__ 72 + #define TRACINGIOTARGET 0x00008000 // __REACTOS__ 73 + 71 74 extern "C" { 72 75 void 73 76 __cdecl ··· 93 96 #define WPP_CLEANUP(DriverObject) 94 97 #endif 95 98 99 + extern "C" { 96 100 extern ULONG DebugLevel; 97 101 extern ULONG DebugFlag; 102 + } 98 103 99 104 #endif
+1 -1
sdk/lib/drivers/wdf/shared/inc/private/common/fxcallbackmutexlock.hpp
··· 28 28 #define _FXCALLBACKMUTEXLOCK_H_ 29 29 30 30 extern "C" { 31 - #include "FxCallbackMutexLock.hpp.tmh" 31 + // #include "FxCallbackMutexLock.hpp.tmh" 32 32 } 33 33 34 34 class FxCallbackMutexLock : public FxCallbackLock {
+1 -1
sdk/lib/drivers/wdf/shared/inc/private/common/fxcxdeviceinfo.hpp
··· 4 4 #ifndef _FXCXDEVICEINFO_H_ 5 5 #define _FXCXDEVICEINFO_H_ 6 6 7 - #include "FxDeviceCallbacks.hpp" 7 + #include "fxdevicecallbacks.hpp" 8 8 9 9 struct FxCxDeviceInfo : public FxStump { 10 10 FxCxDeviceInfo(PFX_DRIVER_GLOBALS FxDriverGlobals) :
+1 -1
sdk/lib/drivers/wdf/shared/inc/private/common/fxcxdeviceinit.hpp
··· 91 91 FxCxDeviceInfo* CxDeviceInfo; 92 92 }; 93 93 94 - #endif __FXCXDEVICEINIT_HPP__ 94 + #endif // __FXCXDEVICEINIT_HPP__ 95 95
+11 -7
sdk/lib/drivers/wdf/shared/inc/private/common/fxdevice.hpp
··· 25 25 #ifndef _FXDEVICE_H_ 26 26 #define _FXDEVICE_H_ 27 27 28 - #include "FxCxDeviceInit.hpp" 29 - #include "FxDeviceInit.hpp" 30 - #include "FxTelemetry.hpp" 28 + #include "fxcxdeviceinit.hpp" 29 + #include "fxdeviceinit.hpp" 30 + #include "fxtelemetry.hpp" 31 31 32 32 struct FxWdmDeviceExtension { 33 33 #if (FX_CORE_MODE == FX_CORE_USER_MODE) ··· 1022 1022 static 1023 1023 _Must_inspect_result_ 1024 1024 NTSTATUS 1025 + STDCALL 1025 1026 Dispatch( 1026 1027 __in MdDeviceObject DeviceObject, 1027 1028 __in MdIrp OriginalIrp ··· 1065 1066 static 1066 1067 _Must_inspect_result_ 1067 1068 NTSTATUS 1069 + STDCALL 1068 1070 DispatchWithLock( 1069 1071 __in MdDeviceObject DeviceObject, 1070 1072 __in MdIrp OriginalIrp ··· 1470 1472 // 1471 1473 ASSERT(m_DeviceObjectDeleted); 1472 1474 1473 - __super::DeleteObject(); 1475 + FxDeviceBase::DeleteObject(); // __super call 1474 1476 } 1475 1477 1476 1478 _Must_inspect_result_ ··· 1761 1763 1762 1764 static 1763 1765 VOID 1766 + STDCALL 1764 1767 _InterfaceReferenceNoOp( 1765 1768 __in_opt PVOID Context 1766 1769 ) ··· 1771 1774 1772 1775 static 1773 1776 VOID 1777 + STDCALL 1774 1778 _InterfaceDereferenceNoOp( 1775 1779 __in_opt PVOID Context 1776 1780 ) ··· 1795 1799 VOID 1796 1800 ) 1797 1801 { 1798 - LogDeviceStartTelemetryEvent(GetDriverGlobals(), this); 1802 + // LogDeviceStartTelemetryEvent(GetDriverGlobals(), this); __REACTOS__ : no-op 1799 1803 } 1800 1804 1801 1805 virtual ··· 2288 2292 }; 2289 2293 2290 2294 #if (FX_CORE_MODE==FX_CORE_KERNEL_MODE) 2291 - #include "FxDeviceKm.hpp" 2295 + #include "fxdevicekm.hpp" 2292 2296 #else 2293 - #include "FxDeviceUm.hpp" 2297 + #include "fxdeviceum.hpp" 2294 2298 #endif 2295 2299 2296 2300
+2 -2
sdk/lib/drivers/wdf/shared/inc/private/common/fxdeviceinit.hpp
··· 78 78 79 79 80 80 81 - #include "FxDeviceInitShared.hpp" 81 + #include "fxdeviceinitshared.hpp" 82 82 83 83 struct ControlInit { 84 84 ControlInit( ··· 327 327 328 328 }; 329 329 330 - #endif __FXDEVICEINIT_HPP__ 330 + #endif // __FXDEVICEINIT_HPP__
+1
sdk/lib/drivers/wdf/shared/inc/private/common/fxdevicetext.hpp
··· 49 49 } 50 50 51 51 static 52 + void 52 53 _CleanupList( 53 54 __inout PSINGLE_LIST_ENTRY Head 54 55 )
+4 -4
sdk/lib/drivers/wdf/shared/inc/private/common/fxdriver.hpp
··· 25 25 #ifndef _FXDRIVER_H_ 26 26 #define _FXDRIVER_H_ 27 27 28 - #include "FxDriverCallbacks.hpp" 28 + #include "fxdrivercallbacks.hpp" 29 29 30 30 31 31 // ··· 46 46 // Unique value to retrieve the FxDriver* from the MdDriverObject. Use a value 47 47 // that is not exposed to the driver writer through the dispatch table or WDM. 48 48 // 49 - #define FX_DRIVER_ID (FxDriver::GetFxDriver) 49 + #define FX_DRIVER_ID ((PVOID)FxDriver::GetFxDriver) 50 50 51 51 // 52 52 // The following are support classes for FxDriver ··· 321 321 break; 322 322 323 323 default: 324 - return __super::QueryInterface(Params); 324 + return FxNonPagedObject::QueryInterface(Params); // __super call 325 325 } 326 326 327 327 return STATUS_SUCCESS; ··· 340 340 // 341 341 ASSERT(Mx::MxGetCurrentIrql() == PASSIVE_LEVEL); 342 342 343 - __super::DeleteObject(); 343 + FxNonPagedObject::DeleteObject(); // __super call 344 344 } 345 345 346 346 virtual
+5 -3
sdk/lib/drivers/wdf/shared/inc/private/common/fxforward.hpp
··· 117 117 class IFxHasCallbacks; 118 118 class IFxMemory; 119 119 120 - enum FxObjectType; 121 - enum FxWmiInstanceAction; 120 + enum FxObjectType : UINT32; 121 + enum FxWmiInstanceAction : UINT32; 122 122 enum FxDriverObjectUmFlags : USHORT; 123 + enum FxWakeInterruptEvents : UINT32; 124 + 123 125 124 126 PVOID 125 127 FxObjectHandleAlloc( ··· 133 135 ); 134 136 135 137 #if (FX_CORE_MODE==FX_CORE_USER_MODE) 136 - #include "FxForwardUm.hpp" 138 + #include "fxforwardum.hpp" 137 139 #endif 138 140 139 141 #endif // _FXFORWARD_HPP_
+10 -3
sdk/lib/drivers/wdf/shared/inc/private/common/fxglobals.h
··· 46 46 #define _FXGLOBALS_H 47 47 48 48 #include "wdfglobals.h" 49 + #include <debug.h> 50 + 51 + // REACTOS 52 + #define ROSWDFNOTIMPLEMENTED (DbgPrint("(%s:%d) ReactOS KMDF: %s not implemented\n", __RELFILE__, __LINE__, __FUNCTION__)) 53 + // REACTOS 49 54 50 55 #ifdef __cplusplus 51 56 extern "C" { ··· 68 73 FxTrackPowerRefs, 69 74 FxTrackPowerRefsAndStack, 70 75 FxTrackPowerMaxValue 71 - }; 76 + } FxTrackPowerOption; 72 77 73 78 typedef enum FxVerifierDownlevelOption { 74 79 NotOkForDownLevel = 0, ··· 847 852 // tracing of WDF operations. The size member of this structure 848 853 // allows versioning across multiple OS versions. 849 854 // 850 - PWMI_WDF_NOTIFY_ROUTINES PerfTraceRoutines; 855 + //PWMI_WDF_NOTIFY_ROUTINES PerfTraceRoutines; __REACTOS__ 856 + PVOID PerfTraceRoutines; 851 857 852 858 // 853 859 // PerfTraceRoutines points here if the SystemTraceProvider failed 854 860 // to provide trace routines. 855 861 // 856 - WMI_WDF_NOTIFY_ROUTINES DummyPerfTraceRoutines; 862 + //WMI_WDF_NOTIFY_ROUTINES DummyPerfTraceRoutines; __REACTOS__ 863 + PVOID DummyPerfTraceRoutines; 857 864 858 865 #endif 859 866
+2 -2
sdk/lib/drivers/wdf/shared/inc/private/common/fxinterrupt.hpp
··· 27 27 #ifndef _FXINTERRUPT_H_ 28 28 #define _FXINTERRUPT_H_ 29 29 30 - #include "FxWakeInterruptStateMachine.hpp" 30 + #include "fxwakeinterruptstatemachine.hpp" 31 31 32 32 // 33 33 // We need two parameters for KeSynchronizeExecution when enabling ··· 271 271 272 272 _Must_inspect_result_ 273 273 NTSTATUS 274 - FxInterrupt::CreateWakeInterruptMachine( 274 + CreateWakeInterruptMachine( 275 275 VOID 276 276 ); 277 277
+5 -5
sdk/lib/drivers/wdf/shared/inc/private/common/fxioqueue.hpp
··· 28 28 #ifndef _FXIOQUEUE_H_ 29 29 #define _FXIOQUEUE_H_ 30 30 31 - #include "FxIoQueueCallbacks.hpp" 31 + #include "fxioqueuecallbacks.hpp" 32 32 33 33 extern "C" { 34 34 #if defined(EVENT_TRACING) ··· 1089 1089 break; 1090 1090 1091 1091 default: 1092 - return __super::QueryInterface(Params); 1092 + return FxNonPagedObject::QueryInterface(Params); // __super call 1093 1093 } 1094 1094 1095 1095 return STATUS_SUCCESS; ··· 1230 1230 return CONTAINING_RECORD(Entry, FxIoQueue, m_PowerSListEntry); 1231 1231 } 1232 1232 1233 - __declspec(noreturn) 1233 + DECLSPEC_NORETURN 1234 1234 VOID 1235 1235 FatalError( 1236 1236 __in NTSTATUS Status ··· 1705 1705 }; 1706 1706 1707 1707 #if (FX_CORE_MODE==FX_CORE_KERNEL_MODE) 1708 - #include "FxIoQueueKm.hpp" 1708 + #include "fxioqueuekm.hpp" 1709 1709 #else 1710 - #include "FxIoQueueUm.hpp" 1710 + #include "fxioqueueum.hpp" 1711 1711 #endif 1712 1712 1713 1713
+5 -5
sdk/lib/drivers/wdf/shared/inc/private/common/fxiotarget.hpp
··· 155 155 } 156 156 } 157 157 158 - __super::ReleaseAndRestore(Request); 158 + FxRequestContext::ReleaseAndRestore(Request); // __super call 159 159 } 160 160 161 161 private: ··· 165 165 __in FxRequestBuffer* Buffer 166 166 ) 167 167 { 168 - __super::StoreAndReferenceMemory(Buffer); 168 + FxRequestContext::StoreAndReferenceMemory(Buffer); // __super call 169 169 } 170 170 171 171 public: ··· 958 958 959 959 960 960 #if ((FX_CORE_MODE)==(FX_CORE_KERNEL_MODE)) 961 - #include "FxIoTargetKm.hpp" 962 - #else if ((FX_CORE_MODE)==(FX_CORE_USER_MODE)) 963 - #include "FxIoTargetUm.hpp" 961 + #include "fxiotargetkm.hpp" 962 + #elif ((FX_CORE_MODE)==(FX_CORE_USER_MODE)) 963 + #include "fxiotargetum.hpp" 964 964 #endif 965 965 966 966 #endif //_FXIOTARGET_H_
+4 -4
sdk/lib/drivers/wdf/shared/inc/private/common/fxiotargetremote.hpp
··· 311 311 return STATUS_SUCCESS; 312 312 } 313 313 else { 314 - return __super::QueryInterface(Params); 314 + return FxIoTarget::QueryInterface(Params); // __super call 315 315 } 316 316 } 317 317 318 318 _Must_inspect_result_ 319 319 NTSTATUS 320 - FxIoTargetRemote::OpenLocalTargetByFile( 320 + OpenLocalTargetByFile( 321 321 _In_ PWDF_IO_TARGET_OPEN_PARAMS OpenParams 322 322 ); 323 323 ··· 432 432 }; 433 433 434 434 #if (FX_CORE_MODE == FX_CORE_KERNEL_MODE) 435 - #include "FxIoTargetRemoteKm.hpp" 435 + #include "fxiotargetremotekm.hpp" 436 436 #else 437 - #include "FxIoTargetRemoteUm.hpp" 437 + #include "fxiotargetremoteum.hpp" 438 438 #endif 439 439 440 440 #endif // _FXIOTARGETREMOTE_H_
+19 -57
sdk/lib/drivers/wdf/shared/inc/private/common/fxirp.hpp
··· 20 20 21 21 Revision History: 22 22 23 + --*/ 23 24 25 + #ifndef _FXIRP_HPP_ 26 + #define _FXIRP_HPP_ 24 27 28 + class FxIrp { 25 29 30 + friend struct FxAutoIrp; 26 31 32 + private: 33 + MdIrp m_Irp; 27 34 35 + public: 28 36 37 + FxIrp() {} 29 38 39 + FxIrp(MdIrp irp) : m_Irp(irp) 40 + { 41 + } 30 42 43 + // A function for when not assigning 31 44 32 - 33 - 34 - 35 - 36 - 37 - 38 - 39 - 40 - 41 - 42 - 43 - 44 - 45 - 46 - 47 - 48 - 49 - 50 - 51 - 52 - 53 - 54 - 55 - 56 - 57 - 58 - 59 - 60 - 61 - 62 - 63 - 64 - 65 - 66 - 67 - 68 - 69 - 70 - 71 - 72 - 73 - 74 - 75 - 76 - 77 - 78 - 79 - 80 - 81 - 82 - 83 - 84 - 85 - 86 - 87 - // A function for when not assigning 45 + MdIrp 46 + SetIrp( 47 + MdIrp irp 48 + ); 88 49 89 50 MdIrp 90 51 GetIrp( ··· 743 704 744 705 static 745 706 NTSTATUS 707 + STDCALL 746 708 _IrpSynchronousCompletion( 747 709 __in MdDeviceObject DeviceObject, 748 710 __in MdIrp OriginalIrp, ··· 841 803 ~FxAutoIrp(); 842 804 }; 843 805 844 - #endif // _FXIRP_H_ 806 + #endif // _FXIRP_HPP_
+5 -5
sdk/lib/drivers/wdf/shared/inc/private/common/fxirpqueue.hpp
··· 31 31 #define _FXIRPQUEUE_H_ 32 32 33 33 #if (FX_CORE_MODE == FX_CORE_KERNEL_MODE) 34 - #include "FxIrpKm.hpp" 34 + #include "fxirpkm.hpp" 35 35 #else 36 - #include "FxIrpUm.hpp" 36 + #include "fxirpum.hpp" 37 37 #endif 38 38 39 39 ··· 52 52 #define FX_IRP_QUEUE_ENTRY_IDENTIFIER 1 53 53 54 54 #if ((FX_CORE_MODE)==(FX_CORE_KERNEL_MODE)) 55 - #include "FxIrpKm.hpp" 56 - #else if ((FX_CORE_MODE)==(FX_CORE_USER_MODE)) 57 - #include "FxIrpUm.hpp" 55 + #include "fxirpkm.hpp" 56 + #elif ((FX_CORE_MODE)==(FX_CORE_USER_MODE)) 57 + #include "fxirpum.hpp" 58 58 #endif 59 59 60 60
+2 -2
sdk/lib/drivers/wdf/shared/inc/private/common/fxldr.h
··· 218 218 #pragma alloc_text (PAGE, WdfVersionBind) 219 219 #pragma alloc_text (PAGE, WdfVersionUnbind) 220 220 #pragma alloc_text (PAGE, WdfRegisterLibrary) 221 - #pragma alloc_text (PAGE, WdfRegisterClassLibrary) 221 + // #pragma alloc_text (PAGE, WdfRegisterClassLibrary) 222 222 #endif 223 223 224 224 #ifdef __cplusplus ··· 246 246 TraceLoggingWideString(ClientImageName, "ClientImageName" ) \ 247 247 ); 248 248 249 - #endif __FXLDR_H__ 249 + #endif // __FXLDR_H__
+2 -2
sdk/lib/drivers/wdf/shared/inc/private/common/fxmacros.hpp
··· 22 22 23 23 24 24 25 - #if defined(_M_ARM) 25 + #if defined(_M_ARM) || defined(__REACTOS__) 26 26 #define FX_VF_PAGING 27 27 #else 28 28 #define FX_VF_PAGING __declspec(code_seg(FX_VF_SECTION_NAME_QUOTED(WDF_FX_VF_SECTION_NAME))) 29 29 #endif 30 30 31 31 #define FX_VF_NAME_TO_IMP_NAME( fnName ) Vf_##fnName 32 - #define FX_VF_NAME_TO_SCOPED_IMP_NAME( classname, fnName ) classname##::Vf_##fnName 32 + #define FX_VF_NAME_TO_SCOPED_IMP_NAME( classname, fnName ) classname::Vf_##fnName 33 33 #define FX_VF_QF_VOID 34 34 #define FX_VF_QF_NTSTATUS _Must_inspect_result_ 35 35 #define FX_VF_DEFAULT_RT_VOID
+1 -1
sdk/lib/drivers/wdf/shared/inc/private/common/fxmdl.h
··· 88 88 #define IoAllocateMdl use_FxMdlAllocate_instead 89 89 #define IoFreeMdl use_FxMdlFree_instead 90 90 91 - #endif __FXMDL_H__ 91 + #endif // __FXMDL_H__
+1 -1
sdk/lib/drivers/wdf/shared/inc/private/common/fxmemoryobject.hpp
··· 189 189 return STATUS_SUCCESS; 190 190 191 191 default: 192 - return __super::QueryInterface(Params); 192 + return FxObject::QueryInterface(Params); // __super call 193 193 } 194 194 } 195 195
+115 -115
sdk/lib/drivers/wdf/shared/inc/private/common/fxmin.hpp
··· 34 34 extern "C" { 35 35 #include "mx.h" 36 36 } 37 - #include "FxMacros.hpp" 37 + #include "fxmacros.hpp" 38 38 39 39 #if (FX_CORE_MODE == FX_CORE_USER_MODE) 40 40 // ··· 81 81 82 82 #include "wdfcore.h" 83 83 #include "wdfdevice.h" 84 - #include "wdfdevicepri.h" 85 - #include "wdfiotargetpri.h" 84 + // #include "wdfdevicepri.h" 85 + // #include "wdfiotargetpri.h" 86 86 #include "wdfdriver.h" 87 87 88 88 #include "wdfmemory.h" 89 89 90 90 #include "wdfrequest.h" 91 91 #include "wdfwmi.h" 92 - #include "wdfChildList.h" 92 + #include "wdfchildlist.h" 93 93 #include "wdfpdo.h" 94 94 #include "wdffdo.h" 95 95 #include "wdfiotarget.h" ··· 113 113 #include "wdfhid.h" 114 114 #endif 115 115 116 - #pragma warning(disable:4200) // suppress nameless struct/union warning 117 - #pragma warning(disable:4201) // suppress nameless struct/union warning 118 - #pragma warning(disable:4214) // suppress bit field types other than int warning 116 + // #pragma warning(disable:4200) // suppress nameless struct/union warning 117 + // #pragma warning(disable:4201) // suppress nameless struct/union warning 118 + // #pragma warning(disable:4214) // suppress bit field types other than int warning 119 119 #include <usb.h> 120 120 #include <usbspec.h> 121 121 #include "wdfusb.h" ··· 160 160 161 161 typedef struct _WDF_OBJECT_CONTEXT_TYPE_INFO_V1_0 *PWDF_OBJECT_CONTEXT_TYPE_INFO_V1_0; 162 162 163 - #include "cobbled.hpp" 163 + // #include "cobbled.hpp" 164 164 165 165 } //extern "C" 166 166 ··· 187 187 #include <wmium.h> 188 188 #endif // FX_CORE_MODE==FX_CORE_USER_MODE 189 189 190 - #include "FxForward.hpp" 190 + #include "fxforward.hpp" 191 191 192 192 #if (FX_CORE_MODE == FX_CORE_USER_MODE) 193 - #include "HostFxUtil.h" 193 + #include "hostfxutil.h" 194 194 #include "wdfplatform.h" 195 195 #include "wdfplatformimpl.h" 196 196 #include "debug.h" ··· 198 198 #include "wudfx_namespace_on.h" 199 199 #include "wudfx.h" 200 200 #include "wudfx_namespace_off.h" 201 - #include "DriverFrameworks-UserMode-UmEvents.h" 201 + #include "driverframeworks-usermode-umevents.h" 202 202 #endif 203 203 204 204 #include "fxtypedefs.hpp" 205 205 206 206 #if defined(EVENT_TRACING) 207 207 #include "fxwmicompat.h" 208 - #include "FxTrace.h" 208 + #include "fxtrace.h" 209 209 #else 210 - #include "DbgTrace.h" 210 + #include "dbgtrace.h" 211 211 #endif // EVENT_TRACING 212 212 213 - #include "FxTypes.h" 213 + #include "fxtypes.h" 214 214 #include "fxrequestcontexttypes.h" 215 - #include "FxPool.h" 215 + #include "fxpool.h" 216 216 217 217 #if (FX_CORE_MODE==FX_CORE_KERNEL_MODE) 218 - #include "FxGlobalsKm.h" 219 - #include "FxPerfTraceKm.hpp" 220 - #include "DriverFrameworks-KernelMode-KmEvents.h" 218 + #include "fxglobalskm.h" 219 + #include "fxperftracekm.hpp" 220 + // #include "DriverFrameworks-KernelMode-KmEvents.h" 221 221 #else 222 - #include "FxGlobalsUm.h" 222 + #include "fxglobalsum.h" 223 223 #endif 224 - #include "FxPoolInlines.hpp" 224 + #include "fxpoolinlines.hpp" 225 225 #include "fxverifier.h" 226 226 #if (FX_CORE_MODE==FX_CORE_KERNEL_MODE) 227 - #include "FxVerifierKm.h" 227 + #include "fxverifierkm.h" 228 228 #else 229 - #include "FxVerifierUm.h" 229 + #include "fxverifierum.h" 230 230 #include "device_common.h" 231 231 #endif 232 232 #if (FX_CORE_MODE==FX_CORE_KERNEL_MODE) 233 - #include "FxMdl.h" 233 + #include "fxmdl.h" 234 234 #endif 235 235 236 - #include "FxProbeAndLock.h" 236 + #include "fxprobeandlock.h" 237 237 //#include "FxPerfTraceKm.hpp" 238 238 //#include <NtStrSafe.h> 239 239 240 - #include "FxStump.hpp" 241 - #include "FxRequestBuffer.hpp" 242 - #include "FxTagTracker.hpp" 240 + #include "fxstump.hpp" 241 + #include "fxrequestbuffer.hpp" 242 + #include "fxtagtracker.hpp" 243 243 244 244 // internal locks 245 - #include "FxVerifierLock.hpp" 246 - #include "FxLock.hpp" 245 + #include "fxverifierlock.hpp" 246 + #include "fxlock.hpp" 247 247 248 248 // base objects 249 - #include "FxObject.hpp" 250 - #include "FxPagedObject.hpp" 251 - #include "FxNonPagedObject.hpp" 249 + #include "fxobject.hpp" 250 + #include "fxpagedobject.hpp" 251 + #include "fxnonpagedobject.hpp" 252 252 253 253 #include "fxhandle.h" 254 254 255 255 // external locks 256 - #include "FxWaitLock.hpp" 256 + #include "fxwaitlock.hpp" 257 257 //#include "FxSpinLock.hpp" 258 258 259 259 // utitilty classes and functions 260 - #include "FxTransactionedList.hpp" 261 - #include "FxRelatedDeviceList.hpp" 262 - #include "FxDisposeList.hpp" 263 - #include "FxCollection.hpp" 264 - #include "StringUtil.hpp" 260 + #include "fxtransactionedlist.hpp" 261 + #include "fxrelateddevicelist.hpp" 262 + #include "fxdisposelist.hpp" 263 + #include "fxcollection.hpp" 264 + #include "stringutil.hpp" 265 265 266 266 // abstract classes 267 - #include "IFxHasCallbacks.hpp" 267 + #include "ifxhascallbacks.hpp" 268 268 269 269 // callback delegation and locking 270 - #include "FxSystemThread.hpp" 271 - #include "FxSystemWorkItem.hpp" 272 - #include "FxCallbackLock.hpp" 273 - #include "FxCallbackSpinLock.hpp" 274 - #include "FxCallbackMutexLock.hpp" 275 - #include "FxCallback.hpp" 276 - #include "FxSystemThread.hpp" 270 + #include "fxsystemthread.hpp" 271 + #include "fxsystemworkitem.hpp" 272 + #include "fxcallbacklock.hpp" 273 + #include "fxcallbackspinlock.hpp" 274 + #include "fxcallbackmutexlock.hpp" 275 + #include "fxcallback.hpp" 276 + #include "fxsystemthread.hpp" 277 277 278 - #include "IFxMemory.hpp" 279 - #include "FxLookasideList.hpp" 280 - //#include "FxNPagedLookasideList.hpp" 281 - //#include "FxPagedLookasideList.hpp" 282 - #include "FxMemoryObject.hpp" 283 - #include "FxMemoryBuffer.hpp" 284 - #include "FxMemoryBufferFromPool.hpp" 285 - #include "FxMemoryBufferPreallocated.hpp" 286 - //#include "FxMemoryBufferFromLookaside.hpp" 287 - #include "FxRequestMemory.hpp" 288 - #include "FxRegKey.hpp" 289 - #include "FxAutoRegistry.hpp" 290 - #include "FxAutoString.hpp" 291 - #include "FxString.hpp" 278 + #include "ifxmemory.hpp" 279 + #include "fxlookasidelist.hpp" 280 + //#include "fxnpagedlookasidelist.hpp" 281 + //#include "fxpagedlookasidelist.hpp" 282 + #include "fxmemoryobject.hpp" 283 + #include "fxmemorybuffer.hpp" 284 + #include "fxmemorybufferfrompool.hpp" 285 + #include "fxmemorybufferpreallocated.hpp" 286 + //#include "fxmemorybufferfromlookaside.hpp" 287 + #include "fxrequestmemory.hpp" 288 + #include "fxregkey.hpp" 289 + #include "fxautoregistry.hpp" 290 + #include "fxautostring.hpp" 291 + #include "fxstring.hpp" 292 292 293 - #include "FxValidateFunctions.hpp" 293 + #include "fxvalidatefunctions.hpp" 294 294 295 - #include "FxResource.hpp" 296 - #include "FxRelatedDevice.hpp" 297 - #include "FxDeviceInterface.hpp" 298 - #include "FxQueryInterface.hpp" 299 - #include "FxDeviceText.hpp" 295 + #include "fxresource.hpp" 296 + #include "fxrelateddevice.hpp" 297 + #include "fxdeviceinterface.hpp" 298 + #include "fxqueryinterface.hpp" 299 + #include "fxdevicetext.hpp" 300 300 301 301 #if (FX_CORE_MODE == FX_CORE_USER_MODE) 302 - #include "FxIrpUm.hpp" 303 - #include "FxInterruptThreadpoolUm.hpp" 302 + #include "fxirpum.hpp" 303 + #include "fxinterruptthreadpoolum.hpp" 304 304 #else 305 - #include "FxIrpKm.hpp" 305 + #include "fxirpkm.hpp" 306 306 #endif 307 - #include "FxDriver.hpp" 307 + #include "fxdriver.hpp" 308 308 309 309 // generic package interface 310 - #include "FxPackage.hpp" 311 - #include "FxPkgGeneral.hpp" 312 - #include "FxDefaultIrpHandler.hpp" 313 - //#include "FxPoxKm.hpp" 314 - #include "FxPkgPnp.hpp" 315 - #include "FxWatchDog.hpp" 310 + #include "fxpackage.hpp" 311 + #include "fxpkggeneral.hpp" 312 + #include "fxdefaultirphandler.hpp" 313 + //#include "fxpoxkm.hpp" 314 + #include "fxpkgpnp.hpp" 315 + #include "fxwatchdog.hpp" 316 316 317 317 // Device supportfx 318 - #include "FxChildList.hpp" 319 - #include "FxCxDeviceInfo.hpp" 318 + #include "fxchildlist.hpp" 319 + #include "fxcxdeviceinfo.hpp" 320 320 321 - #include "FxDevice.hpp" 321 + #include "fxdevice.hpp" 322 322 323 - #include "FxPkgIo.hpp" 323 + #include "fxpkgio.hpp" 324 324 325 - #include "FxDeviceToMxInterface.hpp" 325 + #include "fxdevicetomxinterface.hpp" 326 326 327 - #include "FxIrpQueue.hpp" 328 - #include "FxRequestContext.hpp" 329 - #include "FxRequestCallbacks.hpp" 330 - #include "FxRequestBase.hpp" 331 - #include "FxRequest.hpp" 332 - #include "FxSyncRequest.hpp" 327 + #include "fxirpqueue.hpp" 328 + #include "fxrequestcontext.hpp" 329 + #include "fxrequestcallbacks.hpp" 330 + #include "fxrequestbase.hpp" 331 + #include "fxrequest.hpp" 332 + #include "fxsyncrequest.hpp" 333 333 334 - #include "FxRequestValidateFunctions.hpp" 334 + #include "fxrequestvalidatefunctions.hpp" 335 335 336 336 // specialized irp handlers (ie packages) 337 - #include "FxPkgFdo.hpp" 338 - #include "FxPkgPdo.hpp" 337 + #include "fxpkgfdo.hpp" 338 + #include "fxpkgpdo.hpp" 339 339 340 - //#include "FxWmiIrpHandler.hpp" 341 - //#include "FxWmiProvider.hpp" 342 - //#include "FxWmiInstance.hpp" 340 + //#include "fxwmiirphandler.hpp" 341 + //#include "fxwmiprovider.hpp" 342 + //#include "fxwmiinstance.hpp" 343 343 344 344 // queus for read, write, (internal) IOCTL 345 - #include "FxIoQueue.hpp" 346 - #include "FxFileObject.hpp" 347 - #include "FxIrpPreprocessInfo.hpp" 348 - #include "FxIrpDynamicDispatchInfo.hpp" 345 + #include "fxioqueue.hpp" 346 + #include "fxfileobject.hpp" 347 + #include "fxirppreprocessinfo.hpp" 348 + #include "fxirpdynamicdispatchinfo.hpp" 349 349 350 - //#include "FxDpc.hpp" 351 - #include "FxWorkItem.hpp" 352 - #include "FxTimer.hpp" 350 + //#include "fxdpc.hpp" 351 + #include "fxworkitem.hpp" 352 + #include "fxtimer.hpp" 353 353 #if FX_CORE_MODE==FX_CORE_USER_MODE 354 - #include "FxInterruptUm.hpp" 355 - #include "FxMessageDispatchUm.hpp" 354 + #include "fxinterruptum.hpp" 355 + #include "fxmessagedispatchum.hpp" 356 356 #else 357 - #include "FxInterruptKm.hpp" 357 + #include "fxinterruptkm.hpp" 358 358 #endif 359 359 360 360 // IO targets (device lower edge interface) 361 - #include "FxIoTarget.hpp" 362 - #include "FxIoTargetRemote.hpp" 363 - #include "FxIoTargetSelf.hpp" 361 + #include "fxiotarget.hpp" 362 + #include "fxiotargetremote.hpp" 363 + #include "fxiotargetself.hpp" 364 364 365 - #include "FxUsbDevice.hpp" 366 - #include "FxUsbInterface.hpp" 367 - #include "FxUsbPipe.hpp" 365 + #include "fxusbdevice.hpp" 366 + #include "fxusbinterface.hpp" 367 + #include "fxusbpipe.hpp" 368 368 369 369 // DMA support 370 - //#include "FxDmaEnabler.hpp" 371 - //#include "FxDmaTransaction.hpp" 372 - //#include "FxCommonBuffer.hpp" 370 + //#include "fxdmaenabler.hpp" 371 + //#include "fxdmatransaction.hpp" 372 + //#include "fxcommonbuffer.hpp" 373 373 374 374 // Triage info. 375 - #include "wdftriage.h" 375 + // #include "wdftriage.h" 376 376 377 377 378 - #include "FxPkgIoShared.hpp" 378 + #include "fxpkgioshared.hpp" 379 379 380 380 #if FX_CORE_MODE==FX_CORE_USER_MODE 381 - #include "UfxVerifier.h" 381 + #include "ufxverifier.h" 382 382 #endif 383 383 384 384
+2 -2
sdk/lib/drivers/wdf/shared/inc/private/common/fxobject.hpp
··· 66 66 // We cannot define FxHandleValueMask as an enumerant in FxHandleFlags because 67 67 // an enum is limited to sizeof(ULONG), which doesn't work for us on a 64 bit OS 68 68 // 69 - extern __declspec(selectany) const ULONG_PTR FxHandleValueMask = (~((ULONG_PTR) FxHandleFlagMask)); 69 + extern DECLSPEC_SELECTANY const ULONG_PTR FxHandleValueMask = (~((ULONG_PTR) FxHandleFlagMask)); 70 70 71 71 // 72 72 // The type itself is aligned, but the pointer is not b/c those interested in the ··· 114 114 // 1) have its size rounded up to an alignment value 115 115 // 2) extra size and context header appended to the allocation 116 116 // 117 - enum FxObjectType { 117 + enum FxObjectType : UINT32 { 118 118 FxObjectTypeInvalid = 0, 119 119 FxObjectTypeInternal, 120 120 FxObjectTypeExternal,
+2
sdk/lib/drivers/wdf/shared/inc/private/common/fxpkgfdo.hpp
··· 467 467 _Must_inspect_result_ 468 468 static 469 469 NTSTATUS 470 + STDCALL 470 471 _PnpFilteredStartDeviceCompletionRoutine( 471 472 __in MdDeviceObject DeviceObject, 472 473 __inout MdIrp Irp, ··· 476 477 _Must_inspect_result_ 477 478 static 478 479 NTSTATUS 480 + STDCALL 479 481 _PnpStartDeviceCompletionRoutine( 480 482 __in MdDeviceObject DeviceObject, 481 483 __inout MdIrp Irp,
+1 -1
sdk/lib/drivers/wdf/shared/inc/private/common/fxpkggeneral.hpp
··· 26 26 #ifndef _FXPKGGENERAL_H_ 27 27 #define _FXPKGGENERAL_H_ 28 28 29 - #include "FxFileObjectCallbacks.hpp" 29 + #include "fxfileobjectcallbacks.hpp" 30 30 31 31 class FxShutDown : public FxCallback { 32 32
+4 -4
sdk/lib/drivers/wdf/shared/inc/private/common/fxpkgio.hpp
··· 28 28 29 29 30 30 31 - #include "FxPkgIoShared.hpp" 32 - #include "FxIrpDynamicDispatchInfo.hpp" 33 - #include "FxDeviceCallbacks.hpp" 34 - #include "FxCxDeviceInfo.hpp" 31 + #include "fxpkgioshared.hpp" 32 + #include "fxirpdynamicdispatchinfo.hpp" 33 + #include "fxdevicecallbacks.hpp" 34 + #include "fxcxdeviceinfo.hpp" 35 35 36 36 // 37 37 // This flag is or-ed with a pointer value that is ptr aligned, only lower 2 bits are available.
+2
sdk/lib/drivers/wdf/shared/inc/private/common/fxpkgpdo.hpp
··· 284 284 285 285 static 286 286 VOID 287 + STDCALL 287 288 _QueryCapsWorkItem( 288 289 __in MdDeviceObject DeviceObject, 289 290 __in PVOID Context ··· 574 575 575 576 static 576 577 VOID 578 + STDCALL 577 579 _RemoveAndReenumerateSelf( 578 580 __in PVOID Context 579 581 );
+19 -12
sdk/lib/drivers/wdf/shared/inc/private/common/fxpkgpnp.hpp
··· 76 76 77 77 // @@SMVERIFY_SPLIT_END 78 78 79 - #include "FxPnpCallbacks.hpp" 79 + #include "fxpnpcallbacks.hpp" 80 80 81 - #include "FxEventQueue.hpp" 81 + #include "fxeventqueue.hpp" 82 82 83 83 // 84 84 // Bit-flags for tracking which callback is currently executing. ··· 119 119 // be instantiated only in drivers which are the power policy owners 120 120 // for their device stacks, which usually amounts to the being the FDO. 121 121 // 122 - #include "FxPnpStateMachine.hpp" 123 - #include "FxPowerStateMachine.hpp" 124 - #include "FxPowerPolicyStateMachine.hpp" 122 + #include "fxpnpstatemachine.hpp" 123 + #include "fxpowerstatemachine.hpp" 124 + #include "fxpowerpolicystatemachine.hpp" 125 125 126 - #include "FxSelfManagedIoStateMachine.hpp" 126 + #include "fxselfmanagediostatemachine.hpp" 127 127 128 128 // 129 129 // Group these here instead of in the individual headers because, for some reason, ··· 423 423 ULONG D1Latency; 424 424 ULONG D2Latency; 425 425 ULONG D3Latency; 426 + }; 427 + 428 + enum FxWmiInstanceAction : UINT32 { 429 + AddInstance, 430 + RemoveInstance 426 431 }; 427 432 428 433 struct FxEnumerationInfo : public FxStump { ··· 1732 1737 1733 1738 static 1734 1739 WDF_DEVICE_POWER_STATE 1735 - FxPkgPnp::PowerUpFailedDerefParentNP( 1740 + PowerUpFailedDerefParentNP( 1736 1741 __inout FxPkgPnp* This 1737 1742 ); 1738 1743 1739 1744 static 1740 1745 WDF_DEVICE_POWER_STATE 1741 - FxPkgPnp::PowerUpFailedNP( 1746 + PowerUpFailedNP( 1742 1747 __inout FxPkgPnp* This 1743 1748 ); 1744 1749 1745 1750 static 1746 1751 WDF_DEVICE_POWER_STATE 1747 - FxPkgPnp::PowerNotifyingD0ExitToWakeInterrupts( 1752 + PowerNotifyingD0ExitToWakeInterrupts( 1748 1753 __inout FxPkgPnp* This 1749 1754 ); 1750 1755 1751 1756 static 1752 1757 WDF_DEVICE_POWER_STATE 1753 - FxPkgPnp::PowerNotifyingD0EntryToWakeInterrupts( 1758 + PowerNotifyingD0EntryToWakeInterrupts( 1754 1759 __inout FxPkgPnp* This 1755 1760 ); 1756 1761 1757 1762 static 1758 1763 WDF_DEVICE_POWER_STATE 1759 - FxPkgPnp::PowerNotifyingD0ExitToWakeInterruptsNP( 1764 + PowerNotifyingD0ExitToWakeInterruptsNP( 1760 1765 __inout FxPkgPnp* This 1761 1766 ); 1762 1767 1763 1768 static 1764 1769 WDF_DEVICE_POWER_STATE 1765 - FxPkgPnp::PowerNotifyingD0EntryToWakeInterruptsNP( 1770 + PowerNotifyingD0EntryToWakeInterruptsNP( 1766 1771 __inout FxPkgPnp* This 1767 1772 ); 1768 1773 ··· 3953 3958 3954 3959 static 3955 3960 VOID 3961 + STDCALL 3956 3962 _PowerThreadInterfaceReference( 3957 3963 __inout PVOID Context 3958 3964 ); 3959 3965 3960 3966 static 3961 3967 VOID 3968 + STDCALL 3962 3969 _PowerThreadInterfaceDereference( 3963 3970 __inout PVOID Context 3964 3971 );
+2 -2
sdk/lib/drivers/wdf/shared/inc/private/common/fxpowerpolicystatemachine.hpp
··· 4 4 #ifndef _FXPOWERPOLICYSTATEMACHINE_H_ 5 5 #define _FXPOWERPOLICYSTATEMACHINE_H_ 6 6 7 - #include "FxPowerIdleStateMachine.hpp" 8 - #include "FxPoxInterface.hpp" 7 + #include "fxpoweridlestatemachine.hpp" 8 + #include "fxpoxinterface.hpp" 9 9 10 10 // @@SMVERIFY_SPLIT_BEGIN 11 11 //
+1 -1
sdk/lib/drivers/wdf/shared/inc/private/common/fxpowerstatemachine.hpp
··· 44 44 // 45 45 PowerSingularEventMask = PowerParentToD0, 46 46 47 - PowerEventMaximum = 0xFFFFFFFF, 47 + PowerEventMaximum = 0xFFFF, 48 48 }; 49 49 50 50 union FxPowerStateInfo {
+1 -1
sdk/lib/drivers/wdf/shared/inc/private/common/fxpoxinterface.hpp
··· 4 4 #ifndef _FXPOXINTERFACE_H_ 5 5 #define _FXPOXINTERFACE_H_ 6 6 7 - #include "FxDevicePwrReqStateMachine.hpp" 7 + #include "fxdevicepwrreqstatemachine.hpp" 8 8 9 9 class FxPoxInterface { 10 10
+3 -3
sdk/lib/drivers/wdf/shared/inc/private/common/fxrelateddevicelist.hpp
··· 19 19 __in PFX_DRIVER_GLOBALS FxDriverGlobals 20 20 ) 21 21 { 22 - __super::LockForEnum(FxDriverGlobals); 22 + FxSpinLockTransactionedList::LockForEnum(FxDriverGlobals); // __super call 23 23 } 24 24 25 25 VOID ··· 27 27 __in PFX_DRIVER_GLOBALS FxDriverGlobals 28 28 ) 29 29 { 30 - __super::UnlockFromEnum(FxDriverGlobals); 30 + FxSpinLockTransactionedList::UnlockFromEnum(FxDriverGlobals); // __super call 31 31 } 32 32 33 33 _Must_inspect_result_ ··· 109 109 ULONG m_NeedReportMissing; 110 110 }; 111 111 112 - #endif _FXRELATEDDEVICELIST_H_ 112 + #endif // _FXRELATEDDEVICELIST_H_
+2 -2
sdk/lib/drivers/wdf/shared/inc/private/common/fxrequest.hpp
··· 639 639 ); 640 640 641 641 #if DBG 642 - FxRequest::~FxRequest( 642 + ~FxRequest( 643 643 VOID 644 644 ); 645 645 #endif // DBG ··· 1300 1300 1301 1301 ASSERT(m_ForwardRequestToParent == FALSE); 1302 1302 1303 - __super::ClearFieldsForReuse(); 1303 + FxRequestBase::ClearFieldsForReuse(); // __super call 1304 1304 } 1305 1305 1306 1306 virtual
+8 -5
sdk/lib/drivers/wdf/shared/inc/private/common/fxrequestbase.hpp
··· 30 30 #ifndef _FXREQUESTBASE_H_ 31 31 #define _FXREQUESTBASE_H_ 32 32 33 - #include "FxRequestCallbacks.hpp" 33 + #include "fxrequestcallbacks.hpp" 34 + 35 + #define WDF_REQUEST_REUSE_MUST_COMPLETE 2 34 36 35 37 36 38 // ··· 293 295 } 294 296 295 297 __inline 298 + BOOLEAN 296 299 HasContext( 297 300 VOID 298 301 ) ··· 690 693 VOID 691 694 ); 692 695 693 - __declspec(noreturn) 696 + DECLSPEC_NORETURN 694 697 VOID 695 698 FatalError( 696 699 __in NTSTATUS Status ··· 950 953 }; 951 954 952 955 #if ((FX_CORE_MODE)==(FX_CORE_KERNEL_MODE)) 953 - #include "FxRequestBaseKm.hpp" 954 - #else if ((FX_CORE_MODE)==(FX_CORE_USER_MODE)) 955 - #include "FxRequestBaseUm.hpp" 956 + #include "fxrequestbasekm.hpp" 957 + #elif ((FX_CORE_MODE)==(FX_CORE_USER_MODE)) 958 + #include "fxrequestbaseum.hpp" 956 959 #endif 957 960 958 961
+3 -3
sdk/lib/drivers/wdf/shared/inc/private/common/fxrequestbuffer.hpp
··· 148 148 }; 149 149 150 150 #if ((FX_CORE_MODE)==(FX_CORE_KERNEL_MODE)) 151 - #include "FxRequestBufferKm.hpp" 152 - #else if ((FX_CORE_MODE)==(FX_CORE_USER_MODE)) 153 - #include "FxRequestBufferUm.hpp" 151 + #include "fxrequestbufferkm.hpp" 152 + #elif ((FX_CORE_MODE)==(FX_CORE_USER_MODE)) 153 + #include "fxrequestbufferum.hpp" 154 154 #endif 155 155 156 156
+3 -3
sdk/lib/drivers/wdf/shared/inc/private/common/fxsyncrequest.hpp
··· 71 71 ASSERTMSG("FxSyncRequest::operator new called, should only be" 72 72 " declared on the stack\n", FALSE); 73 73 74 - return NULL; 74 + return (PVOID)1; 75 75 } 76 76 77 77 public: ··· 81 81 VOID 82 82 ) 83 83 { 84 - NTSTATUS status; 84 + NTSTATUS status = STATUS_SUCCESS; 85 85 86 86 #if (FX_CORE_MODE == FX_CORE_USER_MODE) 87 87 // ··· 118 118 BOOLEAN m_ClearContextOnDestroy; 119 119 }; 120 120 121 - #endif _FXSYNCREQUEST_H_ 121 + #endif // _FXSYNCREQUEST_H_
+2
sdk/lib/drivers/wdf/shared/inc/private/common/fxsystemthread.hpp
··· 256 256 // 257 257 static 258 258 VOID 259 + STDCALL 259 260 StaticThreadThunk( 260 261 __inout PVOID Context 261 262 ); ··· 281 282 // 282 283 static 283 284 VOID 285 + STDCALL 284 286 StaticReaperThunk( 285 287 __inout PVOID Context 286 288 );
+1 -1
sdk/lib/drivers/wdf/shared/inc/private/common/fxsystemworkitem.hpp
··· 130 130 break; 131 131 132 132 default: 133 - return __super::QueryInterface(Params); 133 + return FxNonPagedObject::QueryInterface(Params); // __super call 134 134 } 135 135 136 136 return STATUS_SUCCESS;
+4 -4
sdk/lib/drivers/wdf/shared/inc/private/common/fxtelemetry.hpp
··· 28 28 #pragma once 29 29 30 30 #include <strsafe.h> 31 - #include "FxTelemetryCommon.hpp" 31 + #include "fxtelemetrycommon.hpp" 32 32 33 33 #if (FX_CORE_MODE == FX_CORE_KERNEL_MODE) 34 - #include "FxTelemetryKm.hpp" 34 + #include "fxtelemetrykm.hpp" 35 35 #else 36 - #include "FxTelemetryUm.hpp" 36 + #include "fxtelemetryum.hpp" 37 37 #endif 38 38 39 39 #if defined(__cplusplus) 40 40 extern "C" { 41 41 #endif 42 42 43 - TRACELOGGING_DECLARE_PROVIDER(g_TelemetryProvider); 43 + // TRACELOGGING_DECLARE_PROVIDER(g_TelemetryProvider); __REACTOS__ 44 44 45 45 #define FX_TELEMETRY_ENABLED(TraceHandle, Globals) \ 46 46 (TraceHandle && IsDriverTelemetryContextInitialized(Globals)) \
+2 -2
sdk/lib/drivers/wdf/shared/inc/private/common/fxtelemetrycommon.hpp
··· 33 33 // MmGetSystemRoutineAddress. This allows our code to be backwards compatible to Win7 34 34 // 35 35 #define TLG_HAVE_EVENT_SET_INFORMATION 2 36 - #include <traceloggingprovider.h> 37 - #include <telemetry\MicrosoftTelemetry.h> 36 + // #include <traceloggingprovider.h> 37 + // #include <telemetry\MicrosoftTelemetry.h> 38 38 39 39 // WDF01000.sys 40 40 #define KMDF_FX_TRACE_LOGGING_PROVIDER_NAME "Microsoft.Wdf.KMDF.Fx"
+2
sdk/lib/drivers/wdf/shared/inc/private/common/fxtransactionedlist.hpp
··· 274 274 275 275 __inline 276 276 NTSTATUS 277 + #ifdef _MSC_VER 277 278 #pragma prefast(suppress:__WARNING_UNMATCHED_DEFN, "_Must_inspect_result_ not needed in kernel mode as the function always succeeds"); 279 + #endif 278 280 Initialize( 279 281 VOID 280 282 )
+2 -2
sdk/lib/drivers/wdf/shared/inc/private/common/fxtypedefs.hpp
··· 31 31 32 32 #if (FX_CORE_MODE==FX_CORE_KERNEL_MODE) 33 33 34 - #include "fxtypedefsKm.hpp" 34 + #include "fxtypedefskm.hpp" 35 35 36 36 #else 37 37 38 - #include "fxtypedefsUm.hpp" 38 + #include "fxtypedefsum.hpp" 39 39 40 40 #endif 41 41
+4 -1
sdk/lib/drivers/wdf/shared/inc/private/common/fxusbdevice.hpp
··· 21 21 #ifndef _FXUSBDEVICE_H_ 22 22 #define _FXUSBDEVICE_H_ 23 23 24 - #include "FxUsbRequestContext.hpp" 24 + #include "fxusbrequestcontext.hpp" 25 25 26 26 typedef enum _FX_URB_TYPE : UCHAR { 27 27 FxUrbTypeLegacy, ··· 214 214 ); 215 215 216 216 __inline 217 + VOID 217 218 CopyDeviceDescriptor( 218 219 __out PUSB_DEVICE_DESCRIPTOR UsbDeviceDescriptor 219 220 ) ··· 449 450 PURB* Urb 450 451 ); 451 452 453 + #ifdef _MSC_VER 452 454 #pragma warning(disable:28285) 455 + #endif 453 456 __checkReturn 454 457 NTSTATUS 455 458 CreateIsochUrb(
+1
sdk/lib/drivers/wdf/shared/inc/private/common/fxusbidleinfo.hpp
··· 37 37 __drv_maxIRQL(PASSIVE_LEVEL) 38 38 static 39 39 VOID 40 + STDCALL 40 41 _UsbIdleCallback( 41 42 __in PVOID Context 42 43 );
+2 -2
sdk/lib/drivers/wdf/shared/inc/private/common/fxusbinterface.hpp
··· 6 6 7 7 extern "C" { 8 8 #include <usbdrivr.h> 9 - #include <WdfUsb.h> 9 + #include <wdfusb.h> 10 10 } 11 11 12 - #include "FxUsbRequestContext.hpp" 12 + #include "fxusbrequestcontext.hpp" 13 13 14 14 #define FX_USB_INTERFACE_TAG 'uItG' //using a random uniqure value 15 15
+2 -2
sdk/lib/drivers/wdf/shared/inc/private/common/fxusbpipe.hpp
··· 4 4 #ifndef _FXUSBPIPE_H_ 5 5 #define _FXUSBPIPE_H_ 6 6 7 - #include "FxUsbRequestContext.hpp" 8 - #include "FxUsbInterface.hpp" 7 + #include "fxusbrequestcontext.hpp" 8 + #include "fxusbinterface.hpp" 9 9 10 10 // 11 11 // Technically, EHCI can support 4MB, but the usb driver stack doesn't
+1 -1
sdk/lib/drivers/wdf/shared/inc/private/common/fxusbrequestcontext.hpp
··· 48 48 ) 49 49 { 50 50 m_UsbParameters.UsbdStatus = GetUsbdStatus(); 51 - __super::CopyParameters(Request); 51 + FxRequestContext::CopyParameters(Request); // __super call 52 52 } 53 53 54 54 VOID
+1 -1
sdk/lib/drivers/wdf/shared/inc/private/common/fxuserobject.hpp
··· 63 63 break; 64 64 65 65 default: 66 - return __super::QueryInterface(Params); 66 + return FxNonPagedObject::QueryInterface(Params); // __super call 67 67 } 68 68 69 69 return STATUS_SUCCESS;
+2 -2
sdk/lib/drivers/wdf/shared/inc/private/common/fxverifier.h
··· 137 137 } 138 138 } 139 139 140 + DECLSPEC_NORETURN 140 141 VOID 141 - __declspec(noreturn) 142 142 FxVerifierBugCheckWorker( 143 143 __in PFX_DRIVER_GLOBALS FxDriverGlobals, 144 144 __in WDF_BUGCHECK_CODES WdfBugCheckCode, ··· 146 146 __in_opt ULONG_PTR BugCheckParameter3 = 0 147 147 ); 148 148 149 + DECLSPEC_NORETURN 149 150 VOID 150 - __declspec(noreturn) 151 151 FxVerifierNullBugCheck( 152 152 __in PFX_DRIVER_GLOBALS FxDriverGlobals, 153 153 __in PVOID ReturnAddress
+2 -2
sdk/lib/drivers/wdf/shared/inc/private/common/fxverifierlock.hpp
··· 157 157 #define FX_CALLBACKLOCK_ORDER_PACKAGE 0x30 158 158 #define FX_CALLBACKLOCK_ORDER_QUEUE 0x31 159 159 160 - #define FX_VERIFIER_LOCK_ENTRY(FX_OBJECT_TYPE, FX_LOCK_ORDER) { ##FX_OBJECT_TYPE, ##FX_LOCK_ORDER } 160 + #define FX_VERIFIER_LOCK_ENTRY(FX_OBJECT_TYPE, FX_LOCK_ORDER) { FX_OBJECT_TYPE, FX_LOCK_ORDER } 161 161 162 162 // Internal FxLock spinlock entries 163 163 #define FX_VERIFIER_LOCK_ENTRIES() \ ··· 303 303 ); 304 304 305 305 void 306 - FxVerifierLock::FxVerifierLockDumpDetails( 306 + FxVerifierLockDumpDetails( 307 307 __in FxVerifierLock* Lock, 308 308 __in PVOID curThread, 309 309 __in FxVerifierLock* PerThreadList
+1 -1
sdk/lib/drivers/wdf/shared/inc/private/common/fxwaitlock.hpp
··· 337 337 Initialize( 338 338 ) 339 339 { 340 - return __super::Initialize(); 340 + return FxWaitLockInternal::Initialize(); // __super call 341 341 } 342 342 343 343 FxWaitLock(
+1 -1
sdk/lib/drivers/wdf/shared/inc/private/common/fxwakeinterruptstatemachine.hpp
··· 11 11 // 12 12 const UCHAR FxWakeInterruptEventQueueDepth = 8; 13 13 14 - enum FxWakeInterruptEvents { 14 + enum FxWakeInterruptEvents : UINT32 { 15 15 WakeInterruptEventInvalid = 0x00, 16 16 WakeInterruptEventIsr = 0x01, 17 17 WakeInterruptEventEnteringD0 = 0x02,
+1 -1
sdk/lib/drivers/wdf/shared/inc/private/km/fxdmaenabler.hpp
··· 24 24 #ifndef __FX_DMA_ENABLER_HPP__ 25 25 #define __FX_DMA_ENABLER_HPP__ 26 26 27 - #include "FxDmaEnablerCallbacks.hpp" 27 + #include "fxdmaenablercallbacks.hpp" 28 28 29 29 // 30 30 // Dma Description structure
+3 -1
sdk/lib/drivers/wdf/shared/inc/private/km/fxglobalskm.h
··· 250 250 ); 251 251 252 252 typedef 253 + VOID 253 254 (*PFN_POX_ACTIVATE_COMPONENT) ( 254 255 __in POHANDLE Handle, 255 256 __in ULONG Component, ··· 257 258 ); 258 259 259 260 typedef 261 + VOID 260 262 (*PFN_POX_IDLE_COMPONENT) ( 261 263 __in POHANDLE Handle, 262 264 __in ULONG Component, ··· 456 458 } FX_DRIVER_TRACKER_CACHE_AWARE, *PFX_DRIVER_TRACKER_CACHE_AWARE; 457 459 458 460 459 - #include "FxGlobals.h" 461 + #include "fxglobals.h" 460 462 461 463 462 464 //
+1 -1
sdk/lib/drivers/wdf/shared/inc/private/km/fxinterruptkm.hpp
··· 27 27 #ifndef _FXINTERRUPTKM_H_ 28 28 #define _FXINTERRUPTKM_H_ 29 29 30 - #include "FxInterrupt.hpp" 30 + #include "fxinterrupt.hpp" 31 31 32 32 __inline 33 33 struct _KINTERRUPT*
+1 -1
sdk/lib/drivers/wdf/shared/inc/private/km/fxiotargetkm.hpp
··· 127 127 // 128 128 // Release the other buffer and all __super related fields 129 129 // 130 - __super::ReleaseAndRestore(Request); 130 + FxRequestContext::ReleaseAndRestore(Request); // __super call 131 131 } 132 132 133 133 __inline
+13 -1
sdk/lib/drivers/wdf/shared/inc/private/km/fxirpkm.hpp
··· 53 53 __in PVOID CancelContext 54 54 ); 55 55 56 - #include "FxIrp.hpp" 56 + #include "fxirp.hpp" 57 57 58 58 59 59 ··· 64 64 ) 65 65 { 66 66 return m_Irp; 67 + } 68 + 69 + __inline 70 + MdIrp 71 + FxIrp::SetIrp( 72 + MdIrp irp 73 + ) 74 + { 75 + MdIrp old = m_Irp; 76 + m_Irp = irp; 77 + return old; 67 78 } 68 79 69 80 __inline ··· 174 185 175 186 __inline 176 187 NTSTATUS 188 + STDCALL 177 189 FxIrp::_IrpSynchronousCompletion( 178 190 __in MdDeviceObject DeviceObject, 179 191 __in PIRP OriginalIrp,
+48 -46
sdk/lib/drivers/wdf/shared/inc/private/km/fxperftracekm.hpp
··· 33 33 #define WDF_INTERRUPT_EVENT_VERSION_2 2 34 34 #define WDF_WORK_ITEM_EVENT_VERSION_2 2 35 35 36 + // __REACTOS__ : functions are commented out 37 + 36 38 FORCEINLINE 37 39 VOID 38 40 FxPerfTraceDpc( 39 41 _In_ PVOID DriverCallback 40 42 ) 41 43 { 42 - PWMI_WDF_NOTIFY_ROUTINE perfTraceCallback = NULL; 44 + // PWMI_WDF_NOTIFY_ROUTINE perfTraceCallback = NULL; 43 45 44 - // 45 - // Trace driver's ISR using perf trace callback. If the perf trace callback 46 - // is NULL, it means either perf tracing is not enabled, or this OS 47 - // doesn't support perf tracing for WDF (note only win8+ supports WDF perf 48 - // trace callbacks). 49 - // 50 - perfTraceCallback = FxLibraryGlobals.PerfTraceRoutines->DpcNotifyRoutine; 51 - if (perfTraceCallback != NULL) { 52 - (perfTraceCallback) (DriverCallback, // event data 53 - sizeof(PVOID), // sizeof event 54 - PERF_WDF_DPC, // group mask 55 - PERFINFO_LOG_TYPE_WDF_DPC, // hook id 56 - WDF_DPC_EVENT_VERSION_2 // version 57 - ); 58 - } 46 + // // 47 + // // Trace driver's ISR using perf trace callback. If the perf trace callback 48 + // // is NULL, it means either perf tracing is not enabled, or this OS 49 + // // doesn't support perf tracing for WDF (note only win8+ supports WDF perf 50 + // // trace callbacks). 51 + // // 52 + // perfTraceCallback = FxLibraryGlobals.PerfTraceRoutines->DpcNotifyRoutine; 53 + // if (perfTraceCallback != NULL) { 54 + // (perfTraceCallback) (DriverCallback, // event data 55 + // sizeof(PVOID), // sizeof event 56 + // PERF_WDF_DPC, // group mask 57 + // PERFINFO_LOG_TYPE_WDF_DPC, // hook id 58 + // WDF_DPC_EVENT_VERSION_2 // version 59 + // ); 60 + // } 59 61 } 60 62 61 63 FORCEINLINE ··· 64 66 _In_ PVOID DriverCallback 65 67 ) 66 68 { 67 - PWMI_WDF_NOTIFY_ROUTINE perfTraceCallback = NULL; 69 + // PWMI_WDF_NOTIFY_ROUTINE perfTraceCallback = NULL; 68 70 69 - perfTraceCallback = FxLibraryGlobals.PerfTraceRoutines->InterruptNotifyRoutine; 70 - if (perfTraceCallback != NULL) { 71 - (perfTraceCallback) (DriverCallback, // event data 72 - sizeof(PVOID), // sizeof event 73 - PERF_WDF_INTERRUPT, // group mask 74 - PERFINFO_LOG_TYPE_WDF_INTERRUPT, // hook id 75 - WDF_INTERRUPT_EVENT_VERSION_2 // version 76 - ); 77 - } 71 + // perfTraceCallback = FxLibraryGlobals.PerfTraceRoutines->InterruptNotifyRoutine; 72 + // if (perfTraceCallback != NULL) { 73 + // (perfTraceCallback) (DriverCallback, // event data 74 + // sizeof(PVOID), // sizeof event 75 + // PERF_WDF_INTERRUPT, // group mask 76 + // PERFINFO_LOG_TYPE_WDF_INTERRUPT, // hook id 77 + // WDF_INTERRUPT_EVENT_VERSION_2 // version 78 + // ); 79 + // } 78 80 } 79 81 80 82 FORCEINLINE ··· 83 85 _In_ PVOID DriverCallback 84 86 ) 85 87 { 86 - PWMI_WDF_NOTIFY_ROUTINE perfTraceCallback = NULL; 88 + // PWMI_WDF_NOTIFY_ROUTINE perfTraceCallback = NULL; 87 89 88 - perfTraceCallback = FxLibraryGlobals.PerfTraceRoutines->InterruptNotifyRoutine; 89 - if (perfTraceCallback != NULL) { 90 - (perfTraceCallback) (DriverCallback, 91 - sizeof(PVOID), 92 - PERF_WDF_INTERRUPT, 93 - PERFINFO_LOG_TYPE_WDF_PASSIVE_INTERRUPT, 94 - WDF_INTERRUPT_EVENT_VERSION_2 95 - ); 96 - } 90 + // perfTraceCallback = FxLibraryGlobals.PerfTraceRoutines->InterruptNotifyRoutine; 91 + // if (perfTraceCallback != NULL) { 92 + // (perfTraceCallback) (DriverCallback, 93 + // sizeof(PVOID), 94 + // PERF_WDF_INTERRUPT, 95 + // PERFINFO_LOG_TYPE_WDF_PASSIVE_INTERRUPT, 96 + // WDF_INTERRUPT_EVENT_VERSION_2 97 + // ); 98 + // } 97 99 } 98 100 99 101 FORCEINLINE ··· 102 104 _In_ PVOID DriverCallback 103 105 ) 104 106 { 105 - PWMI_WDF_NOTIFY_ROUTINE perfTraceCallback = NULL; 107 + // PWMI_WDF_NOTIFY_ROUTINE perfTraceCallback = NULL; 106 108 107 - perfTraceCallback = FxLibraryGlobals.PerfTraceRoutines->WorkItemNotifyRoutine; 108 - if (perfTraceCallback != NULL) { 109 - (perfTraceCallback) (DriverCallback, 110 - sizeof(PVOID), 111 - PERF_WORKER_THREAD, 112 - PERFINFO_LOG_TYPE_WDF_WORK_ITEM, 113 - WDF_WORK_ITEM_EVENT_VERSION_2 114 - ); 115 - } 109 + // perfTraceCallback = FxLibraryGlobals.PerfTraceRoutines->WorkItemNotifyRoutine; 110 + // if (perfTraceCallback != NULL) { 111 + // (perfTraceCallback) (DriverCallback, 112 + // sizeof(PVOID), 113 + // PERF_WORKER_THREAD, 114 + // PERFINFO_LOG_TYPE_WDF_WORK_ITEM, 115 + // WDF_WORK_ITEM_EVENT_VERSION_2 116 + // ); 117 + // } 116 118 } 117 119
+1 -1
sdk/lib/drivers/wdf/shared/inc/private/um/fxiotargetum.hpp
··· 66 66 // 67 67 // Release the other buffer and all __super related fields 68 68 // 69 - __super::ReleaseAndRestore(Request); 69 + FxRequestContext::ReleaseAndRestore(Request); // __super call 70 70 } 71 71 72 72 __inline
+2 -2
sdk/lib/drivers/wdf/shared/irphandlers/default/fxdefaultirphandler.cpp
··· 34 34 extern "C" { 35 35 #include "mx.h" 36 36 } 37 - #include "FxMin.hpp" 37 + #include "fxmin.hpp" 38 38 39 39 extern "C" { 40 - #include "FxDefaultIrpHandler.tmh" 40 + // #include "FxDefaultIrpHandler.tmh" 41 41 } 42 42 43 43 FxDefaultIrpHandler::FxDefaultIrpHandler(
+2 -2
sdk/lib/drivers/wdf/shared/irphandlers/general/fxpkggeneral.cpp
··· 34 34 extern "C" { 35 35 #include "mx.h" 36 36 } 37 - #include "FxMin.hpp" 37 + #include "fxmin.hpp" 38 38 39 39 extern "C" { 40 - #include "FxPkgGeneral.tmh" 40 + // #include "FxPkgGeneral.tmh" 41 41 } 42 42 43 43
+3 -3
sdk/lib/drivers/wdf/shared/irphandlers/io/fxioqueue.cpp
··· 23 23 --*/ 24 24 25 25 #include "ioprivshared.hpp" 26 - #include "FxIoQueue.hpp" 26 + #include "fxioqueue.hpp" 27 27 28 28 extern "C" { 29 29 #if defined(EVENT_TRACING) ··· 561 561 // 562 562 End: 563 563 564 - __super::Dispose(); 564 + FxNonPagedObject::Dispose(); // __super call 565 565 566 566 return TRUE; 567 567 } ··· 6334 6334 return; 6335 6335 } 6336 6336 6337 - __declspec(noreturn) 6337 + DECLSPEC_NORETURN 6338 6338 VOID 6339 6339 FxIoQueue::FatalError( 6340 6340 __in NTSTATUS Status
+21 -3
sdk/lib/drivers/wdf/shared/irphandlers/io/fxioqueueapi.cpp
··· 21 21 --*/ 22 22 23 23 #include "ioprivshared.hpp" 24 - #include "FxPkgIo.hpp" 25 - #include "FxIoQueue.hpp" 24 + #include "fxpkgio.hpp" 25 + #include "fxioqueue.hpp" 26 26 27 27 extern "C" { 28 - #include "FxIoQueueApi.tmh" 28 + // #include "FxIoQueueApi.tmh" 29 29 } 30 30 31 31 // ··· 49 49 _Must_inspect_result_ 50 50 __drv_maxIRQL(DISPATCH_LEVEL) 51 51 NTSTATUS 52 + STDCALL 52 53 WDFEXPORT(WdfIoQueueCreate)( 53 54 __in 54 55 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 249 250 250 251 __drv_maxIRQL(DISPATCH_LEVEL) 251 252 WDF_IO_QUEUE_STATE 253 + STDCALL 252 254 WDFEXPORT(WdfIoQueueGetState)( 253 255 __in 254 256 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 297 299 298 300 __drv_maxIRQL(DISPATCH_LEVEL) 299 301 WDFDEVICE 302 + STDCALL 300 303 WDFEXPORT(WdfIoQueueGetDevice)( 301 304 __in 302 305 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 333 336 334 337 __drv_maxIRQL(DISPATCH_LEVEL) 335 338 VOID 339 + STDCALL 336 340 WDFEXPORT(WdfIoQueueStart)( 337 341 __in 338 342 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 379 383 380 384 __drv_maxIRQL(DISPATCH_LEVEL) 381 385 VOID 386 + STDCALL 382 387 WDFEXPORT(WdfIoQueueStop)( 383 388 __in 384 389 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 435 440 436 441 __drv_maxIRQL(PASSIVE_LEVEL) 437 442 VOID 443 + STDCALL 438 444 WDFEXPORT(WdfIoQueueStopSynchronously)( 439 445 __in 440 446 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 486 492 487 493 __drv_maxIRQL(DISPATCH_LEVEL) 488 494 VOID 495 + STDCALL 489 496 WDFEXPORT(WdfIoQueueStopAndPurge)( 490 497 __in 491 498 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 548 555 549 556 __drv_maxIRQL(PASSIVE_LEVEL) 550 557 VOID 558 + STDCALL 551 559 WDFEXPORT(WdfIoQueueStopAndPurgeSynchronously)( 552 560 __in 553 561 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 605 613 _Must_inspect_result_ 606 614 __drv_maxIRQL(DISPATCH_LEVEL) 607 615 NTSTATUS 616 + STDCALL 608 617 WDFEXPORT(WdfIoQueueRetrieveNextRequest)( 609 618 __in 610 619 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 673 682 _Must_inspect_result_ 674 683 __drv_maxIRQL(DISPATCH_LEVEL) 675 684 NTSTATUS 685 + STDCALL 676 686 WDFEXPORT(WdfIoQueueRetrieveRequestByFileObject)( 677 687 __in 678 688 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 766 776 _Must_inspect_result_ 767 777 __drv_maxIRQL(DISPATCH_LEVEL) 768 778 NTSTATUS 779 + STDCALL 769 780 WDFEXPORT(WdfIoQueueRetrieveFoundRequest)( 770 781 __in 771 782 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 864 875 _Must_inspect_result_ 865 876 __drv_maxIRQL(DISPATCH_LEVEL) 866 877 NTSTATUS 878 + STDCALL 867 879 WDFEXPORT(WdfIoQueueFindRequest)( 868 880 __in 869 881 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1064 1076 1065 1077 __drv_maxIRQL(DISPATCH_LEVEL) 1066 1078 VOID 1079 + STDCALL 1067 1080 WDFEXPORT(WdfIoQueueDrain)( 1068 1081 __in 1069 1082 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1115 1128 1116 1129 __drv_maxIRQL(PASSIVE_LEVEL) 1117 1130 VOID 1131 + STDCALL 1118 1132 WDFEXPORT(WdfIoQueueDrainSynchronously)( 1119 1133 __in 1120 1134 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1160 1174 1161 1175 __drv_maxIRQL(PASSIVE_LEVEL) 1162 1176 VOID 1177 + STDCALL 1163 1178 WDFEXPORT(WdfIoQueuePurgeSynchronously)( 1164 1179 __in 1165 1180 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1208 1223 1209 1224 __drv_maxIRQL(DISPATCH_LEVEL) 1210 1225 VOID 1226 + STDCALL 1211 1227 WDFEXPORT(WdfIoQueuePurge)( 1212 1228 __in 1213 1229 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1270 1286 _Must_inspect_result_ 1271 1287 __drv_maxIRQL(DISPATCH_LEVEL) 1272 1288 NTSTATUS 1289 + STDCALL 1273 1290 WDFEXPORT(WdfIoQueueReadyNotify)( 1274 1291 __in 1275 1292 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1318 1335 _Must_inspect_result_ 1319 1336 __drv_maxIRQL(PASSIVE_LEVEL) 1320 1337 NTSTATUS 1338 + STDCALL 1321 1339 WDFEXPORT(WdfIoQueueAssignForwardProgressPolicy)( 1322 1340 __in 1323 1341 PWDF_DRIVER_GLOBALS DriverGlobals,
+2 -4
sdk/lib/drivers/wdf/shared/irphandlers/io/fxpkgio.cpp
··· 159 159 return status; 160 160 } 161 161 162 - __inline 163 162 _Must_inspect_result_ 164 163 NTSTATUS 165 164 __fastcall ··· 190 189 NTSTATUS status; 191 190 FxIrp fxIrp(Irp); 192 191 193 - ASSERT(((UCHAR)DispatchContext & FX_IN_DISPATCH_CALLBACK) == 0); 192 + ASSERT(((UCHAR)(ULONG_PTR)DispatchContext & FX_IN_DISPATCH_CALLBACK) == 0); 194 193 195 194 ASSERT(fxIrp.GetMajorFunction() <= IRP_MJ_MAXIMUM_FUNCTION); 196 195 ··· 236 235 // Advance to next node. 237 236 // 238 237 DispatchContext = (WDFCONTEXT)(((PLIST_ENTRY)DispatchContext)->Flink); 239 - ASSERT(((UCHAR)DispatchContext & FX_IN_DISPATCH_CALLBACK) == 0); 238 + ASSERT(((UCHAR)(ULONG_PTR)DispatchContext & FX_IN_DISPATCH_CALLBACK) == 0); 240 239 241 240 ASSERT(fxIrp.GetMajorFunction() == IRP_MJ_READ || 242 241 fxIrp.GetMajorFunction() == IRP_MJ_WRITE || ··· 337 336 return status; 338 337 } 339 338 340 - __inline 341 339 _Must_inspect_result_ 342 340 NTSTATUS 343 341 __fastcall
+33 -33
sdk/lib/drivers/wdf/shared/irphandlers/io/ioprivshared.hpp
··· 34 34 #endif 35 35 36 36 /*#if defined(MODE_AGNSOTIC_FXPKGIO_NOT_IN_SHARED_FOLDER) 37 - #include <Fx.hpp> 37 + #include <fx.hpp> 38 38 #else 39 39 // common header file for all irphandler\* files 40 40 #include "irphandlerspriv.hpp" ··· 50 50 #include "mx.h" 51 51 } 52 52 53 - #include "FxMin.hpp" 53 + #include "fxmin.hpp" 54 54 55 55 #include "wdfmemory.h" 56 56 #include "wdfrequest.h" 57 57 #include "wdfio.h" 58 58 #include "wdfdevice.h" 59 - #include "wdfWmi.h" 60 - #include "wdfChildList.h" 59 + #include "wdfwmi.h" 60 + #include "wdfchildlist.h" 61 61 #include "wdfpdo.h" 62 62 #include "wdffdo.h" 63 - #include "FxIrpQueue.hpp" 64 - #include "FxCallback.hpp" 63 + #include "fxirpqueue.hpp" 64 + #include "fxcallback.hpp" 65 65 66 66 // <FxSystemWorkItem.hpp> 67 67 __drv_functionClass(EVT_SYSTEMWORKITEM) ··· 78 78 79 79 // </FxSystemWorkItem.hpp> 80 80 81 - #include "FxSystemThread.hpp" 81 + #include "fxsystemthread.hpp" 82 82 83 - #include "FxCallbackSpinlock.hpp" 84 - #include "FxCallbackMutexLock.hpp" 85 - #include "FxTransactionedList.hpp" 83 + #include "fxcallbackspinlock.hpp" 84 + #include "fxcallbackmutexlock.hpp" 85 + #include "fxtransactionedlist.hpp" 86 86 87 87 #if (FX_CORE_MODE == FX_CORE_KERNEL_MODE) 88 - #include "FxIrpKm.hpp" 88 + #include "fxirpkm.hpp" 89 89 #else 90 - #include "FxIrpUm.hpp" 90 + #include "fxirpum.hpp" 91 91 #endif 92 92 93 93 94 - #include "FxPackage.hpp" 95 - #include "FxCollection.hpp" 96 - #include "FxDeviceInitShared.hpp" 97 - #include "FxDeviceToMxInterface.hpp" 94 + #include "fxpackage.hpp" 95 + #include "fxcollection.hpp" 96 + #include "fxdeviceinitshared.hpp" 97 + #include "fxdevicetomxinterface.hpp" 98 98 99 - #include "IfxMemory.hpp" 100 - #include "FxCallback.hpp" 101 - #include "FxRequestContext.hpp" 102 - #include "FxRequestContextTypes.h" 103 - #include "FxRequestBase.hpp" 104 - #include "FxMemoryObject.hpp" 105 - #include "FxMemoryBufferPreallocated.hpp" 106 - #include "FxRequestMemory.hpp" 107 - #include "FxRequest.hpp" 108 - #include "FxRequestBuffer.hpp" 109 - #include "FxSyncRequest.hpp" 99 + #include "ifxmemory.hpp" 100 + #include "fxcallback.hpp" 101 + #include "fxrequestcontext.hpp" 102 + #include "fxrequestcontexttypes.h" 103 + #include "fxrequestbase.hpp" 104 + #include "fxmemoryobject.hpp" 105 + #include "fxmemorybufferpreallocated.hpp" 106 + #include "fxrequestmemory.hpp" 107 + #include "fxrequest.hpp" 108 + #include "fxrequestbuffer.hpp" 109 + #include "fxsyncrequest.hpp" 110 110 111 - #include "irphandlerspriv.hpp" 112 - #include "FxPkgPnp.hpp" 113 - #include "FxPkgIo.hpp" 114 - #include "FxIoQueue.hpp" 115 - #include "FxIoQueueCallbacks.hpp" 111 + #include "shared/irphandlers/irphandlerspriv.hpp" 112 + #include "fxpkgpnp.hpp" 113 + #include "fxpkgio.hpp" 114 + #include "fxioqueue.hpp" 115 + #include "fxioqueuecallbacks.hpp" 116 116 117 117 118 118 // ··· 251 251 #include "FxIoQueue.hpp" 252 252 253 253 254 - /*#if !defined(MODE_AGNSOTIC_FXPKGIO_NOT_IN_SHARED_FOLDER) 254 + #if !defined(MODE_AGNSOTIC_FXPKGIO_NOT_IN_SHARED_FOLDER) 255 255 256 256 // <wdf17.h> 257 257 //
+2 -2
sdk/lib/drivers/wdf/shared/irphandlers/io/km/fxioqueuekm.cpp
··· 1 1 // 2 2 // Copyright (C) Microsoft. All rights reserved. 3 3 // 4 - #include "..\ioprivshared.hpp" 4 + #include "../ioprivshared.hpp" 5 5 6 6 7 7 extern "C" { ··· 511 511 return status; 512 512 } 513 513 514 - RtlZeroMemory(m_FwdProgContext, sizeof(FXIO_FORWARD_PROGRESS_CONTEXT)); 514 + *m_FwdProgContext = {}; 515 515 516 516 // 517 517 // Initialize the things which will not fail first
+4 -4
sdk/lib/drivers/wdf/shared/irphandlers/irphandlerspriv.hpp
··· 26 26 #include "mx.h" 27 27 } 28 28 29 - #include "FxMin.hpp" 29 + #include "fxmin.hpp" 30 30 31 31 #if (FX_CORE_MODE == FX_CORE_USER_MODE) 32 32 #include "wdmdefs.h" 33 - #include "FxIrpUm.hpp" 33 + #include "fxirpum.hpp" 34 34 #else 35 - #include "FxIrpKm.hpp" 35 + #include "fxirpkm.hpp" 36 36 #endif 37 37 38 - #include "FxIrp.hpp" 38 + #include "fxirp.hpp"
+2 -2
sdk/lib/drivers/wdf/shared/irphandlers/package/fxpackage.cpp
··· 24 24 --*/ 25 25 26 26 27 - #include "irphandlerspriv.hpp" 27 + #include "shared/irphandlers/irphandlerspriv.hpp" 28 28 29 - #include "FxPackage.hpp" 29 + #include "fxpackage.hpp" 30 30 31 31 FxPackage::FxPackage( 32 32 __in PFX_DRIVER_GLOBALS FxDriverGlobals,
-3
sdk/lib/drivers/wdf/shared/irphandlers/pnp/fdopower.cpp
··· 65 65 --*/ 66 66 { 67 67 FxPkgFdo* pThis; 68 - MdDeviceObject pDevObj; 69 68 NTSTATUS status; 70 69 MdIrp pIrp; 71 70 72 71 pIrp = Irp->GetIrp(); 73 72 pThis = (FxPkgFdo*) This; 74 - 75 - pDevObj = pThis->m_Device->GetDeviceObject(); 76 73 77 74 // 78 75 // FDOs don't handle this IRP, so simply pass it down.
+1 -1
sdk/lib/drivers/wdf/shared/irphandlers/pnp/fxinterruptapi.cpp
··· 27 27 #include "pnppriv.hpp" 28 28 29 29 extern "C" { 30 - #include "FxInterruptApi.tmh" 30 + // #include "FxInterruptApi.tmh" 31 31 } 32 32 33 33 //
+2 -2
sdk/lib/drivers/wdf/shared/irphandlers/pnp/fxpkgfdo.cpp
··· 37 37 #if defined(EVENT_TRACING) 38 38 // Tracing support 39 39 extern "C" { 40 - #include "FxPkgFdo.tmh" 40 + #include "fxpkgfdo.tmh" 41 41 } 42 42 #endif 43 43 ··· 1525 1525 { 1526 1526 NTSTATUS status; 1527 1527 1528 - status = __super::PostCreateDeviceInitialize(); 1528 + status = FxPkgPnp::PostCreateDeviceInitialize(); // __super call 1529 1529 if (!NT_SUCCESS(status)) { 1530 1530 return status; 1531 1531 }
+1 -1
sdk/lib/drivers/wdf/shared/irphandlers/pnp/fxpkgpdo.cpp
··· 353 353 // Important to do this last since this will cause a pnp state machine 354 354 // transition 355 355 // 356 - __super::FinishInitialize(DeviceInit); 356 + FxPkgPnp::FinishInitialize(DeviceInit); // __super call 357 357 } 358 358 359 359 _Must_inspect_result_
+220 -213
sdk/lib/drivers/wdf/shared/irphandlers/pnp/fxpkgpnp.cpp
··· 340 340 // 341 341 // Call up the hierarchy 342 342 // 343 - return __super::Dispose(); 343 + return FxPackage::Dispose(); // __super call 344 344 } 345 345 346 346 ··· 1754 1754 // which is a safe assumption to start with, one which may be 1755 1755 // overridden later. 1756 1756 // 1757 - C_ASSERT(PowerDeviceD0 == DeviceWakeDepthD0); 1757 + C_ASSERT(PowerDeviceD0 == static_cast<DEVICE_POWER_STATE>(DeviceWakeDepthD0)); 1758 1758 m_DeviceWake[i - PowerSystemWorking] = (BYTE) caps.DeviceCaps.DeviceWake; 1759 1759 } 1760 1760 } ··· 2741 2741 __out FxWmiInstanceInternal** Instance 2742 2742 ) 2743 2743 { 2744 - WDF_WMI_PROVIDER_CONFIG config; 2745 - NTSTATUS status; 2744 + // WDF_WMI_PROVIDER_CONFIG config; 2745 + // NTSTATUS status; 2746 2746 2747 - WDF_WMI_PROVIDER_CONFIG_INIT(&config, Guid); 2747 + // WDF_WMI_PROVIDER_CONFIG_INIT(&config, Guid); 2748 2748 2749 - // 2750 - // We are assuming we are registering either for the wait wake or device 2751 - // timeout GUIDs which both operate on BOOLEANs. If we expand this API in 2752 - // the future, have the caller pass in a config structure for the provider 2753 - // GUID. 2754 - // 2755 - config.MinInstanceBufferSize = sizeof(BOOLEAN); 2756 - 2757 - status = m_Device->m_PkgWmi->AddPowerPolicyProviderAndInstance( 2758 - &config, 2759 - Callbacks, 2760 - Instance); 2749 + // // 2750 + // // We are assuming we are registering either for the wait wake or device 2751 + // // timeout GUIDs which both operate on BOOLEANs. If we expand this API in 2752 + // // the future, have the caller pass in a config structure for the provider 2753 + // // GUID. 2754 + // // 2755 + // config.MinInstanceBufferSize = sizeof(BOOLEAN); 2761 2756 2762 - if (status == STATUS_OBJECT_NAME_COLLISION) { 2763 - status = STATUS_SUCCESS; 2764 - } 2757 + // status = m_Device->m_PkgWmi->AddPowerPolicyProviderAndInstance( 2758 + // &config, 2759 + // Callbacks, 2760 + // Instance); 2765 2761 2766 - if (!NT_SUCCESS(status)) { 2767 - DoTraceLevelMessage( 2768 - GetDriverGlobals(), TRACE_LEVEL_ERROR, TRACINGPNP, 2769 - "Failed to register WMI power GUID %!STATUS!", status); 2770 - } 2762 + // if (status == STATUS_OBJECT_NAME_COLLISION) { 2763 + // status = STATUS_SUCCESS; 2764 + // } 2771 2765 2772 - return status; 2766 + // if (!NT_SUCCESS(status)) { 2767 + // DoTraceLevelMessage( 2768 + // GetDriverGlobals(), TRACE_LEVEL_ERROR, TRACINGPNP, 2769 + // "Failed to register WMI power GUID %!STATUS!", status); 2770 + // } 2771 + // 2772 + // return status; 2773 + ROSWDFNOTIMPLEMENTED; 2774 + return STATUS_SUCCESS; 2773 2775 } 2774 2776 2775 2777 NTSTATUS ··· 2955 2957 2956 2958 if (Settings->UserControlOfIdleSettings == IdleAllowUserControl) { 2957 2959 2958 - status = UpdateWmiInstanceForS0Idle(AddInstance); 2959 - if (!NT_SUCCESS(status)) { 2960 - return status; 2961 - } 2960 + // status = UpdateWmiInstanceForS0Idle(AddInstance); 2961 + // if (!NT_SUCCESS(status)) { 2962 + // return status; 2963 + // } __REACTOS__ 2962 2964 2963 2965 if (Settings->Enabled == WdfUseDefault) { 2964 2966 // ··· 2989 2991 // 2990 2992 overridable = FALSE; 2991 2993 2992 - (void) UpdateWmiInstanceForS0Idle(RemoveInstance); 2994 + // (void) UpdateWmiInstanceForS0Idle(RemoveInstance); __REACTOS__ 2993 2995 } 2994 2996 2995 2997 // ··· 3017 3019 // 3018 3020 // IdleTimeoutType is available only on > 1.9 3019 3021 // 3022 + #ifndef __REACTOS__ 3020 3023 if (Settings->Size > sizeof(WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS_V1_9)) { 3021 3024 if (firstTime) { 3022 3025 if ((SystemManagedIdleTimeout == Settings->IdleTimeoutType) || ··· 3080 3083 } 3081 3084 } 3082 3085 } 3086 + #endif 3083 3087 3084 3088 if (Settings->IdleCaps == IdleCannotWakeFromS0) { 3085 3089 // ··· 3365 3369 3366 3370 if (Settings->UserControlOfWakeSettings == WakeAllowUserControl) { 3367 3371 3368 - status = UpdateWmiInstanceForSxWake(AddInstance); 3372 + // status = UpdateWmiInstanceForSxWake(AddInstance); __REACTOS__ 3369 3373 3370 - if (!NT_SUCCESS(status)) { 3371 - return status; 3372 - } 3374 + // if (!NT_SUCCESS(status)) { 3375 + // return status; 3376 + // } 3373 3377 3374 3378 if (Settings->Enabled == WdfUseDefault) { 3375 3379 // ··· 3400 3404 // 3401 3405 overridable = FALSE; 3402 3406 3403 - (void) UpdateWmiInstanceForSxWake(RemoveInstance); 3407 + // (void) UpdateWmiInstanceForSxWake(RemoveInstance); __REACTOS__ 3404 3408 } 3405 3409 3406 3410 if (firstTime) { ··· 3897 3901 IsUsageSupported(_SpecialTypeToUsage(WdfSpecialFileBoot))); 3898 3902 3899 3903 3900 - if (type >= WdfSpecialFilePaging && type < WdfSpecialFileMax) { 3904 + if (type >= static_cast<DEVICE_USAGE_NOTIFICATION_TYPE>(WdfSpecialFilePaging) 3905 + && type < static_cast<DEVICE_USAGE_NOTIFICATION_TYPE>(WdfSpecialFileMax)) { 3901 3906 if (inPath) { 3902 3907 if (m_Device->IsFilter()) { 3903 3908 // ··· 4210 4215 if (NT_SUCCESS(status) && 4211 4216 inPath && 4212 4217 (HasPowerThread() == FALSE) && 4213 - type != WdfSpecialFileBoot 4218 + type != static_cast<DEVICE_USAGE_NOTIFICATION_TYPE>(WdfSpecialFileBoot) 4214 4219 ) { 4215 4220 status = QueryForPowerThread(); 4216 4221 ··· 4537 4542 // 4538 4543 // Boot notification doesn't require updating device flags. 4539 4544 // 4540 - if (Type == WdfSpecialFileBoot) { 4545 + if (Type == static_cast<DEVICE_USAGE_NOTIFICATION_TYPE>(WdfSpecialFileBoot)) { 4541 4546 return oldFlags; 4542 4547 } 4543 4548 ··· 6239 6244 __in PWDF_POWER_FRAMEWORK_SETTINGS PowerFrameworkSettings 6240 6245 ) 6241 6246 { 6242 - NTSTATUS status; 6243 - PPO_FX_COMPONENT_IDLE_STATE idleStates = NULL; 6244 - ULONG idleStatesSize = 0; 6245 - PPO_FX_COMPONENT component = NULL; 6246 - ULONG componentSize = 0; 6247 - PPOX_SETTINGS poxSettings = NULL; 6248 - ULONG poxSettingsSize = 0; 6249 - BYTE * buffer = NULL; 6247 + // NTSTATUS status; 6248 + // PPO_FX_COMPONENT_IDLE_STATE idleStates = NULL; 6249 + // ULONG idleStatesSize = 0; 6250 + // PPO_FX_COMPONENT component = NULL; 6251 + // ULONG componentSize = 0; 6252 + // PPOX_SETTINGS poxSettings = NULL; 6253 + // ULONG poxSettingsSize = 0; 6254 + // BYTE * buffer = NULL; 6250 6255 6251 - if (FALSE==(IdleTimeoutManagement::_SystemManagedIdleTimeoutAvailable())) { 6252 - // 6253 - // If system-managed idle timeout is not available on this OS, then 6254 - // there is nothing to do. 6255 - // 6256 - DoTraceLevelMessage( 6257 - GetDriverGlobals(), TRACE_LEVEL_INFORMATION, TRACINGPNP, 6258 - "WDFDEVICE %p !devobj %p Power framework is not supported on the " 6259 - "current OS. Therefore, the power framework settings will not take " 6260 - "effect.", 6261 - m_Device->GetHandle(), 6262 - m_Device->GetDeviceObject() 6263 - ); 6264 - return STATUS_SUCCESS; 6265 - } 6256 + // if (FALSE==(IdleTimeoutManagement::_SystemManagedIdleTimeoutAvailable())) { 6257 + // // 6258 + // // If system-managed idle timeout is not available on this OS, then 6259 + // // there is nothing to do. 6260 + // // 6261 + // DoTraceLevelMessage( 6262 + // GetDriverGlobals(), TRACE_LEVEL_INFORMATION, TRACINGPNP, 6263 + // "WDFDEVICE %p !devobj %p Power framework is not supported on the " 6264 + // "current OS. Therefore, the power framework settings will not take " 6265 + // "effect.", 6266 + // m_Device->GetHandle(), 6267 + // m_Device->GetDeviceObject() 6268 + // ); 6269 + // return STATUS_SUCCESS; 6270 + // } 6266 6271 6267 - if (NULL != PowerFrameworkSettings->Component) { 6268 - // 6269 - // Caller should ensure that IdleStateCount is not zero 6270 - // 6271 - ASSERT(0 != PowerFrameworkSettings->Component->IdleStateCount); 6272 + // if (NULL != PowerFrameworkSettings->Component) { 6273 + // // 6274 + // // Caller should ensure that IdleStateCount is not zero 6275 + // // 6276 + // ASSERT(0 != PowerFrameworkSettings->Component->IdleStateCount); 6272 6277 6273 - // 6274 - // Compute buffer size needed for storing F-states 6275 - // 6276 - status = RtlULongMult( 6277 - PowerFrameworkSettings->Component->IdleStateCount, 6278 - sizeof(*(PowerFrameworkSettings->Component->IdleStates)), 6279 - &idleStatesSize 6280 - ); 6281 - if (FALSE == NT_SUCCESS(status)) { 6282 - DoTraceLevelMessage( 6283 - GetDriverGlobals(), TRACE_LEVEL_ERROR, TRACINGPNP, 6284 - "WDFDEVICE %p !devobj %p Unable to compute length of buffer " 6285 - "required to store F-states. RtlULongMult failed with " 6286 - "%!STATUS!", 6287 - m_Device->GetHandle(), 6288 - m_Device->GetDeviceObject(), 6289 - status 6290 - ); 6291 - goto exit; 6292 - } 6278 + // // 6279 + // // Compute buffer size needed for storing F-states 6280 + // // 6281 + // status = RtlULongMult( 6282 + // PowerFrameworkSettings->Component->IdleStateCount, 6283 + // sizeof(*(PowerFrameworkSettings->Component->IdleStates)), 6284 + // &idleStatesSize 6285 + // ); 6286 + // if (FALSE == NT_SUCCESS(status)) { 6287 + // DoTraceLevelMessage( 6288 + // GetDriverGlobals(), TRACE_LEVEL_ERROR, TRACINGPNP, 6289 + // "WDFDEVICE %p !devobj %p Unable to compute length of buffer " 6290 + // "required to store F-states. RtlULongMult failed with " 6291 + // "%!STATUS!", 6292 + // m_Device->GetHandle(), 6293 + // m_Device->GetDeviceObject(), 6294 + // status 6295 + // ); 6296 + // goto exit; 6297 + // } 6293 6298 6294 - // 6295 - // Compute buffer size needed for storing component information 6296 - // (including F-states) 6297 - // 6298 - status = RtlULongAdd(idleStatesSize, 6299 - sizeof(*component), 6300 - &componentSize); 6301 - if (FALSE == NT_SUCCESS(status)) { 6302 - DoTraceLevelMessage( 6303 - GetDriverGlobals(), TRACE_LEVEL_ERROR, TRACINGPNP, 6304 - "WDFDEVICE %p !devobj %p Unable to compute length of buffer " 6305 - "required to store driver's component information. RtlULongAdd " 6306 - "failed with %!STATUS!", 6307 - m_Device->GetHandle(), 6308 - m_Device->GetDeviceObject(), 6309 - status 6310 - ); 6311 - goto exit; 6312 - } 6313 - } 6299 + // // 6300 + // // Compute buffer size needed for storing component information 6301 + // // (including F-states) 6302 + // // 6303 + // status = RtlULongAdd(idleStatesSize, 6304 + // sizeof(*component), 6305 + // &componentSize); 6306 + // if (FALSE == NT_SUCCESS(status)) { 6307 + // DoTraceLevelMessage( 6308 + // GetDriverGlobals(), TRACE_LEVEL_ERROR, TRACINGPNP, 6309 + // "WDFDEVICE %p !devobj %p Unable to compute length of buffer " 6310 + // "required to store driver's component information. RtlULongAdd " 6311 + // "failed with %!STATUS!", 6312 + // m_Device->GetHandle(), 6313 + // m_Device->GetDeviceObject(), 6314 + // status 6315 + // ); 6316 + // goto exit; 6317 + // } 6318 + // } 6314 6319 6315 - // 6316 - // Compute total buffer size needed for power framework settings 6317 - // 6318 - status = RtlULongAdd(componentSize, 6319 - sizeof(*poxSettings), 6320 - &poxSettingsSize); 6321 - if (FALSE == NT_SUCCESS(status)) { 6322 - DoTraceLevelMessage( 6323 - GetDriverGlobals(), TRACE_LEVEL_ERROR, TRACINGPNP, 6324 - "WDFDEVICE %p !devobj %p Unable to compute length of buffer " 6325 - "required to store driver's power framework settings. RtlULongAdd " 6326 - "failed with %!STATUS!", 6327 - m_Device->GetHandle(), 6328 - m_Device->GetDeviceObject(), 6329 - status 6330 - ); 6331 - goto exit; 6332 - } 6320 + // // 6321 + // // Compute total buffer size needed for power framework settings 6322 + // // 6323 + // status = RtlULongAdd(componentSize, 6324 + // sizeof(*poxSettings), 6325 + // &poxSettingsSize); 6326 + // if (FALSE == NT_SUCCESS(status)) { 6327 + // DoTraceLevelMessage( 6328 + // GetDriverGlobals(), TRACE_LEVEL_ERROR, TRACINGPNP, 6329 + // "WDFDEVICE %p !devobj %p Unable to compute length of buffer " 6330 + // "required to store driver's power framework settings. RtlULongAdd " 6331 + // "failed with %!STATUS!", 6332 + // m_Device->GetHandle(), 6333 + // m_Device->GetDeviceObject(), 6334 + // status 6335 + // ); 6336 + // goto exit; 6337 + // } 6333 6338 6334 - // 6335 - // Allocate memory to copy the settings 6336 - // 6337 - buffer = (BYTE *) MxMemory::MxAllocatePoolWithTag(NonPagedPool, 6338 - poxSettingsSize, 6339 - GetDriverGlobals()->Tag); 6340 - if (NULL == buffer) { 6341 - status = STATUS_INSUFFICIENT_RESOURCES; 6342 - DoTraceLevelMessage( 6343 - GetDriverGlobals(), TRACE_LEVEL_ERROR, TRACINGPNP, 6344 - "WDFDEVICE %p !devobj %p Unable to allocate buffer required to " 6345 - "store F-states. %!STATUS!", 6346 - m_Device->GetHandle(), 6347 - m_Device->GetDeviceObject(), 6348 - status 6349 - ); 6350 - goto exit; 6351 - } 6339 + // // 6340 + // // Allocate memory to copy the settings 6341 + // // 6342 + // buffer = (BYTE *) MxMemory::MxAllocatePoolWithTag(NonPagedPool, 6343 + // poxSettingsSize, 6344 + // GetDriverGlobals()->Tag); 6345 + // if (NULL == buffer) { 6346 + // status = STATUS_INSUFFICIENT_RESOURCES; 6347 + // DoTraceLevelMessage( 6348 + // GetDriverGlobals(), TRACE_LEVEL_ERROR, TRACINGPNP, 6349 + // "WDFDEVICE %p !devobj %p Unable to allocate buffer required to " 6350 + // "store F-states. %!STATUS!", 6351 + // m_Device->GetHandle(), 6352 + // m_Device->GetDeviceObject(), 6353 + // status 6354 + // ); 6355 + // goto exit; 6356 + // } 6352 6357 6353 - // 6354 - // Set our pointers to point to appropriate locations in the buffer. 6355 - // 6356 - // NOTES: 6357 - // - The array of F-states comes first because it has ULONGLONG members 6358 - // because of which it has the biggest alignment requirement. 6359 - // - The logic below works even if the client driver did not specify any 6360 - // component information. In that case idleStatesSize and componentSize 6361 - // are both 0 and 'poxSettings' points to the beginning of the allocated 6362 - // buffer 6363 - // 6364 - idleStates = (PPO_FX_COMPONENT_IDLE_STATE) buffer; 6365 - component = (PPO_FX_COMPONENT) (buffer + idleStatesSize); 6366 - poxSettings = (PPOX_SETTINGS) (buffer + componentSize); 6358 + // // 6359 + // // Set our pointers to point to appropriate locations in the buffer. 6360 + // // 6361 + // // NOTES: 6362 + // // - The array of F-states comes first because it has ULONGLONG members 6363 + // // because of which it has the biggest alignment requirement. 6364 + // // - The logic below works even if the client driver did not specify any 6365 + // // component information. In that case idleStatesSize and componentSize 6366 + // // are both 0 and 'poxSettings' points to the beginning of the allocated 6367 + // // buffer 6368 + // // 6369 + // idleStates = (PPO_FX_COMPONENT_IDLE_STATE) buffer; 6370 + // component = (PPO_FX_COMPONENT) (buffer + idleStatesSize); 6371 + // poxSettings = (PPOX_SETTINGS) (buffer + componentSize); 6367 6372 6368 - // 6369 - // Copy the relevant parts of the settings buffer 6370 - // 6371 - poxSettings->EvtDeviceWdmPostPoFxRegisterDevice = 6372 - PowerFrameworkSettings->EvtDeviceWdmPostPoFxRegisterDevice; 6373 - poxSettings->EvtDeviceWdmPrePoFxUnregisterDevice = 6374 - PowerFrameworkSettings->EvtDeviceWdmPrePoFxUnregisterDevice; 6375 - poxSettings->Component = PowerFrameworkSettings->Component; 6376 - poxSettings->ComponentActiveConditionCallback = 6377 - PowerFrameworkSettings->ComponentActiveConditionCallback; 6378 - poxSettings->ComponentIdleConditionCallback = 6379 - PowerFrameworkSettings->ComponentIdleConditionCallback; 6380 - poxSettings->ComponentIdleStateCallback = 6381 - PowerFrameworkSettings->ComponentIdleStateCallback; 6382 - poxSettings->PowerControlCallback = 6383 - PowerFrameworkSettings->PowerControlCallback; 6384 - poxSettings->PoFxDeviceContext = PowerFrameworkSettings->PoFxDeviceContext; 6373 + // // 6374 + // // Copy the relevant parts of the settings buffer 6375 + // // 6376 + // poxSettings->EvtDeviceWdmPostPoFxRegisterDevice = 6377 + // PowerFrameworkSettings->EvtDeviceWdmPostPoFxRegisterDevice; 6378 + // poxSettings->EvtDeviceWdmPrePoFxUnregisterDevice = 6379 + // PowerFrameworkSettings->EvtDeviceWdmPrePoFxUnregisterDevice; 6380 + // poxSettings->Component = PowerFrameworkSettings->Component; 6381 + // poxSettings->ComponentActiveConditionCallback = 6382 + // PowerFrameworkSettings->ComponentActiveConditionCallback; 6383 + // poxSettings->ComponentIdleConditionCallback = 6384 + // PowerFrameworkSettings->ComponentIdleConditionCallback; 6385 + // poxSettings->ComponentIdleStateCallback = 6386 + // PowerFrameworkSettings->ComponentIdleStateCallback; 6387 + // poxSettings->PowerControlCallback = 6388 + // PowerFrameworkSettings->PowerControlCallback; 6389 + // poxSettings->PoFxDeviceContext = PowerFrameworkSettings->PoFxDeviceContext; 6385 6390 6386 - if (NULL != PowerFrameworkSettings->Component) { 6387 - // 6388 - // Copy the component information 6389 - // 6390 - poxSettings->Component = component; 6391 - RtlCopyMemory(poxSettings->Component, 6392 - PowerFrameworkSettings->Component, 6393 - sizeof(*component)); 6391 + // if (NULL != PowerFrameworkSettings->Component) { 6392 + // // 6393 + // // Copy the component information 6394 + // // 6395 + // poxSettings->Component = component; 6396 + // RtlCopyMemory(poxSettings->Component, 6397 + // PowerFrameworkSettings->Component, 6398 + // sizeof(*component)); 6394 6399 6395 - // 6396 - // Caller should ensure that IdleStates is not NULL 6397 - // 6398 - ASSERT(NULL != PowerFrameworkSettings->Component->IdleStates); 6400 + // // 6401 + // // Caller should ensure that IdleStates is not NULL 6402 + // // 6403 + // ASSERT(NULL != PowerFrameworkSettings->Component->IdleStates); 6399 6404 6400 - // 6401 - // Copy the F-states 6402 - // 6403 - poxSettings->Component->IdleStates = idleStates; 6404 - RtlCopyMemory(poxSettings->Component->IdleStates, 6405 - PowerFrameworkSettings->Component->IdleStates, 6406 - idleStatesSize); 6407 - } 6405 + // // 6406 + // // Copy the F-states 6407 + // // 6408 + // poxSettings->Component->IdleStates = idleStates; 6409 + // RtlCopyMemory(poxSettings->Component->IdleStates, 6410 + // PowerFrameworkSettings->Component->IdleStates, 6411 + // idleStatesSize); 6412 + // } 6408 6413 6409 - // 6410 - // Commit these settings 6411 - // 6412 - status = m_PowerPolicyMachine.m_Owner-> 6413 - m_IdleSettings.m_TimeoutMgmt.CommitPowerFrameworkSettings( 6414 - GetDriverGlobals(), 6415 - poxSettings 6416 - ); 6417 - if (FALSE == NT_SUCCESS(status)) { 6418 - goto exit; 6419 - } 6414 + // // 6415 + // // Commit these settings 6416 + // // 6417 + // status = m_PowerPolicyMachine.m_Owner-> 6418 + // m_IdleSettings.m_TimeoutMgmt.CommitPowerFrameworkSettings( 6419 + // GetDriverGlobals(), 6420 + // poxSettings 6421 + // ); 6422 + // if (FALSE == NT_SUCCESS(status)) { 6423 + // goto exit; 6424 + // } 6420 6425 6421 - status = STATUS_SUCCESS; 6426 + // status = STATUS_SUCCESS; 6422 6427 6423 - exit: 6424 - if (FALSE == NT_SUCCESS(status)) { 6425 - if (NULL != buffer) { 6426 - MxMemory::MxFreePool(buffer); 6427 - } 6428 - } 6429 - return status; 6428 + // exit: 6429 + // if (FALSE == NT_SUCCESS(status)) { 6430 + // if (NULL != buffer) { 6431 + // MxMemory::MxFreePool(buffer); 6432 + // } 6433 + // } 6434 + // return status; 6435 + ROSWDFNOTIMPLEMENTED; 6436 + return STATUS_SUCCESS; 6430 6437 } 6431 6438 6432 6439 DEVICE_POWER_STATE
+3 -3
sdk/lib/drivers/wdf/shared/irphandlers/pnp/interruptobject.cpp
··· 521 521 // reference, so that even if we return error, the reference is 522 522 // still there to be removed on cleanup. 523 523 // 524 - ADDREF(_InterruptThunk); 524 + ADDREF((PVOID)_InterruptThunk); 525 525 526 526 // 527 527 // Values always supplied by the caller ··· 881 881 // 882 882 // Use the base FxObject's DeleteObject implementation which will Dispose us 883 883 // 884 - __super::DeleteObject(); 884 + FxNonPagedObject::DeleteObject(); // __super call 885 885 } 886 886 887 887 // ··· 1678 1678 // 1679 1679 // Release the reference taken in FxInterrupt::Initialize 1680 1680 // 1681 - RELEASE(_InterruptThunk); 1681 + RELEASE((PVOID)_InterruptThunk); 1682 1682 } 1683 1683 1684 1684 //
+2 -2
sdk/lib/drivers/wdf/shared/irphandlers/pnp/km/eventqueuekm.cpp
··· 70 70 // object), taking this ref prevents the globals from going away until a 71 71 // corresponding deref at the end of workitem. 72 72 // 73 - m_PkgPnp->GetDriverGlobals()->ADDREF(_WorkItemCallback); 73 + m_PkgPnp->GetDriverGlobals()->ADDREF((PVOID)_WorkItemCallback); 74 74 75 75 m_WorkItem.Enqueue( 76 76 (PMX_WORKITEM_ROUTINE) _WorkItemCallback, ··· 112 112 // 113 113 // Release the ref on FxDriverGlobals taken before queuing this workitem. 114 114 // 115 - pFxDriverGlobals->RELEASE(_WorkItemCallback); 115 + pFxDriverGlobals->RELEASE((PVOID)_WorkItemCallback); 116 116 117 117 Mx::MxDereferenceObject(pDriverObject); 118 118 }
+93 -91
sdk/lib/drivers/wdf/shared/irphandlers/pnp/km/fxpkgfdokm.cpp
··· 25 25 26 26 --*/ 27 27 28 - #include "..\pnppriv.hpp" 28 + #include "../pnppriv.hpp" 29 29 30 30 #include <initguid.h> 31 31 #include <wdmguid.h> ··· 456 456 VOID 457 457 ) 458 458 { 459 - WDF_DSF_INTERFACE dsfInterface; 460 - NTSTATUS status; 461 - BOOLEAN derefQI = FALSE; 459 + // __REACTOS__ : not supported 460 + // WDF_DSF_INTERFACE dsfInterface; 461 + // NTSTATUS status; 462 + // BOOLEAN derefQI = FALSE; 462 463 463 - RtlZeroMemory(&dsfInterface, sizeof(dsfInterface)); 464 + // RtlZeroMemory(&dsfInterface, sizeof(dsfInterface)); 464 465 465 - // 466 - // Since there are some stacks that are not PnP re-entrant (like USBHUB, 467 - // xpsp2), we specify that the QI goes only to our attached device and 468 - // not to the top of the stack as a normal QI irp would. 469 - // 470 - // We also do this a preventative measure for other stacks we don't know 471 - // about internally and do not have access to when testing. 472 - // 473 - status = m_Device->QueryForInterface(&GUID_WDF_DSF_INTERFACE, 474 - (PINTERFACE) &dsfInterface, 475 - sizeof(dsfInterface), 476 - WDM_DSF_INTERFACE_V1_0, 477 - NULL, 478 - m_Device->GetAttachedDevice() 479 - ); 466 + // // 467 + // // Since there are some stacks that are not PnP re-entrant (like USBHUB, 468 + // // xpsp2), we specify that the QI goes only to our attached device and 469 + // // not to the top of the stack as a normal QI irp would. 470 + // // 471 + // // We also do this a preventative measure for other stacks we don't know 472 + // // about internally and do not have access to when testing. 473 + // // 474 + // status = m_Device->QueryForInterface(&GUID_WDF_DSF_INTERFACE, 475 + // (PINTERFACE) &dsfInterface, 476 + // sizeof(dsfInterface), 477 + // WDM_DSF_INTERFACE_V1_0, 478 + // NULL, 479 + // m_Device->GetAttachedDevice() 480 + // ); 480 481 481 - if (status == STATUS_NOT_SUPPORTED) { 482 - DoTraceLevelMessage( 483 - GetDriverGlobals(), TRACE_LEVEL_WARNING, TRACINGPNP, 484 - "Lower stack does not have a DSF interface"); 485 - status = STATUS_SUCCESS; 486 - goto Done; 487 - } 482 + // if (status == STATUS_NOT_SUPPORTED) { 483 + // DoTraceLevelMessage( 484 + // GetDriverGlobals(), TRACE_LEVEL_WARNING, TRACINGPNP, 485 + // "Lower stack does not have a DSF interface"); 486 + // status = STATUS_SUCCESS; 487 + // goto Done; 488 + // } 488 489 489 - if (!NT_SUCCESS(status)) { 490 - DoTraceLevelMessage( 491 - GetDriverGlobals(), TRACE_LEVEL_ERROR, TRACINGPNP, 492 - "Lower stack returned an error for query DSF interface, %!STATUS!", 493 - status); 494 - goto Done; 495 - } 490 + // if (!NT_SUCCESS(status)) { 491 + // DoTraceLevelMessage( 492 + // GetDriverGlobals(), TRACE_LEVEL_ERROR, TRACINGPNP, 493 + // "Lower stack returned an error for query DSF interface, %!STATUS!", 494 + // status); 495 + // goto Done; 496 + // } 496 497 497 - derefQI = TRUE; 498 + // derefQI = TRUE; 498 499 499 - // 500 - // Basic run time checks. 501 - // 502 - if (dsfInterface.Interface.Version != WDM_DSF_INTERFACE_V1_0) { 503 - status = STATUS_REVISION_MISMATCH; 504 - DoTraceLevelMessage( 505 - GetDriverGlobals(), TRACE_LEVEL_ERROR, TRACINGPNP, 506 - "Lower DSF stack supports v(%x), requested v(%x), %!STATUS!", 507 - dsfInterface.Interface.Version, 508 - WDM_DSF_INTERFACE_V1_0, 509 - status); 510 - goto Done; 511 - } 500 + // // 501 + // // Basic run time checks. 502 + // // 503 + // if (dsfInterface.Interface.Version != WDM_DSF_INTERFACE_V1_0) { 504 + // status = STATUS_REVISION_MISMATCH; 505 + // DoTraceLevelMessage( 506 + // GetDriverGlobals(), TRACE_LEVEL_ERROR, TRACINGPNP, 507 + // "Lower DSF stack supports v(%x), requested v(%x), %!STATUS!", 508 + // dsfInterface.Interface.Version, 509 + // WDM_DSF_INTERFACE_V1_0, 510 + // status); 511 + // goto Done; 512 + // } 512 513 513 - // 514 - // Ex functions should be both set or cleared. 515 - // Active/Inactive functions should be both set or cleared. 516 - // Ex function must be present. 517 - // Note: !!(ptr) expression below converts ptr value to true/false value. 518 - // I.e., ptr==NULL to false and ptr!=NULL to true. 519 - // 520 - if (!((!!(dsfInterface.IoConnectInterruptEx) == 521 - !!(dsfInterface.IoDisconnectInterruptEx)) && 522 - (!!(dsfInterface.IoReportInterruptActive) == 523 - !!(dsfInterface.IoReportInterruptInactive)) && 524 - (dsfInterface.IoConnectInterruptEx != NULL) 525 - )) { 526 - status = STATUS_DATA_ERROR; 527 - DoTraceLevelMessage( 528 - GetDriverGlobals(), TRACE_LEVEL_ERROR, TRACINGPNP, 529 - "Function mismatch detected in DSF interface, %!STATUS!", 530 - status); 531 - goto Done; 532 - } 514 + // // 515 + // // Ex functions should be both set or cleared. 516 + // // Active/Inactive functions should be both set or cleared. 517 + // // Ex function must be present. 518 + // // Note: !!(ptr) expression below converts ptr value to true/false value. 519 + // // I.e., ptr==NULL to false and ptr!=NULL to true. 520 + // // 521 + // if (!((!!(dsfInterface.IoConnectInterruptEx) == 522 + // !!(dsfInterface.IoDisconnectInterruptEx)) && 523 + // (!!(dsfInterface.IoReportInterruptActive) == 524 + // !!(dsfInterface.IoReportInterruptInactive)) && 525 + // (dsfInterface.IoConnectInterruptEx != NULL) 526 + // )) { 527 + // status = STATUS_DATA_ERROR; 528 + // DoTraceLevelMessage( 529 + // GetDriverGlobals(), TRACE_LEVEL_ERROR, TRACINGPNP, 530 + // "Function mismatch detected in DSF interface, %!STATUS!", 531 + // status); 532 + // goto Done; 533 + // } 533 534 534 - // 535 - // Info is correct. 536 - // 537 - m_IoConnectInterruptEx = dsfInterface.IoConnectInterruptEx; 538 - m_IoDisconnectInterruptEx = dsfInterface.IoDisconnectInterruptEx; 535 + // // 536 + // // Info is correct. 537 + // // 538 + // m_IoConnectInterruptEx = dsfInterface.IoConnectInterruptEx; 539 + // m_IoDisconnectInterruptEx = dsfInterface.IoDisconnectInterruptEx; 539 540 540 - // 541 - // If DSF interface provides active/inactive functions then use them 542 - // 543 - if (dsfInterface.IoReportInterruptActive != NULL) 544 - { 545 - m_IoReportInterruptActive = dsfInterface.IoReportInterruptActive; 546 - m_IoReportInterruptInactive = dsfInterface.IoReportInterruptInactive; 547 - } 541 + // // 542 + // // If DSF interface provides active/inactive functions then use them 543 + // // 544 + // if (dsfInterface.IoReportInterruptActive != NULL) 545 + // { 546 + // m_IoReportInterruptActive = dsfInterface.IoReportInterruptActive; 547 + // m_IoReportInterruptInactive = dsfInterface.IoReportInterruptInactive; 548 + // } 548 549 549 - Done: 550 + // Done: 550 551 551 - // 552 - // The contract with the DSF layer is to release the interface right away; 553 - // the embedded interrupt function ptrs will be valid until this driver is 554 - // unloaded. 555 - // 556 - if (derefQI) { 557 - dsfInterface.Interface.InterfaceDereference(dsfInterface.Interface.Context); 558 - } 552 + // // 553 + // // The contract with the DSF layer is to release the interface right away; 554 + // // the embedded interrupt function ptrs will be valid until this driver is 555 + // // unloaded. 556 + // // 557 + // if (derefQI) { 558 + // dsfInterface.Interface.InterfaceDereference(dsfInterface.Interface.Context); 559 + // } 559 560 560 - return status; 561 + // return status; 562 + return STATUS_NOT_IMPLEMENTED; 561 563 } 562 564 563 565 _Must_inspect_result_
+1 -1
sdk/lib/drivers/wdf/shared/irphandlers/pnp/km/fxpkgpdokm.cpp
··· 24 24 25 25 --*/ 26 26 27 - #include "..\pnppriv.hpp" 27 + #include "../pnppriv.hpp" 28 28 #include <wdmguid.h> 29 29 30 30 // Tracing support
+112 -111
sdk/lib/drivers/wdf/shared/irphandlers/pnp/km/fxpkgpnpkm.cpp
··· 1 1 // 2 2 // Copyright (C) Microsoft. All rights reserved. 3 3 // 4 - #include "..\pnppriv.hpp" 4 + #include "../pnppriv.hpp" 5 5 6 6 #include <initguid.h> 7 7 #include <wdmguid.h> ··· 307 307 ZwSetValueKey(RegKey, ValueName, 0, REG_DWORD, &Value, sizeof(Value)); 308 308 } 309 309 310 - NTSTATUS 311 - FxPkgPnp::UpdateWmiInstanceForS0Idle( 312 - __in FxWmiInstanceAction Action 313 - ) 314 - { 315 - FxWmiProvider* pProvider; 316 - NTSTATUS status; 310 + // NTSTATUS __REACTOS__ 311 + // FxPkgPnp::UpdateWmiInstanceForS0Idle( 312 + // __in FxWmiInstanceAction Action 313 + // ) 314 + // { 315 + // FxWmiProvider* pProvider; 316 + // NTSTATUS status; 317 317 318 - switch(Action) { 319 - case AddInstance: 320 - if (m_PowerPolicyMachine.m_Owner->m_IdleSettings.WmiInstance == NULL) { 321 - FxWmiInstanceInternalCallbacks cb; 318 + // switch(Action) { 319 + // case AddInstance: 320 + // if (m_PowerPolicyMachine.m_Owner->m_IdleSettings.WmiInstance == NULL) { 321 + // FxWmiInstanceInternalCallbacks cb; 322 322 323 - cb.SetInstance = _S0IdleSetInstance; 324 - cb.QueryInstance = _S0IdleQueryInstance; 325 - cb.SetItem = _S0IdleSetItem; 323 + // cb.SetInstance = _S0IdleSetInstance; 324 + // cb.QueryInstance = _S0IdleQueryInstance; 325 + // cb.SetItem = _S0IdleSetItem; 326 326 327 - status = RegisterPowerPolicyWmiInstance( 328 - &GUID_POWER_DEVICE_ENABLE, 329 - &cb, 330 - &m_PowerPolicyMachine.m_Owner->m_IdleSettings.WmiInstance); 327 + // status = RegisterPowerPolicyWmiInstance( 328 + // &GUID_POWER_DEVICE_ENABLE, 329 + // &cb, 330 + // &m_PowerPolicyMachine.m_Owner->m_IdleSettings.WmiInstance); 331 331 332 - if (!NT_SUCCESS(status)) { 333 - return status; 334 - } 335 - } 336 - else { 337 - pProvider = m_PowerPolicyMachine.m_Owner->m_IdleSettings. 338 - WmiInstance->GetProvider(); 332 + // if (!NT_SUCCESS(status)) { 333 + // return status; 334 + // } 335 + // } 336 + // else { 337 + // pProvider = m_PowerPolicyMachine.m_Owner->m_IdleSettings. 338 + // WmiInstance->GetProvider(); 339 339 340 - // 341 - // Enable the WMI GUID by adding the instance back to the provider's 342 - // list. If there is an error, ignore it. It just means we were 343 - // racing with another thread removing or adding the instance. 344 - // 345 - (void) pProvider->AddInstance( 346 - m_PowerPolicyMachine.m_Owner->m_IdleSettings.WmiInstance, 347 - TRUE 348 - ); 349 - } 350 - break; 340 + // // 341 + // // Enable the WMI GUID by adding the instance back to the provider's 342 + // // list. If there is an error, ignore it. It just means we were 343 + // // racing with another thread removing or adding the instance. 344 + // // 345 + // (void) pProvider->AddInstance( 346 + // m_PowerPolicyMachine.m_Owner->m_IdleSettings.WmiInstance, 347 + // TRUE 348 + // ); 349 + // } 350 + // break; 351 351 352 - case RemoveInstance: 353 - if (m_PowerPolicyMachine.m_Owner->m_IdleSettings.WmiInstance != NULL) { 354 - // 355 - // Disable the WMI guid by removing it from the provider's list of 356 - // instances. 357 - // 358 - pProvider = m_PowerPolicyMachine.m_Owner->m_IdleSettings. 359 - WmiInstance->GetProvider(); 352 + // case RemoveInstance: 353 + // if (m_PowerPolicyMachine.m_Owner->m_IdleSettings.WmiInstance != NULL) { 354 + // // 355 + // // Disable the WMI guid by removing it from the provider's list of 356 + // // instances. 357 + // // 358 + // pProvider = m_PowerPolicyMachine.m_Owner->m_IdleSettings. 359 + // WmiInstance->GetProvider(); 360 360 361 - pProvider->RemoveInstance( 362 - m_PowerPolicyMachine.m_Owner->m_IdleSettings.WmiInstance 363 - ); 364 - } 365 - break; 361 + // pProvider->RemoveInstance( 362 + // m_PowerPolicyMachine.m_Owner->m_IdleSettings.WmiInstance 363 + // ); 364 + // } 365 + // break; 366 366 367 - default: 368 - ASSERT(FALSE); 369 - break; 370 - } 367 + // default: 368 + // ASSERT(FALSE); 369 + // break; 370 + // } 371 371 372 - return STATUS_SUCCESS;; 373 - } 372 + // return STATUS_SUCCESS;; 373 + // } 374 374 375 375 VOID 376 376 FxPkgPnp::ReadRegistryS0Idle( ··· 401 401 } 402 402 } 403 403 404 - NTSTATUS 405 - FxPkgPnp::UpdateWmiInstanceForSxWake( 406 - __in FxWmiInstanceAction Action 407 - ) 408 - { 409 - FxWmiProvider* pProvider; 410 - NTSTATUS status; 404 + // NTSTATUS __REACTOS__ 405 + // FxPkgPnp::UpdateWmiInstanceForSxWake( 406 + // __in FxWmiInstanceAction Action 407 + // ) 408 + // { 409 + // FxWmiProvider* pProvider; 410 + // NTSTATUS status; 411 411 412 - switch(Action) { 413 - case AddInstance: 414 - if (m_PowerPolicyMachine.m_Owner->m_WakeSettings.WmiInstance == NULL) { 415 - FxWmiInstanceInternalCallbacks cb; 412 + // switch(Action) { 413 + // case AddInstance: 414 + // if (m_PowerPolicyMachine.m_Owner->m_WakeSettings.WmiInstance == NULL) { 415 + // FxWmiInstanceInternalCallbacks cb; 416 416 417 - cb.SetInstance = _SxWakeSetInstance; 418 - cb.QueryInstance = _SxWakeQueryInstance; 419 - cb.SetItem = _SxWakeSetItem; 417 + // cb.SetInstance = _SxWakeSetInstance; 418 + // cb.QueryInstance = _SxWakeQueryInstance; 419 + // cb.SetItem = _SxWakeSetItem; 420 420 421 - status = RegisterPowerPolicyWmiInstance( 422 - &GUID_POWER_DEVICE_WAKE_ENABLE, 423 - &cb, 424 - &m_PowerPolicyMachine.m_Owner->m_WakeSettings.WmiInstance); 421 + // status = RegisterPowerPolicyWmiInstance( 422 + // &GUID_POWER_DEVICE_WAKE_ENABLE, 423 + // &cb, 424 + // &m_PowerPolicyMachine.m_Owner->m_WakeSettings.WmiInstance); 425 425 426 - if (!NT_SUCCESS(status)) { 427 - return status; 428 - } 429 - } else { 430 - pProvider = m_PowerPolicyMachine.m_Owner->m_WakeSettings. 431 - WmiInstance->GetProvider(); 426 + // if (!NT_SUCCESS(status)) { 427 + // return status; 428 + // } 429 + // } else { 430 + // pProvider = m_PowerPolicyMachine.m_Owner->m_WakeSettings. 431 + // WmiInstance->GetProvider(); 432 432 433 - // 434 - // Enable the WMI GUID by adding the instance back to the provider's 435 - // list. If there is an error, ignore it. It just means we were 436 - // racing with another thread removing or adding the instance. 437 - // 438 - (void) pProvider->AddInstance( 439 - m_PowerPolicyMachine.m_Owner->m_WakeSettings.WmiInstance, 440 - TRUE 441 - ); 442 - } 443 - break; 433 + // // 434 + // // Enable the WMI GUID by adding the instance back to the provider's 435 + // // list. If there is an error, ignore it. It just means we were 436 + // // racing with another thread removing or adding the instance. 437 + // // 438 + // (void) pProvider->AddInstance( 439 + // m_PowerPolicyMachine.m_Owner->m_WakeSettings.WmiInstance, 440 + // TRUE 441 + // ); 442 + // } 443 + // break; 444 444 445 - case RemoveInstance: 446 - if (m_PowerPolicyMachine.m_Owner->m_WakeSettings.WmiInstance != NULL) { 447 - // 448 - // Disable the WMI guid by removing it from the provider's list of 449 - // instances. 450 - // 451 - pProvider = m_PowerPolicyMachine.m_Owner->m_WakeSettings. 452 - WmiInstance->GetProvider(); 445 + // case RemoveInstance: 446 + // if (m_PowerPolicyMachine.m_Owner->m_WakeSettings.WmiInstance != NULL) { 447 + // // 448 + // // Disable the WMI guid by removing it from the provider's list of 449 + // // instances. 450 + // // 451 + // pProvider = m_PowerPolicyMachine.m_Owner->m_WakeSettings. 452 + // WmiInstance->GetProvider(); 453 453 454 - pProvider->RemoveInstance( 455 - m_PowerPolicyMachine.m_Owner->m_WakeSettings.WmiInstance 456 - ); 457 - } 458 - break; 454 + // pProvider->RemoveInstance( 455 + // m_PowerPolicyMachine.m_Owner->m_WakeSettings.WmiInstance 456 + // ); 457 + // } 458 + // break; 459 459 460 - default: 461 - ASSERT(FALSE); 462 - break; 463 - } 460 + // default: 461 + // ASSERT(FALSE); 462 + // break; 463 + // } 464 464 465 - return STATUS_SUCCESS; 466 - } 465 + // return STATUS_SUCCESS; 466 + // } 467 467 468 468 VOID 469 469 FxPkgPnp::ReadRegistrySxWake( ··· 530 530 __in FxDmaEnabler *DmaEnabler 531 531 ) 532 532 { 533 - DmaEnabler->RevokeResources(); 533 + // DmaEnabler->RevokeResources(); 534 + ROSWDFNOTIMPLEMENTED; 534 535 } 535 536 536 537 VOID
+1 -1
sdk/lib/drivers/wdf/shared/irphandlers/pnp/km/interruptobjectkm.cpp
··· 31 31 #include "pnppriv.hpp" 32 32 33 33 // Tracing support 34 - #include "InterruptObjectKm.tmh" 34 + // #include "InterruptObjectKm.tmh" 35 35 36 36 _Must_inspect_result_ 37 37 NTSTATUS
+36 -20
sdk/lib/drivers/wdf/shared/irphandlers/pnp/km/pnpprivkm.hpp
··· 5 5 #define _PNPPRIVKM_H_ 6 6 7 7 // public headers 8 - #include "WdfDmaEnabler.h" 8 + #include "wdfdmaenabler.h" 9 9 10 10 // private headers 11 - #include "FxIrpQueue.hpp" 12 - #include "FxCallback.hpp" 11 + #include "fxirpqueue.hpp" 12 + #include "fxcallback.hpp" 13 13 14 14 // <FxSystemWorkItem.hpp> 15 15 __drv_functionClass(EVT_SYSTEMWORKITEM) ··· 26 26 27 27 // </FxSystemWorkItem.hpp> 28 28 29 - #include "FxCallbackSpinlock.hpp" 30 - #include "FxCallbackMutexLock.hpp" 31 - #include "FxPackage.hpp" 32 - #include "IfxMemory.hpp" 33 - #include "FxCallback.hpp" 34 - #include "FxRequestContext.hpp" 35 - #include "FxRequestContextTypes.h" 36 - #include "FxRequestBase.hpp" 37 - #include "FxRequest.hpp" 38 - #include "FxPkgPnp.hpp" 39 - #include "FxPkgIo.hpp" 40 - #include "FxIoQueue.hpp" 29 + #include "fxcallbackspinlock.hpp" 30 + #include "fxcallbackmutexlock.hpp" 31 + #include "fxpackage.hpp" 32 + #include "ifxmemory.hpp" 33 + #include "fxcallback.hpp" 34 + #include "fxrequestcontext.hpp" 35 + #include "fxrequestcontexttypes.h" 36 + #include "fxrequestbase.hpp" 37 + #include "fxrequest.hpp" 38 + #include "fxpkgpnp.hpp" 39 + #include "fxpkgio.hpp" 40 + #include "fxioqueue.hpp" 41 41 42 - #include "FxDmaEnabler.hpp" 43 - #include "FxSystemWorkItem.hpp" 42 + #include "fxdmaenabler.hpp" 43 + #include "fxsystemworkitem.hpp" 44 44 45 - #include "FxDsf.h" // DSF support. 46 - #include <device_common.h> 47 - #include "FxTelemetry.hpp" 45 + // #include "FxDsf.h" // DSF support. 46 + // #include <device_common.h> 47 + // #include "FxTelemetry.hpp" 48 + // __REACTOS__ 49 + typedef struct _STACK_DEVICE_CAPABILITIES { 50 + // 51 + // The capabilities as garnered from IRP_MN_QUERY_CAPABILITIES. 52 + // 53 + DEVICE_CAPABILITIES DeviceCaps; 54 + 55 + // 56 + // The lowest-power D-state that a device can be in and still generate 57 + // a wake signal, indexed by system state. (PowerSystemUnspecified is 58 + // an unused slot in this array.) 59 + // 60 + DEVICE_WAKE_DEPTH DeepestWakeableDstate[PowerSystemHibernate+1]; 61 + } STACK_DEVICE_CAPABILITIES, *PSTACK_DEVICE_CAPABILITIES; 62 + // end __REACTOS__ 63 + 48 64 49 65 _Must_inspect_result_ 50 66 NTSTATUS
+1 -1
sdk/lib/drivers/wdf/shared/irphandlers/pnp/km/pnpstatemachinekm.cpp
··· 24 24 25 25 --*/ 26 26 27 - #include "..\pnppriv.hpp" 27 + #include "../pnppriv.hpp" 28 28 #include <wdmguid.h> 29 29 30 30 #include<ntstrsafe.h>
+24 -23
sdk/lib/drivers/wdf/shared/irphandlers/pnp/km/powerpolicystatemachinekm.cpp
··· 17 17 18 18 --*/ 19 19 20 - #include "..\pnppriv.hpp" 20 + #include "../pnppriv.hpp" 21 21 22 22 #if FX_IS_KERNEL_MODE 23 23 #include <usbdrivr.h> 24 24 #endif 25 25 26 - #include "FxUsbIdleInfo.hpp" 26 + #include "fxusbidleinfo.hpp" 27 27 28 28 extern "C" { 29 29 #if defined(EVENT_TRACING) ··· 163 163 VOID 164 164 ) 165 165 { 166 - FxIrp* usbIdleIrp; 166 + // FxIrp* usbIdleIrp; 167 167 168 - // 169 - // This will be set to TRUE if USBSS completion event gets dropped. 170 - // 171 - m_PowerPolicyMachine.m_Owner->m_UsbIdle->m_EventDropped = FALSE; 168 + // // 169 + // // This will be set to TRUE if USBSS completion event gets dropped. 170 + // // 171 + // m_PowerPolicyMachine.m_Owner->m_UsbIdle->m_EventDropped = FALSE; 172 172 173 - usbIdleIrp = &m_PowerPolicyMachine.m_Owner->m_UsbIdle->m_IdleIrp; 173 + // usbIdleIrp = &m_PowerPolicyMachine.m_Owner->m_UsbIdle->m_IdleIrp; 174 174 175 - usbIdleIrp->Reuse(); 175 + // usbIdleIrp->Reuse(); 176 176 177 - usbIdleIrp->SetCompletionRoutineEx( 178 - m_Device->GetDeviceObject(), 179 - _PowerPolicyUsbSelectiveSuspendCompletionRoutine, 180 - this); 177 + // usbIdleIrp->SetCompletionRoutineEx( 178 + // m_Device->GetDeviceObject(), 179 + // _PowerPolicyUsbSelectiveSuspendCompletionRoutine, 180 + // this); 181 181 182 - usbIdleIrp->SetMajorFunction(IRP_MJ_INTERNAL_DEVICE_CONTROL); 183 - usbIdleIrp->SetParameterIoctlCode( 184 - IOCTL_INTERNAL_USB_SUBMIT_IDLE_NOTIFICATION); 185 - usbIdleIrp->SetParameterIoctlInputBufferLength( 186 - sizeof(m_PowerPolicyMachine.m_Owner->m_UsbIdle->m_CallbackInfo)); 187 - usbIdleIrp->SetParameterIoctlType3InputBuffer( 188 - (PVOID) &m_PowerPolicyMachine.m_Owner->m_UsbIdle->m_CallbackInfo); 182 + // usbIdleIrp->SetMajorFunction(IRP_MJ_INTERNAL_DEVICE_CONTROL); 183 + // usbIdleIrp->SetParameterIoctlCode( 184 + // IOCTL_INTERNAL_USB_SUBMIT_IDLE_NOTIFICATION); 185 + // usbIdleIrp->SetParameterIoctlInputBufferLength( 186 + // sizeof(m_PowerPolicyMachine.m_Owner->m_UsbIdle->m_CallbackInfo)); 187 + // usbIdleIrp->SetParameterIoctlType3InputBuffer( 188 + // (PVOID) &m_PowerPolicyMachine.m_Owner->m_UsbIdle->m_CallbackInfo); 189 189 190 - m_PowerPolicyMachine.m_Owner->m_UsbIdle->m_IdleIrp.CallDriver( 191 - m_Device->GetAttachedDevice() 192 - ); 190 + // m_PowerPolicyMachine.m_Owner->m_UsbIdle->m_IdleIrp.CallDriver( 191 + // m_Device->GetAttachedDevice() 192 + // ); 193 + ROSWDFNOTIMPLEMENTED; 193 194 } 194 195 195 196 VOID
+33 -33
sdk/lib/drivers/wdf/shared/irphandlers/pnp/km/powerstatemachinekm.cpp
··· 23 23 24 24 --*/ 25 25 26 - #include "..\pnppriv.hpp" 26 + #include "../pnppriv.hpp" 27 27 28 28 extern "C" { 29 29 #if defined(EVENT_TRACING) ··· 51 51 --*/ 52 52 53 53 { 54 - FxTransactionedEntry* ple; 55 - NTSTATUS status; 54 + // FxTransactionedEntry* ple; 55 + // NTSTATUS status; 56 56 BOOLEAN result; 57 57 58 58 result = TRUE; ··· 60 60 // 61 61 // Power up each dma enabler 62 62 // 63 - if (m_DmaEnablerList != NULL) { 64 - m_DmaEnablerList->LockForEnum(GetDriverGlobals()); 63 + // if (m_DmaEnablerList != NULL) { 64 + // m_DmaEnablerList->LockForEnum(GetDriverGlobals()); 65 65 66 - ple = NULL; 67 - while ((ple = m_DmaEnablerList->GetNextEntry(ple)) != NULL) { 68 - status = ((FxDmaEnabler*) ple->GetTransactionedObject())->PowerUp(); 66 + // ple = NULL; 67 + // while ((ple = m_DmaEnablerList->GetNextEntry(ple)) != NULL) { 68 + // status = ((FxDmaEnabler*) ple->GetTransactionedObject())->PowerUp(); 69 69 70 - if (!NT_SUCCESS(status)) { 71 - result = FALSE; 72 - break; 73 - } 74 - } 70 + // if (!NT_SUCCESS(status)) { 71 + // result = FALSE; 72 + // break; 73 + // } 74 + // } 75 75 76 - m_DmaEnablerList->UnlockFromEnum(GetDriverGlobals()); 77 - } 76 + // m_DmaEnablerList->UnlockFromEnum(GetDriverGlobals()); 77 + // } 78 78 79 79 return result; 80 80 } ··· 97 97 98 98 --*/ 99 99 { 100 - FxTransactionedEntry* ple; 101 - NTSTATUS status; 100 + // FxTransactionedEntry* ple; 101 + // NTSTATUS status; 102 102 BOOLEAN result; 103 103 104 104 result = TRUE; ··· 106 106 // 107 107 // Power up each dma enabler 108 108 // 109 - if (m_DmaEnablerList != NULL) { 110 - m_DmaEnablerList->LockForEnum(GetDriverGlobals()); 109 + // if (m_DmaEnablerList != NULL) { 110 + // m_DmaEnablerList->LockForEnum(GetDriverGlobals()); 111 111 112 - ple = NULL; 113 - while ((ple = m_DmaEnablerList->GetNextEntry(ple)) != NULL) { 114 - status = ((FxDmaEnabler*) ple->GetTransactionedObject())->PowerDown(); 112 + // ple = NULL; 113 + // while ((ple = m_DmaEnablerList->GetNextEntry(ple)) != NULL) { 114 + // status = ((FxDmaEnabler*) ple->GetTransactionedObject())->PowerDown(); 115 115 116 - if (!NT_SUCCESS(status)) { 117 - // 118 - // We do not break out of the loop on power down failure. We will 119 - // continue to power down each channel regardless of the previous 120 - // channel's power down status. 121 - // 122 - result = FALSE; 123 - } 124 - } 116 + // if (!NT_SUCCESS(status)) { 117 + // // 118 + // // We do not break out of the loop on power down failure. We will 119 + // // continue to power down each channel regardless of the previous 120 + // // channel's power down status. 121 + // // 122 + // result = FALSE; 123 + // } 124 + // } 125 125 126 - m_DmaEnablerList->UnlockFromEnum(GetDriverGlobals()); 127 - } 126 + // m_DmaEnablerList->UnlockFromEnum(GetDriverGlobals()); 127 + // } 128 128 129 129 return result; 130 130 }
+7 -2
sdk/lib/drivers/wdf/shared/irphandlers/pnp/km/supportkm.cpp
··· 21 21 22 22 --*/ 23 23 24 - #include "..\pnppriv.hpp" 24 + #include "../pnppriv.hpp" 25 25 #include <wdmguid.h> 26 26 27 27 #if defined(EVENT_TRACING) ··· 200 200 Pointer to the object that can be passed in to IoAllocateWorkItem 201 201 --*/ 202 202 { 203 - return (PVOID) FxLibraryGlobals.DriverObject; 203 + // return (PVOID) FxLibraryGlobals.DriverObject; 204 + // __REACTOS__ : we don't have a WDF driver object here, use a child one 205 + 206 + PFX_DRIVER_GLOBALS fxDriverGlobals = GetFxDriverGlobals(WdfDriverGlobals); 207 + return fxDriverGlobals->Driver->GetDriverObject(); 204 208 } 205 209 206 210 BOOLEAN ··· 291 295 } 292 296 293 297 VOID 298 + STDCALL 294 299 _DeviceUsageNotificationWorkItem( 295 300 __in MdDeviceObject DeviceObject, 296 301 __in PVOID Context
-7
sdk/lib/drivers/wdf/shared/irphandlers/pnp/pdopower.cpp
··· 96 96 __in FxIrp *Irp 97 97 ) 98 98 { 99 - NTSTATUS status; 100 99 KIRQL irql; 101 100 MxDeviceObject deviceObject(m_Device->GetDeviceObject()); 102 - 103 - status = STATUS_SUCCESS; 104 101 105 102 m_SystemPowerState = (BYTE) Irp->GetParameterPowerStateSystemState(); 106 103 deviceObject.SetPowerState(SystemPowerState, ··· 155 152 __in FxIrp *Irp 156 153 ) 157 154 { 158 - NTSTATUS status; 159 - 160 - status = STATUS_SUCCESS; 161 - 162 155 if (IsPowerPolicyOwner()) { 163 156 if (m_PowerPolicyMachine.m_Owner->m_RequestedPowerUpIrp == FALSE && 164 157 m_PowerPolicyMachine.m_Owner->m_RequestedPowerDownIrp == FALSE) {
+41 -41
sdk/lib/drivers/wdf/shared/irphandlers/pnp/pnppriv.hpp
··· 38 38 // 39 39 // common header file for all irphandler\* files 40 40 // 41 - #include "irphandlerspriv.hpp" 41 + #include "shared/irphandlers/irphandlerspriv.hpp" 42 42 43 43 // 44 44 // public headers 45 45 // 46 - #include "wdfDevice.h" 47 - #include "wdfChildList.h" 48 - #include "wdfPdo.h" 46 + #include "wdfdevice.h" 47 + #include "wdfchildlist.h" 48 + #include "wdfpdo.h" 49 49 #include "wdffdo.h" 50 - #include "wdfQueryInterface.h" 51 - #include "wdfMemory.h" 52 - #include "wdfWmi.h" 50 + #include "wdfqueryinterface.h" 51 + #include "wdfmemory.h" 52 + #include "wdfwmi.h" 53 53 54 54 55 55 ··· 70 70 71 71 72 72 #ifndef _INTERRUPT_COMMON_H_ 73 - #include "WdfInterrupt.h" 73 + #include "wdfinterrupt.h" 74 74 #endif 75 75 #ifndef _WUDFDDI_TYPES_PRIVATE_H_ 76 76 #include "wdfrequest.h" ··· 80 80 // 81 81 // private headers 82 82 // 83 - #include "FxWaitLock.hpp" 84 - #include "FxTransactionedList.hpp" 85 - #include "FxRelatedDeviceList.hpp" 86 - #include "FxCollection.hpp" 83 + #include "fxwaitlock.hpp" 84 + #include "fxtransactionedlist.hpp" 85 + #include "fxrelateddevicelist.hpp" 86 + #include "fxcollection.hpp" 87 87 88 88 // support 89 - #include "StringUtil.hpp" 90 - #include "FxString.hpp" 91 - #include "FxDeviceText.hpp" 92 - #include "FxCallback.hpp" 93 - #include "FxSystemThread.hpp" 94 - #include "FxResource.hpp" 89 + #include "stringutil.hpp" 90 + #include "fxstring.hpp" 91 + #include "fxdevicetext.hpp" 92 + #include "fxcallback.hpp" 93 + #include "fxsystemthread.hpp" 94 + #include "fxresource.hpp" 95 95 96 96 // io 97 - #include "FxPkgIoShared.hpp" 97 + #include "fxpkgioshared.hpp" 98 98 99 99 // 100 100 // FxDeviceInitShared.hpp is new header with definition of PdoInit split from 101 101 // FxDeviceInit.hpp 102 102 // 103 - #include "FxDeviceInitShared.hpp" 103 + #include "fxdeviceinitshared.hpp" 104 104 105 105 // bus 106 - #include "FxChildList.hpp" 106 + #include "fxchildlist.hpp" 107 107 108 108 // FxDevice To Shared interface header 109 - #include "FxDeviceToMxInterface.hpp" 109 + #include "fxdevicetomxinterface.hpp" 110 110 111 111 // mode specific headers 112 112 #if FX_IS_KERNEL_MODE 113 - #include "PnpPrivKM.hpp" 113 + #include "pnpprivkm.hpp" 114 114 #elif FX_IS_USER_MODE 115 - #include "PnpPrivUM.hpp" 115 + #include "pnpprivum.hpp" 116 116 #endif 117 117 118 - #include "FxSpinLock.hpp" 118 + #include "fxspinlock.hpp" 119 119 120 120 #if FX_IS_KERNEL_MODE 121 - #include "FxInterruptKm.hpp" 121 + #include "fxinterruptkm.hpp" 122 122 #elif FX_IS_USER_MODE 123 - #include "FxInterruptUm.hpp" 123 + #include "fxinterruptum.hpp" 124 124 #endif 125 125 126 126 #if FX_IS_KERNEL_MODE 127 - #include "FxPerfTraceKm.hpp" 127 + #include "fxperftracekm.hpp" 128 128 #endif 129 129 130 - #include "FxTelemetry.hpp" 130 + #include "fxtelemetry.hpp" 131 131 132 132 // pnp 133 - #include "FxRelatedDevice.hpp" 134 - #include "FxDeviceInterface.hpp" 135 - #include "FxQueryInterface.hpp" 136 - #include "FxPnpCallbacks.hpp" 137 - #include "FxPackage.hpp" 138 - #include "FxPkgPnp.hpp" 139 - #include "FxWatchDog.hpp" 140 - #include "FxPkgPdo.hpp" 141 - #include "FxPkgFdo.hpp" 133 + #include "fxrelateddevice.hpp" 134 + #include "fxdeviceinterface.hpp" 135 + #include "fxqueryinterface.hpp" 136 + #include "fxpnpcallbacks.hpp" 137 + #include "fxpackage.hpp" 138 + #include "fxpkgpnp.hpp" 139 + #include "fxwatchdog.hpp" 140 + #include "fxpkgpdo.hpp" 141 + #include "fxpkgfdo.hpp" 142 142 143 143 // wmi 144 - #include "FxWmiIrpHandler.hpp" 145 - #include "FxWmiProvider.hpp" 146 - #include "FxWmiInstance.hpp" 144 + #include "fxwmiirphandler.hpp" 145 + #include "fxwmiprovider.hpp" 146 + #include "fxwmiinstance.hpp" 147 147 148 148 149 149 VOID
+3 -3
sdk/lib/drivers/wdf/shared/irphandlers/pnp/pnpstatemachine.cpp
··· 3270 3270 // 3271 3271 // Reset WMI state 3272 3272 // 3273 - This->m_Device->m_PkgWmi->ResetStateForPdoRestart(); 3273 + // This->m_Device->m_PkgWmi->ResetStateForPdoRestart(); __REACTOS__ 3274 3274 3275 3275 3276 3276 This->m_Device->m_PkgIo->ResetStateForRestart(); ··· 3354 3354 if (This->m_DeviceRemoveProcessed == NULL) { 3355 3355 status = Mx::MxAcquireRemoveLock( 3356 3356 This->m_Device->GetRemoveLock(), 3357 - &FxPkgPnp::PnpEventFinal); 3357 + (PVOID)&FxPkgPnp::PnpEventFinal); 3358 3358 3359 3359 ASSERT(NT_SUCCESS(status)); 3360 3360 UNREFERENCED_PARAMETER(status); ··· 3389 3389 // 3390 3390 Mx::MxReleaseRemoveLockAndWait( 3391 3391 This->m_Device->GetRemoveLock(), 3392 - &FxPkgPnp::PnpEventFinal); 3392 + (PVOID)&FxPkgPnp::PnpEventFinal); 3393 3393 3394 3394 // 3395 3395 // Delete the object when we exit the state machine. Dispose was run
+1 -1
sdk/lib/drivers/wdf/shared/irphandlers/pnp/powerpolicystatemachine.cpp
··· 32 32 #include <usbdrivr.h> 33 33 #endif 34 34 35 - #include "FxUsbIdleInfo.hpp" 35 + #include "fxusbidleinfo.hpp" 36 36 37 37 extern "C" { 38 38 #if defined(EVENT_TRACING)
+1 -1
sdk/lib/drivers/wdf/shared/irphandlers/pnp/powerstatemachine.cpp
··· 2283 2283 status = This->m_SelfManagedIoMachine->Start(); 2284 2284 2285 2285 if (!NT_SUCCESS(status)) { 2286 - return WdfDevStatePowerInitialSelfManagedIoFailed; 2286 + // return WdfDevStatePowerInitialSelfManagedIoFailed; __REACTOS__ : allow to fail 2287 2287 } 2288 2288 } 2289 2289
+394 -379
sdk/lib/drivers/wdf/shared/irphandlers/pnp/poxinterface.cpp
··· 45 45 VOID 46 46 ) 47 47 { 48 - NTSTATUS status; 49 - FxDevicePwrRequirementMachine * fxDprMachine = NULL; 48 + // NTSTATUS status; 49 + // FxDevicePwrRequirementMachine * fxDprMachine = NULL; 50 50 51 - ASSERT(NULL == m_DevicePowerRequirementMachine); 51 + // ASSERT(NULL == m_DevicePowerRequirementMachine); 52 52 53 - fxDprMachine = new (m_PkgPnp->GetDriverGlobals()) 54 - FxDevicePwrRequirementMachine(this); 55 - if (NULL == fxDprMachine) { 56 - status = STATUS_INSUFFICIENT_RESOURCES; 57 - DoTraceLevelMessage( 58 - m_PkgPnp->GetDriverGlobals(), 59 - TRACE_LEVEL_ERROR, TRACINGPNP, 60 - "WDFDEVICE 0x%p !devobj 0x%p failed to allocate " 61 - "FxDevicePwrRequirementMachine. %!STATUS!.", 62 - m_PkgPnp->GetDevice()->GetHandle(), 63 - m_PkgPnp->GetDevice()->GetDeviceObject(), 64 - status); 65 - goto exit; 66 - } 53 + // fxDprMachine = new (m_PkgPnp->GetDriverGlobals()) 54 + // FxDevicePwrRequirementMachine(this); 55 + // if (NULL == fxDprMachine) { 56 + // status = STATUS_INSUFFICIENT_RESOURCES; 57 + // DoTraceLevelMessage( 58 + // m_PkgPnp->GetDriverGlobals(), 59 + // TRACE_LEVEL_ERROR, TRACINGPNP, 60 + // "WDFDEVICE 0x%p !devobj 0x%p failed to allocate " 61 + // "FxDevicePwrRequirementMachine. %!STATUS!.", 62 + // m_PkgPnp->GetDevice()->GetHandle(), 63 + // m_PkgPnp->GetDevice()->GetDeviceObject(), 64 + // status); 65 + // goto exit; 66 + // } 67 67 68 - status = fxDprMachine->Initialize(m_PkgPnp->GetDriverGlobals()); 69 - if (FALSE == NT_SUCCESS(status)) { 70 - DoTraceLevelMessage( 71 - m_PkgPnp->GetDriverGlobals(), 72 - TRACE_LEVEL_ERROR, TRACINGPNP, 73 - "WDFDEVICE 0x%p !devobj 0x%p Device Power Requirement State Machine" 74 - " Initialize() failed, %!STATUS!", 75 - m_PkgPnp->GetDevice()->GetHandle(), 76 - m_PkgPnp->GetDevice()->GetDeviceObject(), 77 - status); 78 - goto exit; 79 - } 68 + // status = fxDprMachine->Initialize(m_PkgPnp->GetDriverGlobals()); 69 + // if (FALSE == NT_SUCCESS(status)) { 70 + // DoTraceLevelMessage( 71 + // m_PkgPnp->GetDriverGlobals(), 72 + // TRACE_LEVEL_ERROR, TRACINGPNP, 73 + // "WDFDEVICE 0x%p !devobj 0x%p Device Power Requirement State Machine" 74 + // " Initialize() failed, %!STATUS!", 75 + // m_PkgPnp->GetDevice()->GetHandle(), 76 + // m_PkgPnp->GetDevice()->GetDeviceObject(), 77 + // status); 78 + // goto exit; 79 + // } 80 80 81 - status = fxDprMachine->Init( 82 - m_PkgPnp, 83 - FxDevicePwrRequirementMachine::_ProcessEventInner 84 - ); 85 - if (!NT_SUCCESS(status)) { 86 - DoTraceLevelMessage( 87 - m_PkgPnp->GetDriverGlobals(), 88 - TRACE_LEVEL_ERROR, TRACINGPNP, 89 - "WDFDEVICE 0x%p !devobj 0x%p Device Power Requirement State Machine" 90 - " Init() failed, %!STATUS!", 91 - m_PkgPnp->GetDevice()->GetHandle(), 92 - m_PkgPnp->GetDevice()->GetDeviceObject(), 93 - status); 94 - goto exit; 95 - } 81 + // status = fxDprMachine->Init( 82 + // m_PkgPnp, 83 + // FxDevicePwrRequirementMachine::_ProcessEventInner 84 + // ); 85 + // if (!NT_SUCCESS(status)) { 86 + // DoTraceLevelMessage( 87 + // m_PkgPnp->GetDriverGlobals(), 88 + // TRACE_LEVEL_ERROR, TRACINGPNP, 89 + // "WDFDEVICE 0x%p !devobj 0x%p Device Power Requirement State Machine" 90 + // " Init() failed, %!STATUS!", 91 + // m_PkgPnp->GetDevice()->GetHandle(), 92 + // m_PkgPnp->GetDevice()->GetDeviceObject(), 93 + // status); 94 + // goto exit; 95 + // } 96 96 97 - m_DevicePowerRequirementMachine = fxDprMachine; 97 + // m_DevicePowerRequirementMachine = fxDprMachine; 98 98 99 - status = STATUS_SUCCESS; 99 + // status = STATUS_SUCCESS; 100 100 101 - exit: 102 - if (FALSE == NT_SUCCESS(status)) { 103 - if (NULL != fxDprMachine) { 104 - delete fxDprMachine; 105 - } 106 - } 107 - return status; 101 + // exit: 102 + // if (FALSE == NT_SUCCESS(status)) { 103 + // if (NULL != fxDprMachine) { 104 + // delete fxDprMachine; 105 + // } 106 + // } 107 + // return status; 108 + ROSWDFNOTIMPLEMENTED; 109 + return STATUS_SUCCESS; 108 110 } 109 111 110 112 NTSTATUS ··· 112 114 VOID 113 115 ) 114 116 { 115 - NTSTATUS status; 116 - PPOX_SETTINGS poxSettings = NULL; 117 - WDFDEVICE fxDevice = NULL; 117 + // NTSTATUS status; 118 + // PPOX_SETTINGS poxSettings = NULL; 119 + // WDFDEVICE fxDevice = NULL; 118 120 119 121 120 - if (FALSE == m_PkgPnp->m_PowerPolicyMachine.m_Owner->m_IdleSettings. 121 - m_TimeoutMgmt.UsingSystemManagedIdleTimeout()) { 122 - // 123 - // Driver-managed idle timeout. Nothing to do. 124 - // 125 - return STATUS_SUCCESS; 126 - } 122 + // if (FALSE == m_PkgPnp->m_PowerPolicyMachine.m_Owner->m_IdleSettings. 123 + // m_TimeoutMgmt.UsingSystemManagedIdleTimeout()) { 124 + // // 125 + // // Driver-managed idle timeout. Nothing to do. 126 + // // 127 + // return STATUS_SUCCESS; 128 + // } 127 129 128 - // 129 - // We create the device power requirement state machine only if system- 130 - // managed idle timeout is being used. 131 - // 132 - if (NULL == m_DevicePowerRequirementMachine) { 133 - status = CreateDevicePowerRequirementMachine(); 134 - if (FALSE == NT_SUCCESS(status)) { 135 - goto exit; 136 - } 137 - } 130 + // // 131 + // // We create the device power requirement state machine only if system- 132 + // // managed idle timeout is being used. 133 + // // 134 + // if (NULL == m_DevicePowerRequirementMachine) { 135 + // status = CreateDevicePowerRequirementMachine(); 136 + // if (FALSE == NT_SUCCESS(status)) { 137 + // goto exit; 138 + // } 139 + // } 138 140 139 - ASSERT(NULL != m_DevicePowerRequirementMachine); 141 + // ASSERT(NULL != m_DevicePowerRequirementMachine); 140 142 141 - // 142 - // Register with the power framework 143 - // 144 - status = PoxRegisterDevice(); 143 + // // 144 + // // Register with the power framework 145 + // // 146 + // status = PoxRegisterDevice(); 145 147 146 - if (FALSE == NT_SUCCESS(status)) { 147 - DoTraceLevelMessage( 148 - m_PkgPnp->GetDriverGlobals(), 149 - TRACE_LEVEL_ERROR, TRACINGPNP, 150 - "WDFDEVICE 0x%p !devobj 0x%p FxPox::PoxRegisterDevice failed. " 151 - "%!STATUS!.", 152 - m_PkgPnp->GetDevice()->GetHandle(), 153 - m_PkgPnp->GetDevice()->GetDeviceObject(), 154 - status); 155 - goto exit; 156 - } 148 + // if (FALSE == NT_SUCCESS(status)) { 149 + // DoTraceLevelMessage( 150 + // m_PkgPnp->GetDriverGlobals(), 151 + // TRACE_LEVEL_ERROR, TRACINGPNP, 152 + // "WDFDEVICE 0x%p !devobj 0x%p FxPox::PoxRegisterDevice failed. " 153 + // "%!STATUS!.", 154 + // m_PkgPnp->GetDevice()->GetHandle(), 155 + // m_PkgPnp->GetDevice()->GetDeviceObject(), 156 + // status); 157 + // goto exit; 158 + // } 157 159 158 - // 159 - // At the time of registration, all components are active. When we start the 160 - // power framework's device power management (see below), all components are 161 - // moved to the idle state by default. Take an extra reference on the 162 - // component to prevent this from happening. The power policy state machine 163 - // will evaluate the S0-idle policy later and ask us to drop this reference 164 - // if the policy requires it. 165 - // 166 - PoxActivateComponent(); 160 + // // 161 + // // At the time of registration, all components are active. When we start the 162 + // // power framework's device power management (see below), all components are 163 + // // moved to the idle state by default. Take an extra reference on the 164 + // // component to prevent this from happening. The power policy state machine 165 + // // will evaluate the S0-idle policy later and ask us to drop this reference 166 + // // if the policy requires it. 167 + // // 168 + // PoxActivateComponent(); 167 169 168 - // 169 - // Tell the power framework to start its device power management. This will 170 - // drop a reference on the component, but the component will still remain 171 - // active because of the extra reference we took above. 172 - // 173 - PoxStartDevicePowerManagement(); 170 + // // 171 + // // Tell the power framework to start its device power management. This will 172 + // // drop a reference on the component, but the component will still remain 173 + // // active because of the extra reference we took above. 174 + // // 175 + // PoxStartDevicePowerManagement(); 174 176 175 - // 176 - // If the client driver has specified power framework settings, retrieve 177 - // them. 178 - // 179 - poxSettings = GetPowerFrameworkSettings(); 177 + // // 178 + // // If the client driver has specified power framework settings, retrieve 179 + // // them. 180 + // // 181 + // poxSettings = GetPowerFrameworkSettings(); 180 182 181 - // 182 - // If the driver wanted to receive the POHANDLE, invoke their callback now 183 - // 184 - if ((NULL != poxSettings) && 185 - (NULL != poxSettings->EvtDeviceWdmPostPoFxRegisterDevice)) { 183 + // // 184 + // // If the driver wanted to receive the POHANDLE, invoke their callback now 185 + // // 186 + // if ((NULL != poxSettings) && 187 + // (NULL != poxSettings->EvtDeviceWdmPostPoFxRegisterDevice)) { 186 188 187 - fxDevice = m_PkgPnp->GetDevice()->GetHandle(); 189 + // fxDevice = m_PkgPnp->GetDevice()->GetHandle(); 188 190 189 - status = poxSettings->EvtDeviceWdmPostPoFxRegisterDevice( 190 - fxDevice, 191 - m_PoHandle 192 - ); 193 - if (FALSE == NT_SUCCESS(status)) { 191 + // status = poxSettings->EvtDeviceWdmPostPoFxRegisterDevice( 192 + // fxDevice, 193 + // m_PoHandle 194 + // ); 195 + // if (FALSE == NT_SUCCESS(status)) { 194 196 195 - DoTraceLevelMessage( 196 - m_PkgPnp->GetDriverGlobals(), 197 - TRACE_LEVEL_ERROR, TRACINGPNP, 198 - "WDFDEVICE 0x%p !devobj 0x%p. The client driver has failed the " 199 - "EvtDeviceWdmPostPoFxRegisterDevice callback with %!STATUS!.", 200 - m_PkgPnp->GetDevice()->GetHandle(), 201 - m_PkgPnp->GetDevice()->GetDeviceObject(), 202 - status); 197 + // DoTraceLevelMessage( 198 + // m_PkgPnp->GetDriverGlobals(), 199 + // TRACE_LEVEL_ERROR, TRACINGPNP, 200 + // "WDFDEVICE 0x%p !devobj 0x%p. The client driver has failed the " 201 + // "EvtDeviceWdmPostPoFxRegisterDevice callback with %!STATUS!.", 202 + // m_PkgPnp->GetDevice()->GetHandle(), 203 + // m_PkgPnp->GetDevice()->GetDeviceObject(), 204 + // status); 203 205 204 - // 205 - // Notify the driver that the POHANDLE is about to become invalid 206 - // 207 - if (NULL != poxSettings->EvtDeviceWdmPrePoFxUnregisterDevice) { 208 - poxSettings->EvtDeviceWdmPrePoFxUnregisterDevice( 209 - fxDevice, 210 - m_PoHandle 211 - ); 212 - } 206 + // // 207 + // // Notify the driver that the POHANDLE is about to become invalid 208 + // // 209 + // if (NULL != poxSettings->EvtDeviceWdmPrePoFxUnregisterDevice) { 210 + // poxSettings->EvtDeviceWdmPrePoFxUnregisterDevice( 211 + // fxDevice, 212 + // m_PoHandle 213 + // ); 214 + // } 213 215 214 - // 215 - // Unregister with the power framework 216 - // 217 - PoxUnregisterDevice(); 218 - goto exit; 219 - } 220 - } 216 + // // 217 + // // Unregister with the power framework 218 + // // 219 + // PoxUnregisterDevice(); 220 + // goto exit; 221 + // } 222 + // } 221 223 222 - // 223 - // Tell the device power requirement state machine that we have registered 224 - // with the power framework 225 - // 226 - m_DevicePowerRequirementMachine->ProcessEvent(DprEventRegisteredWithPox); 224 + // // 225 + // // Tell the device power requirement state machine that we have registered 226 + // // with the power framework 227 + // // 228 + // m_DevicePowerRequirementMachine->ProcessEvent(DprEventRegisteredWithPox); 227 229 228 - exit: 229 - return status; 230 + // exit: 231 + // return status; 232 + ROSWDFNOTIMPLEMENTED; 233 + return STATUS_SUCCESS; 230 234 } 231 235 232 236 VOID ··· 234 238 VOID 235 239 ) 236 240 { 237 - PPOX_SETTINGS poxSettings = NULL; 241 + // PPOX_SETTINGS poxSettings = NULL; 238 242 239 - if (FALSE == m_PkgPnp->m_PowerPolicyMachine.m_Owner->m_IdleSettings. 240 - m_TimeoutMgmt.UsingSystemManagedIdleTimeout()) { 241 - // 242 - // Driver-managed idle timeout. Nothing to do. 243 - // 244 - return; 245 - } 243 + // if (FALSE == m_PkgPnp->m_PowerPolicyMachine.m_Owner->m_IdleSettings. 244 + // m_TimeoutMgmt.UsingSystemManagedIdleTimeout()) { 245 + // // 246 + // // Driver-managed idle timeout. Nothing to do. 247 + // // 248 + // return; 249 + // } 246 250 247 - ASSERT(NULL != m_DevicePowerRequirementMachine); 251 + // ASSERT(NULL != m_DevicePowerRequirementMachine); 248 252 249 - // 250 - // If the client driver has specified power framework settings, retrieve 251 - // them. 252 - // 253 - poxSettings = GetPowerFrameworkSettings(); 253 + // // 254 + // // If the client driver has specified power framework settings, retrieve 255 + // // them. 256 + // // 257 + // poxSettings = GetPowerFrameworkSettings(); 254 258 255 - // 256 - // Notify the client driver that the POHANDLE is about to become invalid 257 - // 258 - if ((NULL != poxSettings) && 259 - (NULL != poxSettings->EvtDeviceWdmPrePoFxUnregisterDevice)) { 259 + // // 260 + // // Notify the client driver that the POHANDLE is about to become invalid 261 + // // 262 + // if ((NULL != poxSettings) && 263 + // (NULL != poxSettings->EvtDeviceWdmPrePoFxUnregisterDevice)) { 260 264 261 - poxSettings->EvtDeviceWdmPrePoFxUnregisterDevice( 262 - m_PkgPnp->GetDevice()->GetHandle(), 263 - m_PoHandle 264 - ); 265 - } 265 + // poxSettings->EvtDeviceWdmPrePoFxUnregisterDevice( 266 + // m_PkgPnp->GetDevice()->GetHandle(), 267 + // m_PoHandle 268 + // ); 269 + // } 266 270 267 - // 268 - // Unregister with the power framework 269 - // 270 - PoxUnregisterDevice(); 271 + // // 272 + // // Unregister with the power framework 273 + // // 274 + // PoxUnregisterDevice(); 271 275 272 - // 273 - // Tell the device power requirement state machine that we have unregistered 274 - // with the power framework 275 - // 276 - m_DevicePowerRequirementMachine->ProcessEvent( 277 - DprEventUnregisteredWithPox 278 - ); 279 - return; 276 + // // 277 + // // Tell the device power requirement state machine that we have unregistered 278 + // // with the power framework 279 + // // 280 + // m_DevicePowerRequirementMachine->ProcessEvent( 281 + // DprEventUnregisteredWithPox 282 + // ); 283 + // return; 284 + ROSWDFNOTIMPLEMENTED; 280 285 } 281 286 282 287 VOID ··· 284 289 VOID 285 290 ) 286 291 { 287 - if (FALSE == m_PkgPnp->m_PowerPolicyMachine.m_Owner->m_IdleSettings. 288 - m_TimeoutMgmt.UsingSystemManagedIdleTimeout()) { 289 - // 290 - // Driver-managed idle timeout. Nothing to do. 291 - // 292 - return; 293 - } 292 + // if (FALSE == m_PkgPnp->m_PowerPolicyMachine.m_Owner->m_IdleSettings. 293 + // m_TimeoutMgmt.UsingSystemManagedIdleTimeout()) { 294 + // // 295 + // // Driver-managed idle timeout. Nothing to do. 296 + // // 297 + // return; 298 + // } 294 299 295 - PoxActivateComponent(); 296 - return; 300 + // PoxActivateComponent(); 301 + // return; 302 + ROSWDFNOTIMPLEMENTED; 297 303 } 298 304 299 305 BOOLEAN ··· 301 307 VOID 302 308 ) 303 309 { 304 - BOOLEAN canPowerDown; 310 + // BOOLEAN canPowerDown; 305 311 306 - if (FALSE == m_PkgPnp->m_PowerPolicyMachine.m_Owner->m_IdleSettings. 307 - m_TimeoutMgmt.UsingSystemManagedIdleTimeout()) { 308 - // 309 - // Driver-managed idle timeout. We can power down immediately, without 310 - // waiting for device-power-not-required notification. 311 - // 312 - canPowerDown = TRUE; 313 - } else { 314 - // 315 - // System-managed idle timeout 316 - // 317 - PoxIdleComponent(); 312 + // if (FALSE == m_PkgPnp->m_PowerPolicyMachine.m_Owner->m_IdleSettings. 313 + // m_TimeoutMgmt.UsingSystemManagedIdleTimeout()) { 314 + // // 315 + // // Driver-managed idle timeout. We can power down immediately, without 316 + // // waiting for device-power-not-required notification. 317 + // // 318 + // canPowerDown = TRUE; 319 + // } else { 320 + // // 321 + // // System-managed idle timeout 322 + // // 323 + // PoxIdleComponent(); 318 324 319 - // 320 - // We must wait for device-power-not-required notification before 321 - // powering down. 322 - // 323 - canPowerDown = FALSE; 324 - } 325 + // // 326 + // // We must wait for device-power-not-required notification before 327 + // // powering down. 328 + // // 329 + // canPowerDown = FALSE; 330 + // } 325 331 326 - return canPowerDown; 332 + // return canPowerDown; 333 + ROSWDFNOTIMPLEMENTED; 334 + return TRUE; 327 335 } 328 336 329 337 VOID ··· 331 339 VOID 332 340 ) 333 341 { 334 - ULONGLONG idleTimeoutHint; 342 + // ULONGLONG idleTimeoutHint; 335 343 336 - if (FALSE == m_PkgPnp->m_PowerPolicyMachine.m_Owner->m_IdleSettings. 337 - m_TimeoutMgmt.UsingSystemManagedIdleTimeout()) { 338 - // 339 - // Driver-managed idle timeout. Nothing to do. 340 - // 341 - return; 342 - } 344 + // if (FALSE == m_PkgPnp->m_PowerPolicyMachine.m_Owner->m_IdleSettings. 345 + // m_TimeoutMgmt.UsingSystemManagedIdleTimeout()) { 346 + // // 347 + // // Driver-managed idle timeout. Nothing to do. 348 + // // 349 + // return; 350 + // } 343 351 344 - if (m_NextIdleTimeoutHint != m_CurrentIdleTimeoutHint) { 345 - m_CurrentIdleTimeoutHint = m_NextIdleTimeoutHint; 352 + // if (m_NextIdleTimeoutHint != m_CurrentIdleTimeoutHint) { 353 + // m_CurrentIdleTimeoutHint = m_NextIdleTimeoutHint; 346 354 347 - // 348 - // Convert the idle timeout from milliseconds to 100-nanosecond units 349 - // 350 - idleTimeoutHint = ((ULONGLONG) m_CurrentIdleTimeoutHint) * 10 * 1000; 351 - PoxSetDeviceIdleTimeout(idleTimeoutHint); 352 - } 355 + // // 356 + // // Convert the idle timeout from milliseconds to 100-nanosecond units 357 + // // 358 + // idleTimeoutHint = ((ULONGLONG) m_CurrentIdleTimeoutHint) * 10 * 1000; 359 + // PoxSetDeviceIdleTimeout(idleTimeoutHint); 360 + // } 353 361 354 - return; 362 + // return; 363 + ROSWDFNOTIMPLEMENTED; 355 364 } 356 365 357 366 ··· 360 369 VOID 361 370 ) 362 371 { 363 - KIRQL irql; 364 - BOOLEAN canPowerOff; 372 + // KIRQL irql; 373 + // BOOLEAN canPowerOff; 365 374 366 - if (FALSE == m_PkgPnp->m_PowerPolicyMachine.m_Owner->m_IdleSettings. 367 - m_TimeoutMgmt.UsingSystemManagedIdleTimeout()) { 368 - // 369 - // Driver-managed idle timeout. We don't have to take power framework's 370 - // device power requirement into consideration. Just return success. 371 - // 372 - return STATUS_SUCCESS; 373 - } 375 + // if (FALSE == m_PkgPnp->m_PowerPolicyMachine.m_Owner->m_IdleSettings. 376 + // m_TimeoutMgmt.UsingSystemManagedIdleTimeout()) { 377 + // // 378 + // // Driver-managed idle timeout. We don't have to take power framework's 379 + // // device power requirement into consideration. Just return success. 380 + // // 381 + // return STATUS_SUCCESS; 382 + // } 374 383 375 - // 376 - // Acquire the lock to ensure that device power requirement doesn't change. 377 - // 378 - m_DevicePowerRequiredLock.Acquire(&irql); 379 - if (FALSE == m_DevicePowerRequired) { 380 - // 381 - // Send an event to the device power requirement state machine to tell 382 - // it that we are about to go to Dx. 383 - // 384 - // We send the event inside a lock in order to handle the race condition 385 - // when the power framework notifies us that device power is required at 386 - // the same time that we are about to go to Dx. By sending the event 387 - // inside the lock, we ensure that the DprEventDeviceGoingToDx event is 388 - // always queued to device power requirement state machine before the 389 - // DprEventPoxRequiresPower. 390 - // 391 - // This allows for a clean design in the device power requirement state 392 - // machine by ensuring that it does not have to handle a non-intuitive 393 - // sequence, i.e. DprEventPoxRequiresPower followed by 394 - // DprEventDeviceGoingToDx. This sequence is non-intuitive because it 395 - // doesn't make sense for a device to go to Dx after it has been 396 - // informed that device power is required. Avoiding this non-intuitive 397 - // sequence via locking enables a clean design for the device power 398 - // requirement state machine. 399 - // 400 - m_DevicePowerRequirementMachine->ProcessEvent(DprEventDeviceGoingToDx); 401 - canPowerOff = TRUE; 384 + // // 385 + // // Acquire the lock to ensure that device power requirement doesn't change. 386 + // // 387 + // m_DevicePowerRequiredLock.Acquire(&irql); 388 + // if (FALSE == m_DevicePowerRequired) { 389 + // // 390 + // // Send an event to the device power requirement state machine to tell 391 + // // it that we are about to go to Dx. 392 + // // 393 + // // We send the event inside a lock in order to handle the race condition 394 + // // when the power framework notifies us that device power is required at 395 + // // the same time that we are about to go to Dx. By sending the event 396 + // // inside the lock, we ensure that the DprEventDeviceGoingToDx event is 397 + // // always queued to device power requirement state machine before the 398 + // // DprEventPoxRequiresPower. 399 + // // 400 + // // This allows for a clean design in the device power requirement state 401 + // // machine by ensuring that it does not have to handle a non-intuitive 402 + // // sequence, i.e. DprEventPoxRequiresPower followed by 403 + // // DprEventDeviceGoingToDx. This sequence is non-intuitive because it 404 + // // doesn't make sense for a device to go to Dx after it has been 405 + // // informed that device power is required. Avoiding this non-intuitive 406 + // // sequence via locking enables a clean design for the device power 407 + // // requirement state machine. 408 + // // 409 + // m_DevicePowerRequirementMachine->ProcessEvent(DprEventDeviceGoingToDx); 410 + // canPowerOff = TRUE; 402 411 403 - } else { 404 - canPowerOff = FALSE; 405 - } 406 - m_DevicePowerRequiredLock.Release(irql); 412 + // } else { 413 + // canPowerOff = FALSE; 414 + // } 415 + // m_DevicePowerRequiredLock.Release(irql); 407 416 408 - return canPowerOff ? STATUS_SUCCESS : STATUS_UNSUCCESSFUL; 417 + // return canPowerOff ? STATUS_SUCCESS : STATUS_UNSUCCESSFUL; 418 + ROSWDFNOTIMPLEMENTED; 419 + return STATUS_SUCCESS; 409 420 } 410 421 411 422 VOID ··· 413 424 VOID 414 425 ) 415 426 { 416 - 417 - if (FALSE == m_PkgPnp->m_PowerPolicyMachine.m_Owner->m_IdleSettings. 418 - m_TimeoutMgmt.UsingSystemManagedIdleTimeout()) { 419 - // 420 - // Driver-managed idle timeout. Nothing to do. 421 - // 422 - return; 423 - } 427 + ROSWDFNOTIMPLEMENTED; 428 + // if (FALSE == m_PkgPnp->m_PowerPolicyMachine.m_Owner->m_IdleSettings. 429 + // m_TimeoutMgmt.UsingSystemManagedIdleTimeout()) { 430 + // // 431 + // // Driver-managed idle timeout. Nothing to do. 432 + // // 433 + // return; 434 + // } 424 435 425 - // 426 - // System-managed idle timeout. Notify the device power requirement state 427 - // machine that we are back in D0. 428 - // 429 - m_DevicePowerRequirementMachine->ProcessEvent( 430 - DprEventDeviceReturnedToD0 431 - ); 432 - return; 436 + // // 437 + // // System-managed idle timeout. Notify the device power requirement state 438 + // // machine that we are back in D0. 439 + // // 440 + // m_DevicePowerRequirementMachine->ProcessEvent( 441 + // DprEventDeviceReturnedToD0 442 + // ); 443 + // return; 433 444 } 434 445 435 446 PPOX_SETTINGS ··· 439 450 { 440 451 PPOX_SETTINGS poxSettings = NULL; 441 452 442 - if (m_PkgPnp->m_PowerPolicyMachine.m_Owner-> 443 - m_IdleSettings.m_TimeoutMgmt.DriverSpecifiedPowerFrameworkSettings()) { 453 + ROSWDFNOTIMPLEMENTED; 454 + // if (m_PkgPnp->m_PowerPolicyMachine.m_Owner-> 455 + // m_IdleSettings.m_TimeoutMgmt.DriverSpecifiedPowerFrameworkSettings()) { 444 456 445 - poxSettings = m_PkgPnp->m_PowerPolicyMachine.m_Owner-> 446 - m_IdleSettings.m_TimeoutMgmt.GetPowerFrameworkSettings(); 457 + // poxSettings = m_PkgPnp->m_PowerPolicyMachine.m_Owner-> 458 + // m_IdleSettings.m_TimeoutMgmt.GetPowerFrameworkSettings(); 447 459 448 - ASSERT(NULL != poxSettings); 449 - } 460 + // ASSERT(NULL != poxSettings); 461 + // } 450 462 451 463 return poxSettings; 452 464 } ··· 456 468 __in FxDevicePwrRequirementEvents Event 457 469 ) 458 470 { 459 - KIRQL irql; 471 + ROSWDFNOTIMPLEMENTED; 472 + // KIRQL irql; 460 473 461 - // 462 - // We should not run the state machine from within a power framework 463 - // callback because we might end up reaching a state where we unregister 464 - // with the power framework. Unregistering from a callback leads to a 465 - // deadlock. Therefore, we raise IRQL before queueing an event to the state 466 - // machine. Raising IRQL causes the event processing to be deferred to a 467 - // worker thread. 468 - // 474 + // // 475 + // // We should not run the state machine from within a power framework 476 + // // callback because we might end up reaching a state where we unregister 477 + // // with the power framework. Unregistering from a callback leads to a 478 + // // deadlock. Therefore, we raise IRQL before queueing an event to the state 479 + // // machine. Raising IRQL causes the event processing to be deferred to a 480 + // // worker thread. 481 + // // 469 482 470 - // 471 - // This path should only be invoked for kernel mode. For user mode, this 472 - // condition is avoided by reflector guranteeing that it queues a worker 473 - // item to send a Pofx event corresponding to any PoFx callback 474 - // 475 - ASSERT(FX_IS_KERNEL_MODE); 483 + // // 484 + // // This path should only be invoked for kernel mode. For user mode, this 485 + // // condition is avoided by reflector guranteeing that it queues a worker 486 + // // item to send a Pofx event corresponding to any PoFx callback 487 + // // 488 + // ASSERT(FX_IS_KERNEL_MODE); 476 489 477 - Mx::MxRaiseIrql(DISPATCH_LEVEL, &irql); 478 - m_DevicePowerRequirementMachine->ProcessEvent(Event); 479 - Mx::MxLowerIrql(irql); 490 + // Mx::MxRaiseIrql(DISPATCH_LEVEL, &irql); 491 + // m_DevicePowerRequirementMachine->ProcessEvent(Event); 492 + // Mx::MxLowerIrql(irql); 480 493 } 481 494 482 495 VOID ··· 484 497 VOID 485 498 ) 486 499 { 487 - 488 - if (FALSE == m_PkgPnp->m_PowerPolicyMachine.m_Owner->m_IdleSettings. 489 - m_TimeoutMgmt.UsingSystemManagedIdleTimeout()) { 490 - // 491 - // Driver-managed idle timeout. Nothing to do. 492 - // 493 - return; 494 - } 500 + ROSWDFNOTIMPLEMENTED; 501 + // if (FALSE == m_PkgPnp->m_PowerPolicyMachine.m_Owner->m_IdleSettings. 502 + // m_TimeoutMgmt.UsingSystemManagedIdleTimeout()) { 503 + // // 504 + // // Driver-managed idle timeout. Nothing to do. 505 + // // 506 + // return; 507 + // } 495 508 496 - // 497 - // System-managed idle timeout. Notify the device power requirement state 498 - // machine that device power is required. 499 - // 500 - PowerRequiredCallbackWorker(FALSE /* InvokedFromPoxCallback */); 501 - return; 509 + // // 510 + // // System-managed idle timeout. Notify the device power requirement state 511 + // // machine that device power is required. 512 + // // 513 + // PowerRequiredCallbackWorker(FALSE /* InvokedFromPoxCallback */); 514 + // return; 502 515 } 503 516 504 517 VOID ··· 506 519 VOID 507 520 ) 508 521 { 509 - 510 - if (FALSE == m_PkgPnp->m_PowerPolicyMachine.m_Owner->m_IdleSettings. 511 - m_TimeoutMgmt.UsingSystemManagedIdleTimeout()) { 512 - // 513 - // Driver-managed idle timeout. Nothing to do. 514 - // 515 - return; 516 - } 522 + ROSWDFNOTIMPLEMENTED; 523 + // if (FALSE == m_PkgPnp->m_PowerPolicyMachine.m_Owner->m_IdleSettings. 524 + // m_TimeoutMgmt.UsingSystemManagedIdleTimeout()) { 525 + // // 526 + // // Driver-managed idle timeout. Nothing to do. 527 + // // 528 + // return; 529 + // } 517 530 518 - // 519 - // System-managed idle timeout. Notify the device power requirement state 520 - // machine that device power is not required. 521 - // 522 - PowerNotRequiredCallbackWorker(FALSE /* InvokedFromPoxCallback */); 523 - return; 531 + // // 532 + // // System-managed idle timeout. Notify the device power requirement state 533 + // // machine that device power is not required. 534 + // // 535 + // PowerNotRequiredCallbackWorker(FALSE /* InvokedFromPoxCallback */); 536 + // return; 524 537 } 525 538 526 539 VOID ··· 528 541 __in BOOLEAN InvokedFromPoxCallback 529 542 ) 530 543 { 531 - KIRQL irql; 544 + ROSWDFNOTIMPLEMENTED; 545 + // KIRQL irql; 532 546 533 - // 534 - // Make a note of the fact that device power is required 535 - // 536 - m_DevicePowerRequiredLock.Acquire(&irql); 537 - m_DevicePowerRequired = TRUE; 538 - m_DevicePowerRequiredLock.Release(irql); 547 + // // 548 + // // Make a note of the fact that device power is required 549 + // // 550 + // m_DevicePowerRequiredLock.Acquire(&irql); 551 + // m_DevicePowerRequired = TRUE; 552 + // m_DevicePowerRequiredLock.Release(irql); 539 553 540 - // 541 - // Send the device-power-required event to the device power requirement 542 - // state machine. 543 - // 544 - if (InvokedFromPoxCallback) { 545 - DprProcessEventFromPoxCallback(DprEventPoxRequiresPower); 546 - } else { 547 - m_DevicePowerRequirementMachine->ProcessEvent(DprEventPoxRequiresPower); 548 - } 549 - return; 554 + // // 555 + // // Send the device-power-required event to the device power requirement 556 + // // state machine. 557 + // // 558 + // if (InvokedFromPoxCallback) { 559 + // DprProcessEventFromPoxCallback(DprEventPoxRequiresPower); 560 + // } else { 561 + // m_DevicePowerRequirementMachine->ProcessEvent(DprEventPoxRequiresPower); 562 + // } 563 + // return; 550 564 } 551 565 552 566 VOID ··· 554 568 __in BOOLEAN InvokedFromPoxCallback 555 569 ) 556 570 { 557 - KIRQL irql; 571 + ROSWDFNOTIMPLEMENTED; 572 + // KIRQL irql; 558 573 559 - // 560 - // Make a note of the fact that device power is not required 561 - // 562 - m_DevicePowerRequiredLock.Acquire(&irql); 563 - m_DevicePowerRequired = FALSE; 564 - m_DevicePowerRequiredLock.Release(irql); 574 + // // 575 + // // Make a note of the fact that device power is not required 576 + // // 577 + // m_DevicePowerRequiredLock.Acquire(&irql); 578 + // m_DevicePowerRequired = FALSE; 579 + // m_DevicePowerRequiredLock.Release(irql); 565 580 566 - // 567 - // Send the device-power-not-required event to the device power 568 - // requirement state machine. 569 - // 570 - if (InvokedFromPoxCallback) { 571 - DprProcessEventFromPoxCallback(DprEventPoxDoesNotRequirePower); 572 - } else { 573 - m_DevicePowerRequirementMachine->ProcessEvent( 574 - DprEventPoxDoesNotRequirePower 575 - ); 576 - } 577 - return; 581 + // // 582 + // // Send the device-power-not-required event to the device power 583 + // // requirement state machine. 584 + // // 585 + // if (InvokedFromPoxCallback) { 586 + // DprProcessEventFromPoxCallback(DprEventPoxDoesNotRequirePower); 587 + // } else { 588 + // m_DevicePowerRequirementMachine->ProcessEvent( 589 + // DprEventPoxDoesNotRequirePower 590 + // ); 591 + // } 592 + // return; 578 593 } 579 594
+1 -1
sdk/lib/drivers/wdf/shared/irphandlers/pnp/um/fxpkgfdoum.cpp
··· 26 26 27 27 --*/ 28 28 29 - #include "..\pnppriv.hpp" 29 + #include "../pnppriv.hpp" 30 30 31 31 #include <initguid.h> 32 32 #include <wdmguid.h>
+1 -1
sdk/lib/drivers/wdf/shared/irphandlers/pnp/um/fxpkgpdoum.cpp
··· 20 20 21 21 --*/ 22 22 23 - #include "..\pnppriv.hpp" 23 + #include "../pnppriv.hpp" 24 24 #include <wdmguid.h> 25 25 26 26 // Tracing support
+1 -1
sdk/lib/drivers/wdf/shared/irphandlers/pnp/um/fxpkgpnpum.cpp
··· 1 1 // 2 2 // Copyright (C) Microsoft. All rights reserved. 3 3 // 4 - #include "..\pnppriv.hpp" 4 + #include "../pnppriv.hpp" 5 5 6 6 #include <initguid.h> 7 7 #include <wdmguid.h>
+1 -1
sdk/lib/drivers/wdf/shared/irphandlers/pnp/um/pnpstatemachineum.cpp
··· 25 25 26 26 --*/ 27 27 28 - #include "..\pnppriv.hpp" 28 + #include "../pnppriv.hpp" 29 29 30 30 extern "C" { 31 31 #if defined(EVENT_TRACING)
+1 -1
sdk/lib/drivers/wdf/shared/irphandlers/pnp/um/powerpolicystatemachineum.cpp
··· 17 17 18 18 --*/ 19 19 20 - #include "..\pnppriv.hpp" 20 + #include "../pnppriv.hpp" 21 21 22 22 #include "FxUsbIdleInfo.hpp" 23 23
+1 -1
sdk/lib/drivers/wdf/shared/irphandlers/pnp/um/powerstatemachineum.cpp
··· 24 24 25 25 --*/ 26 26 27 - #include "..\pnppriv.hpp" 27 + #include "../pnppriv.hpp" 28 28 29 29 extern "C" { 30 30 #if defined(EVENT_TRACING)
+1 -1
sdk/lib/drivers/wdf/shared/irphandlers/pnp/um/poxinterfaceum.cpp
··· 1 1 // 2 2 // Copyright (C) Microsoft. All rights reserved. 3 3 // 4 - #include "..\pnppriv.hpp" 4 + #include "../pnppriv.hpp" 5 5 6 6 #include <initguid.h> 7 7 #include <wdmguid.h>
+1 -1
sdk/lib/drivers/wdf/shared/irphandlers/pnp/um/supportum.cpp
··· 21 21 22 22 --*/ 23 23 24 - #include "..\pnppriv.hpp" 24 + #include "../pnppriv.hpp" 25 25 26 26 VOID 27 27 CopyQueryInterfaceToIrpStack(
+1 -1
sdk/lib/drivers/wdf/shared/object/dbgtrace.cpp
··· 109 109 (DebugPrintLevel <= DebugLevel && 110 110 ((DebugPrintFlag & DebugFlag) == DebugPrintFlag))) { 111 111 #if FX_CORE_MODE==FX_CORE_KERNEL_MODE 112 - DbgPrint("WDFTrace: %s", debugMessageBuffer); 112 + DbgPrint("WDFTrace: %s\n", debugMessageBuffer); 113 113 #else 114 114 OutputDebugString("WDFTrace: "); 115 115 OutputDebugString(DebugMessage);
+6
sdk/lib/drivers/wdf/shared/object/fxobjectapi.cpp
··· 36 36 __drv_maxIRQL(DISPATCH_LEVEL) 37 37 WDFAPI 38 38 VOID 39 + STDCALL 39 40 WDFEXPORT(WdfObjectReferenceActual)( 40 41 __in 41 42 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 81 82 __drv_maxIRQL(DISPATCH_LEVEL) 82 83 WDFAPI 83 84 VOID 85 + STDCALL 84 86 WDFEXPORT(WdfObjectDereferenceActual)( 85 87 __in 86 88 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 170 172 __drv_maxIRQL(DISPATCH_LEVEL) 171 173 WDFAPI 172 174 VOID 175 + STDCALL 173 176 WDFEXPORT(WdfObjectAcquireLock)( 174 177 __in 175 178 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 229 232 __drv_maxIRQL(DISPATCH_LEVEL) 230 233 WDFAPI 231 234 VOID 235 + STDCALL 232 236 WDFEXPORT(WdfObjectReleaseLock)( 233 237 __in 234 238 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 284 288 __drv_maxIRQL(DISPATCH_LEVEL) 285 289 WDFAPI 286 290 VOID 291 + STDCALL 287 292 WDFEXPORT(WdfObjectDelete)( 288 293 __in 289 294 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 322 327 __drv_maxIRQL(DISPATCH_LEVEL) 323 328 WDFAPI 324 329 NTSTATUS 330 + STDCALL 325 331 WDFEXPORT(WdfObjectQuery)( 326 332 __in 327 333 PWDF_DRIVER_GLOBALS DriverGlobals,
+1 -1
sdk/lib/drivers/wdf/shared/object/fxobjectpch.hpp
··· 25 25 26 26 #include "objectpriv.hpp" 27 27 #include "fxmin.hpp" 28 - #include "FxToObjectItf.hpp" 28 + #include "fxtoobjectitf.hpp" 29 29 30 30 #endif // __FX_CORE_PCH_H__
+1
sdk/lib/drivers/wdf/shared/object/fxtagtracker.cpp
··· 39 39 extern 40 40 _Success_(return != 0) 41 41 USHORT 42 + STDCALL 42 43 RtlCaptureStackBackTrace( 43 44 _In_ ULONG FramesToSkip, 44 45 _In_ ULONG FramesToCapture,
+1 -1
sdk/lib/drivers/wdf/shared/object/fxuserobject.cpp
··· 32 32 33 33 #include "fxobjectpch.hpp" 34 34 35 - #include "FxUserObject.hpp" 35 + #include "fxuserobject.hpp" 36 36 37 37 // Tracing support 38 38 extern "C" {
+2 -1
sdk/lib/drivers/wdf/shared/object/fxuserobjectapi.cpp
··· 24 24 25 25 #include "fxobjectpch.hpp" 26 26 27 - #include "FxUserObject.hpp" 27 + #include "fxuserobject.hpp" 28 28 29 29 // Tracing support 30 30 extern "C" { ··· 39 39 _Must_inspect_result_ 40 40 __drv_maxIRQL(DISPATCH_LEVEL) 41 41 NTSTATUS 42 + STDCALL 42 43 WDFEXPORT(WdfObjectCreate)( 43 44 __in 44 45 PWDF_DRIVER_GLOBALS DriverGlobals,
+2 -2
sdk/lib/drivers/wdf/shared/object/fxverifierbugcheck.cpp
··· 39 39 //============================================================================= 40 40 41 41 42 + DECLSPEC_NORETURN 42 43 VOID 43 - __declspec(noreturn) 44 44 FxVerifierBugCheckWorker( 45 45 __in PFX_DRIVER_GLOBALS FxDriverGlobals, 46 46 __in WDF_BUGCHECK_CODES WdfBugCheckCode, ··· 72 72 (ULONG_PTR) FxDriverGlobals ); 73 73 } 74 74 75 + DECLSPEC_NORETURN 75 76 VOID 76 - __declspec(noreturn) 77 77 FxVerifierNullBugCheck( 78 78 __in PFX_DRIVER_GLOBALS FxDriverGlobals, 79 79 __in PVOID ReturnAddress
+17 -10
sdk/lib/drivers/wdf/shared/object/globals.cpp
··· 289 289 return; 290 290 } 291 291 292 - RtlZeroMemory(pExtension, sizeof(*pExtension)); 292 + *pExtension = {}; 293 293 294 294 pExtension->AllocatedTagTrackersLock.Initialize(); 295 295 ··· 678 678 // Register for the global (library) bugcheck callbacks. 679 679 // 680 680 FxInitializeBugCheckDriverInfo(); 681 - 681 + #ifdef EVENT_TRACING // __REACTOS__ 682 682 // 683 683 // Init driver usage tracker. This tracker is used by the debug dump 684 684 // callback routines for finding the driver's dump log file to write ··· 728 728 // 729 729 ASSERT(FxLibraryGlobals.PerfTraceRoutines->Size >= 730 730 sizeof(WMI_WDF_NOTIFY_ROUTINES)); 731 - 731 + #else 732 + status = STATUS_SUCCESS; // __REACTOS__ 733 + #endif // EVENT_TRACING 732 734 #else 733 735 status = STATUS_SUCCESS; 734 736 #endif ··· 810 812 // VerifierLockHandle is a function that we use to lock in all the code from it's section 811 813 // since all the verifier code is in the same section as VerifierLockHandle. 812 814 // 813 - FxLibraryGlobals.VerifierSectionHandle = MmLockPagableCodeSection(VerifierPageLockHandle); 815 + FxLibraryGlobals.VerifierSectionHandle = MmLockPagableCodeSection((PVOID)VerifierPageLockHandle); 814 816 } 815 817 else { 816 818 MmLockPagableSectionByHandle(FxLibraryGlobals.VerifierSectionHandle); ··· 898 900 // 899 901 // Initialize IFR logging 900 902 // 901 - FxIFRStart(FxDriverGlobals, RegistryPath, DriverObject); 903 + // FxIFRStart(FxDriverGlobals, RegistryPath, DriverObject); __REACTOS__ 902 904 903 905 DoTraceLevelMessage(FxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGDRIVER, 904 906 "Initialize globals for %!wZ!", RegistryPath); ··· 912 914 // FxPoolPackageInitialize logs a message in case of failure so 913 915 // we don't need to log failure here. 914 916 // 915 - FxIFRStop(FxDriverGlobals); 917 + // FxIFRStop(FxDriverGlobals); __REACTOS__ 916 918 return status; 917 919 } 918 920 ··· 1002 1004 // 1003 1005 // Release the last reference. 1004 1006 // 1005 - FxDriverGlobals->RELEASE(FxDestroy); 1007 + FxDriverGlobals->RELEASE((PVOID)FxDestroy); 1006 1008 1007 1009 // 1008 1010 // Wait for everyone else to be done. ··· 1052 1054 ) 1053 1055 { 1054 1056 PFX_DRIVER_GLOBALS pFxDriverGlobals; 1055 - KIRQL irql; 1057 + // KIRQL irql; 1056 1058 NTSTATUS status; 1057 1059 1058 1060 pFxDriverGlobals = (PFX_DRIVER_GLOBALS) ··· 1062 1064 return NULL; 1063 1065 } 1064 1066 1065 - RtlZeroMemory(pFxDriverGlobals, sizeof(FX_DRIVER_GLOBALS)); 1067 + *pFxDriverGlobals = {}; 1066 1068 1067 1069 pFxDriverGlobals->Refcnt = 1; 1068 1070 ··· 1079 1081 // 1080 1082 // Initialize this new FxDriverGlobals structure. 1081 1083 // 1084 + #ifndef __REACTOS__ 1082 1085 FxLibraryGlobals.FxDriverGlobalsListLock.Acquire(&irql); 1083 1086 InsertHeadList(&FxLibraryGlobals.FxDriverGlobalsList, 1084 1087 &pFxDriverGlobals->Linkage); 1085 1088 FxLibraryGlobals.FxDriverGlobalsListLock.Release(irql); 1089 + #endif 1086 1090 1087 1091 pFxDriverGlobals->WdfHandleMask = FxHandleValueMask; 1088 1092 pFxDriverGlobals->WdfVerifierAllocateFailCount = (ULONG) -1; ··· 1140 1144 pFxDriverGlobals->FxForceLogsInMiniDump = FALSE; 1141 1145 1142 1146 #if (FX_CORE_MODE==FX_CORE_KERNEL_MODE) 1143 - pFxDriverGlobals->FxTrackDriverForMiniDumpLog = TRUE; 1147 + // pFxDriverGlobals->FxTrackDriverForMiniDumpLog = TRUE; 1148 + pFxDriverGlobals->FxTrackDriverForMiniDumpLog = FALSE; // __REACTOS__ 1144 1149 pFxDriverGlobals->IsUserModeDriver = FALSE; 1145 1150 #else 1146 1151 pFxDriverGlobals->FxTrackDriverForMiniDumpLog = FALSE; ··· 1163 1168 // Allocate a telemetry context if a telemetry client is enabled, for any level/keyword. 1164 1169 // 1165 1170 pFxDriverGlobals->TelemetryContext = NULL; 1171 + #ifdef EVENT_TRACING // __REACTOS__ 1166 1172 if (TraceLoggingProviderEnabled(g_TelemetryProvider, 0 ,0)) { 1167 1173 AllocAndInitializeTelemetryContext(&(pFxDriverGlobals->TelemetryContext)); 1168 1174 } 1175 + #endif 1169 1176 1170 1177 return &pFxDriverGlobals->Public; 1171 1178 }
+1
sdk/lib/drivers/wdf/shared/object/handleapi.cpp
··· 504 504 __drv_maxIRQL(DISPATCH_LEVEL) 505 505 WDFAPI 506 506 NTSTATUS 507 + STDCALL 507 508 WDFEXPORT(WdfObjectAllocateContext)( 508 509 __in 509 510 PWDF_DRIVER_GLOBALS DriverGlobals,
+3 -2
sdk/lib/drivers/wdf/shared/object/km/globalskm.cpp
··· 6 6 // Tracing support 7 7 extern "C" { 8 8 #if defined(EVENT_TRACING) 9 - #include "GlobalsKm.tmh" 9 + #include "globalskm.tmh" 10 10 #endif 11 11 12 - #include <wdfcxbase.h> 12 + // #include <wdfcxbase.h> 13 13 #include <fxldr.h> 14 14 15 15 ··· 45 45 __drv_requiresIRQL(DISPATCH_LEVEL) 46 46 __drv_sameIRQL 47 47 VOID 48 + STDCALL 48 49 FxFlushDpc ( 49 50 __in struct _KDPC *Dpc, 50 51 __in_opt PVOID DeferredContext,
+2
sdk/lib/drivers/wdf/shared/object/km/wdfpoolkm.cpp
··· 41 41 __drv_maxIRQL(DISPATCH_LEVEL) 42 42 NTKERNELAPI 43 43 PMDL 44 + STDCALL 44 45 IoAllocateMdl( 45 46 __in_opt __drv_aliasesMem PVOID VirtualAddress, 46 47 __in ULONG Length, ··· 52 53 __drv_maxIRQL(DISPATCH_LEVEL) 53 54 NTKERNELAPI 54 55 VOID 56 + STDCALL 55 57 IoFreeMdl( 56 58 PMDL Mdl 57 59 );
+2 -2
sdk/lib/drivers/wdf/shared/object/um/fxobjectinfoum.cpp
··· 1 1 // 2 2 // Copyright (C) Microsoft. All rights reserved. 3 3 // 4 - #include "FxMin.hpp" 4 + #include "fxmin.hpp" 5 5 #include "fxobjectpch.hpp" 6 6 7 - #include "FxUserObject.hpp" 7 + #include "fxuserobject.hpp" 8 8 #include "pnppriv.hpp" 9 9 10 10 //
+1 -1
sdk/lib/drivers/wdf/shared/object/wdfpool.cpp
··· 150 150 if (FxDriverGlobals->IsPoolTrackingOn()) { 151 151 152 152 if (FxDriverGlobals->FxVerifierOn && 153 - (FxDriverGlobals->WdfVerifierAllocateFailCount != 0xFFFFFFFF)) { 153 + (FxDriverGlobals->WdfVerifierAllocateFailCount != -1L)) { 154 154 155 155 // 156 156 // If the registry key VerifierAllocateFailCount is set, all allocations
+1 -1
sdk/lib/drivers/wdf/shared/primitives/km/mxgeneralkm.cpp
··· 1 1 // 2 2 // Copyright (C) Microsoft. All rights reserved. 3 3 // 4 - #include "Mx.h" 4 + #include "mx.h" 5 5 6 6 VOID 7 7 Mx::MxDbgPrint(
+1 -1
sdk/lib/drivers/wdf/shared/primitives/um/mxdriverobjectum.cpp
··· 15 15 #include "fxmin.hpp" 16 16 #include "fxldrum.h" 17 17 18 - PVOID 18 + PDRIVER_ADD_DEVICE 19 19 MxDriverObject::GetDriverExtensionAddDevice( 20 20 VOID 21 21 )
+1
sdk/lib/drivers/wdf/shared/primitives/um/mxgeneralum.cpp
··· 88 88 89 89 FX_VERIFY(DRIVER(BadAction, BugCheckCode), TRAPMSG("UMDF verification " 90 90 "faults should not call this code path")); 91 + UNREACHABLE; 91 92 } 92 93 93 94 VOID
+1 -1
sdk/lib/drivers/wdf/shared/support/fxcollection.cpp
··· 23 23 24 24 --*/ 25 25 26 - #include "FxSupportPch.hpp" 26 + #include "fxsupportpch.hpp" 27 27 28 28 FxCollectionInternal::FxCollectionInternal( 29 29 VOID
+10 -5
sdk/lib/drivers/wdf/shared/support/fxcollectionapi.cpp
··· 22 22 23 23 --*/ 24 24 25 - #include "FxSupportPch.hpp" 25 + #include "fxsupportpch.hpp" 26 26 27 27 extern "C" { 28 - #include "FxCollectionApi.tmh" 28 + // #include "FxCollectionApi.tmh" 29 29 } 30 30 31 31 // ··· 35 35 _Must_inspect_result_ 36 36 __drv_maxIRQL(DISPATCH_LEVEL) 37 37 NTSTATUS 38 + STDCALL 38 39 WDFEXPORT(WdfCollectionCreate)( 39 40 __in 40 41 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 105 106 106 107 __drv_maxIRQL(DISPATCH_LEVEL) 107 108 ULONG 109 + STDCALL 108 110 WDFEXPORT(WdfCollectionGetCount)( 109 111 __in 110 112 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 133 135 _Must_inspect_result_ 134 136 __drv_maxIRQL(DISPATCH_LEVEL) 135 137 NTSTATUS 138 + STDCALL 136 139 WDFEXPORT(WdfCollectionAdd)( 137 140 __in 138 141 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 170 173 171 174 __drv_maxIRQL(DISPATCH_LEVEL) 172 175 VOID 176 + STDCALL 173 177 WDFEXPORT(WdfCollectionRemoveItem)( 174 178 __in 175 179 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 225 229 226 230 __drv_maxIRQL(DISPATCH_LEVEL) 227 231 VOID 232 + STDCALL 228 233 WDFEXPORT(WdfCollectionRemove)( 229 234 __in 230 235 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 283 288 284 289 __drv_maxIRQL(DISPATCH_LEVEL) 285 290 WDFOBJECT 291 + STDCALL 286 292 WDFEXPORT(WdfCollectionGetItem)( 287 293 __in 288 294 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 296 302 297 303 FxCollection *pCollection; 298 304 FxObject *pObject; 299 - WDFOBJECT hObject; 300 305 KIRQL irql; 301 306 302 - hObject = NULL; 303 - 304 307 FxObjectHandleGetPtr(GetFxDriverGlobals(DriverGlobals), 305 308 Collection, 306 309 FX_TYPE_COLLECTION, ··· 319 322 320 323 __drv_maxIRQL(DISPATCH_LEVEL) 321 324 WDFOBJECT 325 + STDCALL 322 326 WDFEXPORT(WdfCollectionGetFirstItem)( 323 327 __in 324 328 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 351 355 352 356 __drv_maxIRQL(DISPATCH_LEVEL) 353 357 WDFOBJECT 358 + STDCALL 354 359 WDFEXPORT(WdfCollectionGetLastItem)( 355 360 __in 356 361 PWDF_DRIVER_GLOBALS DriverGlobals,
+2 -2
sdk/lib/drivers/wdf/shared/support/fxdeviceinterface.cpp
··· 22 22 23 23 --*/ 24 24 25 - #include "FxSupportPch.hpp" 25 + #include "fxsupportpch.hpp" 26 26 27 27 extern "C" { 28 - #include "FxDeviceInterface.tmh" 28 + // #include "FxDeviceInterface.tmh" 29 29 } 30 30 31 31 FxDeviceInterface::FxDeviceInterface(
+5 -2
sdk/lib/drivers/wdf/shared/support/fxdeviceinterfaceapi.cpp
··· 23 23 24 24 --*/ 25 25 26 - #include "FxSupportPch.hpp" 26 + #include "fxsupportpch.hpp" 27 27 28 28 extern "C" { 29 - #include "FxDeviceInterfaceAPI.tmh" 29 + // #include "FxDeviceInterfaceAPI.tmh" 30 30 } 31 31 32 32 // ··· 37 37 _Must_inspect_result_ 38 38 __drv_maxIRQL(PASSIVE_LEVEL) 39 39 NTSTATUS 40 + STDCALL 40 41 WDFEXPORT(WdfDeviceCreateDeviceInterface)( 41 42 __in 42 43 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 164 165 165 166 __drv_maxIRQL(PASSIVE_LEVEL) 166 167 VOID 168 + STDCALL 167 169 WDFEXPORT(WdfDeviceSetDeviceInterfaceState)( 168 170 __in 169 171 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 271 273 _Must_inspect_result_ 272 274 __drv_maxIRQL(PASSIVE_LEVEL) 273 275 NTSTATUS 276 + STDCALL 274 277 WDFEXPORT(WdfDeviceRetrieveDeviceInterfaceString)( 275 278 __in 276 279 PWDF_DRIVER_GLOBALS DriverGlobals,
+1 -1
sdk/lib/drivers/wdf/shared/support/fxdevicetext.cpp
··· 22 22 23 23 --*/ 24 24 25 - #include "FxSupportPch.hpp" 25 + #include "fxsupportpch.hpp" 26 26 27 27 FxDeviceText::FxDeviceText( 28 28 VOID
+21 -2
sdk/lib/drivers/wdf/shared/support/fxregistryapi.cpp
··· 22 22 23 23 --*/ 24 24 25 - #include "FxSupportPch.hpp" 25 + #include "fxsupportpch.hpp" 26 26 27 27 extern "C" { 28 - #include "FxRegistryAPI.tmh" 28 + // #include "FxRegistryAPI.tmh" 29 + #define RtlSizeTToULong RtlULongPtrToULong 29 30 } 30 31 31 32 extern "C" { ··· 50 51 _Must_inspect_result_ 51 52 __drv_maxIRQL(PASSIVE_LEVEL) 52 53 NTSTATUS 54 + STDCALL 53 55 WDFEXPORT(WdfRegistryOpenKey)( 54 56 __in 55 57 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 162 164 _Must_inspect_result_ 163 165 __drv_maxIRQL(PASSIVE_LEVEL) 164 166 NTSTATUS 167 + STDCALL 165 168 WDFEXPORT(WdfRegistryCreateKey)( 166 169 __in 167 170 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 281 284 282 285 __drv_maxIRQL(PASSIVE_LEVEL) 283 286 VOID 287 + STDCALL 284 288 WDFEXPORT(WdfRegistryClose)( 285 289 __in 286 290 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 313 317 314 318 __drv_maxIRQL(PASSIVE_LEVEL) 315 319 HANDLE 320 + STDCALL 316 321 WDFEXPORT(WdfRegistryWdmGetHandle)( 317 322 __in 318 323 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 335 340 _Must_inspect_result_ 336 341 __drv_maxIRQL(PASSIVE_LEVEL) 337 342 NTSTATUS 343 + STDCALL 338 344 WDFEXPORT(WdfRegistryRemoveKey)( 339 345 __in 340 346 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 374 380 _Must_inspect_result_ 375 381 __drv_maxIRQL(PASSIVE_LEVEL) 376 382 NTSTATUS 383 + STDCALL 377 384 WDFEXPORT(WdfRegistryRemoveValue)( 378 385 __in 379 386 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 415 422 _Must_inspect_result_ 416 423 __drv_maxIRQL(PASSIVE_LEVEL) 417 424 NTSTATUS 425 + STDCALL 418 426 WDFEXPORT(WdfRegistryQueryValue)( 419 427 __in 420 428 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 485 493 _Must_inspect_result_ 486 494 __drv_maxIRQL(PASSIVE_LEVEL) 487 495 NTSTATUS 496 + STDCALL 488 497 WDFEXPORT(WdfRegistryQueryMemory)( 489 498 __in 490 499 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 603 612 _Must_inspect_result_ 604 613 __drv_maxIRQL(PASSIVE_LEVEL) 605 614 NTSTATUS 615 + STDCALL 606 616 WDFEXPORT(WdfRegistryQueryMultiString)( 607 617 __in 608 618 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 786 796 _Must_inspect_result_ 787 797 __drv_maxIRQL(PASSIVE_LEVEL) 788 798 NTSTATUS 799 + STDCALL 789 800 WDFEXPORT(WdfRegistryQueryUnicodeString)( 790 801 __in 791 802 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 908 919 _Must_inspect_result_ 909 920 __drv_maxIRQL(PASSIVE_LEVEL) 910 921 NTSTATUS 922 + STDCALL 911 923 WDFEXPORT(WdfRegistryQueryString)( 912 924 __in 913 925 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1043 1055 _Must_inspect_result_ 1044 1056 __drv_maxIRQL(PASSIVE_LEVEL) 1045 1057 NTSTATUS 1058 + STDCALL 1046 1059 WDFEXPORT(WdfRegistryQueryULong)( 1047 1060 __in 1048 1061 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1094 1107 _Must_inspect_result_ 1095 1108 __drv_maxIRQL(PASSIVE_LEVEL) 1096 1109 NTSTATUS 1110 + STDCALL 1097 1111 WDFEXPORT(WdfRegistryAssignValue)( 1098 1112 __in 1099 1113 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1147 1161 _Must_inspect_result_ 1148 1162 __drv_maxIRQL(PASSIVE_LEVEL) 1149 1163 NTSTATUS 1164 + STDCALL 1150 1165 WDFEXPORT(WdfRegistryAssignMemory)( 1151 1166 __in 1152 1167 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1239 1254 _Must_inspect_result_ 1240 1255 __drv_maxIRQL(PASSIVE_LEVEL) 1241 1256 NTSTATUS 1257 + STDCALL 1242 1258 WDFEXPORT(WdfRegistryAssignULong)( 1243 1259 __in 1244 1260 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1288 1304 _Must_inspect_result_ 1289 1305 __drv_maxIRQL(PASSIVE_LEVEL) 1290 1306 NTSTATUS 1307 + STDCALL 1291 1308 WDFEXPORT(WdfRegistryAssignUnicodeString)( 1292 1309 __in 1293 1310 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1374 1391 _Must_inspect_result_ 1375 1392 __drv_maxIRQL(PASSIVE_LEVEL) 1376 1393 NTSTATUS 1394 + STDCALL 1377 1395 WDFEXPORT(WdfRegistryAssignString)( 1378 1396 __in 1379 1397 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1433 1451 _Must_inspect_result_ 1434 1452 __drv_maxIRQL(PASSIVE_LEVEL) 1435 1453 NTSTATUS 1454 + STDCALL 1436 1455 WDFEXPORT(WdfRegistryAssignMultiString)( 1437 1456 __in 1438 1457 PWDF_DRIVER_GLOBALS DriverGlobals,
+1 -1
sdk/lib/drivers/wdf/shared/support/fxregkey.cpp
··· 1 1 // 2 2 // Copyright (C) Microsoft. All rights reserved. 3 3 // 4 - #include "FxSupportPch.hpp" 4 + #include "fxsupportpch.hpp" 5 5 6 6 extern "C" { 7 7 #if defined(EVENT_TRACING)
+2 -2
sdk/lib/drivers/wdf/shared/support/fxrequestbuffer.cpp
··· 22 22 23 23 --*/ 24 24 25 - #include "FxSupportPch.hpp" 25 + #include "fxsupportpch.hpp" 26 26 27 27 extern "C" { 28 - #include "FxRequestBuffer.tmh" 28 + // #include "FxRequestBuffer.tmh" 29 29 } 30 30 31 31 FxRequestBuffer::FxRequestBuffer(
+2 -2
sdk/lib/drivers/wdf/shared/support/fxresourceapi.cpp
··· 22 22 Revision History: 23 23 24 24 --*/ 25 - #include "FxSupportPch.hpp" 25 + #include "fxsupportpch.hpp" 26 26 27 27 extern "C" { 28 - #include "FxResourceAPI.tmh" 28 + // #include "FxResourceAPI.tmh" 29 29 } 30 30 31 31 //
+1 -1
sdk/lib/drivers/wdf/shared/support/fxresourcecollection.cpp
··· 23 23 24 24 --*/ 25 25 26 - #include "FxSupportPch.hpp" 26 + #include "fxsupportpch.hpp" 27 27 28 28 extern "C" { 29 29 #if defined(EVENT_TRACING)
+3 -3
sdk/lib/drivers/wdf/shared/support/fxspinlock.cpp
··· 22 22 23 23 --*/ 24 24 25 - #include "FxSupportPch.hpp" 26 - #include "FxSpinLock.hpp" 25 + #include "fxsupportpch.hpp" 26 + #include "fxspinlock.hpp" 27 27 28 28 extern "C" { 29 - #include "FxSpinLock.tmh" 29 + // #include "FxSpinLock.tmh" 30 30 } 31 31 32 32 FxSpinLock::FxSpinLock(
+6 -3
sdk/lib/drivers/wdf/shared/support/fxspinlockapi.cpp
··· 22 22 23 23 --*/ 24 24 25 - #include "FxSupportPch.hpp" 26 - #include "FxSpinLock.hpp" 25 + #include "fxsupportpch.hpp" 26 + #include "fxspinlock.hpp" 27 27 28 28 extern "C" { 29 - #include "FxSpinLockAPI.tmh" 29 + // #include "FxSpinLockAPI.tmh" 30 30 } 31 31 32 32 // ··· 37 37 _Must_inspect_result_ 38 38 __drv_maxIRQL(DISPATCH_LEVEL) 39 39 NTSTATUS 40 + STDCALL 40 41 WDFEXPORT(WdfSpinLockCreate)( 41 42 __in 42 43 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 108 109 __drv_raisesIRQL(DISPATCH_LEVEL) 109 110 __drv_maxIRQL(DISPATCH_LEVEL) 110 111 VOID 112 + STDCALL 111 113 WDFEXPORT(WdfSpinLockAcquire)( 112 114 __in 113 115 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 145 147 __drv_maxIRQL(DISPATCH_LEVEL) 146 148 __drv_minIRQL(DISPATCH_LEVEL) 147 149 VOID 150 + STDCALL 148 151 WDFEXPORT(WdfSpinLockRelease)( 149 152 __in 150 153 PWDF_DRIVER_GLOBALS DriverGlobals,
+1 -1
sdk/lib/drivers/wdf/shared/support/fxstring.cpp
··· 23 23 24 24 --*/ 25 25 26 - #include "FxSupportPch.hpp" 26 + #include "fxsupportpch.hpp" 27 27 28 28 FxString::FxString( 29 29 __in PFX_DRIVER_GLOBALS FxDriverGlobals
+4 -2
sdk/lib/drivers/wdf/shared/support/fxstringapi.cpp
··· 22 22 23 23 --*/ 24 24 25 - #include "FxSupportPch.hpp" 25 + #include "fxsupportpch.hpp" 26 26 27 27 extern "C" { 28 - #include "FxStringAPI.tmh" 28 + // #include "FxStringAPI.tmh" 29 29 } 30 30 31 31 extern "C" { ··· 33 33 _Must_inspect_result_ 34 34 __drv_maxIRQL(PASSIVE_LEVEL) 35 35 NTSTATUS 36 + STDCALL 36 37 WDFEXPORT(WdfStringCreate)( 37 38 __in 38 39 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 116 117 117 118 __drv_maxIRQL(PASSIVE_LEVEL) 118 119 VOID 120 + STDCALL 119 121 WDFEXPORT(WdfStringGetUnicodeString)( 120 122 __in 121 123 PWDF_DRIVER_GLOBALS DriverGlobals,
+2 -2
sdk/lib/drivers/wdf/shared/support/fxsupportpch.hpp
··· 17 17 #define __FX_SUPPORT_PCH_HPP__ 18 18 19 19 #if FX_CORE_MODE == FX_CORE_USER_MODE 20 - #include "um\FxSupportPchUM.hpp" 20 + #include "um/fxsupportpchum.hpp" 21 21 #elif FX_CORE_MODE == FX_CORE_KERNEL_MODE 22 - #include "km\FxSupportPchKM.hpp" 22 + #include "km/fxsupportpchkm.hpp" 23 23 #endif 24 24 25 25 #endif // __FX_SUPPORT_PCH_HPP__
+3 -3
sdk/lib/drivers/wdf/shared/support/fxtelemetry.cpp
··· 32 32 #include "fxldr.h" 33 33 #include <ntstrsafe.h> 34 34 #else 35 - #include "DriverFrameworks-UserMode-UmEvents.h" 36 - #include "FxldrUm.h" 35 + #include "driverframeworks-usermode-umevents.h" 36 + #include "fxldrum.h" 37 37 #endif 38 38 39 39 extern "C" { 40 40 #if defined(EVENT_TRACING) 41 - #include "FxTelemetry.tmh" 41 + #include "fxtelemetry.tmh" 42 42 #endif 43 43 } 44 44
+1 -1
sdk/lib/drivers/wdf/shared/support/fxtransactionedlist.cpp
··· 24 24 25 25 --*/ 26 26 27 - #include "FxSupportPch.hpp" 27 + #include "fxsupportpch.hpp" 28 28 29 29 FxTransactionedList::FxTransactionedList() 30 30 {
+2 -2
sdk/lib/drivers/wdf/shared/support/fxwaitlock.cpp
··· 18 18 19 19 --*/ 20 20 21 - #include "FxSupportPch.hpp" 21 + #include "fxsupportpch.hpp" 22 22 23 23 #if defined(EVENT_TRACING) 24 24 // Tracing support 25 25 extern "C" { 26 - #include "FxWaitLock.tmh" 26 + #include "fxwaitlock.tmh" 27 27 } 28 28 #endif 29 29
+4 -1
sdk/lib/drivers/wdf/shared/support/fxwaitlockapi.cpp
··· 22 22 23 23 --*/ 24 24 25 - #include "FxSupportPch.hpp" 25 + #include "fxsupportpch.hpp" 26 26 27 27 // extern the entire file 28 28 extern "C" { ··· 32 32 __drv_maxIRQL(DISPATCH_LEVEL) 33 33 NTSTATUS 34 34 WDFAPI 35 + STDCALL 35 36 WDFEXPORT(WdfWaitLockCreate)( 36 37 __in 37 38 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 97 98 __drv_when(Timeout != 0 && *Timeout != 0, __drv_maxIRQL(PASSIVE_LEVEL)) 98 99 NTSTATUS 99 100 WDFAPI 101 + STDCALL 100 102 WDFEXPORT(WdfWaitLockAcquire)( 101 103 __in 102 104 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 151 153 __drv_maxIRQL(DISPATCH_LEVEL) 152 154 VOID 153 155 WDFAPI 156 + STDCALL 154 157 WDFEXPORT(WdfWaitLockRelease)( 155 158 __in 156 159 PWDF_DRIVER_GLOBALS DriverGlobals,
+2 -2
sdk/lib/drivers/wdf/shared/support/km/fxdeviceinterfacekm.cpp
··· 22 22 23 23 --*/ 24 24 25 - #include "FxSupportPch.hpp" 25 + #include "fxsupportpch.hpp" 26 26 27 27 extern "C" { 28 - #include "FxDeviceInterfaceKM.tmh" 28 + // #include "FxDeviceInterfaceKM.tmh" 29 29 } 30 30 31 31 FxDeviceInterface::FxDeviceInterface(
+2 -2
sdk/lib/drivers/wdf/shared/support/km/fxregkeykm.cpp
··· 18 18 19 19 --*/ 20 20 21 - #include "FxSupportPch.hpp" 21 + #include "fxsupportpch.hpp" 22 22 23 23 extern "C" { 24 - #include "FxRegKeyKM.tmh" 24 + // #include "FxRegKeyKM.tmh" 25 25 } 26 26 27 27 #define AT_PASSIVE() ASSERT(KeGetCurrentIrql() == PASSIVE_LEVEL)
+2 -2
sdk/lib/drivers/wdf/shared/support/km/fxrequestbufferkm.cpp
··· 22 22 23 23 --*/ 24 24 25 - #include "FxSupportPch.hpp" 25 + #include "fxsupportpch.hpp" 26 26 27 27 extern "C" { 28 - #include "FxRequestBufferKm.tmh" 28 + // #include "FxRequestBufferKm.tmh" 29 29 } 30 30 31 31 _Must_inspect_result_
+1 -1
sdk/lib/drivers/wdf/shared/support/km/fxresourcecollectionkm.cpp
··· 23 23 24 24 --*/ 25 25 26 - #include "FxSupportPch.hpp" 26 + #include "fxsupportpch.hpp" 27 27 28 28 #if defined(EVENT_TRACING) 29 29 // Tracing support
+7 -7
sdk/lib/drivers/wdf/shared/support/km/fxsupportpchkm.hpp
··· 29 29 30 30 #include <fxmin.hpp> 31 31 32 - #include "FxCollection.hpp" 33 - #include "StringUtil.hpp" 34 - #include "FxString.hpp" 35 - #include "FxDeviceText.hpp" 36 - #include "FxWaitLock.hpp" 32 + #include "fxcollection.hpp" 33 + #include "stringutil.hpp" 34 + #include "fxstring.hpp" 35 + #include "fxdevicetext.hpp" 36 + #include "fxwaitlock.hpp" 37 37 38 - #include <WdfResource.h> 39 - #include <FxResource.hpp> 38 + #include <wdfresource.h> 39 + #include <fxresource.hpp> 40 40 41 41 #endif // __FX_SUPPORT_PCH_KM_HPP__
+2 -2
sdk/lib/drivers/wdf/shared/support/stringutil.cpp
··· 22 22 23 23 --*/ 24 24 25 - #include "FxSupportPch.hpp" 25 + #include "fxsupportpch.hpp" 26 26 27 27 extern "C" { 28 - #include "StringUtil.tmh" 28 + // #include "StringUtil.tmh" 29 29 } 30 30 31 31 size_t
+20 -20
sdk/lib/drivers/wdf/shared/targets/fxtargetsshared.hpp
··· 36 36 #include "mx.h" 37 37 } 38 38 39 - #include "FxMin.hpp" 39 + #include "fxmin.hpp" 40 40 41 41 42 42 43 43 #include "wdfmemory.h" 44 44 #include "wdfrequest.h" 45 45 #include "wdfdevice.h" 46 - #include "wdfWmi.h" 47 - #include "wdfChildList.h" 46 + #include "wdfwmi.h" 47 + #include "wdfchildlist.h" 48 48 #include "wdfpdo.h" 49 49 #include "wdffdo.h" 50 50 #include "wdfiotarget.h" ··· 53 53 #include "wdfio.h" 54 54 #include "wdfqueryinterface.h" 55 55 56 - #include "FxIrpQueue.hpp" 57 - #include "FxCallback.hpp" 56 + #include "fxirpqueue.hpp" 57 + #include "fxcallback.hpp" 58 58 #if (FX_CORE_MODE == FX_CORE_USER_MODE) 59 - #include "FxIrpUm.hpp" 60 - #else if ((FX_CORE_MODE)==(FX_CORE_KERNEL_MODE)) 61 - #include "FxIrpKm.hpp" 59 + #include "fxirpum.hpp" 60 + #elif ((FX_CORE_MODE)==(FX_CORE_KERNEL_MODE)) 61 + #include "fxirpkm.hpp" 62 62 #endif 63 - #include "FxTransactionedList.hpp" 63 + #include "fxtransactionedlist.hpp" 64 64 65 - #include "FxCollection.hpp" 66 - #include "FxDeviceInitShared.hpp" 67 - #include "FxDeviceToMxInterface.hpp" 68 - #include "FxRequestContext.hpp" 69 - #include "FxRequestContextTypes.h" 70 - #include "FxRequestBase.hpp" 71 - #include "FxRequestBuffer.hpp" 72 - #include "IfxMemory.hpp" 73 - #include "FxIoTarget.hpp" 74 - #include "FxIoTargetRemote.hpp" 75 - #include "FxIoTargetSelf.hpp" 65 + #include "fxcollection.hpp" 66 + #include "fxdeviceinitshared.hpp" 67 + #include "fxdevicetomxinterface.hpp" 68 + #include "fxrequestcontext.hpp" 69 + #include "fxrequestcontexttypes.h" 70 + #include "fxrequestbase.hpp" 71 + #include "fxrequestbuffer.hpp" 72 + #include "ifxmemory.hpp" 73 + #include "fxiotarget.hpp" 74 + #include "fxiotargetremote.hpp" 75 + #include "fxiotargetself.hpp" 76 76 77 77 78 78
+2 -4
sdk/lib/drivers/wdf/shared/targets/general/fxiotarget.cpp
··· 21 21 --*/ 22 22 23 23 24 - #include "..\FxTargetsShared.hpp" 24 + #include "../fxtargetsshared.hpp" 25 25 26 26 extern "C" { 27 27 #if defined(EVENT_TRACING) ··· 308 308 __in BOOLEAN Lock 309 309 ) 310 310 { 311 - FxRequestBase* pRequest; 312 311 NTSTATUS status; 313 312 KIRQL irql; 314 313 315 314 irql = PASSIVE_LEVEL; 316 - pRequest = NULL; 317 315 318 316 ADDREF(START_TAG); 319 317 ··· 1110 1108 *Params->Object = (FxIoTarget*) this; 1111 1109 break; 1112 1110 default: 1113 - return __super::QueryInterface(Params); 1111 + return FxNonPagedObject::QueryInterface(Params); // __super call 1114 1112 } 1115 1113 1116 1114 return STATUS_SUCCESS;
+23 -2
sdk/lib/drivers/wdf/shared/targets/general/fxiotargetapi.cpp
··· 20 20 21 21 --*/ 22 22 23 - #include "..\FxTargetsShared.hpp" 23 + #include "../fxtargetsshared.hpp" 24 24 25 25 extern "C" { 26 - #include "FxIoTargetAPI.tmh" 26 + // #include "FxIoTargetAPI.tmh" 27 27 } 28 28 29 29 // ··· 34 34 _Must_inspect_result_ 35 35 __drv_maxIRQL(DISPATCH_LEVEL) 36 36 NTSTATUS 37 + STDCALL 37 38 WDFEXPORT(WdfIoTargetStart)( 38 39 __in 39 40 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 69 70 __drv_when(Action == 3, __drv_maxIRQL(DISPATCH_LEVEL)) 70 71 __drv_when(Action == 0 || Action == 1 || Action == 2, __drv_maxIRQL(PASSIVE_LEVEL)) 71 72 VOID 73 + STDCALL 72 74 WDFEXPORT(WdfIoTargetStop)( 73 75 __in 74 76 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 128 130 __drv_when(Action == 2, __drv_maxIRQL(DISPATCH_LEVEL)) 129 131 __drv_when(Action == 0 || Action == 1, __drv_maxIRQL(PASSIVE_LEVEL)) 130 132 VOID 133 + STDCALL 131 134 WDFEXPORT(WdfIoTargetPurge)( 132 135 __in 133 136 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 185 188 186 189 __drv_maxIRQL(DISPATCH_LEVEL) 187 190 WDF_IO_TARGET_STATE 191 + STDCALL 188 192 WDFEXPORT(WdfIoTargetGetState)( 189 193 __in 190 194 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 364 368 _Must_inspect_result_ 365 369 __drv_maxIRQL(PASSIVE_LEVEL) 366 370 NTSTATUS 371 + STDCALL 367 372 WDFEXPORT(WdfIoTargetCreate)( 368 373 __in 369 374 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 437 442 _Must_inspect_result_ 438 443 __drv_maxIRQL(PASSIVE_LEVEL) 439 444 NTSTATUS 445 + STDCALL 440 446 WDFEXPORT(WdfIoTargetOpen)( 441 447 __in 442 448 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 543 549 544 550 __drv_maxIRQL(PASSIVE_LEVEL) 545 551 VOID 552 + STDCALL 546 553 WDFEXPORT(WdfIoTargetCloseForQueryRemove)( 547 554 __in 548 555 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 591 598 592 599 __drv_maxIRQL(PASSIVE_LEVEL) 593 600 VOID 601 + STDCALL 594 602 WDFEXPORT(WdfIoTargetClose)( 595 603 __in 596 604 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 636 644 637 645 __drv_maxIRQL(DISPATCH_LEVEL) 638 646 WDFDEVICE 647 + STDCALL 639 648 WDFEXPORT(WdfIoTargetGetDevice)( 640 649 __in 641 650 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 943 952 _Must_inspect_result_ 944 953 __drv_maxIRQL(PASSIVE_LEVEL) 945 954 NTSTATUS 955 + STDCALL 946 956 WDFEXPORT(WdfIoTargetSendReadSynchronously)( 947 957 __in 948 958 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 975 985 _Must_inspect_result_ 976 986 __drv_maxIRQL(DISPATCH_LEVEL) 977 987 NTSTATUS 988 + STDCALL 978 989 WDFEXPORT(WdfIoTargetFormatRequestForRead)( 979 990 __in 980 991 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1005 1016 _Must_inspect_result_ 1006 1017 __drv_maxIRQL(PASSIVE_LEVEL) 1007 1018 NTSTATUS 1019 + STDCALL 1008 1020 WDFEXPORT(WdfIoTargetSendWriteSynchronously)( 1009 1021 __in 1010 1022 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1037 1049 _Must_inspect_result_ 1038 1050 __drv_maxIRQL(DISPATCH_LEVEL) 1039 1051 NTSTATUS 1052 + STDCALL 1040 1053 WDFEXPORT(WdfIoTargetFormatRequestForWrite)( 1041 1054 __in 1042 1055 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1386 1399 _Must_inspect_result_ 1387 1400 __drv_maxIRQL(PASSIVE_LEVEL) 1388 1401 NTSTATUS 1402 + STDCALL 1389 1403 WDFEXPORT(WdfIoTargetSendIoctlSynchronously)( 1390 1404 __in 1391 1405 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1423 1437 _Must_inspect_result_ 1424 1438 __drv_maxIRQL(DISPATCH_LEVEL) 1425 1439 NTSTATUS 1440 + STDCALL 1426 1441 WDFEXPORT(WdfIoTargetFormatRequestForIoctl)( 1427 1442 __in 1428 1443 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1458 1473 _Must_inspect_result_ 1459 1474 __drv_maxIRQL(PASSIVE_LEVEL) 1460 1475 NTSTATUS 1476 + STDCALL 1461 1477 WDFEXPORT(WdfIoTargetSendInternalIoctlSynchronously)( 1462 1478 __in 1463 1479 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1495 1511 _Must_inspect_result_ 1496 1512 __drv_maxIRQL(DISPATCH_LEVEL) 1497 1513 NTSTATUS 1514 + STDCALL 1498 1515 WDFEXPORT(WdfIoTargetFormatRequestForInternalIoctl)( 1499 1516 __in 1500 1517 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1530 1547 _Must_inspect_result_ 1531 1548 __drv_maxIRQL(PASSIVE_LEVEL) 1532 1549 NTSTATUS 1550 + STDCALL 1533 1551 WDFEXPORT(WdfIoTargetSendInternalIoctlOthersSynchronously)( 1534 1552 __in 1535 1553 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1708 1726 _Must_inspect_result_ 1709 1727 __drv_maxIRQL(DISPATCH_LEVEL) 1710 1728 NTSTATUS 1729 + STDCALL 1711 1730 WDFEXPORT(WdfIoTargetFormatRequestForInternalIoctlOthers)( 1712 1731 __in 1713 1732 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1847 1866 _Must_inspect_result_ 1848 1867 _IRQL_requires_max_(DISPATCH_LEVEL) 1849 1868 NTSTATUS 1869 + STDCALL 1850 1870 WDFEXPORT(WdfIoTargetSelfAssignDefaultIoQueue)( 1851 1871 _In_ 1852 1872 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 1964 1984 1965 1985 __drv_maxIRQL(DISPATCH_LEVEL) 1966 1986 HANDLE 1987 + STDCALL 1967 1988 WDFEXPORT(WdfIoTargetWdmGetTargetFileHandle)( 1968 1989 __in 1969 1990 PWDF_DRIVER_GLOBALS DriverGlobals,
+5 -5
sdk/lib/drivers/wdf/shared/targets/general/fxiotargetremote.cpp
··· 18 18 19 19 --*/ 20 20 21 - #include "..\FxTargetsShared.hpp" 21 + #include "../fxtargetsshared.hpp" 22 22 23 23 extern "C" { 24 - #include "FxIoTargetRemote.tmh" 24 + // #include "FxIoTargetRemote.tmh" 25 25 } 26 26 27 27 #include <initguid.h> ··· 55 55 56 56 #if (FX_CORE_MODE == FX_CORE_KERNEL_MODE) 57 57 m_TargetNotifyHandle = NULL; 58 - #else (FX_CORE_MODE == FX_CORE_USER_MODE) 58 + #elif (FX_CORE_MODE == FX_CORE_USER_MODE) 59 59 m_TargetNotifyHandle = WUDF_TARGET_CONTEXT_INVALID; 60 60 61 61 m_pIoDispatcher = NULL; ··· 173 173 // 174 174 // do the base class mode-specific initialization 175 175 // 176 - status = __super::InitModeSpecific(Device); 176 + status = FxIoTarget::InitModeSpecific(Device); // __super call 177 177 if (!NT_SUCCESS(status)) { 178 178 return status; 179 179 } ··· 757 757 // canceled or completing. When we receive either of those notifications, 758 758 // m_TargetNotifyHandle will be freed then. 759 759 // 760 - __super::ClearTargetPointers(); 760 + FxIoTarget::ClearTargetPointers(); // __super call 761 761 } 762 762 763 763 VOID
+1 -1
sdk/lib/drivers/wdf/shared/targets/general/fxiotargetself.cpp
··· 24 24 --*/ 25 25 26 26 27 - #include "..\FxTargetsShared.hpp" 27 + #include "../fxtargetsshared.hpp" 28 28 29 29 extern "C" { 30 30 #if defined(EVENT_TRACING)
+9 -3
sdk/lib/drivers/wdf/shared/targets/general/km/fxiotargetapikm.cpp
··· 20 20 21 21 --*/ 22 22 23 - #include "..\..\FxTargetsShared.hpp" 23 + #include "../../fxtargetsshared.hpp" 24 24 25 25 extern "C" { 26 - #include "FxIoTargetAPIKm.tmh" 26 + // #include "FxIoTargetAPIKm.tmh" 27 27 } 28 28 29 29 // ··· 33 33 34 34 __drv_maxIRQL(DISPATCH_LEVEL) 35 35 PDEVICE_OBJECT 36 + STDCALL 36 37 WDFEXPORT(WdfIoTargetWdmGetTargetDeviceObject)( 37 38 __in 38 39 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 76 77 77 78 __drv_maxIRQL(DISPATCH_LEVEL) 78 79 PDEVICE_OBJECT 80 + STDCALL 79 81 WDFEXPORT(WdfIoTargetWdmGetTargetPhysicalDevice)( 80 82 __in 81 83 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 121 123 122 124 __drv_maxIRQL(DISPATCH_LEVEL) 123 125 PFILE_OBJECT 126 + STDCALL 124 127 WDFEXPORT(WdfIoTargetWdmGetTargetFileObject)( 125 128 __in 126 129 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 165 168 __drv_maxIRQL(PASSIVE_LEVEL) 166 169 _Must_inspect_result_ 167 170 NTSTATUS 171 + STDCALL 168 172 WDFEXPORT(WdfIoTargetQueryForInterface)( 169 173 __in 170 174 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 242 246 _Must_inspect_result_ 243 247 __drv_maxIRQL(PASSIVE_LEVEL) 244 248 NTSTATUS 249 + STDCALL 245 250 WDFEXPORT(WdfIoTargetQueryTargetProperty)( 246 251 __in 247 252 PWDF_DRIVER_GLOBALS DriverGlobals, ··· 254 259 __drv_when(BufferLength != 0, __out_bcount_part_opt(BufferLength, *ResultLength)) 255 260 __drv_when(BufferLength == 0, __out_opt) 256 261 PVOID PropertyBuffer, 257 - __deref_out_range(<=,BufferLength) 262 + __deref_out_range(<=,BufferLength) 258 263 PULONG ResultLength 259 264 ) 260 265 /*++ ··· 333 338 __drv_maxIRQL(PASSIVE_LEVEL) 334 339 WDFAPI 335 340 NTSTATUS 341 + STDCALL 336 342 WDFEXPORT(WdfIoTargetAllocAndQueryTargetProperty)( 337 343 __in 338 344 PWDF_DRIVER_GLOBALS DriverGlobals,
+1 -1
sdk/lib/drivers/wdf/shared/targets/general/km/fxiotargetkm.cpp
··· 21 21 --*/ 22 22 23 23 24 - #include "..\..\FxTargetsShared.hpp" 24 + #include "../../fxtargetsshared.hpp" 25 25 26 26 extern "C" { 27 27 #if defined(EVENT_TRACING)
+4 -4
sdk/lib/drivers/wdf/shared/targets/general/km/fxiotargetremotekm.cpp
··· 18 18 19 19 --*/ 20 20 21 - #include "..\..\FxTargetsShared.hpp" 21 + #include "../../fxtargetsshared.hpp" 22 22 23 23 extern "C" { 24 - #include "FxIoTargetRemoteKm.tmh" 24 + // #include "FxIoTargetRemoteKm.tmh" 25 25 } 26 26 27 27 #include <initguid.h> ··· 48 48 // If that is the case, we need to be able to return and deref the object until 49 49 // we are done. 50 50 // 51 - pThis->ADDREF(_PlugPlayNotification); 51 + pThis->ADDREF((PVOID)_PlugPlayNotification); 52 52 53 53 pFxDriverGlobals = pThis->GetDriverGlobals(); 54 54 ··· 133 133 } 134 134 } 135 135 136 - pThis->RELEASE(_PlugPlayNotification); 136 + pThis->RELEASE((PVOID)_PlugPlayNotification); 137 137 138 138 return status; 139 139 }
+6 -6
sdk/lib/drivers/wdf/shared/targets/usb/fxusbdevice.cpp
··· 108 108 m_CompletionParams.IoStatus.Information = m_UmUrb.UmUrbControlTransfer.TransferBufferLength; 109 109 m_UsbParameters.Parameters.DeviceControlTransfer.Length = m_UmUrb.UmUrbControlTransfer.TransferBufferLength; 110 110 #endif 111 - __super::CopyParameters(Request); 111 + FxUsbRequestContext::CopyParameters(Request); // __super call 112 112 } 113 113 114 114 VOID ··· 131 131 m_PartialMdl = NULL; 132 132 } 133 133 134 - __super::ReleaseAndRestore(Request); 134 + FxUsbRequestContext::ReleaseAndRestore(Request); // __super call 135 135 } 136 136 137 137 USBD_STATUS ··· 262 262 } 263 263 } 264 264 265 - __super::CopyParameters(Request); 265 + FxUsbRequestContext::CopyParameters(Request); // __super call 266 266 } 267 267 268 268 VOID ··· 365 365 m_pBuffer = NULL; 366 366 m_USBDHandle = NULL; 367 367 368 - return __super::Dispose(); 368 + return FxMemoryBufferPreallocated::Dispose(); // __super call 369 369 } 370 370 371 371 FxUsbDevice::FxUsbDevice( ··· 429 429 } 430 430 #endif 431 431 432 - return __super::Dispose(); 432 + return FxIoTarget::Dispose(); // __super call 433 433 } 434 434 435 435 FxUsbDevice::~FxUsbDevice() ··· 2114 2114 } 2115 2115 } 2116 2116 } 2117 - __super::CancelSentIo(); 2117 + FxIoTarget::CancelSentIo(); // __super call 2118 2118 } 2119 2119 2120 2120 __checkReturn
+8 -8
sdk/lib/drivers/wdf/shared/targets/usb/fxusbpipe.cpp
··· 876 876 m_PartialMdl = NULL; 877 877 } 878 878 #endif 879 - __super::ReleaseAndRestore(Request); 879 + FxUsbRequestContext::ReleaseAndRestore(Request); // __super call 880 880 } 881 881 882 882 VOID ··· 896 896 Parameters.PipeWrite.Length)); 897 897 898 898 m_UsbParameters.Parameters.PipeRead.Length = GetUrbTransferLength(); 899 - __super::CopyParameters(Request); 899 + FxUsbRequestContext::CopyParameters(Request); // __super call 900 900 } 901 901 902 902 VOID ··· 957 957 ) 958 958 { 959 959 m_pUrb = NULL; 960 - __super::ReleaseAndRestore(Request); 960 + FxUsbRequestContext::ReleaseAndRestore(Request); // __super call 961 961 } 962 962 963 963 ··· 1106 1106 // 1107 1107 // Call base class: callbacks, terminates I/Os, etc. 1108 1108 // 1109 - callCleanup = __super::Dispose(); 1109 + callCleanup = FxIoTarget::Dispose(); // __super call 1110 1110 1111 1111 // 1112 1112 // Don't need the reader anymore. The reader is deleted after calling the ··· 1245 1245 Action = WdfIoTargetCancelSentIo; 1246 1246 } 1247 1247 1248 - __super::GotoStopState(Action, SentRequestListHead, Wait, FALSE); 1248 + FxIoTarget::GotoStopState(Action, SentRequestListHead, Wait, FALSE); // __super call 1249 1249 1250 1250 if (m_Reader != NULL) { 1251 1251 // ··· 1323 1323 Action = WdfIoTargetPurgeIoAndWait; 1324 1324 } 1325 1325 1326 - __super::GotoPurgeState(Action, 1326 + FxIoTarget::GotoPurgeState(Action, // __super call 1327 1327 PendedRequestListHead, 1328 1328 SentRequestListHead, 1329 1329 Wait, ··· 1395 1395 } 1396 1396 } 1397 1397 1398 - __super::GotoRemoveState(NewState, 1398 + FxIoTarget::GotoRemoveState(NewState, // __super call 1399 1399 PendedRequestListHead, 1400 1400 SentRequestListHead, 1401 1401 FALSE, ··· 1455 1455 // 1456 1456 // Finally, let the parent class wait for all I/O to complete 1457 1457 // 1458 - __super::WaitForSentIoToComplete(); 1458 + FxIoTarget::WaitForSentIoToComplete(); // __super call 1459 1459 } 1460 1460 1461 1461 _Must_inspect_result_
+1 -1
sdk/lib/drivers/wdf/shared/targets/usb/km/fxusbdevicekm.cpp
··· 698 698 m_Urb->Hdr.Function = URB_FUNCTION_CONTROL_TRANSFER; 699 699 m_Urb->Hdr.Length = sizeof(*m_Urb); 700 700 701 - __super::StoreAndReferenceMemory(Buffer); 701 + FxUsbRequestContext::StoreAndReferenceMemory(Buffer); // __super call 702 702 703 703 // 704 704 // Set the values using what is stored in the buffer
+1 -1
sdk/lib/drivers/wdf/shared/targets/usb/km/fxusbpipekm.cpp
··· 32 32 m_Urb->Hdr.Function = URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER; 33 33 m_Urb->Hdr.Length = sizeof(*m_Urb); 34 34 35 - __super::StoreAndReferenceMemory(Buffer); 35 + FxUsbRequestContext::StoreAndReferenceMemory(Buffer); // __super call 36 36 37 37 Buffer->AssignValues(&m_Urb->TransferBuffer, 38 38 &m_Urb->TransferBufferMDL,
+1 -1
sdk/lib/drivers/wdf/shared/targets/usb/um/fxusbdeviceum.cpp
··· 562 562 { 563 563 SetUsbType(WdfUsbRequestTypeDeviceControlTransfer); 564 564 565 - __super::StoreAndReferenceMemory(Buffer); 565 + FxUsbRequestContext::StoreAndReferenceMemory(Buffer); // __super call 566 566 567 567 // 568 568 // Convert WDF_USB_CONTROL_SETUP_PACKET to WINUSB_SETUP_PACKET
+1 -1
sdk/lib/drivers/wdf/shared/targets/usb/um/fxusbpipeum.cpp
··· 51 51 m_UmUrb.UmUrbHeader.Function = UMURB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER; 52 52 m_UmUrb.UmUrbHeader.Length = sizeof(_UMURB_BULK_OR_INTERRUPT_TRANSFER); 53 53 54 - __super::StoreAndReferenceMemory(Buffer); 54 + FxUsbRequestContext::StoreAndReferenceMemory(Buffer); // __super call 55 55 56 56 Buffer->AssignValues(&m_UmUrb.UmUrbBulkOrInterruptTransfer.TransferBuffer, 57 57 NULL,
+2 -3
sdk/lib/drivers/wdf/umdf/fxlib/version/framework.cpp
··· 30 30 extern WDF_LIBRARY_INFO WdfLibraryInfo; 31 31 32 32 #if !(NO_UMDF_VERSION_EXPORT) 33 - __declspec(dllexport) 34 - 35 - __declspec(selectany) 33 + DECLSPEC_EXPORT 34 + DECLSPEC_SELECTANY 36 35 37 36 UMDF_VERSION_DATA Microsoft_WDF_UMDF_Version = {__WUDF_MAJOR_VERSION, 38 37
+4 -4
sdk/lib/drivers/wdf/umdf/fxlib/version/version.cpp
··· 35 35 #include "mx.h" 36 36 } 37 37 #include "fxmin.hpp" 38 - #include "fxldrUm.h" 39 - #include "fxIFR.h" 38 + #include "fxldrum.h" 39 + #include "fxifr.h" 40 40 41 41 #include <strsafe.h> 42 42 #include <driverspecs.h> ··· 45 45 46 46 extern "C" { 47 47 48 - #include "FxDynamics.h" 48 + #include "fxdynamics.h" 49 49 50 - #include "..\librarycommon\FxLibraryCommon.h" 50 + #include "..\librarycommon\fxlibrarycommon.h" 51 51 52 52 #define KMDF_DEFAULT_NAME "Wdf" ## \ 53 53 LITERAL(__WDF_MAJOR_VERSION) ## \
+14
sdk/lib/drivers/wdf/usbspec.h
··· 1 + /* 2 + * PROJECT: Kernel Mode Device Framework 3 + * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later) 4 + * PURPOSE: Missing headers (usbspec.h) 5 + * COPYRIGHT: 2020 Victor Perevertkin (victor.perevertkin@reactos.org) 6 + */ 7 + 8 + #ifndef __USBSPEC_H__ 9 + #define __USBSPEC_H__ 10 + 11 + #include <usb100.h> 12 + #include <usb200.h> 13 + 14 + #endif
+17
sdk/lib/drivers/wdf/wdf01000_reg.inf
··· 1 + ; Kernel Mode Driver Frameworks (wdf01000.sys) 2 + [AddReg] 3 + HKLM,"SYSTEM\CurrentControlSet\Services\Wdf01000","ErrorControl",0x00010001,0x00000000 4 + HKLM,"SYSTEM\CurrentControlSet\Services\Wdf01000","Group",0x00000000,"WdfLoadGroup" 5 + HKLM,"SYSTEM\CurrentControlSet\Services\Wdf01000","DisplayName",0x00000000,"Kernel Mode Driver Frameworks service" 6 + HKLM,"SYSTEM\CurrentControlSet\Services\Wdf01000","ImagePath",0x00020000,"system32\drivers\wdf01000.sys" 7 + HKLM,"SYSTEM\CurrentControlSet\Services\Wdf01000","Start",0x00010001,0x00000003 8 + HKLM,"SYSTEM\CurrentControlSet\Services\Wdf01000","Type",0x00010001,0x00000001 9 + HKLM,"SYSTEM\CurrentControlSet\Services\Wdf01000\Enum","0",0x00000000,"Root\LEGACY_WDF01000\0000" 10 + HKLM,"SYSTEM\CurrentControlSet\Services\Wdf01000\Enum","Count",0x00010001,0x00000001 11 + HKLM,"SYSTEM\CurrentControlSet\Services\Wdf01000\Enum","NextInstance",0x00010001,0x00000001 12 + HKLM,"SYSTEM\CurrentControlSet\Services\Wdf01000\Parameters","BuildNumber",0x00010001,0x00001db0 13 + HKLM,"SYSTEM\CurrentControlSet\Services\Wdf01000\Parameters","MajorVersion",0x00010001,0x00000001 14 + HKLM,"SYSTEM\CurrentControlSet\Services\Wdf01000\Parameters","MinorVersion",0x00010001,0x00000009 15 + HKLM,"SYSTEM\CurrentControlSet\Control\Wdf\Kmdf\KmdfLibrary\Versions\1","Service",0x00000000,"Wdf01000" 16 + HKLM,"SYSTEM\ControlSet001\Enum\Root\LEGACY_WDF01000","NextInstance",0x00010001,0x00000001 17 + HKLM,"SYSTEM\ControlSet001\Enum\Root\LEGACY_WDF01000\0000","ActiveService",0x00000000,"Wdf01000"
+141
sdk/lib/drivers/wdf/wdfcx.h
··· 1 + /* 2 + * PROJECT: Kernel Mode Device Framework 3 + * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later) 4 + * PURPOSE: Missing headers (wdfcx.h) 5 + * COPYRIGHT: 2020 Victor Perevertkin (victor.perevertkin@reactos.org) 6 + */ 7 + 8 + #ifndef _WDFCX_H_ 9 + #define _WDFCX_H_ 10 + 11 + typedef BOOLEAN 12 + (STDCALL *PFN_WDFCX_DEVICE_FILE_CREATE) ( 13 + _In_ WDFDEVICE Device, 14 + _In_ WDFREQUEST Request, 15 + _In_opt_ WDFFILEOBJECT FileObject); 16 + 17 + // _WDFCX_FILEOBJECT_CONFIG_V1_17 18 + 19 + typedef struct _WDFCX_FILEOBJECT_CONFIG { 20 + // 21 + // Size of this structure in bytes 22 + // 23 + ULONG Size; 24 + 25 + // 26 + // Event callback for create requests 27 + // 28 + PFN_WDFCX_DEVICE_FILE_CREATE EvtCxDeviceFileCreate; 29 + 30 + // 31 + // Event callback for close requests 32 + // 33 + PFN_WDF_FILE_CLOSE EvtFileClose; 34 + 35 + // 36 + // Event callback for cleanup requests 37 + // 38 + PFN_WDF_FILE_CLEANUP EvtFileCleanup; 39 + 40 + // 41 + // If WdfTrue, create/cleanup/close file object related requests will be 42 + // sent down the stack. 43 + // 44 + // If WdfFalse, create/cleanup/close will be completed at this location in 45 + // the device stack. 46 + // 47 + // If WdfDefault, behavior depends on device type 48 + // FDO, PDO, Control: use the WdfFalse behavior 49 + // Filter: use the WdfTrue behavior 50 + // 51 + WDF_TRI_STATE AutoForwardCleanupClose; 52 + 53 + // 54 + // Specify whether framework should create WDFFILEOBJECT and also 55 + // whether it can FsContexts fields in the WDM fileobject to store 56 + // WDFFILEOBJECT so that it can avoid table look up and improve perf. 57 + // 58 + WDF_FILEOBJECT_CLASS FileObjectClass; 59 + 60 + } WDFCX_FILEOBJECT_CONFIG, *PWDFCX_FILEOBJECT_CONFIG; 61 + 62 + typedef NTSTATUS 63 + (STDCALL *PFN_WDFCXDEVICE_WDM_IRP_PREPROCESS)( 64 + _In_ WDFDEVICE Device, 65 + _Inout_ PIRP Irp, 66 + _In_ PVOID DispatchContext); 67 + 68 + typedef PWDFCXDEVICE_INIT 69 + (STDCALL *PFN_WDFCXDEVICEINITALLOCATE)( 70 + _In_ PWDF_DRIVER_GLOBALS DriverGlobals, 71 + _In_ PWDFDEVICE_INIT DeviceInit); 72 + 73 + typedef NTSTATUS 74 + (STDCALL *PFN_WDFCXDEVICEINITASSIGNWDMIRPPREPROCESSCALLBACK) ( 75 + _In_ PWDF_DRIVER_GLOBALS DriverGlobals, 76 + _In_ PWDFCXDEVICE_INIT CxDeviceInit, 77 + _In_ PFN_WDFCXDEVICE_WDM_IRP_PREPROCESS EvtCxDeviceWdmIrpPreprocess, 78 + _In_ UCHAR MajorFunction, 79 + _When_(NumMinorFunctions > 0, _In_reads_bytes_(NumMinorFunctions)) 80 + _When_(NumMinorFunctions == 0, _In_opt_) 81 + PUCHAR MinorFunctions, 82 + _In_ ULONG NumMinorFunctions); 83 + 84 + typedef VOID 85 + (STDCALL *PFN_WDFCXDEVICEINITSETIOINCALLERCONTEXTCALLBACK)( 86 + _In_ PWDF_DRIVER_GLOBALS DriverGlobals, 87 + _In_ PWDFCXDEVICE_INIT CxDeviceInit, 88 + _In_ PFN_WDF_IO_IN_CALLER_CONTEXT EvtIoInCallerContext); 89 + 90 + typedef VOID 91 + (STDCALL *PFN_WDFCXDEVICEINITSETREQUESTATTRIBUTES)( 92 + _In_ PWDF_DRIVER_GLOBALS DriverGlobals, 93 + _In_ PWDFCXDEVICE_INIT CxDeviceInit, 94 + _In_ PWDF_OBJECT_ATTRIBUTES RequestAttributes); 95 + 96 + typedef VOID 97 + (STDCALL *PFN_WDFCXDEVICEINITSETFILEOBJECTCONFIG)( 98 + _In_ PWDF_DRIVER_GLOBALS DriverGlobals, 99 + _In_ PWDFCXDEVICE_INIT CxDeviceInit, 100 + _In_ PWDFCX_FILEOBJECT_CONFIG CxFileObjectConfig, 101 + _In_opt_ PWDF_OBJECT_ATTRIBUTES FileObjectAttributes); 102 + 103 + typedef VOID 104 + (STDCALL *PFN_WDFCXVERIFIERKEBUGCHECK)( 105 + _In_ PWDF_DRIVER_GLOBALS DriverGlobals, 106 + _In_opt_ WDFOBJECT Object, 107 + _In_ ULONG BugCheckCode, 108 + _In_ ULONG_PTR BugCheckParameter1, 109 + _In_ ULONG_PTR BugCheckParameter2, 110 + _In_ ULONG_PTR BugCheckParameter3, 111 + _In_ ULONG_PTR BugCheckParameter4); 112 + 113 + typedef WDFIOTARGET 114 + (STDCALL *PFN_WDFDEVICEGETSELFIOTARGET)( 115 + _In_ PWDF_DRIVER_GLOBALS DriverGlobals, 116 + _In_ WDFDEVICE Device); 117 + 118 + typedef VOID 119 + (STDCALL *PFN_WDFDEVICEINITALLOWSELFIOTARGET)( 120 + _In_ PWDF_DRIVER_GLOBALS DriverGlobals, 121 + _In_ PWDFDEVICE_INIT DeviceInit); 122 + 123 + typedef NTSTATUS 124 + (STDCALL *PFN_WDFIOTARGETSELFASSIGNDEFAULTIOQUEUE)( 125 + _In_ PWDF_DRIVER_GLOBALS DriverGlobals, 126 + _In_ WDFIOTARGET IoTarget, 127 + _In_ WDFQUEUE Queue); 128 + 129 + // some other random stuff 130 + 131 + typedef PVOID PFN_WDF_CLASS_EXTENSIONIN_BIND; 132 + typedef PVOID PFN_WDF_CLASS_EXTENSIONIN_UNBIND; 133 + typedef PVOID PFN_WDF_CLASS_EXPORT; 134 + typedef PVOID PFN_WDF_CLASS_LIBRARY_INITIALIZE; 135 + typedef PVOID PFN_WDF_CLASS_LIBRARY_DEINITIALIZE; 136 + typedef PVOID PFN_WDF_CLASS_LIBRARY_BIND_CLIENT; 137 + typedef PVOID PFN_WDF_CLASS_LIBRARY_UNBIND_CLIENT; 138 + typedef PVOID PFN_WDF_CLIENT_BIND_CLASS; 139 + typedef PVOID PFN_WDF_CLIENT_UNBIND_CLASS; 140 + 141 + #endif // _WDFCX_H_
+38
sdk/lib/drivers/wdf/wdfldr.h
··· 1 + /* 2 + * PROJECT: Kernel Mode Device Framework 3 + * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later) 4 + * PURPOSE: Missing headers (wdfldr.h) 5 + * COPYRIGHT: 2020 Victor Perevertkin (victor.perevertkin@reactos.org) 6 + */ 7 + 8 + // likely to be removed when the proper wdfldr.sys is ready 9 + 10 + #ifndef _WDFLDR_H_ 11 + #define _WDFLDR_H_ 12 + 13 + #ifdef __cplusplus 14 + extern "C" { 15 + #endif 16 + 17 + typedef struct _LIBRARY_MODULE* PLIBRARY_MODULE; 18 + typedef struct _WDF_LIBRARY_INFO* PWDF_LIBRARY_INFO; 19 + 20 + typedef ULONG WDF_MAJOR_VERSION; 21 + typedef ULONG WDF_MINOR_VERSION; 22 + typedef ULONG WDF_BUILD_NUMBER; 23 + typedef PVOID WDF_COMPONENT_GLOBALS, *PWDF_COMPONENT_GLOBALS; 24 + 25 + typedef struct _WDF_INTERFACE_HEADER { 26 + const GUID *InterfaceType; 27 + ULONG InterfaceSize; 28 + } WDF_INTERFACE_HEADER, *PWDF_INTERFACE_HEADER; 29 + 30 + typedef struct _WDF_BIND_INFO *PWDF_BIND_INFO; 31 + 32 + typedef NTSTATUS (STDCALL *PWDF_LDR_DIAGNOSTICS_VALUE_BY_NAME_AS_ULONG)(PUNICODE_STRING, PULONG); 33 + 34 + #ifdef __cplusplus 35 + } // extern "C" 36 + #endif 37 + 38 + #endif // _WDFLDR_H_