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
Use 1000 instead of 0 in the third parameter. You will have to ask Microsoft why.
Thank you sir, all good now.