The QUERY_SERVICE_LOCK_STATUSA structure defines information about the lock status of an SCM database. String values are stored in ANSI.
typedef struct {
DWORD fIsLocked;
[string,range(0, 8 * 1024)] char* lpLockOwner;
DWORD dwLockDuration;
} QUERY_SERVICE_LOCK_STATUSA,
*LPQUERY_SERVICE_LOCK_STATUSA;
fIsLocked: The lock status of the database. If this member is nonzero, the database is locked. If it is 0, the database is unlocked.
lpLockOwner: A pointer to a null-terminated string that contains the name of the user that acquired the lock.
dwLockDuration: The elapsed time, in seconds, since the lock was first acquired.