UnlockServiceDatabase
来源:互联网 发布:mac系统有安卓模拟器吗 编辑:程序博客网 时间:2024/06/08 00:20
UnlockServiceDatabase
The UnlockServiceDatabase function unlocks a service control manager database by releasing the specified lock.
BOOL UnlockServiceDatabase( SC_LOCK ScLock);
Parameters
- ScLock
- [in] Lock obtained from a previous call to the LockServiceDatabase function.
Return Values
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.
Example Code
For an example, see Changing A Service Configuration.
Requirements
Declared in Winsvc.h; include Windows.h.
Link to Advapi32.lib.
- UnlockServiceDatabase
- UnlockServiceDatabase
- ServiceMain
- SetServiceBits
- SetServiceStatus
- StartService
- StartServiceCtrlDispatcher
- UnlockServiceDatabase
- 编写测试需求及测试用例
- [转]如果有那么一间学校
- 对比.NET PetShop和Duwamish来探讨Ado.NET的数据库编程模式
- Duwamish深入剖析-配置篇
- Duwamish深入剖析-结构篇
- 读《Design Patterns》
- tomcat5.0.27以上版本,在用lomboz+eclipse时,出现class loader exception的解决
- windows2000环境下的CVS建立