[WDF] Add Windows Driver Framework files

Takern from Microsoft GitHub repo:
d9c6040fe9

Licensed under MIT
This commit is contained in:
Victor Perevertkin 2020-09-24 23:51:15 +03:00
parent 545df81502
commit 8a978a179f
No known key found for this signature in database
GPG key ID: C750B7222E9C7830
475 changed files with 285099 additions and 0 deletions

View file

@ -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_