[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,75 @@
/*++
Copyright (c) Microsoft Corporation
ModuleName:
MxDeviceObjectUm.cpp
Abstract:
User Mode implementation of Device Object defined in MxDeviceObject.h
--*/
#include "fxmin.hpp"
#include "fxldrum.h"
PVOID
MxDriverObject::GetDriverExtensionAddDevice(
VOID
)
{
return m_DriverObject->AddDevice;
}
VOID
MxDriverObject::SetDriverExtensionAddDevice(
_In_ MdDriverAddDevice Value
)
{
m_DriverObject->AddDevice = Value;
}
MdDriverUnload
MxDriverObject::GetDriverUnload(
VOID
)
{
m_DriverObject->DriverUnload;
return NULL;
}
VOID
MxDriverObject::SetDriverUnload(
_In_ MdDriverUnload Value
)
{
m_DriverObject->DriverUnload = Value;
}
VOID
MxDriverObject::SetMajorFunction(
_In_ UCHAR i,
_In_ MdDriverDispatch Value
)
{
m_DriverObject->MajorFunction[i] = Value;
}
VOID
MxDriverObject::SetDriverObjectFlag(
_In_ FxDriverObjectUmFlags Flag
)
{
m_DriverObject->Flags |= Flag;
}
BOOLEAN
MxDriverObject::IsDriverObjectFlagSet(
_In_ FxDriverObjectUmFlags Flag
)
{
return (!!(m_DriverObject->Flags & Flag));
}