﻿<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v3" manifestVersion="1.0" copyright="Copyright (c) Microsoft Corporation. All Rights Reserved.">
  <assemblyIdentity name="Microsoft-Windows-SecureStartup-DrivePreparation" version="10.0.10586.212" processorArchitecture="amd64" language="neutral" buildType="release" publicKeyToken="31bf3856ad364e35" versionScope="nonSxS" />
  <dependency discoverable="no" resourceType="Resources">
    <dependentAssembly dependencyType="prerequisite">
      <assemblyIdentity name="Microsoft-Windows-SecureStartup-DrivePreparation.Resources" version="10.0.10586.212" processorArchitecture="amd64" language="*" buildType="release" publicKeyToken="31bf3856ad364e35" versionScope="nonSxS" />
    </dependentAssembly>
  </dependency>
  <file name="BdeHdCfg.exe" destinationPath="$(runtime.system32)\" sourceName="BdeHdCfg.exe" sourcePath=".\" importPath="$(build.nttree)\">
    <securityDescriptor name="WRP_FILE_DEFAULT_SDDL" />
    <asmv2:hash xmlns:asmv2="urn:schemas-microsoft-com:asm.v2">
      <dsig:Transforms xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
        <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
      </dsig:Transforms>
      <dsig:DigestMethod xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
      <dsig:DigestValue xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">2pOlQlvyslEa7AIRhT2HP2f90ni390FjxSxluWJbhBY=</dsig:DigestValue>
    </asmv2:hash>
  </file>
  <file name="BdeHdCfgLib.dll" destinationPath="$(runtime.system32)\" sourceName="BdeHdCfgLib.dll" sourcePath=".\" importPath="$(build.nttree)\">
    <securityDescriptor name="WRP_FILE_DEFAULT_SDDL" />
    <asmv2:hash xmlns:asmv2="urn:schemas-microsoft-com:asm.v2">
      <dsig:Transforms xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
        <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
      </dsig:Transforms>
      <dsig:DigestMethod xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
      <dsig:DigestValue xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">34ii44ZcoaDN/k+8zTKg6hTG5qWvF8artfdkD03Ehps=</dsig:DigestValue>
    </asmv2:hash>
  </file>
  <registryKeys>
    <registryKey keyName="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\CancelAutoplay\CLSID">
      <registryValue name="c87f39e0-fd44-41bc-8a81-38b2dab691ff" valueType="REG_SZ" value="" />
    </registryKey>
    <registryKey keyName="HKEY_CLASSES_ROOT\AppId\{d056ebce-e7e9-4994-a5e6-de59430306c1}">
      <registryValue name="RunAs" valueType="REG_SZ" value="Interactive User" />
      <securityDescriptor name="WRP_REGKEY_DEFAULT_SDDL" />
    </registryKey>
    <registryKey keyName="HKEY_CLASSES_ROOT\AppId\BdeHdCfg.exe">
      <registryValue name="AppId" valueType="REG_SZ" value="{d056ebce-e7e9-4994-a5e6-de59430306c1}" />
      <securityDescriptor name="WRP_REGKEY_DEFAULT_SDDL" />
    </registryKey>
  </registryKeys>
  <trustInfo>
    <security>
      <accessControl>
        <securityDescriptorDefinitions>
          <securityDescriptorDefinition name="WRP_FILE_DEFAULT_SDDL" sddl="O:S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464G:S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464D:P(A;;FA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;;GRGX;;;BA)(A;;GRGX;;;SY)(A;;GRGX;;;BU)(A;;GRGX;;;S-1-15-2-1)S:(AU;FASA;0x000D0116;;;WD)" operationHint="replace" description="Default SDDL for Windows Resource Protected file" />
          <securityDescriptorDefinition name="WRP_REGKEY_DEFAULT_SDDL" sddl="O:S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464G:S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464D:P(A;CI;GA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;CI;GR;;;SY)(A;CI;GR;;;BA)(A;CI;GR;;;BU)(A;CI;GR;;;S-1-15-2-1)" operationHint="replace" />
        </securityDescriptorDefinitions>
      </accessControl>
    </security>
  </trustInfo>
  <localization>
    <resources culture="en-US">
      <stringTable>
        <string id="BdeHdCfgAdminChannelName" value="Microsoft-Windows-BitLocker-DrivePreparationTool/Admin" />
        <string id="BdeHdCfgOpChannelName" value="Microsoft-Windows-BitLocker-DrivePreparationTool/Operational" />
        <string id="BdeHdCfgProviderName" value="Microsoft-Windows-BitLocker-DrivePreparationTool" />
        <string id="createDriveOpcode" value="Create" />
        <string id="event_CommandLineParams" value="Command-line parameters for the BitLocker Drive Preparation Tool:%n   %1" />
        <string id="event_DetectedWinRE" value="Detected Windows Recovery Environment volume%nVolume Path: %1" />
        <string id="event_enumDiskExtent" value="Disk extent located on the hard disk containing the System Drive.%nOffset: %3%nSize: %4" />
        <string id="event_errorMessage" value="A problem occurred while running the BitLocker Drive Preparation Tool.%nError Code: %1%nError Text: %2" />
        <string id="event_FailedCheckTarget" value="A volume failed to meet the requirements for a target volume.%nVolume Name: %3%nReason: %2" />
        <string id="event_foundCandidate" value="Found a candidate volume for shrink or merge.%nShrinkable: %1%nCandidate Volume Name: %3" />
        <string id="event_foundUnallocatedExtent" value="Found an unallocated extent large enough for the requested size.%nOffset: %3%nSize: %4" />
        <string id="event_MergeAction" value="Drive will be set as the new system drive%nVolume Name: %1" />
        <string id="event_operationComplete" value="The BitLocker Drive Configuration Tool successfully completed. The target hard disk is ready for BitLocker." />
        <string id="event_ShrinkAction" value="Drive will shrink and new active drive %6 will be created. %nVolume Name: %1%nShrink Size: %5 Bytes" />
        <string id="event_UnallocatedAction" value="New drive %3 will be created from unallocated space%nUnallocated extent offset: %1%nNew partition size: %2 Bytes" />
        <string id="event_warningMessage" value="Warning Code: %1%nWarning Text: %2" />
        <string id="initOpcode" value="Initialization" />
        <string id="prepareDriveOpcode" value="Prepare" />
        <string id="shrinkDriveOpcode" value="Shrink" />
      </stringTable>
    </resources>
  </localization>
  <instrumentation>
    <events xmlns="http://schemas.microsoft.com/win/2004/08/events" xmlns:bdecfg="urn:Microsoft-Windows-SecureStartup-DrivePreparation" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <provider guid="{632F767E-0EC3-47b9-BA1C-A0E62A74728A}" message="$(string.BdeHdCfgProviderName)" messageFileName="%SystemRoot%\system32\BdeHdCfgLib.dll" name="Microsoft-Windows-BitLocker-DrivePreparationTool" resourceFileName="%SystemRoot%\system32\BdeHdCfgLib.dll" symbol="BDECFG_EVENT_PROVIDER">
        <channels>
          <channel chid="AdminChannel" enabled="true" isolation="System" message="$(string.BdeHdCfgAdminChannelName)" name="Microsoft-Windows-BitLocker-DrivePreparationTool/Admin" symbol="BDECFG_EVT_CHANNEL_ADMIN" type="Admin" />
          <channel chid="OperationalChannel" enabled="true" isolation="System" message="$(string.BdeHdCfgOpChannelName)" name="Microsoft-Windows-BitLocker-DrivePreparationTool/Operational" symbol="BDECFG_EVT_CHANNEL_OPERATIONAL" type="Operational" />
        </channels>
        <opcodes>
          <opcode message="$(string.initOpcode)" name="bdecfg:Initialization" symbol="BDECFG_OPCODE_INIT" value="10" />
          <opcode message="$(string.shrinkDriveOpcode)" name="bdecfg:ShrinkDrive" symbol="BDECFG_OPCODE_SHRINK_DRIVE" value="11" />
          <opcode message="$(string.createDriveOpcode)" name="bdecfg:CreateDrive" symbol="BDECFG_OPCODE_CREATE_DRIVE" value="12" />
          <opcode message="$(string.prepareDriveOpcode)" name="bdecfg:PrepareDrive" symbol="BDECFG_OPCODE_PREPARE_DRIVE" value="13" />
        </opcodes>
        <templates>
          <template tid="T_BDECFG_WINRE">
            <data inType="win:UnicodeString" name="WinREVolumeName" />
            <data inType="win:UnicodeString" name="DriveLetter" />
            <data inType="win:UInt32" name="DiskNumber" />
            <data inType="win:UInt32" name="PartitionNumber" />
          </template>
          <template tid="T_BDECFG_CANDIDATE_DRIVE">
            <data inType="win:Boolean" name="Shrinkable" />
            <data inType="win:Boolean" name="ContainsWinRE" />
            <data inType="win:UnicodeString" name="VolumeName" />
            <data inType="win:UInt64" name="VolumeSize" />
            <data inType="win:UInt64" name="VolumeFreeSpace" />
            <data inType="win:UInt64" name="VolumeMaxShrinkSize" />
            <data inType="win:HexInt32" name="VolumeFlags" />
            <data inType="win:UnicodeString" name="DriveLetter" />
            <data inType="win:UInt32" name="DiskNumber" />
            <data inType="win:UInt32" name="PartitionNumber" />
          </template>
          <template tid="T_BDECFG_DISK_EXTENT">
            <data inType="win:GUID" name="DiskId" />
            <data inType="win:HexInt32" name="Type" />
            <data inType="win:UInt64" name="Offset" />
            <data inType="win:UInt64" name="Size" />
            <data inType="win:GUID" name="VolumeId" />
          </template>
          <template tid="T_BDECFG_COMMAND_LINE_PARAMS">
            <data inType="win:UnicodeString" name="RawCommandLine" />
            <data inType="win:Boolean" name="ShowUsage" />
            <data inType="win:Boolean" name="DisplayDriveInfo" />
            <data inType="win:UnicodeString" name="TargetDriveLetter" />
            <data inType="win:UInt32" name="TargetAction" />
            <data inType="win:UnicodeString" name="NewSystemDriveLetter" />
            <data inType="win:Int64" name="ShrinkSize" />
            <data inType="win:Boolean" name="QuietMode" />
            <data inType="win:Boolean" name="AutoRestart" />
          </template>
          <template tid="T_BDECFG_ACTION_TYPE_SHRINK">
            <data inType="win:UnicodeString" name="VolumeName" />
            <data inType="win:UnicodeString" name="DriveLetter" />
            <data inType="win:UInt32" name="DiskNumber" />
            <data inType="win:UInt32" name="PartitionNumber" />
            <data inType="win:UInt64" name="ShrinkSize" />
            <data inType="win:UnicodeString" name="NewDriveLetter" />
          </template>
          <template tid="T_BDECFG_ACTION_TYPE_UNALLOCATED">
            <data inType="win:UInt64" name="ExtentOffset" />
            <data inType="win:UInt64" name="NewPartitionSize" />
            <data inType="win:UnicodeString" name="NewDriveLetter" />
          </template>
          <template tid="T_BDECFG_ACTION_TYPE_MERGE">
            <data inType="win:UnicodeString" name="VolumeName" />
            <data inType="win:UnicodeString" name="DriveLetter" />
            <data inType="win:UInt32" name="DiskNumber" />
            <data inType="win:UInt32" name="PartitionNumber" />
          </template>
          <template tid="T_BDECFG_MESSAGE">
            <data inType="win:HexInt32" name="MessageCode" />
            <data inType="win:UnicodeString" name="MessageText" />
          </template>
          <template tid="T_BDECFG_FAILED_TARGET">
            <data inType="win:HexInt32" name="MessageCode" />
            <data inType="win:UnicodeString" name="MessageText" />
            <data inType="win:UnicodeString" name="VolumeName" />
            <data inType="win:UnicodeString" name="DriveLetter" />
            <data inType="win:UInt32" name="DiskNumber" />
            <data inType="win:UInt32" name="PartitionNumber" />
          </template>
          <template tid="T_BDECFG_SIMPLE" />
        </templates>
        <events>
          <event channel="AdminChannel" level="win:Error" message="$(string.event_errorMessage)" opcode="bdecfg:Initialization" symbol="BDECFG_EVT_INIT_ERROR" template="T_BDECFG_MESSAGE" value="0x0001" version="1" />
          <event channel="AdminChannel" level="win:Error" message="$(string.event_errorMessage)" opcode="bdecfg:ShrinkDrive" symbol="BDECFG_EVT_SHRINK_DRIVE_ERROR" template="T_BDECFG_MESSAGE" value="0x0002" version="1" />
          <event channel="AdminChannel" level="win:Error" message="$(string.event_errorMessage)" opcode="bdecfg:CreateDrive" symbol="BDECFG_EVT_CREATE_DRIVE_ERROR" template="T_BDECFG_MESSAGE" value="0x0003" version="1" />
          <event channel="AdminChannel" level="win:Error" message="$(string.event_errorMessage)" opcode="bdecfg:PrepareDrive" symbol="BDECFG_EVT_PREPARE_DRIVE_ERROR" template="T_BDECFG_MESSAGE" value="0x0004" version="1" />
          <event channel="AdminChannel" level="win:Error" message="$(string.event_errorMessage)" symbol="BDECFG_EVT_TOOL_ERROR" template="T_BDECFG_MESSAGE" value="0x0005" version="1" />
          <event channel="AdminChannel" level="win:Warning" message="$(string.event_warningMessage)" symbol="BDECFG_EVT_WARNING" template="T_BDECFG_MESSAGE" value="0x0100" version="1" />
          <event channel="AdminChannel" level="win:Informational" message="$(string.event_operationComplete)" symbol="BDECFG_EVT_SUCCESS" template="T_BDECFG_SIMPLE" value="0x0200" version="1" />
          <event channel="OperationalChannel" level="win:Verbose" message="$(string.event_foundCandidate)" opcode="bdecfg:Initialization" symbol="BDECFG_EVT_FOUND_CANDIDATE_DRIVE" template="T_BDECFG_CANDIDATE_DRIVE" value="0x1000" version="1" />
          <event channel="OperationalChannel" level="win:Informational" message="$(string.event_foundUnallocatedExtent)" opcode="bdecfg:Initialization" symbol="BDECFG_EVT_FOUND_UNALLOCATED_EXTENT" template="T_BDECFG_DISK_EXTENT" value="0x1001" version="1" />
          <event channel="OperationalChannel" level="win:Verbose" message="$(string.event_enumDiskExtent)" opcode="bdecfg:Initialization" symbol="BDECFG_EVT_ENUM_DISK_EXTENT" template="T_BDECFG_DISK_EXTENT" value="0x1002" version="1" />
          <event channel="OperationalChannel" level="win:Informational" message="$(string.event_CommandLineParams)" opcode="bdecfg:Initialization" symbol="BDECFG_EVT_LOG_COMMAND_LINE_PARAMS" template="T_BDECFG_COMMAND_LINE_PARAMS" value="0x1003" version="1" />
          <event channel="OperationalChannel" level="win:Informational" message="$(string.event_ShrinkAction)" opcode="bdecfg:Initialization" symbol="BDECFG_EVT_LOG_SHRINK_ACTION" template="T_BDECFG_ACTION_TYPE_SHRINK" value="0x1004" version="1" />
          <event channel="OperationalChannel" level="win:Informational" message="$(string.event_UnallocatedAction)" opcode="bdecfg:Initialization" symbol="BDECFG_EVT_LOG_UNALLOCATED_ACTION" template="T_BDECFG_ACTION_TYPE_UNALLOCATED" value="0x1005" version="1" />
          <event channel="OperationalChannel" level="win:Informational" message="$(string.event_MergeAction)" opcode="bdecfg:Initialization" symbol="BDECFG_EVT_LOG_MERGE_ACTION" template="T_BDECFG_ACTION_TYPE_MERGE" value="0x1006" version="1" />
          <event channel="OperationalChannel" level="win:Informational" message="$(string.event_DetectedWinRE)" opcode="bdecfg:Initialization" symbol="BDECFG_EVT_LOG_WINRE_DETECTED" template="T_BDECFG_WINRE" value="0x1007" version="1" />
          <event channel="OperationalChannel" level="win:Informational" message="$(string.event_FailedCheckTarget)" opcode="bdecfg:Initialization" symbol="BDECFG_EVT_LOG_FAILED_CHECK_TARGET" template="T_BDECFG_FAILED_TARGET" value="0x1008" version="1" />
        </events>
      </provider>
    </events>
  </instrumentation>
</assembly>