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.

53 lines
1.1 KiB

  1. void AddressToString( DWORD a_dwAddress, wstring& a_szIPAddress );
  2. void WlbsFormatMessageWrapper
  3. (
  4. DWORD a_dwError,
  5. WLBS_COMMAND a_Command,
  6. BOOL a_bClusterWide,
  7. wstring& a_wstrMessage
  8. );
  9. BOOL ClusterStatusOK(DWORD a_dwStatus);
  10. ////////////////////////////////////////////////////////////////////////////////
  11. //
  12. // class CErrorWlbsControl
  13. //
  14. // Purpose: This encapsulates all WLBS errors and descriptions.
  15. //
  16. //
  17. ////////////////////////////////////////////////////////////////////////////////
  18. class CErrorWlbsControl
  19. {
  20. private:
  21. CErrorWlbsControl();
  22. public:
  23. _bstr_t Description();
  24. DWORD Error();
  25. CErrorWlbsControl( DWORD a_dwError,
  26. WLBS_COMMAND a_CmdCommand,
  27. BOOL a_bAllClusterCall = FALSE );
  28. virtual ~CErrorWlbsControl() {}
  29. private:
  30. wstring m_wstrDescription;
  31. DWORD m_dwError;
  32. };
  33. inline _bstr_t CErrorWlbsControl::Description()
  34. {
  35. return _bstr_t( m_wstrDescription.c_str() );
  36. }
  37. inline DWORD CErrorWlbsControl::Error()
  38. {
  39. return m_dwError;
  40. }