Leaked source code of windows server 2003
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
737 B

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name:
  4. secutils.h
  5. Abstract:
  6. The security utility functions for the shims.
  7. History:
  8. 02/09/2001 maonis Created
  9. 08/14/2001 robkenny Inserted inside the ShimLib namespace.
  10. --*/
  11. #pragma once
  12. #ifndef _SEC_UTILS_H_
  13. #define _SEC_UTILS_H_
  14. #include "ShimHook.h"
  15. #include <aclapi.h>
  16. namespace ShimLib
  17. {
  18. BOOL SearchGroupForSID(DWORD dwGroup, BOOL* pfIsMember);
  19. BOOL ShouldApplyShim();
  20. BOOL AdjustPrivilege(LPCWSTR pwszPrivilege, BOOL fEnable);
  21. //
  22. // File specific
  23. //
  24. BOOL RequestWriteAccess(DWORD dwCreationDisposition, DWORD dwDesiredAccess);
  25. }; // end of namespace ShimLib
  26. #endif // _SEC_UTILS_H_