[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,41 @@
/*++
Copyright (c) Microsoft Corporation
Module Name:
package.cpp
Abstract:
This module implements the base package class. Other packages will
derive from this base class.
Author:
Environment:
Both kernel and user mode
Revision History:
--*/
#include "irphandlerspriv.hpp"
#include "FxPackage.hpp"
FxPackage::FxPackage(
__in PFX_DRIVER_GLOBALS FxDriverGlobals,
__in CfxDevice *Device,
__in WDFTYPE Type
) :
// By passing 0, we are indicating we are an internal object which will not
// represented as a WDFHANDLE
FxNonPagedObject(Type, 0, FxDriverGlobals)
{
m_Device = Device;
}