Autor Beitrag
mindtrap
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 62



BeitragVerfasst: Sa 28.06.08 20:28 
Hi,

ich suche nach einer Implementierung von wspiapi.h.

Konkret geht es um folgendes Problem:

Zitat:

The getaddrinfo function was added to the Ws2_32.dll on Windows XP and later. If you want to execute an application using this function on earlier versions of Windows (Windows 2000, Windows NT, and Windows Me/98/95), then you need to include the Ws2tcpip.h file and also include the Wspiapi.h file. When the Wspiapi.h include file is added, the getaddrinfo function is defined to the WspiapiGetAddrInfo inline function in the Wspiapi.h file. At runtime, the WspiapiGetAddrInfo function is implemented in such a way that if the Ws2_32.dll or the Wship6.dll (the file containing getaddrinfo in the IPv6 Technology Preview for Windows 2000) does not include getaddrinfo, then a version of getaddrinfo is implemented inline based on code in the Wspiapi.h header file. This inline code will be used on older Windows platforms that do not natively support the getaddrinfo function.


Bevor ich mir die Mühe mache die Header selber zu übersetzten wäre ich dankbar, wenn mir jemand sagen kann ob
es bereits eine Implementierung gibt.

Danke
j.klugmann
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 29.06.08 00:22 
da hift nur lesen-
Genu weiß ich es nich aber ich würde sagen da muss man eben lesen. :evil:
mindtrap Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 62



BeitragVerfasst: So 29.06.08 00:49 
Lesen?
Konkret, was willst du mir damit sagen?
Mir scheint, als hättest du den Text nicht gelesen, deine Antwort ergibt nicht so richtig einen Sinn. :gruebel:

Es gibt keine übersetzte wsiapi.h für Pascal in den Standardlibs und auch nicht beim Indyprojekt.
Statt einer entsprechenden übersetzung wird nur der Standardbefehl gethostbyname verwendet, d.h.
für meinen Fall "Implementierung von IPv6 + IPv4" führt das dazu, dass ich doppelt implementieren muss oder
die Lib selber portiere.

Aber es hat sich eh erledigt, da die da ich eh noch unterschiedliche Betriebssystemchecks machen muss, für jene
OS, die kein IPv6 unterstützen.

Thema erledigt.
Dezipaitor
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 220



BeitragVerfasst: So 29.06.08 12:14 
Das JEDI API Projekt hat JwaWS2tcpip.pas mit der Funktion getaddrinfo übersetzt:
blog.delphi-jedi.net...ows-api-release-315/

PS.
Wenn es noch nicht übersetzte Headers gibt, sind wir immer gerne bereit, neue und aktuellere Implementationen entgegenzunehmen.

_________________
Windows, Tokens, Access Control List, Dateisicherheit, Desktop, Vista Elevation?
Goto: blog.delphi-jedi.net = JEDI API LIB & Windows Security Code Library (JWSCL)
mindtrap Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 62



BeitragVerfasst: So 29.06.08 17:48 
Danke für die Info, jetzt habe ich das Problem schon anderweitig gelöst. ^^

Aber ich werde mir die Datei zu Herzen nehmen und sehen, ob ich es nicht eventuell doch eher so übernehme, wie es eigentlich geplant ist.
Danke nochmal. =)