UnlockServiceDatabase function (winsvc.h)
[This function has no effect as of Windows Vista.]
Unlocks a service control manager database by releasing the specified lock.
BOOL UnlockServiceDatabase( [in] SC_LOCK ScLock );
The lock, which is obtained from a previous call to the LockServiceDatabase function.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
The following error codes can be set by the service control manager. Other error codes can be set by the registry functions that are called by the service control manager.
||The specified lock is invalid.|
|Minimum supported client||Windows XP [desktop apps only]|
|Minimum supported server||Windows Server 2003 [desktop apps only]|
|Header||winsvc.h (include Windows.h)|