IsServiceInstalled method

Check if a service is already installed.

 

Syntax

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

Parameters

URL [in]

Type: BSTR

The main document 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]

Type: DWORD

A Pointer that returns 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.

Standards information

There are no standards that apply here.

See also

IShellUIHelper3::AddService