@Friend: Bless you. I knew someone knew where the code was hiding, and if I were more proficient, I'd have had a better chance of finding it and perhaps decoding the object. Also, I have JwaWinSvc, but instead if adding the dependency, I decided to look through it and pull out the values I needed myself; as I like everything my code needs within itself if possible. Also, when I did add JwaWinSvc, the library itself had more dependencies that I would have had to try and wring out of the hub, and that really bugged me. I mean, it's not as if adding a download link to the code that I'm looking at would somehow make M$hub any less unscrupulous.
@Remy Lebeau Yes, the principle of least permissions verses I really need to get something done and know what I'm doing except for that deliberately undocumented M$ bug. Since this post is now available to the whole world, and I only asked for the permissions needed to list processes, yes less permissions; and thanks for the code to show the other nefarious states Windows services may find themselves in...
@PascalDragon ??? A friendly ROAR and dragon-ee, dragon, drag, drag fire burp.
@Jurassic Pork Thank you Sir, you've been contributing to the community for a long time now.
@BobDog Like Friend said: I'd drop Jurassic Pork's utilwmi library directly into the directory of your source code. Although, from the code you posted, it looks like you're shelling out to get it. I first started off my code in that direction, and while I haven't yet taken a look at Jurassic Porks library, as you pointed out, that is probably what the library does. The only comment I have about "Executing External Programs" which over the years has become very well documented, is, whenever possible, try to make TProcess and pipes work for you rather than a command that ends up being a Windows only API call. Also, I decided that I should instead try to further the Free Pascal Communities knowledge about servicemanager, as the principle of least privilege dictates that it's far better not to shell out to an M$ buggy cmd prompt to run a buggy wmi command, when one can get close to the APi calls themselves via an open source Free Pascal service manger that's been part of the IDE for almost as long as