22#include <com/sun/star/uno/XComponentContext.hpp>
26#define WIN32_LEAN_AND_MEAN
31using com::sun::star::lang::XServiceInfo;
32using com::sun::star::system::XSimpleMailClientSupplier;
33using com::sun::star::system::XSimpleMailClient;
38 WeakComponentImplHelper<XSimpleMailClientSupplier, XServiceInfo>(
m_aMutex)
51 HMODULE handle = LoadLibraryW(L
"mapi32.dll");
52 if ((handle != INVALID_HANDLE_VALUE) && (handle !=
nullptr))
57 return xSmplMailClient;
64 return "com.sun.star.sys.shell.SimpleSystemMail";
74 return {
"com.sun.star.system.SimpleSystemMail" };
77extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
79 css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any>
const&)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Reference< css::system::XSimpleMailClient > SAL_CALL querySimpleMailClient() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
~CSmplMailSuppl() override
virtual OUString SAL_CALL getImplementationName() override
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * shell_CSmplMailSuppl_get_implementation(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)