mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:32:59 +00:00
[WDF] Add Windows Driver Framework files
Takern from Microsoft GitHub repo:
d9c6040fe9
Licensed under MIT
This commit is contained in:
parent
545df81502
commit
8a978a179f
475 changed files with 285099 additions and 0 deletions
|
@ -0,0 +1,85 @@
|
|||
/*++
|
||||
|
||||
Copyright (c) Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
FxDeviceText.hpp
|
||||
|
||||
Abstract:
|
||||
|
||||
This module implements the device text object.
|
||||
|
||||
Author:
|
||||
|
||||
|
||||
|
||||
Environment:
|
||||
|
||||
Both kernel and user mode
|
||||
|
||||
Revision History:
|
||||
|
||||
--*/
|
||||
|
||||
#ifndef _FXDEVICETEXT_H_
|
||||
#define _FXDEVICETEXT_H_
|
||||
|
||||
struct FxDeviceText : public FxStump {
|
||||
SINGLE_LIST_ENTRY m_Entry;
|
||||
PWCHAR m_Description;
|
||||
PWCHAR m_LocationInformation;
|
||||
LCID m_LocaleId;
|
||||
|
||||
FxDeviceText(
|
||||
VOID
|
||||
);
|
||||
|
||||
~FxDeviceText(
|
||||
VOID
|
||||
);
|
||||
|
||||
static
|
||||
FxDeviceText*
|
||||
_FromEntry(
|
||||
__in PSINGLE_LIST_ENTRY Entry
|
||||
)
|
||||
{
|
||||
return CONTAINING_RECORD(Entry, FxDeviceText, m_Entry);
|
||||
}
|
||||
|
||||
static
|
||||
_CleanupList(
|
||||
__inout PSINGLE_LIST_ENTRY Head
|
||||
)
|
||||
{
|
||||
PSINGLE_LIST_ENTRY ple;
|
||||
|
||||
ple = Head->Next;
|
||||
|
||||
if (ple != NULL) {
|
||||
FxDeviceText* pText;
|
||||
|
||||
pText = FxDeviceText::_FromEntry(ple);
|
||||
ple = ple->Next;
|
||||
|
||||
//
|
||||
// Destructor verifies the entry is not on any list
|
||||
//
|
||||
pText->m_Entry.Next = NULL;
|
||||
delete pText;
|
||||
}
|
||||
|
||||
Head->Next = NULL;
|
||||
}
|
||||
|
||||
VOID
|
||||
operator delete(
|
||||
__in PVOID Pool
|
||||
)
|
||||
{
|
||||
FxPoolFree(Pool);
|
||||
}
|
||||
};
|
||||
|
||||
#endif // _FXDEVICETEXT_H_
|
Loading…
Add table
Add a link
Reference in a new issue