Check if a service is already installed.
HRESULT IsServiceInstalled( BSTR URL, BSTR Verb, DWORD *pdwResult );
- [in] The main document of the activity that you want to query for.
- [in] The type of action that this activity performs. Case-insensitive.
- [out, retval] A Pointer that returns one of the following values:
- The service is not yet installed.
- The service is installed.
- The service is installed and it is the default for its verb type.
Returns S_OK if successful, or an error value otherwise.