wntSvcStatus Error 605

Started by simonf, August 08, 2017, 05:28:22 PM

Previous topic - Next topic

simonf

I am unable to read service status using wntSvcStatus on windows 10 or windows 2008r2, I get an extender error 605:  Is there any known issues with this function?

I can list the services using wntSvcList though...

; Load Appropriate Extender
AddExtender('wwwnt34i.dll',0,'wwwnt64i.dll')

state = wntSvcStatus("", "Spooler", 0, 2) ; get the current state of the Spooler
service
Switch state
   Case 1
      message("stopped","service is stopped")
      Break
   Case 4
      message("started","service is running")
      Break
EndSwitch
Exit


td

Use 1000 instead of 0 in the third parameter.  You will have to ask Microsoft why.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

simonf