QUERY_SERVICE_LOCK_STATUS
The QUERY_SERVICE_LOCK_STATUS structure is used by the QueryServiceLockStatus function to return information about the lock status of a service control manager database.
typedef struct _QUERY_SERVICE_LOCK_STATUS {
DWORD fIsLocked;
LPTSTR lpLockOwner;
DWORD dwLockDuration;
} QUERY_SERVICE_LOCK_STATUS,
*LPQUERY_SERVICE_LOCK_STATUS;
Members
-
fIsLocked
- Lock status of the database. If this member is nonzero, the database is locked. If it is zero, the database is unlocked. lpLockOwner
- Pointer to a null-terminated string containing the name of the user who acquired the lock. dwLockDuration
- Time since the lock was first acquired, in seconds.
Requirements
| Client | Requires Windows XP, Windows 2000 Professional, or Windows NT Workstation. |
|---|---|
| Server | Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server. |
| Header | Declared in Winsvc.h; include Windows.h. |
| Unicode | Implemented as QUERY_SERVICE_LOCK_STATUSW (Unicode) and QUERY_SERVICE_LOCK_STATUSA (ANSI). |
博客介绍了QUERY_SERVICE_LOCK_STATUS结构,该结构由QueryServiceLockStatus函数使用,用于返回服务控制管理器数据库的锁定状态信息,还提及了成员和要求等内容。
1415

被折叠的 条评论
为什么被折叠?



