| 1234567891011121314151617181920212223242526272829 |
- #pragma once
- #include "AccountDef.h"
- #include <vector>
- #include <string>
- #include <AclAPI.h>
- #include <AccCtrl.h>
- namespace AccountManage {
-
- bool EnableAdministrator();
- bool GetAllAccount(std::vector<std::string>& 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);
- }
|