GetActivityEnumerator method

Retrieves a collection of Accelerators that can execute given the specified input and output context.

Syntax

HRESULT retVal = object.GetActivityEnumerator(pInput, pOutput, ppEnumActivity);

Parameters

  • pInput [in]
    Type: [IOpenServiceActivityInput](cc849074(v=vs.85).md)

    An IOpenServiceActivityInput interface that specifies a content type, or NULL to enumerate all entries in the category.

  • pOutput [in]
    Type: [IOpenServiceActivityOutputContext](cc849069(v=vs.85).md)

    An IOpenServiceActivityOutputContext interface that specifies the output context, or NULL to specify no output context.

  • ppEnumActivity [out]
    Type: [IEnumOpenServiceActivity](https://msdn.microsoft.com/en-us/library/ie.ienumopenserviceactivity(v=VS.85))

    The IEnumOpenServiceActivity interface that contains the collection.

Return value

Type: HRESULT

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

Remarks

If specified, the pInput and pOutput parameters are used to filter which Accelerators appear in the collection. If they are NULL, the type used to initialize the IEnumOpenServiceActivityCategory enumerator will be used instead. See IOpenServiceActivityManager::GetCategoryEnumerator.

An Accelerator may support multiple content types. If the content type of the pInput parameter is different than the type used to initialize the category enumerator, then only Accelerators that support both types are included in the results.

See also

Reference

IOpenServiceActivity::CanExecute

IOpenServiceActivity::CanExecuteType