Annotation of truecrypt/boot/windows/bootconfig.cpp, revision 1.1.1.2

1.1       root        1: /*
                      2:  Copyright (c) 2008 TrueCrypt Foundation. All rights reserved.
                      3: 
1.1.1.2 ! root        4:  Governed by the TrueCrypt License 2.5 the full text of which is contained
1.1       root        5:  in the file License.txt included in TrueCrypt binary and source code
                      6:  distribution packages.
                      7: */
                      8: 
                      9: #include "BootConfig.h"
                     10: 
                     11: byte BootSectorFlags;
                     12: 
                     13: byte BootLoaderDrive;
                     14: byte BootDrive;
                     15: bool BootDriveGeometryValid = false;
1.1.1.2 ! root       16: bool PreventHiddenSystemBoot = false;
        !            17: 
1.1       root       18: DriveGeometry BootDriveGeometry;
                     19: 
                     20: CRYPTO_INFO *BootCryptoInfo;
                     21: Partition EncryptedVirtualPartition;
1.1.1.2 ! root       22: 
        !            23: Partition ActivePartition;
        !            24: Partition PartitionFollowingActive;
        !            25: uint64 HiddenVolumeStartUnitNo;
        !            26: uint64 HiddenVolumeStartSector;
        !            27: 
        !            28: 
        !            29: BiosResult UpdateBootSectorConfiguration (byte drive)
        !            30: {
        !            31:        AcquireSectorBuffer();
        !            32: 
        !            33:        BiosResult result = ReadWriteMBR (false, drive);
        !            34:        if (result != BiosResultSuccess)
        !            35:                goto ret;
        !            36: 
        !            37:        SectorBuffer[TC_BOOT_SECTOR_CONFIG_OFFSET] = BootSectorFlags;
        !            38:        result = ReadWriteMBR (true, drive);
        !            39: 
        !            40: ret:
        !            41:        ReleaseSectorBuffer();
        !            42:        return result;
        !            43: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.