HRESULT GetSession(
LPMAPISESSION FAR * lppses, LPADRBOOK FAR * lppab );
Parameters
lppses
[out] Pointer to a pointer to the current MAPI session object.
lppab
[out] Pointer to a pointer to the address book object associated with the lppses parameter.
Return Values
S_OK
Either the lppses or lppab parameter returned a non-null value.
S_FALSE
Both the lppses and lppab parameters returned NULL values.
E_INVALIDARG
Both the lppses and lppab parameters are NULL.
Remarks
The lppses and lppab parametersmight be NULL. Both interfaces must be released before the method which was passed the lpeecb parameter returns a value.