Share via


IBTService::Enable (Compact 2013)

3/26/2014

This method enables or disables the service.

Syntax

HRESULT Enable(BOOL fEnable);

Parameters

  • fEnable
    [in] Set TRUE to enable the service; FALSE to disable.

Return Value

The following table shows the possible return values.

Value

Description

S_OK

Success.

E_FAIL

Undefined failure.

Remarks

This method automatically saves the changed status of the service in the registry. If the service status is changed this function notifies the service extensions by calling OnBthDeviceAdded or OnBthDeviceRemoved.

See Also

Reference

IBTService

Other Resources

Bluetooth