// Microsoft Visual C++ generated resource script. // #include "resource.h" #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 2 resource. // #include "afxres.h" #include "..\\common\\resource.h" ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // English (U.S.) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) #ifdef _WIN32 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US #pragma code_page(1252) #endif //_WIN32 ///////////////////////////////////////////////////////////////////////////// // // Version // VS_VERSION_INFO VERSIONINFO FILEVERSION 1,0,6,2 PRODUCTVERSION 1,0,6,2 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L #else FILEFLAGS 0x0L #endif FILEOS 0x4L FILETYPE 0x1L FILESUBTYPE 0x0L BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040904b0" BEGIN VALUE "CompanyName", "IDRIX" VALUE "FileDescription", "VeraCrypt Format" VALUE "FileVersion", "1.0f-1" VALUE "LegalTrademarks", "VeraCrypt" VALUE "OriginalFilename", "VeraCrypt Format.exe" VALUE "ProductName", "VeraCrypt" VALUE "ProductVersion", "1.0f-1" END END BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x409, 1200 END END ///////////////////////////////////////////////////////////////////////////// // // HEADER // IDR_FORMAT_RSRC_HEADER HEADER "resource.h" ///////////////////////////////////////////////////////////////////////////// // // TYPELIB // IDR_FORMAT_TLB TYPELIB "Format.tlb" ///////////////////////////////////////////////////////////////////////////// // // Dialog // IDD_VOL_CREATION_WIZARD_DLG DIALOGEX 0, 0, 400, 209 STYLE DS_SETFONT | DS_SETFOREGROUND | DS_FIXEDSYS | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "VeraCrypt Volume Creation Wizard" CLASS "CustomDlg" FONT 8, "MS Shell Dlg", 0, 0, 0x0 BEGIN PUSHBUTTON "&Help",IDHELP,176,189,50,14 PUSHBUTTON "",IDC_PREV,235,189,50,14 DEFPUSHBUTTON "",IDC_NEXT,285,189,50,14 PUSHBUTTON "Cancel",IDCANCEL,343,189,50,14 LTEXT "",IDC_BOX_TITLE,160,8,233,17 GROUPBOX "",IDC_STATIC,4,0,392,183 CONTROL 116,IDC_BITMAP_WIZARD,"Static",SS_BITMAP | SS_SUNKEN,10,9,137,169 LTEXT "",IDC_POS_BOX,160,24,231,152 END IDD_CIPHER_PAGE_DLG DIALOGEX 0, 0, 226, 152 STYLE DS_SETFONT | DS_FIXEDSYS | DS_CONTROL | WS_CHILD FONT 8, "MS Shell Dlg", 0, 0, 0x0 BEGIN COMBOBOX IDC_COMBO_BOX,7,23,137,126,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP PUSHBUTTON "&Test",IDC_CIPHER_TEST,149,22,59,14 PUSHBUTTON "&Benchmark",IDC_BENCHMARK,149,82,59,14 COMBOBOX IDC_COMBO_BOX_HASH_ALGO,7,122,83,126,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP LTEXT "",IDC_BOX_HELP,7,40,205,40 GROUPBOX "Encryption Algorithm",IDT_ENCRYPTION_ALGO,0,10,217,95 GROUPBOX "Hash Algorithm",IDT_HASH_ALGO,0,109,217,35 LTEXT "More information",IDC_LINK_MORE_INFO_ABOUT_CIPHER,7,82,135,10,SS_NOTIFY LTEXT "Information on hash algorithms",IDC_LINK_HASH_INFO,97,124,115,8,SS_NOTIFY END IDD_PASSWORD_PAGE_DLG DIALOGEX 0, 0, 226, 152 STYLE DS_SETFONT | DS_FIXEDSYS | DS_CONTROL | WS_CHILD FONT 8, "MS Shell Dlg", 0, 0, 0x0 BEGIN EDITTEXT IDC_PASSWORD,53,3,163,14,ES_PASSWORD | ES_AUTOHSCROLL EDITTEXT IDC_VERIFY,53,19,163,14,ES_PASSWORD | ES_AUTOHSCROLL CONTROL "&Display password",IDC_SHOW_PASSWORD,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,53,45,95,11,WS_EX_TRANSPARENT CONTROL "U&se keyfiles",IDC_KEYFILES_ENABLE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,53,35,95,10 PUSHBUTTON "&Keyfiles...",IDC_KEY_FILES,152,36,64,14,WS_DISABLED RTEXT "Password:",IDT_PASSWORD,1,6,50,8 RTEXT "&Confirm:",IDT_CONFIRM,1,23,50,8 LTEXT "",IDC_BOX_HELP,0,59,225,89 END IDD_SIZE_PAGE_DLG DIALOGEX 0, 0, 226, 152 STYLE DS_SETFONT | DS_FIXEDSYS | DS_CONTROL | WS_CHILD FONT 8, "MS Shell Dlg", 0, 0, 0x0 BEGIN EDITTEXT IDC_SIZEBOX,0,22,71,14,ES_AUTOHSCROLL | ES_NUMBER CONTROL "&KB",IDC_KB,"Button",BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP,80,25,38,10 CONTROL "&MB",IDC_MB,"Button",BS_AUTORADIOBUTTON,119,25,38,10 CONTROL "&GB",IDC_GB,"Button",BS_AUTORADIOBUTTON,158,25,38,10 LTEXT "",IDC_BOX_HELP,0,75,214,64 LTEXT "",IDC_SPACE_LEFT,0,44,214,21 END IDD_VOLUME_LOCATION_PAGE_DLG DIALOGEX 0, 0, 226, 152 STYLE DS_SETFONT | DS_FIXEDSYS | DS_CONTROL | WS_CHILD FONT 8, "MS Shell Dlg", 0, 0, 0x0 BEGIN COMBOBOX IDC_COMBO_BOX,0,9,148,80,CBS_DROPDOWN | CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP CONTROL "&Never save history",IDC_NO_HISTORY,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,3,28,137,10 PUSHBUTTON "",IDC_SELECT_VOLUME_LOCATION,155,9,62,14 LTEXT "",IDC_BOX_HELP,0,45,219,104 END IDD_FORMAT_PAGE_DLG DIALOGEX 0, 0, 226, 152 STYLE DS_SETFONT | DS_FIXEDSYS | DS_CONTROL | WS_CHILD FONT 8, "MS Shell Dlg", 0, 0, 0x0 BEGIN COMBOBOX IDC_FILESYS,43,13,36,90,CBS_DROPDOWNLIST | WS_TABSTOP COMBOBOX IDC_CLUSTERSIZE,112,13,42,90,CBS_DROPDOWNLIST | WS_TABSTOP CONTROL "Quick Format",IDC_QUICKFORMAT,"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,163,11,60,18 CONTROL "",IDC_SHOW_KEYS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,214,38,9,8 PUSHBUTTON "Abort",IDC_ABORT_BUTTON,169,75,50,14 RTEXT "Header Key: ",IDT_HEADER_KEY,2,47,54,8 CONTROL "",IDC_HEADER_KEY,"Static",SS_LEFTNOWORDWRAP | WS_GROUP,57,46,163,8,WS_EX_TRANSPARENT RTEXT "Master Key: ",IDT_MASTER_KEY,2,55,54,8 LTEXT "",IDC_DISK_KEY,57,54,163,8,0,WS_EX_TRANSPARENT RTEXT "Cluster ",IDT_CLUSTER,80,15,32,8 LTEXT "",IDC_BOX_HELP,1,112,224,40 GROUPBOX "Options",IDT_FORMAT_OPTIONS,0,3,225,29 CONTROL "",IDC_PROGRESS_BAR,"msctls_progress32",PBS_SMOOTH | WS_BORDER,6,76,158,12 RTEXT "",IDC_TIMEREMAIN,177,93,42,11,SS_CENTERIMAGE,WS_EX_TRANSPARENT | WS_EX_RIGHT | WS_EX_STATICEDGE RTEXT "",IDC_WRITESPEED,106,93,42,11,SS_CENTERIMAGE,WS_EX_TRANSPARENT | WS_EX_RIGHT | WS_EX_STATICEDGE LTEXT "",IDC_BYTESWRITTEN,29,93,39,11,SS_CENTERIMAGE,WS_EX_TRANSPARENT | WS_EX_RIGHT | WS_EX_STATICEDGE RTEXT "Done",IDT_DONE,5,94,22,8 RTEXT "Speed",IDT_SPEED,70,94,34,8 RTEXT "Left",IDT_LEFT,150,94,25,8
/*
Copyright (c) 2008 TrueCrypt Developers Association. All rights reserved.
Governed by the TrueCrypt License 3.0 the full text of which is contained in
the file License.txt included in TrueCrypt binary and source code distribution
packages.
*/
#ifndef TC_HEADER_Platform_Exception
#define TC_HEADER_Platform_Exception
#include <exception>
#include "PlatformBase.h"
#include "Serializable.h"
namespace VeraCrypt
{
#define TC_SERIALIZABLE_EXCEPTION(TYPE) TC_SERIALIZABLE (TYPE); \
virtual Exception *CloneNew () { return new TYPE (*this); } \
virtual void Throw () const { throw *this; }
struct Exception : public exception, public Serializable
{
public:
Exception () { }
Exception (const string &message) : Message (message) { }
Exception (const string &message, const wstring &subject) : Message (message), Subject (subject) { }
virtual ~Exception () throw () { }
TC_SERIALIZABLE_EXCEPTION (Exception);
virtual const char *what () const throw () { return Message.c_str(); }
virtual const wstring &GetSubject() const { return Subject; }
protected:
string Message;
wstring Subject;
};
struct ExecutedProcessFailed : public Exception
{
ExecutedProcessFailed () { }
ExecutedProcessFailed (const string &message, const string &command, int exitCode, const string &errorOutput)
: Exception (message), Command (command), ExitCode (exitCode), ErrorOutput (errorOutput) { }
virtual ~ExecutedProcessFailed () throw () { }
TC_SERIALIZABLE_EXCEPTION (ExecutedProcessFailed);
string GetCommand () const { return Command; }
int64 GetExitCode () const { return ExitCode; }
string GetErrorOutput () const { return ErrorOutput; }
protected:
string Command;
int64 ExitCode;
string ErrorOutput;
};
#define TC_EXCEPTION_DECL(NAME,BASE) \
struct NAME : public BASE \
{ \
NAME () { } \
NAME (const string &message) : BASE (message) { } \
NAME (const string &message, const wstring &subject) : BASE (message, subject) { } \
virtual Exception *CloneNew () { return new NAME (*this); } \
static Serializable *GetNewSerializable () { return new NAME (); } \
virtual void Throw () const { throw *this; } \
}
#define TC_EXCEPTION_NODECL(dummy) //
#define TC_EXCEPTION(NAME) TC_EXCEPTION_DECL(NAME,Exception)
#ifdef TC_EXCEPTION_SET
#undef TC_EXCEPTION_SET
#endif
#define TC_EXCEPTION_SET \
TC_EXCEPTION_NODECL (Exception); \
TC_EXCEPTION_NODECL (ExecutedProcessFailed); \
TC_EXCEPTION (AlreadyInitialized); \
TC_EXCEPTION (AssertionFailed); \
TC_EXCEPTION (ExternalException); \
TC_EXCEPTION (InsufficientData); \
TC_EXCEPTION (NotApplicable); \
TC_EXCEPTION (NotImplemented); \
TC_EXCEPTION (NotInitialized); \
TC_EXCEPTION (ParameterIncorrect); \
TC_EXCEPTION (ParameterTooLarge); \
TC_EXCEPTION (PartitionDeviceRequired); \
TC_EXCEPTION (StringConversionFailed); \
TC_EXCEPTION (TestFailed); \
TC_EXCEPTION (TimeOut); \
TC_EXCEPTION (UnknownException); \
TC_EXCEPTION (UnsupportedAlgoInTrueCryptMode); \
TC_EXCEPTION (UnsupportedTrueCryptFormat); \
TC_EXCEPTION (UserAbort)
TC_EXCEPTION_SET;
#undef TC_EXCEPTION
}
#ifdef assert
# undef assert
#endif
#ifdef DEBUG
# define assert(condition) do { if (!(condition)) throw AssertionFailed (SRC_POS); } while (false)
#else
# define assert(condition) ((void) 0)
#endif
#endif // TC_HEADER_Platform_Exception