ISyncMgrSynchronizeCallback::EnableModeless method

Called by the registered application before and after any dialog boxes are displayed from within the PrepareForSync and Synchronize methods.

Syntax


HRESULT EnableModeless(
  [in] BOOL fEnable
);

Parameters

fEnable [in]

Type: BOOL

TRUE if the registered application is requesting permission to display a dialog box or FALSE if the registered application has finished displaying a dialog box.

Return value

Type: HRESULT

This method can return one of these values.

Return codeDescription
S_OK

Continue the synchronization.

S_FALSE

The dialog box should not be displayed.

 

Remarks

To request permission to display a dialog box, the registered application first calls ISyncMgrSynchronizeCallback::EnableModeless with fEnable set to TRUE. If S_OK is returned, the registered application may display the dialog box. Once the dialog box has been displayed, the registered application must call ISyncMgrSynchronizeCallback::EnableModeless with fEnable set to FALSE to notify SyncMgr that other items may now display user interface elements.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Mobsync.h

DLL

Mobsync.dll

See also

ISyncMgrSynchronizeCallback
PrepareForSync
Synchronize

 

 

Show: