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.
 
 
 
 
 
 

91 lines
2.6 KiB

/*++
Copyright (c) 1997 Microsoft Corporation
Module Name:
rtsrc.h
Abstract:
Header file for IRoutingSource interface
Author:
Fei Su (feisu) 9/22/97 Created.
Revision History:
--*/
class CRoutingSource :
public CComDualImpl<IRoutingSource, &IID_IRoutingSource, &LIBID_SMTPADMLib>,
public ISupportErrorInfo,
public CComObjectRoot
{
public:
CRoutingSource() : m_dwFC(0) {}
virtual ~CRoutingSource(){}
BEGIN_COM_MAP(CRoutingSource)
COM_INTERFACE_ENTRY(IDispatch)
COM_INTERFACE_ENTRY(IRoutingSource)
COM_INTERFACE_ENTRY(ISupportErrorInfo)
END_COM_MAP()
/*
// IUnknown methods
STDMETHOD_(ULONG, AddRef) ();
STDMETHOD_(ULONG, Release) ();
STDMETHOD(QueryInterface)(REFIID riid, LPVOID FAR* ppvObj) ;
*/
// ISupportsErrorInfo
STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
// IRoutingSource properties:
STDMETHODIMP get_Type ( BSTR * pstrType );
STDMETHODIMP put_Type ( BSTR strType );
STDMETHODIMP get_DataDirectory ( BSTR * pstrDataDirectory );
STDMETHODIMP put_DataDirectory ( BSTR strDataDirectory );
STDMETHODIMP get_DefaultMailRoot ( BSTR * pstrDefaultMailRoot );
STDMETHODIMP put_DefaultMailRoot ( BSTR strDefaultMailRoot );
STDMETHODIMP get_BindType ( BSTR * pstrBindType );
STDMETHODIMP put_BindType ( BSTR strBindType );
STDMETHODIMP get_SchemaType ( BSTR * pstrSchemaType );
STDMETHODIMP put_SchemaType ( BSTR strSchemaType );
STDMETHODIMP get_Host ( BSTR * pstrHost );
STDMETHODIMP put_Host ( BSTR strHost );
STDMETHODIMP get_NamingContext ( BSTR * pstrNamingContext );
STDMETHODIMP put_NamingContext ( BSTR strNamingContext );
STDMETHODIMP get_Account ( BSTR * pstrAccount );
STDMETHODIMP put_Account ( BSTR strAccount );
STDMETHODIMP get_Password ( BSTR * pstrPassword );
STDMETHODIMP put_Password ( BSTR strPassword );
// Internal methods
HRESULT Get(CMetabaseKey * pMBVirtualServer);
HRESULT Set(CMetabaseKey * pMBVirtualServer);
private:
CComBSTR m_strType;
CComBSTR m_strDataDirectory;
CComBSTR m_strDefaultMailroot;
CComBSTR m_strBindType;
CComBSTR m_strSchemaType;
CComBSTR m_strHost;
CComBSTR m_strNamingContext;
CComBSTR m_strAccount;
CComBSTR m_strPassword;
DWORD m_dwFC;
};