Share via


ICcService::Device (Windows CE 5.0)

Send Feedback

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

HRESULT Device (  BSTR* pbstrDeviceId);

Parameters

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

Return Values

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

OS Version: Windows CE 5.0 and later.
Header: CcService.h.
Link Library: none.

See Also

Core Connectivity Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.