src/Common/Lsa/LSAPolicy.h

Go to the documentation of this file.
00001 #pragma once
00002 
00003 namespace AppSecInc 
00004 {
00005     namespace LSA 
00006     {
00008         class LSAPolicy
00009         {
00010         private:
00011             LSA_HANDLE m_hPolicy;
00012         public:
00013             LSAPolicy();
00014             virtual ~LSAPolicy();
00016             void Open(const std::wstring& computer_name, 
00017                 LSA_OBJECT_ATTRIBUTES attr, 
00018                 DWORD access = POLICY_ALL_ACCESS);
00020             void Open(DWORD access = POLICY_ALL_ACCESS);
00022             void Close();
00024             bool IsOpen() const { return m_hPolicy != NULL; }
00026             LSA_HANDLE GetHandle() const { return m_hPolicy; }
00027         };
00028     }
00029 }
00030 


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com