ReactOS 0.4.17-dev-1190-g4c812f4
fxpkgpnpkm.cpp File Reference
#include "../pnppriv.hpp"
#include <initguid.h>
#include <wdmguid.h>
Include dependency graph for fxpkgpnpkm.cpp:

Go to the source code of this file.

Functions

VOID PnpPassThroughQIWorker (__in MxDeviceObject *Device, __inout FxIrp *Irp, __inout FxIrp *ForwardIrp)
 

Function Documentation

◆ PnpPassThroughQIWorker()

VOID PnpPassThroughQIWorker ( __in MxDeviceObject *  Device,
__inout FxIrp *  Irp,
__inout FxIrp *  ForwardIrp 
)

Definition at line 498 of file fxpkgpnpkm.cpp.

503{
504 PIO_STACK_LOCATION pFwdStack, pCurStack;
505
506 pCurStack = Irp->GetCurrentIrpStackLocation();
507
508 ForwardIrp->SetStatus(STATUS_NOT_SUPPORTED);
509
510 pFwdStack = ForwardIrp->GetNextIrpStackLocation();
511 pFwdStack->MajorFunction = Irp->GetMajorFunction();
512 pFwdStack->MinorFunction = Irp->GetMinorFunction();
513
515 &pCurStack->Parameters.QueryInterface,
516 sizeof(pFwdStack->Parameters.QueryInterface));
517
518 ForwardIrp->SetInformation(Irp->GetInformation());
519 ForwardIrp->SendIrpSynchronously(Device->GetObject());
520
521 pFwdStack = ForwardIrp->GetNextIrpStackLocation();
522
524 &pFwdStack->Parameters.QueryInterface,
525 sizeof(pCurStack->Parameters.QueryInterface));
526}
#define STATUS_NOT_SUPPORTED
Definition: d3dkmdt.h:48
_Must_inspect_result_ _In_ PUCXHUB_DEVICE_CREATE_INFO _Out_ UCXUSBDEVICE * Device
Definition: hubucx.h:258
_In_ PIRP Irp
Definition: kse.h:79
union _IO_STACK_LOCATION::@1814 Parameters
struct _IO_STACK_LOCATION::@5020::@5046 QueryInterface
#define RtlCopyMemory(Destination, Source, Length)
Definition: typedefs.h:263

Referenced by PnpPassThroughQI().