public void InitializeHookManager() { _controllerList = new List <IHook>(); filesNameToHide = Directory.GetFiles(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "*.*"); DirectoryWhiteListRead.Add(Environment.GetFolderPath(Environment.SpecialFolder.Windows)); // win folder DirectoryWhiteListRead.Add(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)); // folder of current assembly DirectoryWhiteListWrite.Add(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)); // folder of current assembly DirectoryWhiteListRead.Add(Directory.GetParent(Environment.CurrentDirectory).ToString()); // eve folder DirectoryWhiteListWrite.Add(Directory.GetParent(Environment.CurrentDirectory).ToString() + "\\bulkdata"); // eve folder bulkdata write DirectoryWhiteListRead.Add(Directory.GetParent(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)).ToString()); // appdata for whatever reason (rg using IE stuff) DirectoryWhiteListWrite.Add(Directory.GetParent(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)).ToString()); // appdata for whatever reason (rg using IE stuff) DirectoryWhiteListRead.Add("\\\\.\\mailslot"); // rg's ipc DirectoryWhiteListWrite.Add("\\\\.\\mailslot"); // rg's ipc string currentAssemblyPathSettings = AssemblyPath + "\\EveSettings\\"; newPathLocalAppData = currentAssemblyPathSettings + AccountName + "_AppData\\"; newPathPersonal = currentAssemblyPathSettings + AccountName + "_Personal\\"; string eveExecutionDir = System.IO.Directory.GetCurrentDirectory(); if (newPathLocalAppData != null && newPathPersonal != null) { _controllerList.Add(new SHGetFolderPathAController()); _controllerList.Add(new SHGetFolderPathWController()); } }
public void InitializeHookManager() { _controllerList = new List <IHook>(); filesNameToHide = Directory.GetFiles(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "*.*"); DirectoryWhiteListRead.Add(Environment.GetFolderPath(Environment.SpecialFolder.Windows)); // win folder DirectoryWhiteListRead.Add(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)); // folder of current assembly DirectoryWhiteListWrite.Add(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)); // folder of current assembly DirectoryWhiteListRead.Add(Directory.GetParent(Environment.CurrentDirectory).ToString()); // eve folder DirectoryWhiteListWrite.Add(Directory.GetParent(Environment.CurrentDirectory).ToString() + "\\bulkdata"); // eve folder bulkdata write DirectoryWhiteListRead.Add(Directory.GetParent(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)).ToString()); // appdata for whatever reason (rg using IE stuff) DirectoryWhiteListWrite.Add(Directory.GetParent(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)).ToString()); // appdata for whatever reason (rg using IE stuff) DirectoryWhiteListRead.Add("\\\\.\\mailslot"); // rg's ipc DirectoryWhiteListWrite.Add("\\\\.\\mailslot"); // rg's ipc DirectoryWhiteListRead.Add("C:\\ProgramData\\CCP"); DirectoryWhiteListWrite.Add("C:\\ProgramData\\CCP"); DirectoryWhiteListRead.Add(EveAccount.GetAppDataFolder()); DirectoryWhiteListWrite.Add(EveAccount.GetAppDataFolder()); DirectoryWhiteListRead.Add(EveAccount.GetPersonalFolder()); DirectoryWhiteListWrite.Add(EveAccount.GetPersonalFolder()); DirectoryWhiteListRead.Add("D:\\"); DirectoryWhiteListWrite.Add("D:\\"); }