UsbDk: Make CUsbDkFilterDevice objects suitable for CWdmList

Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
This commit is contained in:
Dmitry Fleytman 2014-02-16 18:13:36 +02:00
parent a9ca161690
commit afeef67e62

View file

@ -31,6 +31,12 @@ public:
NTSTATUS Create(PWDFDEVICE_INIT DevInit, WDFDRIVER Driver);
NTSTATUS CreateFilterDevice(PWDFDEVICE_INIT DevInit);
PLIST_ENTRY GetListEntry()
{ return &m_ListEntry; }
static CUsbDkFilterDevice *GetByListEntry(PLIST_ENTRY entry)
{ return static_cast<CUsbDkFilterDevice*>(CONTAINING_RECORD(entry, CUsbDkFilterDevice, m_ListEntry)); }
private:
static void ContextCleanup(_In_ WDFOBJECT DeviceObject);
@ -53,4 +59,6 @@ private:
PIRP m_QDRIrp = nullptr;
PDEVICE_OBJECT m_ClonedPdo = nullptr;
CUsbDkControlDevice *m_ControlDevice = nullptr;
LIST_ENTRY m_ListEntry;
};