4 * Copyright 2001 CodeWeavers Inc.
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 #include "wine/debug.h"
30 WINE_DEFAULT_DEBUG_CHANNEL(mapi);
32 LONG MAPI_ObjectCount = 0;
34 /***********************************************************************
35 * DllMain (MAPI32.init)
37 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
39 TRACE("(%p,%ld,%p)\n", hinstDLL, fdwReason, fImpLoad);
43 case DLL_PROCESS_ATTACH:
44 DisableThreadLibraryCalls(hinstDLL);
46 case DLL_PROCESS_DETACH:
47 TRACE("DLL_PROCESS_DETACH: %ld objects remaining\n", MAPI_ObjectCount);
53 /***********************************************************************
54 * DllCanUnloadNow (MAPI32.28)
56 * Determine if this dll can be unloaded from the callers address space.
62 * S_OK, if the dll can be unloaded,
65 HRESULT WINAPI DllCanUnloadNow(void)
67 return MAPI_ObjectCount == 0 ? S_OK : S_FALSE;
70 HRESULT WINAPI MAPIInitialize ( LPVOID lpMapiInit )
73 return MAPI_E_NOT_INITIALIZED;
76 ULONG WINAPI MAPILogon(ULONG ulUIParam, LPSTR lpszProfileName, LPSTR
77 lpszPassword, FLAGS flFlags, ULONG ulReserver, LPLHANDLE lplhSession)
80 return MAPI_E_LOGON_FAILED;
83 HRESULT WINAPI MAPILogonEx(ULONG_PTR ulUIParam, LPWSTR lpszProfileName,
84 LPWSTR lpszPassword, ULONG flFlags,
85 LPMAPISESSION *lppSession)
88 return MAPI_E_LOGON_FAILED;
91 VOID WINAPI MAPIUninitialize(void)