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.
 
 
 
 
 
 

56 lines
1.2 KiB

// AlgSetup.h : Declaration of the CAlgSetup
#pragma once
/////////////////////////////////////////////////////////////////////////////
// CAlgSetup
//
class ATL_NO_VTABLE CAlgSetup :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CAlgSetup, &CLSID_AlgSetup>,
public IDispatchImpl<IAlgSetup, &IID_IAlgSetup, &LIBID_NETCONLib>
{
public:
DECLARE_REGISTRY(CAlgSetup, TEXT("Alg.AlgSetup.1"), TEXT("Alg.AlgSetup"), -1, THREADFLAGS_BOTH)
DECLARE_NOT_AGGREGATABLE(CAlgSetup)
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(CAlgSetup)
COM_INTERFACE_ENTRY(IAlgSetup)
COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()
//
// IAlgSetup
//
public:
STDMETHODIMP Add(
IN BSTR pszProgID,
IN BSTR pszPublisher,
IN BSTR pszProduct,
IN BSTR pszVersion,
IN short nProtocol,
IN BSTR pszPorts
);
STDMETHODIMP Remove(
IN BSTR pszProgID
);
private:
bool
ArePortsAlreadyAssign(
IN LPCTSTR pszPort,
OUT BSTR* pszOverlapping
);
};