Windows2003-3790/base/screg/sc/server/lockapi.h
2020-09-30 16:53:55 +02:00

47 lines
650 B
C

/*++
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