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.

82 lines
1.3 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. #ifndef _RNODES_H
  3. #define _RNODES_H
  4. #include "dataobj.h"
  5. #include "cfgbkend.h"
  6. /*
  7. #define IDM_ENABLE_CONNECTION 102
  8. #define IDM_RENAME_CONNECTION 103
  9. */
  10. class CResultNode : public CBaseNode
  11. {
  12. DWORD m_dwImageidx;
  13. BOOL m_bEnableConnection;
  14. LPTSTR m_pszConnectionName;
  15. LPTSTR m_pszTransportTypeName;
  16. LPTSTR m_pszTypeName;
  17. LPTSTR m_pszComment;
  18. ICfgComp *m_pCfgcomp;
  19. public:
  20. CResultNode( );
  21. CResultNode( CResultNode& x );
  22. ~CResultNode( );
  23. LPTSTR GetConName( );
  24. LPTSTR GetTTName( );
  25. LPTSTR GetTypeName( );
  26. LPTSTR GetComment( );
  27. DWORD GetImageIdx( );
  28. int SetConName( LPTSTR , int );
  29. int SetTTName( LPTSTR , int );
  30. int SetTypeName( LPTSTR , int );
  31. int SetComment( LPTSTR , int );
  32. int SetImageIdx( DWORD );
  33. BOOL EnableConnection( BOOL );
  34. BOOL GetConnectionState( ) const
  35. {
  36. return m_bEnableConnection;
  37. }
  38. int SetServer( ICfgComp * );
  39. int GetServer( ICfgComp ** );
  40. int FreeServer( );
  41. BOOL m_bEditMode;
  42. // additional routines
  43. BOOL AddMenuItems( LPCONTEXTMENUCALLBACK , PLONG );
  44. };
  45. #endif //_RNODES_H