VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Mount/Mount.manifest
blob: 5d4cb89652cf7ec6abd5c395e14e4181847dfa7c (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
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
      </requestedPrivileges>
    </security>
  </trustInfo>
  <asmv3:application>
    <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
      <dpiAware>true</dpiAware>
    </asmv3:windowsSettings>
  </asmv3:application>
  <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
    <application>
      <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
      <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
    </application>
  </compatibility>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity
        type="win32"
        name="Microsoft.Windows.Common-Controls"
        version="6.0.0.0"
        processorArchitecture="*"
        publicKeyToken="6595b64144ccf1df"
        language="*"
      />
    </dependentAssembly>
  </dependency>
</assembly>
n class="cm"> Modifications and additions to the original source code (contained in this file) and all other portions of this file are Copyright (c) 2013-2016 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 <errno.h> #include <string.h> #include "Platform/SerializerFactory.h" #include "Platform/SystemException.h" #include "Platform/StringConverter.h" namespace VeraCrypt { SystemException::SystemException () : ErrorCode (errno) { } SystemException::SystemException (const string &message) : Exception (message), ErrorCode (errno) { } SystemException::SystemException (const string &message, const string &subject) : Exception (message, StringConverter::ToWide (subject)), ErrorCode (errno) { } SystemException::SystemException (const string &message, const wstring &subject) : Exception (message, subject), ErrorCode (errno) { } void SystemException::Deserialize (shared_ptr <Stream> stream) { Exception::Deserialize (stream); Serializer sr (stream); sr.Deserialize ("ErrorCode", ErrorCode); } bool SystemException::IsError () const { return ErrorCode != 0; } void SystemException::Serialize (shared_ptr <Stream> stream) const { Exception::Serialize (stream); Serializer sr (stream); sr.Serialize ("ErrorCode", ErrorCode); } wstring SystemException::SystemText () const { return StringConverter::ToWide (strerror ((int) ErrorCode)); } #define TC_EXCEPTION(TYPE) TC_SERIALIZER_FACTORY_ADD(TYPE) #undef TC_EXCEPTION_NODECL #define TC_EXCEPTION_NODECL(TYPE) TC_SERIALIZER_FACTORY_ADD(TYPE) TC_SERIALIZER_FACTORY_ADD_EXCEPTION_SET (SystemException); }