QUERY_SERVICE_LOCK_STATUSA structure

Contains information about the lock status of a service control manager database. It is used by the QueryServiceLockStatus function.

Syntax

typedef struct _QUERY_SERVICE_LOCK_STATUSA {
  DWORD fIsLocked;
  LPSTR lpLockOwner;
  DWORD dwLockDuration;
} QUERY_SERVICE_LOCK_STATUSA, *LPQUERY_SERVICE_LOCK_STATUSA;

Members

fIsLocked

The lock status of the database. If this member is nonzero, the database is locked. If it is zero, the database is unlocked.

lpLockOwner

The name of the user who acquired the lock.

dwLockDuration

The time since the lock was first acquired, in seconds.

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header winsvc.h (include Windows.h)

See also

QueryServiceLockStatus