<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Hi, <br>
<br>
Can I redistribute WinPCap in the following mentioned way ?<br>
i.e., Package wpcap.dll, packet.dll, wanpacket.dll, npf.sys with my
application and then Create a Windows Service as this Thread suggests.<br>
I believe the license allows it. Just asking for a confirmation.<br>
<br>
Thanks,<br>
Srivatsan.<br>
<br>
<br>
ZhiyuHe wrote:
<blockquote cite="mide0b1eb6c05080422131edd6b90@mail.gmail.com"
 type="cite">
  <pre wrap="">If your application is designed for Win2000/XP/2003,you can copy
wpcap.dll,packet.dll,wanpacket.dll (they're in %systemroot%\system32)
and put them in the directory of your application,and copy npf.sys,put
it in %systemroot%\system32\drivers,then create a service for this
driver. for example:

        SC_HANDLE scmHandle=NULL;
        SC_HANDLE srvHandle=NULL;
        LPCTSTR NPFServiceName=TEXT("NPF");
        LPCTSTR NPFServiceDesc=TEXT("Netgroup Packet Filter");
        LPCTSTR NPFDriverPath=TEXT("system32\\drivers\\npf.sys");
        char DriverPath[50];
        
        GetWindowsDirectory(DriverPath,12);
        lstrcat(DriverPath,"\\system32\\drivers\\npf.sys");
        
        if(!CopyFile("npf.sys",DriverPath,FALSE))
                return 1;
        
        scmHandle=OpenSCManager(NULL,NULL,SC_MANAGER_ALL_ACCESS);
        if(scmHandle) 
        {
                    srvHandle=CreateService(scmHandle,
                        NPFServiceName,
                        NPFServiceDesc,
                        SERVICE_ALL_ACCESS,
                        SERVICE_KERNEL_DRIVER,
                        SERVICE_DEMAND_START,
                        SERVICE_ERROR_NORMAL,
                        NPFDriverPath,
                        NULL,NULL,NULL,NULL,NULL);
                    if(srvHandle)
                            CloseServiceHandle(srvHandle);
                    
                    CloseServiceHandle(scmHandle);
            }

On 8/5/05, Nick Koranda <a class="moz-txt-link-rfc2396E" href="mailto:nkk@eml.cc">&lt;nkk@eml.cc&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Thanks Eric,

Do I need to "install" any device drivers?  (I see npf.sys and npf.vxd files
in the setup.exe file).

Thanks
Nick Koranda

    </pre>
  </blockquote>
  <pre wrap=""><!---->
_______________________________________________
Winpcap-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Winpcap-users@winpcap.org">Winpcap-users@winpcap.org</a>
<a class="moz-txt-link-freetext" href="https://www.winpcap.org/mailman/listinfo/winpcap-users">https://www.winpcap.org/mailman/listinfo/winpcap-users</a>

  </pre>
</blockquote>
<br>
</body>
</html>