reactos/sdk/lib/drivers/wdf/shared/inc/private/common/fxdevicetext.hpp
Victor Perevertkin 8a978a179f
[WDF] Add Windows Driver Framework files
Takern from Microsoft GitHub repo:
d9c6040fe9

Licensed under MIT
2020-11-03 00:06:26 +03:00

85 lines
1.3 KiB
C++

/*++
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_