Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
44784356
Commit
44784356
authored
Dec 16, 2009
by
Owen Rudge
Committed by
Alexandre Julliard
Dec 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemapi: Add Simple MAPI functions.
parent
38cb7be4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
156 additions
and
12 deletions
+156
-12
Makefile.in
dlls/winemapi/Makefile.in
+2
-1
main.c
dlls/winemapi/main.c
+72
-0
sendmail.c
dlls/winemapi/sendmail.c
+71
-0
winemapi.spec
dlls/winemapi/winemapi.spec
+11
-11
No files found.
dlls/winemapi/Makefile.in
View file @
44784356
...
...
@@ -6,7 +6,8 @@ MODULE = winemapi.dll
IMPORTS
=
shlwapi shell32 kernel32
C_SRCS
=
\
main.c
main.c
\
sendmail.c
@MAKE_DLL_RULES@
...
...
dlls/winemapi/main.c
View file @
44784356
...
...
@@ -24,6 +24,7 @@
#include "winbase.h"
#include "winerror.h"
#include "objbase.h"
#include "mapidefs.h"
#include "mapi.h"
#include "wine/debug.h"
...
...
@@ -37,3 +38,74 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
TRACE
(
"(%p,%d,%p)
\n
"
,
hinstDLL
,
fdwReason
,
fImpLoad
);
return
TRUE
;
}
ULONG
WINAPI
MAPIAddress
(
LHANDLE
session
,
ULONG_PTR
uiparam
,
LPSTR
caption
,
ULONG
editfields
,
LPSTR
labels
,
ULONG
nRecips
,
lpMapiRecipDesc
lpRecips
,
FLAGS
flags
,
ULONG
reserved
,
LPULONG
newRecips
,
lpMapiRecipDesc
*
lppNewRecips
)
{
FIXME
(
"(stub)"
);
return
MAPI_E_NOT_SUPPORTED
;
}
ULONG
WINAPI
MAPIDeleteMail
(
LHANDLE
session
,
ULONG_PTR
uiparam
,
LPSTR
msg_id
,
FLAGS
flags
,
ULONG
reserved
)
{
FIXME
(
"(stub)"
);
return
MAPI_E_NOT_SUPPORTED
;
}
ULONG
WINAPI
MAPIDetails
(
LHANDLE
session
,
ULONG_PTR
uiparam
,
lpMapiRecipDesc
recip
,
FLAGS
flags
,
ULONG
reserved
)
{
FIXME
(
"(stub)"
);
return
MAPI_E_NOT_SUPPORTED
;
}
ULONG
WINAPI
MAPIFindNext
(
LHANDLE
session
,
ULONG_PTR
uiparam
,
LPSTR
msg_type
,
LPSTR
seed_msg_id
,
FLAGS
flags
,
ULONG
reserved
,
LPSTR
msg_id
)
{
FIXME
(
"(stub)"
);
return
MAPI_E_NOT_SUPPORTED
;
}
ULONG
WINAPI
MAPILogon
(
ULONG_PTR
uiparam
,
LPSTR
profile
,
LPSTR
password
,
FLAGS
flags
,
ULONG
reserved
,
LPLHANDLE
session
)
{
TRACE
(
"(0x%08lx %s %p 0x%08x 0x%08x %p)
\n
"
,
uiparam
,
debugstr_a
(
profile
),
password
,
flags
,
reserved
,
session
);
if
(
session
)
*
session
=
1
;
return
SUCCESS_SUCCESS
;
}
ULONG
WINAPI
MAPILogoff
(
LHANDLE
session
,
ULONG_PTR
uiparam
,
FLAGS
flags
,
ULONG
reserved
)
{
TRACE
(
"(0x%08lx 0x%08lx 0x%08x 0x%08x)
\n
"
,
session
,
uiparam
,
flags
,
reserved
);
return
SUCCESS_SUCCESS
;
}
ULONG
WINAPI
MAPIReadMail
(
LHANDLE
session
,
ULONG_PTR
uiparam
,
LPSTR
msg_id
,
FLAGS
flags
,
ULONG
reserved
,
lpMapiMessage
msg
)
{
FIXME
(
"(stub)"
);
return
MAPI_E_NOT_SUPPORTED
;
}
ULONG
WINAPI
MAPIResolveName
(
LHANDLE
session
,
ULONG_PTR
uiparam
,
LPSTR
name
,
FLAGS
flags
,
ULONG
reserved
,
lpMapiRecipDesc
*
recip
)
{
FIXME
(
"(stub)"
);
return
MAPI_E_NOT_SUPPORTED
;
}
ULONG
WINAPI
MAPISaveMail
(
LHANDLE
session
,
ULONG_PTR
uiparam
,
lpMapiMessage
msg
,
FLAGS
flags
,
ULONG
reserved
,
LPSTR
msg_id
)
{
FIXME
(
"(stub)"
);
return
MAPI_E_NOT_SUPPORTED
;
}
dlls/winemapi/sendmail.c
0 → 100644
View file @
44784356
/*
* MAPISendMail implementation
*
* Copyright 2005 Hans Leidekker
* Copyright 2009 Owen Rudge for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include "wine/port.h"
#include <stdio.h>
#include <stdarg.h>
#define COBJMACROS
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
#include "mapi.h"
#include "winreg.h"
#include "shellapi.h"
#include "shlwapi.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
winemapi
);
/**************************************************************************
* MAPISendMail
*
* Send a mail.
*
* PARAMS
* session [I] Handle to a MAPI session.
* uiparam [I] Parent window handle.
* message [I] Pointer to a MAPIMessage structure.
* flags [I] Flags.
* reserved [I] Reserved, pass 0.
*
* RETURNS
* Success: SUCCESS_SUCCESS
* Failure: MAPI_E_FAILURE
*
*/
ULONG
WINAPI
MAPISendMail
(
LHANDLE
session
,
ULONG_PTR
uiparam
,
lpMapiMessage
message
,
FLAGS
flags
,
ULONG
reserved
)
{
FIXME
(
"(0x%08x 0x%08lx %p 0x%08x 0x%08x): stub
\n
"
,
session
,
uiparam
,
message
,
flags
,
reserved
);
return
MAPI_E_NOT_SUPPORTED
;
}
ULONG
WINAPI
MAPISendDocuments
(
ULONG_PTR
uiparam
,
LPSTR
delim
,
LPSTR
paths
,
LPSTR
filenames
,
ULONG
reserved
)
{
return
MAPI_E_NOT_SUPPORTED
;
}
dlls/winemapi/winemapi.spec
View file @
44784356
@ st
ub MAPIAddress
@ st
ub MAPIDeleteMail
@ st
ub MAPIDetails
@ st
ub MAPIFindNext
@ st
ub MAPILogon
@ st
ub MAPILogoff
@ st
ub MAPIReadMail
@ st
ub MAPIResolveName
@ st
ub MAPISaveMail
@ st
ub MAPISendDocuments
@ st
ub MAPISendMail
@ st
dcall MAPIAddress(ptr ptr str long str long ptr long long ptr ptr)
@ st
dcall MAPIDeleteMail(ptr ptr str long long)
@ st
dcall MAPIDetails(ptr ptr ptr long long)
@ st
dcall MAPIFindNext(ptr ptr str str long long ptr)
@ st
dcall MAPILogon(ptr str str long long ptr)
@ st
dcall MAPILogoff(ptr ptr long long)
@ st
dcall MAPIReadMail(ptr ptr str long long ptr)
@ st
dcall MAPIResolveName(ptr ptr str long long ptr)
@ st
dcall MAPISaveMail(ptr ptr ptr long long str)
@ st
dcall MAPISendDocuments(ptr str str str long)
@ st
dcall MAPISendMail(ptr ptr ptr long long)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment