GetActivityByID method
Retrieves the Accelerator having the specified ID.
Syntax
var retval = OpenServiceActivityManager.GetActivityByID(pwzActivityID);
Parameters
pwzActivityID [in]
Type: LPCWSTRThe Accelerator ID. See IOpenServiceManager::GetServiceByID for possible values.
ppActivity [out]
Type: IOpenServiceActivityAn IOpenServiceActivity interface that contains the retrieved Accelerator.
Return value
Type: HRESULT
This method can return one of these values.
Return code | Description |
---|---|
OS_E_NOTFOUND | The Accelerator was not found. |
See also
Reference
IOpenServiceActivityManager::GetActivityByHomepageAndCategory