Share via


IsServiceInstalled method

Check if a service is already installed.

 

Syntax

HRESULT retVal = object.IsServiceInstalled(URL, Verb, pdwResult);

Parameters

URL [in]

Type: BSTR

The homepage of the activity that you want to query for.

Verb [in]

Type: BSTR

The type of action that this activity performs. Case-insensitive.

pdwResult [out, retval]

C++ A Pointer that returns one of the following values:
JScript One of the following values:

return (0)

The service is not yet installed.

Return (1)

The service is installed.

Return (2)

The service is installed and it is the default for its verb type.

Return value

Type: HRESULT

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

See also

window

external

IShellUIHelper3::AddService