ISyncMgrHandler::GetPolicies method (syncmgr.h)

Gets a set of flags describing the policies set by the handler.

Syntax

HRESULT GetPolicies(
  [out] SYNCMGR_HANDLER_POLICIES *pmPolicies
);

Parameters

[out] pmPolicies

Type: SYNCMGR_HANDLER_POLICIES*

When this method returns, contains a pointer to a bitwise combination of values from the SYNCMGR_HANDLER_POLICIES enumeration that define the handler's policies.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

A policy is an action that is usually supported but can be disabled by a group policy.

This method is called by Sync Center in response to a call to UpdateHandler or UpdateHandlerCollection.

Examples

The following example shows an implementation of this method.

STDMETHODIMP CMyDeviceHandler::GetPolicies(
                             __out SYNCMGR_HANDLER_POLICIES *pmPolicies)
{
    *pmPolicies = SYNCMGR_HPM_NONE;
    return S_OK;
}

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header syncmgr.h