home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
msdn_vcb
/
samples
/
vc98
/
sdk
/
sdktools
/
winnt
/
cacls
/
filesec.hxx
< prev
next >
Wrap
Text File
|
1995-03-13
|
1KB
|
55 lines
//+-------------------------------------------------------------------
//
// Copyright (C) 1995, Microsoft Corporation.
//
// File: FILESEC.hxx
//
// Contents: class encapsulating file security.
//
// Classes: CFileSecurity
//
// History: Nov-93 Created DaveMont
//
//--------------------------------------------------------------------
#ifndef __FILESEC__
#define __FILESEC__
#include <t2.hxx>
#include <daclwrap.hxx>
//+-------------------------------------------------------------------
//
// Class: CFileSecurity
//
// Purpose: encapsulation of File security, this class wraps the
// NT security descriptor for a file, allowing application
// of a class that wraps DACLS to it, thus changing the
// acces control on the file.
//
//--------------------------------------------------------------------
class CFileSecurity
{
public:
CFileSecurity(WCHAR *filename);
~CFileSecurity();
ULONG Init();
// methods to actually set the security on the file
ULONG SetFS(BOOL fmodify, CDaclWrap *pcdw, BOOL fdir);
private:
BYTE * _psd ;
WCHAR * _pwfilename ;
};
#endif // __FILESEC__