mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-12 11:28:26 -06:00
Windows: remove unused code targeting Windows 2000.
This commit is contained in:
@@ -5181,9 +5181,6 @@ static BOOL Dismount (HWND hwndDlg, int nDosDriveNo)
|
||||
if (bBeep)
|
||||
MessageBeep (0xFFFFFFFF);
|
||||
RefreshMainDlg (hwndDlg);
|
||||
|
||||
if (nCurrentOS == WIN_2000 && RemoteSession && !IsAdmin ())
|
||||
LoadDriveLetters (hwndDlg, GetDlgItem (hwndDlg, IDC_DRIVELIST), 0);
|
||||
}
|
||||
|
||||
NormalCursor ();
|
||||
@@ -5358,9 +5355,6 @@ retry:
|
||||
|
||||
RefreshMainDlg (hwndDlg);
|
||||
|
||||
if (nCurrentOS == WIN_2000 && RemoteSession && !IsAdmin ())
|
||||
LoadDriveLetters (hwndDlg, GetDlgItem (hwndDlg, IDC_DRIVELIST), 0);
|
||||
|
||||
NormalCursor();
|
||||
|
||||
if (unmount.nReturnCode != 0)
|
||||
@@ -8692,12 +8686,10 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
|
||||
|
||||
WaitCursor ();
|
||||
|
||||
if (!(nCurrentOS == WIN_2000 && RemoteSession))
|
||||
{
|
||||
BroadcastDeviceChange (DBT_DEVICEREMOVECOMPLETE, 0, ~driveMap);
|
||||
Sleep (100);
|
||||
BroadcastDeviceChange (DBT_DEVICEARRIVAL, 0, driveMap);
|
||||
}
|
||||
|
||||
BroadcastDeviceChange (DBT_DEVICEREMOVECOMPLETE, 0, ~driveMap);
|
||||
Sleep (100);
|
||||
BroadcastDeviceChange (DBT_DEVICEARRIVAL, 0, driveMap);
|
||||
|
||||
LoadDriveLetters (hwndDlg, GetDlgItem (hwndDlg, IDC_DRIVELIST), 0);
|
||||
|
||||
@@ -9826,7 +9818,7 @@ BOOL TaskBarIconAdd (HWND hwnd)
|
||||
ScreenDPI >= 120 ? 0 : 16,
|
||||
(ScreenDPI >= 120 ? LR_DEFAULTSIZE : 0)
|
||||
| LR_SHARED
|
||||
| (nCurrentOS != WIN_2000 ? LR_DEFAULTCOLOR : LR_VGACOLOR)); // Windows 2000 cannot display more than 16 fixed colors in notification tray
|
||||
| LR_DEFAULTCOLOR);
|
||||
|
||||
StringCbCopyW (tnid.szTip, sizeof(tnid.szTip), L"VeraCrypt");
|
||||
|
||||
@@ -9878,7 +9870,7 @@ BOOL TaskBarIconChange (HWND hwnd, int iconId)
|
||||
ScreenDPI >= 120 ? 0 : 16,
|
||||
(ScreenDPI >= 120 ? LR_DEFAULTSIZE : 0)
|
||||
| LR_SHARED
|
||||
| (nCurrentOS != WIN_2000 ? LR_DEFAULTCOLOR : LR_VGACOLOR)); // Windows 2000 cannot display more than 16 fixed colors in notification tray
|
||||
| LR_DEFAULTCOLOR : LR_VGACOLOR);
|
||||
|
||||
return Shell_NotifyIcon (NIM_MODIFY, &tnid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user