From 2ddc37416416894bf085edc6ca4a0b3862fae2c2 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Mon, 17 Oct 2016 16:26:34 +0200 Subject: Windows: Remove VeraCrypt from EFI boot partition after decrypting the system --- src/Common/BootEncryption.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/Common/BootEncryption.h') diff --git a/src/Common/BootEncryption.h b/src/Common/BootEncryption.h index 4bf31fec..f7f2ec1a 100644 --- a/src/Common/BootEncryption.h +++ b/src/Common/BootEncryption.h @@ -196,17 +196,18 @@ namespace VeraCrypt void DeleteStartExec(uint16 statrtOrderNum = 0xDC5B, wchar_t* type = NULL); void SetStartExec(wstring description, wstring execPath, uint16 statrtOrderNum = 0xDC5B, wchar_t* type = NULL, uint32 attr = 1); - void SaveFile(wchar_t* name, byte* data, DWORD size); + void SaveFile(const wchar_t* name, byte* data, DWORD size); 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 RenameFile(wchar_t* name, wchar_t* nameNew, BOOL bForce); - BOOL DelFile(wchar_t* name); - BOOL MkDir(wchar_t* name, bool& bAlreadyExists); - BOOL ReadConfig (wchar_t* name, EfiBootConf& conf); - BOOL UpdateConfig (wchar_t* name, int pim, int hashAlgo, HWND hwndDlg); - BOOL WriteConfig (wchar_t* name, bool preserveUserConfig, int pim, int hashAlgo, const char* passPromptMsg, HWND hwndDlg); + BOOL RenameFile(const wchar_t* name, wchar_t* nameNew, BOOL bForce); + BOOL DelFile(const wchar_t* name); + BOOL MkDir(const wchar_t* name, bool& bAlreadyExists); + BOOL ReadConfig (const wchar_t* name, EfiBootConf& conf); + BOOL UpdateConfig (const wchar_t* name, int pim, int hashAlgo, HWND hwndDlg); + BOOL WriteConfig (const wchar_t* name, bool preserveUserConfig, int pim, int hashAlgo, const char* passPromptMsg, HWND hwndDlg); + BOOL DelDir(const wchar_t* name); PSTORAGE_DEVICE_NUMBER GetStorageDeviceNumber () { return &sdn;} -- cgit v1.2.3