Share via


ICcService::Device (Windows Embedded CE 6.0)

1/5/2010

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
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

ICcService
Core Connectivity Interfaces