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.

61 lines
1.5 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_DirectXFileBinaryObject :
  12. public I_dxj_DirectXFileBinary,
  13. public CComObjectRoot
  14. {
  15. public:
  16. BEGIN_COM_MAP(C_dxj_DirectXFileBinaryObject)
  17. COM_INTERFACE_ENTRY(I_dxj_DirectXFileBinary)
  18. END_COM_MAP()
  19. DECLARE_AGGREGATABLE(C_dxj_DirectXFileBinaryObject)
  20. public:
  21. C_dxj_DirectXFileBinaryObject();
  22. ~C_dxj_DirectXFileBinaryObject();
  23. HRESULT STDMETHODCALLTYPE GetName(
  24. /* [retval][out] */ BSTR __RPC_FAR *name);
  25. HRESULT STDMETHODCALLTYPE GetId(
  26. /* [retval][out] */ BSTR __RPC_FAR *name);
  27. HRESULT STDMETHODCALLTYPE GetSize(
  28. /* [retval][out] */ long __RPC_FAR *size);
  29. HRESULT STDMETHODCALLTYPE GetMimeType(
  30. /* [retval][out] */ BSTR __RPC_FAR *mime);
  31. HRESULT STDMETHODCALLTYPE Read(
  32. /* [out][in] */ void __RPC_FAR *data,
  33. /* [in] */ long size,
  34. /* [retval][out] */ long __RPC_FAR *read);
  35. HRESULT Init(IDirectXFileBinary *pBin);
  36. static HRESULT C_dxj_DirectXFileBinaryObject::create(IDirectXFileBinary *pBin, I_dxj_DirectXFileBinary **ret);
  37. private:
  38. IDirectXFileBinary *m_pXFileBinary;
  39. };