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.
|
|
/*++
Copyright (c) 2001 Microsoft Corporation
Module Name:
secutils.h
Abstract: The security utility functions for the shims.
History:
02/09/2001 maonis Created 08/14/2001 robkenny Inserted inside the ShimLib namespace.
--*/
#ifndef _SEC_UTILS_H_
#define _SEC_UTILS_H_
#include "ShimHook.h"
#include <aclapi.h>
namespace ShimLib {
#define ComputeDeniedAccesses(GrantedAccess, DesiredAccess) \
((~(GrantedAccess)) & (DesiredAccess))
BOOL SearchGroupForSID(DWORD dwGroup, BOOL* pfIsMember);
BOOL GetCurrentThreadSid(PSID* ppCurrentUserSid);
BOOL ShouldApplyShim();
BOOL AdjustPrivilege(LPCWSTR pwszPrivilege, BOOL fEnable);
//
// File specific
//
BOOL RequestWriteAccess(DWORD dwCreationDisposition, DWORD dwDesiredAccess);
}; // end of namespace ShimLib
#endif // _SEC_UTILS_H_
|