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
421ab509
Commit
421ab509
authored
Sep 18, 2009
by
Owen Rudge
Committed by
Alexandre Julliard
Sep 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mapi32: Implement MAPIInitialize, Logon, Logoff, LogonEx, Uninitialize.
parent
69156f5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
7 deletions
+59
-7
mapi32_main.c
dlls/mapi32/mapi32_main.c
+59
-7
No files found.
dlls/mapi32/mapi32_main.c
View file @
421ab509
...
...
@@ -83,36 +83,77 @@ HRESULT WINAPI DllCanUnloadNow(void)
return
MAPI_ObjectCount
==
0
?
S_OK
:
S_FALSE
;
}
/***********************************************************************
* MAPIInitialize
*
* Initialises the MAPI library. In our case, we pass through to the
* loaded Extended MAPI provider.
*/
HRESULT
WINAPI
MAPIInitialize
(
LPVOID
init
)
{
FIXME
(
"(%p) Stub
\n
"
,
init
);
return
SUCCESS_SUCCESS
;
TRACE
(
"(%p)
\n
"
,
init
);
if
(
mapiFunctions
.
MAPIInitialize
)
return
mapiFunctions
.
MAPIInitialize
(
init
);
return
MAPI_E_NOT_INITIALIZED
;
}
/***********************************************************************
* MAPILogon
*
* Logs on to a MAPI provider. If available, we pass this through to a
* Simple MAPI provider. Otherwise, we maintain basic functionality
* ourselves.
*/
ULONG
WINAPI
MAPILogon
(
ULONG_PTR
uiparam
,
LPSTR
profile
,
LPSTR
password
,
FLAGS
flags
,
ULONG
reserved
,
LPLHANDLE
session
)
{
FIXME
(
"(0x%08lx %s %p 0x%08x 0x%08x %p) Stub
\n
"
,
uiparam
,
TRACE
(
"(0x%08lx %s %p 0x%08x 0x%08x %p)
\n
"
,
uiparam
,
debugstr_a
(
profile
),
password
,
flags
,
reserved
,
session
);
if
(
mapiFunctions
.
MAPILogon
)
return
mapiFunctions
.
MAPILogon
(
uiparam
,
profile
,
password
,
flags
,
reserved
,
session
);
if
(
session
)
*
session
=
1
;
return
SUCCESS_SUCCESS
;
}
/***********************************************************************
* MAPILogoff
*
* Logs off from a MAPI provider. If available, we pass this through to a
* Simple MAPI provider. Otherwise, we maintain basic functionality
* ourselves.
*/
ULONG
WINAPI
MAPILogoff
(
LHANDLE
session
,
ULONG_PTR
uiparam
,
FLAGS
flags
,
ULONG
reserved
)
{
FIXME
(
"(0x%08lx 0x%08lx 0x%08x 0x%08x) Stub
\n
"
,
session
,
TRACE
(
"(0x%08lx 0x%08lx 0x%08x 0x%08x)
\n
"
,
session
,
uiparam
,
flags
,
reserved
);
if
(
mapiFunctions
.
MAPILogoff
)
return
mapiFunctions
.
MAPILogoff
(
session
,
uiparam
,
flags
,
reserved
);
return
SUCCESS_SUCCESS
;
}
/***********************************************************************
* MAPILogonEx
*
* Logs on to a MAPI provider. If available, we pass this through to an
* Extended MAPI provider. Otherwise, we return an error.
*/
HRESULT
WINAPI
MAPILogonEx
(
ULONG_PTR
uiparam
,
LPWSTR
profile
,
LPWSTR
password
,
ULONG
flags
,
LPMAPISESSION
*
session
)
{
FIXME
(
"(0x%08lx %s %p 0x%08x %p) Stub
\n
"
,
uiparam
,
TRACE
(
"(0x%08lx %s %p 0x%08x %p)
\n
"
,
uiparam
,
debugstr_w
(
profile
),
password
,
flags
,
session
);
return
SUCCESS_SUCCESS
;
if
(
mapiFunctions
.
MAPILogonEx
)
return
mapiFunctions
.
MAPILogonEx
(
uiparam
,
profile
,
password
,
flags
,
session
);
return
E_FAIL
;
}
HRESULT
WINAPI
MAPIOpenLocalFormContainer
(
LPVOID
*
ppfcnt
)
...
...
@@ -121,9 +162,20 @@ HRESULT WINAPI MAPIOpenLocalFormContainer(LPVOID *ppfcnt)
return
E_FAIL
;
}
/***********************************************************************
* MAPIUninitialize
*
* Uninitialises the MAPI library. In our case, we pass through to the
* loaded Extended MAPI provider.
*
*/
VOID
WINAPI
MAPIUninitialize
(
void
)
{
FIXME
(
"Stub
\n
"
);
TRACE
(
"()
\n
"
);
/* Try to uninitialise the Extended MAPI library */
if
(
mapiFunctions
.
MAPIUninitialize
)
mapiFunctions
.
MAPIUninitialize
();
}
HRESULT
WINAPI
MAPIAdminProfiles
(
ULONG
ulFlags
,
LPPROFADMIN
*
lppProfAdmin
)
...
...
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