Compartilhar via


AddService method

User initiated action to add a service.

This method is not supported for Windows apps using JavaScript.

 

Syntax

HRESULT retVal = object.AddService(URL);

Parameters

  • URL [in]
    Type: BSTR

    Specifies the URL for an XML Activity. This URL has to be a navigable HTTP or HTTPS URL.

Return value

Type: HRESULT

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

Standards information

There are no standards that apply here.

Remarks

Installs an xml activity with the specified XML URL.

See also

IShellUIHelper3::IsServiceInstalled