// Rebuild.cpp : Implementation of CNntpAdminRebuild. #include "stdafx.h" #include "nntpcmn.h" #include "oleutil.h" #include "Rebuild.h" #include "nntptype.h" #include "nntpapi.h" #include // // Defaults: // #define DEFAULT_VERBOSE ( FALSE ) #define DEFAULT_CLEAN_REBUILD ( TRUE ) #define DEFAULT_DONT_DELETE_HISTORY ( FALSE ) #define DEFAULT_REUSE_INDEX_FILES ( TRUE ) #define DEFAULT_OMIT_NON_LEAF_DIRS ( TRUE ) #define DEFAULT_GROUP_FILE ( NULL ) #define DEFAULT_REPORT_FILE ( _T("nntpbld.log") ) #define DEFAULT_NUM_THREADS ( 0 ) // Must define THIS_FILE_* macros to use NntpCreateException() #define THIS_FILE_HELP_CONTEXT 0 #define THIS_FILE_PROG_ID _T("Nntpadm.Rebuild.1") #define THIS_FILE_IID IID_INntpAdminRebuild ///////////////////////////////////////////////////////////////////////////// // // // Use a macro to define all the default methods // DECLARE_METHOD_IMPLEMENTATION_FOR_STANDARD_EXTENSION_INTERFACES(NntpAdminRebuild, CNntpAdminRebuild, IID_INntpAdminRebuild) STDMETHODIMP CNntpAdminRebuild::InterfaceSupportsErrorInfo(REFIID riid) { static const IID* arr[] = { &IID_INntpAdminRebuild, }; for (int i=0;i