Git Product home page Git Product logo

Comments (3)

BondarencoM avatar BondarencoM commented on July 20, 2024

I need to set recovery actions. As it stands I cannot use this library.

from peanutbutter.

fluffynuts avatar fluffynuts commented on July 20, 2024

@Biztactix-Ryan I'll probably need some help if you're looking for that functionality, primarily because:
a) I use sc.exe for service control (which is why the library is technically not for windows only, though, ofc, it won't work anywhere else) and sc query or sc queryex don't expose any of this information
b) looking in the registry, I don't find all this information there - eg I find that w3svc has no ErrorControl, but w3logsvc does, and I'm not sure what the flag means (1), so I'd have to go figure that out too - as well as what to do when the key is missing (eg for ErrorControl, I think that I should return 0?). I don't see user credentials in the registry (and I wouldn't expect to, tbh). I'm also not sure where DesktopIntegration state is stored - I didn't see it in the registry after enabling it on a service of mine.

@BondarencoM I have some code which does the job in another project - I'll integrate it when I get a moment.

from peanutbutter.

Biztactix-Ryan avatar Biztactix-Ryan commented on July 20, 2024

@fluffynuts I actually went down the Direct API Route myself
But have recently found https://github.com/dahall/Vanara which has Memory Safe versions of pretty much all windows APIs...
So I've recently started using them, but haven't rewritten my original stuff to this.
It'd be worth checking out as it'll likely open up some options for you.

from peanutbutter.

Related Issues (20)

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.