[WDF] Add Windows Driver Framework files
[reactos.git] / sdk / lib / drivers / wdf / shared / inc / private / common / fxcxdeviceinfo.hpp
diff --git a/sdk/lib/drivers/wdf/shared/inc/private/common/fxcxdeviceinfo.hpp b/sdk/lib/drivers/wdf/shared/inc/private/common/fxcxdeviceinfo.hpp
new file mode 100644 (file)
index 0000000..9c8c7ab
--- /dev/null
@@ -0,0 +1,31 @@
+//
+//    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_