IMAPISupport::RegisterPreprocessor
The IMAPISupport::RegisterPreprocessor
method registers a transport provider s preprocessor function, a function that
conforms to the PreprocessMessage
Quick Info
See IMAPISupport
: IUnknown
HRESULT RegisterPreprocessor(
LPMAPIUID lpMuid,
|
|
LPTSTR lpszAdrType, |
|
LPTSTR lpszDLLName, |
|
LPSTR lpszPreprocess, |
|
LPSTR lpszRemovePreprocessInfo, |
|
ULONG ulFlags |
|
) |
|
Parameters
lpMuid
[in] Pointer
to the MAPIUID
lpszAdrType
[in] Pointer
to the address type for the messages the function operates on, such as FAX,
SMTP, or X500. The lpszAdrType parameter can be NULL.
lpszDLLName
[in] Pointer
to the name of the dynamic-link library (DLL) containing the entry point for
the preprocessor function.
lpszPreprocess
[in] Pointer
to the name of the preprocessor function. The lpszPreprocess parameter
can be NULL.
lpszRemovePreprocessInfo
[in] Pointer
to the name of the function that removes preprocessor information, a function
that conforms to the RemovePreprocessInfo
ulFlags
Reserved;
must be zero.
Return Values
S_OK
The
preprocessor function was successfully registered.
Remarks
The IMAPISupport::RegisterPreprocessor
method is implemented for transport provider support objects only. Transport
providers call the IMAPISupport::RegisterPreprocessor method to register
a preprocessor function a function
that conforms to the PreprocessMessage prototype. A preprocessor
function must be registered before it can be called by the MAPI spooler.
The lpszPreprocess,
lpszRemovePreprocessInfo and lpszDLLName parameters should all
point to strings that can be used in conjunction with calls to the Win32 GetProcAddress
function, allowing the preprocessor s DLL entry point to be called correctly.
Notes to Callers
Calls to
preprocessors are specific to transport provider order. This means that if
another transport provider ahead of your provider is able to handle a message,
your preprocessor function will not get called for that message. Your
preprocessor function will only be called for messages that you will handle.
Preprocessor
functions can be written to handle either a specific identifier stored in a MAPIUID
See Also