reactos/sdk/lib/drivers/wdf/shared/inc/private/common/fxcxdeviceinfo.hpp
Victor Perevertkin 1f377076d7
[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
2020-11-03 00:06:27 +03:00

31 lines
801 B
C++

//
// Copyright (C) Microsoft. All rights reserved.
//
#ifndef _FXCXDEVICEINFO_H_
#define _FXCXDEVICEINFO_H_
#include "fxdevicecallbacks.hpp"
struct FxCxDeviceInfo : public FxStump {
FxCxDeviceInfo(PFX_DRIVER_GLOBALS FxDriverGlobals) :
Driver(NULL),
IoInCallerContextCallback(FxDriverGlobals),
Index(0)
{
InitializeListHead(&ListEntry);
RtlZeroMemory(&RequestAttributes, sizeof(RequestAttributes));
}
~FxCxDeviceInfo()
{
ASSERT(IsListEmpty(&ListEntry));
}
LIST_ENTRY ListEntry;
FxDriver* Driver;
FxIoInCallerContext IoInCallerContextCallback;
WDF_OBJECT_ATTRIBUTES RequestAttributes;
CCHAR Index;
};
#endif // _FXCXDEVICEINFO_H_