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.

96 lines
2.0 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
  4. /**********************************************************************/
  5. /*
  6. statnode.h
  7. WINS scope pane status node
  8. FILE HISTORY:
  9. */
  10. #ifndef _STATNODE_H
  11. #define _STATNODE_H
  12. #ifndef _WINSHAND_H
  13. #include "winshand.h"
  14. #endif
  15. #ifndef _STATUS_H
  16. #include "status.h"
  17. #endif
  18. class CServerStatus : public CWinsHandler
  19. {
  20. public:
  21. CServerStatus(ITFSComponentData * pTFSCompData);
  22. ~CServerStatus(){ };
  23. // Interface
  24. public:
  25. // Result handler functionality
  26. // OVERRIDE_ResultHandler_HasPropertyPages() { return hrOK; }
  27. OVERRIDE_ResultHandler_GetString();
  28. // Implementation
  29. public:
  30. // CWinsHandler overrides
  31. virtual HRESULT InitializeNode(ITFSNode * pNode);
  32. // Get/Set Functions
  33. const CString &GetServerName()
  34. {
  35. return m_strServerName;
  36. }
  37. void SetRecordName(CString& strName)
  38. {
  39. m_strServerName = strName;
  40. }
  41. const CString &GetStatus()
  42. {
  43. return m_strStatus;
  44. }
  45. void SetStatus(CString &strType)
  46. {
  47. m_strStatus = strType;
  48. }
  49. const CString &GetIPAddress()
  50. {
  51. return m_strIPAddress;
  52. }
  53. void SetIPAddress(CString& strName)
  54. {
  55. m_strIPAddress = strName;
  56. }
  57. void FormDisplayName(CString &strDisplay);
  58. char szServerName[MAX_PATH];
  59. char szIPAddress[MAX_PATH];
  60. DWORD dwIPAddress;
  61. DWORD dwMsgCount;
  62. DWORD dwState; // checks if the server has been deleted from the list
  63. char szNameToQry[STR_BUF_SIZE]; // the name to use in the queries
  64. char nbtFrameBuf[MAX_NBT_PACKET_SIZE]; // buffer to store the NetBT frame
  65. CString m_strStatus;
  66. CTime m_timeLast;
  67. UINT m_uImage;
  68. private:
  69. CString m_strServerName;
  70. CString m_strIPAddress;
  71. CString m_strLastChecked;
  72. // info from the Wins Record Object
  73. DWORD m_dwIPAddress;
  74. };
  75. #endif //SRVNODE