Share via


ICcService::Initialize

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/27/2008

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

See Also

Reference

Core Connectivity Interfaces