Logoff - cMapiHandler
Disconnects the DataFlex application from the MAPI system
Type: Function
Return Data Type: Integer
Syntax
Function Logoff Returns Integer
Call Example
Get Logoff to IntegerVariable
Description
Logoff disconnects the DataFlex application from the MAPI system. When the mapisessionid (stored in the property phSessionID - contains a sessionid) the MAPI DLL call to disconnect is invoked. On error a stop box with the error code is shown.
This function returns one of the following error codes if not successful:
| Error code | Meaning |
|---|---|
| 2 | The flFlags parameter is invalid or one or more unspecified errors occurred. |
| 5 | There was insufficient memory to proceed. The session was not terminated. |
| 19 | An invalid session handle was used for the lhSession parameter. The session was not terminated. |
Example
Get Logoff Of oMapiSession To iRetval
Return Value
Returns an error codes if not successful