Jump to content

martinr

Member
  • Posts

    1
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

About martinr

martinr's Achievements

0

Reputation

  1. You inspired me to do this, and I have just finished my project. I have written a program called WIMMaster which gives a graphical interface to the Wimgapi library. I wrote the program in C using Visual Studio 2005. It is similar in looks to OnDansWIM, but is quite different below the surface. I was able to get the progress bar going for Capture/Append and Export, but had no success with Apply. The reason for this is that the WIMApplyImage function in wimgapi apparently spawns a separate thread for its work, and somehow this blocks the communication needed to run the progress bar. I used a modeless dialog instead to indicate that something was going on. I have a file which contains all my source code, and also a BartPE plugin and a VistaPE script with all the files encoded into it, except for wimgapi.dll and wimfltr.sys which are of course required for both the plugin and the script. My file is too big to upload here, although it is not all that large. It is available for download here. Anyone wishing to use the source code will need the Wimgapi SDK which comes with the WAIK, and also Visual Studio 2005. Visual Studio 2003 seemed to have problems reading wimgapi.h, because of all the __in, __out and other similar descriptors it uses. A number of interesting points arise in the source code. One of them is that the use of a file name for an image is not mandatory as it is with imagex, although it obviously makes sense to have one in a multi-image file. It is actually quite complicated to get the names and descriptions into the wim; I had to write a special function to edit the image to achieve this. I hope that some will find the coding instructive, and the program useful. It seems to work as well as imagex does.
×
×
  • Create New...