From 7d078dd151fe32f53b4e5abfd0ab08cb73302ca8 Mon Sep 17 00:00:00 2001 From: Selva Nair Date: Sun, 16 Oct 2022 10:46:05 -0400 Subject: [PATCH] PLAP: Add an option to register the COM dll - ShellExecute with runas is used to elevate - This Option is hidden if PLAP dll is not found in the install_path bin folder - Depends on the presence of openvpn-plap-install.reg and openvpn-plap-uninstall.reg in the install-path bin folder. Signed-off-by: Selva Nair --- access.c | 30 +------------ localization.c | 18 ++++++++ misc.c | 77 ++++++++++++++++++++++++++++++++++ misc.h | 24 +++++++++++ openvpn-gui-res.h | 3 ++ res/openvpn-gui-res-cs.rc | 5 ++- res/openvpn-gui-res-de.rc | 5 ++- res/openvpn-gui-res-dk.rc | 5 ++- res/openvpn-gui-res-en.rc | 5 ++- res/openvpn-gui-res-es.rc | 5 ++- res/openvpn-gui-res-fa.rc | 5 ++- res/openvpn-gui-res-fi.rc | 5 ++- res/openvpn-gui-res-fr.rc | 5 ++- res/openvpn-gui-res-it.rc | 5 ++- res/openvpn-gui-res-jp.rc | 5 ++- res/openvpn-gui-res-kr.rc | 5 ++- res/openvpn-gui-res-nl.rc | 5 ++- res/openvpn-gui-res-no.rc | 5 ++- res/openvpn-gui-res-pl.rc | 5 ++- res/openvpn-gui-res-pt.rc | 5 ++- res/openvpn-gui-res-ru.rc | 5 ++- res/openvpn-gui-res-se.rc | 5 ++- res/openvpn-gui-res-tr.rc | 5 ++- res/openvpn-gui-res-ua.rc | 5 ++- res/openvpn-gui-res-zh-hans.rc | 5 ++- res/openvpn-gui-res-zh-hant.rc | 5 ++- 26 files changed, 207 insertions(+), 50 deletions(-) diff --git a/access.c b/access.c index edbfff4..de164ae 100644 --- a/access.c +++ b/access.c @@ -37,6 +37,7 @@ #include "service.h" #include "localization.h" #include "openvpn-gui-res.h" +#include "misc.h" extern options_t o; @@ -46,35 +47,6 @@ static BOOL GetOwnerSID(PSID sid, DWORD sid_size); static BOOL IsUserInGroup(PSID sid, PTOKEN_GROUPS token_groups, const WCHAR *group_name); static PTOKEN_GROUPS GetProcessTokenGroups(void); -/* - * Run a command as admin using shell execute and return the exit code. - * If the command fails to execute, the return value is (DWORD) -1. - */ -static DWORD -RunAsAdmin(const WCHAR *cmd, const WCHAR *params) -{ - SHELLEXECUTEINFO shinfo; - DWORD status = -1; - - CLEAR (shinfo); - shinfo.cbSize = sizeof(shinfo); - shinfo.fMask = SEE_MASK_NOCLOSEPROCESS; - shinfo.hwnd = NULL; - shinfo.lpVerb = L"runas"; - shinfo.lpFile = cmd; - shinfo.lpDirectory = NULL; - shinfo.nShow = SW_HIDE; - shinfo.lpParameters = params; - - if (ShellExecuteEx(&shinfo) && shinfo.hProcess) - { - WaitForSingleObject(shinfo.hProcess, INFINITE); - GetExitCodeProcess(shinfo.hProcess, &status); - CloseHandle(shinfo.hProcess); - } - return status; -} - /* * The Administrators group may be localized or renamed by admins. * Get the local name of the group using the SID. diff --git a/localization.c b/localization.c index 5eef6b6..8644e24 100644 --- a/localization.c +++ b/localization.c @@ -37,6 +37,7 @@ #include "openvpn-gui-res.h" #include "options.h" #include "registry.h" +#include "misc.h" extern options_t o; @@ -522,6 +523,23 @@ GeneralSettingsDlgProc(HWND hwndDlg, UINT msg, UNUSED WPARAM wParam, LPARAM lPar else if (o.enable_persistent == 2) /* Enabled and auto-attach */ CheckRadioButton (hwndDlg, ID_RB_BALLOON3, ID_RB_BALLOON5, ID_RB_BALLOON3); + int plap_status = GetPLAPRegistrationStatus(); + if (plap_status == -1) /* PLAP not supported in this version */ + ShowWindow(GetDlgItem(hwndDlg, ID_CHK_PLAP_REG), SW_HIDE); + else if (plap_status != 0) + Button_SetCheck(GetDlgItem(hwndDlg, ID_CHK_PLAP_REG), BST_CHECKED); + + break; + + case WM_COMMAND: + if (LOWORD(wParam) == ID_CHK_PLAP_REG && HIWORD(wParam) == BN_CLICKED) + { + /* change PLAPRegistration state */ + HWND h = GetDlgItem(hwndDlg, ID_CHK_PLAP_REG); + BOOL newstate = Button_GetCheck(h) == BST_CHECKED ? TRUE : FALSE; + if (SetPLAPRegistration(newstate) != 0) /* failed or user cancelled -- reset checkmark */ + Button_SetCheck(h, newstate ? BST_UNCHECKED : BST_CHECKED); + } break; case WM_NOTIFY: diff --git a/misc.c b/misc.c index 29f6556..733705d 100644 --- a/misc.c +++ b/misc.c @@ -969,3 +969,80 @@ dpi_initialize(options_t *options) DpiSetScale(options, dpix); } + +#define PLAP_CLASSID "{4fbb8b67-cf02-4982-a7a8-3dd06a2c2ebd}" +int +GetPLAPRegistrationStatus(void) +{ + int res = 0; + HKEY regkey; + wchar_t dllPath[MAX_PATH]; + + _sntprintf_0(dllPath, L"%ls%ls", o.install_path, L"bin\\libopenvpn_plap.dll"); + if (!CheckFileAccess(dllPath, GENERIC_READ)) { + res = -1; + } + else if (RegOpenKeyExW(HKEY_CLASSES_ROOT, L"CLSID\\"PLAP_CLASSID, 0, KEY_READ, ®key) + == ERROR_SUCCESS) { + res = 1; + RegCloseKey(regkey); + } + + return res; +} + +DWORD +SetPLAPRegistration(BOOL value) +{ + DWORD res = -1; + const wchar_t *cmd = L"C:\\windows\\system32\\reg.exe"; + wchar_t params[MAX_PATH]; + + /* Run only if the state has changed */ + int plap_status = GetPLAPRegistrationStatus(); + if (plap_status > 0 && (BOOL) plap_status == value) return 0; + + if (value) { + _sntprintf_0( params, L"import \"%ls%ls\"", o.install_path, L"bin\\openvpn-plap-install.reg"); + } + else { + _sntprintf_0( params, L"import \"%ls%ls\"", o.install_path, L"bin\\openvpn-plap-uninstall.reg"); + } + + res = RunAsAdmin(cmd, params); + if (res != 0) + { + ShowLocalizedMsg(value? IDS_ERR_PLAP_REG : IDS_ERR_PLAP_UNREG, res); + } + return res; +} + +/* + * Run a command as admin using shell execute and return the exit code. + * Returns 0 on success or a non-zero exit code status of the command. + * If the command fails to execute, the return value is (DWORD) -1. + */ +DWORD +RunAsAdmin(const WCHAR *cmd, const WCHAR *params) +{ + SHELLEXECUTEINFO shinfo; + DWORD status = -1; + + CLEAR (shinfo); + shinfo.cbSize = sizeof(shinfo); + shinfo.fMask = SEE_MASK_NOCLOSEPROCESS; + shinfo.hwnd = NULL; + shinfo.lpVerb = L"runas"; + shinfo.lpFile = cmd; + shinfo.lpDirectory = NULL; + shinfo.nShow = SW_HIDE; + shinfo.lpParameters = params; + + if (ShellExecuteEx(&shinfo) && shinfo.hProcess) + { + WaitForSingleObject(shinfo.hProcess, INFINITE); + GetExitCodeProcess(shinfo.hProcess, &status); + CloseHandle(shinfo.hProcess); + } + return status; +} diff --git a/misc.h b/misc.h index 9d55e2c..af8bb17 100644 --- a/misc.h +++ b/misc.h @@ -126,4 +126,28 @@ void dpi_initialize(options_t *o); */ void MsgToEventLog(WORD type, wchar_t *format, ...); +/** + * Check PLAP COM object is is registered + * @returns 1 if yes, 0 if no, or -1 if PLAP dll not installed. + */ +int GetPLAPRegistrationStatus(void); + +/** + * Register/Unregister PLAP COM object + * @param action TRUE to register, FALSE to unregister + * @returns 0 on success or a non-zero error code on error. + * Requires admin privileges -- user will prompted for admin + * credentials or UAC consent if required. + */ +DWORD SetPLAPRegistration(BOOL action); + +/** + * Run a command as admin using shellexecute + * @param cmd The command to run + * @param params Parameters to the command + * @returns 0 on success or a non-zero exit code from the + * command. If the command fails to startup, -1 is returned. + */ +DWORD RunAsAdmin(const WCHAR *cmd, const WCHAR *params); + #endif diff --git a/openvpn-gui-res.h b/openvpn-gui-res.h index 97eb62d..f600067 100644 --- a/openvpn-gui-res.h +++ b/openvpn-gui-res.h @@ -116,6 +116,7 @@ #define ID_RB_BALLOON4 245 #define ID_RB_BALLOON5 246 #define ID_TXT_PERSISTENT 247 +#define ID_CHK_PLAP_REG 248 /* Proxy Auth Dialog */ #define ID_DLG_PROXY_AUTH 250 @@ -343,6 +344,8 @@ #define IDS_ERR_READ_SET_KEY 1811 #define IDS_ERR_WRITE_REGVALUE 1812 #define IDS_ERR_GET_PROFILE_DIR 1813 +#define IDS_ERR_PLAP_REG 1814 +#define IDS_ERR_PLAP_UNREG 1815 /* Importation Related */ diff --git a/res/openvpn-gui-res-cs.rc b/res/openvpn-gui-res-cs.rc index 45df18b..c17cce2 100644 --- a/res/openvpn-gui-res-cs.rc +++ b/res/openvpn-gui-res-cs.rc @@ -160,7 +160,7 @@ BEGIN GROUPBOX "Spuštění", 202, 6, 47, 235, 30 AUTOCHECKBOX "Spustit při startu Windows", ID_CHK_STARTUP, 17, 59, 100, 12 - GROUPBOX "Volby", ID_GROUPBOX3, 6, 82, 235, 105 + GROUPBOX "Volby", ID_GROUPBOX3, 6, 82, 235, 150 AUTOCHECKBOX "Připojovat záznamy na konec logu", ID_CHK_LOG_APPEND, 17, 95, 130, 10 AUTOCHECKBOX "Zobrazit okno skriptu", ID_CHK_SHOW_SCRIPT_WIN, 17, 110, 200, 10 AUTOCHECKBOX "Tiché spojení", ID_CHK_SILENT, 17, 125, 200, 10 @@ -173,6 +173,7 @@ BEGIN AUTORADIOBUTTON "A&uto", ID_RB_BALLOON3, 28, 200, 50, 10, WS_GROUP | WS_TABSTOP AUTORADIOBUTTON "&Manual", ID_RB_BALLOON4, 86, 200, 90, 10 AUTORADIOBUTTON "&Disable", ID_RB_BALLOON5, 181, 200, 40, 10 + AUTOCHECKBOX "Enable Pre-Logon A&ccess Provider (requires admin access)", ID_CHK_PLAP_REG, 17, 215, 200, 10 END /* Advanced Dialog */ @@ -530,6 +531,8 @@ OpenVPN pravděpodobně není nainstalováno." jednou jako správce, aby se registr aktualizoval." IDS_ERR_READ_SET_KEY "Došlo k chybě při čtení a zápisu klíče registru ""%ls""." IDS_ERR_WRITE_REGVALUE "Došlo k chybě při zápisu hodnoty registru ""HKCU\\%ls\\%ls""." + IDS_ERR_PLAP_REG "Failed to enable Start Before Logon (error = %d)" + IDS_ERR_PLAP_UNREG "Failed to disable Start Before Logon (error = %d)" /* importation */ IDS_ERR_IMPORT_EXISTS "Konfigurace s názvem ""%ls"" již existuje." diff --git a/res/openvpn-gui-res-de.rc b/res/openvpn-gui-res-de.rc index 5f930f7..afc6484 100644 --- a/res/openvpn-gui-res-de.rc +++ b/res/openvpn-gui-res-de.rc @@ -157,7 +157,7 @@ BEGIN LTEXT "Spr&ache:", ID_TXT_LANGUAGE, 17, 25, 29, 12 COMBOBOX ID_CMB_LANGUAGE, 51, 23, 177, 400, CBS_DROPDOWNLIST | WS_TABSTOP - GROUPBOX "Einstellungen", ID_GROUPBOX3, 6, 82, 235, 105 + GROUPBOX "Einstellungen", ID_GROUPBOX3, 6, 82, 235, 150 GROUPBOX "Systemstart", 202, 6, 47, 235, 30 AUTOCHECKBOX "Mit &Windows starten", ID_CHK_STARTUP, 17, 59, 200, 12 @@ -174,6 +174,7 @@ BEGIN AUTORADIOBUTTON "A&uto", ID_RB_BALLOON3, 28, 200, 50, 10, WS_GROUP | WS_TABSTOP AUTORADIOBUTTON "&Manual", ID_RB_BALLOON4, 86, 200, 90, 10 AUTORADIOBUTTON "&Disable", ID_RB_BALLOON5, 181, 200, 40, 10 + AUTOCHECKBOX "Enable Pre-Logon A&ccess Provider (requires admin access)", ID_CHK_PLAP_REG, 17, 215, 200, 10 END /* Advanced Dialog */ @@ -533,6 +534,8 @@ OpenVPN ist vermutlich nicht installiert" als Administrator ausführen, um die Registry zu aktualisieren." IDS_ERR_READ_SET_KEY "Fehler beim Lesen und Setzen des Registry-Schlüssels ""%ls""." IDS_ERR_WRITE_REGVALUE "Fehler beim Schreiben des Registry-Schlüssels ""HKEY_CURRENT_USER\\%ls\\%ls""." + IDS_ERR_PLAP_REG "Failed to enable Start Before Logon (error = %d)" + IDS_ERR_PLAP_UNREG "Failed to disable Start Before Logon (error = %d)" /* importation */ IDS_ERR_IMPORT_EXISTS "Eine Konfigurationsdatei namens ""%ls"" existiert bereits." diff --git a/res/openvpn-gui-res-dk.rc b/res/openvpn-gui-res-dk.rc index d179f22..df1a431 100644 --- a/res/openvpn-gui-res-dk.rc +++ b/res/openvpn-gui-res-dk.rc @@ -160,7 +160,7 @@ BEGIN GROUPBOX "Autostart", 202, 6, 47, 235, 30 AUTOCHECKBOX "Start med Windows", ID_CHK_STARTUP, 17, 59, 200, 12 - GROUPBOX "Indstillinger", ID_GROUPBOX3, 6, 82, 235, 105 + GROUPBOX "Indstillinger", ID_GROUPBOX3, 6, 82, 235, 150 AUTOCHECKBOX "Tilføj til log", ID_CHK_LOG_APPEND, 17, 95, 60, 10 AUTOCHECKBOX "Vis script vindue", ID_CHK_SHOW_SCRIPT_WIN, 17, 110, 200, 10 AUTOCHECKBOX "Stille forbindelse", ID_CHK_SILENT, 17, 125, 200, 10 @@ -173,6 +173,7 @@ BEGIN AUTORADIOBUTTON "A&uto", ID_RB_BALLOON3, 28, 200, 50, 10, WS_GROUP | WS_TABSTOP AUTORADIOBUTTON "&Manual", ID_RB_BALLOON4, 86, 200, 90, 10 AUTORADIOBUTTON "&Disable", ID_RB_BALLOON5, 181, 200, 40, 10 + AUTOCHECKBOX "Enable Pre-Logon A&ccess Provider (requires admin access)", ID_CHK_PLAP_REG, 17, 215, 200, 10 END /* Advanced Dialog */ @@ -530,6 +531,8 @@ OpenVPN er måske ikke installeret." en gang som administrator for at opdatere registret." IDS_ERR_READ_SET_KEY "Fejl under læsning og skrivning af register-værdi ""%ls""." IDS_ERR_WRITE_REGVALUE "Fejl under skrivning af register-værdi ""HKEY_CURRENT_USER\\%ls\\%ls""." + IDS_ERR_PLAP_REG "Failed to enable Start Before Logon (error = %d)" + IDS_ERR_PLAP_UNREG "Failed to disable Start Before Logon (error = %d)" /* importation */ IDS_ERR_IMPORT_EXISTS "A config named ""%ls"" already exists." diff --git a/res/openvpn-gui-res-en.rc b/res/openvpn-gui-res-en.rc index 680b6ef..cf5c534 100644 --- a/res/openvpn-gui-res-en.rc +++ b/res/openvpn-gui-res-en.rc @@ -174,7 +174,7 @@ BEGIN GROUPBOX "Startup", 202, 6, 47, 235, 30 AUTOCHECKBOX "Launch on User &Logon", ID_CHK_STARTUP, 17, 59, 100, 12 - GROUPBOX "Preferences", ID_GROUPBOX3, 6, 82, 235, 135 + GROUPBOX "Preferences", ID_GROUPBOX3, 6, 82, 235, 150 AUTOCHECKBOX "A&ppend to log", ID_CHK_LOG_APPEND, 17, 95, 60, 10 AUTOCHECKBOX "Show script &window", ID_CHK_SHOW_SCRIPT_WIN, 17, 110, 200, 10 AUTOCHECKBOX "S&ilent connection", ID_CHK_SILENT, 17, 125, 200, 10 @@ -187,6 +187,7 @@ BEGIN AUTORADIOBUTTON "A&uto", ID_RB_BALLOON3, 28, 200, 50, 10, WS_GROUP | WS_TABSTOP AUTORADIOBUTTON "&Manual", ID_RB_BALLOON4, 86, 200, 90, 10 AUTORADIOBUTTON "&Disable", ID_RB_BALLOON5, 181, 200, 40, 10 + AUTOCHECKBOX "Enable Pre-Logon A&ccess Provider (requires admin access)", ID_CHK_PLAP_REG, 17, 215, 200, 10 END /* Advanced Dialog */ @@ -544,6 +545,8 @@ OpenVPN is probably not installed" once as Administrator to update the registry." IDS_ERR_READ_SET_KEY "Error reading and setting registry key ""%ls""." IDS_ERR_WRITE_REGVALUE "Error writing registry value ""HKEY_CURRENT_USER\\%ls\\%ls""." + IDS_ERR_PLAP_REG "Failed to enable Start Before Logon (error = %d)" + IDS_ERR_PLAP_UNREG "Failed to disable Start Before Logon (error = %d)" /* importation */ IDS_ERR_IMPORT_EXISTS "A config named ""%ls"" already exists." diff --git a/res/openvpn-gui-res-es.rc b/res/openvpn-gui-res-es.rc index 4c5f18f..4a55400 100644 --- a/res/openvpn-gui-res-es.rc +++ b/res/openvpn-gui-res-es.rc @@ -158,7 +158,7 @@ BEGIN GROUPBOX "Startup", 202, 6, 47, 235, 30 AUTOCHECKBOX "Launch on Windows startup", ID_CHK_STARTUP, 17, 59, 200, 12 - GROUPBOX "Preferences", ID_GROUPBOX3, 6, 82, 235, 105 + GROUPBOX "Preferences", ID_GROUPBOX3, 6, 82, 235, 150 AUTOCHECKBOX "Append to log", ID_CHK_LOG_APPEND, 17, 95, 60, 10 AUTOCHECKBOX "Show script window", ID_CHK_SHOW_SCRIPT_WIN, 17, 110, 200, 10 AUTOCHECKBOX "Silent connection", ID_CHK_SILENT, 17, 125, 200, 10 @@ -171,6 +171,7 @@ BEGIN AUTORADIOBUTTON "A&uto", ID_RB_BALLOON3, 28, 200, 50, 10, WS_GROUP | WS_TABSTOP AUTORADIOBUTTON "&Manual", ID_RB_BALLOON4, 86, 200, 90, 10 AUTORADIOBUTTON "&Disable", ID_RB_BALLOON5, 181, 200, 40, 10 + AUTOCHECKBOX "Enable Pre-Logon A&ccess Provider (requires admin access)", ID_CHK_PLAP_REG, 17, 215, 200, 10 END /* Advanced Dialog */ @@ -527,6 +528,8 @@ OpenVPN probablemente no está instalado" nuevo como Administrator para actualizar el registro." IDS_ERR_READ_SET_KEY "Error al leer y escribir la clave de registro ""%ls""." IDS_ERR_WRITE_REGVALUE "Error al escribir el valor del registro ""HKEY_CURRENT_USER\\%ls\\%ls""." + IDS_ERR_PLAP_REG "Failed to enable Start Before Logon (error = %d)" + IDS_ERR_PLAP_UNREG "Failed to disable Start Before Logon (error = %d)" /* importation */ IDS_ERR_IMPORT_EXISTS "A config named ""%ls"" already exists." diff --git a/res/openvpn-gui-res-fa.rc b/res/openvpn-gui-res-fa.rc index d02e94e..3ee8fb0 100644 --- a/res/openvpn-gui-res-fa.rc +++ b/res/openvpn-gui-res-fa.rc @@ -162,7 +162,7 @@ BEGIN GROUPBOX "شروع به کار", 202, 6, 47, 235, 30 AUTOCHECKBOX "شروع به کار - وقتی کاربر وارد شد", ID_CHK_STARTUP, 17, 59, 100, 12 - GROUPBOX "تنظیمات", ID_GROUPBOX3, 6, 82, 235, 105 + GROUPBOX "تنظیمات", ID_GROUPBOX3, 6, 82, 235, 150 AUTOCHECKBOX "چسباندن به گزارشات", ID_CHK_LOG_APPEND, 17, 95, 60, 10 AUTOCHECKBOX "نمایش پنجره اسکریپت", ID_CHK_SHOW_SCRIPT_WIN, 17, 110, 200, 10 AUTOCHECKBOX "بی صدا(اعلان) متصل شدن", ID_CHK_SILENT, 17, 125, 200, 10 @@ -175,6 +175,7 @@ BEGIN AUTORADIOBUTTON "A&uto", ID_RB_BALLOON3, 28, 200, 50, 10, WS_GROUP | WS_TABSTOP AUTORADIOBUTTON "&Manual", ID_RB_BALLOON4, 86, 200, 90, 10 AUTORADIOBUTTON "&Disable", ID_RB_BALLOON5, 181, 200, 40, 10 + AUTOCHECKBOX "Enable Pre-Logon A&ccess Provider (requires admin access)", ID_CHK_PLAP_REG, 17, 215, 200, 10 END /* Advanced Dialog */ @@ -533,6 +534,8 @@ OpenVPN is probably not installed" once as Administrator to update the registry." IDS_ERR_READ_SET_KEY "Error reading and setting registry key ""%ls""." IDS_ERR_WRITE_REGVALUE "Error writing registry value ""HKEY_CURRENT_USER\\%ls\\%ls""." + IDS_ERR_PLAP_REG "Failed to enable Start Before Logon (error = %d)" + IDS_ERR_PLAP_UNREG "Failed to disable Start Before Logon (error = %d)" /* importation */ IDS_ERR_IMPORT_EXISTS "A config named ""%ls"" already exists." diff --git a/res/openvpn-gui-res-fi.rc b/res/openvpn-gui-res-fi.rc index 1e0ea22..10ddeec 100644 --- a/res/openvpn-gui-res-fi.rc +++ b/res/openvpn-gui-res-fi.rc @@ -159,7 +159,7 @@ BEGIN GROUPBOX "Käynnistäminen", 202, 6, 47, 235, 30 AUTOCHECKBOX "Käynnistä Windowsiin kirjautuessa", ID_CHK_STARTUP, 17, 59, 200, 12 - GROUPBOX "Valinnat", ID_GROUPBOX3, 6, 82, 235, 105 + GROUPBOX "Valinnat", ID_GROUPBOX3, 6, 82, 235, 150 AUTOCHECKBOX "Lisää lokitiedostoon", ID_CHK_LOG_APPEND, 17, 95, 200, 10 AUTOCHECKBOX "Näytä komentosarjaikkuna", ID_CHK_SHOW_SCRIPT_WIN, 17, 110, 200, 10 AUTOCHECKBOX "Yhdistä taustalla", ID_CHK_SILENT, 17, 125, 200, 10 @@ -172,6 +172,7 @@ BEGIN AUTORADIOBUTTON "A&uto", ID_RB_BALLOON3, 28, 200, 50, 10, WS_GROUP | WS_TABSTOP AUTORADIOBUTTON "&Manual", ID_RB_BALLOON4, 86, 200, 90, 10 AUTORADIOBUTTON "&Disable", ID_RB_BALLOON5, 181, 200, 40, 10 + AUTOCHECKBOX "Enable Pre-Logon A&ccess Provider (requires admin access)", ID_CHK_PLAP_REG, 17, 215, 200, 10 END /* Advanced Dialog */ @@ -531,6 +532,8 @@ OpenVPN:ää ei todennäköisesti ole asennettu." ajaa ylläpitäjän oikeuksin, jotta se saa lisättyä rekisteriin tietoja." IDS_ERR_READ_SET_KEY "Virhe luettaessa ja määritettäessä rekisteriavainta ""%ls""." IDS_ERR_WRITE_REGVALUE "Virhe kirjoitettaessa rekisterin arvoa ""HKEY_CURRENT_USER\\%ls\\%ls""." + IDS_ERR_PLAP_REG "Failed to enable Start Before Logon (error = %d)" + IDS_ERR_PLAP_UNREG "Failed to disable Start Before Logon (error = %d)" /* importation */ IDS_ERR_IMPORT_EXISTS "Samanniminen (""%ls"") asetustiedosto on jo olemassa." diff --git a/res/openvpn-gui-res-fr.rc b/res/openvpn-gui-res-fr.rc index 124a564..d28c087 100644 --- a/res/openvpn-gui-res-fr.rc +++ b/res/openvpn-gui-res-fr.rc @@ -159,7 +159,7 @@ BEGIN GROUPBOX "Démarrage", 202, 6, 47, 235, 30 AUTOCHECKBOX "Lancer au démarrage de Windows", ID_CHK_STARTUP, 17, 59, 200, 12 - GROUPBOX "Préférences", ID_GROUPBOX3, 6, 82, 235, 105 + GROUPBOX "Préférences", ID_GROUPBOX3, 6, 82, 235, 150 AUTOCHECKBOX "Ajouter au fichier log", ID_CHK_LOG_APPEND, 17, 95, 81, 10 AUTOCHECKBOX "Afficher la fenêtre des scripts", ID_CHK_SHOW_SCRIPT_WIN, 17, 110, 200, 10 AUTOCHECKBOX "Connexion silencieuse", ID_CHK_SILENT, 17, 125, 200, 10 @@ -172,6 +172,7 @@ BEGIN AUTORADIOBUTTON "A&uto", ID_RB_BALLOON3, 28, 200, 50, 10, WS_GROUP | WS_TABSTOP AUTORADIOBUTTON "&Manual", ID_RB_BALLOON4, 86, 200, 90, 10 AUTORADIOBUTTON "&Disable", ID_RB_BALLOON5, 181, 200, 40, 10 + AUTOCHECKBOX "Enable Pre-Logon A&ccess Provider (requires admin access)", ID_CHK_PLAP_REG, 17, 215, 200, 10 END /* Advanced Dialog */ @@ -530,6 +531,8 @@ OpenVPN n'est probablement pas installé." en tant qu'Administrator pour mettre à jour la base de registre." IDS_ERR_READ_SET_KEY "Impossible de lire et modifier la clé de registre ""%ls""." IDS_ERR_WRITE_REGVALUE "Impossible d'écrire la valeur de registre ""HKEY_CURRENT_USER\\%ls\\%ls""." + IDS_ERR_PLAP_REG "Failed to enable Start Before Logon (error = %d)" + IDS_ERR_PLAP_UNREG "Failed to disable Start Before Logon (error = %d)" /* importation */ IDS_ERR_IMPORT_EXISTS "Une configuration nommée ""%ls"" existe déjà." diff --git a/res/openvpn-gui-res-it.rc b/res/openvpn-gui-res-it.rc index ef99839..77d9ccb 100644 --- a/res/openvpn-gui-res-it.rc +++ b/res/openvpn-gui-res-it.rc @@ -159,7 +159,7 @@ BEGIN GROUPBOX "Avvio", 202, 6, 47, 235, 30 AUTOCHECKBOX "&Avvia all'apertura di Windows", ID_CHK_STARTUP, 17, 59, 200, 12 - GROUPBOX "Preferenze", ID_GROUPBOX3, 6, 82, 235, 135 + GROUPBOX "Preferenze", ID_GROUPBOX3, 6, 82, 235, 150 AUTOCHECKBOX "Aggiungi in coda al f&ile di log", ID_CHK_LOG_APPEND, 17, 95, 200, 10 AUTOCHECKBOX "Mostra &finestra script", ID_CHK_SHOW_SCRIPT_WIN, 17, 110, 200, 10 AUTOCHECKBOX "Connessione &silenziosa", ID_CHK_SILENT, 17, 125, 200, 10 @@ -172,6 +172,7 @@ BEGIN AUTORADIOBUTTON "A&uto", ID_RB_BALLOON3, 28, 200, 50, 10, WS_GROUP | WS_TABSTOP AUTORADIOBUTTON "&Manual", ID_RB_BALLOON4, 86, 200, 90, 10 AUTORADIOBUTTON "&Disable", ID_RB_BALLOON5, 181, 200, 40, 10 + AUTOCHECKBOX "Enable Pre-Logon A&ccess Provider (requires admin access)", ID_CHK_PLAP_REG, 17, 215, 200, 10 END /* Advanced Dialog */ @@ -530,6 +531,8 @@ OpenVPN probabilmente non è installato" una volta che l'amministratore ha aggiornato il registro." IDS_ERR_READ_SET_KEY "Errore nella lettura e modifica della chiave di registro ""%ls""." IDS_ERR_WRITE_REGVALUE "Errore nella scrittura del valore di registro ""HKEY_CURRENT_USER\\%ls\\%ls""." + IDS_ERR_PLAP_REG "Failed to enable Start Before Logon (error = %d)" + IDS_ERR_PLAP_UNREG "Failed to disable Start Before Logon (error = %d)" /* importation */ IDS_ERR_IMPORT_EXISTS "Esiste già una configurazione con il nome ""%ls""." diff --git a/res/openvpn-gui-res-jp.rc b/res/openvpn-gui-res-jp.rc index 159eaa9..97340d3 100644 --- a/res/openvpn-gui-res-jp.rc +++ b/res/openvpn-gui-res-jp.rc @@ -160,7 +160,7 @@ BEGIN GROUPBOX "起動", 202, 6, 47, 235, 30 AUTOCHECKBOX "Windows起動時に開始(&L)", ID_CHK_STARTUP, 17, 59, 200, 12 - GROUPBOX "設定", ID_GROUPBOX3, 6, 82, 235, 105 + GROUPBOX "設定", ID_GROUPBOX3, 6, 82, 235, 150 AUTOCHECKBOX "ログ追記モード(&P)", ID_CHK_LOG_APPEND, 17, 95, 200, 10 AUTOCHECKBOX "スクリプト実行ウィンドウを表示(&W)", ID_CHK_SHOW_SCRIPT_WIN, 17, 110, 200, 10 AUTOCHECKBOX "サイレント接続モード(&I)", ID_CHK_SILENT, 17, 125, 200, 10 @@ -173,6 +173,7 @@ BEGIN AUTORADIOBUTTON "A&uto", ID_RB_BALLOON3, 28, 200, 50, 10, WS_GROUP | WS_TABSTOP AUTORADIOBUTTON "&Manual", ID_RB_BALLOON4, 86, 200, 90, 10 AUTORADIOBUTTON "&Disable", ID_RB_BALLOON5, 181, 200, 40, 10 + AUTOCHECKBOX "Enable Pre-Logon A&ccess Provider (requires admin access)", ID_CHK_PLAP_REG, 17, 215, 200, 10 END /* Advanced Dialog */ @@ -530,6 +531,8 @@ OpenVPNがインストールされていない可能性があります。" IDS_ERR_OPEN_WRITE_REG "レジストリの書き込みに失敗しました。レジストリの更新時にはアプリケーションを管理者権限で実行する必要があります。" IDS_ERR_READ_SET_KEY "レジストリ ""%ls"" の読み取り/書き込みに失敗しました。" IDS_ERR_WRITE_REGVALUE "レジストリ ""HKEY_CURRENT_USER\\%ls\\%ls"" への書き込みに失敗しました。" + IDS_ERR_PLAP_REG "Failed to enable Start Before Logon (error = %d)" + IDS_ERR_PLAP_UNREG "Failed to disable Start Before Logon (error = %d)" /* importation */ IDS_ERR_IMPORT_EXISTS "設定 ""%ls"" は既に存在しています。" diff --git a/res/openvpn-gui-res-kr.rc b/res/openvpn-gui-res-kr.rc index a57594c..3e2e87b 100644 --- a/res/openvpn-gui-res-kr.rc +++ b/res/openvpn-gui-res-kr.rc @@ -161,7 +161,7 @@ BEGIN GROUPBOX "시작 설정", 202, 6, 47, 235, 30 AUTOCHECKBOX "Windows 시작 시에 실행", ID_CHK_STARTUP, 17, 59, 100, 12 - GROUPBOX "환경 설정", ID_GROUPBOX3, 6, 82, 235, 105 + GROUPBOX "환경 설정", ID_GROUPBOX3, 6, 82, 235, 150 AUTOCHECKBOX "로그 파일에 추가", ID_CHK_LOG_APPEND, 17, 95, 200, 10 AUTOCHECKBOX "스크립트 창 보기", ID_CHK_SHOW_SCRIPT_WIN, 17, 110, 200, 10 AUTOCHECKBOX "연결 시 상태 대화 상자 표시하지 않기", ID_CHK_SILENT, 17, 125, 200, 10 @@ -174,6 +174,7 @@ BEGIN AUTORADIOBUTTON "A&uto", ID_RB_BALLOON3, 28, 200, 50, 10, WS_GROUP | WS_TABSTOP AUTORADIOBUTTON "&Manual", ID_RB_BALLOON4, 86, 200, 90, 10 AUTORADIOBUTTON "&Disable", ID_RB_BALLOON5, 181, 200, 40, 10 + AUTOCHECKBOX "Enable Pre-Logon A&ccess Provider (requires admin access)", ID_CHK_PLAP_REG, 17, 215, 200, 10 END /* Advanced Dialog */ @@ -528,6 +529,8 @@ OpenVPN이 설치 되어 있지 않은 것 같습니다." Administrator 권한으로 이 프로그램을 실행해야 합니다." IDS_ERR_READ_SET_KEY "레지스트리 ""%ls""키 읽기/쓰기를 할 수 없습니다." IDS_ERR_WRITE_REGVALUE "레지스트리 ""HKEY_CURRENT_USER\\%ls\\%ls"" 값을 기록할 수 없습니다." + IDS_ERR_PLAP_REG "Failed to enable Start Before Logon (error = %d)" + IDS_ERR_PLAP_UNREG "Failed to disable Start Before Logon (error = %d)" /* importation */ IDS_ERR_IMPORT_EXISTS """%ls"" 설정 파일은 이미 존재 합니다." diff --git a/res/openvpn-gui-res-nl.rc b/res/openvpn-gui-res-nl.rc index 4caee04..a5bf341 100644 --- a/res/openvpn-gui-res-nl.rc +++ b/res/openvpn-gui-res-nl.rc @@ -160,7 +160,7 @@ BEGIN GROUPBOX "Opstarten", 202, 6, 47, 235, 30 AUTOCHECKBOX "Opstarten met Windows", ID_CHK_STARTUP, 17, 59, 200, 12 - GROUPBOX "Voorkeuren", ID_GROUPBOX3, 6, 82, 235, 105 + GROUPBOX "Voorkeuren", ID_GROUPBOX3, 6, 82, 235, 150 AUTOCHECKBOX "Aan logbestand toevoegen", ID_CHK_LOG_APPEND, 17, 95, 200, 10 AUTOCHECKBOX "Script-venster tonen", ID_CHK_SHOW_SCRIPT_WIN, 17, 110, 200, 10 AUTOCHECKBOX "Stille verbinding", ID_CHK_SILENT, 17, 125, 200, 10 @@ -173,6 +173,7 @@ BEGIN AUTORADIOBUTTON "A&uto", ID_RB_BALLOON3, 28, 200, 50, 10, WS_GROUP | WS_TABSTOP AUTORADIOBUTTON "&Manual", ID_RB_BALLOON4, 86, 200, 90, 10 AUTORADIOBUTTON "&Disable", ID_RB_BALLOON5, 181, 200, 40, 10 + AUTOCHECKBOX "Enable Pre-Logon A&ccess Provider (requires admin access)", ID_CHK_PLAP_REG, 17, 215, 200, 10 END /* Advanced Dialog */ @@ -531,6 +532,8 @@ OpenVPN is waarschijnlijk niet geïnstalleerd" om de registerinstellingen te updaten." IDS_ERR_READ_SET_KEY "Fout tijdens lezen en instellen van registersleutel ""%ls""." IDS_ERR_WRITE_REGVALUE "Fout tijdens schrijven van registersleutel ""HKEY_CURRENT_USER\\%ls\\%ls""." + IDS_ERR_PLAP_REG "Failed to enable Start Before Logon (error = %d)" + IDS_ERR_PLAP_UNREG "Failed to disable Start Before Logon (error = %d)" /* importation */ IDS_ERR_IMPORT_EXISTS "Een configuratie met de naam ""%ls"" bestaat al." diff --git a/res/openvpn-gui-res-no.rc b/res/openvpn-gui-res-no.rc index eaafbee..4b8c3d9 100644 --- a/res/openvpn-gui-res-no.rc +++ b/res/openvpn-gui-res-no.rc @@ -159,7 +159,7 @@ BEGIN GROUPBOX "Oppstart", 202, 6, 47, 235, 30 AUTOCHECKBOX "Kjør automatisk når Windows starter", ID_CHK_STARTUP, 17, 59, 200, 12 - GROUPBOX "Innstillinger", ID_GROUPBOX3, 6, 82, 235, 105 + GROUPBOX "Innstillinger", ID_GROUPBOX3, 6, 82, 235, 150 AUTOCHECKBOX "Tilføy til eksisterende logg", ID_CHK_LOG_APPEND, 17, 95, 93, 10 AUTOCHECKBOX "Vis scriptvindu", ID_CHK_SHOW_SCRIPT_WIN, 17, 110, 200, 10 AUTOCHECKBOX "Skjul statusvindu ved tilkobling", ID_CHK_SILENT, 17, 125, 200, 10 @@ -172,6 +172,7 @@ BEGIN AUTORADIOBUTTON "A&uto", ID_RB_BALLOON3, 28, 200, 50, 10, WS_GROUP | WS_TABSTOP AUTORADIOBUTTON "&Manual", ID_RB_BALLOON4, 86, 200, 90, 10 AUTORADIOBUTTON "&Disable", ID_RB_BALLOON5, 181, 200, 40, 10 + AUTOCHECKBOX "Enable Pre-Logon A&ccess Provider (requires admin access)", ID_CHK_PLAP_REG, 17, 215, 200, 10 END /* Advanced Dialog */ @@ -521,6 +522,8 @@ Wintun driver will not work." IDS_ERR_OPEN_WRITE_REG "Kunne ikke oppdatere registeret. Du må starte programmet med administrator-rettigheter for å kunne gjøre endringer i registeret." IDS_ERR_READ_SET_KEY "Kunne ikke lese eller skrive til registernøkkelen ""%ls""." IDS_ERR_WRITE_REGVALUE "Feil ved oppdatering av registerverdien ""HKEY_CURRENT_USER\\%ls\\%ls""." + IDS_ERR_PLAP_REG "Failed to enable Start Before Logon (error = %d)" + IDS_ERR_PLAP_UNREG "Failed to disable Start Before Logon (error = %d)" /* importation */ IDS_ERR_IMPORT_EXISTS "En konfigurasjon med navnet ""%ls"" eksisterer allerede." diff --git a/res/openvpn-gui-res-pl.rc b/res/openvpn-gui-res-pl.rc index 64d865a..964a1cf 100644 --- a/res/openvpn-gui-res-pl.rc +++ b/res/openvpn-gui-res-pl.rc @@ -160,7 +160,7 @@ BEGIN GROUPBOX "Uruchamianie", 202, 6, 47, 235, 30 AUTOCHECKBOX "Uruchamiaj po zalogowaniu się użytkownika", ID_CHK_STARTUP, 17, 59, 200, 12 - GROUPBOX "Preferencje", ID_GROUPBOX3, 6, 82, 235, 105 + GROUPBOX "Preferencje", ID_GROUPBOX3, 6, 82, 235, 150 AUTOCHECKBOX "Dodaj do dziennika", ID_CHK_LOG_APPEND, 17, 95, 60, 10 AUTOCHECKBOX "Pokaż okno skryptu", ID_CHK_SHOW_SCRIPT_WIN, 17, 110, 200, 10 AUTOCHECKBOX "Połączenie dyskretne", ID_CHK_SILENT, 17, 125, 200, 10 @@ -173,6 +173,7 @@ BEGIN AUTORADIOBUTTON "A&uto", ID_RB_BALLOON3, 28, 200, 50, 10, WS_GROUP | WS_TABSTOP AUTORADIOBUTTON "&Manual", ID_RB_BALLOON4, 86, 200, 90, 10 AUTORADIOBUTTON "&Disable", ID_RB_BALLOON5, 181, 200, 40, 10 + AUTOCHECKBOX "Enable Pre-Logon A&ccess Provider (requires admin access)", ID_CHK_PLAP_REG, 17, 215, 200, 10 END /* Advanced Dialog */ @@ -529,6 +530,8 @@ Prawdopodobnie OpenVPN nie jest zainstalowany." z prawami administratora aby uaktualnić rejestr." IDS_ERR_READ_SET_KEY "Błąd odczytu/zmiany klucza rejestru ""%ls""." IDS_ERR_WRITE_REGVALUE "Błąd zapisu rejestru ""HKEY_CURRENT_USER\\%ls\\%ls""." + IDS_ERR_PLAP_REG "Failed to enable Start Before Logon (error = %d)" + IDS_ERR_PLAP_UNREG "Failed to disable Start Before Logon (error = %d)" /* importation */ IDS_ERR_IMPORT_EXISTS "Konfiguracja o nazwie ""%ls"" już istnieje." diff --git a/res/openvpn-gui-res-pt.rc b/res/openvpn-gui-res-pt.rc index b8d8e75..bba6632 100644 --- a/res/openvpn-gui-res-pt.rc +++ b/res/openvpn-gui-res-pt.rc @@ -158,7 +158,7 @@ BEGIN GROUPBOX "Inicialização", 202, 6, 47, 235, 30 AUTOCHECKBOX "Executar ao iniciar o Windows", ID_CHK_STARTUP, 17, 59, 200, 12 - GROUPBOX "Preferências", ID_GROUPBOX3, 6, 82, 235, 105 + GROUPBOX "Preferências", ID_GROUPBOX3, 6, 82, 235, 150 AUTOCHECKBOX "Anexar ao log", ID_CHK_LOG_APPEND, 17, 95, 60, 10 AUTOCHECKBOX "Mostrar janela de script", ID_CHK_SHOW_SCRIPT_WIN, 17, 110, 200, 10 AUTOCHECKBOX "Conexão silenciosa", ID_CHK_SILENT, 17, 125, 200, 10 @@ -171,6 +171,7 @@ BEGIN AUTORADIOBUTTON "A&uto", ID_RB_BALLOON3, 28, 200, 50, 10, WS_GROUP | WS_TABSTOP AUTORADIOBUTTON "&Manual", ID_RB_BALLOON4, 86, 200, 90, 10 AUTORADIOBUTTON "&Disable", ID_RB_BALLOON5, 181, 200, 40, 10 + AUTOCHECKBOX "Enable Pre-Logon A&ccess Provider (requires admin access)", ID_CHK_PLAP_REG, 17, 215, 200, 10 END /* Advanced Dialog */ @@ -529,6 +530,8 @@ OpenVPN provavelmente não está instalado" uma vez como Administrador para alterar o registro." IDS_ERR_READ_SET_KEY "Erro ao ler e ajustar chave de registro ""%ls""." IDS_ERR_WRITE_REGVALUE "Erro ao gravar valor da chave de registro ""HKEY_CURRENT_USER\\%ls\\%ls""." + IDS_ERR_PLAP_REG "Failed to enable Start Before Logon (error = %d)" + IDS_ERR_PLAP_UNREG "Failed to disable Start Before Logon (error = %d)" /* importation */ IDS_ERR_IMPORT_EXISTS "Já existe uma configuração com o nome ""%ls""." diff --git a/res/openvpn-gui-res-ru.rc b/res/openvpn-gui-res-ru.rc index 30cfbc3..50212d8 100644 --- a/res/openvpn-gui-res-ru.rc +++ b/res/openvpn-gui-res-ru.rc @@ -161,7 +161,7 @@ BEGIN GROUPBOX "Запуск", 202, 6, 47, 235, 30 AUTOCHECKBOX "Запускать при старте Windows", ID_CHK_STARTUP, 17, 59, 200, 12 - GROUPBOX "Настройки", ID_GROUPBOX3, 6, 82, 235, 105 + GROUPBOX "Настройки", ID_GROUPBOX3, 6, 82, 235, 150 AUTOCHECKBOX "Дописывать, а не перезаписывать журнал", ID_CHK_LOG_APPEND, 17, 95, 200, 10 AUTOCHECKBOX "Показывать окно выполнения", ID_CHK_SHOW_SCRIPT_WIN, 17, 110, 200, 10 AUTOCHECKBOX "«Тихое» подключение", ID_CHK_SILENT, 17, 125, 200, 10 @@ -174,6 +174,7 @@ BEGIN AUTORADIOBUTTON "A&uto", ID_RB_BALLOON3, 28, 200, 50, 10, WS_GROUP | WS_TABSTOP AUTORADIOBUTTON "&Manual", ID_RB_BALLOON4, 86, 200, 90, 10 AUTORADIOBUTTON "&Disable", ID_RB_BALLOON5, 181, 200, 40, 10 + AUTOCHECKBOX "Enable Pre-Logon A&ccess Provider (requires admin access)", ID_CHK_PLAP_REG, 17, 215, 200, 10 END /* Advanced Dialog */ @@ -530,6 +531,8 @@ OpenVPN, возможно, не установлен." однократно с правами администратора, чтобы обновить реестр." IDS_ERR_READ_SET_KEY "Ошибка чтения и установки значения ключа ""%ls""." IDS_ERR_WRITE_REGVALUE "Ошибка записи значения реестра ""HKEY_CURRENT_USER\\%ls\\%ls""." + IDS_ERR_PLAP_REG "Failed to enable Start Before Logon (error = %d)" + IDS_ERR_PLAP_UNREG "Failed to disable Start Before Logon (error = %d)" /* importation */ IDS_ERR_IMPORT_EXISTS "Файл конфигурации ""%ls"" уже существует." diff --git a/res/openvpn-gui-res-se.rc b/res/openvpn-gui-res-se.rc index a7e5542..8b65212 100644 --- a/res/openvpn-gui-res-se.rc +++ b/res/openvpn-gui-res-se.rc @@ -158,7 +158,7 @@ BEGIN GROUPBOX "Startup", 202, 6, 47, 235, 30 AUTOCHECKBOX "Launch on Windows startup", ID_CHK_STARTUP, 17, 59, 200, 12 - GROUPBOX "Preferences", ID_GROUPBOX3, 6, 82, 235, 105 + GROUPBOX "Preferences", ID_GROUPBOX3, 6, 82, 235, 150 AUTOCHECKBOX "Append to log", ID_CHK_LOG_APPEND, 17, 95, 60, 10 AUTOCHECKBOX "Show script window", ID_CHK_SHOW_SCRIPT_WIN, 17, 110, 200, 10 AUTOCHECKBOX "Silent connection", ID_CHK_SILENT, 17, 125, 200, 10 @@ -171,6 +171,7 @@ BEGIN AUTORADIOBUTTON "A&uto", ID_RB_BALLOON3, 28, 200, 50, 10, WS_GROUP | WS_TABSTOP AUTORADIOBUTTON "&Manual", ID_RB_BALLOON4, 86, 200, 90, 10 AUTORADIOBUTTON "&Disable", ID_RB_BALLOON5, 181, 200, 40, 10 + AUTOCHECKBOX "Enable Pre-Logon A&ccess Provider (requires admin access)", ID_CHK_PLAP_REG, 17, 215, 200, 10 END /* Advanced Dialog */ @@ -524,6 +525,8 @@ Wintun driver ska inte fungera." IDS_ERR_OPEN_WRITE_REG "Fel vid öppnande av registret för skrivning. Du måste starta programmet en gång som administratör för att uppdatera registret." IDS_ERR_READ_SET_KEY "Fel vid läsning och skrivning av register värde ""%ls""." IDS_ERR_WRITE_REGVALUE "Fel vid skrivning av register värdet ""HKEY_CURRENT_USER\\%ls\\%ls""." + IDS_ERR_PLAP_REG "Failed to enable Start Before Logon (error = %d)" + IDS_ERR_PLAP_UNREG "Failed to disable Start Before Logon (error = %d)" /* importation */ IDS_ERR_IMPORT_EXISTS "A config named ""%ls"" already exists." diff --git a/res/openvpn-gui-res-tr.rc b/res/openvpn-gui-res-tr.rc index 851fe3d..60b4ecb 100644 --- a/res/openvpn-gui-res-tr.rc +++ b/res/openvpn-gui-res-tr.rc @@ -160,7 +160,7 @@ BEGIN GROUPBOX "Startup", 202, 6, 47, 235, 30 AUTOCHECKBOX "Launch on Windows startup", ID_CHK_STARTUP, 17, 59, 200, 12 - GROUPBOX "Preferences", ID_GROUPBOX3, 6, 82, 235, 105 + GROUPBOX "Preferences", ID_GROUPBOX3, 6, 82, 235, 150 AUTOCHECKBOX "Append to log", ID_CHK_LOG_APPEND, 17, 95, 60, 10 AUTOCHECKBOX "Show script window", ID_CHK_SHOW_SCRIPT_WIN, 17, 110, 200, 10 AUTOCHECKBOX "Silent connection", ID_CHK_SILENT, 17, 125, 200, 10 @@ -173,6 +173,7 @@ BEGIN AUTORADIOBUTTON "A&uto", ID_RB_BALLOON3, 28, 200, 50, 10, WS_GROUP | WS_TABSTOP AUTORADIOBUTTON "&Manual", ID_RB_BALLOON4, 86, 200, 90, 10 AUTORADIOBUTTON "&Disable", ID_RB_BALLOON5, 181, 200, 40, 10 + AUTOCHECKBOX "Enable Pre-Logon A&ccess Provider (requires admin access)", ID_CHK_PLAP_REG, 17, 215, 200, 10 END /* Advanced Dialog */ @@ -529,6 +530,8 @@ Muhtemelen OpenVPN yüklü değil." sistem yönetici haklarına sahip olmanız gerekmektedir.." IDS_ERR_READ_SET_KEY """%ls"" anahtarı ayarlanırken hata oluştu." IDS_ERR_WRITE_REGVALUE """HKEY_CURRENT_USER\\%ls\\%ls"" anahtarı yazılırken hata oluştu." + IDS_ERR_PLAP_REG "Failed to enable Start Before Logon (error = %d)" + IDS_ERR_PLAP_UNREG "Failed to disable Start Before Logon (error = %d)" /* importation */ IDS_ERR_IMPORT_EXISTS "A config named ""%ls"" already exists." diff --git a/res/openvpn-gui-res-ua.rc b/res/openvpn-gui-res-ua.rc index 032ba64..328f799 100644 --- a/res/openvpn-gui-res-ua.rc +++ b/res/openvpn-gui-res-ua.rc @@ -159,7 +159,7 @@ BEGIN GROUPBOX "Запуск", 202, 6, 47, 235, 30 AUTOCHECKBOX "Запускати при старті Windows", ID_CHK_STARTUP, 17, 59, 200, 12 - GROUPBOX "Налаштування", ID_GROUPBOX3, 6, 82, 235, 105 + GROUPBOX "Налаштування", ID_GROUPBOX3, 6, 82, 235, 150 AUTOCHECKBOX "Додати, а не перезаписувати журнал", ID_CHK_LOG_APPEND, 17, 95, 200, 10 AUTOCHECKBOX "Показувати вікно виконання", ID_CHK_SHOW_SCRIPT_WIN, 17, 110, 200, 10 AUTOCHECKBOX "«Тихе» підключення", ID_CHK_SILENT, 17, 125, 200, 10 @@ -172,6 +172,7 @@ BEGIN AUTORADIOBUTTON "A&uto", ID_RB_BALLOON3, 28, 200, 50, 10, WS_GROUP | WS_TABSTOP AUTORADIOBUTTON "&Manual", ID_RB_BALLOON4, 86, 200, 90, 10 AUTORADIOBUTTON "&Disable", ID_RB_BALLOON5, 181, 200, 40, 10 + AUTOCHECKBOX "Enable Pre-Logon A&ccess Provider (requires admin access)", ID_CHK_PLAP_REG, 17, 215, 200, 10 END /* Advanced Dialog */ @@ -529,6 +530,8 @@ OpenVPN, можливо, не встановлений." із правами адміністратора, щоб відновити реєстр." IDS_ERR_READ_SET_KEY "Помилка читання і встановлення перемінної ""%ls""." IDS_ERR_WRITE_REGVALUE "Помилка запису перемінної реєстру до ""HKEY_CURRENT_USER\\%ls\\%ls""." + IDS_ERR_PLAP_REG "Failed to enable Start Before Logon (error = %d)" + IDS_ERR_PLAP_UNREG "Failed to disable Start Before Logon (error = %d)" /* importation */ diff --git a/res/openvpn-gui-res-zh-hans.rc b/res/openvpn-gui-res-zh-hans.rc index 1008a8d..3ff2580 100644 --- a/res/openvpn-gui-res-zh-hans.rc +++ b/res/openvpn-gui-res-zh-hans.rc @@ -162,7 +162,7 @@ BEGIN GROUPBOX "启动", 202, 6, 47, 235, 30 AUTOCHECKBOX "在 Windows 开机时启动", ID_CHK_STARTUP, 17, 59, 200, 12 - GROUPBOX "偏好设置", ID_GROUPBOX3, 6, 82, 235, 105 + GROUPBOX "偏好设置", ID_GROUPBOX3, 6, 82, 235, 150 AUTOCHECKBOX "追加日志文件", ID_CHK_LOG_APPEND, 17, 95, 60, 10 AUTOCHECKBOX "显示脚本窗口", ID_CHK_SHOW_SCRIPT_WIN, 17, 110, 200, 10 AUTOCHECKBOX "静默连接", ID_CHK_SILENT, 17, 125, 200, 10 @@ -175,6 +175,7 @@ BEGIN AUTORADIOBUTTON "自动", ID_RB_BALLOON3, 28, 200, 50, 10, WS_GROUP | WS_TABSTOP AUTORADIOBUTTON "手动", ID_RB_BALLOON4, 86, 200, 90, 10 AUTORADIOBUTTON "禁用", ID_RB_BALLOON5, 181, 200, 40, 10 + AUTOCHECKBOX "Enable Pre-Logon A&ccess Provider (requires admin access)", ID_CHK_PLAP_REG, 17, 215, 200, 10 END /* Advanced Dialog */ @@ -531,6 +532,8 @@ Wintun驱动程序将无法正常工作。" IDS_ERR_OPEN_WRITE_REG "无法打开系统注册表进行写入,您必须以管理员身分执行此应用程序更新注册表。" IDS_ERR_READ_SET_KEY "读取并设定系统注册表项「%ls」时发生错误。" IDS_ERR_WRITE_REGVALUE "读取系统注册表值「HKEY_CURRENT_USER\\%ls\\%ls」时发生错误。" + IDS_ERR_PLAP_REG "Failed to enable Start Before Logon (error = %d)" + IDS_ERR_PLAP_UNREG "Failed to disable Start Before Logon (error = %d)" /* importation */ IDS_ERR_IMPORT_EXISTS "已有名为「%ls」的连接配置文件。" diff --git a/res/openvpn-gui-res-zh-hant.rc b/res/openvpn-gui-res-zh-hant.rc index 71fd726..1442f5e 100644 --- a/res/openvpn-gui-res-zh-hant.rc +++ b/res/openvpn-gui-res-zh-hant.rc @@ -162,7 +162,7 @@ BEGIN GROUPBOX "啟動", 202, 6, 47, 235, 30 AUTOCHECKBOX "在 Windows 開機時執行", ID_CHK_STARTUP, 17, 59, 200, 12 - GROUPBOX "偏好設定", ID_GROUPBOX3, 6, 82, 235, 105 + GROUPBOX "偏好設定", ID_GROUPBOX3, 6, 82, 235, 150 AUTOCHECKBOX "附加記錄檔", ID_CHK_LOG_APPEND, 17, 95, 60, 10 AUTOCHECKBOX "顯示指令碼視窗", ID_CHK_SHOW_SCRIPT_WIN, 17, 110, 200, 10 AUTOCHECKBOX "寧靜連線", ID_CHK_SILENT, 17, 125, 200, 10 @@ -175,6 +175,7 @@ BEGIN AUTORADIOBUTTON "A&uto", ID_RB_BALLOON3, 28, 200, 50, 10, WS_GROUP | WS_TABSTOP AUTORADIOBUTTON "&Manual", ID_RB_BALLOON4, 86, 200, 90, 10 AUTORADIOBUTTON "&Disable", ID_RB_BALLOON5, 181, 200, 40, 10 + AUTOCHECKBOX "Enable Pre-Logon A&ccess Provider (requires admin access)", ID_CHK_PLAP_REG, 17, 215, 200, 10 END /* Advanced Dialog */ @@ -531,6 +532,8 @@ Wintun driver will not work." IDS_ERR_OPEN_WRITE_REG "無法開啟系統登錄檔進行寫入,您必須以管理員身分執行此應用程式更新註冊表。" IDS_ERR_READ_SET_KEY "讀取並設定系統登錄機碼「%ls」時發生錯誤。" IDS_ERR_WRITE_REGVALUE "讀取系統登錄值「HKEY_CURRENT_USER\\%ls\\%ls」時發生錯誤。" + IDS_ERR_PLAP_REG "Failed to enable Start Before Logon (error = %d)" + IDS_ERR_PLAP_UNREG "Failed to disable Start Before Logon (error = %d)" /* importation */ IDS_ERR_IMPORT_EXISTS "已有名為「%ls」的連線設定檔。"