"Fossies" - the Fresh Open Source Software Archive

Member "src/Format/FormatCom.idl" (10 Oct 2018, 2634 Bytes) of package /windows/misc/VeraCrypt_1.23-Hotfix-2_Source.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) IDL source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "FormatCom.idl" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 1.22_Source_vs_1.23_Source.

    1 /*
    2  Derived from source code of TrueCrypt 7.1a, which is
    3  Copyright (c) 2008-2012 TrueCrypt Developers Association and which is governed
    4  by the TrueCrypt License 3.0.
    5 
    6  Modifications and additions to the original source code (contained in this file) 
    7  and all other portions of this file are Copyright (c) 2013-2017 IDRIX
    8  and are governed by the Apache License 2.0 the full text of which is
    9  contained in the file License.txt included in VeraCrypt binary and source
   10  code distribution packages.
   11 */
   12 
   13 import "wtypes.idl";
   14 import "..\Common\Password.h";
   15 
   16 [
   17     uuid(56327DDA-F1A7-4e13-B128-520D129BDEF6),
   18     helpstring("VeraCrypt Format UAC Support Library"),
   19     version(2.8)    // Update ComSetup.cpp when changing version number
   20 ]
   21 library TrueCryptFormatCom
   22 {
   23     [
   24         uuid(7AB357D9-A17F-466e-BCD6-F49E97C218D8),
   25         object,
   26         oleautomation,
   27         helpstring("VeraCrypt Format UAC Support Interface")
   28     ]
   29     interface ITrueCryptFormatCom : IUnknown
   30     {
   31         int AnalyzeHiddenVolumeHost (LONG_PTR hwndDlg, int *driveNo, __int64 hiddenVolHostSize, int *realClusterSize, __int64 *nbrFreeClusters);
   32         DWORD CallDriver (DWORD ioctl, BSTR input, BSTR *output);
   33         DWORD CopyFile (BSTR sourceFile, BSTR destinationFile);
   34         DWORD DeleteFile (BSTR file);
   35         BOOL FormatNtfs (int driveNo, int clusterSize);
   36         BOOL IsPagingFileActive (BOOL checkNonWindowsPartitionsOnly);
   37         DWORD ReadWriteFile (BOOL write, BOOL device, BSTR filePath, BSTR *bufferBstr, unsigned __int64 offset, unsigned __int32 size, DWORD *sizeDone);
   38         DWORD RegisterFilterDriver (BOOL registerDriver, int filterType);
   39         DWORD RegisterSystemFavoritesService (BOOL registerService);
   40         DWORD SetDriverServiceStartType (DWORD startType);
   41         DWORD WriteLocalMachineRegistryDwordValue (BSTR keyPath, BSTR valueName, DWORD value);
   42         BOOL FormatFs (int driveNo, int clusterSize, int fsType);
   43         DWORD GetFileSize (BSTR filePath, unsigned __int64* pSize);
   44         DWORD DeviceIoControl (BOOL readOnly, BOOL device, BSTR filePath, DWORD dwIoControlCode, BSTR input, BSTR *output);
   45         DWORD InstallEfiBootLoader (BOOL preserveUserConfig, BOOL hiddenOSCreation, int pim, int hashAlg);
   46         DWORD BackupEfiSystemLoader ();
   47         DWORD RestoreEfiSystemLoader ();
   48         DWORD GetEfiBootDeviceNumber (BSTR* pSdn);
   49         DWORD WriteEfiBootSectorUserConfig (DWORD userConfig, BSTR customUserMessage, int pim, int hashAlg);
   50         DWORD UpdateSetupConfigFile (BOOL bForInstall);
   51         DWORD GetSecureBootConfig (BOOL* pSecureBootEnabled, BOOL *pVeraCryptKeysLoaded);
   52     };
   53 
   54     [
   55         uuid(A96D3797-9F31-49f4-A0CE-9657392CF789),
   56         helpstring("VeraCrypt Format UAC Support Coclass")
   57     ]
   58     coclass TrueCryptFormatCom
   59     {
   60         [default] interface ITrueCryptFormatCom;
   61     }
   62 }