mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
604 B
46 lines
604 B
/*++
|
|
|
|
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
|