Win32-2.3.0.2: A binding to part of the Win32 library

Copyright(c) Esa Ilari Vuokko, 2006
LicenseBSD-style (see the file LICENSE)
MaintainerEsa Ilari Vuokko <ei@vuokko.info>
Stabilityprovisional
Portabilityportable
Safe HaskellTrustworthy
LanguageHaskell98

System.Win32.SimpleMAPI

Description

FFI-bindings to interact with SimpleMAPI

Synopsis

Documentation

type ULONG = DWORD

type LHANDLE = ULONG

newtype MapiRecipDesc

Constructors

MapiRecipDesc () 

mapiFail_ :: String -> IO ULONG -> IO ()

withMapiFuncs :: [String] -> (MapiFuncs -> IO a) -> IO a

mapiLogon

Arguments

:: MapiFuncs

Functions loaded from MAPI DLL

-> Maybe HWND

Parent window, used for modal logon dialog

-> Maybe String

Session

-> Maybe String

Password

-> MapiFlag

None, one or many flags: FORCE_DOWNLOAD, NEW_SESSION, LOGON_UI, PASSWORD_UI

-> IO LHANDLE 

Create Simple MAPI-session by logon

mapiLogoff :: MapiFuncs -> LHANDLE -> Maybe HWND -> IO ()

End Simple MAPI-session

data FileTag

Constructors

FileTag 

Instances

withFileTag :: FileTag -> (Ptr FileTag -> IO a) -> IO a

handleIOException :: (IOException -> IO a) -> IO a -> IO a