From e611b132f9b8abe35b362e5870b74bce94a1e58e Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 16 May 2020 20:51:50 -0700 Subject: initial commit --- public/sdk/inc/secdes.hxx | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 public/sdk/inc/secdes.hxx (limited to 'public/sdk/inc/secdes.hxx') diff --git a/public/sdk/inc/secdes.hxx b/public/sdk/inc/secdes.hxx new file mode 100644 index 000000000..678b59c8e --- /dev/null +++ b/public/sdk/inc/secdes.hxx @@ -0,0 +1,43 @@ +//+------------------------------------------------------------------- +// +// File: secdes.hxx +// +// Contents: Encapsulates a Win32 security descriptor. +// +// Classes: CSecurityDescriptor +// +// Functions: none +// +// History: 07-Aug-92 randyd Created. +// +//-------------------------------------------------------------------- + +#ifndef __SECDES_HXX__ +#define __SECDES_HXX__ + + +#include + + +class CSecurityDescriptor +{ +public: + // Default constructor creates a descriptor that allows all access. + CSecurityDescriptor() + { + InitializeSecurityDescriptor(&_sd, SECURITY_DESCRIPTOR_REVISION); + }; + + // Return a PSECURITY_DESCRIPTOR + operator PSECURITY_DESCRIPTOR() const {return((PSECURITY_DESCRIPTOR) &_sd); }; + +private: + // The security descriptor. + SECURITY_DESCRIPTOR _sd; +}; + + + + +#endif // __SECDES_HXX__ + -- cgit v1.2.3