51 if (!IsServiceController)
134 lpLockStatus->fIsLocked =
TRUE;
137 lpLockStatus->lpLockOwner =
NULL;
143 lpLockStatus->fIsLocked =
FALSE;
148 lpLockStatus->dwLockDuration = 0;
166 lpLockStatus->fIsLocked =
TRUE;
169 lpLockStatus->lpLockOwner =
NULL;
175 lpLockStatus->fIsLocked =
FALSE;
180 lpLockStatus->dwLockDuration = 0;
char * strcpy(char *DstString, const char *SrcString)
VOID ScmUnlockDatabase(VOID)
BOOL ScmLockDatabaseExclusive(VOID)
BOOL ScmLockDatabaseShared(VOID)
VOID ScmQueryServiceLockStatusW(OUT LPQUERY_SERVICE_LOCK_STATUSW lpLockStatus)
static PSTART_LOCK pServiceStartLock
VOID ScmQueryServiceLockStatusA(OUT LPQUERY_SERVICE_LOCK_STATUSA lpLockStatus)
DWORD ScmAcquireServiceStartLock(IN BOOL IsServiceController, OUT LPSC_RPC_LOCK lpLock)
DWORD ScmReleaseServiceStartLock(IN OUT LPSC_RPC_LOCK lpLock)
struct _START_LOCK * PSTART_LOCK
struct _START_LOCK START_LOCK
#define ERROR_NOT_ENOUGH_MEMORY
#define HeapFree(x, y, z)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
SC_RPC_LOCK * LPSC_RPC_LOCK
#define ERROR_INVALID_SERVICE_LOCK
#define ERROR_SERVICE_DATABASE_LOCKED
struct _QUERY_SERVICE_LOCK_STATUSW QUERY_SERVICE_LOCK_STATUSW
struct _QUERY_SERVICE_LOCK_STATUSA QUERY_SERVICE_LOCK_STATUSA