4.25 WFSUnlock
HRESULT WFSUnlock( hService )
Releases a service that has been locked by a previous WFSLock or WFSAsyncLock function. The synchronous version of WFSAsyncUnlock.
Parameters HSERVICE hService
Handle to the service provider as returned by WFSOpen or WFSAsyncOpen.
Mode Synchronous
Comments See Section 3.8.
Error Codes If the function return is not WFS_SUCCESS, it is one of the following error conditions:
-
WFS_ERR_CANCELED
-
The request was canceled by WFSCancelBlockingCall.
-
WFS_ERR_CONNECTION_LOST
-
The connection to the service is lost.
-
WFS_ERR_INTERNAL_ERROR
-
An internal inconsistency or other unexpected error occurred in the WOSA/XFS subsystem.
-
WFS_ERR_INVALID_HSERVICE
-
The hService parameter is not a valid service handle.
-
WFS_ERR_NOT_LOCKED
-
The application requesting a service be unlocked had not previously performed a successful WFSLock or WFSAsyncLock.
-
WFS_ERR_NOT_STARTED
-
The application has not previously performed a successful WFSStartUp.
-
WFS_ERR_OP_IN_PROGRESS
-
A blocking operation is in progress on the thread; only WFSCancelBlockingCall and WFSIsBlocking are permitted at this time.
See also WFSAsyncUnlock, WFSLock, WFSAsyncLock