Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
e5dee7d9
Commit
e5dee7d9
authored
Jan 13, 2011
by
Alexander Morozov
Committed by
Alexandre Julliard
Jan 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemapi: Implement MAPIResolveName.
parent
2133b6c3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
3 deletions
+27
-3
Makefile.in
dlls/winemapi/Makefile.in
+1
-1
main.c
dlls/winemapi/main.c
+26
-2
No files found.
dlls/winemapi/Makefile.in
View file @
e5dee7d9
MODULE
=
winemapi.dll
IMPORTS
=
shlwapi shell32
IMPORTS
=
shlwapi shell32
mapi32
C_SRCS
=
\
main.c
\
...
...
dlls/winemapi/main.c
View file @
e5dee7d9
...
...
@@ -26,6 +26,7 @@
#include "objbase.h"
#include "mapidefs.h"
#include "mapi.h"
#include "mapix.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
winemapi
);
...
...
@@ -99,8 +100,31 @@ ULONG WINAPI MAPIReadMail(LHANDLE session, ULONG_PTR uiparam, LPSTR msg_id,
ULONG
WINAPI
MAPIResolveName
(
LHANDLE
session
,
ULONG_PTR
uiparam
,
LPSTR
name
,
FLAGS
flags
,
ULONG
reserved
,
lpMapiRecipDesc
*
recip
)
{
FIXME
(
"(stub)
\n
"
);
return
MAPI_E_NOT_SUPPORTED
;
static
const
char
smtp
[]
=
"SMTP:"
;
SCODE
scode
;
char
*
p
;
TRACE
(
"(0x%08lx 0x%08lx %s 0x%08x 0x%08x %p)
\n
"
,
session
,
uiparam
,
debugstr_a
(
name
),
flags
,
reserved
,
recip
);
if
(
!
name
||
!
strlen
(
name
))
return
MAPI_E_FAILURE
;
scode
=
MAPIAllocateBuffer
(
sizeof
(
**
recip
)
+
sizeof
(
smtp
)
+
strlen
(
name
),
(
LPVOID
*
)
recip
);
if
(
scode
!=
S_OK
)
return
MAPI_E_INSUFFICIENT_MEMORY
;
ZeroMemory
(
*
recip
,
sizeof
(
**
recip
));
p
=
(
char
*
)(
*
recip
+
1
);
strcpy
(
p
,
smtp
);
strcpy
(
p
+
sizeof
(
smtp
)
-
1
,
name
);
(
*
recip
)
->
ulRecipClass
=
MAPI_TO
;
(
*
recip
)
->
lpszName
=
p
+
sizeof
(
smtp
)
-
1
;
(
*
recip
)
->
lpszAddress
=
p
;
return
SUCCESS_SUCCESS
;
}
ULONG
WINAPI
MAPISaveMail
(
LHANDLE
session
,
ULONG_PTR
uiparam
,
lpMapiMessage
msg
,
...
...
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