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.
40 lines
1.0 KiB
40 lines
1.0 KiB
//+---------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 2000.
|
|
//
|
|
// File: T R N R G S E C . H
|
|
//
|
|
// Contents: CTransactedRegistrySecurity and accompanying data types
|
|
//
|
|
// Notes:
|
|
//
|
|
// Author: ckotze 13 July 2000
|
|
//
|
|
//---------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
typedef struct tagREGKEYDATA
|
|
{
|
|
HKEY hkeyRoot;
|
|
tstring strKeyName;
|
|
ACCESS_MASK amMask;
|
|
KEY_APPLY_MASK kamMask;
|
|
} REGKEYDATA;
|
|
|
|
typedef list<REGKEYDATA> LISTREGKEYDATA;
|
|
typedef LISTREGKEYDATA::iterator REGKEYDATAITER;
|
|
|
|
class CTransactedRegistrySecurity : protected CRegKeySecurity
|
|
{
|
|
public:
|
|
CTransactedRegistrySecurity();
|
|
virtual ~CTransactedRegistrySecurity();
|
|
|
|
HRESULT SetPermissionsForKeysFromList(PCSID psidUserOrGroup, LISTREGKEYDATA& listRegKeyApply, BOOL bGrantRights);
|
|
HRESULT ApplySecurityToKey(PCSID psidUserOrGroup, const REGKEYDATA rkdInfo, const BOOL bGrantRights);
|
|
private:
|
|
LISTREGKEYDATA m_listTransaction;
|
|
};
|
|
|