Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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