Announcing Windows 10 Insider Preview Build 16176 PC + 15204 Mobile Insider

Page 15 of 18 FirstFirst ... 51314151617 ... LastLast

  1. Posts : 3,453
       #140

    Gong off topic here as it's not Insider but CU - but an FYI

    Code:
    Windows PowerShellCopyright (C) 2016 Microsoft Corporation. All rights reserved.
    
    
    PS C:\WINDOWS\system32> DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:I:\Sources\Install.wim:1 /LimitAccess
    
    
    Deployment Image Servicing and Management tool
    Version: 10.0.15063.0
    
    
    Image Version: 10.0.15063.0
    
    
    [===========================89.2%===================       ]
    Error: 0x800f081f
    
    
    The source files could not be found.
    Use the "Source" option to specify the location of the files that are required to restore the feature. For more informat
    ion on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077.
    
    
    The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log
    PS C:\WINDOWS\system32> "dism","cbs" | foreach {
    >>  sls -Pattern "0x800f090(e|6)" -Path "$($env:systemroot)\logs\$($_)\$($_).log"
    >> }
    
    
    C:\WINDOWS\logs\dism\dism.log:2608:2017-04-17 14:08:28, Info                  DISM   DISM Package Manager: PID=2604
    TID=9036  Error in operation: (null) (CBS HRESULT=0x800f0906) - CCbsConUIHandler::Error
    C:\WINDOWS\logs\dism\dism.log:2609:2017-04-17 14:08:28, Error                 DISM   DISM Package Manager: PID=2604
    TID=8996 Failed finalizing changes. - CDISMPackageManager::Internal_Finalize(hr:0x800f0906)
    C:\WINDOWS\logs\dism\dism.log:2611:2017-04-17 14:08:28, Error                 DISM   DISM Package Manager: PID=2604
    TID=8996 Failed processing package changes with session option CbsSessionOptionRepairStoreCorruption -
    CDISMPackageManager::RestoreHealth(hr:0x800f0906)
    C:\WINDOWS\logs\dism\dism.log:2613:2017-04-17 14:08:28, Error                 DISM   DISM Package Manager: PID=2604
    TID=8996 Failed to restore the image health. - CPackageManagerCLIHandler::ProcessCmdLine_CleanupImage(hr:0x800f0906)
    C:\WINDOWS\logs\dism\dism.log:2614:2017-04-17 14:08:28, Error                 DISM   DISM Package Manager: PID=2604
    TID=8996 Failed while processing command cleanup-image. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x800f0906)
    C:\WINDOWS\logs\cbs\cbs.log:28633:2017-04-16 19:30:56, Info                  CBS    Failed to search Windows update
    [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:28634:2017-04-16 19:30:56, Info                  CBS    Failed to enumerate cloud
    capabilities [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:28638:2017-04-16 19:30:56, Info                  CBS    Failed to search Windows update
    [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:28639:2017-04-16 19:30:56, Info                  CBS    Failed to enumerate cloud
    capabilities [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:28643:2017-04-16 19:31:00, Info                  CBS    Failed to search Windows update
    [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:28644:2017-04-16 19:31:00, Info                  CBS    Failed to enumerate cloud
    capabilities [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:40570:2017-04-17 07:45:23, Info                  CBS    Failed to search Windows update
    [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:40571:2017-04-17 07:45:23, Info                  CBS    Failed to enumerate cloud
    capabilities [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:40805:2017-04-17 12:34:33, Info                  CBS    Failed to search Windows update
    [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:40806:2017-04-17 12:34:33, Info                  CBS    Failed to enumerate cloud
    capabilities [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:40818:2017-04-17 12:42:13, Info                  CBS    Failed to search and collect all
    capabilities [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:40820:2017-04-17 12:42:13, Info                  CBS    Failed to collect payload and
    there is nothing to repair. [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:40821:2017-04-17 12:42:13, Info                  CBS    Failed to repair store. [HRESULT =
    0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:40833:Operation result: 0x800f0906
    C:\WINDOWS\logs\cbs\cbs.log:40849:2017-04-17 12:42:13, Info                  CBS    CheckSur: hrStatus: 0x800f0906
    [CBS_E_DOWNLOAD_FAILURE], download Result: 0x8024402c [Unknown Error]
    C:\WINDOWS\logs\cbs\cbs.log:40855:2017-04-17 12:42:13, Info                  CBS    Failed to run Detect and repair.
    [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:40859:2017-04-17 12:42:13, Info                  CBS    Exec: Processing complete,
    session(Corruption Repairing): 30586726_134451038 [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:40860:2017-04-17 12:42:13, Error                 CBS    Session: 30586726_134451038 failed
    to perform store corruption detect and repair operation. [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:40861:2017-04-17 12:42:13, Info                  CBS    Session: 30586726_134451038
    finalized. Download error: 0x8024402c [Unknown Error], Reboot required: no [HRESULT = 0x800f0906 -
    CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:40862:2017-04-17 12:42:13, Info                  CBS    Failed to FinalizeEx using worker
    session [HRESULT = 0x800f0906]
    C:\WINDOWS\logs\cbs\cbs.log:41011:2017-04-17 14:04:33, Info                  CBS    Failed to search and collect all
    capabilities [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:41013:2017-04-17 14:04:33, Info                  CBS    Failed to collect payload and
    there is nothing to repair. [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:41014:2017-04-17 14:04:33, Info                  CBS    Failed to repair store. [HRESULT =
    0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:41026:Operation result: 0x800f0906
    C:\WINDOWS\logs\cbs\cbs.log:41042:2017-04-17 14:04:33, Info                  CBS    CheckSur: hrStatus: 0x800f0906
    [CBS_E_DOWNLOAD_FAILURE], download Result: 0x80072efd [Unknown Error]
    C:\WINDOWS\logs\cbs\cbs.log:41046:2017-04-17 14:04:33, Info                  CBS    Failed to run Detect and repair.
    [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:41050:2017-04-17 14:04:33, Info                  CBS    Exec: Processing complete,
    session(Corruption Repairing): 30586738_1718016764 [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:41051:2017-04-17 14:04:33, Error                 CBS    Session: 30586738_1718016764
    failed to perform store corruption detect and repair operation. [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:41052:2017-04-17 14:04:33, Info                  CBS    Session: 30586738_1718016764
    finalized. Download error: 0x80072efd [Unknown Error], Reboot required: no [HRESULT = 0x800f0906 -
    CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:41053:2017-04-17 14:04:33, Info                  CBS    Failed to FinalizeEx using worker
    session [HRESULT = 0x800f0906]
    C:\WINDOWS\logs\cbs\cbs.log:41072:2017-04-17 14:08:28, Info                  CBS    Failed to search and collect all
    capabilities [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:41074:2017-04-17 14:08:28, Info                  CBS    Failed to collect payload and
    there is nothing to repair. [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:41075:2017-04-17 14:08:28, Info                  CBS    Failed to repair store. [HRESULT =
    0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:41087:Operation result: 0x800f0906
    C:\WINDOWS\logs\cbs\cbs.log:41103:2017-04-17 14:08:28, Info                  CBS    CheckSur: hrStatus: 0x800f0906
    [CBS_E_DOWNLOAD_FAILURE], download Result: 0x8024402c [Unknown Error]
    C:\WINDOWS\logs\cbs\cbs.log:41107:2017-04-17 14:08:28, Info                  CBS    Failed to run Detect and repair.
    [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:41111:2017-04-17 14:08:28, Info                  CBS    Exec: Processing complete,
    session(Corruption Repairing): 30586738_2138716752 [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:41112:2017-04-17 14:08:28, Error                 CBS    Session: 30586738_2138716752
    failed to perform store corruption detect and repair operation. [HRESULT = 0x800f0906 - CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:41113:2017-04-17 14:08:28, Info                  CBS    Session: 30586738_2138716752
    finalized. Download error: 0x8024402c [Unknown Error], Reboot required: no [HRESULT = 0x800f0906 -
    CBS_E_DOWNLOAD_FAILURE]
    C:\WINDOWS\logs\cbs\cbs.log:41114:2017-04-17 14:08:28, Info                  CBS    Failed to FinalizeEx using worker
    session [HRESULT = 0x800f0906]
    Code:
    PS C:\WINDOWS\system32> "dism","cbs" | foreach {
    >>   sls -Pattern "0x800f081f" -Path "$($env:systemroot)\logs\$($_)\$($_).log"
    >>  }
    
    
    C:\WINDOWS\logs\dism\dism.log:2897:2017-04-17 19:13:10, Info                  DISM   DISM Package Manager: PID=2728
    TID=8208  Error in operation: source for package or file not found, ResolveSource() unsuccessful. (CBS
    HRESULT=0x800f081f) - CCbsConUIHandler::Error
    C:\WINDOWS\logs\dism\dism.log:2898:2017-04-17 19:13:10, Error                 DISM   DISM Package Manager: PID=2728
    TID=9092 Failed finalizing changes. - CDISMPackageManager::Internal_Finalize(hr:0x800f081f)
    C:\WINDOWS\logs\dism\dism.log:2900:2017-04-17 19:13:10, Error                 DISM   DISM Package Manager: PID=2728
    TID=9092 Failed processing package changes with session option CbsSessionOptionRepairStoreCorruption -
    CDISMPackageManager::RestoreHealth(hr:0x800f081f)
    C:\WINDOWS\logs\dism\dism.log:2902:2017-04-17 19:13:10, Error                 DISM   DISM Package Manager: PID=2728
    TID=9092 Failed to restore the image health. - CPackageManagerCLIHandler::ProcessCmdLine_CleanupImage(hr:0x800f081f)
    C:\WINDOWS\logs\dism\dism.log:2903:2017-04-17 19:13:10, Error                 DISM   DISM Package Manager: PID=2728
    TID=9092 Failed while processing command cleanup-image. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x800f081f)
    C:\WINDOWS\logs\dism\dism.log:3055:2017-04-17 19:22:07, Info                  DISM   DISM Package Manager: PID=8972
    TID=6580  Error in operation: source for package or file not found, ResolveSource() unsuccessful. (CBS
    HRESULT=0x800f081f) - CCbsConUIHandler::Error
    C:\WINDOWS\logs\dism\dism.log:3056:2017-04-17 19:22:07, Error                 DISM   DISM Package Manager: PID=8972
    TID=7132 Failed finalizing changes. - CDISMPackageManager::Internal_Finalize(hr:0x800f081f)
    C:\WINDOWS\logs\dism\dism.log:3058:2017-04-17 19:22:07, Error                 DISM   DISM Package Manager: PID=8972
    TID=7132 Failed processing package changes with session option CbsSessionOptionRepairStoreCorruption -
    CDISMPackageManager::RestoreHealth(hr:0x800f081f)
    C:\WINDOWS\logs\dism\dism.log:3060:2017-04-17 19:22:07, Error                 DISM   DISM Package Manager: PID=8972
    TID=7132 Failed to restore the image health. - CPackageManagerCLIHandler::ProcessCmdLine_CleanupImage(hr:0x800f081f)
    C:\WINDOWS\logs\dism\dism.log:3061:2017-04-17 19:22:07, Error                 DISM   DISM Package Manager: PID=8972
    TID=7132 Failed while processing command cleanup-image. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x800f081f)
    C:\WINDOWS\logs\dism\dism.log:3475:2017-04-17 19:52:16, Info                  DISM   DISM Package Manager: PID=2556
    TID=2084  Error in operation: source for package or file not found, ResolveSource() unsuccessful. (CBS
    HRESULT=0x800f081f) - CCbsConUIHandler::Error
    C:\WINDOWS\logs\dism\dism.log:3476:2017-04-17 19:52:16, Error                 DISM   DISM Package Manager: PID=2556
    TID=2740 Failed finalizing changes. - CDISMPackageManager::Internal_Finalize(hr:0x800f081f)
    C:\WINDOWS\logs\dism\dism.log:3478:2017-04-17 19:52:16, Error                 DISM   DISM Package Manager: PID=2556
    TID=2740 Failed processing package changes with session option CbsSessionOptionRepairStoreCorruption -
    CDISMPackageManager::RestoreHealth(hr:0x800f081f)
    C:\WINDOWS\logs\dism\dism.log:3480:2017-04-17 19:52:16, Error                 DISM   DISM Package Manager: PID=2556
    TID=2740 Failed to restore the image health. - CPackageManagerCLIHandler::ProcessCmdLine_CleanupImage(hr:0x800f081f)
    C:\WINDOWS\logs\dism\dism.log:3481:2017-04-17 19:52:16, Error                 DISM   DISM Package Manager: PID=2556
    TID=2740 Failed while processing command cleanup-image. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x800f081f)
    C:\WINDOWS\logs\cbs\cbs.log:41264:2017-04-17 19:13:10, Info                  CBS    Failed to collect payload and
    there is nothing to repair. [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
    C:\WINDOWS\logs\cbs\cbs.log:41265:2017-04-17 19:13:10, Info                  CBS    Failed to repair store. [HRESULT =
    0x800f081f - CBS_E_SOURCE_MISSING]
    C:\WINDOWS\logs\cbs\cbs.log:41277:Operation result: 0x800f081f
    C:\WINDOWS\logs\cbs\cbs.log:41293:2017-04-17 19:13:10, Info                  CBS    CheckSur: hrStatus: 0x800f081f
    [CBS_E_SOURCE_MISSING], download Result: 0x0 [S_OK]
    C:\WINDOWS\logs\cbs\cbs.log:41297:2017-04-17 19:13:10, Info                  CBS    Failed to run Detect and repair.
    [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
    C:\WINDOWS\logs\cbs\cbs.log:41301:2017-04-17 19:13:10, Info                  CBS    Exec: Processing complete,
    session(Corruption Repairing): 30586781_1463972899 [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
    C:\WINDOWS\logs\cbs\cbs.log:41302:2017-04-17 19:13:10, Error                 CBS    Session: 30586781_1463972899
    failed to perform store corruption detect and repair operation. [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
    C:\WINDOWS\logs\cbs\cbs.log:41303:2017-04-17 19:13:10, Info                  CBS    Session: 30586781_1463972899
    finalized. Reboot required: no [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
    C:\WINDOWS\logs\cbs\cbs.log:41304:2017-04-17 19:13:10, Info                  CBS    Failed to FinalizeEx using worker
    session [HRESULT = 0x800f081f]
    C:\WINDOWS\logs\cbs\cbs.log:41397:2017-04-17 19:22:07, Info                  CBS    Failed to collect payload and
    there is nothing to repair. [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
    C:\WINDOWS\logs\cbs\cbs.log:41398:2017-04-17 19:22:07, Info                  CBS    Failed to repair store. [HRESULT =
    0x800f081f - CBS_E_SOURCE_MISSING]
    C:\WINDOWS\logs\cbs\cbs.log:41410:Operation result: 0x800f081f
    C:\WINDOWS\logs\cbs\cbs.log:41426:2017-04-17 19:22:07, Info                  CBS    CheckSur: hrStatus: 0x800f081f
    [CBS_E_SOURCE_MISSING], download Result: 0x0 [S_OK]
    C:\WINDOWS\logs\cbs\cbs.log:41430:2017-04-17 19:22:07, Info                  CBS    Failed to run Detect and repair.
    [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
    C:\WINDOWS\logs\cbs\cbs.log:41434:2017-04-17 19:22:07, Info                  CBS    Exec: Processing complete,
    session(Corruption Repairing): 30586782_2657280246 [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
    C:\WINDOWS\logs\cbs\cbs.log:41435:2017-04-17 19:22:07, Error                 CBS    Session: 30586782_2657280246
    failed to perform store corruption detect and repair operation. [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
    C:\WINDOWS\logs\cbs\cbs.log:41436:2017-04-17 19:22:07, Info                  CBS    Session: 30586782_2657280246
    finalized. Reboot required: no [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
    C:\WINDOWS\logs\cbs\cbs.log:41437:2017-04-17 19:22:07, Info                  CBS    Failed to FinalizeEx using worker
    session [HRESULT = 0x800f081f]
    C:\WINDOWS\logs\cbs\cbs.log:41595:2017-04-17 19:52:16, Info                  CBS    Failed to collect payload and
    there is nothing to repair. [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
    C:\WINDOWS\logs\cbs\cbs.log:41596:2017-04-17 19:52:16, Info                  CBS    Failed to repair store. [HRESULT =
    0x800f081f - CBS_E_SOURCE_MISSING]
    C:\WINDOWS\logs\cbs\cbs.log:41608:Operation result: 0x800f081f
    C:\WINDOWS\logs\cbs\cbs.log:41624:2017-04-17 19:52:16, Info                  CBS    CheckSur: hrStatus: 0x800f081f
    [CBS_E_SOURCE_MISSING], download Result: 0x0 [S_OK]
    C:\WINDOWS\logs\cbs\cbs.log:41628:2017-04-17 19:52:16, Info                  CBS    Failed to run Detect and repair.
    [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
    C:\WINDOWS\logs\cbs\cbs.log:41632:2017-04-17 19:52:16, Info                  CBS    Exec: Processing complete,
    session(Corruption Repairing): 30586786_3481065904 [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
    C:\WINDOWS\logs\cbs\cbs.log:41633:2017-04-17 19:52:16, Error                 CBS    Session: 30586786_3481065904
    failed to perform store corruption detect and repair operation. [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
    C:\WINDOWS\logs\cbs\cbs.log:41634:2017-04-17 19:52:16, Info                  CBS    Session: 30586786_3481065904
    finalized. Reboot required: no [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
    C:\WINDOWS\logs\cbs\cbs.log:41635:2017-04-17 19:52:16, Info                  CBS    Failed to FinalizeEx using worker
    session [HRESULT = 0x800f081f]
    The error codes are not addressing the issue at hand...(admittedly these log files are gibberish to me..so I may be missing something?)
    Last edited by Superfly; 17 Apr 2017 at 13:04. Reason: additional error code stuff
      My Computer


  2. Posts : 1,983
    Windows 10 x86 14383 Insider Pro and Core 10240
       #141

    Superfly said:
    I agree it has some nifty features... however, it's core (i.e. Dism ) functionality suffers from the same ?API related falure (without seeing it's souce code cannot be sure)

    Attachment 130586
    Says it does not use DISM!Apparently It's core is not DISM - it is CBS - the Component-Based Servicing Reference! And development of DISM++ has been in progress for some while - DISM was a comparatively Weak tool until Windows 8, when a lot of new deployment features were added to replace the Imagex and WIMLIB functions.

    Note the Check Me link below to GitHub Open source repositories, and further web links within the program's UI:

    Announcing Windows 10 Insider Preview Build 16176 PC + 15204 Mobile-2017_04_17_17_23_291.png

    Of course, you will never ever see Official MS DISM code at all.

    The Chuyu Team developers are, I think, Chinese, and code is C++ and of course XML according to the references online and in the Program download - the code is mixed English code and Chinese variables:
    <Root>
    <VerticalLayout>
    <VerticalLayout padding="5,5,5,5" bordercolor="#FF252526" bordersize="1" height="150">
    <Label text="#Windows映像默认应用程序关联" font="1" padding="5,5,5,5"/>
    <Label text="#这些设置将在首次启动计算机的OOBE阶段生效" font="0" padding="20,5,5,5"/>
    <VerticalLayout/>
    <HorizontalLayout height="40" inset="5,5,5,5" childpadding="5">
    <HorizontalLayout/>
    <Button name="导入" text="#导入" width="80" font="0" bordercolor="#FF252526" bordersize="1"/>
    <Button name="导出" text="#导出" width="80" font="0" bordercolor="#FF252526" bordersize="1"/>
    <Button name="删除" text="#删除" width="80" font="0" bordercolor="#FF252526" bordersize="1"/>

    </HorizontalLayout>



    </VerticalLayout>


    <VerticalLayout name="联机关联" padding="5,5,5,5" height="150" bordercolor="#FF252526" bordersize="1">
    <Label text="#Windows联机映像默认应用程序关联" font="1" padding="5,5,5,5"/>
    <Label text="#这些设置直接影响当前计算机" font="0" padding="20,5,5,5"/>
    <VerticalLayout/>
    <HorizontalLayout height="40" inset="5,5,5,5" childpadding="5">
    <HorizontalLayout/>
    <Button name="导入2" text="#导入" width="80" font="0" bordercolor="#FF252526" bordersize="1"/>
    <Button name="导出2" text="#导出" width="80" font="0" bordercolor="#FF252526" bordersize="1"/>
    <Button name="重置" text="#重置" width="80" font="0" bordercolor="#FF252526" bordersize="1"/>

    </HorizontalLayout>



    </VerticalLayout>



    </VerticalLayout>



    </Root>
    Code:
    409 lines (304 sloc)  15.6 KB
    // RCMake.cpp : 定义控制台应用程序的入口点。
    //
    #include "stdafx.h"
    #include<winnt.h>
    #include <map>
    DWORD Alignment(DWORD Size,DWORD dwAlignment)
    {
    auto Tmp = Size%dwAlignment;
    if (Tmp)
    {
    return (Size - Tmp)+ dwAlignment;
    }
    else
    {
    return Size;
    }
    }
    struct STRINGRESOURCEIMAGE
    {
    WORD nLength;
    WCHAR achString[];
    };
    #define PEFileAlignment 0x200
    #define PESectionAlignment 0x00001000
    BOOL BuildMessageTable(std::map<DWORD, rapidxml::xml_node<wchar_t>*>& MessageTableMap, CStringA& RsrcData, DWORD EntryIndex);
    BOOL BuildStringTable(std::map<WORD, rapidxml::xml_attribute<wchar_t>*>& StringTableMap, CStringA& RsrcData, DWORD EntryIndex);
    int _tmain(int argc, _TCHAR* argv[])
    {
    #ifdef _DEBUG
    auto hFile = CreateFile(/*L"C:\\Windows\\SysWOW64\\zh-CN\\wimgapi.dll.mui"*/
    L"F:\\用户数据\\桌面\\Dism++10.1.17.5B\\Config\\Languages\\zh-Hans.dll", GENERIC_READ, FILE_SHARE_READ|FILE_SHARE_DELETE, NULL, OPEN_EXISTING, 0, 0);
    if (hFile != INVALID_HANDLE_VALUE)
    {
    auto cdFile = GetFileSize(hFile, NULL);
    auto pData = new byte[cdFile];
    ReadFile(hFile, pData, cdFile, &cdFile, NULL);
    CloseHandle(hFile);
    }
    #endif
    --argc;
    ++argv;
    rapidxml::xml_document<wchar_t> XMLFile;
    rapidxml::XMLCreateXMLDocumentByFile(*argv,&XMLFile);
    //auto hFile = CreateFile(argv[1], GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0);
    //IMAGE_DOS_HEADER DosHeder = {};
    CStringA FileData;
    auto pDosHeder= (IMAGE_DOS_HEADER*)FileData.GetBufferSetLength(sizeof(IMAGE_DOS_HEADER)+sizeof(IMAGE_NT_HEADERS32)+sizeof(IMAGE_SECTION_HEADER));
    memset(pDosHeder,NULL, sizeof(IMAGE_DOS_HEADER) + sizeof(IMAGE_NT_HEADERS32)+sizeof(IMAGE_SECTION_HEADER));
    pDosHeder->e_magic = IMAGE_DOS_SIGNATURE;
    pDosHeder->e_lfanew = sizeof(IMAGE_DOS_HEADER);
    auto pNtHeader= (IMAGE_NT_HEADERS32*)((byte*)pDosHeder + pDosHeder->e_lfanew);
    pNtHeader->Signature = IMAGE_NT_SIGNATURE;
    pNtHeader->FileHeader.Machine = IMAGE_FILE_MACHINE_I386;
    pNtHeader->FileHeader.NumberOfSections = 1;
    pNtHeader->FileHeader.SizeOfOptionalHeader = sizeof(pNtHeader->OptionalHeader);
    pNtHeader->FileHeader.Characteristics = IMAGE_FILE_DLL | IMAGE_FILE_32BIT_MACHINE | IMAGE_FILE_EXECUTABLE_IMAGE;
    pNtHeader->OptionalHeader.Magic = IMAGE_NT_OPTIONAL_HDR32_MAGIC;
    pNtHeader->OptionalHeader.BaseOfCode = 0x1000;
    pNtHeader->OptionalHeader.BaseOfData = 0x1000;
    pNtHeader->OptionalHeader.ImageBase = 0x10000000;
    pNtHeader->OptionalHeader.SectionAlignment = PESectionAlignment;
    pNtHeader->OptionalHeader.FileAlignment = PEFileAlignment;
    pNtHeader->OptionalHeader.SizeOfHeaders = Alignment(pDosHeder->e_lfanew+sizeof(*pNtHeader)+ pNtHeader->FileHeader.NumberOfSections *sizeof(IMAGE_SECTION_HEADER), pNtHeader->OptionalHeader.FileAlignment);
    pNtHeader->OptionalHeader.Subsystem = IMAGE_SUBSYSTEM_WINDOWS_GUI;
    pNtHeader->OptionalHeader.DllCharacteristics = IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE| IMAGE_DLLCHARACTERISTICS_NX_COMPAT| IMAGE_DLLCHARACTERISTICS_NO_SEH;
    pNtHeader->OptionalHeader.NumberOfRvaAndSizes = IMAGE_NUMBEROF_DIRECTORY_ENTRIES;
    pNtHeader->OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_RESOURCE].VirtualAddress=0x1000;
    auto pFirstSectionHeader = (IMAGE_SECTION_HEADER*)((byte*)pNtHeader + sizeof(*pNtHeader));
    memcpy(pFirstSectionHeader->Name,".rsrc",min(IMAGE_SIZEOF_SHORT_NAME,sizeof(".rsrc")));
    pFirstSectionHeader->VirtualAddress = 0x1000;
    pFirstSectionHeader->Characteristics = IMAGE_SCN_MEM_READ| IMAGE_SCN_CNT_INITIALIZED_DATA;
    pFirstSectionHeader->PointerToRawData = Alignment((byte*)pFirstSectionHeader+sizeof(*pFirstSectionHeader)-(byte*)pDosHeder, pNtHeader->OptionalHeader.FileAlignment);
    //资源节部分
    CStringA RsrcData;
    auto pXMLData=XMLFile.first_node(L"Data",StaticStrLen(L"Data"));
    //建立字符串缓存
    std::map<WORD, rapidxml::xml_attribute<wchar_t>*> StringTableMap;
    if (auto pStringMaps = pXMLData->first_node(L"StringMaps", StaticStrLen(L"StringMaps")))
    {
    for (auto pString = pStringMaps->first_node(L"String", StaticStrLen(L"String")); pString; pString = pString->next_sibling(L"String", StaticStrLen(L"String")))
    {
    auto pLink = pString->first_attribute(L"Link", StaticStrLen(L"Link"));
    if (!pLink)
    continue;
    StringTableMap.insert(std::pair<const WORD, rapidxml::xml_attribute<wchar_t>*>(StringTableMap.size(), pLink));
    }
    }
    //建立消息表缓存
    std::map<DWORD, rapidxml::xml_node<wchar_t>*> MessageTableMap;
    if (auto pMessageTable = pXMLData->first_node(L"MessageTable",StaticStrLen(L"MessageTable")))
    {
    for (auto pMessage = pMessageTable->first_node(); pMessage; pMessage = pMessage->next_sibling())
    {
    if (pMessage->type() != rapidxml::node_element)
    {

    ...and so-on - which makes a mammoth task for the non-Chinese reader with programming expertise to untangle - but it says it's open source - The developers would probably appreciate English-speaking comments and would no doubt disentangle the source code for an interested fellow developer whose Chinese is non-existent.
      My Computers


  3. Posts : 3,453
       #142

    Fafhrd said:
    Says it does not use DISM!Apparently It's core is not DISM - it is CBS - the Component-Based Servicing Reference! And development of DISM++ has been in progress for some while - DISM was a comparatively Weak tool until Windows 8, when a lot of new deployment features were added to replace the Imagex and WIMLIB functions.

    Note the Check Me link below to GitHub Open source repositories, and further web links within the program's UI:

    Announcing Windows 10 Insider Preview Build 16176 PC + 15204 Mobile-2017_04_17_17_23_291.png

    Of course, you will never ever see Official MS DISM code at all.

    The Chuyu Team developers are, I think, Chinese, and code is C++ and of course XML according to the references online and in the Program download - the code is mixed English code and Chinese variables:





    ...and so-on - which makes a mammoth task for the non-Chinese reader with programming expertise to untangle - but it says it's open source - The developers would probably appreciate English-speaking comments and would no doubt disentangle the source code for an interested fellow developer whose Chinese is non-existent.
    Thanx Faf...

    I read that "The correct way to programatically access the CBS is through the API's to its clients." but that may not be the case... or maybe I'm just old school - I will need to look into it a bit more
      My Computer


  4. Posts : 429
    Windows 10 Fast Ring
       #143

    21 failed attempts at updating to version 176. I need to stop fast ring updates until I can figure out why it cannot complete. Errors always the same "System Security Exception".
      My Computer


  5. Posts : 19,518
    W11+W11 Developer Insider + Linux
       #144

    Something strange is happening here, too many warning ding and dongs. Turned off sounds and even put almost all sounds in Sounds in Control panel and still those pesky sounds for a reason I don't know of. Full blast too.
      My Computers


  6. Posts : 3,352
    Windows 10 Pro x64
       #145

    John Pombrio said:
    21 failed attempts at updating to version 176. I need to stop fast ring updates until I can figure out why it cannot complete. Errors always the same "System Security Exception".
    Do you have Secure Boot turned on? That's been known to cause problems. Both of mine thankfully succeeded on the first try. Not sure I'm committed enough to try 21 times.
      My Computer


  7. Posts : 56,825
    Multi-boot Windows 10/11 - RTM, RP, Beta, and Insider
       #146

    CountMike said:
    Something strange is happening here, too many warning ding and dongs. Turned off sounds and even put almost all sounds in Sounds in Control panel and still those pesky sounds for a reason I don't know of. Full blast too.
    USB devices detaching-attaching-detaching...I've heard them, too. Then mouse/kb stopped working. Externals disappeared. Weird like that.
      My Computers


  8. Posts : 429
    Windows 10 Fast Ring
       #147

    larc919 said:
    Do you have Secure Boot turned on? That's been known to cause problems. Both of mine thankfully succeeded on the first try. Not sure I'm committed enough to try 21 times.
    Windows is doing the update automatically. I have done it 4 times while I am watching, otherwise Windows tries it 3-4 times a day, fails and then reboots back to 740 (I leave my computer running for server duties for the family).

    Part of a long list of failures:
    Announcing Windows 10 Insider Preview Build 16176 PC + 15204 Mobile-2017-04-17_193622.jpg
      My Computer


  9. Posts : 26,449
    Windows 11 Pro 22631.3447
       #148

    Gee for me this one was a piece of cake compared to the failed 10 or so attempts at the prior build.
      My Computer


  10. Posts : 2,667
    Windows 11 21H2 (22000.593)
       #149

    Yeah, I was pleasantly pleased with the way it handled everything on its own. Even better was the fact that I had 0 driver issues at ll.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 02:05.
Find Us




Windows 10 Forums