我是靠谱客的博主 如意微笑,这篇文章主要介绍UnlockServiceDatabaseUnlockServiceDatabase,现在分享给大家,希望可以做个参考。

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.

Return codeDescription
ERROR_INVALID_SERVICE_LOCKThe specified lock is invalid.

Example Code

For an example, see Changing A Service Configuration.

Requirements

ClientRequires Windows XP, Windows 2000 Professional, or Windows NT Workstation.
ServerRequires Windows Server 2003, Windows 2000 Server, or Windows NT Server.
Header

Declared in Winsvc.h; include Windows.h.

Library

Link to Advapi32.lib.

DLLRequires Advapi32.dll.

最后

以上就是如意微笑最近收集整理的关于UnlockServiceDatabaseUnlockServiceDatabase的全部内容,更多相关UnlockServiceDatabaseUnlockServiceDatabase内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(120)

评论列表共有 0 条评论

立即
投稿
返回
顶部