<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
@font-face
        {font-family:"\@MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="PT" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi Sven,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">I forgot to paste the resto f the code:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white;mso-fareast-language:EN-US">BOOL</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white;mso-fareast-language:EN-US">CInterfaceManager</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">::IoctlNdisQueryGlobalStats(</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white;mso-fareast-language:EN-US">HANDLE</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:gray;background:white;mso-highlight:white;mso-fareast-language:EN-US">handler</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">,
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white;mso-fareast-language:EN-US">ULONG</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:gray;background:white;mso-highlight:white;mso-fareast-language:EN-US">OidCode</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">,
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white;mso-fareast-language:EN-US">PVOID</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:gray;background:white;mso-highlight:white;mso-fareast-language:EN-US">InformationBuffer</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">,
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white;mso-fareast-language:EN-US">UINT</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:gray;background:white;mso-highlight:white;mso-fareast-language:EN-US">InformationBufferLength</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">,
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white;mso-fareast-language:EN-US">PUINT</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:gray;background:white;mso-highlight:white;mso-fareast-language:EN-US">pBytesWritten</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">{<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">      
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white;mso-fareast-language:EN-US">BOOL</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
 Res = </span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#6F008A;background:white;mso-highlight:white;mso-fareast-language:EN-US">S_FALSE</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">;<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">       *</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:gray;background:white;mso-highlight:white;mso-fareast-language:EN-US">pBytesWritten</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
 = 0;<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">      
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white;mso-fareast-language:EN-US">if</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">(</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:gray;background:white;mso-highlight:white;mso-fareast-language:EN-US">handler</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
 != </span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#6F008A;background:white;mso-highlight:white;mso-fareast-language:EN-US">INVALID_HANDLE_VALUE</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">       {<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">             Res = DeviceIoControl(</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:gray;background:white;mso-highlight:white;mso-fareast-language:EN-US">handler</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">,
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#6F008A;background:white;mso-highlight:white;mso-fareast-language:EN-US">IOCTL_NDIS_QUERY_GLOBAL_STATS</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">,
 &</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:gray;background:white;mso-highlight:white;mso-fareast-language:EN-US">OidCode</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">,
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white;mso-fareast-language:EN-US">sizeof</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">(</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:gray;background:white;mso-highlight:white;mso-fareast-language:EN-US">OidCode</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">),
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:gray;background:white;mso-highlight:white;mso-fareast-language:EN-US">InformationBuffer</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">,
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:gray;background:white;mso-highlight:white;mso-fareast-language:EN-US">InformationBufferLength</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">,
 (</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white;mso-fareast-language:EN-US">LPDWORD</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">)
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:gray;background:white;mso-highlight:white;mso-fareast-language:EN-US">pBytesWritten</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">,
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#6F008A;background:white;mso-highlight:white;mso-fareast-language:EN-US">NULL</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">);<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">      
</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">}<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">      
</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white;mso-fareast-language:EN-US">return</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">
 Res==</span><span style="font-size:9.5pt;font-family:Consolas;color:#6F008A;background:white;mso-highlight:white;mso-fareast-language:EN-US">S_OK</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">;<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white;mso-fareast-language:EN-US">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Trebuchet MS",sans-serif;color:black">Melhores Cumprimentos / Best Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Trebuchet MS",sans-serif;color:black">Nuno Antonio Dias Ferreira<br>
Unidade de Automação de Sistemas de Energia / Power System Automation Unit<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Trebuchet MS",sans-serif;color:black">Efacec Energia, Máquinas e Equipamentos Elétricos, S.A.<br>
Phone: 229403363<br>
</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><img width="107" height="44" id="Picture_x0020_3" src="cid:image001.jpg@01D16034.4EE8F1B0" alt="EFA Logo"></span><span style="font-size:8.0pt;font-family:"Trebuchet MS",sans-serif;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Trebuchet MS",sans-serif;color:black"><a href="http://efacec.com/email.jpg" title="Disclaimer Efacec">Disclaimer</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> winpcap-users-bounces@winpcap.org [mailto:winpcap-users-bounces@winpcap.org]
<b>On Behalf Of </b>Sven Kerschbaum<br>
<b>Sent:</b> 5 de fevereiro de 2016 16:27<br>
<b>To:</b> Jiyang Hu <jiyang_hu@yahoo.com>; winpcap-users@winpcap.org<br>
<b>Subject:</b> Re: [Winpcap-users] Windows 10 support for WinPcap<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p>I cannot find any information about the function IoctlNdisQueryGlobalStats(...). Do you have a link? I agree that is not an option to query the media state in a loop. I have a working solution using WMI but the notification is not in real-time. I sometimes
 experience a delay of a few seconds... <o:p></o:p></p>
<div style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt">
<div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:13.5pt;color:black">I believe query NDIS for OID_GEN_MEDIA_CONNECT_STATUS is a waste of resource if it is put in a loop. Getting a notification of media state change asynchronously should
 be better. My 2 cents.</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span style="font-family:"Helvetica",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">On Friday, February 5, 2016 9:23 AM, Nuno Antonio Dias Ferreira <<a href="mailto:nuno.ferreira@efacec.com">nuno.ferreira@efacec.com</a>>
 wrote:</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span style="font-family:"Helvetica",sans-serif;color:black"><o:p> </o:p></span></p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">Hi Sven,</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">I have an application where I am using npcap and I also have the need to detect the media status changes. To do that I query
 NDIS to get that information: <a href="https://msdn.microsoft.com/en-us/library/windows/hardware/ff569604(v=vs.85).aspx">
https://msdn.microsoft.com/en-us/library/windows/hardware/ff569604(v=vs.85).aspx</a></span><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black"> </span><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">Here is an example:</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="text-indent:35.4pt;background:white"><span lang="EN-US" style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black">if(IoctlNdisQueryGlobalStats(Iface->IOCTLhandler, OID_GEN_MEDIA_CONNECT_STATUS, &ConnectedState,
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:blue">sizeof</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black">(ConnectedState), (PUINT)&ReturnedCount) == ERROR_SUCCESS)</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black">     
</span><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black">{</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black">           
</span><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:blue">return</span><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black"> ConnectedState == NdisMediaStateConnected;</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black">      }</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">Hope this information could be helpful.</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:8.0pt;font-family:"Helvetica",sans-serif;color:black">Melhores Cumprimentos / Best Regards</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:8.0pt;font-family:"Helvetica",sans-serif;color:black">Nuno Antonio Dias Ferreira<br>
Unidade de Automação de Sistemas de Energia / Power System Automation Unit</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:8.0pt;font-family:"Helvetica",sans-serif;color:black">Efacec Energia, Máquinas e Equipamentos Elétricos, S.A.<br>
</span><span style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black"><img border="0" width="107" height="44" id="_x0000_i1025" src="cid:image001.jpg@01D16034.4EE8F1B0" alt="EFA Logo"></span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:8.0pt;font-family:"Helvetica",sans-serif;color:black">Disclaimer</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">
<a href="mailto:winpcap-users-bounces@winpcap.org">winpcap-users-bounces@winpcap.org</a> [mailto:<a href="mailto:winpcap-users-bounces@winpcap.org">winpcap-users-bounces@winpcap.org</a>]
<b>On Behalf Of </b>?????V5<br>
<b>Sent:</b> 5 de fevereiro de 2016 04:44<br>
<b>To:</b> <a href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</a><br>
<b>Subject:</b> Re: [Winpcap-users] Windows 10 support for WinPcap</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black"> <o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black"> <o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black"> <o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black">On Fri, Feb 5, 2016 at 3:56 AM, Mark Pizzolato - Winpcap-Users <</span><span style="font-family:"Helvetica",sans-serif;color:black"><a href="mailto:winpcap-users-20040408@subscriptions.pizzolato.net"><span lang="EN-US">winpcap-users-20040408@subscriptions.pizzolato.net</span></a></span><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black">>
 wrote:<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">The inverted call model might be useful in an abstract way to get notified of a media
