/*++ Copyright (c) 1997 Microsoft Corporation Module Name: rtsrc.h Abstract: Implementation of IRoutingSource interface Author: Fei Su (feisu) 9/22/97 Created. Revision History: --*/ #include "stdafx.h" #include "smtpadm.h" #include "smtpprop.h" #include "rtsrc.h" #include "oleutil.h" #include "metautil.h" // Must define THIS_FILE_* macros to use SmtpCreateException() #define THIS_FILE_HELP_CONTEXT 0 #define THIS_FILE_PROG_ID _T("Smtpadm.VirtualServer.1") #define THIS_FILE_IID IID_IRoutingSource #define RS_RELATIVE_NAME _T("RoutingSources") #define ID_DS_TYPE 0 #define ID_DS_DATA_DIRECTORY 1 #define ID_DS_DEFAULT_MAIL_ROOT 2 #define ID_DS_BIND_TYPE 3 #define ID_DS_SCHEMA_TYPE 4 #define ID_DS_HOST 5 #define ID_DS_NAMING_CONTEXT 6 #define ID_DS_ACCOUNT 7 #define ID_DS_PASSWORD 8 #define DEFAULT_DS_TYPE _T("LDAP") #define DEFAULT_DS_DATA_DIRECTORY _T("") #define DEFAULT_DS_DEFAULT_MAIL_ROOT _T("/Mailbox") #define DEFAULT_DS_BIND_TYPE _T("None") #define DEFAULT_DS_SCHEMA_TYPE _T("Exchange5") #define DEFAULT_DS_HOST _T("") #define DEFAULT_DS_NAMING_CONTEXT _T("") #define DEFAULT_DS_ACCOUNT _T("") #define DEFAULT_DS_PASSWORD _T("") ///////////////////////////////////////////////////////////////////////////// // STDMETHODIMP CRoutingSource::InterfaceSupportsErrorInfo(REFIID riid) { static const IID* arr[] = { &IID_IRoutingSource, }; for (int i=0;i