47 lines
650 B
C
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
|