Windows2003-3790/net/wlbs/wmi/utils.h

56 lines
1.2 KiB
C
Raw Normal View History

2001-01-01 00:00:00 +01:00
void AddressToString( DWORD a_dwAddress, wstring& a_szIPAddress );
void WlbsFormatMessageWrapper
(
DWORD a_dwError,
WLBS_COMMAND a_Command,
BOOL a_bClusterWide,
wstring& a_wstrMessage
);
BOOL ClusterStatusOK(DWORD a_dwStatus);
BOOL Check_Load_Unload_Driver_Privilege();
////////////////////////////////////////////////////////////////////////////////
//
// class CErrorWlbsControl
//
// Purpose: This encapsulates all WLBS errors and descriptions.
//
//
////////////////////////////////////////////////////////////////////////////////
class CErrorWlbsControl
{
private:
CErrorWlbsControl();
public:
_bstr_t Description();
DWORD Error();
CErrorWlbsControl( DWORD a_dwError,
WLBS_COMMAND a_CmdCommand,
BOOL a_bAllClusterCall = FALSE );
virtual ~CErrorWlbsControl() {}
private:
wstring m_wstrDescription;
DWORD m_dwError;
};
inline _bstr_t CErrorWlbsControl::Description()
{
return _bstr_t( m_wstrDescription.c_str() );
}
inline DWORD CErrorWlbsControl::Error()
{
return m_dwError;
}