|
@@ -1018,6 +1018,7 @@ enum {
|
|
|
ID_ADD_USER_NAME,
|
|
|
ID_ADD_USER_REALM,
|
|
|
ID_INPUT_LINE,
|
|
|
+ ID_SYSINFO,
|
|
|
|
|
|
/* All dynamically created text boxes for options have IDs starting from
|
|
|
ID_CONTROLS, incremented by one. */
|
|
@@ -2036,6 +2037,21 @@ change_password_file()
|
|
|
}
|
|
|
|
|
|
|
|
|
+static void
|
|
|
+show_system_info()
|
|
|
+{
|
|
|
+ if (sGuard == 0) {
|
|
|
+ sGuard++;
|
|
|
+ } else {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ /* TODO */
|
|
|
+
|
|
|
+ sGuard--;
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
static int
|
|
|
manage_service(int action)
|
|
|
{
|
|
@@ -2141,6 +2157,9 @@ WindowProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|
|
case ID_PASSWORD:
|
|
|
change_password_file();
|
|
|
break;
|
|
|
+ case ID_SYSINFO:
|
|
|
+ show_system_info();
|
|
|
+ break;
|
|
|
case ID_INSTALL_SERVICE:
|
|
|
case ID_REMOVE_SERVICE:
|
|
|
manage_service(LOWORD(wParam));
|
|
@@ -2187,6 +2206,7 @@ WindowProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|
|
AppendMenu(hMenu, MF_STRING, ID_CONNECT, "Start browser");
|
|
|
AppendMenu(hMenu, MF_STRING, ID_SETTINGS, "Edit settings");
|
|
|
AppendMenu(hMenu, MF_STRING, ID_PASSWORD, "Modify password file");
|
|
|
+ AppendMenu(hMenu, MF_STRING, ID_SYSINFO, "Show system info");
|
|
|
AppendMenu(hMenu, MF_SEPARATOR, ID_SEPARATOR, "");
|
|
|
AppendMenu(hMenu, MF_STRING, ID_QUIT, "Exit");
|
|
|
GetCursorPos(&pt);
|