- Move the code to copy and rename hardware profiles from the dialog procedures into separate functions.
- Use the dialogs only to retrieve the destination profile name.
- Do not copy or rename a hardware profile if it source and destination name is the same.
- Replace a hard.-coded string by a resource string.