网站首页  词典首页

请输入您要查询的函数:

 

术语 unlockservicedatabase
释义 UnlockServiceDatabase
语法:
C++
BOOL WINAPI UnlockServiceDatabase(
__in SC_LOCK ScLock
);
UnlockServiceDatabase功能
[此函数有没有Windows Vista的效果。]
解锁释放指定的锁定服务控制管理数据库。
参数
ScLock [in]
锁,这是从以前的调用LockServiceDatabase函数获得。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
下面的错误代码可以设置由服务控制管理器。其他的错误代码可以设置的注册表由服务控制管理器调用的函数。
返回codeDescription
ERROR_INVALID_SERVICE_LOCKThe指定的锁定无效。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinsvc.h(头文件:winuser.h)
LibraryAdvapi32.lib
DLLAdvapi32.dll
参见
LockServiceDatabase
QueryServiceLockStatus
服务配置
服务函数
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==UnlockServiceDatabase Function
[This function has no effect as of Windows Vista.]
Unlocks a service control manager database by releasing the specified lock.
Syntax
C++
BOOL WINAPI UnlockServiceDatabase(
__in SC_LOCK ScLock
);
Parameters
ScLock [in]
The lock, which is obtained from a previous call to the LockServiceDatabase function.
Return Value
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.
Return codeDescription
ERROR_INVALID_SERVICE_LOCKThe specified lock is invalid.

Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinsvc.h (include Windows.h)
LibraryAdvapi32.lib
DLLAdvapi32.dll
See Also
LockServiceDatabase
QueryServiceLockStatus
Service Configuration
Service Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms686865(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:20:14