Partager via


ICcService::Initialize (Windows CE 5.0)

Send Feedback

This method initializes the service.

HRESULT Initialize(  LPCOLESTRpwszDeviceId);

Parameters

  • pwszDeviceId
    [in] The device ID.

Return Values

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

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.