OPTIONCALLBACK
The OPTIONCALLBACK
function prototype defines a callback function that MAPI calls to retrieve a
wrapped IMAPIProp interface that manages a transport provider s properties.
Quick Info
Header
file: |
MAPISPI.H |
Defined
function implemented by: |
Transport
providers |
Defined
function called by: |
MAPI |
SCODE OPTIONCALLBACK(
HINSTANCE hInst, |
|
LPMALLOC lpMalloc,
|
|
ULONG ulFlags,
|
|
ULONG cbOptionData, |
|
LPBYTE lpbOptionData, |
|
LPMAPISUP lpMAPISup,
|
|
LPMAPIPROP lpDataSource, |
|
LPMAPIPROP FAR * lppWrappedSource, |
|
LPMAPIERROR FAR * lppMAPIError |
|
); |
|
Parameters
hInst
[in] The hinstance
value for this transport provider s
dynamic link library (DLL) as returned from the LoadLibrary function call
made by MAPI.
lpMalloc
[in] Pointer
to a memory allocator object exposing the OLE IMalloc interface. The
transport provider may need to use this allocation method when working with
certain interfaces such as IStream.
ulFlags
[in] Bitmask
of flags that controls what options are processed. The following flags can be
set:
OPTION_TYPE_MESSAGE
Message
options.
OPTION_TYPE_RECIPIENT
Recipient
options.
cbOptionData
[in] Size, in
bytes, of the data pointed to by the lpbOptionData parameter.
lpbOptionData
[in] Pointer
to an OPTIONDATA structure containing option data for the recipient or
message. This OPTIONDATA structure was passed in the call to the IXPLogon::RegisterOptions
lpMAPISup
[in] Pointer
to a MAPI support object the provider can use to call the methods of the IMAPISupport
: IUnknown
lpDataSource
[in] Pointer
to an IMAPIProp : IUnknown
interface that MAPI wraps for the transport provider s use.
lppWrappedSource
[out] Pointer
to a pointer to the wrapped IMAPIProp interface returned by the
transport provider.
lppMAPIError
[out] Pointer
to a pointer to the returned MAPIERROR
Return Values
S_OK
The call
succeeded and has returned the expected value or values.
Remarks
MAPI calls
the transport provider s OPTIONCALLBACK function if a transport provider
has previously registered message options with the IXPLogon::RegisterOptions
MAPI passes a
wrapped IMAPIProp : IUnknown
For more information
on how to create display tables, see Display Tables