LSAPolicy.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace AppSecInc
4 {
5  namespace LSA
6  {
8  class LSAPolicy
9  {
10  private:
11  LSA_HANDLE m_hPolicy;
12  public:
13  LSAPolicy();
14  virtual ~LSAPolicy();
16  void Open(const std::wstring& computer_name,
17  LSA_OBJECT_ATTRIBUTES attr,
18  DWORD access = POLICY_ALL_ACCESS);
20  void Open(DWORD access = POLICY_ALL_ACCESS);
22  void Close();
24  bool IsOpen() const { return m_hPolicy != NULL; }
26  LSA_HANDLE GetHandle() const { return m_hPolicy; }
27  };
28  }
29 }
30 
void Close()
close a previously opened LSA policy object
Definition: LSAPolicy.cpp:20
LSA_HANDLE GetHandle() const
return the policy handle
Definition: LSAPolicy.h:26
bool IsOpen() const
returns true if policy is already open
Definition: LSAPolicy.h:24
void Open(const std::wstring &computer_name, LSA_OBJECT_ATTRIBUTES attr, DWORD access=POLICY_ALL_ACCESS)
open the LSA policy object on a computer
Definition: LSAPolicy.cpp:34
LSAPolicy()
Definition: LSAPolicy.cpp:7
virtual ~LSAPolicy()
Definition: LSAPolicy.cpp:12
LSA policy object.
Definition: LSAPolicy.h:8


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