Source code of Windows XP (NT5)
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.

38 lines
1.0 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1998
  6. //
  7. // File: dpsessiondescobj.cpp
  8. //
  9. //--------------------------------------------------------------------------
  10. /*
  11. interface I_dxj_DPSessionDesc;
  12. interface I_dxj_DDVideoPortCaps;
  13. interface I_dxj_DIDeviceObjectInstance;
  14. interface I_dxj_DIEffectInfo;
  15. */
  16. #include "stdafx.h"
  17. #include "Direct.h"
  18. #include "dms.h"
  19. #include "DPSessionDescObj.h"
  20. C_dxj_DPSessionDescObject::C_dxj_DPSessionDescObject(){
  21. ZeroMemory(&m_desc,sizeof(DPSessionDesc));
  22. }
  23. C_dxj_DPSessionDescObject::~C_dxj_DPSessionDescObject(){
  24. }
  25. STDMETHODIMP C_dxj_DPSessionDescObject::getDescription(DPSessionDesc *desc){
  26. if (desc==NULL) return E_INVALIDARG;
  27. memcpy(&m_desc,desc,sizeof(DPSessionDesc));
  28. return S_OK;
  29. }
  30. STDMETHODIMP C_dxj_DPSessionDescObject::setDescription(DPSessionDesc *desc){
  31. if (desc==NULL) return E_INVALIDARG;
  32. memcpy(desc,&m_desc,sizeof(DPSessionDesc));
  33. return S_OK;
  34. }