Partager via


ICcService::Initialize (Compact 2013)

3/26/2014

Deprecated.

This method initializes the service.

Syntax

HRESULT Initialize (
  LPCOLESTR pwszDeviceId
);

Parameters

  • pwszDeviceId
    [in] The device ID.

Return Value

The following table shows return values for this method.

Value

Description

S_OK

Indicates success.

E_INVALIDARG

Indicates invalid arguments.

E_FAIL

Indicates any other failure.

Remarks

Service initialization needs to be done only once for the lifetime of the service.

If this method is called multiple times over the lifetime of the service, the service behavior is implementation-dependent.

If this method call is successful, the service should set its internal state to SERVICE_INIT_CONFIGURE_NO_CONNECT if the service is not connected.

If the service is not configured and not connected, the service should set the state to SERVICE_INIT_NO_CONFIGURE.

Requirements

Header

ccservice.h

See Also

Reference

ICcService
Core Connectivity Interfaces