Solved

Enumerating installed network protocols

Posted on 2002-05-22
2
123 Views
Last Modified: 2010-04-04
Greetings,

Does anyone have any sample code which can be used to enumerate through the installed protocols ? What I am trying to do is determine which protocols are installed (e.g. TCP/IP, NETBUI).

Thanks,

Robert Lancaster
0
Comment
Question by:zaroblan
2 Comments
 
LVL 9

Accepted Solution

by:
ginsonic earned 100 total points
ID: 7026746
This function test if a protocol is installed. In this sample for IP. Just replace the IP with different protocols and test if exist .

uses Winsock;

function IsIPInstalled : boolean;
  var
  ppe : PProtoEnt;
  WSData : TWSAData;

begin
  Result:=true;
  if WSAStartup(MakeWord(1,1),WSData)=0 then
  begin
    ppe:=GetProtoByName('IP');
    if ppe=nil then
      Result:=false;
  end;
  WSACleanup;
end;
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9006622
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept answer from ginsonic

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now