summaryrefslogtreecommitdiffstats
path: root/public/sdk/inc/secdes.hxx
diff options
context:
space:
mode:
authorAdam <you@example.com>2020-05-17 05:51:50 +0200
committerAdam <you@example.com>2020-05-17 05:51:50 +0200
commite611b132f9b8abe35b362e5870b74bce94a1e58e (patch)
treea5781d2ec0e085eeca33cf350cf878f2efea6fe5 /public/sdk/inc/secdes.hxx
downloadNT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip
Diffstat (limited to 'public/sdk/inc/secdes.hxx')
-rw-r--r--public/sdk/inc/secdes.hxx43
1 files changed, 43 insertions, 0 deletions
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 <windows.h>
+
+
+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__
+