src/Common/Lsa/LocalGroup.h

Go to the documentation of this file.
00001 #pragma once
00002 
00003 #include "Account.h"
00004 
00005 namespace AppSecInc 
00006 {
00007     namespace LSA
00008     {
00010         namespace LocalGroup
00011         {
00013             void Create(const std::wstring& name, const std::wstring& servername = L"");
00015             void Create(GROUP_INFO_1 gi, const std::wstring& servername = L"");
00017             void Delete(const std::wstring& name, const std::wstring& servername = L"");
00019             bool Exists(const std::wstring& name, const std::wstring& servername = L"");
00021             void AddMember(const std::wstring& groupname, const std::wstring& username, const std::wstring& servername = L"");
00023             void DeleteMember(const std::wstring& groupname, const std::wstring& username, const std::wstring& servername = L"");
00025             bool IsMember(const std::wstring& groupname, const std::wstring& username, const std::wstring& servername = L"");
00027             std::vector<Account> GetMembers(const std::wstring& groupname, const std::wstring& servername = L"");
00028         };
00029     }
00030 }
00031 


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