Share via


ICcService::Device (Compact 2013)

3/26/2014

Deprecated.

This method gets the device ID of the device associated with a service.

Syntax

HRESULT Device (
  BSTR* pbstrDeviceId
);

Parameters

  • pbstrDeviceId
    [out, retval] The ID of the device associated with the service.

Return Value

The following table shows return values for this method.

Value

Description

S_OK

Indicates success.

E_INVALIDARG

Indicates invalid input arguments.

Remarks

The service host uses this method to cache the associated service.

Clients can use pbstrDeviceId to create a device object from the Datastore.

Requirements

Header

ccservice.h

See Also

Reference

ICcService
Core Connectivity Interfaces