IMAPIForm::GetViewContext

The IMAPIForm::GetViewContext method returns the current view context for a form.

Quick Info

See IMAPIForm : IUnknown1MIPF86.

 

HRESULT GetViewContext(

    LPMAPIVIEWCONTEXT FAR * ppViewContext

 

   )

 

 

Parameters

ppViewContext

[out] Pointer to a pointer to the view context object.

 

Return Values

S_OK

The call succeeded and has returned the expected value or values.

S_FALSE

The form object doesn t have a view context.

 

Remarks

The view context object returned from the GetViewContext method is the one obtained by the form object from the preceeding call to IMAPIForm::SetViewContext18DU3EN. If no client application has previously called SetViewContext, this method should return NULL in ppViewContext.

See Also

IMAPIForm::SetViewContext, IMAPIViewContext : IUnknown