Skip to content
Snippets Groups Projects
Commit 71a081ca authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard
Browse files

Added some MAPI stubs.

parent c2a5ebc9
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ type win32
import ntdll.dll
debug_channels()
debug_channels (mapi)
@ stub BMAPIAddress
@ stub BMAPIDetails
......@@ -94,7 +94,7 @@ debug_channels()
@ stub MAPIAddress
@ stub MAPIAdminProfiles
# @ stub MAPIAdminProfiles@8
@ stub MAPIAllocateBuffer
@ stdcall MAPIAllocateBuffer(long ptr) MAPIAllocateBuffer
# @ stub MAPIAllocateBuffer@8
@ stub MAPIAllocateMore
# @ stub MAPIAllocateMore@12
......@@ -106,11 +106,11 @@ debug_channels()
# @ stub MAPIFreeBuffer@4
@ stub MAPIGetDefaultMalloc@0
@ stub MAPIInitIdle@4
@ stub MAPIInitialize
@ stdcall MAPIInitialize(ptr) MAPIInitialize
# @ stub MAPIInitialize@4
@ stub MAPILogoff
@ stub MAPILogon
@ stub MAPILogonEx
@ stdcall MAPILogon(long ptr ptr long long ptr) MAPILogon
@ stdcall MAPILogonEx(long ptr ptr long ptr) MAPILogonEx
# @ stub MAPILogonEx@20
@ stub MAPIOpenFormMgr
# @ stub MAPIOpenFormMgr@8
......@@ -121,7 +121,7 @@ debug_channels()
@ stub MAPISaveMail
@ stub MAPISendDocuments
@ stub MAPISendMail
@ stub MAPIUninitialize
@ stdcall MAPIUninitialize() MAPIUninitialize
# @ stub MAPIUninitialize@0
@ stub MNLS_CompareStringW@24
@ 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 = \
lmcons.h \
lzexpand.h \
mapi.h \
mapicode.h \
mapidefs.h \
mciavi.h \
mcx.h \
......
......@@ -7,7 +7,6 @@ extern "C" {
/* Some types */
typedef unsigned char* LPBYTE;
#ifndef __LHANDLE
#define __LHANDLE
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment