; --------------------------------------------------------------------------------------------------
;                           mapi32.inc Copyright The MASM32 SDK 1998-2010
; --------------------------------------------------------------------------------------------------

IFNDEF MAPI32_INC
MAPI32_INC equ <1>

; ----------------------------------------------------------------------------
; The commented out C prototypes conflict with the following STDCALL prototype
; ----------------------------------------------------------------------------

BuildDisplayTable PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
CbOfEncoded PROTO STDCALL :DWORD
CchOfEncoding PROTO STDCALL :DWORD
ChangeIdleRoutine PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
CloseIMsgSession PROTO STDCALL :DWORD
CreateIProp PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
CreateTable PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
DeinitMapiUtil PROTO STDCALL
DeregisterIdleRoutine PROTO STDCALL :DWORD
EnableIdleRoutine PROTO STDCALL :DWORD,:DWORD
EncodeID PROTO STDCALL :DWORD,:DWORD,:DWORD
FBadColumnSet PROTO STDCALL :DWORD
FBadEntryList PROTO STDCALL :DWORD
FBadProp PROTO STDCALL :DWORD
FBadPropTag PROTO STDCALL :DWORD
FBadRestriction PROTO STDCALL :DWORD
FBadRglpNameID PROTO STDCALL :DWORD,:DWORD

FBadRglpszA PROTO STDCALL :DWORD,:DWORD
IFNDEF __UNICODE__
  FBadRglpsz equ <FBadRglpszA>
ENDIF

FBadRglpszW PROTO STDCALL :DWORD,:DWORD
IFDEF __UNICODE__
  FBadRglpsz equ <FBadRglpszW>
ENDIF

FBadRow PROTO STDCALL :DWORD
FBadRowSet PROTO STDCALL :DWORD
FBadSortOrderSet PROTO STDCALL :DWORD
FBinFromHex PROTO STDCALL :DWORD,:DWORD
FDecodeID PROTO STDCALL :DWORD,:DWORD,:DWORD
FEqualNames PROTO STDCALL :DWORD,:DWORD
FGetComponentPath PROTO C :VARARG
FPropCompareProp PROTO STDCALL :DWORD,:DWORD,:DWORD
FPropContainsProp PROTO STDCALL :DWORD,:DWORD,:DWORD
FPropExists PROTO STDCALL :DWORD,:DWORD
FixMAPI PROTO C :VARARG
FreePadrlist PROTO STDCALL :DWORD
FreeProws PROTO STDCALL :DWORD
FtAdcFt PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
FtAddFt PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
FtDivFtBogus PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
FtMulDw PROTO STDCALL :DWORD,:DWORD,:DWORD
FtMulDwDw PROTO STDCALL :DWORD,:DWORD
FtNegFt PROTO STDCALL :DWORD,:DWORD
FtSubFt PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
FtgRegisterIdleRoutine PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
GetAttribIMsgOnIStg PROTO STDCALL :DWORD,:DWORD,:DWORD
GetOutlookVersion PROTO C :VARARG
;;;; GetTnefStreamCodepage PROTO C :VARARG
GetTnefStreamCodepage PROTO STDCALL :DWORD,:DWORD,:DWORD
HexFromBin PROTO STDCALL :DWORD,:DWORD,:DWORD
HrAddColumns PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
HrAddColumnsEx PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
HrAllocAdviseSink PROTO STDCALL :DWORD,:DWORD,:DWORD
HrComposeEID PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
HrComposeMsgID PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
HrDecomposeEID PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
HrDecomposeMsgID PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
HrDispatchNotifications PROTO STDCALL :DWORD
HrEntryIDFromSz PROTO STDCALL :DWORD,:DWORD,:DWORD
;;;; HrGetOmiProvidersFlags PROTO C :VARARG
HrGetOmiProvidersFlags PROTO STDCALL :DWORD,:DWORD
HrGetOneProp PROTO STDCALL :DWORD,:DWORD,:DWORD
HrIStorageFromStream PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
HrQueryAllRows PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
;;;; HrSetOmiProvidersFlagsInvalid PROTO C :VARARG
HrSetOmiProvidersFlagsInvalid PROTO STDCALL :DWORD
HrSetOneProp PROTO STDCALL :DWORD,:DWORD
HrSzFromEntryID PROTO STDCALL :DWORD,:DWORD,:DWORD
HrThisThreadAdviseSink PROTO STDCALL :DWORD,:DWORD
HrValidateIPMSubtree PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
HrValidateParameters PROTO STDCALL :DWORD,:DWORD
InstallFilterHook PROTO STDCALL :DWORD
IsBadBoundedStringPtr PROTO STDCALL :DWORD,:DWORD
LAUNCHWIZARD PROTO C :VARARG
LPropCompareProp PROTO STDCALL :DWORD,:DWORD
LaunchWizard PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
LpValFindProp PROTO STDCALL :DWORD,:DWORD,:DWORD
;;;; MAPIAdminProfiles PROTO C :VARARG
MAPIAdminProfiles PROTO STDCALL :DWORD,:DWORD
;;;; MAPIAllocateBuffer PROTO C :VARARG
MAPIAllocateBuffer PROTO STDCALL :DWORD,:DWORD
;;;; MAPIAllocateMore PROTO C :VARARG
MAPIAllocateMore PROTO STDCALL :DWORD,:DWORD,:DWORD
MAPIDeinitIdle PROTO STDCALL
;;;; MAPIFreeBuffer PROTO C :VARARG
MAPIFreeBuffer PROTO STDCALL :DWORD
MAPIGetDefaultMalloc PROTO STDCALL
MAPIInitIdle PROTO STDCALL :DWORD
;;;; MAPIInitialize PROTO C :VARARG
MAPIInitialize PROTO STDCALL :DWORD
;;;; MAPILogonEx PROTO C :VARARG
MAPILogonEx PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
;;;; MAPIOpenFormMgr PROTO C :VARARG
MAPIOpenFormMgr PROTO STDCALL :DWORD,:DWORD
;;;; MAPIOpenLocalFormContainer PROTO C :VARARG
MAPIOpenLocalFormContainer PROTO STDCALL :DWORD
;;;; MAPIUninitialize PROTO C :VARARG
MAPIUninitialize PROTO STDCALL

