Freigeben über


ICcService::UnlockService (Windows CE 5.0)

Send Feedback

This method decrements the lock count for the service.

HRESULT UnlockService()

Parameters

None.

Return Values

The following table shows return values for this method.

Value Description
S_OK Indicates success.
E_FAIL Indicates failure.

Remarks

If the lock count of the service goes to 0, a service host is signaled to clear this service from its internal cache.

A client calls this API explicitly before releasing a service if the client obtained the service via a service host.

If the client created the service directly, the client should call this API only if the client also called ICcService::LockService.

This method translates to no-op if the lock count is zero.

If this service is loaded by the service host, LockService is called by the service host on behalf of external clients when external clients call ICcSvcHost::GetService. Clients must still call UnlockService before they release the service.

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.