Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 869 Bytes

UnlockServiceDatabase.md

File metadata and controls

42 lines (28 loc) · 869 Bytes

Home

Function name : UnlockServiceDatabase

Group: Service - Library: advapi32


The UnlockServiceDatabase function unlocks a service control manager database by releasing the specified lock.


Code examples:

Encapsulating access to the Windows Services in a class

Declaration:

BOOL UnlockServiceDatabase(
  SC_LOCK ScLock
);  

FoxPro declaration:

DECLARE INTEGER UnlockServiceDatabase IN advapi32;
	INTEGER ScLock  

Parameters:

ScLock [in] Lock obtained from a previous call to the LockServiceDatabase function.


Return value:

If the function succeeds, the return value is nonzero.