reactos/sdk/lib/drivers/wdf/shared/inc/private/common/fxdevicetext.hpp
Victor Perevertkin 1f377076d7
[WDF] Fix KMDF so it can compile with ReactOS SDK
Not all files are included, but these are necessary to compile cdrom driver.
So far it can only be statically linked with drivers, a proper
implementation requires wdfldr helper driver
2020-11-03 00:06:27 +03:00

86 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
void
_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_