Age | Commit message (Expand) | Author | Files | Lines |
2017-05-28 | Windows: Only offer valid cluster sizes when ReFS is selected in the volume f... | Mounir IDRASSI | 1 | -23/+37 |
2017-05-28 | Windows: add support for ReFS on Windows 10 when creating normal volumes. | Mounir IDRASSI | 1 | -3/+23 |
2017-05-26 | Windows: fix Hour Glass cursor still displayed in some cases after Format wiz... | Mounir IDRASSI | 1 | -2/+0 |
2017-05-17 | Windows: use IOCTL_DISK_GET_DRIVE_GEOMETRY_EX instead of the deprecated IOCTL... | Mounir IDRASSI | 1 | -5/+4 |
2017-01-12 | Windows: Fix Streebog not recognized by /hash command line switch but making ... | Mounir IDRASSI | 1 | -8/+10 |
2016-10-17 | Windows: Perform Shutdown instead of Reboot during Pre-Test of UEFI system en... | Mounir IDRASSI | 1 | -2/+2 |
2016-08-16 | Windows: Fix various issues detected by static analysis. | Mounir IDRASSI | 1 | -7/+9 |
2016-08-15 | Windows: in EFI encryption wizard, always select "Single Boot" by default sin... | Mounir IDRASSI | 1 | -7/+10 |
2016-08-15 | Windows: Implement Rescue Disk support for EFI system encryption | Mounir IDRASSI | 1 | -64/+84 |
2016-08-15 | Windows: Show only supported encryption algorithm in the system encryption wi... | Mounir IDRASSI | 1 | -2/+4 |
2016-08-15 | Windows: Implement support for EFI system encryption in Windows GUI. | Mounir IDRASSI | 1 | -8/+53 |
2016-06-02 | Crypto: Add support for Japanese encryption standard Camellia, including for ... | Mounir IDRASSI | 1 | -0/+8 |
2016-05-29 | Windows: better implementation for support of smart card PIN in command line.... | Mounir IDRASSI | 1 | -0/+17 |
2016-05-10 | Fix space before tab | David Foerster | 1 | -2/+2 |
2016-05-10 | Remove trailing whitespace | David Foerster | 1 | -203/+203 |
2016-05-10 | Normalize all line terminators | David Foerster | 1 | -10233/+10233 |
2016-05-05 | Windows: Add option and command line switch to hide waiting dialog when perfo... | Mounir IDRASSI | 1 | -0/+2 |
2016-05-05 | Windows: convert some files encoding from UTF-16 to UTF-8 to be similar to ot... | Mounir IDRASSI | 1 | -0/+0 |
2016-05-05 | Windows: Add checkbox in "VeraCrypt Format" to skip Rescue Disk verification ... | Mounir IDRASSI | 1 | -0/+0 |
2016-05-04 | Windows/Linux/MacOSX: Set maximum PIM value to 2147468 in order to avoid havi... | Mounir IDRASSI | 1 | -0/+0 |
2016-02-12 | Windows: Add colors (Red, Yellow, Green) to the collected randomness indicato... | Mou/*
Derived from source code of TrueCrypt 7.1a, which is
Copyright (c) 2008-2012 TrueCrypt Developers Association and which is governed
by the TrueCrypt License 3.0.
Modifications and additions to the original source code (contained in this file)
and all other portions of this file are Copyright (c) 2013-2015 IDRIX
and are governed by the Apache License 2.0 the full text of which is
contained in the file License.txt included in VeraCrypt binary and source
code distribution packages.
*/
#include <atlcomcli.h>
#include <atlconv.h>
#include <comutil.h>
#include <windows.h>
#include "BaseCom.h"
#include "BootEncryption.h"
#include "Dlgcode.h"
#include "Format.h"
#include "Progress.h"
#include "TcFormat.h"
#include "FormatCom.h"
#include "FormatCom_h.h"
#include "FormatCom_i.c"
using namespace VeraCrypt;
static volatile LONG ObjectCount = 0;
class TrueCryptFormatCom : public ITrueCryptFormatCom
{
public:
TrueCryptFormatCom (DWORD messageThreadId) : RefCount (0),
MessageThreadId (messageThreadId),
CallBack (NULL)
{
InterlockedIncrement (&ObjectCount);
}
virtual ~TrueCryptFormatCom ()
{
if (InterlockedDecrement (&ObjectCount) == 0)
PostThreadMessage (MessageThreadId, WM_APP, 0, 0);
}
virtual ULONG STDMETHODCALLTYPE AddRef ()
{
return InterlockedIncrement (&RefCount);
}
virtual ULONG STDMETHODCALLTYPE Release ()
{
if (!InterlockedDecrement (&RefCount))
{
delete this;
return 0;
}
return RefCount;
}
virtual HRESULT STDMETHODCALLTYPE QueryInterface (REFIID riid, void **ppvObject)
{
if (riid == IID_IUnknown || riid == IID_ITrueCryptFormatCom)
*< | 1 | -34/+34 |