hhctrl.ocx: Add Ukrainian translations.
[wine] / dlls / winemapi / main.c
1 /*
2  *             Wine MAPI provider
3  *
4  * Copyright 2009 Owen Rudge for CodeWeavers
5  *
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.
10  *
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.
15  *
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20
21 #include <stdarg.h>
22
23 #include "windef.h"
24 #include "winbase.h"
25 #include "winerror.h"
26 #include "objbase.h"
27 #include "mapidefs.h"
28 #include "mapi.h"
29 #include "wine/debug.h"
30
31 WINE_DEFAULT_DEBUG_CHANNEL(winemapi);
32
33 /***********************************************************************
34  *              DllMain (MAPI32.init)
35  */
36 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
37 {
38     TRACE("(%p,%d,%p)\n", hinstDLL, fdwReason, fImpLoad);
39     return TRUE;
40 }
41
42 ULONG WINAPI MAPIAddress(LHANDLE session, ULONG_PTR uiparam, LPSTR caption,
43     ULONG editfields, LPSTR labels, ULONG nRecips, lpMapiRecipDesc lpRecips,
44     FLAGS flags, ULONG reserved, LPULONG newRecips, lpMapiRecipDesc * lppNewRecips)
45 {
46     FIXME("(stub)");
47     return MAPI_E_NOT_SUPPORTED;
48 }
49
50 ULONG WINAPI MAPIDeleteMail(LHANDLE session, ULONG_PTR uiparam, LPSTR msg_id,
51     FLAGS flags, ULONG reserved)
52 {
53     FIXME("(stub)");
54     return MAPI_E_NOT_SUPPORTED;
55 }
56
57 ULONG WINAPI MAPIDetails(LHANDLE session, ULONG_PTR uiparam, lpMapiRecipDesc recip,
58     FLAGS flags, ULONG reserved)
59 {
60     FIXME("(stub)");
61     return MAPI_E_NOT_SUPPORTED;
62 }
63
64 ULONG WINAPI MAPIFindNext(LHANDLE session, ULONG_PTR uiparam, LPSTR msg_type,
65     LPSTR seed_msg_id, FLAGS flags, ULONG reserved, LPSTR msg_id)
66 {
67     FIXME("(stub)");
68     return MAPI_E_NOT_SUPPORTED;
69 }
70
71 ULONG WINAPI MAPILogon(ULONG_PTR uiparam, LPSTR profile, LPSTR password,
72     FLAGS flags, ULONG reserved, LPLHANDLE session)
73 {
74     TRACE("(0x%08lx %s %p 0x%08x 0x%08x %p)\n", uiparam,
75           debugstr_a(profile), password, flags, reserved, session);
76
77     if (session)
78         *session = 1;
79
80     return SUCCESS_SUCCESS;
81 }
82
83 ULONG WINAPI MAPILogoff(LHANDLE session, ULONG_PTR uiparam, FLAGS flags,
84     ULONG reserved)
85 {
86     TRACE("(0x%08lx 0x%08lx 0x%08x 0x%08x)\n", session,
87           uiparam, flags, reserved);
88
89     return SUCCESS_SUCCESS;
90 }
91
92 ULONG WINAPI MAPIReadMail(LHANDLE session, ULONG_PTR uiparam, LPSTR msg_id,
93     FLAGS flags, ULONG reserved, lpMapiMessage msg)
94 {
95     FIXME("(stub)");
96     return MAPI_E_NOT_SUPPORTED;
97 }
98
99 ULONG WINAPI MAPIResolveName(LHANDLE session, ULONG_PTR uiparam, LPSTR name,
100     FLAGS flags, ULONG reserved, lpMapiRecipDesc *recip)
101 {
102     FIXME("(stub)");
103     return MAPI_E_NOT_SUPPORTED;
104 }
105
106 ULONG WINAPI MAPISaveMail(LHANDLE session, ULONG_PTR uiparam, lpMapiMessage msg,
107     FLAGS flags, ULONG reserved, LPSTR msg_id)
108 {
109     FIXME("(stub)");
110     return MAPI_E_NOT_SUPPORTED;
111 }