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.

94 lines
2.1 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. #ifndef _DATAOBJ_H
  3. #define _DATAOBJ_H
  4. #include<mmc.h>
  5. #define IDM_ENABLE_CONNECTION 102
  6. #define IDM_RENAME_CONNECTION 103
  7. #define IDM_SETTINGS_PROPERTIES 104
  8. #define IDM_SETTINGS_DELTEMPDIRSONEXIT 105
  9. #define IDM_SETTINGS_USETMPDIR 106
  10. #define IDM_SETTINGS_ADP 110
  11. #define IDM_SETTINGS_SS 111
  12. //This needs to match the definition in tssdjet
  13. #define IDM_MENU_PROPS 2001
  14. // {E26D0049-378C-11d2-988B-00A0C925F917}
  15. static const GUID GUID_MainNode = { 0xe26d0049, 0x378c, 0x11d2, { 0x98, 0x8b, 0x0, 0xa0, 0xc9, 0x25, 0xf9, 0x17 } };
  16. // {E26D0050-378C-11d2-988B-00A0C925F917}
  17. static const GUID GUID_SettingsNode = { 0xe26d0050, 0x378c, 0x11d2, { 0x98, 0x8b, 0x0, 0xa0, 0xc9, 0x25, 0xf9, 0x17 } };
  18. // {fe8e7e84-6f63-11d2-98a9-00a0c925f917}
  19. // extern const GUID GUID_ResultNode = { 0xfe8e7e84 , 0x6f63 , 0x11d2 , { 0x98, 0xa9 , 0x0 , 0x0a0 , 0xc9 , 0x25 , 0xf9 , 0x17 } };
  20. enum { MAIN_NODE = 1 , SETTINGS_NODE , RESULT_NODE , RSETTINGS_NODE };
  21. class CBaseNode : public IDataObject
  22. {
  23. ULONG m_cref;
  24. INT_PTR m_nNodeType;
  25. public:
  26. CBaseNode( );
  27. virtual ~CBaseNode( ) { }
  28. STDMETHOD( QueryInterface )( REFIID , PVOID * );
  29. STDMETHOD_( ULONG , AddRef )( );
  30. STDMETHOD_( ULONG , Release )( );
  31. // IDataObject
  32. STDMETHOD( GetData )( LPFORMATETC , LPSTGMEDIUM );
  33. STDMETHOD( GetDataHere )( LPFORMATETC , LPSTGMEDIUM );
  34. STDMETHOD( QueryGetData )( LPFORMATETC );
  35. STDMETHOD( GetCanonicalFormatEtc )( LPFORMATETC , LPFORMATETC );
  36. STDMETHOD( SetData )( LPFORMATETC , LPSTGMEDIUM , BOOL );
  37. STDMETHOD( EnumFormatEtc )( DWORD , LPENUMFORMATETC * );
  38. STDMETHOD( DAdvise )( LPFORMATETC , ULONG , LPADVISESINK , PULONG );
  39. STDMETHOD( DUnadvise )( DWORD );
  40. STDMETHOD( EnumDAdvise )( LPENUMSTATDATA * );
  41. // BaseNode methods are left to the derived object
  42. void SetNodeType( INT_PTR nNodeType )
  43. {
  44. m_nNodeType = nNodeType;
  45. }
  46. INT_PTR GetNodeType( void )
  47. {
  48. return m_nNodeType;
  49. }
  50. virtual BOOL AddMenuItems( LPCONTEXTMENUCALLBACK , PLONG ) { return FALSE; }
  51. virtual DWORD GetImageIdx( ){ return 0; }
  52. };
  53. #endif // _DATAOBJ_H