windows-nt/Source/XPSP1/NT/base/screg/sc/server/lockapi.h

47 lines
604 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*++
Copyright (c) 1992 Microsoft Corporation
Module Name:
lockapi.h
Abstract:
SC Manager database lock worker routines.
Author:
Rita Wong (ritaw) 06-Aug-1992
Revision History:
--*/
#ifndef SCLOCKAPI_INCLUDED
#define SCLOCKAPI_INCLUDED
//
// Function Prototypes
//
DWORD
ScLockDatabase(
IN BOOL LockedByScManager,
IN LPWSTR DatabaseName,
OUT LPSC_RPC_LOCK lpLock
);
VOID
ScUnlockDatabase(
IN OUT LPSC_RPC_LOCK lpLock
);
DWORD
ScGetLockOwner(
IN PSID UserSid OPTIONAL,
OUT LPWSTR *LockOwnerName
);
#endif // #ifndef SCLOCKAPI_INCLUDED