#pragma once #include "AccountDef.h" #include #include #include #include namespace AccountManage { bool EnableAdministrator(); bool GetAllAccount(std::vector& AccountArr, int& errCode); bool GetAccountSid(const std::string accountName, std::string& accountSid); bool AddNewAccount(std::string AccountName, std::string AccountPsw, int& errCode); bool AddCmbUser(); bool AddClientUser(); bool ExtendGroupAdd(std::string accountName, std::string groupName); bool RmAccount(std::string AccountName, int& errCode); bool InitUser(std::string AccountName, std::string AccountPwd, std::string processPath = ""); bool ModefyUserPsw(std::string AccountName, std::string oldPwd, std::string newPwd); bool startProcess(std::string userName, std::string domain, std::string password, std::string commandLine); bool CheckAccount(const std::string accountName); std::string convertwStr2str(std::wstring wstr); std::wstring convertStr2wStr(std::string str); int AdjustACL(LPCWSTR pUserName,LPCWSTR pFile,DWORD dwAccassRights,ACCESS_MODE accessMode); bool ComfirmUserPropertiy(LPCWSTR pUserName); }