win32Service.OpenService not working

kellyk at my-deja.com kellyk at my-deja.com
Tue Jun 6 18:12:32 EDT 2000


In article <8hggdu$4fa$1 at nnrp1.deja.com>,
  tiddlerdeja at my-deja.com wrote:
> However, if I try to get a service with a space in the name, I get an
> error:
> >>> h = win32service.OpenService(hscm, "Windows installer",
> win32service.SERVICE_ALL_ACCESS)

As has been pointed out there is a descriptive name and an internal
name. To find out both names (and other info; see docs) for all services
use:

>>> import win32service
>>> SC= win32service.OpenSCManager("", None,
win32service.SC_MANAGER_ALL_ACCESS)
>>> services= win32service.EnumServicesStatus(SC)
>>> print services



Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list