Microsoft Knowledge Base Email Alertz

KBAlertz.com: (186312) - Intrfc.exe is a sample that demonstrates how to programmatically enumerate IP interface information, such as a system's IP address, subnet mask, and broadcast address, using the WSAIoctl() API with the SIO_GET_INTERFACE_LIST option. In addition,...

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com

ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 186312 - Last Review: February 22, 2007 - Revision: 4.4

Intrfc.exe Programmatically Retrieves IP Interface Info.

This article was previously published under Q186312

SUMMARY

Intrfc.exe is a sample that demonstrates how to programmatically enumerate IP interface information, such as a system's IP address, subnet mask, and broadcast address, using the WSAIoctl() API with the SIO_GET_INTERFACE_LIST option. In addition, Intrfc.exe demonstrates how to interpret IP status flags for each IP interface. The flags are defined in the Windows Sockets 2 Protocol-Specific Annex specification which can be found in the January 98 MSDN Platform SDK or later.

MORE INFORMATION

If you are using Windows NT 4.0 with Service Pack 3 or earlier, there is a problem with the SIO_GET_INTERFACE_LIST option. Please see the following knowledge base article for further information:

For additional information, please see the following article in the Microsoft Knowledge Base:
181520  (http://kbalertz.com/Feedback.aspx?kbNumber=181520/EN-US/ ) BUG: WSAIoctl SIO_GET_INTERFACE_LIST Option Problem
The following file is available for download from the Microsoft Download Center:
Intrfc.exe (http://download.microsoft.com/download/platformsdk/sample31/1/w9xnt4/en-us/intrfc.exe)
For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591  (http://kbalertz.com/Feedback.aspx?kbNumber=119591/EN-US/ ) How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.

Intrfc.exe contains the following files:
  • Readme.txt.
  • Intrfc.cpp: The main source code module for this sample.
  • Makefile: The compiler control file to generate an executable for Intrfc.exe.
To compile this application, simply execute NMake.exe from the command line and it will generate Intrfc.exe.

To run this application, simply execute Interface.exe.

APPLIES TO
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition
  • Microsoft Windows NT Server 4.0 Standard Edition
  • Microsoft Windows NT Workstation 4.0 Developer Edition
  • Microsoft Windows 98 Standard Edition
  • Microsoft Windows 95
Keywords: 
kbapi kbfile kbip kbnetwork kbsample kbwinsock KB186312
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please