GithubHelp home page GithubHelp logo

Don't use Windows API about ressy HOT 4 OPEN

tyrrrz avatar tyrrrz commented on June 7, 2024
Don't use Windows API

from ressy.

Comments (4)

TecsiAron avatar TecsiAron commented on June 7, 2024 2

Just used Ressy to make a small command line tool to change the version number of exe files on our CI server (Linux). It worked with wine no issue.
I know its not ideal, but just wanted to let people, who might be looking, know.

from ressy.

Tyrrrz avatar Tyrrrz commented on June 7, 2024

Just used Ressy to make a small command line tool to change the version number of exe files on our CI server (Linux). It worked with wine no issue. I know its not ideal, but just wanted to let people, who might be looking, know.

Nice 🙂 Glad it worked for you.

from ressy.

Tyrrrz avatar Tyrrrz commented on June 7, 2024

Another reason not to use Windows API:
It seems that all resource functions create temporary files on disk when reading/writing resources. These files are not always deleted, for example if the function fails in some very fatal way. Additionally, if the PE is corrupted (easy to reproduce by changing a random string to a shorter/longer string without updating the pointers in the headers), then these files end up growing indefinitely and never get deleted. Working with binary files ourselves gives us more control and lets us avoid such problems.

from ressy.

Tyrrrz avatar Tyrrrz commented on June 7, 2024

Maybe these classes could be helpful:

from ressy.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.