mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 19:52:59 +00:00
[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
This commit is contained in:
parent
8a978a179f
commit
1f377076d7
258 changed files with 4047 additions and 2387 deletions
|
@ -46,15 +46,15 @@ extern "C" {
|
|||
#include "mx.h"
|
||||
}
|
||||
|
||||
#include "FxMin.hpp"
|
||||
#include "fxmin.hpp"
|
||||
|
||||
#include "wdfmemory.h"
|
||||
#include "wdfrequest.h"
|
||||
#include "wdfdevice.h"
|
||||
#include "wdfdevicepri.h"
|
||||
#include "wdfiotargetpri.h"
|
||||
// #include "wdfdevicepri.h"
|
||||
// #include "wdfiotargetpri.h"
|
||||
#include "wdfwmi.h"
|
||||
#include "wdfChildList.h"
|
||||
#include "wdfchildlist.h"
|
||||
#include "wdfpdo.h"
|
||||
#include "wdffdo.h"
|
||||
#include "wdfiotarget.h"
|
||||
|
@ -62,12 +62,12 @@ extern "C" {
|
|||
#include "wdfcx.h"
|
||||
#include "wdfio.h"
|
||||
#include "wdfqueryinterface.h"
|
||||
#include "wdftriage.h"
|
||||
// #include "wdftriage.h"
|
||||
|
||||
#if (FX_CORE_MODE == FX_CORE_USER_MODE)
|
||||
#include "FxIrpUm.hpp"
|
||||
#include "fxirpum.hpp"
|
||||
#else
|
||||
#include "FxIrpKm.hpp"
|
||||
#include "fxirpkm.hpp"
|
||||
#endif
|
||||
|
||||
// <FxSystemWorkItem.hpp>
|
||||
|
@ -77,92 +77,92 @@ VOID
|
|||
IN PVOID Parameter
|
||||
);
|
||||
|
||||
#include "FxIrpQueue.hpp"
|
||||
#include "fxirpqueue.hpp"
|
||||
|
||||
|
||||
// </FxSystemWorkItem.hpp>
|
||||
|
||||
|
||||
#include "FxProbeAndLock.h"
|
||||
#include "FxPackage.hpp"
|
||||
#include "FxCollection.hpp"
|
||||
#include "FxDeviceInitShared.hpp"
|
||||
#include "fxprobeandlock.h"
|
||||
#include "fxpackage.hpp"
|
||||
#include "fxcollection.hpp"
|
||||
#include "fxdeviceinitshared.hpp"
|
||||
|
||||
#include "IfxMemory.hpp"
|
||||
#include "FxCallback.hpp"
|
||||
#include "FxRequestContext.hpp"
|
||||
#include "FxRequestContextTypes.h"
|
||||
#include "FxRequestBase.hpp"
|
||||
#include "FxMemoryObject.hpp"
|
||||
#include "FxMemoryBuffer.hpp"
|
||||
#include "ifxmemory.hpp"
|
||||
#include "fxcallback.hpp"
|
||||
#include "fxrequestcontext.hpp"
|
||||
#include "fxrequestcontexttypes.h"
|
||||
#include "fxrequestbase.hpp"
|
||||
#include "fxmemoryobject.hpp"
|
||||
#include "fxmemorybuffer.hpp"
|
||||
|
||||
#include "FxMemoryBufferFromPool.hpp"
|
||||
#include "fxmemorybufferfrompool.hpp"
|
||||
|
||||
#include "FxMemoryBufferPreallocated.hpp"
|
||||
#include "fxmemorybufferpreallocated.hpp"
|
||||
|
||||
#include "FxTransactionedList.hpp"
|
||||
#include "fxtransactionedlist.hpp"
|
||||
|
||||
//
|
||||
// MERGE temp: We may not need these include files here,
|
||||
// temporarily including them to verify they compile in shared code
|
||||
//
|
||||
#include "FxRequestValidateFunctions.hpp"
|
||||
#include "FxRequestCallbacks.hpp"
|
||||
#include "fxrequestvalidatefunctions.hpp"
|
||||
#include "fxrequestcallbacks.hpp"
|
||||
|
||||
// support
|
||||
#include "StringUtil.hpp"
|
||||
#include "FxAutoString.hpp"
|
||||
#include "FxString.hpp"
|
||||
#include "FxDeviceText.hpp"
|
||||
#include "FxCallback.hpp"
|
||||
#include "FxDisposeList.hpp"
|
||||
#include "FxSystemThread.hpp"
|
||||
#include "stringutil.hpp"
|
||||
#include "fxautostring.hpp"
|
||||
#include "fxstring.hpp"
|
||||
#include "fxdevicetext.hpp"
|
||||
#include "fxcallback.hpp"
|
||||
#include "fxdisposelist.hpp"
|
||||
#include "fxsystemthread.hpp"
|
||||
|
||||
#include "FxIrpPreprocessInfo.hpp"
|
||||
#include "FxPnpCallbacks.hpp"
|
||||
#include "fxirppreprocessinfo.hpp"
|
||||
#include "fxpnpcallbacks.hpp"
|
||||
|
||||
// device init
|
||||
#include "FxCxDeviceInit.hpp"
|
||||
#include "FxCxDeviceInfo.hpp"
|
||||
#include "FxDeviceInit.hpp"
|
||||
#include "fxcxdeviceinit.hpp"
|
||||
#include "fxcxdeviceinfo.hpp"
|
||||
#include "fxdeviceinit.hpp"
|
||||
|
||||
#include "FxDeviceToMxInterface.hpp"
|
||||
#include "fxdevicetomxinterface.hpp"
|
||||
|
||||
// request
|
||||
#include "FxRequestMemory.hpp"
|
||||
#include "FxRequest.hpp"
|
||||
#include "FxRequestBuffer.hpp"
|
||||
#include "FxSyncRequest.hpp"
|
||||
#include "fxrequestmemory.hpp"
|
||||
#include "fxrequest.hpp"
|
||||
#include "fxrequestbuffer.hpp"
|
||||
#include "fxsyncrequest.hpp"
|
||||
|
||||
// io target
|
||||
#include "FxIoTarget.hpp"
|
||||
#include "FxIoTargetSelf.hpp"
|
||||
#include "fxiotarget.hpp"
|
||||
#include "fxiotargetself.hpp"
|
||||
|
||||
#include "FxSystemWorkItem.hpp"
|
||||
#include "FxCallbackMutexLock.hpp"
|
||||
#include "FxDriver.hpp"
|
||||
#include "fxsystemworkitem.hpp"
|
||||
#include "fxcallbackmutexlock.hpp"
|
||||
#include "fxdriver.hpp"
|
||||
|
||||
#include "FxDeviceInterface.hpp"
|
||||
#include "FxQueryInterface.hpp"
|
||||
#include "fxdeviceinterface.hpp"
|
||||
#include "fxqueryinterface.hpp"
|
||||
|
||||
#include "FxCallbackSpinLock.hpp"
|
||||
#include "FxDefaultIrpHandler.hpp"
|
||||
#include "FxWmiIrpHandler.hpp"
|
||||
#include "fxcallbackspinlock.hpp"
|
||||
#include "fxdefaultirphandler.hpp"
|
||||
#include "fxwmiirphandler.hpp"
|
||||
|
||||
// packages
|
||||
#include "FxPkgIo.hpp"
|
||||
#include "FxPkgPnp.hpp"
|
||||
#include "FxPkgFdo.hpp"
|
||||
#include "FxPkgPdo.hpp"
|
||||
#include "FxPkgGeneral.hpp"
|
||||
#include "FxFileObject.hpp"
|
||||
#include "FxIoQueue.hpp"
|
||||
#include "FxDevice.hpp"
|
||||
#include "FxTelemetry.hpp"
|
||||
#include "fxpkgio.hpp"
|
||||
#include "fxpkgpnp.hpp"
|
||||
#include "fxpkgfdo.hpp"
|
||||
#include "fxpkgpdo.hpp"
|
||||
#include "fxpkggeneral.hpp"
|
||||
#include "fxfileobject.hpp"
|
||||
#include "fxioqueue.hpp"
|
||||
#include "fxdevice.hpp"
|
||||
#include "fxtelemetry.hpp"
|
||||
|
||||
#include "FxChildList.hpp"
|
||||
#include "fxchildlist.hpp"
|
||||
|
||||
#include "FxLookasideList.hpp"
|
||||
#include "fxlookasidelist.hpp"
|
||||
|
||||
/*#if FX_IS_KERNEL_MODE
|
||||
#include "wdfrequest.h"
|
||||
|
|
|
@ -26,7 +26,7 @@ Revision History:
|
|||
#include "coreprivshared.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "FxCxDeviceInit.tmh"
|
||||
// #include "FxCxDeviceInit.tmh"
|
||||
}
|
||||
|
||||
WDFCXDEVICE_INIT::WDFCXDEVICE_INIT()
|
||||
|
|
|
@ -28,7 +28,7 @@ Revision History:
|
|||
#include "coreprivshared.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "FxCxDeviceInitApi.tmh"
|
||||
// #include "FxCxDeviceInitApi.tmh"
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
@ -25,7 +25,7 @@ Revision History:
|
|||
#include "coreprivshared.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "FxDevice.tmh"
|
||||
// #include "FxDevice.tmh"
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -681,14 +681,12 @@ Return Value:
|
|||
PFX_DRIVER_GLOBALS pGlobals;
|
||||
PLIST_ENTRY next;
|
||||
NTSTATUS status;
|
||||
BOOLEAN wmiTracing;
|
||||
size_t reqCtxSize;
|
||||
PWDFCXDEVICE_INIT cxInit;
|
||||
CCHAR cxIndex;
|
||||
FxCxDeviceInfo* cxDeviceInfo;
|
||||
|
||||
pGlobals = GetDriverGlobals();
|
||||
wmiTracing = FALSE;
|
||||
m_Exclusive = DeviceInit->Exclusive;
|
||||
cxIndex = 0;
|
||||
|
||||
|
@ -832,11 +830,11 @@ Return Value:
|
|||
|
||||
|
||||
|
||||
m_PkgWmi = new(pGlobals) FxWmiIrpHandler(pGlobals, this);
|
||||
if (m_PkgWmi == NULL) {
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
}
|
||||
InstallPackage(m_PkgWmi);
|
||||
// m_PkgWmi = new(pGlobals) FxWmiIrpHandler(pGlobals, this); __REACTOS__
|
||||
// if (m_PkgWmi == NULL) {
|
||||
// return STATUS_INSUFFICIENT_RESOURCES;
|
||||
// }
|
||||
// InstallPackage(m_PkgWmi);
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -1019,7 +1017,8 @@ FxDevice::CreateDevice(
|
|||
// administrator complete control over the device. No other users
|
||||
// may access the device.
|
||||
//
|
||||
pSddl = (PUNICODE_STRING) &SDDL_DEVOBJ_SYS_ALL_ADM_ALL;
|
||||
// pSddl = (PUNICODE_STRING) &SDDL_DEVOBJ_SYS_ALL_ADM_ALL;
|
||||
pSddl = NULL; // __REACTOS__ : wdmsec.lib is not supported
|
||||
}
|
||||
|
||||
status = Mx::MxCreateDeviceSecure(
|
||||
|
@ -1217,7 +1216,7 @@ Return Value:
|
|||
// we delete the device object, otherwise we can bugcheck when
|
||||
// running under driver verifier.
|
||||
//
|
||||
m_PkgWmi->Deregister();
|
||||
// m_PkgWmi->Deregister(); __REACTOS__
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -1236,7 +1235,7 @@ Return Value:
|
|||
}
|
||||
}
|
||||
|
||||
__super::DeleteObject();
|
||||
FxDeviceBase::DeleteObject(); // __super call
|
||||
}
|
||||
|
||||
BOOLEAN
|
||||
|
@ -1262,7 +1261,7 @@ FxDevice::Dispose(
|
|||
// valid to reference the pointer because there is an explicit
|
||||
// reference on the object that was taken when we created this object.
|
||||
//
|
||||
m_PkgWmi->Deregister();
|
||||
// m_PkgWmi->Deregister(); __REACTOS__
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -1289,7 +1288,7 @@ FxDevice::Dispose(
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
return __super::Dispose();
|
||||
return FxDeviceBase::Dispose(); // __super call
|
||||
}
|
||||
|
||||
_Must_inspect_result_
|
||||
|
@ -1456,7 +1455,6 @@ PreprocessIrp(
|
|||
)
|
||||
{
|
||||
NTSTATUS status;
|
||||
MdDeviceObject devObj;
|
||||
UCHAR major, minor;
|
||||
FxIrp irp(Irp);
|
||||
|
||||
|
@ -1468,7 +1466,6 @@ PreprocessIrp(
|
|||
// EvtDevicePreprocess returns. To not touch freed pool, capture all
|
||||
// values we will need before preprocessing.
|
||||
//
|
||||
devObj = Device->GetDeviceObject();
|
||||
|
||||
if (Info->ClassExtension == FALSE) {
|
||||
status = Info->Dispatch[major].EvtDevicePreprocess( Device->GetHandle(),
|
||||
|
@ -1518,7 +1515,7 @@ DispatchWorker(
|
|||
next = (PLIST_ENTRY)DispatchContext;
|
||||
|
||||
ASSERT(NULL != DispatchContext &&
|
||||
((UCHAR)DispatchContext & FX_IN_DISPATCH_CALLBACK) == 0);
|
||||
((UCHAR)(ULONG_PTR)DispatchContext & FX_IN_DISPATCH_CALLBACK) == 0);
|
||||
|
||||
//
|
||||
// Check for any driver/class-extensions' preprocess requirements.
|
||||
|
@ -1762,7 +1759,7 @@ FxDevice::QueryInterface(
|
|||
break;
|
||||
|
||||
default:
|
||||
return __super::QueryInterface(Params);
|
||||
return FxDeviceBase::QueryInterface(Params); // __super call
|
||||
}
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
|
|
|
@ -26,7 +26,7 @@ Revision History:
|
|||
#include "fxiotarget.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "FxDeviceApi.tmh"
|
||||
// #include "FxDeviceApi.tmh"
|
||||
}
|
||||
|
||||
struct FxOffsetAndName {
|
||||
|
@ -43,6 +43,7 @@ extern "C" {
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
WDFDRIVER
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceGetDriver)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -83,6 +84,7 @@ Returns:
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
WDFIOTARGET
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceGetIoTarget)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -111,6 +113,7 @@ WDFEXPORT(WdfDeviceGetIoTarget)(
|
|||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
WDFIOTARGET
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceGetSelfIoTarget)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -160,6 +163,7 @@ Returns:
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceRetrieveDeviceName)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -208,6 +212,7 @@ WDFEXPORT(WdfDeviceRetrieveDeviceName)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceSetCharacteristics)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -234,6 +239,7 @@ WDFEXPORT(WdfDeviceSetCharacteristics)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
ULONG
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceGetCharacteristics)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -258,6 +264,7 @@ WDFEXPORT(WdfDeviceGetCharacteristics)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
ULONG
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceGetAlignmentRequirement)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -282,6 +289,7 @@ WDFEXPORT(WdfDeviceGetAlignmentRequirement)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceSetAlignmentRequirement)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -308,6 +316,7 @@ WDFEXPORT(WdfDeviceSetAlignmentRequirement)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
WDF_DEVICE_PNP_STATE
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceGetDevicePnpState)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -329,6 +338,7 @@ WDFEXPORT(WdfDeviceGetDevicePnpState)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
WDF_DEVICE_POWER_STATE
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceGetDevicePowerState)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -350,6 +360,7 @@ WDFEXPORT(WdfDeviceGetDevicePowerState)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
WDF_DEVICE_POWER_POLICY_STATE
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceGetDevicePowerPolicyState)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -372,6 +383,7 @@ WDFEXPORT(WdfDeviceGetDevicePowerPolicyState)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceAssignS0IdleSettings)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -484,6 +496,7 @@ WDFEXPORT(WdfDeviceAssignS0IdleSettings)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceAssignSxWakeSettings)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -579,6 +592,7 @@ WDFEXPORT(WdfDeviceAssignSxWakeSettings)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceOpenRegistryKey)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -635,6 +649,7 @@ WDFEXPORT(WdfDeviceOpenRegistryKey)(
|
|||
_Must_inspect_result_
|
||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceOpenDevicemapKey) (
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -727,6 +742,7 @@ WDFEXPORT(WdfDeviceOpenDevicemapKey) (
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceGetDeviceState)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -765,6 +781,7 @@ WDFEXPORT(WdfDeviceGetDeviceState)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceSetDeviceState)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -846,6 +863,7 @@ WDFEXPORT(WdfDeviceSetDeviceState)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceCreate)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -957,6 +975,7 @@ WDFEXPORT(WdfDeviceCreate)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceCreateSymbolicLink)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -969,7 +988,6 @@ WDFEXPORT(WdfDeviceCreateSymbolicLink)(
|
|||
DDI_ENTRY();
|
||||
|
||||
PFX_DRIVER_GLOBALS pFxDriverGlobals;
|
||||
PUNICODE_STRING pName;
|
||||
FxAutoString pdoName;
|
||||
FxDevice* pDevice;
|
||||
NTSTATUS status;
|
||||
|
@ -979,7 +997,6 @@ WDFEXPORT(WdfDeviceCreateSymbolicLink)(
|
|||
FX_TYPE_DEVICE,
|
||||
(PVOID *) &pDevice,
|
||||
&pFxDriverGlobals);
|
||||
pName = NULL;
|
||||
|
||||
FxPointerNotNull(pFxDriverGlobals, SymbolicLinkName);
|
||||
|
||||
|
@ -1022,6 +1039,7 @@ WDFEXPORT(WdfDeviceCreateSymbolicLink)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceQueryProperty)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1109,6 +1127,7 @@ Return Value:
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceAllocAndQueryProperty)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1201,6 +1220,7 @@ Return Value:
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceSetStaticStopRemove)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1237,6 +1257,7 @@ WDFEXPORT(WdfDeviceSetStaticStopRemove)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceSetFailed)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1368,6 +1389,7 @@ _Must_inspect_result_
|
|||
__drv_when(WaitForD0 == 0, __drv_maxIRQL(DISPATCH_LEVEL))
|
||||
__drv_when(WaitForD0 != 0, __drv_maxIRQL(PASSIVE_LEVEL))
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceStopIdleNoTrack)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1395,6 +1417,7 @@ _Must_inspect_result_
|
|||
__drv_when(WaitForD0 == 0, __drv_maxIRQL(DISPATCH_LEVEL))
|
||||
__drv_when(WaitForD0 != 0, __drv_maxIRQL(PASSIVE_LEVEL))
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceStopIdleActual)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1426,6 +1449,7 @@ WDFEXPORT(WdfDeviceStopIdleActual)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceResumeIdleNoTrack)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1444,6 +1468,7 @@ WDFEXPORT(WdfDeviceResumeIdleNoTrack)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceResumeIdleActual)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1468,6 +1493,7 @@ WDFEXPORT(WdfDeviceResumeIdleActual)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceSetPnpCapabilities)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1565,6 +1591,7 @@ Return Value:
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceSetPowerCapabilities)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1734,6 +1761,7 @@ Return Value:
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceConfigureRequestDispatching)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1865,6 +1893,7 @@ Returns:
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
WDFQUEUE
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceGetDefaultQueue)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1927,6 +1956,7 @@ Returns:
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceEnqueueRequest)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2002,6 +2032,7 @@ Return Value:
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
POWER_ACTION
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceGetSystemPowerAction)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2055,6 +2086,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(APC_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceQueryPropertyEx)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2186,6 +2218,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(APC_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceAllocAndQueryPropertyEx)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2303,6 +2336,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(APC_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceAssignProperty)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2408,6 +2442,7 @@ _Must_inspect_result_
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceConfigureWdmIrpDispatchCallback)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
|
|
@ -25,7 +25,7 @@ Revision History:
|
|||
#include "coreprivshared.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "FxDeviceBase.tmh"
|
||||
// #include "FxDeviceBase.tmh"
|
||||
}
|
||||
|
||||
FxDeviceBase::FxDeviceBase(
|
||||
|
@ -83,7 +83,7 @@ FxDeviceBase::QueryInterface(
|
|||
break;
|
||||
|
||||
default:
|
||||
return __super::QueryInterface(Params);
|
||||
return FxNonPagedObject::QueryInterface(Params); // __super call
|
||||
}
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
|
|
|
@ -25,13 +25,14 @@ Revision History:
|
|||
#include "coreprivshared.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "FxDeviceControlAPI.tmh"
|
||||
// #include "FxDeviceControlAPI.tmh"
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfControlFinishInitializing)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -51,7 +52,7 @@ WDFEXPORT(WdfControlFinishInitializing)(
|
|||
MxDeviceObject device(pDevice->GetDeviceObject());
|
||||
|
||||
if (pDevice->IsLegacy()) {
|
||||
pDevice->m_PkgWmi->Register();
|
||||
// pDevice->m_PkgWmi->Register(); __REACTOS__
|
||||
device.SetFlags(device.GetFlags() & ~DO_DEVICE_INITIALIZING);
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -24,7 +24,7 @@ Revision History:
|
|||
#include "coreprivshared.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "FxDeviceInit.tmh"
|
||||
// #include "FxDeviceInit.tmh"
|
||||
}
|
||||
|
||||
WDFDEVICE_INIT::WDFDEVICE_INIT(
|
||||
|
|
|
@ -25,7 +25,7 @@ Revision History:
|
|||
#include "coreprivshared.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "FxDeviceInitApi.tmh"
|
||||
// #include "FxDeviceInitApi.tmh"
|
||||
}
|
||||
|
||||
typedef struct _WDF_PNPPOWER_EVENT_CALLBACKS_V1_9 {
|
||||
|
@ -137,6 +137,7 @@ extern "C" {
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitFree)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -155,6 +156,7 @@ WDFEXPORT(WdfDeviceInitFree)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitSetIoType)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -179,6 +181,7 @@ WDFEXPORT(WdfDeviceInitSetIoType)(
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitSetIoTypeEx)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -211,6 +214,7 @@ WDFEXPORT(WdfDeviceInitSetIoTypeEx)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitSetExclusive)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -229,6 +233,7 @@ WDFEXPORT(WdfDeviceInitSetExclusive)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitSetDeviceType)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -247,6 +252,7 @@ WDFEXPORT(WdfDeviceInitSetDeviceType)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitSetPowerNotPageable)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -263,6 +269,7 @@ WDFEXPORT(WdfDeviceInitSetPowerNotPageable)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitSetPowerPageable)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -279,6 +286,7 @@ WDFEXPORT(WdfDeviceInitSetPowerPageable)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitSetPowerInrush)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -300,6 +308,7 @@ WDFEXPORT(WdfDeviceInitSetPowerInrush)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitAssignName)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -351,6 +360,7 @@ WDFEXPORT(WdfDeviceInitAssignName)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitSetCharacteristics)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -385,6 +395,7 @@ WDFEXPORT(WdfDeviceInitSetCharacteristics)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitSetFileObjectConfig)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -555,6 +566,7 @@ Returns:
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitSetRequestAttributes)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -595,6 +607,7 @@ WDFEXPORT(WdfDeviceInitSetRequestAttributes)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitAssignSDDLString)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -659,6 +672,7 @@ WDFEXPORT(WdfDeviceInitAssignSDDLString)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitSetDeviceClass)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -685,6 +699,7 @@ WDFEXPORT(WdfDeviceInitSetDeviceClass)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitSetPnpPowerEventCallbacks)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -748,6 +763,7 @@ WDFEXPORT(WdfDeviceInitSetPnpPowerEventCallbacks)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitSetPowerPolicyEventCallbacks)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -809,6 +825,7 @@ WDFEXPORT(WdfDeviceInitSetPowerPolicyEventCallbacks)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitSetPowerPolicyOwnership)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -828,6 +845,7 @@ WDFEXPORT(WdfDeviceInitSetPowerPolicyOwnership)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitRegisterPnpStateChangeCallback)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -907,6 +925,7 @@ WDFEXPORT(WdfDeviceInitRegisterPnpStateChangeCallback)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitRegisterPowerStateChangeCallback)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -987,6 +1006,7 @@ WDFEXPORT(WdfDeviceInitRegisterPowerStateChangeCallback)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitRegisterPowerPolicyStateChangeCallback)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1068,6 +1088,7 @@ _Must_inspect_result_
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitAssignWdmIrpPreprocessCallback)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1168,6 +1189,7 @@ WDFEXPORT(WdfDeviceInitAssignWdmIrpPreprocessCallback)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitSetIoInCallerContextCallback)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1222,6 +1244,7 @@ Return Value:
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitSetRemoveLockOptions)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1287,6 +1310,7 @@ Done:
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitSetReleaseHardwareOrderOnFailure)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1317,6 +1341,7 @@ WDFEXPORT(WdfDeviceInitSetReleaseHardwareOrderOnFailure)(
|
|||
|
||||
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceInitAllowSelfIoTarget)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1358,6 +1383,7 @@ Returns:
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
PDEVICE_OBJECT
|
||||
STDCALL
|
||||
WDFEXPORT(WdfFdoInitWdmGetPhysicalDevice)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1384,6 +1410,7 @@ WDFEXPORT(WdfFdoInitWdmGetPhysicalDevice)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfFdoInitOpenRegistryKey)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1435,6 +1462,7 @@ WDFEXPORT(WdfFdoInitOpenRegistryKey)(
|
|||
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfFdoInitSetFilter)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1468,6 +1496,7 @@ WDFEXPORT(WdfFdoInitSetFilter)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfFdoInitQueryProperty)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1544,6 +1573,7 @@ Return Value:
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfFdoInitAllocAndQueryProperty)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1627,6 +1657,7 @@ Return Value:
|
|||
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfFdoInitSetEventCallbacks)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1688,6 +1719,7 @@ WDFEXPORT(WdfFdoInitSetEventCallbacks)(
|
|||
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfFdoInitSetDefaultChildListConfig)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1754,6 +1786,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfFdoInitQueryPropertyEx)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1871,6 +1904,7 @@ _Must_inspect_result_
|
|||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfFdoInitAllocAndQueryPropertyEx)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1995,6 +2029,7 @@ Return Value:
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
PWDFDEVICE_INIT
|
||||
STDCALL
|
||||
WDFEXPORT(WdfPdoInitAllocate)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2050,6 +2085,7 @@ WDFEXPORT(WdfPdoInitAllocate)(
|
|||
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfPdoInitSetEventCallbacks)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2096,6 +2132,7 @@ WDFEXPORT(WdfPdoInitSetEventCallbacks)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfPdoInitAssignDeviceID)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2154,6 +2191,7 @@ WDFEXPORT(WdfPdoInitAssignDeviceID)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfPdoInitAssignInstanceID)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2212,6 +2250,7 @@ WDFEXPORT(WdfPdoInitAssignInstanceID)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfPdoInitAddHardwareID)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2277,6 +2316,7 @@ WDFEXPORT(WdfPdoInitAddHardwareID)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfPdoInitAddCompatibleID)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2342,6 +2382,7 @@ WDFEXPORT(WdfPdoInitAddCompatibleID)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfPdoInitAssignContainerID)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2402,6 +2443,7 @@ WDFEXPORT(WdfPdoInitAssignContainerID)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfPdoInitAddDeviceText)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2505,6 +2547,7 @@ Done:
|
|||
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfPdoInitSetDefaultLocale)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2540,6 +2583,7 @@ WDFEXPORT(WdfPdoInitSetDefaultLocale)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfPdoInitAssignRawDevice)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2583,6 +2627,7 @@ WDFEXPORT(WdfPdoInitAssignRawDevice)(
|
|||
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfPdoInitAllowForwardingRequestToParent)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2628,6 +2673,7 @@ WDFEXPORT(WdfPdoInitAllowForwardingRequestToParent)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
PWDFDEVICE_INIT
|
||||
STDCALL
|
||||
WDFEXPORT(WdfControlDeviceInitAllocate)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2666,6 +2712,7 @@ WDFEXPORT(WdfControlDeviceInitAllocate)(
|
|||
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfControlDeviceInitSetShutdownNotification)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
|
|
@ -31,11 +31,11 @@ Revision History:
|
|||
|
||||
#include "coreprivshared.hpp"
|
||||
|
||||
#include "FxDisposeList.hpp"
|
||||
#include "fxdisposelist.hpp"
|
||||
|
||||
// Tracing support
|
||||
extern "C" {
|
||||
#include "FxDisposeList.tmh"
|
||||
// #include "FxDisposeList.tmh"
|
||||
}
|
||||
|
||||
FxDisposeList::FxDisposeList(
|
||||
|
@ -121,7 +121,7 @@ FxDisposeList::Dispose(
|
|||
|
||||
ASSERT(m_List.Next == NULL);
|
||||
|
||||
__super::Dispose();
|
||||
FxNonPagedObject::Dispose(); // __super call
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ Revision History:
|
|||
|
||||
// Tracing support
|
||||
extern "C" {
|
||||
#include "FxDriver.tmh"
|
||||
// #include "FxDriver.tmh"
|
||||
}
|
||||
|
||||
FxDriver::FxDriver(
|
||||
|
@ -133,7 +133,7 @@ FxDriver::Dispose(
|
|||
m_DisposeList->WaitForEmpty();
|
||||
}
|
||||
|
||||
return __super::Dispose();
|
||||
return FxNonPagedObject::Dispose(); // __super call
|
||||
}
|
||||
|
||||
VOID
|
||||
|
|
|
@ -27,10 +27,10 @@ Revision History:
|
|||
// Tracing support
|
||||
extern "C" {
|
||||
#include <ntverp.h>
|
||||
#include "FxDriverApi.tmh"
|
||||
// #include "FxDriverApi.tmh"
|
||||
}
|
||||
|
||||
#include "FxTelemetry.hpp"
|
||||
#include "fxtelemetry.hpp"
|
||||
|
||||
//
|
||||
// extern the whole file
|
||||
|
@ -44,6 +44,7 @@ extern "C" {
|
|||
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
PWSTR
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDriverGetRegistryPath)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -71,9 +72,13 @@ WDFEXPORT(WdfDriverGetRegistryPath)(
|
|||
return pDriver->GetRegistryPathUnicodeString()->Buffer;
|
||||
}
|
||||
|
||||
VOID
|
||||
RosInitWdf();
|
||||
|
||||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDriverCreate)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -98,6 +103,9 @@ WDFEXPORT(WdfDriverCreate)(
|
|||
const LONG validFlags = WdfDriverInitNonPnpDriver |
|
||||
WdfDriverInitNoDispatchOverride;
|
||||
|
||||
RosInitWdf();
|
||||
DriverGlobals = WdfDriverGlobals;
|
||||
|
||||
hDriver = NULL;
|
||||
pFxDriverGlobals = GetFxDriverGlobals(DriverGlobals);
|
||||
|
||||
|
@ -302,6 +310,7 @@ WDFEXPORT(WdfDriverCreate)(
|
|||
*Driver = hDriver;
|
||||
}
|
||||
|
||||
#ifndef __REACTOS__
|
||||
if (FX_TELEMETRY_ENABLED(g_TelemetryProvider, pFxDriverGlobals)) {
|
||||
FxAutoString imageName;
|
||||
|
||||
|
@ -329,6 +338,7 @@ WDFEXPORT(WdfDriverCreate)(
|
|||
imageName.m_UnicodeString.Buffer,
|
||||
pVersionStr);
|
||||
}
|
||||
#endif // __REACTOS__
|
||||
}
|
||||
else {
|
||||
if (pDriver != NULL) {
|
||||
|
@ -344,6 +354,7 @@ WDFEXPORT(WdfDriverCreate)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDriverRegisterTraceInfo)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -368,6 +379,7 @@ WDFEXPORT(WdfDriverRegisterTraceInfo)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDriverRetrieveVersionString)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -442,6 +454,7 @@ WDFEXPORT(WdfDriverRetrieveVersionString)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDriverIsVersionAvailable)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
|
|
@ -27,7 +27,7 @@ Revision History:
|
|||
|
||||
// Tracing support
|
||||
extern "C" {
|
||||
#include "FxFileObject.tmh"
|
||||
// #include "FxFileObject.tmh"
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -501,7 +501,7 @@ Return Value:
|
|||
break;
|
||||
|
||||
default:
|
||||
return __super::QueryInterface(Params);
|
||||
return FxNonPagedObject::QueryInterface(Params); // __super call
|
||||
}
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
|
|
|
@ -24,10 +24,10 @@ Revision History:
|
|||
--*/
|
||||
|
||||
#include "coreprivshared.hpp"
|
||||
#include "FxFileObject.hpp"
|
||||
#include "fxfileobject.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "FxFileObjectApi.tmh"
|
||||
// #include "FxFileObjectApi.tmh"
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -37,6 +37,7 @@ extern "C" {
|
|||
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
PUNICODE_STRING
|
||||
STDCALL
|
||||
WDFEXPORT(WdfFileObjectGetFileName)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -93,6 +94,7 @@ Return Value:
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
ULONG
|
||||
STDCALL
|
||||
WDFEXPORT(WdfFileObjectGetFlags)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -139,6 +141,7 @@ Return Value:
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
WDFDEVICE
|
||||
STDCALL
|
||||
WDFEXPORT(WdfFileObjectGetDevice)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
|
|
@ -32,7 +32,7 @@ Revision History:
|
|||
|
||||
// Tracing support
|
||||
extern "C" {
|
||||
#include "FxIrpQueue.tmh"
|
||||
// #include "FxIrpQueue.tmh"
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
@ -22,7 +22,7 @@ Revision History:
|
|||
--*/
|
||||
|
||||
#include "coreprivshared.hpp"
|
||||
#include "FxLookasideList.hpp"
|
||||
#include "fxlookasidelist.hpp"
|
||||
|
||||
FxLookasideList::FxLookasideList(
|
||||
__in PFX_DRIVER_GLOBALS FxDriverGlobals,
|
||||
|
|
|
@ -22,11 +22,11 @@ Revision History:
|
|||
--*/
|
||||
|
||||
#include "coreprivshared.hpp"
|
||||
#include "FxNPagedLookasideList.hpp"
|
||||
#include "FxPagedLookasideList.hpp"
|
||||
#include "fxnpagedlookasidelist.hpp"
|
||||
#include "fxpagedlookasidelist.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "FxLookasideListAPI.tmh"
|
||||
// #include "FxLookasideListAPI.tmh"
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
|
@ -36,6 +36,7 @@ __drv_when(PoolType == 1 || PoolType == 257, __drv_maxIRQL(APC_LEVEL))
|
|||
__drv_when(PoolType == 0 || PoolType == 256, __drv_maxIRQL(DISPATCH_LEVEL))
|
||||
NTSTATUS
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfLookasideListCreate)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -235,6 +236,7 @@ _Must_inspect_result_
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfMemoryCreateFromLookaside)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
|
|
@ -21,10 +21,10 @@ Revision History:
|
|||
--*/
|
||||
|
||||
#include "coreprivshared.hpp"
|
||||
#include "FxMemoryBuffer.hpp"
|
||||
#include "fxmemorybuffer.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "FxMemoryBuffer.tmh"
|
||||
// #include "FxMemoryBuffer.tmh"
|
||||
}
|
||||
|
||||
_Must_inspect_result_
|
||||
|
|
|
@ -22,10 +22,10 @@ Revision History:
|
|||
--*/
|
||||
|
||||
#include "coreprivshared.hpp"
|
||||
#include "FxMemoryBuffer.hpp"
|
||||
#include "fxmemorybuffer.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "FxMemoryBufferAPI.tmh"
|
||||
// #include "FxMemoryBufferAPI.tmh"
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
|
@ -35,6 +35,7 @@ __drv_when(PoolType == 1 || PoolType == 257, __drv_maxIRQL(APC_LEVEL))
|
|||
__drv_when(PoolType == 0 || PoolType == 256, __drv_maxIRQL(DISPATCH_LEVEL))
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfMemoryCreate)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -164,6 +165,7 @@ Return Value:
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
PVOID
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfMemoryGetBuffer)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -207,6 +209,7 @@ _Must_inspect_result_
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfMemoryCopyToBuffer)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -285,6 +288,7 @@ _Must_inspect_result_
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfMemoryCopyFromBuffer)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
|
|
@ -22,8 +22,8 @@ Revision History:
|
|||
--*/
|
||||
|
||||
#include "coreprivshared.hpp"
|
||||
#include "FxNPagedLookasideList.hpp"
|
||||
#include "FxMemoryBufferFromLookaside.hpp"
|
||||
#include "fxnpagedlookasidelist.hpp"
|
||||
#include "fxmemorybufferfromlookaside.hpp"
|
||||
|
||||
FxMemoryBufferFromLookaside::FxMemoryBufferFromLookaside(
|
||||
__in PFX_DRIVER_GLOBALS FxDriverGlobals,
|
||||
|
@ -215,7 +215,7 @@ Return Value:
|
|||
// within the destructor b/c then all parent objects would be destructing on
|
||||
// freed pool.
|
||||
//
|
||||
FxMemoryBufferFromLookaside::~FxMemoryBufferFromLookaside();
|
||||
this->~FxMemoryBufferFromLookaside();
|
||||
|
||||
//
|
||||
// After FxLookaside::Reclaim, this no longer points to valid memory so we
|
||||
|
@ -268,7 +268,7 @@ FxMemoryBufferFromPoolLookaside::SelfDestruct(
|
|||
//
|
||||
// Free the object itself
|
||||
//
|
||||
__super::SelfDestruct();
|
||||
FxMemoryBufferFromLookaside::SelfDestruct(); // __super call
|
||||
}
|
||||
|
||||
_Must_inspect_result_
|
||||
|
|
|
@ -21,7 +21,7 @@ Revision History:
|
|||
--*/
|
||||
|
||||
#include "coreprivshared.hpp"
|
||||
#include "FxMemoryBufferPreallocated.hpp"
|
||||
#include "fxmemorybufferpreallocated.hpp"
|
||||
|
||||
FxMemoryBufferPreallocated::FxMemoryBufferPreallocated(
|
||||
_In_ PFX_DRIVER_GLOBALS FxDriverGlobals,
|
||||
|
@ -125,7 +125,7 @@ FxMemoryBufferPreallocated::QueryInterface(
|
|||
return STATUS_SUCCESS;
|
||||
}
|
||||
else {
|
||||
return __super::QueryInterface(Params);
|
||||
return FxMemoryObject::QueryInterface(Params); // __super call
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -22,10 +22,10 @@ Revision History:
|
|||
--*/
|
||||
|
||||
#include "coreprivshared.hpp"
|
||||
#include "FxMemoryBufferPreallocated.hpp"
|
||||
#include "fxmemorybufferpreallocated.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "FxMemoryBufferPreallocatedAPI.tmh"
|
||||
// #include "FxMemoryBufferPreallocatedAPI.tmh"
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
|
@ -34,6 +34,7 @@ _Must_inspect_result_
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfMemoryCreatePreallocated)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -136,6 +137,7 @@ _Must_inspect_result_
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
WDFAPI
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfMemoryAssignBuffer)(
|
||||
_In_
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
|
|
@ -23,7 +23,7 @@ Revision History:
|
|||
#include "coreprivshared.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "FxMemoryObject.tmh"
|
||||
// #include "FxMemoryObject.tmh"
|
||||
}
|
||||
|
||||
FxMemoryObject::FxMemoryObject(
|
||||
|
|
|
@ -23,8 +23,8 @@ Revision History:
|
|||
|
||||
#include "coreprivshared.hpp"
|
||||
|
||||
#include "FxPagedLookasideList.hpp"
|
||||
#include "FxMemoryBufferFromLookaside.hpp"
|
||||
#include "fxpagedlookasidelist.hpp"
|
||||
#include "fxmemorybufferfromlookaside.hpp"
|
||||
|
||||
FxPagedLookasideListFromPool::FxPagedLookasideListFromPool(
|
||||
__in PFX_DRIVER_GLOBALS FxDriverGlobals,
|
||||
|
|
|
@ -27,16 +27,9 @@ Revision History:
|
|||
|
||||
// Tracing support
|
||||
extern "C" {
|
||||
#include "FxRequest.tmh"
|
||||
// #include "FxRequest.tmh"
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#define WDF_REQUEST_REUSE_MUST_COMPLETE 2
|
||||
|
||||
FxRequest::FxRequest(
|
||||
__in PFX_DRIVER_GLOBALS FxDriverGlobals,
|
||||
__in MdIrp Irp,
|
||||
|
@ -1298,13 +1291,12 @@ FxRequest::GetMemoryObject(
|
|||
NTSTATUS status;
|
||||
ULONG length;
|
||||
KIRQL irql;
|
||||
BOOLEAN mapMdl, mdlMapped;
|
||||
BOOLEAN mapMdl;
|
||||
UCHAR majorFunction;
|
||||
|
||||
status = STATUS_SUCCESS;
|
||||
length = 0x0;
|
||||
mapMdl = FALSE;
|
||||
mdlMapped = FALSE;
|
||||
irql = PASSIVE_LEVEL;
|
||||
majorFunction = m_Irp.GetMajorFunction();
|
||||
|
||||
|
@ -2146,7 +2138,6 @@ FxRequest::Reuse(
|
|||
)
|
||||
{
|
||||
FxIrp currentIrp;
|
||||
FxRequestContext* pContext;
|
||||
PFX_DRIVER_GLOBALS pFxDriverGlobals = GetDriverGlobals();
|
||||
|
||||
//
|
||||
|
@ -2177,7 +2168,6 @@ FxRequest::Reuse(
|
|||
SetCompletionRoutine(NULL, NULL);
|
||||
}
|
||||
|
||||
pContext = NULL;
|
||||
currentIrp.SetIrp(m_Irp.GetIrp());
|
||||
|
||||
if (currentIrp.GetIrp() != NULL) {
|
||||
|
@ -2743,7 +2733,7 @@ FxRequest::QueryInterface(
|
|||
// || || Fall || ||
|
||||
// \/ \/ through \/ \/
|
||||
default:
|
||||
return __super::QueryInterface(Params);
|
||||
return FxRequestBase::QueryInterface(Params); // __super call
|
||||
}
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
|
@ -3114,7 +3104,7 @@ FxRequest::Release(
|
|||
allocFromIo = IsAllocatedFromIo();
|
||||
canComplete = IsCanComplete();
|
||||
|
||||
retValue = __super::Release(Tag, Line, File);
|
||||
retValue = FxRequestBase::Release(Tag, Line, File); // __super call
|
||||
|
||||
if (reservedRequest && retValue == 1 && m_Completed) {
|
||||
//
|
||||
|
@ -3195,7 +3185,7 @@ FxRequestFromLookaside::SelfDestruct(
|
|||
//
|
||||
// Destroy the object
|
||||
//
|
||||
FxRequestFromLookaside::~FxRequestFromLookaside();
|
||||
// FxRequestFromLookaside::~FxRequestFromLookaside(); __REACTOS__
|
||||
|
||||
if (IsRequestForwardedToParent()) {
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ Revision History:
|
|||
|
||||
// Tracing support
|
||||
extern "C" {
|
||||
#include "FxRequestApi.tmh"
|
||||
// #include "FxRequestApi.tmh"
|
||||
|
||||
//
|
||||
// Verifiers
|
||||
|
@ -64,6 +64,7 @@ VerifyWdfRequestForwardToParentDeviceIoQueue,
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestCreate)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -156,6 +157,7 @@ Return Value:
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestCreateFromIrp)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -255,6 +257,7 @@ Return Value:
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestReuse)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -326,6 +329,7 @@ Return Value:
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestChangeTarget)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -379,6 +383,7 @@ FX_VF_FUNCTION(VerifyRequestComplete) (
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestComplete)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -439,6 +444,7 @@ Returns:
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestCompleteWithPriorityBoost)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -507,6 +513,7 @@ Returns:
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestCompleteWithInformation)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -574,6 +581,7 @@ Returns:
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestSetInformation)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -630,6 +638,7 @@ Returns:
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
ULONG_PTR
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestGetInformation)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -673,6 +682,7 @@ _Must_inspect_result_
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestRetrieveInputMemory)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -784,6 +794,7 @@ _Must_inspect_result_
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestRetrieveOutputMemory)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -906,6 +917,7 @@ _Must_inspect_result_
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestRetrieveInputBuffer)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1049,6 +1061,7 @@ _Must_inspect_result_
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestRetrieveOutputBuffer)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1202,6 +1215,7 @@ _Must_inspect_result_
|
|||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestRetrieveUnsafeUserInputBuffer)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1405,6 +1419,7 @@ _Must_inspect_result_
|
|||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestRetrieveUnsafeUserOutputBuffer)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1606,6 +1621,7 @@ _Must_inspect_result_
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestRetrieveInputWdmMdl)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1705,6 +1721,7 @@ _Must_inspect_result_
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestRetrieveOutputWdmMdl)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -1850,6 +1867,7 @@ Return Value:
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestSend)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2104,6 +2122,7 @@ Return Value:
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestGetStatus)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2124,6 +2143,7 @@ WDFEXPORT(WdfRequestGetStatus)(
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
BOOLEAN
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestCancelSentRequest)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2176,6 +2196,7 @@ Return Value:
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(APC_LEVEL)
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestIsFrom32BitProcess)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2221,6 +2242,7 @@ Return Value:
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestFormatRequestUsingCurrentType)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2291,6 +2313,7 @@ Return Value:
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestWdmFormatUsingStackLocation)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2371,6 +2394,7 @@ Return Value:
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestSetCompletionRoutine)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2409,6 +2433,7 @@ WDFEXPORT(WdfRequestSetCompletionRoutine)(
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestGetParameters)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2458,6 +2483,7 @@ WDFEXPORT(WdfRequestGetParameters)(
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestGetCompletionParams)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2504,6 +2530,7 @@ WDFEXPORT(WdfRequestGetCompletionParams)(
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
MdIrp
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestWdmGetIrp)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2568,6 +2595,7 @@ _Must_inspect_result_
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestAllocateTimer)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2610,6 +2638,7 @@ Return Value:
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
WDFFILEOBJECT
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestGetFileObject)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2689,6 +2718,7 @@ _Must_inspect_result_
|
|||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestProbeAndLockUserBufferForRead)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2790,6 +2820,7 @@ _Must_inspect_result_
|
|||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestProbeAndLockUserBufferForWrite)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2888,6 +2919,7 @@ Returns:
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
KPROCESSOR_MODE
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestGetRequestorMode)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -2930,6 +2962,7 @@ Returns:
|
|||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
WDFQUEUE
|
||||
WDFAPI
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestGetIoQueue)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -3052,6 +3085,7 @@ FX_VF_FUNCTION(VerifyWdfRequestForwardToIoQueue) (
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestForwardToIoQueue)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -3206,6 +3240,7 @@ Done:
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestForwardToParentDeviceIoQueue)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -3338,6 +3373,7 @@ Done:
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestRequeue)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -3396,6 +3432,7 @@ Returns:
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestMarkCancelable)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -3465,6 +3502,7 @@ Returns:
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestMarkCancelableEx)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -3538,6 +3576,7 @@ Returns:
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestUnmarkCancelable)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -3619,6 +3658,7 @@ FX_VF_FUNCTION(VerifyWdfRequestIsCanceled)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestIsCanceled)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -3666,6 +3706,7 @@ Returns:
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestStopAcknowledge)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -3723,6 +3764,7 @@ Returns:
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
WDFEXPORT(WdfRequestIsReserved)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
|
|
@ -26,7 +26,7 @@ Revision History:
|
|||
|
||||
// Tracing support
|
||||
extern "C" {
|
||||
#include "FxRequestBase.tmh"
|
||||
// #include "FxRequestBase.tmh"
|
||||
}
|
||||
|
||||
FxRequestBase::FxRequestBase(
|
||||
|
@ -811,7 +811,7 @@ Return Value:
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
__declspec(noreturn)
|
||||
DECLSPEC_NORETURN
|
||||
VOID
|
||||
FxRequestBase::FatalError(
|
||||
__in NTSTATUS Status
|
||||
|
|
|
@ -28,7 +28,7 @@ Revision History:
|
|||
|
||||
// Tracing support
|
||||
extern "C" {
|
||||
#include "FxRequestContext.tmh"
|
||||
// #include "FxRequestContext.tmh"
|
||||
}
|
||||
|
||||
FxRequestContext::FxRequestContext(
|
||||
|
|
|
@ -156,7 +156,7 @@ FxRequestMemory::QueryInterface(
|
|||
return STATUS_SUCCESS;
|
||||
}
|
||||
else {
|
||||
return __super::QueryInterface(Params);
|
||||
return FxMemoryBufferPreallocated::QueryInterface(Params); // __super call
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ Revision History:
|
|||
|
||||
// Tracing support
|
||||
extern "C" {
|
||||
#include "FxRequestOutputBuffer.tmh"
|
||||
// #include "FxRequestOutputBuffer.tmh"
|
||||
}
|
||||
|
||||
PVOID
|
||||
|
|
|
@ -30,7 +30,7 @@ Revision History:
|
|||
|
||||
// Tracing support
|
||||
extern "C" {
|
||||
#include "FxRequestSystemBuffer.tmh"
|
||||
// #include "FxRequestSystemBuffer.tmh"
|
||||
}
|
||||
|
||||
size_t
|
||||
|
|
|
@ -26,7 +26,7 @@ Revision History:
|
|||
|
||||
// Tracing support
|
||||
extern "C" {
|
||||
#include "FxSyncRequest.tmh"
|
||||
// #include "FxSyncRequest.tmh"
|
||||
}
|
||||
|
||||
FxSyncRequest::FxSyncRequest(
|
||||
|
@ -126,7 +126,7 @@ Return Value:
|
|||
// Release the initial reference taken on create. Use the base release call
|
||||
// so that we don't unnecessarily set the event unless we have to.
|
||||
//
|
||||
count = __super::RELEASE(NULL);
|
||||
count = FxRequestBase::RELEASE(NULL); // __super call
|
||||
|
||||
//
|
||||
// For a driver supplied request(m_TrueRequest) the request context is
|
||||
|
|
|
@ -26,11 +26,11 @@ Revision History:
|
|||
|
||||
#include "coreprivshared.hpp"
|
||||
|
||||
#include "FxSystemWorkItem.hpp"
|
||||
#include "fxsystemworkitem.hpp"
|
||||
|
||||
// Tracing support
|
||||
extern "C" {
|
||||
#include "FxSystemWorkItem.tmh"
|
||||
// #include "FxSystemWorkItem.tmh"
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
@ -26,11 +26,11 @@ Revision History:
|
|||
|
||||
#include "coreprivshared.hpp"
|
||||
|
||||
#include "FxTimer.hpp"
|
||||
#include "fxtimer.hpp"
|
||||
|
||||
// Tracing support
|
||||
extern "C" {
|
||||
#include "FxTimer.tmh"
|
||||
// #include "FxTimer.tmh"
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -160,10 +160,12 @@ FxTimer::Initialize(
|
|||
//
|
||||
|
||||
#if (FX_CORE_MODE == FX_CORE_KERNEL_MODE)
|
||||
if (pFxDriverGlobals->IsVersionGreaterThanOrEqualTo(1,13)) {
|
||||
status = m_Timer.InitializeEx(this, FxTimer::_FxTimerExtCallbackThunk, m_Period,
|
||||
m_TolerableDelay, m_UseHighResolutionTimer);
|
||||
} else {
|
||||
// __REACTOS__ Ex timers are not supported
|
||||
// if (pFxDriverGlobals->IsVersionGreaterThanOrEqualTo(1,13)) {
|
||||
// status = m_Timer.InitializeEx(this, FxTimer::_FxTimerExtCallbackThunk, m_Period,
|
||||
// m_TolerableDelay, m_UseHighResolutionTimer);
|
||||
// } else
|
||||
{
|
||||
status = m_Timer.Initialize(this, FxTimer::_FxTimerDpcThunk, m_Period);
|
||||
}
|
||||
#else
|
||||
|
|
|
@ -25,10 +25,10 @@ Revision History:
|
|||
|
||||
#include "coreprivshared.hpp"
|
||||
|
||||
#include "FxTimer.hpp"
|
||||
#include "fxtimer.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "FxTimerApi.tmh"
|
||||
// #include "FxTimerApi.tmh"
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -39,6 +39,7 @@ extern "C" {
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfTimerCreate)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -199,6 +200,7 @@ Notes:
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
WDFEXPORT(WdfTimerStart)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -245,6 +247,7 @@ Returns:
|
|||
__drv_when(Wait == __true, __drv_maxIRQL(PASSIVE_LEVEL))
|
||||
__drv_when(Wait == __false, __drv_maxIRQL(DISPATCH_LEVEL))
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
WDFEXPORT(WdfTimerStop)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -295,6 +298,7 @@ Returns:
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
WDFOBJECT
|
||||
STDCALL
|
||||
WDFEXPORT(WdfTimerGetParentObject)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
|
|
@ -26,7 +26,7 @@ Revision History:
|
|||
|
||||
#include "coreprivshared.hpp"
|
||||
|
||||
#include "FxWorkItem.hpp"
|
||||
#include "fxworkitem.hpp"
|
||||
|
||||
#if (FX_CORE_MODE == FX_CORE_USER_MODE)
|
||||
//
|
||||
|
@ -37,7 +37,7 @@ Revision History:
|
|||
|
||||
// Tracing support
|
||||
extern "C" {
|
||||
#include "FxWorkItem.tmh"
|
||||
// #include "FxWorkItem.tmh"
|
||||
}
|
||||
|
||||
FxWorkItem::FxWorkItem(
|
||||
|
@ -319,8 +319,8 @@ FxWorkItem::Enqueue(
|
|||
// object and Globals while they are outstanding.
|
||||
// These will be released when the workitem completes.
|
||||
//
|
||||
ADDREF(WorkItemThunk);
|
||||
pFxDriverGlobals->ADDREF(WorkItemThunk);
|
||||
ADDREF((PVOID)WorkItemThunk);
|
||||
pFxDriverGlobals->ADDREF((PVOID)WorkItemThunk);
|
||||
|
||||
enqueue = TRUE;
|
||||
}
|
||||
|
@ -436,12 +436,12 @@ Return Value:
|
|||
// Release the reference on the FxWorkItem and Globals taken when Enqueue
|
||||
// was done. This may release the FxWorkItem if it is running down.
|
||||
//
|
||||
pWorkItem->RELEASE(WorkItemThunk);
|
||||
pWorkItem->RELEASE((PVOID)WorkItemThunk);
|
||||
|
||||
//
|
||||
// This may release the driver if it is running down.
|
||||
//
|
||||
pFxDriverGlobals->RELEASE(WorkItemThunk);
|
||||
pFxDriverGlobals->RELEASE((PVOID)WorkItemThunk);
|
||||
}
|
||||
|
||||
VOID
|
||||
|
|
|
@ -25,10 +25,10 @@ Revision History:
|
|||
|
||||
#include "coreprivshared.hpp"
|
||||
|
||||
#include "FxWorkItem.hpp"
|
||||
#include "fxworkitem.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "FxWorkItemApi.tmh"
|
||||
// #include "FxWorkItemApi.tmh"
|
||||
}
|
||||
|
||||
|
||||
|
@ -40,6 +40,7 @@ extern "C" {
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfWorkItemCreate)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -144,6 +145,7 @@ Notes:
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfWorkItemEnqueue)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -180,6 +182,7 @@ Returns:
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
WDFOBJECT
|
||||
STDCALL
|
||||
WDFEXPORT(WdfWorkItemGetParentObject)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -219,6 +222,7 @@ Returns:
|
|||
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfWorkItemFlush)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
|
|
@ -26,7 +26,7 @@ Revision History:
|
|||
#include "fxiotarget.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "FxDeviceApiKm.tmh"
|
||||
// #include "FxDeviceApiKm.tmh"
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -58,6 +58,7 @@ VerifyWdfDeviceWdmDispatchIrpToIoQueue,
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
WDFDEVICE
|
||||
STDCALL
|
||||
WDFEXPORT(WdfWdmDeviceGetWdfDeviceHandle)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -72,6 +73,7 @@ WDFEXPORT(WdfWdmDeviceGetWdfDeviceHandle)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
PDEVICE_OBJECT
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceWdmGetDeviceObject)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -91,6 +93,7 @@ WDFEXPORT(WdfDeviceWdmGetDeviceObject)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
PDEVICE_OBJECT
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceWdmGetAttachedDevice)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -111,6 +114,7 @@ WDFEXPORT(WdfDeviceWdmGetAttachedDevice)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
PDEVICE_OBJECT
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceWdmGetPhysicalDevice)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -130,6 +134,7 @@ WDFEXPORT(WdfDeviceWdmGetPhysicalDevice)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
WDFFILEOBJECT
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceGetFileObject)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -206,6 +211,7 @@ Return Value:
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceWdmDispatchPreprocessedIrp)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -316,6 +322,7 @@ FX_VF_FUNCTION(VerifyWdfDeviceWdmDispatchIrp) (
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceWdmDispatchIrp)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -361,7 +368,7 @@ Returns:
|
|||
FxPointerNotNull(device->GetDriverGlobals(), Irp);
|
||||
FxPointerNotNull(device->GetDriverGlobals(), DispatchContext);
|
||||
|
||||
if ((UCHAR)DispatchContext & FX_IN_DISPATCH_CALLBACK) {
|
||||
if ((UCHAR)(ULONG_PTR)DispatchContext & FX_IN_DISPATCH_CALLBACK) {
|
||||
//
|
||||
// Called from a dispach irp callback.
|
||||
//
|
||||
|
@ -395,6 +402,7 @@ Returns:
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceWdmDispatchIrpToIoQueue)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -497,6 +505,7 @@ WDFEXPORT(WdfDeviceWdmDispatchIrpToIoQueue)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceAddDependentUsageDeviceObject)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -522,6 +531,7 @@ WDFEXPORT(WdfDeviceAddDependentUsageDeviceObject)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceRemoveDependentUsageDeviceObject)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -548,6 +558,7 @@ WDFEXPORT(WdfDeviceRemoveDependentUsageDeviceObject)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceAssignMofResourceName)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -606,6 +617,7 @@ WDFEXPORT(WdfDeviceAssignMofResourceName)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceSetSpecialFileSupport)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -646,6 +658,7 @@ WDFEXPORT(WdfDeviceSetSpecialFileSupport)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceIndicateWakeStatus)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -706,6 +719,7 @@ WDFEXPORT(WdfDeviceIndicateWakeStatus)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceSetBusInformationForChildren)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -730,6 +744,7 @@ WDFEXPORT(WdfDeviceSetBusInformationForChildren)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceAddRemovalRelationsPhysicalDevice)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -770,6 +785,7 @@ Return Value:
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceRemoveRemovalRelationsPhysicalDevice)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -810,6 +826,7 @@ Return Value:
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceClearRemovalRelationsDevices)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -843,6 +860,7 @@ Return Value:
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceWdmAssignPowerFrameworkSettings)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
|
|
@ -25,7 +25,7 @@ Revision History:
|
|||
#include "coreprivshared.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "FxDeviceBaseKm.tmh"
|
||||
// #include "FxDeviceBaseKm.tmh"
|
||||
}
|
||||
|
||||
_Must_inspect_result_
|
||||
|
|
|
@ -25,7 +25,7 @@ Revision History:
|
|||
#include "coreprivshared.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "FxDeviceInitKm.tmh"
|
||||
// #include "FxDeviceInitKm.tmh"
|
||||
}
|
||||
|
||||
VOID
|
||||
|
|
|
@ -25,7 +25,7 @@ Revision History:
|
|||
#include "coreprivshared.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "FxDeviceKm.tmh"
|
||||
// #include "FxDeviceKm.tmh"
|
||||
}
|
||||
|
||||
_Must_inspect_result_
|
||||
|
@ -192,10 +192,10 @@ FxDevice::FdoInitialize(
|
|||
return status;
|
||||
}
|
||||
|
||||
status = m_PkgWmi->PostCreateDeviceInitialize();
|
||||
if (!NT_SUCCESS(status)) {
|
||||
return status;
|
||||
}
|
||||
// status = m_PkgWmi->PostCreateDeviceInitialize(); __REACTOS__
|
||||
// if (!NT_SUCCESS(status)) {
|
||||
// return status;
|
||||
// }
|
||||
|
||||
status = m_PkgGeneral->PostCreateDeviceInitialize(DeviceInit);
|
||||
if (!NT_SUCCESS(status)) {
|
||||
|
@ -302,10 +302,10 @@ FxDevice::PdoInitialize(
|
|||
pPkgPdo->m_AllowForwardRequestToParent = TRUE;
|
||||
}
|
||||
|
||||
status = m_PkgWmi->PostCreateDeviceInitialize();
|
||||
if (!NT_SUCCESS(status)) {
|
||||
return status;
|
||||
}
|
||||
// status = m_PkgWmi->PostCreateDeviceInitialize(); __REACTOS__
|
||||
// if (!NT_SUCCESS(status)) {
|
||||
// return status;
|
||||
// }
|
||||
|
||||
status = m_PkgGeneral->PostCreateDeviceInitialize(DeviceInit);
|
||||
if (!NT_SUCCESS(status)) {
|
||||
|
@ -410,10 +410,10 @@ FxDevice::ControlDeviceInitialize(
|
|||
return status;
|
||||
}
|
||||
|
||||
status = m_PkgWmi->PostCreateDeviceInitialize();
|
||||
if (!NT_SUCCESS(status)) {
|
||||
return status;
|
||||
}
|
||||
// status = m_PkgWmi->PostCreateDeviceInitialize(); __REACTOS__
|
||||
// if (!NT_SUCCESS(status)) {
|
||||
// return status;
|
||||
// }
|
||||
|
||||
status = m_PkgGeneral->PostCreateDeviceInitialize(DeviceInit);
|
||||
if (!NT_SUCCESS(status)) {
|
||||
|
@ -489,7 +489,8 @@ FxDevice::WmiPkgRegister(
|
|||
VOID
|
||||
)
|
||||
{
|
||||
return m_PkgWmi->Register();
|
||||
// return m_PkgWmi->Register(); __REACTOS__
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
VOID
|
||||
|
@ -497,7 +498,7 @@ FxDevice::WmiPkgDeregister(
|
|||
VOID
|
||||
)
|
||||
{
|
||||
m_PkgWmi->Deregister();
|
||||
// m_PkgWmi->Deregister(); __REACTOS__
|
||||
}
|
||||
|
||||
VOID
|
||||
|
@ -505,7 +506,7 @@ FxDevice::WmiPkgCleanup(
|
|||
VOID
|
||||
)
|
||||
{
|
||||
m_PkgWmi->Cleanup();
|
||||
// m_PkgWmi->Cleanup(); __REACTOS__
|
||||
}
|
||||
|
||||
NTSTATUS
|
||||
|
|
|
@ -27,7 +27,7 @@ Revision History:
|
|||
// Tracing support
|
||||
extern "C" {
|
||||
#include <ntverp.h>
|
||||
#include "FxDriverApiKm.tmh"
|
||||
// #include "FxDriverApiKm.tmh"
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -38,6 +38,7 @@ extern "C" {
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDriverOpenParametersRegistryKey)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -117,6 +118,7 @@ WDFEXPORT(WdfDriverOpenParametersRegistryKey)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
PDRIVER_OBJECT
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDriverWdmGetDriverObject)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -136,6 +138,7 @@ WDFEXPORT(WdfDriverWdmGetDriverObject)(
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
WDFDRIVER
|
||||
STDCALL
|
||||
WDFEXPORT(WdfWdmDriverGetWdfDriverHandle)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -149,6 +152,7 @@ WDFEXPORT(WdfWdmDriverGetWdfDriverHandle)(
|
|||
}
|
||||
|
||||
VOID
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDriverMiniportUnload)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
@ -169,6 +173,7 @@ WDFEXPORT(WdfDriverMiniportUnload)(
|
|||
_Must_inspect_result_
|
||||
__drv_maxIRQL(PASSIVE_LEVEL)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
WDFEXPORT(WdfDeviceMiniportCreate)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
|
|
@ -29,7 +29,7 @@ Revision History:
|
|||
|
||||
// Tracing support
|
||||
extern "C" {
|
||||
#include "FxDriverKm.tmh"
|
||||
// #include "FxDriverKm.tmh"
|
||||
}
|
||||
|
||||
_Must_inspect_result_
|
||||
|
|
|
@ -22,10 +22,10 @@ Revision History:
|
|||
--*/
|
||||
|
||||
#include "coreprivshared.hpp"
|
||||
#include "FxFileObject.hpp"
|
||||
#include "fxfileobject.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "FxFileObjectApiKm.tmh"
|
||||
// #include "FxFileObjectApiKm.tmh"
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -35,6 +35,7 @@ extern "C" {
|
|||
|
||||
__drv_maxIRQL(DISPATCH_LEVEL)
|
||||
PFILE_OBJECT
|
||||
STDCALL
|
||||
WDFEXPORT(WdfFileObjectWdmGetFileObject)(
|
||||
__in
|
||||
PWDF_DRIVER_GLOBALS DriverGlobals,
|
||||
|
|
|
@ -27,7 +27,7 @@ Revision History:
|
|||
|
||||
// Tracing support
|
||||
extern "C" {
|
||||
#include "FxFileObjectKm.tmh"
|
||||
// #include "FxFileObjectKm.tmh"
|
||||
}
|
||||
|
||||
VOID
|
||||
|
|
|
@ -23,8 +23,8 @@ Revision History:
|
|||
|
||||
#include "coreprivshared.hpp"
|
||||
|
||||
#include "FxNPagedLookasideList.hpp"
|
||||
#include "FxMemoryBufferFromLookaside.hpp"
|
||||
#include "fxnpagedlookasidelist.hpp"
|
||||
#include "fxmemorybufferfromlookaside.hpp"
|
||||
|
||||
FxNPagedLookasideList::FxNPagedLookasideList(
|
||||
__in PFX_DRIVER_GLOBALS FxDriverGlobals,
|
||||
|
|
|
@ -27,7 +27,7 @@ Revision History:
|
|||
|
||||
// Tracing support
|
||||
extern "C" {
|
||||
#include "FxRequestKm.tmh"
|
||||
// #include "FxRequestKm.tmh"
|
||||
}
|
||||
|
||||
VOID
|
||||
|
@ -51,8 +51,8 @@ Return Value:
|
|||
|
||||
--*/
|
||||
{
|
||||
PWDF_REQUEST_PARAMETERS pWdfRequestParameters;
|
||||
PIO_STACK_LOCATION pIoStackLocation;
|
||||
PWDF_REQUEST_PARAMETERS pWdfRequestParameters = NULL;
|
||||
PIO_STACK_LOCATION pIoStackLocation = NULL;
|
||||
|
||||
UNREFERENCED_PARAMETER(pWdfRequestParameters);
|
||||
UNREFERENCED_PARAMETER(pIoStackLocation);
|
||||
|
|
|
@ -30,7 +30,7 @@ Revision History:
|
|||
|
||||
// Tracing support
|
||||
extern "C" {
|
||||
#include "FxRequestSystemBufferKm.tmh"
|
||||
// #include "FxRequestSystemBufferKm.tmh"
|
||||
}
|
||||
|
||||
_Must_inspect_result_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue