GetActivityByHomepageAndCategory method

Retrieves an Accelerator based on its home-page URL and category.

Syntax

var retval = OpenServiceActivityManager.GetActivityByHomepageAndCategory(pwzHomepage, pwzCategory);

Parameters

  • pwzHomepage [in]
    Type: LPCWSTR

    The complete home-page URL.

  • pwzCategory [in]
    Type: LPCWSTR

    The category or verb.

  • ppActivity [out]
    Type: [IOpenServiceActivity](cc956226(v=vs.85).md)

    An IOpenServiceActivity interface that contains the retrieved Accelerator.

Return value

Type: HRESULT

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

See also

OpenServiceActivityManager

IOpenServiceActivityManager::GetActivityByID