<div class="content" name="QUERY_SERVICE_LOCK_STATUSW" uuid="32df480e-f28d-4a68-a182-39692b7c9a78"><p>The QUERY_SERVICE_LOCK_STATUSW structure defines information
about the lock status of an <span><a href="4f66d32e-2f4f-4482-998e-e5ccbb445223#gt_afc3f782-a908-486d-9c05-8a054cd9cc84" data-linktype="relative-path">SCM</a></span> database. String
values are stored in Unicode.</p><dl>
<dd>
<div><pre> typedef struct _QUERY_SERVICE_LOCK_STATUSW {
   DWORD fIsLocked;
   [string,range(0, 8 * 1024)] LPWSTR lpLockOwner;
   DWORD dwLockDuration;
 } QUERY_SERVICE_LOCK_STATUSW,
  *LPQUERY_SERVICE_LOCK_STATUSW;
</pre></div>
</dd></dl><p><b>fIsLocked:</b>  The lock status of the
database. If this member is nonzero, the database is locked. If it is 0, the
database is unlocked.</p><p><b>lpLockOwner:</b>  A pointer to a
null-terminated string that contains the name of the user that acquired the
lock.</p><p><b>dwLockDuration:</b>  The elapsed time,
in seconds, since the lock was first acquired.</p></div>