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.

88 lines
2.6 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_DirectXFileDataObject :
  12. public I_dxj_DirectXFileData,
  13. public I_dxj_DirectXFileObject,
  14. public CComObjectRoot
  15. {
  16. public:
  17. BEGIN_COM_MAP(C_dxj_DirectXFileDataObject)
  18. COM_INTERFACE_ENTRY(I_dxj_DirectXFileData)
  19. COM_INTERFACE_ENTRY(I_dxj_DirectXFileObject)
  20. END_COM_MAP()
  21. DECLARE_AGGREGATABLE(C_dxj_DirectXFileDataObject)
  22. public:
  23. C_dxj_DirectXFileDataObject();
  24. ~C_dxj_DirectXFileDataObject();
  25. HRESULT STDMETHODCALLTYPE InternalGetObject(IUnknown **pUnk);
  26. HRESULT STDMETHODCALLTYPE InternalSetObject(IUnknown *pUnk);
  27. HRESULT STDMETHODCALLTYPE InternalGetData( IUnknown **pprealInterface);
  28. HRESULT STDMETHODCALLTYPE InternalSetData( IUnknown *prealInterface);
  29. HRESULT STDMETHODCALLTYPE GetName(
  30. /* [retval][out] */ BSTR __RPC_FAR *name);
  31. HRESULT STDMETHODCALLTYPE GetId(
  32. /* [retval][out] */ BSTR __RPC_FAR *name);
  33. HRESULT STDMETHODCALLTYPE GetDataSize(
  34. /* [in] */ BSTR name,
  35. /* [retval][out] */ long __RPC_FAR *size);
  36. HRESULT STDMETHODCALLTYPE GetData(
  37. /* [in] */ BSTR name,
  38. /* [in] */ void __RPC_FAR *data);
  39. HRESULT STDMETHODCALLTYPE GetType(
  40. /* [retval][out] */ BSTR __RPC_FAR *type);
  41. HRESULT STDMETHODCALLTYPE GetNextObject(
  42. /* [retval][out] */ I_dxj_DirectXFileObject __RPC_FAR *__RPC_FAR *type);
  43. HRESULT STDMETHODCALLTYPE AddDataObject(
  44. /* [in] */ I_dxj_DirectXFileData __RPC_FAR *data);
  45. HRESULT STDMETHODCALLTYPE AddDataReference(
  46. /* [in] */ BSTR name,
  47. /* [in] */ BSTR guid);
  48. HRESULT STDMETHODCALLTYPE AddBinaryObject(
  49. /* [in] */ BSTR name,
  50. /* [in] */ BSTR guidObject,
  51. /* [in] */ BSTR MimeType,
  52. void __RPC_FAR *data,
  53. /* [in] */ long size);
  54. HRESULT STDMETHODCALLTYPE GetDataFromOffset(
  55. /* [in] */ BSTR name,
  56. /* [in] */ long offset,
  57. /* [in] */ long bytecount,
  58. /* [in] */ void *data);
  59. static HRESULT C_dxj_DirectXFileDataObject::create( IDirectXFileData *pData,I_dxj_DirectXFileData **ret);
  60. private:
  61. IDirectXFileData *m_pXFileData;
  62. };