mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-12 03:18:26 -06:00
Modifications to remove all TrueCrypt references in names. generate new GUIDs for VeraCrypt. Replace "TRUE" by "VERA" in volume headers and driver magic word.
This commit is contained in:
@@ -296,17 +296,17 @@ typedef struct
|
||||
#define DRIVER_STR
|
||||
#endif
|
||||
|
||||
#define TC_UNIQUE_ID_PREFIX "TrueCryptVolume"
|
||||
#define TC_MOUNT_PREFIX L"\\Device\\TrueCryptVolume"
|
||||
#define TC_UNIQUE_ID_PREFIX "VeraCryptVolume"
|
||||
#define TC_MOUNT_PREFIX L"\\Device\\VeraCryptVolume"
|
||||
|
||||
#define NT_MOUNT_PREFIX DRIVER_STR("\\Device\\TrueCryptVolume")
|
||||
#define NT_ROOT_PREFIX DRIVER_STR("\\Device\\TrueCrypt")
|
||||
#define NT_MOUNT_PREFIX DRIVER_STR("\\Device\\VeraCryptVolume")
|
||||
#define NT_ROOT_PREFIX DRIVER_STR("\\Device\\VeraCrypt")
|
||||
#define DOS_MOUNT_PREFIX DRIVER_STR("\\DosDevices\\")
|
||||
#define DOS_ROOT_PREFIX DRIVER_STR("\\DosDevices\\TrueCrypt")
|
||||
#define WIN32_ROOT_PREFIX DRIVER_STR("\\\\.\\TrueCrypt")
|
||||
#define DOS_ROOT_PREFIX DRIVER_STR("\\DosDevices\\VeraCrypt")
|
||||
#define WIN32_ROOT_PREFIX DRIVER_STR("\\\\.\\VeraCrypt")
|
||||
|
||||
#define TC_DRIVER_CONFIG_REG_VALUE_NAME DRIVER_STR("TrueCryptConfig")
|
||||
#define TC_ENCRYPTION_FREE_CPU_COUNT_REG_VALUE_NAME DRIVER_STR("TrueCryptEncryptionFreeCpuCount")
|
||||
#define TC_DRIVER_CONFIG_REG_VALUE_NAME DRIVER_STR("VeraCryptConfig")
|
||||
#define TC_ENCRYPTION_FREE_CPU_COUNT_REG_VALUE_NAME DRIVER_STR("VeraCryptEncryptionFreeCpuCount")
|
||||
|
||||
// WARNING: Modifying the following values can introduce incompatibility with previous versions.
|
||||
#define TC_DRIVER_CONFIG_CACHE_BOOT_PASSWORD 0x1
|
||||
|
||||
@@ -521,7 +521,7 @@ namespace TrueCrypt
|
||||
DWORD BootEncryption::GetDriverServiceStartType ()
|
||||
{
|
||||
DWORD startType;
|
||||
throw_sys_if (!ReadLocalMachineRegistryDword ("SYSTEM\\CurrentControlSet\\Services\\truecrypt", "Start", &startType));
|
||||
throw_sys_if (!ReadLocalMachineRegistryDword ("SYSTEM\\CurrentControlSet\\Services\\veracrypt", "Start", &startType));
|
||||
return startType;
|
||||
}
|
||||
|
||||
@@ -550,7 +550,7 @@ namespace TrueCrypt
|
||||
|
||||
finally_do_arg (SC_HANDLE, serviceManager, { CloseServiceHandle (finally_arg); });
|
||||
|
||||
SC_HANDLE service = OpenService (serviceManager, "truecrypt", SERVICE_CHANGE_CONFIG);
|
||||
SC_HANDLE service = OpenService (serviceManager, "veracrypt", SERVICE_CHANGE_CONFIG);
|
||||
throw_sys_if (!service);
|
||||
|
||||
finally_do_arg (SC_HANDLE, service, { CloseServiceHandle (finally_arg); });
|
||||
@@ -564,7 +564,7 @@ namespace TrueCrypt
|
||||
char filesystem[128];
|
||||
|
||||
string path (GetWindowsDirectory());
|
||||
path += "\\drivers\\truecrypt.sys";
|
||||
path += "\\drivers\\veracrypt.sys";
|
||||
|
||||
if (GetVolumePathName (path.c_str(), pathBuf, sizeof (pathBuf))
|
||||
&& GetVolumeInformation (pathBuf, NULL, 0, NULL, NULL, NULL, filesystem, sizeof(filesystem))
|
||||
@@ -585,7 +585,7 @@ namespace TrueCrypt
|
||||
NULL, NULL, NULL, NULL, NULL));
|
||||
|
||||
// ChangeServiceConfig() rejects SERVICE_BOOT_START with ERROR_INVALID_PARAMETER
|
||||
throw_sys_if (!WriteLocalMachineRegistryDword ("SYSTEM\\CurrentControlSet\\Services\\truecrypt", "Start", startType));
|
||||
throw_sys_if (!WriteLocalMachineRegistryDword ("SYSTEM\\CurrentControlSet\\Services\\veracrypt", "Start", startType));
|
||||
}
|
||||
|
||||
|
||||
@@ -1396,7 +1396,7 @@ namespace TrueCrypt
|
||||
|
||||
// Primary volume descriptor
|
||||
strcpy ((char *)image + 0x8000, "\001CD001\001");
|
||||
strcpy ((char *)image + 0x7fff + 41, "TrueCrypt Rescue Disk ");
|
||||
strcpy ((char *)image + 0x7fff + 41, "VeraCrypt Rescue Disk ");
|
||||
*(uint32 *) (image + 0x7fff + 81) = RescueIsoImageSize / 2048;
|
||||
*(uint32 *) (image + 0x7fff + 85) = BE32 (RescueIsoImageSize / 2048);
|
||||
image[0x7fff + 121] = 1;
|
||||
@@ -1572,7 +1572,7 @@ namespace TrueCrypt
|
||||
|
||||
DecryptBuffer (RescueVolumeHeader + HEADER_ENCRYPTED_DATA_OFFSET, HEADER_ENCRYPTED_DATA_SIZE, cryptoInfo);
|
||||
|
||||
if (GetHeaderField32 (RescueVolumeHeader, TC_HEADER_OFFSET_MAGIC) != 0x54525545)
|
||||
if (GetHeaderField32 (RescueVolumeHeader, TC_HEADER_OFFSET_MAGIC) != 0x56455241)
|
||||
throw ParameterIncorrect (SRC_POS);
|
||||
|
||||
byte *fieldPos = RescueVolumeHeader + TC_HEADER_OFFSET_ENCRYPTED_AREA_LENGTH;
|
||||
@@ -1682,7 +1682,7 @@ namespace TrueCrypt
|
||||
{
|
||||
case DriveFilter:
|
||||
case VolumeFilter:
|
||||
filter = "truecrypt";
|
||||
filter = "veracrypt";
|
||||
filterReg = "UpperFilters";
|
||||
regKey = SetupDiOpenClassRegKey (deviceClassGuid, KEY_READ | KEY_WRITE);
|
||||
throw_sys_if (regKey == INVALID_HANDLE_VALUE);
|
||||
@@ -1693,7 +1693,7 @@ namespace TrueCrypt
|
||||
if (!IsOSAtLeast (WIN_VISTA))
|
||||
return;
|
||||
|
||||
filter = "truecrypt.sys";
|
||||
filter = "veracrypt.sys";
|
||||
filterReg = "DumpFilters";
|
||||
SetLastError (RegOpenKeyEx (HKEY_LOCAL_MACHINE, "SYSTEM\\CurrentControlSet\\Control\\CrashControl", 0, KEY_READ | KEY_WRITE, ®Key));
|
||||
throw_sys_if (GetLastError() != ERROR_SUCCESS);
|
||||
@@ -1725,14 +1725,14 @@ namespace TrueCrypt
|
||||
}
|
||||
else
|
||||
{
|
||||
string infFileName = GetTempPath() + "\\truecrypt_driver_setup.inf";
|
||||
string infFileName = GetTempPath() + "\\veracrypt_driver_setup.inf";
|
||||
|
||||
File infFile (infFileName, false, true);
|
||||
finally_do_arg (string, infFileName, { DeleteFile (finally_arg.c_str()); });
|
||||
|
||||
string infTxt = "[truecrypt]\r\n"
|
||||
+ string (registerFilter ? "Add" : "Del") + "Reg=truecrypt_reg\r\n\r\n"
|
||||
"[truecrypt_reg]\r\n"
|
||||
string infTxt = "[veracrypt]\r\n"
|
||||
+ string (registerFilter ? "Add" : "Del") + "Reg=veracrypt_reg\r\n\r\n"
|
||||
"[veracrypt_reg]\r\n"
|
||||
"HKR,,\"" + filterReg + "\",0x0001" + string (registerFilter ? "0008" : "8002") + ",\"" + filter + "\"\r\n";
|
||||
|
||||
infFile.Write ((byte *) infTxt.c_str(), infTxt.size());
|
||||
@@ -1742,7 +1742,7 @@ namespace TrueCrypt
|
||||
throw_sys_if (hInf == INVALID_HANDLE_VALUE);
|
||||
finally_do_arg (HINF, hInf, { SetupCloseInfFile (finally_arg); });
|
||||
|
||||
throw_sys_if (!SetupInstallFromInfSection (ParentWindow, hInf, "truecrypt", SPINST_REGISTRY, regKey, NULL, 0, NULL, NULL, NULL, NULL));
|
||||
throw_sys_if (!SetupInstallFromInfSection (ParentWindow, hInf, "veracrypt", SPINST_REGISTRY, regKey, NULL, 0, NULL, NULL, NULL, NULL));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1819,7 +1819,7 @@ namespace TrueCrypt
|
||||
throw_sys_if (!service);
|
||||
|
||||
SERVICE_DESCRIPTION description;
|
||||
description.lpDescription = "Mounts TrueCrypt system favorite volumes.";
|
||||
description.lpDescription = "Mounts VeraCrypt system favorite volumes.";
|
||||
ChangeServiceConfig2 (service, SERVICE_CONFIG_DESCRIPTION, &description);
|
||||
|
||||
CloseServiceHandle (service);
|
||||
@@ -2337,7 +2337,7 @@ namespace TrueCrypt
|
||||
else
|
||||
configMap &= ~flag;
|
||||
|
||||
WriteLocalMachineRegistryDwordValue ("SYSTEM\\CurrentControlSet\\Services\\truecrypt", TC_DRIVER_CONFIG_REG_VALUE_NAME, configMap);
|
||||
WriteLocalMachineRegistryDwordValue ("SYSTEM\\CurrentControlSet\\Services\\veracrypt", TC_DRIVER_CONFIG_REG_VALUE_NAME, configMap);
|
||||
}
|
||||
|
||||
void BootEncryption::StartDecryption (BOOL discardUnreadableEncryptedSectors)
|
||||
@@ -2403,7 +2403,7 @@ namespace TrueCrypt
|
||||
{
|
||||
DWORD configMap;
|
||||
|
||||
if (!ReadLocalMachineRegistryDword ("SYSTEM\\CurrentControlSet\\Services\\truecrypt", TC_DRIVER_CONFIG_REG_VALUE_NAME, &configMap))
|
||||
if (!ReadLocalMachineRegistryDword ("SYSTEM\\CurrentControlSet\\Services\\veracrypt", TC_DRIVER_CONFIG_REG_VALUE_NAME, &configMap))
|
||||
configMap = 0;
|
||||
|
||||
return configMap;
|
||||
|
||||
@@ -28,7 +28,7 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
|
||||
IDD_ABOUT_DLG DIALOGEX 31, 51, 292, 199
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_3DLOOK | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "About TrueCrypt"
|
||||
CAPTION "About VeraCrypt"
|
||||
CLASS "SplashDlg"
|
||||
FONT 8, "MS Shell Dlg", 0, 0, 0x0
|
||||
BEGIN
|
||||
@@ -67,7 +67,7 @@ END
|
||||
|
||||
IDD_MOUNT_OPTIONS DIALOGEX 0, 0, 277, 172
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "TrueCrypt - Mount Options"
|
||||
CAPTION "VeraCrypt - Mount Options"
|
||||
FONT 8, "MS Shell Dlg", 400, 0, 0x1
|
||||
BEGIN
|
||||
CONTROL "Mount volume as read-&only",IDC_MOUNT_READONLY,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,11,194,10
|
||||
@@ -92,7 +92,7 @@ END
|
||||
|
||||
IDD_KEYFILES DIALOGEX 0, 0, 345, 237
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "TrueCrypt - Keyfiles"
|
||||
CAPTION "VeraCrypt - Keyfiles"
|
||||
FONT 8, "MS Shell Dlg", 400, 0, 0x1
|
||||
BEGIN
|
||||
CONTROL "",IDC_KEYLIST,"SysListView32",LVS_REPORT | LVS_SHOWSELALWAYS | LVS_ALIGNLEFT | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,7,8,263,118
|
||||
@@ -114,7 +114,7 @@ END
|
||||
|
||||
IDD_LANGUAGE DIALOGEX 0, 0, 209, 183
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "TrueCrypt - Language"
|
||||
CAPTION "VeraCrypt - Language"
|
||||
FONT 8, "MS Shell Dlg", 400, 0, 0x1
|
||||
BEGIN
|
||||
LISTBOX IDC_LANGLIST,6,7,197,67,LBS_SORT | LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
|
||||
@@ -130,7 +130,7 @@ END
|
||||
|
||||
IDD_BENCHMARK_DLG DIALOGEX 0, 0, 330, 223
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "TrueCrypt - Encryption Algorithm Benchmark"
|
||||
CAPTION "VeraCrypt - Encryption Algorithm Benchmark"
|
||||
FONT 8, "MS Shell Dlg", 400, 0, 0x1
|
||||
BEGIN
|
||||
COMBOBOX IDC_BENCHMARK_BUFFER_SIZE,55,7,77,129,CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
|
||||
@@ -151,7 +151,7 @@ END
|
||||
|
||||
IDD_CIPHER_TEST_DLG DIALOGEX 0, 0, 326, 249
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "TrueCrypt - Test Vectors"
|
||||
CAPTION "VeraCrypt - Test Vectors"
|
||||
FONT 8, "MS Shell Dlg", 0, 0, 0x0
|
||||
BEGIN
|
||||
COMBOBOX IDC_CIPHER,109,10,104,126,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
|
||||
@@ -196,7 +196,7 @@ END
|
||||
|
||||
IDD_KEYFILE_GENERATOR DIALOGEX 0, 0, 308, 270
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "TrueCrypt - Keyfile Generator"
|
||||
CAPTION "VeraCrypt - Keyfile Generator"
|
||||
FONT 8, "MS Shell Dlg", 400, 0, 0x1
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "Close",IDCLOSE,237,10,59,14
|
||||
@@ -277,7 +277,7 @@ END
|
||||
|
||||
IDD_RANDOM_POOL_ENRICHMENT DIALOGEX 0, 0, 308, 270
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "TrueCrypt - Random Pool Enrichment"
|
||||
CAPTION "VeraCrypt - Random Pool Enrichment"
|
||||
FONT 8, "MS Shell Dlg", 400, 0, 0x1
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "&Continue",IDC_CONTINUE,119,248,71,14
|
||||
@@ -293,7 +293,7 @@ END
|
||||
IDD_STATIC_MODELESS_WAIT_DLG DIALOGEX 0, 0, 292, 42
|
||||
STYLE DS_SYSMODAL | DS_SETFONT | DS_MODALFRAME | DS_SETFOREGROUND | DS_3DLOOK | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION
|
||||
EXSTYLE WS_EX_TOPMOST | WS_EX_TOOLWINDOW
|
||||
CAPTION "TrueCrypt"
|
||||
CAPTION "VeraCrypt"
|
||||
FONT 8, "MS Shell Dlg", 0, 0, 0x0
|
||||
BEGIN
|
||||
LTEXT "Please wait. This process may take a long time...",IDT_STATIC_MODELESS_WAIT_DLG_INFO,9,8,274,9
|
||||
@@ -512,9 +512,9 @@ END
|
||||
|
||||
// Icon with lowest ID value placed first to ensure application icon
|
||||
// remains consistent on all systems.
|
||||
IDI_TRUECRYPT_ICON ICON "..\\Common\\TrueCrypt.ico"
|
||||
IDI_TRUECRYPT_VOL_ICON ICON "..\\Common\\TrueCrypt_volume.ico"
|
||||
IDI_TRUECRYPT_MOUNTED_ICON ICON "..\\Common\\TrueCrypt_mounted.ico"
|
||||
IDI_TRUECRYPT_ICON ICON "..\\Common\\VeraCrypt.ico"
|
||||
IDI_TRUECRYPT_VOL_ICON ICON "..\\Common\\VeraCrypt_volume.ico"
|
||||
IDI_TRUECRYPT_MOUNTED_ICON ICON "..\\Common\\VeraCrypt_mounted.ico"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
|
||||
@@ -375,7 +375,7 @@ void CreateFullVolumePath (char *lpszDiskFile, const char *lpszFileName, BOOL *
|
||||
int FakeDosNameForDevice (const char *lpszDiskFile, char *lpszDosDevice, char *lpszCFDevice, BOOL bNameOnly)
|
||||
{
|
||||
BOOL bDosLinkCreated = TRUE;
|
||||
sprintf (lpszDosDevice, "truecrypt%lu", GetCurrentProcessId ());
|
||||
sprintf (lpszDosDevice, "veracrypt%lu", GetCurrentProcessId ());
|
||||
|
||||
if (bNameOnly == FALSE)
|
||||
bDosLinkCreated = DefineDosDevice (DDD_RAW_TARGET_PATH, lpszDosDevice, lpszDiskFile);
|
||||
@@ -870,7 +870,7 @@ BOOL CALLBACK AboutDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam
|
||||
LocalizeDialog (hwndDlg, "IDD_ABOUT_DLG");
|
||||
|
||||
// Hyperlink
|
||||
SetWindowText (GetDlgItem (hwndDlg, IDC_HOMEPAGE), "www.truecrypt.org");
|
||||
SetWindowText (GetDlgItem (hwndDlg, IDC_HOMEPAGE), "www.idrix.fr");
|
||||
ToHyperlink (hwndDlg, IDC_HOMEPAGE);
|
||||
|
||||
// Logo area background (must not keep aspect ratio; must retain Windows-imposed distortion)
|
||||
@@ -890,7 +890,7 @@ BOOL CALLBACK AboutDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam
|
||||
|
||||
// Version
|
||||
SendMessage (GetDlgItem (hwndDlg, IDT_ABOUT_VERSION), WM_SETFONT, (WPARAM) hUserBoldFont, 0);
|
||||
sprintf (szTmp, "TrueCrypt %s", VERSION_STRING);
|
||||
sprintf (szTmp, "VeraCrypt %s", VERSION_STRING);
|
||||
#if (defined(_DEBUG) || defined(DEBUG))
|
||||
strcat (szTmp, " (debug)");
|
||||
#endif
|
||||
@@ -905,14 +905,7 @@ BOOL CALLBACK AboutDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam
|
||||
|
||||
case WM_APP:
|
||||
SetWindowText (GetDlgItem (hwndDlg, IDC_ABOUT_CREDITS),
|
||||
"Portions of this software are based in part on the works of the following people: "
|
||||
"Paul Le Roux, "
|
||||
"Bruce Schneier, John Kelsey, Doug Whiting, David Wagner, Chris Hall, Niels Ferguson, "
|
||||
"Lars Knudsen, Ross Anderson, Eli Biham, "
|
||||
"Joan Daemen, Vincent Rijmen, "
|
||||
"Phillip Rogaway, "
|
||||
"Hans Dobbertin, Antoon Bosselaers, Bart Preneel, "
|
||||
"Paulo Barreto, Brian Gladman, Wei Dai, Peter Gutmann, and many others.\r\n\r\n"
|
||||
"Based on TrueCrypt, freely available at http://www.truecrypt.org/ .\r\n\r\n"
|
||||
|
||||
"Portions of this software:\r\n"
|
||||
"Copyright \xA9 2003-2012 TrueCrypt Developers Association. All Rights Reserved.\r\n"
|
||||
@@ -921,9 +914,9 @@ BOOL CALLBACK AboutDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam
|
||||
"Copyright \xA9 2002-2004 Mark Adler. All Rights Reserved.\r\n\r\n"
|
||||
|
||||
"This software as a whole:\r\n"
|
||||
"Copyright \xA9 2012 TrueCrypt Developers Association. All rights reserved.\r\n\r\n"
|
||||
"Copyright \xA9 2013 IDRIX. All rights reserved.\r\n\r\n"
|
||||
|
||||
"A TrueCrypt Foundation Release");
|
||||
"An IDRIX Release");
|
||||
|
||||
return 1;
|
||||
|
||||
@@ -1822,6 +1815,7 @@ void ExceptionHandlerThread (void *threadArg)
|
||||
else
|
||||
lpack[0] = 0;
|
||||
|
||||
/*
|
||||
sprintf (url, TC_APPLINK_SECURE "&dest=err-report%s&os=%s&osver=%d.%d.%d&arch=%s&cpus=%d&app=%s&cksum=%x&dlg=%s&err=%x&addr=%x"
|
||||
, lpack
|
||||
, GetWindowsEdition().c_str()
|
||||
@@ -1850,7 +1844,7 @@ void ExceptionHandlerThread (void *threadArg)
|
||||
|
||||
if (IDYES == MessageBoxW (0, msg, GetString ("EXCEPTION_REPORT_TITLE"), MB_ICONERROR | MB_YESNO | MB_DEFBUTTON1))
|
||||
ShellExecute (NULL, "open", urlStr.c_str(), NULL, NULL, SW_SHOWNORMAL);
|
||||
else
|
||||
else*/
|
||||
UnhandledExceptionFilter (ep);
|
||||
}
|
||||
|
||||
@@ -2039,7 +2033,7 @@ uint32 ReadDriverConfigurationFlags ()
|
||||
{
|
||||
DWORD configMap;
|
||||
|
||||
if (!ReadLocalMachineRegistryDword ("SYSTEM\\CurrentControlSet\\Services\\truecrypt", TC_DRIVER_CONFIG_REG_VALUE_NAME, &configMap))
|
||||
if (!ReadLocalMachineRegistryDword ("SYSTEM\\CurrentControlSet\\Services\\veracrypt", TC_DRIVER_CONFIG_REG_VALUE_NAME, &configMap))
|
||||
configMap = 0;
|
||||
|
||||
return configMap;
|
||||
@@ -2050,7 +2044,7 @@ uint32 ReadEncryptionThreadPoolFreeCpuCountLimit ()
|
||||
{
|
||||
DWORD count;
|
||||
|
||||
if (!ReadLocalMachineRegistryDword ("SYSTEM\\CurrentControlSet\\Services\\truecrypt", TC_ENCRYPTION_FREE_CPU_COUNT_REG_VALUE_NAME, &count))
|
||||
if (!ReadLocalMachineRegistryDword ("SYSTEM\\CurrentControlSet\\Services\\veracrypt", TC_ENCRYPTION_FREE_CPU_COUNT_REG_VALUE_NAME, &count))
|
||||
count = 0;
|
||||
|
||||
return count;
|
||||
@@ -2329,12 +2323,12 @@ void InitApp (HINSTANCE hInstance, char *lpszCommandLine)
|
||||
wcex.cbSize = sizeof(WNDCLASSEX);
|
||||
wcex.lpfnWndProc = (WNDPROC) NonInstallUacWndProc;
|
||||
wcex.hInstance = hInstance;
|
||||
wcex.lpszClassName = "TrueCrypt";
|
||||
wcex.lpszClassName = "VeraCrypt";
|
||||
RegisterClassEx (&wcex);
|
||||
|
||||
// A small transparent window is necessary to bring the new instance to foreground
|
||||
hWnd = CreateWindowEx (WS_EX_TOOLWINDOW | WS_EX_LAYERED,
|
||||
"TrueCrypt", "TrueCrypt", 0,
|
||||
"VeraCrypt", "VeraCrypt", 0,
|
||||
GetSystemMetrics (SM_CXSCREEN)/2,
|
||||
GetSystemMetrics (SM_CYSCREEN)/2,
|
||||
1, 1, NULL, NULL, hInstance, NULL);
|
||||
@@ -2485,11 +2479,11 @@ void InitHelpFileName (void)
|
||||
if (strcmp (GetPreferredLangId(), "en") == 0
|
||||
|| GetPreferredLangId() == NULL)
|
||||
{
|
||||
strcpy (++lpszTmp, "TrueCrypt User Guide.pdf");
|
||||
strcpy (++lpszTmp, "VeraCrypt User Guide.pdf");
|
||||
}
|
||||
else
|
||||
{
|
||||
sprintf (szTemp, "TrueCrypt User Guide.%s.pdf", GetPreferredLangId());
|
||||
sprintf (szTemp, "VeraCrypt User Guide.%s.pdf", GetPreferredLangId());
|
||||
strcpy (++lpszTmp, szTemp);
|
||||
}
|
||||
|
||||
@@ -2498,7 +2492,7 @@ void InitHelpFileName (void)
|
||||
lpszTmp = strrchr (szHelpFile2, '\\');
|
||||
if (lpszTmp)
|
||||
{
|
||||
strcpy (++lpszTmp, "TrueCrypt User Guide.pdf");
|
||||
strcpy (++lpszTmp, "VeraCrypt User Guide.pdf");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2778,7 +2772,7 @@ BOOL CALLBACK TextInfoDialogBoxDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, L
|
||||
break;
|
||||
|
||||
case TC_TBXID_SYS_ENC_RESCUE_DISK:
|
||||
PrintHardCopyTextUTF16 ((wchar_t *) GetRescueDiskHelpString ().c_str(), "TrueCrypt Rescue Disk Help", GetRescueDiskHelpString ().length () * 2);
|
||||
PrintHardCopyTextUTF16 ((wchar_t *) GetRescueDiskHelpString ().c_str(), "VeraCrypt Rescue Disk Help", GetRescueDiskHelpString ().length () * 2);
|
||||
break;
|
||||
|
||||
case TC_TBXID_DECOY_OS_INSTRUCTIONS:
|
||||
@@ -3198,9 +3192,9 @@ BOOL DoDriverInstall (HWND hwndDlg)
|
||||
StatusMessage (hwndDlg, "INSTALLING_DRIVER");
|
||||
#endif
|
||||
|
||||
hService = CreateService (hManager, "truecrypt", "truecrypt",
|
||||
hService = CreateService (hManager, "veracrypt", "veracrypt",
|
||||
SERVICE_ALL_ACCESS, SERVICE_KERNEL_DRIVER, SERVICE_SYSTEM_START, SERVICE_ERROR_NORMAL,
|
||||
"System32\\drivers\\truecrypt.sys",
|
||||
"System32\\drivers\\veracrypt.sys",
|
||||
NULL, NULL, NULL, NULL, NULL);
|
||||
|
||||
if (hService == NULL)
|
||||
@@ -3208,7 +3202,7 @@ BOOL DoDriverInstall (HWND hwndDlg)
|
||||
else
|
||||
CloseServiceHandle (hService);
|
||||
|
||||
hService = OpenService (hManager, "truecrypt", SERVICE_ALL_ACCESS);
|
||||
hService = OpenService (hManager, "veracrypt", SERVICE_ALL_ACCESS);
|
||||
if (hService == NULL)
|
||||
goto error;
|
||||
|
||||
@@ -3252,7 +3246,7 @@ static int DriverLoad ()
|
||||
char *tmp;
|
||||
DWORD startType;
|
||||
|
||||
if (ReadLocalMachineRegistryDword ("SYSTEM\\CurrentControlSet\\Services\\truecrypt", "Start", &startType) && startType == SERVICE_BOOT_START)
|
||||
if (ReadLocalMachineRegistryDword ("SYSTEM\\CurrentControlSet\\Services\\veracrypt", "Start", &startType) && startType == SERVICE_BOOT_START)
|
||||
return ERR_PARAMETER_INCORRECT;
|
||||
|
||||
GetModuleFileName (NULL, driverPath, sizeof (driverPath));
|
||||
@@ -3263,7 +3257,7 @@ static int DriverLoad ()
|
||||
tmp = driverPath + 1;
|
||||
}
|
||||
|
||||
strcpy (tmp, !Is64BitOs () ? "\\truecrypt.sys" : "\\truecrypt-x64.sys");
|
||||
strcpy (tmp, !Is64BitOs () ? "\\veracrypt.sys" : "\\veracrypt-x64.sys");
|
||||
|
||||
file = FindFirstFile (driverPath, &find);
|
||||
|
||||
@@ -3287,7 +3281,7 @@ static int DriverLoad ()
|
||||
return ERR_OS_ERROR;
|
||||
}
|
||||
|
||||
hService = OpenService (hManager, "truecrypt", SERVICE_ALL_ACCESS);
|
||||
hService = OpenService (hManager, "veracrypt", SERVICE_ALL_ACCESS);
|
||||
if (hService != NULL)
|
||||
{
|
||||
// Remove stale service (driver is not loaded but service exists)
|
||||
@@ -3296,7 +3290,7 @@ static int DriverLoad ()
|
||||
Sleep (500);
|
||||
}
|
||||
|
||||
hService = CreateService (hManager, "truecrypt", "truecrypt",
|
||||
hService = CreateService (hManager, "veracrypt", "veracrypt",
|
||||
SERVICE_ALL_ACCESS, SERVICE_KERNEL_DRIVER, SERVICE_DEMAND_START, SERVICE_ERROR_NORMAL,
|
||||
driverPath, NULL, NULL, NULL, NULL, NULL);
|
||||
|
||||
@@ -3373,7 +3367,7 @@ BOOL DriverUnload ()
|
||||
if (hManager == NULL)
|
||||
goto error;
|
||||
|
||||
hService = OpenService (hManager, "truecrypt", SERVICE_ALL_ACCESS);
|
||||
hService = OpenService (hManager, "veracrypt", SERVICE_ALL_ACCESS);
|
||||
if (hService == NULL)
|
||||
goto error;
|
||||
|
||||
@@ -3589,7 +3583,7 @@ BOOL BrowseFilesInDir (HWND hwndDlg, char *stringId, char *initialDir, char *lps
|
||||
ofn.lStructSize = sizeof (ofn);
|
||||
ofn.hwndOwner = hwndDlg;
|
||||
|
||||
wsprintfW (filter, L"%ls (*.*)%c*.*%c%ls (*.tc)%c*.tc%c%c",
|
||||
wsprintfW (filter, L"%ls (*.*)%c*.*%c%ls (*.hc)%c*.hc%c%c",
|
||||
GetString ("ALL_FILES"), 0, 0, GetString ("TC_VOLUMES"), 0, 0, 0);
|
||||
ofn.lpstrFilter = browseFilter ? browseFilter : filter;
|
||||
ofn.nFilterIndex = 1;
|
||||
@@ -3654,7 +3648,7 @@ BOOL SelectMultipleFiles (HWND hwndDlg, char *stringId, char *lpszFileName, BOOL
|
||||
*lpszFileName = 0;
|
||||
ofn.lStructSize = sizeof (ofn);
|
||||
ofn.hwndOwner = hwndDlg;
|
||||
wsprintfW (filter, L"%ls (*.*)%c*.*%c%ls (*.tc)%c*.tc%c%c",
|
||||
wsprintfW (filter, L"%ls (*.*)%c*.*%c%ls (*.hc)%c*.hc%c%c",
|
||||
GetString ("ALL_FILES"), 0, 0, GetString ("TC_VOLUMES"), 0, 0, 0);
|
||||
ofn.lpstrFilter = filter;
|
||||
ofn.nFilterIndex = 1;
|
||||
@@ -3994,7 +3988,7 @@ void LocalizeDialog (HWND hwnd, char *stringId)
|
||||
SendMessage (hwnd, WM_SETFONT, (WPARAM) hUserFont, 0);
|
||||
|
||||
if (stringId == NULL)
|
||||
SetWindowText (hwnd, "TrueCrypt");
|
||||
SetWindowText (hwnd, "VeraCrypt");
|
||||
else
|
||||
SetWindowTextW (hwnd, GetString (stringId));
|
||||
|
||||
@@ -7005,7 +6999,7 @@ BOOL IsNonInstallMode ()
|
||||
// We can't use GetConfigPath() here because it would call us back (indirect recursion)
|
||||
if (SUCCEEDED(SHGetFolderPath (NULL, CSIDL_APPDATA, NULL, 0, path)))
|
||||
{
|
||||
strcat (path, "\\TrueCrypt\\");
|
||||
strcat (path, "\\VeraCrypt\\");
|
||||
strcat (path, TC_APPD_FILENAME_SYSTEM_ENCRYPTION);
|
||||
|
||||
if (FileExists (path))
|
||||
@@ -7031,7 +7025,7 @@ BOOL IsNonInstallMode ()
|
||||
|
||||
// The following test may be unreliable in some cases (e.g. after the user selects restore "Last Known Good
|
||||
// Configuration" from the Windows boot menu).
|
||||
if (RegOpenKeyEx (HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\TrueCrypt", 0, KEY_READ, &hkey) == ERROR_SUCCESS)
|
||||
if (RegOpenKeyEx (HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\VeraCrypt", 0, KEY_READ, &hkey) == ERROR_SUCCESS)
|
||||
{
|
||||
RegCloseKey (hkey);
|
||||
return FALSE;
|
||||
@@ -7086,7 +7080,7 @@ void ManageStartupSeq (void)
|
||||
char *tmp = NULL;
|
||||
|
||||
if (tmp = strrchr (exe, '\\'))
|
||||
strcpy (++tmp, "TrueCrypt.exe");
|
||||
strcpy (++tmp, "VeraCrypt.exe");
|
||||
}
|
||||
#endif
|
||||
strcat (exe, "\" /q preferences /a logon");
|
||||
@@ -7094,10 +7088,10 @@ void ManageStartupSeq (void)
|
||||
if (bMountDevicesOnLogon) strcat (exe, " /a devices");
|
||||
if (bMountFavoritesOnLogon) strcat (exe, " /a favorites");
|
||||
|
||||
WriteRegistryString (regk, "TrueCrypt", exe);
|
||||
WriteRegistryString (regk, "VeraCrypt", exe);
|
||||
}
|
||||
else
|
||||
DeleteRegistryValue (regk, "TrueCrypt");
|
||||
DeleteRegistryValue (regk, "VeraCrypt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7119,7 +7113,7 @@ void ManageStartupSeqWiz (BOOL bRemove, const char *arg)
|
||||
char *tmp = NULL;
|
||||
|
||||
if (tmp = strrchr (exe, '\\'))
|
||||
strcpy (++tmp, "TrueCrypt Format.exe");
|
||||
strcpy (++tmp, "VeraCrypt Format.exe");
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -7129,10 +7123,10 @@ void ManageStartupSeqWiz (BOOL bRemove, const char *arg)
|
||||
strcat (exe, arg);
|
||||
}
|
||||
|
||||
WriteRegistryString (regk, "TrueCrypt Format", exe);
|
||||
WriteRegistryString (regk, "VeraCrypt Format", exe);
|
||||
}
|
||||
else
|
||||
DeleteRegistryValue (regk, "TrueCrypt Format");
|
||||
DeleteRegistryValue (regk, "VeraCrypt Format");
|
||||
}
|
||||
|
||||
|
||||
@@ -7515,7 +7509,7 @@ char *GetConfigPath (char *fileName)
|
||||
|
||||
if (SUCCEEDED(SHGetFolderPath (NULL, CSIDL_APPDATA | CSIDL_FLAG_CREATE, NULL, 0, path)))
|
||||
{
|
||||
strcat (path, "\\TrueCrypt\\");
|
||||
strcat (path, "\\VeraCrypt\\");
|
||||
CreateDirectory (path, NULL);
|
||||
strcat (path, fileName);
|
||||
}
|
||||
@@ -7532,7 +7526,7 @@ char *GetProgramConfigPath (char *fileName)
|
||||
|
||||
if (SUCCEEDED (SHGetFolderPath (NULL, CSIDL_COMMON_APPDATA | CSIDL_FLAG_CREATE, NULL, 0, path)))
|
||||
{
|
||||
strcat (path, "\\TrueCrypt\\");
|
||||
strcat (path, "\\VeraCrypt\\");
|
||||
CreateDirectory (path, NULL);
|
||||
strcat (path, fileName);
|
||||
}
|
||||
@@ -7612,7 +7606,7 @@ void InfoBalloon (char *headingStringId, char *textStringId)
|
||||
return;
|
||||
|
||||
TaskBarIconDisplayBalloonTooltip (MainDlg,
|
||||
headingStringId == NULL ? L"TrueCrypt" : GetString (headingStringId),
|
||||
headingStringId == NULL ? L"VeraCrypt" : GetString (headingStringId),
|
||||
textStringId == NULL ? L" " : GetString (textStringId),
|
||||
FALSE);
|
||||
}
|
||||
@@ -7625,7 +7619,7 @@ void InfoBalloonDirect (wchar_t *headingString, wchar_t *textString)
|
||||
return;
|
||||
|
||||
TaskBarIconDisplayBalloonTooltip (MainDlg,
|
||||
headingString == NULL ? L"TrueCrypt" : headingString,
|
||||
headingString == NULL ? L"VeraCrypt" : headingString,
|
||||
textString == NULL ? L" " : textString,
|
||||
FALSE);
|
||||
}
|
||||
@@ -7638,7 +7632,7 @@ void WarningBalloon (char *headingStringId, char *textStringId)
|
||||
return;
|
||||
|
||||
TaskBarIconDisplayBalloonTooltip (MainDlg,
|
||||
headingStringId == NULL ? L"TrueCrypt" : GetString (headingStringId),
|
||||
headingStringId == NULL ? L"VeraCrypt" : GetString (headingStringId),
|
||||
textStringId == NULL ? L" " : GetString (textStringId),
|
||||
TRUE);
|
||||
}
|
||||
@@ -7651,7 +7645,7 @@ void WarningBalloonDirect (wchar_t *headingString, wchar_t *textString)
|
||||
return;
|
||||
|
||||
TaskBarIconDisplayBalloonTooltip (MainDlg,
|
||||
headingString == NULL ? L"TrueCrypt" : headingString,
|
||||
headingString == NULL ? L"VeraCrypt" : headingString,
|
||||
textString == NULL ? L" " : textString,
|
||||
TRUE);
|
||||
}
|
||||
@@ -8085,7 +8079,7 @@ void DebugMsgBox (char *format, ...)
|
||||
_vsnprintf (buf, sizeof (buf), format, val);
|
||||
va_end(val);
|
||||
|
||||
MessageBox (MainDlg, buf, "TrueCrypt debug", 0);
|
||||
MessageBox (MainDlg, buf, "VeraCrypt debug", 0);
|
||||
}
|
||||
|
||||
|
||||
@@ -8327,7 +8321,8 @@ void Applink (char *dest, BOOL bSendOS, char *extraOutput)
|
||||
|
||||
ArrowWaitCursor ();
|
||||
|
||||
sprintf_s (url, sizeof (url), TC_APPLINK "%s%s&dest=%s", bSendOS ? ("&os=" + GetWindowsEdition()).c_str() : "", extraOutput, dest);
|
||||
// sprintf_s (url, sizeof (url), TC_APPLINK "%s%s&dest=%s", bSendOS ? ("&os=" + GetWindowsEdition()).c_str() : "", extraOutput, dest);
|
||||
sprintf_s (url, sizeof (url),"%s", "https://sourceforge.net/projects/veracrypt/");
|
||||
ShellExecute (NULL, "open", url, NULL, NULL, SW_SHOWNORMAL);
|
||||
|
||||
Sleep (200);
|
||||
@@ -8384,7 +8379,7 @@ BOOL CALLBACK CloseTCWindowsEnum (HWND hwnd, LPARAM lParam)
|
||||
{
|
||||
char name[1024] = { 0 };
|
||||
GetWindowText (hwnd, name, sizeof (name) - 1);
|
||||
if (hwnd != MainDlg && strstr (name, "TrueCrypt"))
|
||||
if (hwnd != MainDlg && strstr (name, "VeraCrypt"))
|
||||
{
|
||||
PostMessage (hwnd, TC_APPMSG_CLOSE_BKG_TASK, 0, 0);
|
||||
|
||||
@@ -8409,7 +8404,7 @@ BOOL CALLBACK FindTCWindowEnum (HWND hwnd, LPARAM lParam)
|
||||
{
|
||||
char name[32] = { 0 };
|
||||
GetWindowText (hwnd, name, sizeof (name) - 1);
|
||||
if (hwnd != MainDlg && strcmp (name, "TrueCrypt") == 0)
|
||||
if (hwnd != MainDlg && strcmp (name, "VeraCrypt") == 0)
|
||||
{
|
||||
if (lParam != 0)
|
||||
*((HWND *)lParam) = hwnd;
|
||||
@@ -9580,8 +9575,8 @@ BOOL RemoveDeviceWriteProtection (HWND hwndDlg, char *devicePath)
|
||||
if (GetTempPath (sizeof (temp), temp) == 0)
|
||||
return FALSE;
|
||||
|
||||
_snprintf (cmdBatch, sizeof (cmdBatch), "%s\\TrueCrypt_Write_Protection_Removal.cmd", temp);
|
||||
_snprintf (diskpartScript, sizeof (diskpartScript), "%s\\TrueCrypt_Write_Protection_Removal.diskpart", temp);
|
||||
_snprintf (cmdBatch, sizeof (cmdBatch), "%s\\VeraCrypt_Write_Protection_Removal.cmd", temp);
|
||||
_snprintf (diskpartScript, sizeof (diskpartScript), "%s\\VeraCrypt_Write_Protection_Removal.diskpart", temp);
|
||||
|
||||
FILE *f = fopen (cmdBatch, "w");
|
||||
if (!f)
|
||||
@@ -9630,7 +9625,7 @@ void EnableElevatedCursorChange (HWND parent)
|
||||
// Create a transparent window to work around a UAC issue preventing change of the cursor
|
||||
if (UacElevated)
|
||||
{
|
||||
const char *className = "TrueCryptEnableElevatedCursorChange";
|
||||
const char *className = "VeraCryptEnableElevatedCursorChange";
|
||||
WNDCLASSEX winClass;
|
||||
HWND hWnd;
|
||||
|
||||
@@ -9641,7 +9636,7 @@ void EnableElevatedCursorChange (HWND parent)
|
||||
winClass.lpszClassName = className;
|
||||
RegisterClassEx (&winClass);
|
||||
|
||||
hWnd = CreateWindowEx (WS_EX_TOOLWINDOW | WS_EX_LAYERED, className, "TrueCrypt UAC", 0, 0, 0, GetSystemMetrics (SM_CXSCREEN), GetSystemMetrics (SM_CYSCREEN), parent, NULL, hInst, NULL);
|
||||
hWnd = CreateWindowEx (WS_EX_TOOLWINDOW | WS_EX_LAYERED, className, "VeraCrypt UAC", 0, 0, 0, GetSystemMetrics (SM_CXSCREEN), GetSystemMetrics (SM_CYSCREEN), parent, NULL, hInst, NULL);
|
||||
SetLayeredWindowAttributes (hWnd, 0, 1, LWA_ALPHA);
|
||||
ShowWindow (hWnd, SW_SHOWNORMAL);
|
||||
|
||||
|
||||
@@ -44,12 +44,12 @@ enum
|
||||
TC_TBXID_EXTRA_BOOT_PARTITION_REMOVAL_INSTRUCTIONS
|
||||
};
|
||||
|
||||
#define TC_APPLICATION_ID L"TrueCryptFoundation.TrueCrypt"
|
||||
#define TC_APPLICATION_ID L"IDRIX.VeraCrypt"
|
||||
|
||||
#define TC_MUTEX_NAME_SYSENC "Global\\TrueCrypt System Encryption Wizard"
|
||||
#define TC_MUTEX_NAME_NONSYS_INPLACE_ENC "Global\\TrueCrypt In-Place Encryption Wizard"
|
||||
#define TC_MUTEX_NAME_APP_SETUP "Global\\TrueCrypt Setup"
|
||||
#define TC_MUTEX_NAME_DRIVER_SETUP "Global\\TrueCrypt Driver Setup"
|
||||
#define TC_MUTEX_NAME_SYSENC "Global\\VeraCrypt System Encryption Wizard"
|
||||
#define TC_MUTEX_NAME_NONSYS_INPLACE_ENC "Global\\VeraCrypt In-Place Encryption Wizard"
|
||||
#define TC_MUTEX_NAME_APP_SETUP "Global\\VeraCrypt Setup"
|
||||
#define TC_MUTEX_NAME_DRIVER_SETUP "Global\\VeraCrypt Driver Setup"
|
||||
|
||||
#define IDC_ABOUT 0x7fff /* ID for AboutBox on system menu in wm_user range */
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace TrueCrypt
|
||||
void Show (HWND parent) const
|
||||
{
|
||||
string msgBody = "Parameter incorrect.\n\n\n(If you report a bug in connection with this, please include the following technical information in the bug report:\n" + string (SrcPos) + ")";
|
||||
MessageBox (parent, msgBody.c_str(), "TrueCrypt", MB_ICONERROR | MB_SETFOREGROUND);
|
||||
MessageBox (parent, msgBody.c_str(), "VeraCrypt", MB_ICONERROR | MB_SETFOREGROUND);
|
||||
}
|
||||
|
||||
const char *SrcPos;
|
||||
|
||||
@@ -147,8 +147,8 @@ BOOL LoadLanguageFile ()
|
||||
if (defaultLangParsed && strcmp (attr, VERSION_STRING) && strcmp (attr, "DEBUG"))
|
||||
{
|
||||
wchar_t m[2048];
|
||||
swprintf (m, L"The installed language pack is incompatible with this version of TrueCrypt (the language pack is for TrueCrypt %hs). A newer version may be available at www.truecrypt.org.\n\nTo prevent this message from being displayed, do any of the following:\n\n- Select 'Settings' > 'Language'; then select 'English' and click 'OK'.\n\n- Remove or replace the language pack with a compatible version (the language pack may reside e.g. in 'C:\\Program Files\\TrueCrypt' or '%%LOCALAPPDATA%%\\VirtualStore\\Program Files\\TrueCrypt', etc.)", attr);
|
||||
MessageBoxW (NULL, m, L"TrueCrypt", MB_ICONERROR);
|
||||
swprintf (m, L"The installed language pack is incompatible with this version of VeraCrypt (the language pack is for VeraCrypt %hs). A newer version may be available at www.idrix.fr.\n\nTo prevent this message from being displayed, do any of the following:\n\n- Select 'Settings' > 'Language'; then select 'English' and click 'OK'.\n\n- Remove or replace the language pack with a compatible version (the language pack may reside e.g. in 'C:\\Program Files\\VeraCrypt' or '%%LOCALAPPDATA%%\\VirtualStore\\Program Files\\VeraCrypt', etc.)", attr);
|
||||
MessageBoxW (NULL, m, L"VeraCrypt", MB_ICONERROR);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -233,7 +233,7 @@ BOOL LoadLanguageFile ()
|
||||
case 't': *out++ = '\t'; break;
|
||||
case 'n': *out++ = 13; *out++ = 10; break;
|
||||
default:
|
||||
MessageBox (0, key, "TrueCrypt: Unknown '\\' escape sequence in string", MB_ICONERROR);
|
||||
MessageBox (0, key, "VeraCrypt: Unknown '\\' escape sequence in string", MB_ICONERROR);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
@@ -247,7 +247,7 @@ BOOL LoadLanguageFile ()
|
||||
len = MultiByteToWideChar (CP_UTF8, 0, attr, -1, wattr, sizeof (wattr) / sizeof(wattr[0]));
|
||||
if (len == 0 || len == ERROR_NO_UNICODE_TRANSLATION)
|
||||
{
|
||||
MessageBox (0, key, "TrueCrypt: Error while decoding UTF-8 string", MB_ICONERROR);
|
||||
MessageBox (0, key, "VeraCrypt: Error while decoding UTF-8 string", MB_ICONERROR);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -12,18 +12,18 @@
|
||||
#ifndef TCDEFS_H
|
||||
#define TCDEFS_H
|
||||
|
||||
#define TC_APP_NAME "TrueCrypt"
|
||||
#define TC_APP_NAME "VeraCrypt"
|
||||
|
||||
// Version displayed to user
|
||||
#define VERSION_STRING "7.1a"
|
||||
#define VERSION_STRING "1.0a"
|
||||
|
||||
// Version number to compare against driver
|
||||
#define VERSION_NUM 0x071a
|
||||
#define VERSION_NUM 0x010a
|
||||
|
||||
// Release date
|
||||
#define TC_STR_RELEASE_DATE "February 7, 2012"
|
||||
#define TC_RELEASE_DATE_YEAR 2012
|
||||
#define TC_RELEASE_DATE_MONTH 2
|
||||
#define TC_STR_RELEASE_DATE "June 22, 2013"
|
||||
#define TC_RELEASE_DATE_YEAR 2013
|
||||
#define TC_RELEASE_DATE_MONTH 6
|
||||
|
||||
#define BYTES_PER_KB 1024LL
|
||||
#define BYTES_PER_MB 1048576LL
|
||||
@@ -247,13 +247,13 @@ void EraseMemory (void *memory, int size);
|
||||
#define TC_MAX_PATH 260 /* Includes the null terminator */
|
||||
#endif
|
||||
|
||||
#define TC_STR_RELEASED_BY "Released by TrueCrypt Foundation on " TC_STR_RELEASE_DATE
|
||||
#define TC_STR_RELEASED_BY "Released by IDRIX on " TC_STR_RELEASE_DATE
|
||||
|
||||
#define MAX_URL_LENGTH 2084 /* Internet Explorer limit. Includes the terminating null character. */
|
||||
|
||||
#define TC_HOMEPAGE "http://www.truecrypt.org/"
|
||||
#define TC_APPLINK "http://www.truecrypt.org/applink?version=" VERSION_STRING
|
||||
#define TC_APPLINK_SECURE "https://www.truecrypt.org/applink?version=" VERSION_STRING
|
||||
#define TC_HOMEPAGE "http://www.idrix.fr/"
|
||||
#define TC_APPLINK "http://www.idrix.fr/
|
||||
#define TC_APPLINK_SECURE "https://www.idrix.fr/
|
||||
|
||||
enum
|
||||
{
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 216 KiB After Width: | Height: | Size: 216 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 822 B After Width: | Height: | Size: 890 B |
@@ -402,7 +402,7 @@ KeyReady: ;
|
||||
DecryptBuffer (header + HEADER_ENCRYPTED_DATA_OFFSET, HEADER_ENCRYPTED_DATA_SIZE, cryptoInfo);
|
||||
|
||||
// Magic 'TRUE'
|
||||
if (GetHeaderField32 (header, TC_HEADER_OFFSET_MAGIC) != 0x54525545)
|
||||
if (GetHeaderField32 (header, TC_HEADER_OFFSET_MAGIC) != 0x56455241)
|
||||
continue;
|
||||
|
||||
// Header version
|
||||
@@ -615,7 +615,7 @@ int ReadVolumeHeader (BOOL bBoot, char *header, Password *password, PCRYPTO_INFO
|
||||
DecryptBuffer (header + HEADER_ENCRYPTED_DATA_OFFSET, HEADER_ENCRYPTED_DATA_SIZE, cryptoInfo);
|
||||
|
||||
// Check magic 'TRUE' and CRC-32 of header fields and master keydata
|
||||
if (GetHeaderField32 (header, TC_HEADER_OFFSET_MAGIC) != 0x54525545
|
||||
if (GetHeaderField32 (header, TC_HEADER_OFFSET_MAGIC) != 0x56455241
|
||||
|| (GetHeaderField16 (header, TC_HEADER_OFFSET_VERSION) >= 4 && GetHeaderField32 (header, TC_HEADER_OFFSET_HEADER_CRC) != GetCrc32 (header + TC_HEADER_OFFSET_MAGIC, TC_HEADER_OFFSET_HEADER_CRC - TC_HEADER_OFFSET_MAGIC))
|
||||
|| GetHeaderField32 (header, TC_HEADER_OFFSET_KEY_AREA_CRC) != GetCrc32 (header + HEADER_MASTER_KEYDATA_OFFSET, MASTER_KEYDATA_SIZE))
|
||||
{
|
||||
@@ -791,7 +791,7 @@ int CreateVolumeHeaderInMemory (BOOL bBoot, char *header, int ea, int mode, Pass
|
||||
mputBytes (p, keyInfo.salt, PKCS5_SALT_SIZE);
|
||||
|
||||
// Magic
|
||||
mputLong (p, 0x54525545);
|
||||
mputLong (p, 0x56455241);
|
||||
|
||||
// Header version
|
||||
mputWord (p, VOLUME_HEADER_VERSION);
|
||||
|
||||
@@ -209,23 +209,23 @@ char *XmlQuoteText (const char *textSrc, char *textDst, int textDstMaxSize)
|
||||
|
||||
int XmlWriteHeader (FILE *file)
|
||||
{
|
||||
return fputs ("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<TrueCrypt>", file);
|
||||
return fputs ("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<VeraCrypt>", file);
|
||||
}
|
||||
|
||||
|
||||
int XmlWriteHeaderW (FILE *file)
|
||||
{
|
||||
return fputws (L"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<TrueCrypt>", file);
|
||||
return fputws (L"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<VeraCrypt>", file);
|
||||
}
|
||||
|
||||
|
||||
int XmlWriteFooter (FILE *file)
|
||||
{
|
||||
return fputs ("\n</TrueCrypt>", file);
|
||||
return fputs ("\n</VeraCrypt>", file);
|
||||
}
|
||||
|
||||
|
||||
int XmlWriteFooterW (FILE *file)
|
||||
{
|
||||
return fputws (L"\n</TrueCrypt>", file);
|
||||
return fputws (L"\n</VeraCrypt>", file);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user