Solved

Enumerating installed network protocols

Posted on 2002-05-22
2
127 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month9 days, 21 hours left to enroll

623 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