I need to change the credentials of an already existing Windows service using C#. I am aware of two different ways of doing this.
ChangeServiceConfig, see ChangeServiceConfig on pinvoke.net
ManagementObject.InvokeMethod using Change as the method name.
Neither seems a very "friendly" way of doing this and I was wondering if I am missing another and better way to do this.
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)