summaryrefslogtreecommitdiff
path: root/plugins/ProfileManager
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-03-25 22:02:05 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-03-25 22:02:05 +0300
commit35a613633a2bec681e2cb8e7dac583b16465efef (patch)
tree440904c52a3dee40f18cf1f5e9d3699140c3e6f3 /plugins/ProfileManager
parent01e48461e3ddf45c2e9065276ff4b4c5f59ae77b (diff)
string constants with word dbchecker fixed
Diffstat (limited to 'plugins/ProfileManager')
-rw-r--r--plugins/ProfileManager/src/pmanagerEx.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/plugins/ProfileManager/src/pmanagerEx.cpp b/plugins/ProfileManager/src/pmanagerEx.cpp
index 860414c0d5..fad24aae35 100644
--- a/plugins/ProfileManager/src/pmanagerEx.cpp
+++ b/plugins/ProfileManager/src/pmanagerEx.cpp
@@ -11,7 +11,6 @@ There is no warranty.
#define SRV_LOAD_PM "Database/LoadPM"
#define SRV_CHANGE_PM "Database/ChangePM"
-#define SRV_CHECK_DB "Database/CheckDb"
#define SRV_RESTART_ME "System/RestartMe"
HINSTANCE hInst;
@@ -62,21 +61,6 @@ static INT_PTR LoadPM(WPARAM, LPARAM)
return 0;
}
-static INT_PTR CheckDb(WPARAM, LPARAM)
-{
- if (MessageBox(nullptr, TranslateT("Miranda NG will exit and Database checker will start.\n\nAre you sure you want to do this?"), TranslateT("Check database"), MB_ICONWARNING | MB_YESNO | MB_DEFBUTTON2) == IDYES) {
- wchar_t mirandaPath[MAX_PATH], cmdLine[100];
- PROCESS_INFORMATION pi;
- STARTUPINFO si = { 0 };
- si.cb = sizeof(si);
- GetModuleFileName(nullptr, mirandaPath, _countof(mirandaPath));
- mir_snwprintf(cmdLine, L"\"%s\" /restart:%d /svc:dbchecker", mirandaPath, GetCurrentProcessId());
- CallService("CloseAction", 0, 0);
- CreateProcess(mirandaPath, cmdLine, nullptr, nullptr, FALSE, 0, nullptr, nullptr, &si, &pi);
- }
- return 0;
-}
-
static INT_PTR RestartMe(WPARAM, LPARAM)
{
CallService(MS_SYSTEM_RESTART, 1, 0);
@@ -87,7 +71,6 @@ static IconItem iconList[] =
{
{ LPGEN("Load profile"), SRV_LOAD_PM, IDI_LoadPM },
{ LPGEN("Change profile"), SRV_CHANGE_PM, IDI_ChangePM },
- { LPGEN("Check database"), SRV_CHECK_DB, IDI_Dbchecker },
{ LPGEN("Restart"), SRV_RESTART_ME, IDI_Restart }
};
@@ -95,7 +78,6 @@ static MUUID uids[_countof(iconList)] =
{
{ 0xF57779C7, 0xB593, 0x4851, 0x94, 0x3A, 0xEB, 0x90, 0x95, 0x40, 0x0D, 0x2A },
{ 0x701BFC6C, 0x6963, 0x4A4C, 0xA6, 0x39, 0x9B, 0xC0, 0x97, 0x64, 0xFD, 0xCE },
- { 0x3C4409EC, 0xF733, 0x4C33, 0x94, 0x0C, 0x35, 0xAF, 0x36, 0xC6, 0x64, 0x32 },
{ 0x5A2EDCCD, 0xB43B, 0x48FA, 0x8A, 0xE8, 0xB5, 0x8B, 0xD7, 0xA5, 0x5A, 0x13 }
};
@@ -106,7 +88,6 @@ extern "C" __declspec(dllexport) int Load(void)
Icon_Register(hInst, LPGEN("Profile manager"), iconList, _countof(iconList));
CreateServiceFunction(SRV_LOAD_PM, LoadPM);
- CreateServiceFunction(SRV_CHECK_DB, CheckDb);
CreateServiceFunction(SRV_CHANGE_PM, ChangePM);
CreateServiceFunction(SRV_RESTART_ME, RestartMe);