[Winpcap-users] problem using winpcap 3.1 with windows service

Michael Ryan mryan at pcsentinelsoftware.com
Sun Sep 18 21:20:31 GMT 2005


Sorry for the late reply, but FYI adding "NM" and "NPF" to list dependeny list fixed the problem. Thanks!

Michael Ryan
PCSentinel Software
http://www.pcsentinelsoftware.com

>-----Original Message-----
>From: Bryan Kadzban [mailto:bryan at kadzban.is-a-geek.net]
>Sent: Thursday, September 8, 2005 05:43 PM
>To: winpcap-users at winpcap.org
>Subject: Re: [Winpcap-users] problem using winpcap 3.1 with windows service
>
>Michael Ryan wrote:
>> First, Bryan and Arno, thanks for the suggestions and help. My 
>> service does link directly to the wcap.dll, and it is not part of a 
>> group.
>> 
>> In the scenario described below and by Bryan earlier, is there any 
>> way my service can depend on NPF directly and avoid the middle 
>> service?
>
>In your service's registry key, add a REG_MULTI_SZ named
>"DependOnServices" (or possibly "DependOnService"; I don't remember for
>sure, so check out some of the other service keys on your machine and
>use whatever value-name they use). You'll have to use regedt32 if you
>do this on a 2K Pro box, but XP's regedit can handle it just fine.
>
>The data is a list of service names ( == names of registry keys) that
>your service should depend on. Add "NM" and "NPF" to this list (the
>names are case-insensitive), because those are the registry keys for the
>"Network Monitor driver" driver and the "Netgroup Packet Filter" driver.
>
>You'll need both, because wpcap.dll links against packet.dll, which
>links against wanpacket.dll, which calls LoadLibrary on the Netmon
>client DLL, which tries to start the "nm" driver if it isn't already
>running.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20050918/19c6d395/attachment.htm


More information about the Winpcap-users mailing list