Leaked source code of windows server 2003
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.

46 lines
1.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1998
  6. //
  7. // File: d3drmuservisualobj.cpp
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmUserVisualObj.cpp : Implementation of CDirectApp and DLL registration.
  11. #include "stdafx.h"
  12. #include "Direct.h"
  13. #include "dms.h"
  14. #include "d3drmUserVisualObj.h"
  15. CONSTRUCTOR(_dxj_Direct3dRMUserVisual, {m_enumcb=NULL;});
  16. DESTRUCTOR(_dxj_Direct3dRMUserVisual, {cleanup();});
  17. GETSET_OBJECT(_dxj_Direct3dRMUserVisual);
  18. CLONE_R(_dxj_Direct3dRMUserVisual,Direct3DRMUserVisual);
  19. GETNAME_R(_dxj_Direct3dRMUserVisual);
  20. SETNAME_R(_dxj_Direct3dRMUserVisual);
  21. GETCLASSNAME_R(_dxj_Direct3dRMUserVisual);
  22. ADDDESTROYCALLBACK_R(_dxj_Direct3dRMUserVisual);
  23. DELETEDESTROYCALLBACK_R(_dxj_Direct3dRMUserVisual);
  24. PASS_THROUGH_CAST_1_R(_dxj_Direct3dRMUserVisual, setAppData, SetAppData,long,(DWORD));
  25. GET_DIRECT_R(_dxj_Direct3dRMUserVisual, getAppData, GetAppData, long);
  26. /////////////////////////////////////////////////////////////////////////////
  27. STDMETHODIMP C_dxj_Direct3dRMUserVisualObject::init(I_dxj_Direct3dRMUserVisualCallback *uvC, IUnknown *args)
  28. {
  29. return E_NOINTERFACE;
  30. }
  31. void C_dxj_Direct3dRMUserVisualObject::cleanup(){
  32. if (!m_enumcb) return;
  33. if (m_enumcb->c) m_enumcb->c->Release();
  34. if (m_enumcb->pUser) m_enumcb->pUser->Release();
  35. delete m_enumcb;
  36. }