03-03-2008, 04:56 PM
i'm trying to find out if a service is in a stopped state and so i made a slight change to your code to this one. but i get a list with each stopped service in there twice. did i do it wrong?
thanks.
if(!EnumServicesStatus(scm SERVICE_WIN32 SERVICE_INACTIVE &a[0] ne*sizeof(ENUM_SERVICE_STATUS) &_i &n 0))
thanks.