VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/ExpandVolume/WinMain.cpp
AgeCommit message (Collapse)AuthorFilesLines
2016-08-15Windows: Implement support for EFI system encryption in Windows GUI.Mounir IDRASSI1-1/+9
2016-05-10Remove trailing whitespaceDavid Foerster1-16/+16
2016-05-10Normalize all line terminatorsDavid Foerster1-423/+423
2016-05-05Windows: Add option and command line switch to hide waiting dialog when ↵Mounir IDRASSI1-0/+2
performing operations.
2016-02-07Windows:Fix various issues and warnings reported by static code analysis ↵Mounir IDRASSI1-1/+1
tool Coverity.
2016-01-20Copyright: update dates to include 2016.Mounir IDRASSI1-1/+1
2016-01-10Windows: Avoid wrong update of configuration XML file caused by not using ↵Mounir IDRASSI1-1/+1
the correct window handle to get some GUI fields content. Some code cleanup.
2016-01-10Windows: Don't show disconnected network drives in the list of available ↵Mounir IDRASSI1-0/+2
drives. Add option to make them available for mounting if needed.
2016-01-03Windows: Fix Dll hijacking vulnerability affecting installer that allows ↵Mounir IDRASSI1-1/+0
arbitrary code execution with elevation of privilege (CVE-2016-1281)
2015-12-31Cryptography: Optimize Whirlpool implementation by using public domain ↵Mounir IDRASSI1-0/+3
assembly code developed by Wei Dai
2015-11-26Windows: Full UNICODE rewrite and implement support for UNICODE passwords.Mounir IDRASSI1-38/+46
2015-09-26Windows: Set keyboard focus to PIM field when "Use PIM" is checked.Mounir IDRASSI1-0/+2
2015-08-28Windows: Treat the PIM like a password and make it visible when "Display ↵Mounir IDRASSI1-2/+2
password" is checked.
2015-08-27Windows: Correctly display the password edit "black dot" instead of a '*' ↵Mounir IDRASSI1-8/+7
when showing it then hiding it.
2015-08-27Windows: Protect against using a container file as its own keyfile. ↵Mounir IDRASSI1-3/+5
Normalizing path names to never use '/' but always '\'.
2015-08-06Update license information to reflect the use of a dual license Apache 2.0 ↵Mounir IDRASSI1-28/+15
and TrueCrypt 3.0.
2015-07-13Windows: Modify PIM parts in GUI to make it easier to use. Users must ↵Mounir IDRASSI1-5/+19
explicitly check "User PIM" to enable its use.
2015-07-11Use Pim name for internal variables instead of the old name PinMounir IDRASSI1-10/+10
2015-07-06Windows: Display source location of errors in order to help diagnose issues ↵Mounir IDRASSI1-2/+2
reported by users
2015-06-08Windows: rename PIN to PIM to avoid confusion. Better error messages.Mounir IDRASSI1-6/+6
2015-05-27Windows: GUI modifications around PIN fieldMounir IDRASSI1-16/+2
2015-05-26Windows: first implementation of dynamic modeMounir IDRASSI1-1/+43
2015-05-06Windows: Solve detection issue when resuming encryption. Add separate logic ↵Mounir IDRASSI1-1/+3
for manual selection of device and display error message in case of failure.
2015-05-03Windows: enable showing/hiding password for system encryption in Windows UI ↵Mounir IDRASSI1-1/+0
and in the bootloader (F5 key). This will be helpful to diagnose issues with non-US versions of Windows.
2015-04-27Windows: Support A: and B: as driver letters for mounting volumes.Mounir IDRASSI1-1/+1
2015-02-09Static Code Analysis: handle unused variables more properly. Catch STL ↵Mounir IDRASSI1-1/+0
exception. Add more checks. Add proper cast to arithmetic operations.
2015-01-20Windows: Add first version of VeraCryptExpander who is based on extcv. Minor ↵Mounir IDRASSI1-0/+971
modification to Mount.c to avoid link errors when building VeraCryptExpander.
class="nv">!mydriveletter! /silent /q exit /b :: Subroutine to measure the time taken for a command to execute :measure_time setlocal set "oper=%~1" set "command=%~2" for /F "tokens=1-4 delims=:.," %%a in ("!time!") do set /A "start=(((%%a*60)+1%%b %% 100)*60+1%%c %% 100)*100+1%%d %% 100" "!VERACRYPT_PATH!" %command% for /F "tokens=1-4 delims=:.," %%a in ("!time!") do set /A "end=(((%%a*60)+1%%b %% 100)*60+1%%c %% 100)*100+1%%d %% 100" set /A elapsed=end-start set /A hh=elapsed/(60*60*100), rest=elapsed%%(60*60*100), mm=rest/(60*100), rest%%=60*100, ss=rest/100, cc=rest%%100 if %hh% lss 10 set hh=0%hh% if %mm% lss 10 set mm=0%mm% if %ss% lss 10 set ss=0%ss% if %cc% lss 10 set cc=0%cc% echo %oper% = %hh%:%mm%:%ss%,%cc% exit /b rem Finds a free drive letter. rem rem Parameters: rem %1 = Output variable name. rem rem Example: rem call :freedrive mydriveletter && goto :cont rem echo ERROR: No free drive letter found. rem goto :EOF rem :cont rem echo Found drive letter: %mydriveletter% :freedrive setlocal EnableDelayedExpansion set exitcode=0 set "output_var=%~1" for %%i in (C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z) do ( set "drive=%%i:" rem If 'subst' fails, the drive letter is already in use. rem This way we can even detect optical drives that have a drive rem letter but no media in them, a case that goes undetected when rem using 'if exist'. subst !drive! %SystemDrive%\ >nul if !errorlevel! == 0 ( subst !drive! /d >nul set "drive=%%i" goto :freedrive0 ) ) set exitcode=1 set drive= :freedrive0 endlocal & set "%output_var%=%drive%" & exit /b %exitcode% :: Subroutine to find an available volume :availablevolume setlocal EnableDelayedExpansion set exitcode=0 set "output_var=%~1" for %%i in (test.sha512.hc,test.sha256.hc,test.whirlpool.hc,test.blake2s.hc) do ( if exist %%i ( set "volume=%%i" goto :availablevolume0 ) ) set exitcode=1 set volume= :availablevolume0 endlocal & set "%output_var%=%volume%" & exit /b %exitcode% :exit pause