IWPCProviderState::Enable method (wpcapi.h)

Notifies the third-party application that it has been selected as the new current provider.

Syntax

HRESULT Enable();

Return value

If the method succeeds, the function returns S_OK.

If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.

Remarks

This method is called when the current provider is changed through the drop-down list in the Parental Controls Control Panel.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header wpcapi.h

See also

IWPCProviderState