// ConnectManager.h: interface for the CConnectManager class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_CONNECTMANAGER_H__6C52123B_D554_4E36_B628_31CAC85C91DB__INCLUDED_)
#define AFX_CONNECTMANAGER_H__6C52123B_D554_4E36_B628_31CAC85C91DB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CConnectManager  
{
public:
	CConnectManager();
	virtual ~CConnectManager();
	void EnumNetIdentifier ( OUT CStringArray &StrAry );
	
	BOOL GetConnMgrAvailable();
	int MapURLAndGUID ( LPCTSTR lpszURL, GUID &guidNetworkObject, OUT CString *pcsDesc=NULL );
	BOOL EstablishConnection ( DWORD dwIndex );
	BOOL EstablishConnection (GUID guid);
	BOOL WaitForConnected ( int nTimeoutSec, DWORD *pdwStatus=NULL );
	
private:
	void ReleaseConnection ();
	HANDLE m_hConnection;
};

#endif // !defined(AFX_CONNECTMANAGER_H__6C52123B_D554_4E36_B628_31CAC85C91DB__INCLUDED_)
