private void FormMain_Load(object sender, EventArgs e) { // start the encryption thread pool to speed up the analyzer - this is also the first access to the native // "TrueCrypt.dll" and therefore an exception may occur when the library cannot be loaded try { TrueCrypt.EncryptionThreadPoolStart(Environment.ProcessorCount); } catch (DllNotFoundException) { MessageBox.Show(this, "Unable to load DLL \"TrueCrypt.dll\": This could be caused by a missing Microsoft Visual C++ 2010 Redistributable Package (x86).", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Stop); silentExit = true; Close(); } // inform the user that some 64-bit operating systems are not supported due to driver signing string errMessage; SafeFileHandle hDriver = TrueCrypt.OpenDriver(out errMessage); if (null != errMessage) { errMessage += " Mounting a volume will not work."; if (Wow.Is64BitOperatingSystem && Wow.IsOSAtLeast(Wow.OSVersion.WIN_VISTA)) { errMessage += " A 64-bit operating system which requires signed drivers (Windows® Vista or newer) has been detected. Use the F8 boot option and select \"Disable Driver Signature Enforcement\" to temporarily allow the TestCrypt driver to be loaded."; } MessageBox.Show(this, errMessage, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
public Header(Int64 lba, TrueCrypt.CRYPTO_INFO cryptoInfo) { this.Lba = lba; this.CryptoInfo = cryptoInfo; }