exe - Host console application in windows service -


i have console application need host independant windows service.

any idea how that. able register service when try start it, gives me error :

error 1053: service did not respond start or control request in timely fashion.

services have call specific win32 apis integrate service control manager (scm). includes being able receive service commands stop).

an executable doesn't call these apis shortly after startup won't work. ie. service needs written service. (note, in .net done extending servicebase rather p/invoking win32 apis).

if cannot modify exe have, consider creating separate service exe integrates scm , launches/closes console application.


Comments