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.

66 lines
1.3 KiB

  1. //
  2. // DataObj.h : Declaration of the data object classes
  3. // Cory West
  4. //
  5. #ifndef __DATAOBJ_H_INCLUDED__
  6. #define __DATAOBJ_H_INCLUDED__
  7. #include "cookie.h" // Cookie
  8. #include "stddtobj.h" // class DataObject
  9. class CSchmMgmtDataObject : public CDataObject
  10. {
  11. DECLARE_NOT_AGGREGATABLE(CSchmMgmtDataObject)
  12. public:
  13. #if DBG==1
  14. ULONG InternalAddRef() {
  15. return CComObjectRoot::InternalAddRef();
  16. }
  17. ULONG InternalRelease() {
  18. return CComObjectRoot::InternalRelease();
  19. }
  20. int dbg_InstID;
  21. #endif
  22. CSchmMgmtDataObject()
  23. : m_pcookie( NULL ),
  24. m_objecttype( SCHMMGMT_SCHMMGMT ),
  25. m_dataobjecttype( CCT_UNINITIALIZED )
  26. { ; }
  27. ~CSchmMgmtDataObject();
  28. virtual HRESULT Initialize( Cookie* pcookie, DATA_OBJECT_TYPES type );
  29. HRESULT STDMETHODCALLTYPE GetDataHere(
  30. FORMATETC __RPC_FAR *pFormatEtcIn,
  31. STGMEDIUM __RPC_FAR *pMedium
  32. );
  33. HRESULT PutDisplayName( STGMEDIUM* pMedium );
  34. HRESULT PutServiceName( STGMEDIUM* pMedium );
  35. protected:
  36. //
  37. // The CCookieBlock is AddRef'ed for the life of the DataObject.
  38. //
  39. Cookie* m_pcookie;
  40. SchmMgmtObjectType m_objecttype;
  41. DATA_OBJECT_TYPES m_dataobjecttype;
  42. public:
  43. static CLIPFORMAT m_CFDisplayName;
  44. static CLIPFORMAT m_CFMachineName;
  45. };
  46. #endif