From 17d9c1c6ec31ebb7aae8634841f116b63a275935 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 22 Apr 2018 17:14:23 +0200 Subject: Windows: Fix system encryption issues on machines that always force booting on Microsoft bootloader (e.g. HP). --- src/Common/BootEncryption.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Common/BootEncryption.h') diff --git a/src/Common/BootEncryption.h b/src/Common/BootEncryption.h index 63ebe353..07cb5abf 100644 --- a/src/Common/BootEncryption.h +++ b/src/Common/BootEncryption.h @@ -40,6 +40,7 @@ namespace VeraCrypt File (wstring path,bool readOnly = false, bool create = false); virtual ~File () { Close(); } + bool IsOpened () const { return FileOpen;} void CheckOpened (const char* srcPos) { if (!FileOpen) { SetLastError (LastError); throw SystemException (srcPos);} } void Close (); DWORD Read (byte *buffer, DWORD size); @@ -176,6 +177,7 @@ namespace VeraCrypt int authorizeRetry; int bmlLockFlags; int bmlDriverEnabled; + string actionSuccessValue; EfiBootConf(); @@ -207,6 +209,7 @@ namespace VeraCrypt void GetFileSize(const wchar_t* name, unsigned __int64& size); void ReadFile(const wchar_t* name, byte* data, DWORD size); void CopyFile(const wchar_t* name, const wchar_t* targetName); + bool FileExists(const wchar_t* name); BOOL RenameFile(const wchar_t* name, wchar_t* nameNew, BOOL bForce); BOOL DelFile(const wchar_t* name); -- cgit v1.2.3