VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Format/FormatCom.idl
blob: e5135191f9c1913da8bdf00ba9ff14db81437f70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
 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-2017 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.
*/

import "wtypes.idl";
import "..\Common\Password.h";

[
	uuid(56327DDA-F1A7-4e13-B128-520D129BDEF6),
	helpstring("VeraCrypt Format UAC Support Library"),
	version(2.8)	// Update ComSetup.cpp when changing version number
]
library TrueCryptFormatCom
{
	[
		uuid(7AB357D9-A17F-466e-BCD6-F49E97C218D8),
		object,
		oleautomation,
		helpstring("VeraCrypt Format UAC Support Interface")
	]
	interface ITrueCryptFormatCom : IUnknown
	{
		int AnalyzeHiddenVolumeHost (LONG_PTR hwndDlg, int *driveNo, __int64 hiddenVolHostSize, int *realClusterSize, __int64 *nbrFreeClusters);
		DWORD CallDriver (DWORD ioctl, BSTR input, BSTR *output);
		DWORD CopyFile (BSTR sourceFile, BSTR destinationFile);
		DWORD DeleteFile (BSTR file);
		BOOL FormatNtfs (int driveNo, int clusterSize);
		BOOL IsPagingFileActive (BOOL checkNonWindowsPartitionsOnly);
		DWORD ReadWriteFile (BOOL write, BOOL device, BSTR filePath, BSTR *bufferBstr, unsigned __int64 offset, unsigned __int32 size, DWORD *sizeDone);
		DWORD RegisterFilterDriver (BOOL registerDriver, int filterType);
		DWORD RegisterSystemFavoritesService (BOOL registerService);
		DWORD SetDriverServiceStartType (DWORD startType);
		DWORD WriteLocalMachineRegistryDwordValue (BSTR keyPath, BSTR valueName, DWORD value);
		BOOL FormatFs (int driveNo, int clusterSize, int fsType);
		DWORD GetFileSize (BSTR filePath, unsigned __int64* pSize);
		DWORD DeviceIoControl (BOOL readOnly, BOOL device, BSTR filePath, DWORD dwIoControlCode, BSTR input, BSTR *output);
		DWORD InstallEfiBootLoader (BOOL preserveUserConfig, BOOL hiddenOSCreation, int pim, int hashAlg);
		DWORD BackupEfiSystemLoader ();
		DWORD RestoreEfiSystemLoader ();
		DWORD GetEfiBootDeviceNumber (BSTR* pSdn);
		DWORD WriteEfiBootSectorUserConfig (DWORD userConfig, BSTR customUserMessage, int pim, int hashAlg);
		DWORD UpdateSetupConfigFile (BOOL bForInstall);
		DWORD GetSecureBootConfig (BOOL* pSecureBootEnabled, BOOL *pVeraCryptKeysLoaded);
	};

	[
		uuid(A96D3797-9F31-49f4-A0CE-9657392CF789),
		helpstring("VeraCrypt Format UAC Support Coclass")
	]
	coclass TrueCryptFormatCom
	{
		[default] interface ITrueCryptFormatCom;
	}
}
>282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <ItemGroup>
    <Filter Include="libzip">
      <UniqueIdentifier>{a369717d-cddc-4112-b4fa-2dfa4e70c1bd}</UniqueIdentifier>
    </Filter>
    <Filter Include="zlib">
      <UniqueIdentifier>{077a3d56-4c09-48a8-b3ca-cb326f2e6c52}</UniqueIdentifier>
    </Filter>
  </ItemGroup>
  <ItemGroup>
    <ClCompile Include="libzip\mkstemp.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_add.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_add_dir.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_add_entry.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_buffer.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_close.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_delete.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_dirent.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_dir_add.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_discard.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_entry.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_error.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_error_clear.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_error_get.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_error_get_sys_type.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_error_strerror.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_err_str.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_extra_field.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_extra_field_api.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_fclose.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_fdopen.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_filerange_crc.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_file_add.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_file_error_clear.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_file_error_get.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_file_get_comment.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_file_get_external_attributes.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_file_get_offset.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_file_rename.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_file_replace.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_file_set_comment.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_file_set_external_attributes.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_file_set_mtime.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_file_strerror.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_fopen.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_fopen_encrypted.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_fopen_index.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_fopen_index_encrypted.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_fread.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_get_archive_comment.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_get_archive_flag.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_get_encryption_implementation.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_get_file_comment.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_get_name.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_get_num_entries.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_get_num_files.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_hash.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_io_util.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_memdup.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_name_locate.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_new.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_open.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_rename.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_replace.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_set_archive_comment.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_set_archive_flag.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_set_default_password.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_set_file_comment.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_set_file_compression.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_set_name.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_begin_write.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_buffer.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_call.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_close.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_commit_write.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_crc.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_deflate.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_error.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_filep.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_free.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_function.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_is_deleted.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_layered.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_open.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_pkware.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_read.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_remove.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_rollback_write.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_seek.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_seek_write.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_stat.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_supports.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_tell.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_tell_write.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_win32a.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_win32handle.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_win32utf8.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_win32w.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_window.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_write.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_zip.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_zip_new.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_stat.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_stat_index.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_stat_init.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_strerror.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_string.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_unchange.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_unchange_all.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_unchange_archive.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_unchange_data.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_utf-8.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="zlib\adler32.c">
      <Filter>zlib</Filter>
    </ClCompile>
    <ClCompile Include="zlib\crc32.c">
      <Filter>zlib</Filter>
    </ClCompile>
    <ClCompile Include="zlib\deflate.c">
      <Filter>zlib</Filter>
    </ClCompile>
    <ClCompile Include="zlib\inffast.c">
      <Filter>zlib</Filter>
    </ClCompile>
    <ClCompile Include="zlib\inflate.c">
      <Filter>zlib</Filter>
    </ClCompile>
    <ClCompile Include="zlib\inftrees.c">
      <Filter>zlib</Filter>
    </ClCompile>
    <ClCompile Include="zlib\trees.c">
      <Filter>zlib</Filter>
    </ClCompile>
    <ClCompile Include="zlib\zutil.c">
      <Filter>zlib</Filter>
    </ClCompile>
    <ClCompile Include="zlib\compress.c">
      <Filter>zlib</Filter>
    </ClCompile>
    <ClCompile Include="zlib\uncompr.c">
      <Filter>zlib</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_progress.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_begin_write_cloning.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_compress.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_algorithm_deflate.c">
      <Filter>libzip</Filter>
    </ClCompile>
    <ClCompile Include="libzip\zip_source_get_compression_flags.c">
      <Filter>libzip</Filter>
    </ClCompile>
  </ItemGroup>
  <ItemGroup>
    <ClInclude Include="libzip\compat.h">
      <Filter>libzip</Filter>
    </ClInclude>
    <ClInclude Include="libzip\config.h">
      <Filter>libzip</Filter>
    </ClInclude>
    <ClInclude Include="libzip\zconf.h">
      <Filter>libzip</Filter>
    </ClInclude>
    <ClInclude Include="libzip\zip.h">
      <Filter>libzip</Filter>
    </ClInclude>
    <ClInclude Include="libzip\zipconf.h">
      <Filter>libzip</Filter>
    </ClInclude>
    <ClInclude Include="libzip\zipint.h">
      <Filter>libzip</Filter>
    </ClInclude>
    <ClInclude Include="libzip\zipwin32.h">
      <Filter>libzip</Filter>
    </ClInclude>
    <ClInclude Include="zlib\crc32.h">
      <Filter>zlib</Filter>
    </ClInclude>
    <ClInclude Include="zlib\deflate.h">
      <Filter>zlib</Filter>
    </ClInclude>
    <ClInclude Include="zlib\inffast.h">
      <Filter>zlib</Filter>
    </ClInclude>
    <ClInclude Include="zlib\inffixed.h">
      <Filter>zlib</Filter>
    </ClInclude>
    <ClInclude Include="zlib\inflate.h">
      <Filter>zlib</Filter>
    </ClInclude>
    <ClInclude Include="zlib\inftrees.h">
      <Filter>zlib</Filter>
    </ClInclude>
    <ClInclude Include="zlib\trees.h">
      <Filter>zlib</Filter>
    </ClInclude>
    <ClInclude Include="zlib\zconf.h">
      <Filter>zlib</Filter>
    </ClInclude>
    <ClInclude Include="zlib\zlib.h">
      <Filter>zlib</Filter>
    </ClInclude>
    <ClInclude Include="zlib\zutil.h">
      <Filter>zlib</Filter>
    </ClInclude>
  </ItemGroup>
</Project>