Thanks

Creating Services
Started by
jaxisland
, Aug 11 2006 07:47 AM
#1
Posted 11 August 2006 - 07:47 AM

Thanks
#2
Posted 11 August 2006 - 08:19 AM

I did find the synatax it is this:
sc.exe create "file name" binPath= "path to binary file"
Now my only problem is I cannot find the right binary file for WinPcap.
If anyone knows, help would be appreciated, thanks.
sc.exe create "file name" binPath= "path to binary file"
Now my only problem is I cannot find the right binary file for WinPcap.
If anyone knows, help would be appreciated, thanks.
#3
Posted 11 August 2006 - 08:26 AM

on my winpcap (that is needed by ethereal) i think the rpcapd.exe is the capture daemon (though by the name it could be the remote packet capture daemon) the other two exe's look like management daemons
#4
Posted 11 August 2006 - 08:29 AM

Roger that, so I create a service pointing to the rpcapd.exe but I get this error:
Could not start the "my name" serivce on Local Computer
Error 1053: The service did not respond to the start or control request in a timely fashion.
Any ideas on that?
Could not start the "my name" serivce on Local Computer
Error 1053: The service did not respond to the start or control request in a timely fashion.
Any ideas on that?
#5
Posted 11 August 2006 - 08:30 AM

not as of right now...but what exactly are you trying to do (while i research)
#6
Posted 11 August 2006 - 08:32 AM

My companys in house software uses WinPcap. Same version as Ethereal. What I would like to do is be able to install it as a service so user accounts with limited permission can use our software. By default WinPcap needs administrator or Power user permissions to run.
#7
Posted 11 August 2006 - 08:36 AM

AH...hmm i'll keep researching if i can
[email protected] the winpcap support email
http://www.winpcap.o...ber/000319.html interesting but don't know that it will be for sure to help
[email protected] the winpcap support email
http://www.winpcap.o...ber/000319.html interesting but don't know that it will be for sure to help
#8
Posted 11 August 2006 - 12:00 PM

Ok here we go. I have the answer. From personal experience I know this will be the first answer to this question on the whole internet.
When WinPcap gets installed from our software by default it adds this registry key:
HKLM\System\CurrentControlSet\Services\NPF
Under NPF there is a REG_DWORD called Start, by default the value is Hex 3.
In order for WinPcap to function with limited permissions the npf.sys driver needs to start when windows boots. You do this by changing the hex value from 3 to 2.
Thats it.
Now I will make a new .exe for our software with that code in it and boom, its good to go.
Now for people who have installed a recent version of Ethereal, this is done completely automatically by selecting the checkbox to start NPF when windows boots, during the install. By checking that box, it makes that registry key automatically.
If anyone has questions, please ask I will be glad to help anyone else with this issue.
I put a week into tracking down 1 registry key. Please share this info.
Thanks for the ideas dsenette
When WinPcap gets installed from our software by default it adds this registry key:
HKLM\System\CurrentControlSet\Services\NPF
Under NPF there is a REG_DWORD called Start, by default the value is Hex 3.
In order for WinPcap to function with limited permissions the npf.sys driver needs to start when windows boots. You do this by changing the hex value from 3 to 2.
Thats it.
Now I will make a new .exe for our software with that code in it and boom, its good to go.
Now for people who have installed a recent version of Ethereal, this is done completely automatically by selecting the checkbox to start NPF when windows boots, during the install. By checking that box, it makes that registry key automatically.
If anyone has questions, please ask I will be glad to help anyone else with this issue.
I put a week into tracking down 1 registry key. Please share this info.
Thanks for the ideas dsenette
#9
Posted 11 August 2006 - 01:08 PM

sorry that i'm never actually able to help with any of your problems...they are always fun
#10
Posted 11 August 2006 - 01:10 PM

I do try and post the most off the wall happens to no one else errors because there is never any answers on the web, anywhere. So I try to make sure I get all of them on here so I can try and help someone else.
You hit it right on the head, it is fun!
You hit it right on the head, it is fun!

Similar Topics
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
As Featured On:






