Comments (3)
I need to set recovery actions. As it stands I cannot use this library.
from peanutbutter.
@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.
@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)
- Quotes HOT 2
- CORS policy HOT 3
- semi-colon ini text value causes truncation HOT 21
- IniFile should not use ordinal Dictionary HOT 4
- ini Remove method leaves the key behind HOT 3
- Per-project documentation
- Switch build, pack & push to use `dotnet` HOT 1
- Project restructuring to simplify dev, especially multi-platform dev
- semi-colon ini text value causes truncation (2022) HOT 9
- SetValue return value HOT 1
- How to set encoding? HOT 1
- PeanutButter.INI: CommentDelimiter not respected when saving HOT 2
- PeanutButter.INI exception HOT 6
- [PeanutButter.INI] How can I add an empty line at the last line? HOT 6
- PeanutButter.DuckTyping: Parameter count error when trying to invoke overloaded method HOT 7
- Update PeanutButter.EasyArgs to be AOT-friendly
- [PeanutButter.INI] - Not possible to persist ini file if there is a SectionSeparator and no section HOT 2
- PeanutButter.INI request for new Load overload HOT 2
- "HttpServer" How to support async handle? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from peanutbutter.