/// <summary> /// Returns a list of files which are used by the OpenVPN Service. /// </summary> /// <returns></returns> public static List <string> LocateOpenVPNServiceConfigs() { List <string> files = new List <string>(); if (!CanUseService()) { return(files); } try { UtilsHelper.GetConfigFiles( new DirectoryInfo(UtilsHelper.LocateOpenVPNServiceDir()), files, Helper.LocateOpenVPNServiceFileExt(), true); } catch (DirectoryNotFoundException) { } return(files); }