</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">state change, however, the question then comes back to how to convey that detail
</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">to the application which is using the libpcap APIs. 
</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">Since the only APIs that an application which already has a pcap session opened
</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">is using are: pcap_next_ex, pcap_dispatch, pcap_loop and possibly
</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">pcap_sendpacket</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">pcap_next_ex, pcap_dispatch and pcap_loop are defined to return -1 on an error. 
</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">Is media state change an error?</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">                Is media offline an error?</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
</div>
</blockquote>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black">I prefer to use the phrases in ncpa.cpl.<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black">If the adapter disconnects (like Wi-Fi), libpcap API should only report time-out (you don't get any new packets).<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black">If the adapter is disabled, libpcap API may report error (or time-out)? I didn't try this. One thing for sure is that you can't get new packets too. This
 thing should not happen when using Npcap/WinPcap. Because when listing adapters with Npcap/WinPcap, disabled adapters never show up on the list. So Npcap/WinPcap assumes that the adapters it uses is always kept as enabled.<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black"> <o:p></o:p></span></p>
</div>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">pcap_sendpacket is defined to return -1 if a packet wasn’t successfully sent.</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">                It would seem that returning -1 when the media is offline makes sense</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
</div>
</blockquote>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black">This makes sense to me.<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black"> <o:p></o:p></span></p>
</div>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">I don’t know for sure how WinPcap behaves under these conditions, but it
</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">seems that it npcap should reliably report errors under the media offline state.</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">Is there a reason it can’t?</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
</div>
</blockquote>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black">Npcap actually doesn't report errors any better than WinPcap. There's even a chance that Npcap behaves different on reporting errors with WinPcap. Because
 Npcap uses NDIS6 and WinPcap uses NDIS5.<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black"> <o:p></o:p></span></p>
</div>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<div>
<p class="MsoNormal" style="background:white"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">
<a href="mailto:winpcap-users-bounces@winpcap.org">winpcap-users-bounces@winpcap.org</a> [<a href="mailto:winpcap-users-bounces@winpcap.org">mailto:winpcap-users-bounces@winpcap.org</a>]
<b>On Behalf Of </b>Jiyang Hu<br>
<b>Sent:</b> Thursday, February 4, 2016 11:18 AM<br>
<b>To:</b> <a href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</a><br>
<b>Subject:</b> Re: [Winpcap-users] Windows 10 support for WinPcap</span><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"> <o:p></o:p></span></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black">@Sven: you need something called - Inverted Call Model</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div style="margin-bottom:12.0pt">
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black">The Inverted Call Model in KMDF - OSR</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div style="margin-top:3.75pt;margin-bottom:3.75pt">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="450" style="width:337.5pt;border-collapse:collapse">
<tbody>
<tr style="height:.75pt">
<td colspan="8" style="background:#E5E5E5;padding:0cm 0cm 0cm 0cm;height:.75pt">
<div>
<div>
<p class="MsoNormal" style="background:#E5E5E5"><span style="font-size:1.0pt"> </span><o:p></o:p></p>
</div>
</div>
</td>
</tr>
<tr style="height:4.5pt">
<td width="1" rowspan="5" style="width:.75pt;background:#E5E5E5;padding:0cm 0cm 0cm 0cm;height:4.5pt">
<div>
<div>
<p class="MsoNormal" style="background:#E5E5E5"><span style="font-size:1.0pt"> </span><o:p></o:p></p>
</div>
</div>
</td>
<td width="168" rowspan="5" style="width:126.0pt;background:white;padding:0cm 0cm 0cm 0cm;height:4.5pt">
<p class="MsoNormal" align="center" style="text-align:center"><span style="border:solid windowtext 1.0pt;padding:0cm"><img border="0" width="168" height="168" id="_x0000_i1026" src="cid:image002.jpg@01D16034.4EE8F1B0" alt="Image removed by sender. image"></span><o:p></o:p></p>
</td>
<td width="1" rowspan="5" style="width:.75pt;background:#E5E5E5;padding:0cm 0cm 0cm 0cm;height:4.5pt">
<div>
<div>
<p class="MsoNormal" style="background:#E5E5E5"><span style="font-size:1.0pt"> </span><o:p></o:p></p>
</div>
</div>
</td>
<td width="14" rowspan="5" style="width:10.5pt;background:white;padding:0cm 0cm 0cm 0cm;height:4.5pt">
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:14.0pt"> </span><o:p></o:p></p>
</div>
</div>
</td>
<td colspan="2" style="background:white;padding:0cm 0cm 0cm 0cm;height:4.5pt">
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:6.0pt"> </span><o:p></o:p></p>
</div>
</div>
</td>
<td width="20" rowspan="5" style="width:15.0pt;background:white;padding:0cm 0cm 0cm 0cm;height:4.5pt">
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:20.0pt"> </span><o:p></o:p></p>
</div>
</div>
</td>
<td width="1" rowspan="5" style="width:.75pt;background:#E5E5E5;padding:0cm 0cm 0cm 0cm;height:4.5pt">
<div>
<div>
<p class="MsoNormal" style="background:#E5E5E5"><span style="font-size:1.0pt"> </span><o:p></o:p></p>
</div>
</div>
</td>
</tr>
<tr>
<td width="100%" colspan="2" style="width:100.0%;padding:0cm 0cm 0cm 0cm">
<div>
<div>
<div>
<p class="MsoNormal" style="mso-line-height-alt:12.4pt;background:white"><span style="font-size:13.5pt;color:black">The Inverted Call Model in KMDF - OSR</span><o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal" style="line-height:15.0pt;background:white"><span style="font-size:10.0pt">One of the most common questions we see from students, clients, and new Windows driver Read more</span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</td>
</tr>
<tr style="height:3.0pt">
<td colspan="2" style="background:white;padding:0cm 0cm 0cm 0cm;height:3.0pt"></td>
</tr>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:7.0pt;color:#999999">View on
</span><b><span style="font-size:7.0pt;color:#999999"><a href="http://www.osr.com"><span lang="EN-US">www.osr.com</span></a></span></b><span lang="EN-US"><o:p></o:p></span></p>
</div>
</div>
</td>
<td width="100" style="width:75.0pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" align="right" style="text-align:right;line-height:8.25pt"><span style="font-size:7.0pt">Preview by Yahoo</span><o:p></o:p></p>
</td>
</tr>
<tr style="height:6.75pt">
<td colspan="2" style="background:white;padding:0cm 0cm 0cm 0cm;height:6.75pt"></td>
</tr>
<tr style="height:.75pt">
<td colspan="8" style="background:#E5E5E5;padding:0cm 0cm 0cm 0cm;height:.75pt">
<div>
<div>
<p class="MsoNormal" style="background:#E5E5E5"><span style="font-size:1.0pt"> </span><o:p></o:p></p>
</div>
</div>
</td>
</tr>
<tr>
<td width="1" style="width:.75pt;padding:0cm 0cm 0cm 0cm"></td>
<td width="172" style="width:129.0pt;padding:0cm 0cm 0cm 0cm"></td>
<td width="1" style="width:.75pt;padding:0cm 0cm 0cm 0cm"></td>
<td width="6" style="width:4.5pt;padding:0cm 0cm 0cm 0cm"></td>
<td width="188" style="width:141.0pt;padding:0cm 0cm 0cm 0cm"></td>
<td width="185" style="width:138.75pt;padding:0cm 0cm 0cm 0cm"></td>
<td width="8" style="width:6.0pt;padding:0cm 0cm 0cm 0cm"></td>
<td width="1" style="width:.75pt;padding:0cm 0cm 0cm 0cm"></td>
</tr>
</tbody>
</table>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div style="margin-bottom:12.0pt">
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black">On Thursday, February 4, 2016 12:49 PM, Sven Kerschbaum <<a href="mailto:svkers@gmail.com">svkers@gmail.com</a>> wrote:</span><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div style="margin-bottom:12.0pt">
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"> <o:p></o:p></span></p>
</div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black">@Yang: It is not possible to get notifications of media state changes by the API which you proposed in your previous post. It provides only
 notifications about IP table changes.</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black">Am 04.02.2016 16:31 schrieb "Sven Kerschbaum" <<a href="mailto:svkers@gmail.com">svkers@gmail.com</a>>:<o:p></o:p></span></p>
</div>
<div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black">Hi Yang,</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black">thanks for providing me the detailed information about Npcap. I will definitively have a look at it and try it.</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black">Cheers,</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black">SK</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black">2016-02-04 13:04 GMT+01:00
</span><span style="font-family:"Calibri",sans-serif;color:black">食肉大灰兔</span><span style="font-family:"Helvetica",sans-serif;color:black">V5 <</span><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"><a href="mailto:hsluoyz@gmail.com"><span lang="PT">hsluoyz@gmail.com</span></a></span><span style="font-family:"Helvetica",sans-serif;color:black">>:<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black">Hi Sven,</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black">Npcap (<a href="https://github.com/nmap/npcap">https://github.com/nmap/npcap</a>) has better performance because of NDIS 6. It also has several
 new features:</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black">I actually didn't add a function about making user software </span><span lang="EN-US" style="font-size:9.5pt;font-family:"Helvetica",sans-serif;color:black">getting
 notified about media state changes. From my knowledge I don't know there's any support of such a function in libpcap. libpcap is an interface standard followed by WinPcap/Npcap. However, I think you can do it using native Windows APIs (like Receiving Notification
 of Network Events in <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/aa366334(v=vs.85).aspx)">https://msdn.microsoft.com/en-us/library/windows/desktop/aa366334(v=vs.85).aspx)</a>. And if you have any improvement advice about Npcap, I will
 consider it:)</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:9.5pt;font-family:"Helvetica",sans-serif;color:black">Cheers,</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:9.5pt;font-family:"Helvetica",sans-serif;color:black">Yang</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
