Windows: Add command line switch (/m noattach) that is equivalent to UI option "Only create virtual device without mounting on selected drive letter"

This commit is contained in:
Mounir IDRASSI 2019-03-03 17:11:37 +01:00
parent d92e045b8d
commit 28b8bf5222
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F
1 changed files with 4 additions and 0 deletions

View File

@ -9135,6 +9135,10 @@ void ExtractCommandLine (HWND hwndDlg, wchar_t *lpszCommandLine)
// get the label
StringCbCopyW (mountOptions.Label, sizeof (mountOptions.Label), &szTmp[6]);
}
else if (!_wcsicmp (szTmp, L"noattach"))
{
mountOptions.DisableMountManager = TRUE;
}
else
AbortProcess ("COMMAND_LINE_ERROR");