mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.0 KiB
39 lines
1.0 KiB
//+-------------------------------------------------------------------------
|
|
//
|
|
// 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;
|
|
}
|