<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5730.11" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Thank you very much!</FONT></DIV>
<DIV>
<P><FONT face=Arial size=2>The IP helper API seems realy to help. The code
snippet attached solved my problem.</FONT></P><FONT face=Arial
size=2></FONT></DIV>
<DIV><FONT size=2>
<P></FONT><FONT color=#0000ff size=2>static</FONT><FONT size=2> </FONT><FONT
color=#0000ff size=2>bool</FONT><FONT size=2> hasTCPIP( </FONT><FONT
color=#0000ff size=2>char</FONT><FONT size=2> *pAdapterName )<BR>{<BR>
PIP_ADAPTER_INFO pAdapterInfo = NULL;<BR> PIP_ADAPTER_INFO pAdapter =
NULL;<BR> DWORD dwRc;<BR></FONT><FONT color=#0000ff size=2>
bool</FONT><FONT size=2> bRc = </FONT><FONT color=#0000ff
size=2>false</FONT><FONT size=2>;<BR><BR></FONT><FONT color=#008000
size=2> // drop adapter name prefix ("\device\NPF_")<BR></FONT><FONT
color=#0000ff size=2> while</FONT><FONT size=2>( pAdapterName
)<BR></FONT><FONT color=#0000ff size=2> if</FONT><FONT
size=2>( *pAdapterName != '{' )<BR>
pAdapterName++;<BR></FONT><FONT color=#0000ff size=2>
else<BR></FONT><FONT color=#0000ff size=2>
break</FONT><FONT size=2>;<BR></FONT><FONT color=#008000 size=2><BR> //
get the necessary size into the ulOutBufLen variable<BR></FONT><FONT
size=2> ULONG ulOutBufLen = 0;<BR> dwRc = GetAdaptersInfo(
pAdapterInfo, &ulOutBufLen );<BR> assert( dwRc ==
ERROR_BUFFER_OVERFLOW );<BR></FONT><FONT color=#008000 size=2><BR> // read
adapter info<BR></FONT><FONT size=2> pAdapterInfo = (IP_ADAPTER_INFO
*)GlobalAlloc( GPTR, ulOutBufLen );<BR> assert( pAdapterInfo != NULL
);<BR><FONT face=Arial> </FONT>dwRc = GetAdaptersInfo( pAdapterInfo,
&ulOutBufLen );<BR> assert( dwRc == NO_ERROR );<BR><BR></FONT><FONT
color=#008000 size=2> // scan adapter list<BR></FONT><FONT color=#0000ff
size=2> for</FONT><FONT size=2>( pAdapter = pAdapterInfo; pAdapter;
pAdapter = pAdapter->Next )<BR></FONT><FONT color=#0000ff
size=2> if</FONT><FONT size=2>( strcmp( pAdapterName,
pAdapter->AdapterName ) == 0 ) {<BR></FONT><FONT
size=2> bRc = </FONT><FONT color=#0000ff
size=2>true</FONT><FONT size=2>;<BR></FONT><FONT color=#0000ff
size=2> break</FONT><FONT
size=2>;<BR> }<BR><BR> GlobalFree( pAdapterInfo
);<BR></FONT><FONT color=#0000ff size=2> return</FONT><FONT size=2>
bRc;<BR>}</FONT></P></DIV></BODY></HTML>