Source code of Windows XP (NT5)
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

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. lockapi.h
  5. Abstract:
  6. SC Manager database lock worker routines.
  7. Author:
  8. Rita Wong (ritaw) 06-Aug-1992
  9. Revision History:
  10. --*/
  11. #ifndef SCLOCKAPI_INCLUDED
  12. #define SCLOCKAPI_INCLUDED
  13. //
  14. // Function Prototypes
  15. //
  16. DWORD
  17. ScLockDatabase(
  18. IN BOOL LockedByScManager,
  19. IN LPWSTR DatabaseName,
  20. OUT LPSC_RPC_LOCK lpLock
  21. );
  22. VOID
  23. ScUnlockDatabase(
  24. IN OUT LPSC_RPC_LOCK lpLock
  25. );
  26. DWORD
  27. ScGetLockOwner(
  28. IN PSID UserSid OPTIONAL,
  29. OUT LPWSTR *LockOwnerName
  30. );
  31. #endif // #ifndef SCLOCKAPI_INCLUDED