<div style="margin-bottom:12.0pt">
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="margin-bottom:12.0pt">
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black"><br>
</span><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black">_______________________________________________<br>
Winpcap-users mailing list<br>
</span><span style="font-family:"Helvetica",sans-serif;color:black"><a href="mailto:Winpcap-users@winpcap.org"><span lang="EN-US">Winpcap-users@winpcap.org</span></a></span><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"><br>
</span><span style="font-family:"Helvetica",sans-serif;color:black"><a href="https://www.winpcap.org/mailman/listinfo/winpcap-users"><span lang="EN-US">https://www.winpcap.org/mailman/listinfo/winpcap-users</span></a></span><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</blockquote>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"> <o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black">_______________________________________________<br>
Winpcap-users mailing list<br>
</span><span style="font-family:"Helvetica",sans-serif;color:black"><a href="mailto:Winpcap-users@winpcap.org"><span lang="EN-US">Winpcap-users@winpcap.org</span></a></span><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"><br>
</span><span style="font-family:"Helvetica",sans-serif;color:black"><a href="https://www.winpcap.org/mailman/listinfo/winpcap-users"><span lang="EN-US">https://www.winpcap.org/mailman/listinfo/winpcap-users</span></a></span><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span lang="EN-US" style="font-family:"Helvetica",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US"><br>
</span>_______________________________________________<br>
Winpcap-users mailing list<br>
<a href="mailto:Winpcap-users@winpcap.org">Winpcap-users@winpcap.org</a><br>
<a href="https://www.winpcap.org/mailman/listinfo/winpcap-users">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><o:p></o:p></p>
</div>
</div>
</body>
</html>