the only Situation i faced when a service wont be deleted
was the case when there where still handles open to it. So
the Documentation tells the same:
"The DeleteService function marks a service for deletion from the service
control manager database. The database entry is not removed until all open
handles to the service have been closed by calls to the CloseServiceHandle
function, and the service is not running. A running service is stopped by a
call to the ControlService function with the SERVICE_CONTROL_STOP control
code. If the service cannot be stopped, the database entry is removed when
the system is restarted.The service control manager deletes the service by
deleting the service key and its subkeys from the registry."
You can try to search for handles to the service with Process Explorer or
similar tool that gets open handles to your service executable, if it runs
Win32 self hosting service.
Beste Gr黶se / Best regards / Votre bien devoue
Microsoft Live Space: http://www.yqcomputer.com/
Latest Open-Source Projects: http://www.yqcomputer.com/
"This reply is provided as is, without warranty express or implied."
"Stefan Kuhr" < XXXX@XXXXX.COM > schrieb im Newsbeitrag