MNLS_CompareStringW PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
IFDEF __UNICODE__
  MNLS_CompareString equ <MNLS_CompareStringW>
ENDIF

MNLS_IsBadStringPtrW PROTO STDCALL :DWORD,:DWORD
IFDEF __UNICODE__
  MNLS_IsBadStringPtr equ <MNLS_IsBadStringPtrW>
ENDIF

MNLS_MultiByteToWideChar PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
MNLS_WideCharToMultiByte PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD

MNLS_lstrcmpW PROTO STDCALL :DWORD,:DWORD
IFDEF __UNICODE__
  MNLS_lstrcmp equ <MNLS_lstrcmpW>
ENDIF

MNLS_lstrcpyW PROTO STDCALL :DWORD,:DWORD
IFDEF __UNICODE__
  MNLS_lstrcpy equ <MNLS_lstrcpyW>
ENDIF

MNLS_lstrlenW PROTO STDCALL :DWORD
IFDEF __UNICODE__
  MNLS_lstrlen equ <MNLS_lstrlenW>
ENDIF

MapStorageSCode PROTO STDCALL :DWORD
OpenIMsgOnIStg PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
OpenIMsgSession PROTO STDCALL :DWORD,:DWORD,:DWORD
;;;; OpenStreamOnFile PROTO C :VARARG
OpenStreamOnFile PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
;;;; OpenTnefStream PROTO C :VARARG
OpenTnefStream PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
;;;; OpenTnefStreamEx PROTO C :VARARG
OpenTnefStreamEx PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
PRProviderInit PROTO C :VARARG
PpropFindProp PROTO STDCALL :DWORD,:DWORD,:DWORD
PropCopyMore PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
;;;; RTFSync PROTO C :VARARG
RTFSync PROTO STDCALL :DWORD,:DWORD,:DWORD
ScBinFromHexBounded PROTO STDCALL :DWORD,:DWORD,:DWORD
ScCopyNotifications PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
ScCopyProps PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
ScCountNotifications PROTO STDCALL :DWORD,:DWORD,:DWORD
ScCountProps PROTO STDCALL :DWORD,:DWORD,:DWORD
ScCreateConversationIndex PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
ScDupPropset PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
ScGenerateMuid PROTO STDCALL :DWORD
ScInitMapiUtil PROTO STDCALL :DWORD
ScLocalPathFromUNC PROTO STDCALL :DWORD,:DWORD,:DWORD
ScMAPIXFromCMC PROTO C :VARARG
ScMAPIXFromSMAPI PROTO C :VARARG
ScRelocNotifications PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
ScRelocProps PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
ScSplEntry PROTO C :VARARG
ScUNCFromLocalPath PROTO STDCALL :DWORD,:DWORD,:DWORD
SetAttribIMsgOnIStg PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SwapPlong PROTO STDCALL :DWORD,:DWORD
SwapPword PROTO STDCALL :DWORD,:DWORD
SzFindCh PROTO STDCALL :DWORD,:DWORD
SzFindLastCh PROTO STDCALL :DWORD,:DWORD
SzFindSz PROTO STDCALL :DWORD,:DWORD
UFromSz PROTO STDCALL :DWORD
UNKOBJ_COFree PROTO STDCALL :DWORD,:DWORD
UNKOBJ_Free PROTO STDCALL :DWORD,:DWORD
UNKOBJ_FreeRows PROTO STDCALL :DWORD,:DWORD
UNKOBJ_ScAllocate PROTO STDCALL :DWORD,:DWORD,:DWORD
UNKOBJ_ScAllocateMore PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
UNKOBJ_ScCOAllocate PROTO STDCALL :DWORD,:DWORD,:DWORD
UNKOBJ_ScCOReallocate PROTO STDCALL :DWORD,:DWORD,:DWORD
UNKOBJ_ScSzFromIdsAlloc PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
UlAddRef PROTO STDCALL :DWORD
UlFromSzHex PROTO STDCALL :DWORD
UlPropSize PROTO STDCALL :DWORD
UlRelease PROTO STDCALL :DWORD
;;;; WrapCompressedRTFStream PROTO C :VARARG
WrapCompressedRTFStream PROTO STDCALL :DWORD,:DWORD,:DWORD
WrapProgress PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
WrapStoreEntryID PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
__CPPValidateParameters PROTO STDCALL :DWORD,:DWORD
__ValidateParameters PROTO STDCALL :DWORD,:DWORD

ELSE
  echo -----------------------------------------
  echo WARNING duplicate include file mapi32.inc
  echo -----------------------------------------
ENDIF
