https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5a2911d7d85cb4b3c24d5…
commit 5a2911d7d85cb4b3c24d5d927858299f26a613d3
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Mon Mar 25 00:19:58 2019 +0100
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Mon Mar 25 00:19:58 2019 +0100
[SYSDM] Add the 'Copy to' dialog and move the 'Change Profile Type'
dialog a little.
---
dll/cpl/sysdm/lang/bg-BG.rc | 17 +++-
dll/cpl/sysdm/lang/cs-CZ.rc | 17 +++-
dll/cpl/sysdm/lang/da-DK.rc | 17 +++-
dll/cpl/sysdm/lang/de-DE.rc | 17 +++-
dll/cpl/sysdm/lang/el-GR.rc | 17 +++-
dll/cpl/sysdm/lang/en-US.rc | 17 +++-
dll/cpl/sysdm/lang/es-ES.rc | 17 +++-
dll/cpl/sysdm/lang/fr-FR.rc | 39 ++++++---
dll/cpl/sysdm/lang/he-IL.rc | 17 +++-
dll/cpl/sysdm/lang/hu-HU.rc | 17 +++-
dll/cpl/sysdm/lang/id-ID.rc | 17 +++-
dll/cpl/sysdm/lang/it-IT.rc | 17 +++-
dll/cpl/sysdm/lang/ja-JP.rc | 17 +++-
dll/cpl/sysdm/lang/nl-NL.rc | 17 +++-
dll/cpl/sysdm/lang/no-NO.rc | 17 +++-
dll/cpl/sysdm/lang/pl-PL.rc | 17 +++-
dll/cpl/sysdm/lang/ro-RO.rc | 17 +++-
dll/cpl/sysdm/lang/ru-RU.rc | 17 +++-
dll/cpl/sysdm/lang/sk-SK.rc | 17 +++-
dll/cpl/sysdm/lang/sq-AL.rc | 17 +++-
dll/cpl/sysdm/lang/sv-SE.rc | 17 +++-
dll/cpl/sysdm/lang/tr-TR.rc | 17 +++-
dll/cpl/sysdm/lang/uk-UA.rc | 17 +++-
dll/cpl/sysdm/lang/zh-CN.rc | 17 +++-
dll/cpl/sysdm/lang/zh-TW.rc | 17 +++-
dll/cpl/sysdm/resource.h | 8 ++
dll/cpl/sysdm/userprofile.c | 190 +++++++++++++++++++++++++++++++-------------
27 files changed, 554 insertions(+), 91 deletions(-)
diff --git a/dll/cpl/sysdm/lang/bg-BG.rc b/dll/cpl/sysdm/lang/bg-BG.rc
index baede2efb2a..bd3a5bc9fe9 100644
--- a/dll/cpl/sysdm/lang/bg-BG.rc
+++ b/dll/cpl/sysdm/lang/bg-BG.rc
@@ -165,7 +165,7 @@ BEGIN
PUSHBUTTON "Отказ", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Change Profile Type"
FONT 8, "MS Shell Dlg"
@@ -177,6 +177,21 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Пускане и възстановяване"
diff --git a/dll/cpl/sysdm/lang/cs-CZ.rc b/dll/cpl/sysdm/lang/cs-CZ.rc
index da662b15539..f16ccb3d5cb 100644
--- a/dll/cpl/sysdm/lang/cs-CZ.rc
+++ b/dll/cpl/sysdm/lang/cs-CZ.rc
@@ -170,7 +170,7 @@ BEGIN
PUSHBUTTON "Storno", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Change Profile Type"
FONT 8, "MS Shell Dlg"
@@ -182,6 +182,21 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Spuštění a zotavení"
diff --git a/dll/cpl/sysdm/lang/da-DK.rc b/dll/cpl/sysdm/lang/da-DK.rc
index 1aae2813cc7..21ceef5ba63 100644
--- a/dll/cpl/sysdm/lang/da-DK.rc
+++ b/dll/cpl/sysdm/lang/da-DK.rc
@@ -165,7 +165,7 @@ BEGIN
PUSHBUTTON "Fortryd", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Change Profile Type"
FONT 8, "MS Shell Dlg"
@@ -177,6 +177,21 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Opstart og Gendannelse"
diff --git a/dll/cpl/sysdm/lang/de-DE.rc b/dll/cpl/sysdm/lang/de-DE.rc
index a1cddac197e..29f5d06ff00 100644
--- a/dll/cpl/sysdm/lang/de-DE.rc
+++ b/dll/cpl/sysdm/lang/de-DE.rc
@@ -174,7 +174,7 @@ BEGIN
PUSHBUTTON "Abbrechen", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Profiltyp ändern"
FONT 8, "MS Shell Dlg"
@@ -186,6 +186,21 @@ BEGIN
PUSHBUTTON "Abbrechen", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Kopieren nach"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "&Profil kopieren nach", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Durchsuchen", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Benutzer", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "Ä&ndern", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Abbrechen", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Starten und Wiederherstellen"
diff --git a/dll/cpl/sysdm/lang/el-GR.rc b/dll/cpl/sysdm/lang/el-GR.rc
index 8b1ac79e06e..d8552a3a7f7 100644
--- a/dll/cpl/sysdm/lang/el-GR.rc
+++ b/dll/cpl/sysdm/lang/el-GR.rc
@@ -165,7 +165,7 @@ BEGIN
PUSHBUTTON "Άκυρο", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Change Profile Type"
FONT 8, "MS Shell Dlg"
@@ -177,6 +177,21 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Εκκίνηση και αποκατάσταση"
diff --git a/dll/cpl/sysdm/lang/en-US.rc b/dll/cpl/sysdm/lang/en-US.rc
index 4d75aa16f34..02941a12319 100644
--- a/dll/cpl/sysdm/lang/en-US.rc
+++ b/dll/cpl/sysdm/lang/en-US.rc
@@ -165,7 +165,7 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Change Profile Type"
FONT 8, "MS Shell Dlg"
@@ -177,6 +177,21 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Startup and Recovery"
diff --git a/dll/cpl/sysdm/lang/es-ES.rc b/dll/cpl/sysdm/lang/es-ES.rc
index 89c773a83be..1f8f58c1b9b 100644
--- a/dll/cpl/sysdm/lang/es-ES.rc
+++ b/dll/cpl/sysdm/lang/es-ES.rc
@@ -167,7 +167,7 @@ BEGIN
PUSHBUTTON "Cancelar", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Change Profile Type"
FONT 8, "MS Shell Dlg"
@@ -179,6 +179,21 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Inicio y recuperación"
diff --git a/dll/cpl/sysdm/lang/fr-FR.rc b/dll/cpl/sysdm/lang/fr-FR.rc
index db30145b1c2..7661696d665 100644
--- a/dll/cpl/sysdm/lang/fr-FR.rc
+++ b/dll/cpl/sysdm/lang/fr-FR.rc
@@ -146,18 +146,6 @@ BEGIN
PUSHBUTTON "Annuler", IDCANCEL, 196, 24, 50, 14
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
-STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
-CAPTION "Change Profile Type"
-FONT 8, "MS Shell Dlg"
-BEGIN
- LTEXT "", IDC_USERPROFILE_TYPE_TEXT, 7, 11, 206, 28
- AUTORADIOBUTTON "&Roaming profile", IDC_USERPROFILE_TYPE_ROAMING, 60,
49, 145, 10
- AUTORADIOBUTTON "&Local profile", IDC_USERPROFILE_TYPE_LOCAL, 60, 63,
145, 10
- DEFPUSHBUTTON "OK", IDOK, 60, 82, 50, 14
- PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
-END
-
IDD_USERPROFILE DIALOGEX 0, 0, 256, 218
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Profils Utilisateurs"
@@ -177,6 +165,33 @@ BEGIN
PUSHBUTTON "Annuler", IDCANCEL, 196, 198, 54, 15
END
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Change Profile Type"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ LTEXT "", IDC_USERPROFILE_TYPE_TEXT, 7, 11, 206, 28
+ AUTORADIOBUTTON "&Roaming profile", IDC_USERPROFILE_TYPE_ROAMING, 60,
49, 145, 10
+ AUTORADIOBUTTON "&Local profile", IDC_USERPROFILE_TYPE_LOCAL, 60, 63,
145, 10
+ DEFPUSHBUTTON "OK", IDOK, 60, 82, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
+END
+
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Démarrage et Récupération"
diff --git a/dll/cpl/sysdm/lang/he-IL.rc b/dll/cpl/sysdm/lang/he-IL.rc
index 16fd5388f1b..057a008bab3 100644
--- a/dll/cpl/sysdm/lang/he-IL.rc
+++ b/dll/cpl/sysdm/lang/he-IL.rc
@@ -167,7 +167,7 @@ BEGIN
PUSHBUTTON "ביטול", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Change Profile Type"
FONT 8, "MS Shell Dlg"
@@ -179,6 +179,21 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "הפעלה ושחזור"
diff --git a/dll/cpl/sysdm/lang/hu-HU.rc b/dll/cpl/sysdm/lang/hu-HU.rc
index 99e02ffc9cb..ef2ee19adfc 100644
--- a/dll/cpl/sysdm/lang/hu-HU.rc
+++ b/dll/cpl/sysdm/lang/hu-HU.rc
@@ -167,7 +167,7 @@ BEGIN
PUSHBUTTON "Mégsem", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Change Profile Type"
FONT 8, "MS Shell Dlg"
@@ -179,6 +179,21 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Indítás és helyreállítás"
diff --git a/dll/cpl/sysdm/lang/id-ID.rc b/dll/cpl/sysdm/lang/id-ID.rc
index d873b96055e..4c0f1bc5a8b 100644
--- a/dll/cpl/sysdm/lang/id-ID.rc
+++ b/dll/cpl/sysdm/lang/id-ID.rc
@@ -165,7 +165,7 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Change Profile Type"
FONT 8, "MS Shell Dlg"
@@ -177,6 +177,21 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Startup and Recovery"
diff --git a/dll/cpl/sysdm/lang/it-IT.rc b/dll/cpl/sysdm/lang/it-IT.rc
index 33a0fe8bd91..f11d4b13eb1 100644
--- a/dll/cpl/sysdm/lang/it-IT.rc
+++ b/dll/cpl/sysdm/lang/it-IT.rc
@@ -165,7 +165,7 @@ BEGIN
PUSHBUTTON "Annulla", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Change Profile Type"
FONT 8, "MS Shell Dlg"
@@ -177,6 +177,21 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Avvio e recupero"
diff --git a/dll/cpl/sysdm/lang/ja-JP.rc b/dll/cpl/sysdm/lang/ja-JP.rc
index 5eadab04e68..c992ae20241 100644
--- a/dll/cpl/sysdm/lang/ja-JP.rc
+++ b/dll/cpl/sysdm/lang/ja-JP.rc
@@ -165,7 +165,7 @@ BEGIN
PUSHBUTTON "キャンセル", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Change Profile Type"
FONT 9, "MS UI Gothic"
@@ -177,6 +177,21 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 9, "MS UI Gothic"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "起動と回復"
diff --git a/dll/cpl/sysdm/lang/nl-NL.rc b/dll/cpl/sysdm/lang/nl-NL.rc
index 7a39ea7d5b1..601c91e8363 100644
--- a/dll/cpl/sysdm/lang/nl-NL.rc
+++ b/dll/cpl/sysdm/lang/nl-NL.rc
@@ -165,7 +165,7 @@ BEGIN
PUSHBUTTON "Annuleren", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Change Profile Type"
FONT 8, "MS Shell Dlg"
@@ -177,6 +177,21 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Opstart- en herstelinstellingen"
diff --git a/dll/cpl/sysdm/lang/no-NO.rc b/dll/cpl/sysdm/lang/no-NO.rc
index 6fb3d8a3b0c..2570df6a967 100644
--- a/dll/cpl/sysdm/lang/no-NO.rc
+++ b/dll/cpl/sysdm/lang/no-NO.rc
@@ -165,7 +165,7 @@ BEGIN
PUSHBUTTON "Avbryt", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Change Profile Type"
FONT 8, "MS Shell Dlg"
@@ -177,6 +177,21 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Oppstart og gjenoppretting"
diff --git a/dll/cpl/sysdm/lang/pl-PL.rc b/dll/cpl/sysdm/lang/pl-PL.rc
index 30d148c90a2..8242fa9ec4c 100644
--- a/dll/cpl/sysdm/lang/pl-PL.rc
+++ b/dll/cpl/sysdm/lang/pl-PL.rc
@@ -174,7 +174,7 @@ BEGIN
PUSHBUTTON "Anuluj", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Change Profile Type"
FONT 8, "MS Shell Dlg"
@@ -186,6 +186,21 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Uruchamianie i odzyskiwanie"
diff --git a/dll/cpl/sysdm/lang/ro-RO.rc b/dll/cpl/sysdm/lang/ro-RO.rc
index d08ddee1868..2a6ad877111 100644
--- a/dll/cpl/sysdm/lang/ro-RO.rc
+++ b/dll/cpl/sysdm/lang/ro-RO.rc
@@ -174,7 +174,7 @@ BEGIN
PUSHBUTTON "A&nulează", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Change Profile Type"
FONT 8, "MS Shell Dlg"
@@ -186,6 +186,21 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Pornire și Recuperare"
diff --git a/dll/cpl/sysdm/lang/ru-RU.rc b/dll/cpl/sysdm/lang/ru-RU.rc
index 521d85c03d4..b9eccd4e821 100644
--- a/dll/cpl/sysdm/lang/ru-RU.rc
+++ b/dll/cpl/sysdm/lang/ru-RU.rc
@@ -165,7 +165,7 @@ BEGIN
PUSHBUTTON "Отмена", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Change Profile Type"
FONT 8, "MS Shell Dlg"
@@ -177,6 +177,21 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Загрузка и восстановление"
diff --git a/dll/cpl/sysdm/lang/sk-SK.rc b/dll/cpl/sysdm/lang/sk-SK.rc
index 6e77a82f658..f478192e44b 100644
--- a/dll/cpl/sysdm/lang/sk-SK.rc
+++ b/dll/cpl/sysdm/lang/sk-SK.rc
@@ -173,7 +173,7 @@ BEGIN
PUSHBUTTON "Zrušiť", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Change Profile Type"
FONT 8, "MS Shell Dlg"
@@ -185,6 +185,21 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Spúšťanie a obnovovanie"
diff --git a/dll/cpl/sysdm/lang/sq-AL.rc b/dll/cpl/sysdm/lang/sq-AL.rc
index 9bf0b6f7108..1974f3ba3ce 100644
--- a/dll/cpl/sysdm/lang/sq-AL.rc
+++ b/dll/cpl/sysdm/lang/sq-AL.rc
@@ -165,7 +165,7 @@ BEGIN
PUSHBUTTON "Anulo", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Change Profile Type"
FONT 8, "MS Shell Dlg"
@@ -177,6 +177,21 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Fillimi dhe Shërimi"
diff --git a/dll/cpl/sysdm/lang/sv-SE.rc b/dll/cpl/sysdm/lang/sv-SE.rc
index ba6975fd19d..78f6de889ed 100644
--- a/dll/cpl/sysdm/lang/sv-SE.rc
+++ b/dll/cpl/sysdm/lang/sv-SE.rc
@@ -167,7 +167,7 @@ BEGIN
PUSHBUTTON "Avbryt", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Change Profile Type"
FONT 8, "MS Shell Dlg"
@@ -179,6 +179,21 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Start och återställning"
diff --git a/dll/cpl/sysdm/lang/tr-TR.rc b/dll/cpl/sysdm/lang/tr-TR.rc
index 34373a7d295..90f11345a26 100644
--- a/dll/cpl/sysdm/lang/tr-TR.rc
+++ b/dll/cpl/sysdm/lang/tr-TR.rc
@@ -167,7 +167,7 @@ BEGIN
PUSHBUTTON "İptal", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Change Profile Type"
FONT 8, "MS Shell Dlg"
@@ -179,6 +179,21 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Başlangıç ve Kurtarma"
diff --git a/dll/cpl/sysdm/lang/uk-UA.rc b/dll/cpl/sysdm/lang/uk-UA.rc
index 5244315769e..116cef429fb 100644
--- a/dll/cpl/sysdm/lang/uk-UA.rc
+++ b/dll/cpl/sysdm/lang/uk-UA.rc
@@ -173,7 +173,7 @@ BEGIN
PUSHBUTTON "Скасувати", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Change Profile Type"
FONT 8, "MS Shell Dlg"
@@ -185,6 +185,21 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Завантаження й відновлення"
diff --git a/dll/cpl/sysdm/lang/zh-CN.rc b/dll/cpl/sysdm/lang/zh-CN.rc
index 31655dc24ce..51c5d1319e4 100644
--- a/dll/cpl/sysdm/lang/zh-CN.rc
+++ b/dll/cpl/sysdm/lang/zh-CN.rc
@@ -168,7 +168,7 @@ BEGIN
PUSHBUTTON "取消", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Change Profile Type"
FONT 9, "宋体"
@@ -180,6 +180,21 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 9, "宋体"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "启动和故障恢复"
diff --git a/dll/cpl/sysdm/lang/zh-TW.rc b/dll/cpl/sysdm/lang/zh-TW.rc
index c47d483a7f2..a5cdd973313 100644
--- a/dll/cpl/sysdm/lang/zh-TW.rc
+++ b/dll/cpl/sysdm/lang/zh-TW.rc
@@ -168,7 +168,7 @@ BEGIN
PUSHBUTTON "取消", IDCANCEL, 196, 198, 54, 15
END
-IDD_USERPROFILE_TYPE DIALOGEX 0, 0, 225, 103
+IDD_USERPROFILE_TYPE DIALOGEX 6, 18, 225, 103
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "Change Profile Type"
FONT 9, "新細明體"
@@ -180,6 +180,21 @@ BEGIN
PUSHBUTTON "Cancel", IDCANCEL, 122, 82, 50, 14
END
+IDD_USERPROFILE_COPY DIALOGEX 6, 18, 261, 133
+STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
+CAPTION "Copy To"
+FONT 9, "新細明體"
+BEGIN
+ GROUPBOX "Copy &profile to", -1, 8, 9, 185, 52
+ EDITTEXT IDC_USERPROFILE_COPY_PATH, 15, 23, 167, 12, ES_AUTOHSCROLL
+ PUSHBUTTON "&Browse", IDC_USERPROFILE_COPY_BROWSE, 15, 41, 50, 14
+ GROUPBOX "Permitted to use", -1, 8, 77, 185, 48
+ LTEXT "", IDC_USERPROFILE_COPY_USER, 15, 91, 167, 8
+ PUSHBUTTON "&Change", IDC_USERPROFILE_COPY_CHANGE, 15, 105, 50, 14
+ DEFPUSHBUTTON "OK", IDOK, 204, 13, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, 204, 30, 50, 14
+END
+
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION
| WS_SYSMENU
CAPTION "啓動和故障恢復"
diff --git a/dll/cpl/sysdm/resource.h b/dll/cpl/sysdm/resource.h
index 6d9d22aff74..93d204416b5 100644
--- a/dll/cpl/sysdm/resource.h
+++ b/dll/cpl/sysdm/resource.h
@@ -110,6 +110,14 @@
#define IDC_USERPROFILE_TYPE_ROAMING 522
#define IDC_USERPROFILE_TYPE_LOCAL 523
+/* Copy user profile */
+#define IDD_USERPROFILE_COPY 530
+#define IDC_USERPROFILE_COPY_PATH 531
+#define IDC_USERPROFILE_COPY_BROWSE 532
+#define IDC_USERPROFILE_COPY_USER 533
+#define IDC_USERPROFILE_COPY_CHANGE 534
+
+
/* Environment variables */
#define IDD_ENVIRONMENT_VARIABLES 600
#define IDC_USER_VARIABLE_LIST 601
diff --git a/dll/cpl/sysdm/userprofile.c b/dll/cpl/sysdm/userprofile.c
index fa59e9e534e..ff0e08ba3e7 100644
--- a/dll/cpl/sysdm/userprofile.c
+++ b/dll/cpl/sysdm/userprofile.c
@@ -69,10 +69,11 @@ done:
static
INT_PTR
CALLBACK
-UserProfileTypeDlgProc(HWND hwndDlg,
- UINT uMsg,
- WPARAM wParam,
- LPARAM lParam)
+UserProfileTypeDlgProc(
+ _In_ HWND hwndDlg,
+ _In_ UINT uMsg,
+ _In_ WPARAM wParam,
+ _In_ LPARAM lParam)
{
switch (uMsg)
{
@@ -142,6 +143,134 @@ ChangeUserProfileType(
}
+static
+BOOL
+DeleteUserProfile(
+ _In_ HWND hwndDlg)
+{
+ WCHAR szTitle[64], szRawText[128], szCookedText[256];
+ HWND hwndListView;
+ LVITEM Item;
+ INT iSelected;
+ PPROFILEDATA pProfileData;
+
+ DPRINT("DeleteUserProfile()\n");
+
+ hwndListView = GetDlgItem(hwndDlg, IDC_USERPROFILE_LIST);
+ if (hwndListView == NULL)
+ return FALSE;
+
+ iSelected = ListView_GetNextItem(hwndListView, -1, LVNI_SELECTED);
+ if (iSelected == -1)
+ return FALSE;
+
+ ZeroMemory(&Item, sizeof(LVITEM));
+ Item.mask = LVIF_PARAM;
+ Item.iItem = iSelected;
+ Item.iSubItem = 0;
+ if (!ListView_GetItem(hwndListView, &Item))
+ return FALSE;
+
+ if (Item.lParam == 0)
+ return FALSE;
+
+ pProfileData = (PPROFILEDATA)Item.lParam;
+ if (pProfileData->bMyProfile)
+ return FALSE;
+
+ LoadStringW(hApplet, IDS_USERPROFILE_CONFIRM_DELETE_TITLE, szTitle,
ARRAYSIZE(szTitle));
+ LoadStringW(hApplet, IDS_USERPROFILE_CONFIRM_DELETE, szRawText,
ARRAYSIZE(szRawText));
+ swprintf(szCookedText, szRawText, pProfileData->pszFullName);
+
+ if (MessageBoxW(hwndDlg,
+ szCookedText,
+ szTitle,
+ MB_ICONQUESTION | MB_YESNO) == IDYES)
+ {
+ /* FIXME: Delete the profile here! */
+ return TRUE;
+ }
+
+ return FALSE;
+}
+
+
+static
+INT_PTR
+CALLBACK
+CopyUserProfileDlgProc(
+ _In_ HWND hwndDlg,
+ _In_ UINT uMsg,
+ _In_ WPARAM wParam,
+ _In_ LPARAM lParam)
+{
+ switch (uMsg)
+ {
+ case WM_INITDIALOG:
+ return TRUE;
+
+ case WM_DESTROY:
+ break;
+
+ case WM_COMMAND:
+ switch (LOWORD(wParam))
+ {
+ case IDOK:
+ case IDCANCEL:
+ EndDialog(hwndDlg,
+ LOWORD(wParam));
+ return TRUE;
+ }
+ break;
+ }
+
+ return FALSE;
+}
+
+
+static
+BOOL
+CopyUserProfile(
+ _In_ HWND hwndDlg)
+{
+ HWND hwndListView;
+ LVITEM Item;
+ INT iSelected;
+
+ DPRINT("CopyUserProfile()\n");
+
+ hwndListView = GetDlgItem(hwndDlg, IDC_USERPROFILE_LIST);
+ if (hwndListView == NULL)
+ return FALSE;
+
+ iSelected = ListView_GetNextItem(hwndListView, -1, LVNI_SELECTED);
+ if (iSelected == -1)
+ return FALSE;
+
+ ZeroMemory(&Item, sizeof(LVITEM));
+ Item.mask = LVIF_PARAM;
+ Item.iItem = iSelected;
+ Item.iSubItem = 0;
+ if (!ListView_GetItem(hwndListView, &Item))
+ return FALSE;
+
+ if (Item.lParam == 0)
+ return FALSE;
+
+ if (DialogBoxParam(hApplet,
+ MAKEINTRESOURCE(IDD_USERPROFILE_COPY),
+ hwndDlg,
+ CopyUserProfileDlgProc,
+ (LPARAM)Item.lParam) == IDOK)
+ {
+ /* FIXME: Update the profile list view */
+ return TRUE;
+ }
+
+ return FALSE;
+}
+
+
static VOID
SetListViewColumns(
_In_ HWND hwndListView)
@@ -258,6 +387,7 @@ AddUserProfile(
dwState = 0;
}
+ /* Create and fill the profile data entry */
dwProfileData = sizeof(PROFILEDATA) +
((wcslen(szNameBuffer) + 1) * sizeof(WCHAR));
pProfileData = HeapAlloc(GetProcessHeap(),
@@ -467,57 +597,6 @@ OnNotify(
}
-static
-BOOL
-DeleteUserProfile(
- HWND hwndDlg)
-{
- WCHAR szTitle[64], szRawText[128], szCookedText[256];
- HWND hwndListView;
- LVITEM Item;
- INT iSelected;
- PPROFILEDATA pProfileData;
-
- DPRINT("DeleteUserProfile()\n");
-
- hwndListView = GetDlgItem(hwndDlg, IDC_USERPROFILE_LIST);
- if (hwndListView == NULL)
- return FALSE;
-
- iSelected = ListView_GetNextItem(hwndListView, -1, LVNI_SELECTED);
- if (iSelected == -1)
- return FALSE;
-
- ZeroMemory(&Item, sizeof(LVITEM));
- Item.mask = LVIF_PARAM;
- Item.iItem = iSelected;
- Item.iSubItem = 0;
- if (!ListView_GetItem(hwndListView, &Item))
- return FALSE;
-
- if (Item.lParam == 0)
- return FALSE;
-
- pProfileData = (PPROFILEDATA)Item.lParam;
- if (pProfileData->bMyProfile)
- return FALSE;
-
- LoadStringW(hApplet, IDS_USERPROFILE_CONFIRM_DELETE_TITLE, szTitle,
ARRAYSIZE(szTitle));
- LoadStringW(hApplet, IDS_USERPROFILE_CONFIRM_DELETE, szRawText,
ARRAYSIZE(szRawText));
- swprintf(szCookedText, szRawText, pProfileData->pszFullName);
-
- if (MessageBoxW(hwndDlg,
- szCookedText,
- szTitle,
- MB_ICONQUESTION | MB_YESNO) == IDNO)
- return FALSE;
-
- /* FIXME: Delete the profile here! */
-
- return TRUE;
-}
-
-
/* Property page dialog callback */
INT_PTR CALLBACK
UserProfileDlgProc(HWND hwndDlg,
@@ -553,6 +632,7 @@ UserProfileDlgProc(HWND hwndDlg,
break;
case IDC_USERPROFILE_COPY:
+ CopyUserProfile(hwndDlg);
break;
}
break;