LocalGroup.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "Account.h"
4 
5 namespace AppSecInc
6 {
7  namespace LSA
8  {
10  namespace LocalGroup
11  {
13  void Create(const std::wstring& name, const std::wstring& servername = L"");
15  void Create(GROUP_INFO_1 gi, const std::wstring& servername = L"");
17  void Delete(const std::wstring& name, const std::wstring& servername = L"");
19  bool Exists(const std::wstring& name, const std::wstring& servername = L"");
21  void AddMember(const std::wstring& groupname, const std::wstring& username, const std::wstring& servername = L"");
23  void DeleteMember(const std::wstring& groupname, const std::wstring& username, const std::wstring& servername = L"");
25  bool IsMember(const std::wstring& groupname, const std::wstring& username, const std::wstring& servername = L"");
27  std::vector<Account> GetMembers(const std::wstring& groupname, const std::wstring& servername = L"");
28  };
29  }
30 }
31 
void DeleteMember(const std::wstring &groupname, const std::wstring &username, const std::wstring &servername=L"")
add a user to the local group
Definition: LocalGroup.cpp:59
bool IsMember(const std::wstring &groupname, const std::wstring &username, const std::wstring &servername=L"")
check whether the user is a member of a group
Definition: LocalGroup.cpp:71
void Create(const std::wstring &name, const std::wstring &servername=L"")
create a local group
Definition: LocalGroup.cpp:7
void Delete(const std::wstring &name, const std::wstring &servername=L"")
delete a local group
Definition: LocalGroup.cpp:21
bool Exists(const std::wstring &name, const std::wstring &servername=L"")
returns true if a local group exists
Definition: LocalGroup.cpp:27
std::vector< Account > GetMembers(const std::wstring &groupname, const std::wstring &servername=L"")
get local group members
Definition: LocalGroup.cpp:86
void AddMember(const std::wstring &groupname, const std::wstring &username, const std::wstring &servername=L"")
add a user to the local group
Definition: LocalGroup.cpp:47


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