1 //
2 //    Copyright (C) Microsoft.  All rights reserved.
3 //
4 #ifndef _FXCXDEVICEINFO_H_
5 #define _FXCXDEVICEINFO_H_
6 
7 #include "fxdevicecallbacks.hpp"
8 
9 struct FxCxDeviceInfo : public FxStump {
FxCxDeviceInfoFxCxDeviceInfo10     FxCxDeviceInfo(PFX_DRIVER_GLOBALS FxDriverGlobals) :
11         Driver(NULL),
12         IoInCallerContextCallback(FxDriverGlobals),
13         Index(0)
14     {
15         InitializeListHead(&ListEntry);
16         RtlZeroMemory(&RequestAttributes, sizeof(RequestAttributes));
17     }
18 
~FxCxDeviceInfoFxCxDeviceInfo19     ~FxCxDeviceInfo()
20     {
21         ASSERT(IsListEmpty(&ListEntry));
22     }
23 
24     LIST_ENTRY                  ListEntry;
25     FxDriver*                   Driver;
26     FxIoInCallerContext         IoInCallerContextCallback;
27     WDF_OBJECT_ATTRIBUTES       RequestAttributes;
28     CCHAR                       Index;
29 };
30 
31 #endif // _FXCXDEVICEINFO_H_
32