win32service.QueryServiceLockStatus

(int, PyUnicode, int) = QueryServiceLockStatus(hSCManager)

Retrieves the lock status of the specified service control manager database.

Parameters

hSCManager : PySC_HANDLE

Handle to the SCM.

Return Value

The result is a tuple of (bIsLocked, userName, lockDuration)