windows-nt/Source/XPSP1/NT/base/fs/utils/regedit/regdesc.cxx
2020-09-26 16:20:57 +08:00

354 lines
3.4 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*++
Copyright (c) 1991 Microsoft Corporation
Module Name:
regdesc.cxx
Abstract:
This module contains the definitions of the member functions
of the following classes: PARTIAL_DESCRIPTOR, PORT_DESCRIPTOR,
INTERRUPT_DESCRIPTOR, MEMORY_DESCRIPTOR, DMA_DESCRIPTOR, and
DEVICE_SPECIFIC_DESCRIPTOR.
Author:
Jaime Sasson (jaimes) 02-Dec-1993
Environment:
ULIB, User Mode
--*/
#include "regdesc.hxx"
DEFINE_CONSTRUCTOR ( PARTIAL_DESCRIPTOR, OBJECT );
PARTIAL_DESCRIPTOR::~PARTIAL_DESCRIPTOR (
)
/*++
Routine Description:
Destroy a PARTIAL_DESCRIPTOR.
Arguments:
None.
Return Value:
None.
--*/
{
}
VOID
PARTIAL_DESCRIPTOR::Construct (
)
/*++
Routine Description:
Construct a PARTIAL_DESCRIPTOR object.
Arguments:
None.
Return Value:
None.
--*/
{
_Type = 0;
_ShareDisposition = 0;
_Flags = 0;
}
DEFINE_CONSTRUCTOR ( PORT_DESCRIPTOR, PARTIAL_DESCRIPTOR );
PORT_DESCRIPTOR::~PORT_DESCRIPTOR (
)
/*++
Routine Description:
Destroy a PORT_DESCRIPTOR.
Arguments:
None.
Return Value:
None.
--*/
{
}
VOID
PORT_DESCRIPTOR::Construct (
)
/*++
Routine Description:
Construct a PORT_DESCRIPTOR object.
Arguments:
None.
Return Value:
None.
--*/
{
_PhysicalAddress.LowPart = 0;
_PhysicalAddress.HighPart = 0;
_Length = 0;
}
DEFINE_CONSTRUCTOR ( INTERRUPT_DESCRIPTOR, PARTIAL_DESCRIPTOR );
INTERRUPT_DESCRIPTOR::~INTERRUPT_DESCRIPTOR (
)
/*++
Routine Description:
Destroy a INTERRUPT_DESCRIPTOR.
Arguments:
None.
Return Value:
None.
--*/
{
}
VOID
INTERRUPT_DESCRIPTOR::Construct (
)
/*++
Routine Description:
Construct an INTERRUPT_DESCRIPTOR object.
Arguments:
None.
Return Value:
None.
--*/
{
_Affinity = 0;
_Level = 0;
_Vector = 0;
}
// #include "ulib.hxx"
// #include "regdesc.hxx"
DEFINE_CONSTRUCTOR ( MEMORY_DESCRIPTOR, PARTIAL_DESCRIPTOR );
MEMORY_DESCRIPTOR::~MEMORY_DESCRIPTOR (
)
/*++
Routine Description:
Destroy a MEMORY_DESCRIPTOR.
Arguments:
None.
Return Value:
None.
--*/
{
}
VOID
MEMORY_DESCRIPTOR::Construct (
)
/*++
Routine Description:
Construct an MEMORY_DESCRIPTOR object.
Arguments:
None.
Return Value:
None.
--*/
{
_StartAddress.LowPart = 0;
_StartAddress.HighPart = 0;
_Length = 0;
}
DEFINE_CONSTRUCTOR ( DMA_DESCRIPTOR, PARTIAL_DESCRIPTOR );
DMA_DESCRIPTOR::~DMA_DESCRIPTOR (
)
/*++
Routine Description:
Destroy a DMA_DESCRIPTOR.
Arguments:
None.
Return Value:
None.
--*/
{
}
VOID
DMA_DESCRIPTOR::Construct (
)
/*++
Routine Description:
Construct an MEMORY_DESCRIPTOR object.
Arguments:
None.
Return Value:
None.
--*/
{
_Channel = 0;
_Port = 0;
_Reserved1 = 0;
}
DEFINE_CONSTRUCTOR ( DEVICE_SPECIFIC_DESCRIPTOR, PARTIAL_DESCRIPTOR );
DEVICE_SPECIFIC_DESCRIPTOR::~DEVICE_SPECIFIC_DESCRIPTOR (
)
/*++
Routine Description:
Destroy a DEVICE_SPECIFIC_DESCRIPTOR.
Arguments:
None.
Return Value:
None.
--*/
{
_DataSize = 0;
if( _Data != NULL ) {
FREE( _Data );
}
}
VOID
DEVICE_SPECIFIC_DESCRIPTOR::Construct (
)
/*++
Routine Description:
Construct an DEVICE_SPECIFIC_DESCRIPTOR object.
Arguments:
None.
Return Value:
None.
--*/
{
_Reserved1 = 0;
_Reserved2 = 0;
_Data = NULL;
_DataSize = 0;
}