[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,52 @@
/*++
Copyright (c) Microsoft Corporation
Module Name:
FxDeviceText.cpp
Abstract:
This module implements the device text object.
Author:
Environment:
Both kernel and user mode
Revision History:
--*/
#include "FxSupportPch.hpp"
FxDeviceText::FxDeviceText(
VOID
) :
m_Description(NULL),
m_LocationInformation(NULL),
m_LocaleId(0)
{
m_Entry.Next = NULL;
}
FxDeviceText::~FxDeviceText()
{
ASSERT(Mx::MxGetCurrentIrql() == PASSIVE_LEVEL);
ASSERT(m_Entry.Next == NULL);
if (m_Description != NULL) {
FxPoolFree(m_Description);
m_Description = NULL;
}
if (m_LocationInformation != NULL) {
FxPoolFree(m_LocationInformation);
m_LocationInformation = NULL;
}
}