Platform SDK: Exchange Server

IExchExtModelessCallback::EnableModeless

Extension objects should call this method just before they display or remove a modal dialog box, allowing the Microsoft Exchange client to enable or disable its modeless windows.

Quick Info

See IExchExtModelessCallback : IUnknown.

HRESULT EnableModeless(
  HWND hwnd,   
  BOOL fEnable 
);
 

Parameters

hwnd
[in] Handle of the parent window of the modal window being displayed or removed.
fEnable
[in] FALSE when your extension is going to display a modal window. Set to TRUE when your extension has removed its modal window.

Return Values

S_OK
No error occurred.

Remarks

If an extension object calls the IExchExtModelessCallback::EnableModeless method when it creates or removes a modal window, the Microsoft Exchange client will disable or enable its modeless windows as appropriate.