ICcService::UnlockService (Compact 2013)
3/26/2014
Deprecated.
This method decrements the lock count for the service.
Syntax
HRESULT UnlockService()
Parameters
None.
Return Value
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 and the underlying connection is terminated.
A client calls this API explicitly before releasing a service if the client obtained the service by using 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 0.
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 still must call UnlockService before they release the service.
Requirements
Header |
ccservice.h |