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.

55 lines
1.2 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. BOOL Check_Load_Unload_Driver_Privilege();
  11. ////////////////////////////////////////////////////////////////////////////////
  12. //
  13. // class CErrorWlbsControl
  14. //
  15. // Purpose: This encapsulates all WLBS errors and descriptions.
  16. //
  17. //
  18. ////////////////////////////////////////////////////////////////////////////////
  19. class CErrorWlbsControl
  20. {
  21. private:
  22. CErrorWlbsControl();
  23. public:
  24. _bstr_t Description();
  25. DWORD Error();
  26. CErrorWlbsControl( DWORD a_dwError,
  27. WLBS_COMMAND a_CmdCommand,
  28. BOOL a_bAllClusterCall = FALSE );
  29. virtual ~CErrorWlbsControl() {}
  30. private:
  31. wstring m_wstrDescription;
  32. DWORD m_dwError;
  33. };
  34. inline _bstr_t CErrorWlbsControl::Description()
  35. {
  36. return _bstr_t( m_wstrDescription.c_str() );
  37. }
  38. inline DWORD CErrorWlbsControl::Error()
  39. {
  40. return m_dwError;
  41. }