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.1 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1999 - 1999
  6. //
  7. // File: d3drmobjectarrayobj.cpp
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmFrameArrayObj.cpp : Implementation of CDirectApp and DLL registration.
  11. #include "stdafx.h"
  12. #include "Direct.h"
  13. #include "dms.h"
  14. #include "d3drmObjectArrayObj.h"
  15. CONSTRUCTOR(_dxj_Direct3dRMObjectArray, {});
  16. DESTRUCTOR(_dxj_Direct3dRMObjectArray, {});
  17. GETSET_OBJECT(_dxj_Direct3dRMObjectArray);
  18. GET_DIRECT_R(_dxj_Direct3dRMObjectArray,getSize, GetSize, long)
  19. HRESULT C_dxj_Direct3dRMObjectArrayObject::getElement(long i, I_dxj_Direct3dRMObject **obj){
  20. HRESULT hr;
  21. IDirect3DRMObject *realObject=NULL;
  22. hr=m__dxj_Direct3dRMObjectArray->GetElement((DWORD)i,&realObject);
  23. if FAILED(hr) return hr;
  24. //realObjects refcount is taken care of by CreateCoverObject
  25. hr=CreateCoverObject(realObject, obj);
  26. realObject->Release();
  27. return hr;
  28. }