windows-nt/Source/XPSP1/NT/drivers/wdm/audio/sysaudio/vnd.cpp

52 lines
1.4 KiB
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
//---------------------------------------------------------------------------
//
// Module: vnd.cpp
//
// Description:
//
// Virtual Node Data Class
//
//@@BEGIN_MSINTERNAL
// Development Team:
// Mike McLaughlin
//
// History: Date Author Comment
//
// To Do: Date Author Comment
//
//@@END_MSINTERNAL
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
//
// Copyright (c) 1996-1999 Microsoft Corporation. All Rights Reserved.
//
//---------------------------------------------------------------------------
#include "common.h"
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
CVirtualNodeData::CVirtualNodeData(
PSTART_NODE_INSTANCE pStartNodeInstance,
PVIRTUAL_SOURCE_DATA pVirtualSourceData
)
{
pStartNodeInstance->pVirtualNodeData = this;
this->pVirtualSourceData = pVirtualSourceData;
this->pStartNodeInstance = pStartNodeInstance;
AddList(&pVirtualSourceData->lstVirtualNodeData);
}
CVirtualNodeData::~CVirtualNodeData(
)
{
Assert(this);
RemoveList();
ASSERT(pStartNodeInstance->pVirtualNodeData == this);
pStartNodeInstance->pVirtualNodeData = NULL;
}