reactos/sdk/lib/drivers/wdf/shared/inc/private/common/fxirppreprocessinfo.hpp
Victor Perevertkin 8a978a179f
[WDF] Add Windows Driver Framework files
Takern from Microsoft GitHub repo:
d9c6040fe9

Licensed under MIT
2020-11-03 00:06:26 +03:00

49 lines
1 KiB
C++

//
// Copyright (C) Microsoft. All rights reserved.
//
#ifndef _FXIRPPREPROCESSINFO_H_
#define _FXIRPPREPROCESSINFO_H_
struct FxIrpPreprocessInfo : public FxStump {
FxIrpPreprocessInfo() :
ClassExtension(FALSE)
{
InitializeListHead(&ListEntry);
}
~FxIrpPreprocessInfo()
{
ASSERT(IsListEmpty(&ListEntry));
}
struct Info {
Info() :
EvtDevicePreprocess(NULL),
NumMinorFunctions(0),
MinorFunctions(NULL)
{
}
~Info()
{
if (MinorFunctions != NULL) {
FxPoolFree(MinorFunctions);
}
}
union {
PFN_WDFDEVICE_WDM_IRP_PREPROCESS EvtDevicePreprocess;
PFN_WDFCXDEVICE_WDM_IRP_PREPROCESS EvtCxDevicePreprocess;
};
ULONG NumMinorFunctions;
PUCHAR MinorFunctions;
};
LIST_ENTRY ListEntry;
Info Dispatch[IRP_MJ_MAXIMUM_FUNCTION+1];
BOOLEAN ClassExtension;
};
#endif // _FXIRPPREPROCESSINFO_H_