Consider the following for all the WBMAPI.DLL functions:
To use a function described in this section, you must include the corresponding Declare statement, which you can copy directly from the aaAllDeclarations macro in WBMAPI.DOT. For more information, see "Loading the Workgroup Extensions" earlier in this appendix.
MAPILogon must be called successfully to open a MAPI session before any other function call. End each WordBasic macro with MAPILogoff to close the MAPI session.
You should usually pass 0 (zero) for the UIParam argument in the function declarations later in this appendix. Although it is unlikely that dialog box pointers could be useful to the typical WordBasic programmer, the argument is still represented to support the full generality of MAPI.
Always pass 0 (zero) for the Reserved argument in the functions declarations. The current version of MAPI does not support this argument.
Add flag values to set multiple flags for a function call. The following example calls MAPILogon with two flags: