ISyncMgrControl::StopSyncAll method
Stops the synchronization of all items managed by all handlers.
Syntax
HRESULT StopSyncAll();
Parameters
This method has no parameters.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Examples
The following example shows the usage of ISyncMgrControl::StopSyncAll by a handler's procedure.
void CMyDeviceHandler::MiscProc(...) { ... // Get the Sync Center control object. ISyncMgrControl *pControl = NULL; hr = CoCreateInstance(CLSID_SyncMgrControl, CLSCTX_SERVER, IID_PPV_ARGS(&pControl)); if (SUCCEEDED(hr)) { // Stop synchronizing all sync items for all sync handlers. hr = pControl->StopSyncAll(); pControl->Release(); } ... }
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
IDL |
|
Show: