windows-nt/Source/XPSP1/NT/multimedia/directx/dxvb/dx7vb/dpsessiondescobj.cpp

39 lines
1 KiB
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
//+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1998 - 1998
//
// File: dpsessiondescobj.cpp
//
//--------------------------------------------------------------------------
/*
interface I_dxj_DPSessionDesc;
interface I_dxj_DDVideoPortCaps;
interface I_dxj_DIDeviceObjectInstance;
interface I_dxj_DIEffectInfo;
*/
#include "stdafx.h"
#include "Direct.h"
#include "dms.h"
#include "DPSessionDescObj.h"
C_dxj_DPSessionDescObject::C_dxj_DPSessionDescObject(){
ZeroMemory(&m_desc,sizeof(DPSessionDesc));
}
C_dxj_DPSessionDescObject::~C_dxj_DPSessionDescObject(){
}
STDMETHODIMP C_dxj_DPSessionDescObject::getDescription(DPSessionDesc *desc){
if (desc==NULL) return E_INVALIDARG;
memcpy(&m_desc,desc,sizeof(DPSessionDesc));
return S_OK;
}
STDMETHODIMP C_dxj_DPSessionDescObject::setDescription(DPSessionDesc *desc){
if (desc==NULL) return E_INVALIDARG;
memcpy(desc,&m_desc,sizeof(DPSessionDesc));
return S_OK;
}