🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.misc
Article #172

Re: How to use an API contained within a .dll ?

#172
From: Bert Kortenbach
Date: Thu, 14 Jun 2001 11:55
25 lines
2017 bytes
Hello,

I would dynamically load the DLL with loadlibrary. If the DLL is found
(handle <>0) I would try to get the adress of the functions contained within
the DLL by calling GetProcAddress. If GetProcAddress returns a valid adress,
I call the function and get the results I want...

Is that what you mean ?

Bert



Cozimworsit <cozimworsit@e-wc.org> schreef in berichtnieuws
9g8049$stg$1@reader1.fr.uu.net...
> I would like to get the values generated by windows' defaulft SNMP
component
> (snmpapi.dll i think).
> How can I do that ?
> Actually I want to get the speed of data transfers over an ethernet
> interface (Total data transferred(ko) divided by time (s) ) So I need need
> to read the "Total data transferred" value.
>
>
>
Technical Details
Message-ID: <992519189.11551.0.pluto.d4ee8199@news.demon.nl>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!dispose.news.demon.net!news.demon.nl!demon!rbkgroep2.demon.nl!not-for-mail
References: <9g8049$stg$1@reader1.fr.uu.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb362,f91095d43ffd9f8e
X-Google-Attributes: gidfb362,public
X-Google-Thread: fd817,f91095d43ffd9f8e
X-Google-Attributes: gidfd817,public
X-Google-Thread: 10baee,f91095d43ffd9f8e
X-Google-Attributes: gid10baee,public
X-Google-ArrivalTime: 2001-06-14 04:47:11 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!dispose.news.demon.net!news.demon.nl!demon!rbkgroep2.demon.nl!not-for-mail
From: "Bert Kortenbach" <bkortenbach.aut@rbk.NoSpam.nl>
Newsgroups: comp.lang.pascal.delphi.misc,borland.public.delphi.internet,alt.comp.lang.borland-delphi
Subject: Re: How to use an API contained within a .dll ?
Date: Thu, 14 Jun 2001 13:55:50 +0200
Message-ID: <992519189.11551.0.pluto.d4ee8199@news.demon.nl>
References: <9g8049$stg$1@reader1.fr.uu.net>
NNTP-Posting-Host: rbkgroep2.demon.nl
X-NNTP-Posting-Host: rbkgroep2.demon.nl:212.238.129.153
X-Trace: news.demon.nl 992519189 pluto:11551 NO-IDENT rbkgroep2.demon.nl:212.238.129.153
X-Complaints-To: abuse@nl.demon.net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Lines: 27