Menu

ESD C#

Liam
2015-03-02
2015-03-03
  • Liam

    Liam - 2015-03-02

    Do you have any idea how I would add ESD support for C#, specifically get the number of images within the file, converting to a WIM and a WIM to an ESD.

    Thanks :)

     
  • synchronicity

    synchronicity - 2015-03-03

    Everything you requested can be done fairly easily using the C API.

    • "get the number of images within the file" - Open the ESD or WIM file with wimlib_open_wim() and get the image count from the structure provided by wimlib_get_wim_info().

    • "converting to a WIM" - Open the ESD file with wimlib_open_wim(), then call wimlib_set_output_compression_type() with WIMLIB_COMPRESSION_TYPE_LZX, then call wimlib_write().

    • "[converting] a WIM to an ESD" - Open the WIM file with wimlib_open_wim(), then call wimlib_set_output_compression_type() with WIMLIB_COMPRESSION_TYPE_LZMS, then call wimlib_write() with the flag WIMLIB_WRITE_FLAG_SOLID.

    C# allows you to call into DLLs that expose a C API, but I cannot help with this.

     
  • Liam

    Liam - 2015-03-03

    Thank you :)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.