1 // security.hpp --------------------------------------------------------------//
3 // Copyright 2010 Vicente J. Botet Escriba
5 // Distributed under the Boost Software License, Version 1.0.
6 // See http://www.boost.org/LICENSE_1_0.txt
9 #ifndef BOOST_DETAIL_WINAPI_SECURITY_HPP
10 #define BOOST_DETAIL_WINAPI_SECURITY_HPP
12 #include <boost/detail/winapi/basic_types.hpp>
14 #ifdef BOOST_HAS_PRAGMA_ONCE
24 #if defined( BOOST_USE_WINDOWS_H )
25 typedef ::SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES_;
26 typedef ::PSECURITY_ATTRIBUTES PSECURITY_ATTRIBUTES_;
27 typedef ::LPSECURITY_ATTRIBUTES LPSECURITY_ATTRIBUTES_;
31 struct SECURITY_DESCRIPTOR_;
32 typedef SECURITY_DESCRIPTOR_* PSECURITY_DESCRIPTOR_;
41 typedef struct _SECURITY_ATTRIBUTES {
43 LPVOID_ lpSecurityDescriptor;
45 } SECURITY_ATTRIBUTES_, *PSECURITY_ATTRIBUTES_, *LPSECURITY_ATTRIBUTES_;
47 __declspec(dllimport) BOOL_ __stdcall
48 InitializeSecurityDescriptor(
49 PSECURITY_DESCRIPTOR_ pSecurityDescriptor,
52 __declspec(dllimport) BOOL_ __stdcall
53 SetSecurityDescriptorDacl(
54 PSECURITY_DESCRIPTOR_ pSecurityDescriptor,
65 #endif // BOOST_DETAIL_WINAPI_SECURITY_HPP