Forum posts for svchost.exe

how can i use svchost.exe to host my own services?

I have written a service in C#. I kept the DLLs of my service in c:windowssystem32myservice.dll. I have done the necessary registry changes for hosting in svchost.exe, but my service is not being executed. It gets a 1053 error code.

The following is the registry entry for myservice. I created a key and have given the path of the myservice.dll file.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicessvcsvc2]
'Type'=dword:00000010
'Start'=dword:00000002
'ErrorControl'=dword:00000001
'ImagePath'=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,
74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,
00,76,00,63,00,68,00,6f,00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,
6b,00,20,00,4c,00,6f,00,63,00,61,00,6c,00,53,00,65,00,72,00,76,00,69,00,63,
00,65,00,00,00
'DisplayName'='@%SystemRoot%\system32\svcsvc.dll,-200'
'ObjectName'='NT AUTHORITY\LocalService'
'ServiceSidType'=dword:00000001

[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicessvcsvc2Parameter]
'ServiceDll'=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,
00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,
73,00,76,00,63,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,00,00
'ServiceMain'='Main'

View complete forum thread with replies

Other posts related to svchost.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

Why is svchost.exe terminating my C# application?
Shared process service via svchost.exe in .NET
How to hide svchost.exe (dos prompt) when executing a scheduled task in Windows
Solving 100% cpu hang of svchost.exe hosting WCF service on IIS 6.0?
.Net Application extrem slow. After killing svchost.exe it runs again fast. Any idea?
how can i use svchost.exe to host my own services?
System becomes very slow to figure out this want to know more about System32 Folder
Windows XP - server process (svchost.exe -k netsvcs) starts after about 10 minutes
Memory leak in svchost.exe while running a particular windows service
Can I use svchost.exe to host my own services?
Svchost: How to make it run only one module per instance of svchost.exe? How to get extended…
ESET Firewall rules for svchost.exe and javaw.exe?
Why is the CommandLine property of a svchost.exe WIN32_Process null?
CreateProcess() and ShellExecute() freeze when waiting for svchost.exe

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.