Commit 71a081ca authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

Added some MAPI stubs.

parent c2a5ebc9
...@@ -3,7 +3,7 @@ type win32 ...@@ -3,7 +3,7 @@ type win32
import ntdll.dll import ntdll.dll
debug_channels() debug_channels (mapi)
@ stub BMAPIAddress @ stub BMAPIAddress
@ stub BMAPIDetails @ stub BMAPIDetails
...@@ -94,7 +94,7 @@ debug_channels() ...@@ -94,7 +94,7 @@ debug_channels()
@ stub MAPIAddress @ stub MAPIAddress
@ stub MAPIAdminProfiles @ stub MAPIAdminProfiles
# @ stub MAPIAdminProfiles@8 # @ stub MAPIAdminProfiles@8
@ stub MAPIAllocateBuffer @ stdcall MAPIAllocateBuffer(long ptr) MAPIAllocateBuffer
# @ stub MAPIAllocateBuffer@8 # @ stub MAPIAllocateBuffer@8
@ stub MAPIAllocateMore @ stub MAPIAllocateMore
# @ stub MAPIAllocateMore@12 # @ stub MAPIAllocateMore@12
...@@ -106,11 +106,11 @@ debug_channels() ...@@ -106,11 +106,11 @@ debug_channels()
# @ stub MAPIFreeBuffer@4 # @ stub MAPIFreeBuffer@4
@ stub MAPIGetDefaultMalloc@0 @ stub MAPIGetDefaultMalloc@0
@ stub MAPIInitIdle@4 @ stub MAPIInitIdle@4
@ stub MAPIInitialize @ stdcall MAPIInitialize(ptr) MAPIInitialize
# @ stub MAPIInitialize@4 # @ stub MAPIInitialize@4
@ stub MAPILogoff @ stub MAPILogoff
@ stub MAPILogon @ stdcall MAPILogon(long ptr ptr long long ptr) MAPILogon
@ stub MAPILogonEx @ stdcall MAPILogonEx(long ptr ptr long ptr) MAPILogonEx
# @ stub MAPILogonEx@20 # @ stub MAPILogonEx@20
@ stub MAPIOpenFormMgr @ stub MAPIOpenFormMgr
# @ stub MAPIOpenFormMgr@8 # @ stub MAPIOpenFormMgr@8
...@@ -121,7 +121,7 @@ debug_channels() ...@@ -121,7 +121,7 @@ debug_channels()
@ stub MAPISaveMail @ stub MAPISaveMail
@ stub MAPISendDocuments @ stub MAPISendDocuments
@ stub MAPISendMail @ stub MAPISendMail
@ stub MAPIUninitialize @ stdcall MAPIUninitialize() MAPIUninitialize
# @ stub MAPIUninitialize@0 # @ stub MAPIUninitialize@0
@ stub MNLS_CompareStringW@24 @ stub MNLS_CompareStringW@24
@ stub MNLS_IsBadStringPtrW@8 @ stub MNLS_IsBadStringPtrW@8
......
/* nothing here yet */ /*
* MAPI basics
*
* 2001 Codeweavers Inc.
*/
#include "windef.h"
#include "winerror.h"
#include "mapi.h"
#include "mapicode.h"
#include "debugtools.h"
DEFAULT_DEBUG_CHANNEL(mapi);
HRESULT WINAPI MAPIInitialize ( LPVOID lpMapiInit )
{
ERR("Stub\n");
return MAPI_E_NOT_INITIALIZED;
}
HRESULT WINAPI MAPIAllocateBuffer ( ULONG cvSize, LPVOID *lppBuffer )
{
ERR("Stub\n");
*lppBuffer = NULL;
return MAPI_E_NOT_INITIALIZED;
}
ULONG WINAPI MAPILogon(ULONG ulUIParam, LPSTR lpszProfileName, LPSTR
lpszPassword, FLAGS flFlags, ULONG ulReserver, LPLHANDLE lplhSession)
{
ERR("Stub\n");
return MAPI_E_FAILURE;
}
HRESULT WINAPI MAPILogonEx( ULONG ulUIParam, LPSTR lpszProfileName, LPSTR
lpszPassword, FLAGS flFlags, VOID* lppSession)
{
ERR("Stub\n");
return MAPI_E_LOGON_FAILURE;
}
VOID WINAPI MAPIUninitialize()
{
ERR("Stub\n");
}
...@@ -43,6 +43,7 @@ INSTALLED_INCLUDES = \ ...@@ -43,6 +43,7 @@ INSTALLED_INCLUDES = \
lmcons.h \ lmcons.h \
lzexpand.h \ lzexpand.h \
mapi.h \ mapi.h \
mapicode.h \
mapidefs.h \ mapidefs.h \
mciavi.h \ mciavi.h \
mcx.h \ mcx.h \
......
...@@ -7,7 +7,6 @@ extern "C" { ...@@ -7,7 +7,6 @@ extern "C" {
/* Some types */ /* Some types */
typedef unsigned char* LPBYTE;
#ifndef __LHANDLE #ifndef __LHANDLE
#define __LHANDLE #define __LHANDLE
typedef unsigned long LHANDLE, *LPLHANDLE; typedef unsigned long LHANDLE, *LPLHANDLE;
......
/*
* status codes returned by MAPI
*/
#ifndef MAPICODE_H
#define MAPICODE_H
#define MAKE_MAPI_SCODE(sev,fac,code) \
( (((ULONG)(sev)<<31) | ((ULONG)(fac)<<16) | ((ULONG)(code))) )
#define MAKE_MAPI_E( err ) (MAKE_MAPI_SCODE(1, FACILITY_ITF, err ))
#define MAPI_E_NOT_INITIALIZED MAKE_MAPI_E( 0x605)
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment