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.

56 lines
1.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: dpmsgobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #include "resource.h"
  11. class C_dxj_DirectXFileObject :
  12. public I_dxj_DirectXFile,
  13. public CComObjectRoot
  14. {
  15. public:
  16. BEGIN_COM_MAP(C_dxj_DirectXFileObject)
  17. COM_INTERFACE_ENTRY(I_dxj_DirectXFile)
  18. END_COM_MAP()
  19. DECLARE_AGGREGATABLE(C_dxj_DirectXFileObject)
  20. public:
  21. C_dxj_DirectXFileObject();
  22. ~C_dxj_DirectXFileObject();
  23. HRESULT STDMETHODCALLTYPE CreateEnumObject(
  24. /* [in] */ BSTR __RPC_FAR filename,
  25. /* [retval][out] */ I_dxj_DirectXFileEnum __RPC_FAR *__RPC_FAR *ret);
  26. HRESULT STDMETHODCALLTYPE CreateSaveObject(
  27. /* [in] */ BSTR filename,
  28. /* [in] */ long flags,
  29. /* [retval][out] */ I_dxj_DirectXFileSave __RPC_FAR *__RPC_FAR *ret);
  30. HRESULT STDMETHODCALLTYPE RegisterTemplates(
  31. /* [in] */ void __RPC_FAR *temp,
  32. /* [in] */ long size) ;
  33. HRESULT STDMETHODCALLTYPE RegisterDefaultTemplates( void) ;
  34. HRESULT Init();
  35. static HRESULT C_dxj_DirectXFileObject::create( I_dxj_DirectXFile **ret);
  36. private:
  37. IDirectXFile *m_pDirectXFile;
  38. };