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 { // qsls 
    DWORD fIsLocked; 
    LPTSTR lpLockOwner; 
    DWORD dwLockDuration; 
} QUERY_SERVICE_LOCK_STATUS, * LPQUERY_SERVICE_LOCK_STATUS ; 
 

Members

fIsLocked
Specifies whether the database is locked. 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
Specifies the time, in seconds, since the lock was first acquired.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in winsvc.h.
  Unicode: Defined as Unicode and ANSI structures.

See Also

Services Overview, Service Structures, QueryServiceLockStatus