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.
Initializes an IOpenService object from registry settings.
![]() |
Syntax
var retval = OpenServiceManager.GetServiceByID(pwzID);
Parameters
pwzID [in]
Type: LPCWSTRThe Accelerator ID returned by IOpenService::GetID.
ppService [out]
Type: IOpenServiceThe IOpenService interface that receives the object.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
The service ID is set when the service is installed. Use IOpenService::GetID to retrieve the ID and save it to the registry or to disk for later use. The ID is unique for the lifetime of the Accelerator.
See also
Reference