Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Enumerating installed network protocols

Posted on 2002-05-22
2
Medium Priority
?
129 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 400 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Integration Management Part 2
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

916 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